1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --disable-elf disable builtin ELF support" 16ac_help="$ac_help 17 --disable-elf-core disable ELF core file support" 18 19# Initialize some variables set by options. 20# The variables have the same names as the options, with 21# dashes changed to underlines. 22build=NONE 23cache_file=./config.cache 24exec_prefix=NONE 25host=NONE 26no_create= 27nonopt=NONE 28no_recursion= 29prefix=NONE 30program_prefix=NONE 31program_suffix=NONE 32program_transform_name=s,x,x, 33silent= 34site= 35srcdir= 36target=NONE 37verbose= 38x_includes=NONE 39x_libraries=NONE 40bindir='${exec_prefix}/bin' 41sbindir='${exec_prefix}/sbin' 42libexecdir='${exec_prefix}/libexec' 43datadir='${prefix}/share' 44sysconfdir='${prefix}/etc' 45sharedstatedir='${prefix}/com' 46localstatedir='${prefix}/var' 47libdir='${exec_prefix}/lib' 48includedir='${prefix}/include' 49oldincludedir='/usr/include' 50infodir='${prefix}/info' 51mandir='${prefix}/man' 52 53# Initialize some other variables. 54subdirs= 55MFLAGS= MAKEFLAGS= 56SHELL=${CONFIG_SHELL-/bin/sh} 57# Maximum number of lines to put in a shell here document. 58ac_max_here_lines=12 59 60ac_prev= 61for ac_option 62do 63 64 # If the previous option needs an argument, assign it. 65 if test -n "$ac_prev"; then 66 eval "$ac_prev=\$ac_option" 67 ac_prev= 68 continue 69 fi 70 71 case "$ac_option" in 72 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 73 *) ac_optarg= ;; 74 esac 75 76 # Accept the important Cygnus configure options, so we can diagnose typos. 77 78 case "$ac_option" in 79 80 -bindir | --bindir | --bindi | --bind | --bin | --bi) 81 ac_prev=bindir ;; 82 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 83 bindir="$ac_optarg" ;; 84 85 -build | --build | --buil | --bui | --bu) 86 ac_prev=build ;; 87 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 88 build="$ac_optarg" ;; 89 90 -cache-file | --cache-file | --cache-fil | --cache-fi \ 91 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 92 ac_prev=cache_file ;; 93 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 94 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 95 cache_file="$ac_optarg" ;; 96 97 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 98 ac_prev=datadir ;; 99 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 100 | --da=*) 101 datadir="$ac_optarg" ;; 102 103 -disable-* | --disable-*) 104 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 105 # Reject names that are not valid shell variable names. 106 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 107 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 108 fi 109 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 110 eval "enable_${ac_feature}=no" ;; 111 112 -enable-* | --enable-*) 113 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 114 # Reject names that are not valid shell variable names. 115 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 117 fi 118 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 119 case "$ac_option" in 120 *=*) ;; 121 *) ac_optarg=yes ;; 122 esac 123 eval "enable_${ac_feature}='$ac_optarg'" ;; 124 125 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 126 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 127 | --exec | --exe | --ex) 128 ac_prev=exec_prefix ;; 129 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 130 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 131 | --exec=* | --exe=* | --ex=*) 132 exec_prefix="$ac_optarg" ;; 133 134 -gas | --gas | --ga | --g) 135 # Obsolete; use --with-gas. 136 with_gas=yes ;; 137 138 -help | --help | --hel | --he) 139 # Omit some internal or obsolete options to make the list less imposing. 140 # This message is too long to be a string in the A/UX 3.1 sh. 141 cat << EOF 142Usage: configure [options] [host] 143Options: [defaults in brackets after descriptions] 144Configuration: 145 --cache-file=FILE cache test results in FILE 146 --help print this message 147 --no-create do not create output files 148 --quiet, --silent do not print \`checking...' messages 149 --version print the version of autoconf that created configure 150Directory and file names: 151 --prefix=PREFIX install architecture-independent files in PREFIX 152 [$ac_default_prefix] 153 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 154 [same as prefix] 155 --bindir=DIR user executables in DIR [EPREFIX/bin] 156 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 157 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 158 --datadir=DIR read-only architecture-independent data in DIR 159 [PREFIX/share] 160 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 161 --sharedstatedir=DIR modifiable architecture-independent data in DIR 162 [PREFIX/com] 163 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 164 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 165 --includedir=DIR C header files in DIR [PREFIX/include] 166 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 167 --infodir=DIR info documentation in DIR [PREFIX/info] 168 --mandir=DIR man documentation in DIR [PREFIX/man] 169 --srcdir=DIR find the sources in DIR [configure dir or ..] 170 --program-prefix=PREFIX prepend PREFIX to installed program names 171 --program-suffix=SUFFIX append SUFFIX to installed program names 172 --program-transform-name=PROGRAM 173 run sed PROGRAM on installed program names 174EOF 175 cat << EOF 176Host type: 177 --build=BUILD configure for building on BUILD [BUILD=HOST] 178 --host=HOST configure for HOST [guessed] 179 --target=TARGET configure for TARGET [TARGET=HOST] 180Features and packages: 181 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 182 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 183 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 184 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 185 --x-includes=DIR X include files are in DIR 186 --x-libraries=DIR X library files are in DIR 187EOF 188 if test -n "$ac_help"; then 189 echo "--enable and --with options recognized:$ac_help" 190 fi 191 exit 0 ;; 192 193 -host | --host | --hos | --ho) 194 ac_prev=host ;; 195 -host=* | --host=* | --hos=* | --ho=*) 196 host="$ac_optarg" ;; 197 198 -includedir | --includedir | --includedi | --included | --include \ 199 | --includ | --inclu | --incl | --inc) 200 ac_prev=includedir ;; 201 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 202 | --includ=* | --inclu=* | --incl=* | --inc=*) 203 includedir="$ac_optarg" ;; 204 205 -infodir | --infodir | --infodi | --infod | --info | --inf) 206 ac_prev=infodir ;; 207 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 208 infodir="$ac_optarg" ;; 209 210 -libdir | --libdir | --libdi | --libd) 211 ac_prev=libdir ;; 212 -libdir=* | --libdir=* | --libdi=* | --libd=*) 213 libdir="$ac_optarg" ;; 214 215 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 216 | --libexe | --libex | --libe) 217 ac_prev=libexecdir ;; 218 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 219 | --libexe=* | --libex=* | --libe=*) 220 libexecdir="$ac_optarg" ;; 221 222 -localstatedir | --localstatedir | --localstatedi | --localstated \ 223 | --localstate | --localstat | --localsta | --localst \ 224 | --locals | --local | --loca | --loc | --lo) 225 ac_prev=localstatedir ;; 226 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 227 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 228 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 229 localstatedir="$ac_optarg" ;; 230 231 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 232 ac_prev=mandir ;; 233 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 234 mandir="$ac_optarg" ;; 235 236 -nfp | --nfp | --nf) 237 # Obsolete; use --without-fp. 238 with_fp=no ;; 239 240 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 241 | --no-cr | --no-c) 242 no_create=yes ;; 243 244 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 245 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 246 no_recursion=yes ;; 247 248 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 249 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 250 | --oldin | --oldi | --old | --ol | --o) 251 ac_prev=oldincludedir ;; 252 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 253 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 254 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 255 oldincludedir="$ac_optarg" ;; 256 257 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 258 ac_prev=prefix ;; 259 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 260 prefix="$ac_optarg" ;; 261 262 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 263 | --program-pre | --program-pr | --program-p) 264 ac_prev=program_prefix ;; 265 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 266 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 267 program_prefix="$ac_optarg" ;; 268 269 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 270 | --program-suf | --program-su | --program-s) 271 ac_prev=program_suffix ;; 272 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 273 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 274 program_suffix="$ac_optarg" ;; 275 276 -program-transform-name | --program-transform-name \ 277 | --program-transform-nam | --program-transform-na \ 278 | --program-transform-n | --program-transform- \ 279 | --program-transform | --program-transfor \ 280 | --program-transfo | --program-transf \ 281 | --program-trans | --program-tran \ 282 | --progr-tra | --program-tr | --program-t) 283 ac_prev=program_transform_name ;; 284 -program-transform-name=* | --program-transform-name=* \ 285 | --program-transform-nam=* | --program-transform-na=* \ 286 | --program-transform-n=* | --program-transform-=* \ 287 | --program-transform=* | --program-transfor=* \ 288 | --program-transfo=* | --program-transf=* \ 289 | --program-trans=* | --program-tran=* \ 290 | --progr-tra=* | --program-tr=* | --program-t=*) 291 program_transform_name="$ac_optarg" ;; 292 293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 294 | -silent | --silent | --silen | --sile | --sil) 295 silent=yes ;; 296 297 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 298 ac_prev=sbindir ;; 299 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 300 | --sbi=* | --sb=*) 301 sbindir="$ac_optarg" ;; 302 303 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 304 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 305 | --sharedst | --shareds | --shared | --share | --shar \ 306 | --sha | --sh) 307 ac_prev=sharedstatedir ;; 308 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 309 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 310 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 311 | --sha=* | --sh=*) 312 sharedstatedir="$ac_optarg" ;; 313 314 -site | --site | --sit) 315 ac_prev=site ;; 316 -site=* | --site=* | --sit=*) 317 site="$ac_optarg" ;; 318 319 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 320 ac_prev=srcdir ;; 321 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 322 srcdir="$ac_optarg" ;; 323 324 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 325 | --syscon | --sysco | --sysc | --sys | --sy) 326 ac_prev=sysconfdir ;; 327 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 328 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 329 sysconfdir="$ac_optarg" ;; 330 331 -target | --target | --targe | --targ | --tar | --ta | --t) 332 ac_prev=target ;; 333 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 334 target="$ac_optarg" ;; 335 336 -v | -verbose | --verbose | --verbos | --verbo | --verb) 337 verbose=yes ;; 338 339 -version | --version | --versio | --versi | --vers) 340 echo "configure generated by autoconf version 2.13" 341 exit 0 ;; 342 343 -with-* | --with-*) 344 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 345 # Reject names that are not valid shell variable names. 346 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 347 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 348 fi 349 ac_package=`echo $ac_package| sed 's/-/_/g'` 350 case "$ac_option" in 351 *=*) ;; 352 *) ac_optarg=yes ;; 353 esac 354 eval "with_${ac_package}='$ac_optarg'" ;; 355 356 -without-* | --without-*) 357 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 358 # Reject names that are not valid shell variable names. 359 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 361 fi 362 ac_package=`echo $ac_package| sed 's/-/_/g'` 363 eval "with_${ac_package}=no" ;; 364 365 --x) 366 # Obsolete; use --with-x. 367 with_x=yes ;; 368 369 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 370 | --x-incl | --x-inc | --x-in | --x-i) 371 ac_prev=x_includes ;; 372 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 373 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 374 x_includes="$ac_optarg" ;; 375 376 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 377 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 378 ac_prev=x_libraries ;; 379 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 380 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 381 x_libraries="$ac_optarg" ;; 382 383 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 384 ;; 385 386 *) 387 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 388 echo "configure: warning: $ac_option: invalid host type" 1>&2 389 fi 390 if test "x$nonopt" != xNONE; then 391 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 392 fi 393 nonopt="$ac_option" 394 ;; 395 396 esac 397done 398 399if test -n "$ac_prev"; then 400 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 401fi 402 403trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 404 405# File descriptor usage: 406# 0 standard input 407# 1 file creation 408# 2 errors and warnings 409# 3 some systems may open it to /dev/tty 410# 4 used on the Kubota Titan 411# 6 checking for... messages and results 412# 5 compiler messages saved in config.log 413if test "$silent" = yes; then 414 exec 6>/dev/null 415else 416 exec 6>&1 417fi 418exec 5>./config.log 419 420echo "\ 421This file contains any messages produced by compilers while 422running configure, to aid debugging if configure makes a mistake. 423" 1>&5 424 425# Strip out --no-create and --no-recursion so they do not pile up. 426# Also quote any args containing shell metacharacters. 427ac_configure_args= 428for ac_arg 429do 430 case "$ac_arg" in 431 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 432 | --no-cr | --no-c) ;; 433 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 434 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 436 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 437 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 438 esac 439done 440 441# NLS nuisances. 442# Only set these to C if already set. These must not be set unconditionally 443# because not all systems understand e.g. LANG=C (notably SCO). 444# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 445# Non-C LC_CTYPE values break the ctype check. 446if test "${LANG+set}" = set; then LANG=C; export LANG; fi 447if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 448if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 449if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 450 451# confdefs.h avoids OS command line length limits that DEFS can exceed. 452rm -rf conftest* confdefs.h 453# AIX cpp loses on an empty file, so make sure it contains at least a newline. 454echo > confdefs.h 455 456# A filename unique to this package, relative to the directory that 457# configure is in, which we can look for to find out if srcdir is correct. 458ac_unique_file=file.c 459 460# Find the source files, if location was not specified. 461if test -z "$srcdir"; then 462 ac_srcdir_defaulted=yes 463 # Try the directory containing this script, then its parent. 464 ac_prog=$0 465 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 466 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 467 srcdir=$ac_confdir 468 if test ! -r $srcdir/$ac_unique_file; then 469 srcdir=.. 470 fi 471else 472 ac_srcdir_defaulted=no 473fi 474if test ! -r $srcdir/$ac_unique_file; then 475 if test "$ac_srcdir_defaulted" = yes; then 476 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 477 else 478 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 479 fi 480fi 481srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 482 483# Prefer explicitly selected file to automatically selected ones. 484if test -z "$CONFIG_SITE"; then 485 if test "x$prefix" != xNONE; then 486 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 487 else 488 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 489 fi 490fi 491for ac_site_file in $CONFIG_SITE; do 492 if test -r "$ac_site_file"; then 493 echo "loading site script $ac_site_file" 494 . "$ac_site_file" 495 fi 496done 497 498if test -r "$cache_file"; then 499 echo "loading cache $cache_file" 500 . $cache_file 501else 502 echo "creating cache $cache_file" 503 > $cache_file 504fi 505 506ac_ext=c 507# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 508ac_cpp='$CPP $CPPFLAGS' 509ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 510ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 511cross_compiling=$ac_cv_prog_cc_cross 512 513ac_exeext= 514ac_objext=o 515if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 518 ac_n= ac_c=' 519' ac_t=' ' 520 else 521 ac_n=-n ac_c= ac_t= 522 fi 523else 524 ac_n= ac_c='\c' ac_t= 525fi 526 527 528ac_aux_dir= 529for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 530 if test -f $ac_dir/install-sh; then 531 ac_aux_dir=$ac_dir 532 ac_install_sh="$ac_aux_dir/install-sh -c" 533 break 534 elif test -f $ac_dir/install.sh; then 535 ac_aux_dir=$ac_dir 536 ac_install_sh="$ac_aux_dir/install.sh -c" 537 break 538 fi 539done 540if test -z "$ac_aux_dir"; then 541 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 542fi 543ac_config_guess=$ac_aux_dir/config.guess 544ac_config_sub=$ac_aux_dir/config.sub 545ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 546 547# Find a good install program. We prefer a C program (faster), 548# so one script is as good as another. But avoid the broken or 549# incompatible versions: 550# SysV /etc/install, /usr/sbin/install 551# SunOS /usr/etc/install 552# IRIX /sbin/install 553# AIX /bin/install 554# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 555# AFS /usr/afsws/bin/install, which mishandles nonexistent args 556# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 557# ./install, which can be erroneously created by make from ./install.sh. 558echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 559echo "configure:560: checking for a BSD compatible install" >&5 560if test -z "$INSTALL"; then 561if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 562 echo $ac_n "(cached) $ac_c" 1>&6 563else 564 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 565 for ac_dir in $PATH; do 566 # Account for people who put trailing slashes in PATH elements. 567 case "$ac_dir/" in 568 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 569 *) 570 # OSF1 and SCO ODT 3.0 have their own names for install. 571 # Don't use installbsd from OSF since it installs stuff as root 572 # by default. 573 for ac_prog in ginstall scoinst install; do 574 if test -f $ac_dir/$ac_prog; then 575 if test $ac_prog = install && 576 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 577 # AIX install. It has an incompatible calling convention. 578 : 579 else 580 ac_cv_path_install="$ac_dir/$ac_prog -c" 581 break 2 582 fi 583 fi 584 done 585 ;; 586 esac 587 done 588 IFS="$ac_save_IFS" 589 590fi 591 if test "${ac_cv_path_install+set}" = set; then 592 INSTALL="$ac_cv_path_install" 593 else 594 # As a last resort, use the slow shell script. We don't cache a 595 # path for INSTALL within a source directory, because that will 596 # break other packages using the cache if that directory is 597 # removed, or if the path is relative. 598 INSTALL="$ac_install_sh" 599 fi 600fi 601echo "$ac_t""$INSTALL" 1>&6 602 603# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 604# It thinks the first close brace ends the variable substitution. 605test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 606 607test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 608 609test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 610 611echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 612echo "configure:613: checking whether build environment is sane" >&5 613# Just in case 614sleep 1 615echo timestamp > conftestfile 616# Do `set' in a subshell so we don't clobber the current shell's 617# arguments. Must try -L first in case configure is actually a 618# symlink; some systems play weird games with the mod time of symlinks 619# (eg FreeBSD returns the mod time of the symlink's containing 620# directory). 621if ( 622 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 623 if test "$*" = "X"; then 624 # -L didn't work. 625 set X `ls -t $srcdir/configure conftestfile` 626 fi 627 if test "$*" != "X $srcdir/configure conftestfile" \ 628 && test "$*" != "X conftestfile $srcdir/configure"; then 629 630 # If neither matched, then we have a broken ls. This can happen 631 # if, for instance, CONFIG_SHELL is bash and it inherits a 632 # broken ls alias from the environment. This has actually 633 # happened. Such a system could not be considered "sane". 634 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 635alias in your environment" 1>&2; exit 1; } 636 fi 637 638 test "$2" = conftestfile 639 ) 640then 641 # Ok. 642 : 643else 644 { echo "configure: error: newly created file is older than distributed files! 645Check your system clock" 1>&2; exit 1; } 646fi 647rm -f conftest* 648echo "$ac_t""yes" 1>&6 649if test "$program_transform_name" = s,x,x,; then 650 program_transform_name= 651else 652 # Double any \ or $. echo might interpret backslashes. 653 cat <<\EOF_SED > conftestsed 654s,\\,\\\\,g; s,\$,$$,g 655EOF_SED 656 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 657 rm -f conftestsed 658fi 659test "$program_prefix" != NONE && 660 program_transform_name="s,^,${program_prefix},; $program_transform_name" 661# Use a double $ so make ignores it. 662test "$program_suffix" != NONE && 663 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 664 665# sed with no file args requires a program. 666test "$program_transform_name" = "" && program_transform_name="s,x,x," 667 668echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 669echo "configure:670: checking whether ${MAKE-make} sets \${MAKE}" >&5 670set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 671if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 672 echo $ac_n "(cached) $ac_c" 1>&6 673else 674 cat > conftestmake <<\EOF 675all: 676 @echo 'ac_maketemp="${MAKE}"' 677EOF 678# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 679eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 680if test -n "$ac_maketemp"; then 681 eval ac_cv_prog_make_${ac_make}_set=yes 682else 683 eval ac_cv_prog_make_${ac_make}_set=no 684fi 685rm -f conftestmake 686fi 687if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 688 echo "$ac_t""yes" 1>&6 689 SET_MAKE= 690else 691 echo "$ac_t""no" 1>&6 692 SET_MAKE="MAKE=${MAKE-make}" 693fi 694 695 696 697PACKAGE=file 698 699VERSION=3.33 700 701if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 702 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 703fi 704cat >> confdefs.h <<EOF 705#define PACKAGE "$PACKAGE" 706EOF 707 708cat >> confdefs.h <<EOF 709#define VERSION "$VERSION" 710EOF 711 712 713 714missing_dir=`cd $ac_aux_dir && pwd` 715echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 716echo "configure:717: checking for working aclocal" >&5 717# Run test in a subshell; some versions of sh will print an error if 718# an executable is not found, even if stderr is redirected. 719# Redirect stdin to placate older versions of autoconf. Sigh. 720if (aclocal --version) < /dev/null > /dev/null 2>&1; then 721 ACLOCAL=aclocal 722 echo "$ac_t""found" 1>&6 723else 724 ACLOCAL="$missing_dir/missing aclocal" 725 echo "$ac_t""missing" 1>&6 726fi 727 728echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 729echo "configure:730: checking for working autoconf" >&5 730# Run test in a subshell; some versions of sh will print an error if 731# an executable is not found, even if stderr is redirected. 732# Redirect stdin to placate older versions of autoconf. Sigh. 733if (autoconf --version) < /dev/null > /dev/null 2>&1; then 734 AUTOCONF=autoconf 735 echo "$ac_t""found" 1>&6 736else 737 AUTOCONF="$missing_dir/missing autoconf" 738 echo "$ac_t""missing" 1>&6 739fi 740 741echo $ac_n "checking for working automake""... $ac_c" 1>&6 742echo "configure:743: checking for working automake" >&5 743# Run test in a subshell; some versions of sh will print an error if 744# an executable is not found, even if stderr is redirected. 745# Redirect stdin to placate older versions of autoconf. Sigh. 746if (automake --version) < /dev/null > /dev/null 2>&1; then 747 AUTOMAKE=automake 748 echo "$ac_t""found" 1>&6 749else 750 AUTOMAKE="$missing_dir/missing automake" 751 echo "$ac_t""missing" 1>&6 752fi 753 754echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 755echo "configure:756: checking for working autoheader" >&5 756# Run test in a subshell; some versions of sh will print an error if 757# an executable is not found, even if stderr is redirected. 758# Redirect stdin to placate older versions of autoconf. Sigh. 759if (autoheader --version) < /dev/null > /dev/null 2>&1; then 760 AUTOHEADER=autoheader 761 echo "$ac_t""found" 1>&6 762else 763 AUTOHEADER="$missing_dir/missing autoheader" 764 echo "$ac_t""missing" 1>&6 765fi 766 767echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 768echo "configure:769: checking for working makeinfo" >&5 769# Run test in a subshell; some versions of sh will print an error if 770# an executable is not found, even if stderr is redirected. 771# Redirect stdin to placate older versions of autoconf. Sigh. 772if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 773 MAKEINFO=makeinfo 774 echo "$ac_t""found" 1>&6 775else 776 MAKEINFO="$missing_dir/missing makeinfo" 777 echo "$ac_t""missing" 1>&6 778fi 779 780 781 782 783 784 785echo $ac_n "checking for builtin ELF support""... $ac_c" 1>&6 786echo "configure:787: checking for builtin ELF support" >&5 787# Check whether --enable-elf or --disable-elf was given. 788if test "${enable_elf+set}" = set; then 789 enableval="$enable_elf" 790 if test "${enableval}" = yes; then 791 echo "$ac_t""yes" 1>&6 792 cat >> confdefs.h <<\EOF 793#define BUILTIN_ELF 1 794EOF 795 796else 797 echo "$ac_t""no" 1>&6 798fi 799else 800 801 # enable by default 802 echo "$ac_t""yes" 1>&6 803 cat >> confdefs.h <<\EOF 804#define BUILTIN_ELF 1 805EOF 806 807 808fi 809 810 811echo $ac_n "checking for ELF core file support""... $ac_c" 1>&6 812echo "configure:813: checking for ELF core file support" >&5 813# Check whether --enable-elf-core or --disable-elf-core was given. 814if test "${enable_elf_core+set}" = set; then 815 enableval="$enable_elf_core" 816 if test "${enableval}" = yes; then 817 echo "$ac_t""yes" 1>&6 818 cat >> confdefs.h <<\EOF 819#define ELFCORE 1 820EOF 821 822else 823 echo "$ac_t""no" 1>&6 824fi 825else 826 827 # enable by default 828 echo "$ac_t""yes" 1>&6 829 cat >> confdefs.h <<\EOF 830#define ELFCORE 1 831EOF 832 833 834fi 835 836 837# Extract the first word of "gcc", so it can be a program name with args. 838set dummy gcc; ac_word=$2 839echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 840echo "configure:841: checking for $ac_word" >&5 841if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 842 echo $ac_n "(cached) $ac_c" 1>&6 843else 844 if test -n "$CC"; then 845 ac_cv_prog_CC="$CC" # Let the user override the test. 846else 847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 848 ac_dummy="$PATH" 849 for ac_dir in $ac_dummy; do 850 test -z "$ac_dir" && ac_dir=. 851 if test -f $ac_dir/$ac_word; then 852 ac_cv_prog_CC="gcc" 853 break 854 fi 855 done 856 IFS="$ac_save_ifs" 857fi 858fi 859CC="$ac_cv_prog_CC" 860if test -n "$CC"; then 861 echo "$ac_t""$CC" 1>&6 862else 863 echo "$ac_t""no" 1>&6 864fi 865 866if test -z "$CC"; then 867 # Extract the first word of "cc", so it can be a program name with args. 868set dummy cc; ac_word=$2 869echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 870echo "configure:871: checking for $ac_word" >&5 871if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 872 echo $ac_n "(cached) $ac_c" 1>&6 873else 874 if test -n "$CC"; then 875 ac_cv_prog_CC="$CC" # Let the user override the test. 876else 877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 878 ac_prog_rejected=no 879 ac_dummy="$PATH" 880 for ac_dir in $ac_dummy; do 881 test -z "$ac_dir" && ac_dir=. 882 if test -f $ac_dir/$ac_word; then 883 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 884 ac_prog_rejected=yes 885 continue 886 fi 887 ac_cv_prog_CC="cc" 888 break 889 fi 890 done 891 IFS="$ac_save_ifs" 892if test $ac_prog_rejected = yes; then 893 # We found a bogon in the path, so make sure we never use it. 894 set dummy $ac_cv_prog_CC 895 shift 896 if test $# -gt 0; then 897 # We chose a different compiler from the bogus one. 898 # However, it has the same basename, so the bogon will be chosen 899 # first if we set CC to just the basename; use the full file name. 900 shift 901 set dummy "$ac_dir/$ac_word" "$@" 902 shift 903 ac_cv_prog_CC="$@" 904 fi 905fi 906fi 907fi 908CC="$ac_cv_prog_CC" 909if test -n "$CC"; then 910 echo "$ac_t""$CC" 1>&6 911else 912 echo "$ac_t""no" 1>&6 913fi 914 915 if test -z "$CC"; then 916 case "`uname -s`" in 917 *win32* | *WIN32*) 918 # Extract the first word of "cl", so it can be a program name with args. 919set dummy cl; ac_word=$2 920echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 921echo "configure:922: checking for $ac_word" >&5 922if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 923 echo $ac_n "(cached) $ac_c" 1>&6 924else 925 if test -n "$CC"; then 926 ac_cv_prog_CC="$CC" # Let the user override the test. 927else 928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 929 ac_dummy="$PATH" 930 for ac_dir in $ac_dummy; do 931 test -z "$ac_dir" && ac_dir=. 932 if test -f $ac_dir/$ac_word; then 933 ac_cv_prog_CC="cl" 934 break 935 fi 936 done 937 IFS="$ac_save_ifs" 938fi 939fi 940CC="$ac_cv_prog_CC" 941if test -n "$CC"; then 942 echo "$ac_t""$CC" 1>&6 943else 944 echo "$ac_t""no" 1>&6 945fi 946 ;; 947 esac 948 fi 949 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 950fi 951 952echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 953echo "configure:954: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 954 955ac_ext=c 956# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 957ac_cpp='$CPP $CPPFLAGS' 958ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 959ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 960cross_compiling=$ac_cv_prog_cc_cross 961 962cat > conftest.$ac_ext << EOF 963 964#line 965 "configure" 965#include "confdefs.h" 966 967main(){return(0);} 968EOF 969if { (eval echo configure:970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 970 ac_cv_prog_cc_works=yes 971 # If we can't run a trivial program, we are probably using a cross compiler. 972 if (./conftest; exit) 2>/dev/null; then 973 ac_cv_prog_cc_cross=no 974 else 975 ac_cv_prog_cc_cross=yes 976 fi 977else 978 echo "configure: failed program was:" >&5 979 cat conftest.$ac_ext >&5 980 ac_cv_prog_cc_works=no 981fi 982rm -fr conftest* 983ac_ext=c 984# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 985ac_cpp='$CPP $CPPFLAGS' 986ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 987ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 988cross_compiling=$ac_cv_prog_cc_cross 989 990echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 991if test $ac_cv_prog_cc_works = no; then 992 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 993fi 994echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 995echo "configure:996: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 996echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 997cross_compiling=$ac_cv_prog_cc_cross 998 999echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1000echo "configure:1001: checking whether we are using GNU C" >&5 1001if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1002 echo $ac_n "(cached) $ac_c" 1>&6 1003else 1004 cat > conftest.c <<EOF 1005#ifdef __GNUC__ 1006 yes; 1007#endif 1008EOF 1009if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1010 ac_cv_prog_gcc=yes 1011else 1012 ac_cv_prog_gcc=no 1013fi 1014fi 1015 1016echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1017 1018if test $ac_cv_prog_gcc = yes; then 1019 GCC=yes 1020else 1021 GCC= 1022fi 1023 1024ac_test_CFLAGS="${CFLAGS+set}" 1025ac_save_CFLAGS="$CFLAGS" 1026CFLAGS= 1027echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1028echo "configure:1029: checking whether ${CC-cc} accepts -g" >&5 1029if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1030 echo $ac_n "(cached) $ac_c" 1>&6 1031else 1032 echo 'void f(){}' > conftest.c 1033if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1034 ac_cv_prog_cc_g=yes 1035else 1036 ac_cv_prog_cc_g=no 1037fi 1038rm -f conftest* 1039 1040fi 1041 1042echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1043if test "$ac_test_CFLAGS" = set; then 1044 CFLAGS="$ac_save_CFLAGS" 1045elif test $ac_cv_prog_cc_g = yes; then 1046 if test "$GCC" = yes; then 1047 CFLAGS="-g -O2" 1048 else 1049 CFLAGS="-g" 1050 fi 1051else 1052 if test "$GCC" = yes; then 1053 CFLAGS="-O2" 1054 else 1055 CFLAGS= 1056 fi 1057fi 1058 1059# Find a good install program. We prefer a C program (faster), 1060# so one script is as good as another. But avoid the broken or 1061# incompatible versions: 1062# SysV /etc/install, /usr/sbin/install 1063# SunOS /usr/etc/install 1064# IRIX /sbin/install 1065# AIX /bin/install 1066# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1067# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1068# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1069# ./install, which can be erroneously created by make from ./install.sh. 1070echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1071echo "configure:1072: checking for a BSD compatible install" >&5 1072if test -z "$INSTALL"; then 1073if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1074 echo $ac_n "(cached) $ac_c" 1>&6 1075else 1076 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1077 for ac_dir in $PATH; do 1078 # Account for people who put trailing slashes in PATH elements. 1079 case "$ac_dir/" in 1080 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1081 *) 1082 # OSF1 and SCO ODT 3.0 have their own names for install. 1083 # Don't use installbsd from OSF since it installs stuff as root 1084 # by default. 1085 for ac_prog in ginstall scoinst install; do 1086 if test -f $ac_dir/$ac_prog; then 1087 if test $ac_prog = install && 1088 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1089 # AIX install. It has an incompatible calling convention. 1090 : 1091 else 1092 ac_cv_path_install="$ac_dir/$ac_prog -c" 1093 break 2 1094 fi 1095 fi 1096 done 1097 ;; 1098 esac 1099 done 1100 IFS="$ac_save_IFS" 1101 1102fi 1103 if test "${ac_cv_path_install+set}" = set; then 1104 INSTALL="$ac_cv_path_install" 1105 else 1106 # As a last resort, use the slow shell script. We don't cache a 1107 # path for INSTALL within a source directory, because that will 1108 # break other packages using the cache if that directory is 1109 # removed, or if the path is relative. 1110 INSTALL="$ac_install_sh" 1111 fi 1112fi 1113echo "$ac_t""$INSTALL" 1>&6 1114 1115# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1116# It thinks the first close brace ends the variable substitution. 1117test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1118 1119test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1120 1121test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1122 1123echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1124echo "configure:1125: checking whether ln -s works" >&5 1125if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1126 echo $ac_n "(cached) $ac_c" 1>&6 1127else 1128 rm -f conftestdata 1129if ln -s X conftestdata 2>/dev/null 1130then 1131 rm -f conftestdata 1132 ac_cv_prog_LN_S="ln -s" 1133else 1134 ac_cv_prog_LN_S=ln 1135fi 1136fi 1137LN_S="$ac_cv_prog_LN_S" 1138if test "$ac_cv_prog_LN_S" = "ln -s"; then 1139 echo "$ac_t""yes" 1>&6 1140else 1141 echo "$ac_t""no" 1>&6 1142fi 1143 1144 1145echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1146echo "configure:1147: checking how to run the C preprocessor" >&5 1147# On Suns, sometimes $CPP names a directory. 1148if test -n "$CPP" && test -d "$CPP"; then 1149 CPP= 1150fi 1151if test -z "$CPP"; then 1152if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1153 echo $ac_n "(cached) $ac_c" 1>&6 1154else 1155 # This must be in double quotes, not single quotes, because CPP may get 1156 # substituted into the Makefile and "${CC-cc}" will confuse make. 1157 CPP="${CC-cc} -E" 1158 # On the NeXT, cc -E runs the code through the compiler's parser, 1159 # not just through cpp. 1160 cat > conftest.$ac_ext <<EOF 1161#line 1162 "configure" 1162#include "confdefs.h" 1163#include <assert.h> 1164Syntax Error 1165EOF 1166ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1167{ (eval echo configure:1168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1168ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1169if test -z "$ac_err"; then 1170 : 1171else 1172 echo "$ac_err" >&5 1173 echo "configure: failed program was:" >&5 1174 cat conftest.$ac_ext >&5 1175 rm -rf conftest* 1176 CPP="${CC-cc} -E -traditional-cpp" 1177 cat > conftest.$ac_ext <<EOF 1178#line 1179 "configure" 1179#include "confdefs.h" 1180#include <assert.h> 1181Syntax Error 1182EOF 1183ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1184{ (eval echo configure:1185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1185ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1186if test -z "$ac_err"; then 1187 : 1188else 1189 echo "$ac_err" >&5 1190 echo "configure: failed program was:" >&5 1191 cat conftest.$ac_ext >&5 1192 rm -rf conftest* 1193 CPP="${CC-cc} -nologo -E" 1194 cat > conftest.$ac_ext <<EOF 1195#line 1196 "configure" 1196#include "confdefs.h" 1197#include <assert.h> 1198Syntax Error 1199EOF 1200ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1201{ (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1202ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1203if test -z "$ac_err"; then 1204 : 1205else 1206 echo "$ac_err" >&5 1207 echo "configure: failed program was:" >&5 1208 cat conftest.$ac_ext >&5 1209 rm -rf conftest* 1210 CPP=/lib/cpp 1211fi 1212rm -f conftest* 1213fi 1214rm -f conftest* 1215fi 1216rm -f conftest* 1217 ac_cv_prog_CPP="$CPP" 1218fi 1219 CPP="$ac_cv_prog_CPP" 1220else 1221 ac_cv_prog_CPP="$CPP" 1222fi 1223echo "$ac_t""$CPP" 1>&6 1224 1225echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1226echo "configure:1227: checking for ANSI C header files" >&5 1227if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1228 echo $ac_n "(cached) $ac_c" 1>&6 1229else 1230 cat > conftest.$ac_ext <<EOF 1231#line 1232 "configure" 1232#include "confdefs.h" 1233#include <stdlib.h> 1234#include <stdarg.h> 1235#include <string.h> 1236#include <float.h> 1237EOF 1238ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1239{ (eval echo configure:1240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1240ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1241if test -z "$ac_err"; then 1242 rm -rf conftest* 1243 ac_cv_header_stdc=yes 1244else 1245 echo "$ac_err" >&5 1246 echo "configure: failed program was:" >&5 1247 cat conftest.$ac_ext >&5 1248 rm -rf conftest* 1249 ac_cv_header_stdc=no 1250fi 1251rm -f conftest* 1252 1253if test $ac_cv_header_stdc = yes; then 1254 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1255cat > conftest.$ac_ext <<EOF 1256#line 1257 "configure" 1257#include "confdefs.h" 1258#include <string.h> 1259EOF 1260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1261 egrep "memchr" >/dev/null 2>&1; then 1262 : 1263else 1264 rm -rf conftest* 1265 ac_cv_header_stdc=no 1266fi 1267rm -f conftest* 1268 1269fi 1270 1271if test $ac_cv_header_stdc = yes; then 1272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1273cat > conftest.$ac_ext <<EOF 1274#line 1275 "configure" 1275#include "confdefs.h" 1276#include <stdlib.h> 1277EOF 1278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1279 egrep "free" >/dev/null 2>&1; then 1280 : 1281else 1282 rm -rf conftest* 1283 ac_cv_header_stdc=no 1284fi 1285rm -f conftest* 1286 1287fi 1288 1289if test $ac_cv_header_stdc = yes; then 1290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1291if test "$cross_compiling" = yes; then 1292 : 1293else 1294 cat > conftest.$ac_ext <<EOF 1295#line 1296 "configure" 1296#include "confdefs.h" 1297#include <ctype.h> 1298#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1299#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1300#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1301int main () { int i; for (i = 0; i < 256; i++) 1302if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1303exit (0); } 1304 1305EOF 1306if { (eval echo configure:1307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1307then 1308 : 1309else 1310 echo "configure: failed program was:" >&5 1311 cat conftest.$ac_ext >&5 1312 rm -fr conftest* 1313 ac_cv_header_stdc=no 1314fi 1315rm -fr conftest* 1316fi 1317 1318fi 1319fi 1320 1321echo "$ac_t""$ac_cv_header_stdc" 1>&6 1322if test $ac_cv_header_stdc = yes; then 1323 cat >> confdefs.h <<\EOF 1324#define STDC_HEADERS 1 1325EOF 1326 1327fi 1328 1329echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6 1330echo "configure:1331: checking whether sys/types.h defines makedev" >&5 1331if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then 1332 echo $ac_n "(cached) $ac_c" 1>&6 1333else 1334 cat > conftest.$ac_ext <<EOF 1335#line 1336 "configure" 1336#include "confdefs.h" 1337#include <sys/types.h> 1338int main() { 1339return makedev(0, 0); 1340; return 0; } 1341EOF 1342if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1343 rm -rf conftest* 1344 ac_cv_header_sys_types_h_makedev=yes 1345else 1346 echo "configure: failed program was:" >&5 1347 cat conftest.$ac_ext >&5 1348 rm -rf conftest* 1349 ac_cv_header_sys_types_h_makedev=no 1350fi 1351rm -f conftest* 1352 1353fi 1354 1355echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6 1356 1357if test $ac_cv_header_sys_types_h_makedev = no; then 1358ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'` 1359echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6 1360echo "configure:1361: checking for sys/mkdev.h" >&5 1361if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1362 echo $ac_n "(cached) $ac_c" 1>&6 1363else 1364 cat > conftest.$ac_ext <<EOF 1365#line 1366 "configure" 1366#include "confdefs.h" 1367#include <sys/mkdev.h> 1368EOF 1369ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1370{ (eval echo configure:1371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1371ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1372if test -z "$ac_err"; then 1373 rm -rf conftest* 1374 eval "ac_cv_header_$ac_safe=yes" 1375else 1376 echo "$ac_err" >&5 1377 echo "configure: failed program was:" >&5 1378 cat conftest.$ac_ext >&5 1379 rm -rf conftest* 1380 eval "ac_cv_header_$ac_safe=no" 1381fi 1382rm -f conftest* 1383fi 1384if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1385 echo "$ac_t""yes" 1>&6 1386 cat >> confdefs.h <<\EOF 1387#define MAJOR_IN_MKDEV 1 1388EOF 1389 1390else 1391 echo "$ac_t""no" 1>&6 1392fi 1393 1394 1395 if test $ac_cv_header_sys_mkdev_h = no; then 1396ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'` 1397echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6 1398echo "configure:1399: checking for sys/sysmacros.h" >&5 1399if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1400 echo $ac_n "(cached) $ac_c" 1>&6 1401else 1402 cat > conftest.$ac_ext <<EOF 1403#line 1404 "configure" 1404#include "confdefs.h" 1405#include <sys/sysmacros.h> 1406EOF 1407ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1408{ (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1409ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1410if test -z "$ac_err"; then 1411 rm -rf conftest* 1412 eval "ac_cv_header_$ac_safe=yes" 1413else 1414 echo "$ac_err" >&5 1415 echo "configure: failed program was:" >&5 1416 cat conftest.$ac_ext >&5 1417 rm -rf conftest* 1418 eval "ac_cv_header_$ac_safe=no" 1419fi 1420rm -f conftest* 1421fi 1422if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1423 echo "$ac_t""yes" 1>&6 1424 cat >> confdefs.h <<\EOF 1425#define MAJOR_IN_SYSMACROS 1 1426EOF 1427 1428else 1429 echo "$ac_t""no" 1>&6 1430fi 1431 1432 fi 1433fi 1434 1435echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1436echo "configure:1437: checking for sys/wait.h that is POSIX.1 compatible" >&5 1437if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1438 echo $ac_n "(cached) $ac_c" 1>&6 1439else 1440 cat > conftest.$ac_ext <<EOF 1441#line 1442 "configure" 1442#include "confdefs.h" 1443#include <sys/types.h> 1444#include <sys/wait.h> 1445#ifndef WEXITSTATUS 1446#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 1447#endif 1448#ifndef WIFEXITED 1449#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 1450#endif 1451int main() { 1452int s; 1453wait (&s); 1454s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 1455; return 0; } 1456EOF 1457if { (eval echo configure:1458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1458 rm -rf conftest* 1459 ac_cv_header_sys_wait_h=yes 1460else 1461 echo "configure: failed program was:" >&5 1462 cat conftest.$ac_ext >&5 1463 rm -rf conftest* 1464 ac_cv_header_sys_wait_h=no 1465fi 1466rm -f conftest* 1467fi 1468 1469echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 1470if test $ac_cv_header_sys_wait_h = yes; then 1471 cat >> confdefs.h <<\EOF 1472#define HAVE_SYS_WAIT_H 1 1473EOF 1474 1475fi 1476 1477for ac_hdr in unistd.h 1478do 1479ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1480echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1481echo "configure:1482: checking for $ac_hdr" >&5 1482if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1483 echo $ac_n "(cached) $ac_c" 1>&6 1484else 1485 cat > conftest.$ac_ext <<EOF 1486#line 1487 "configure" 1487#include "confdefs.h" 1488#include <$ac_hdr> 1489EOF 1490ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1491{ (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1492ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1493if test -z "$ac_err"; then 1494 rm -rf conftest* 1495 eval "ac_cv_header_$ac_safe=yes" 1496else 1497 echo "$ac_err" >&5 1498 echo "configure: failed program was:" >&5 1499 cat conftest.$ac_ext >&5 1500 rm -rf conftest* 1501 eval "ac_cv_header_$ac_safe=no" 1502fi 1503rm -f conftest* 1504fi 1505if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1506 echo "$ac_t""yes" 1>&6 1507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1508 cat >> confdefs.h <<EOF 1509#define $ac_tr_hdr 1 1510EOF 1511 1512else 1513 echo "$ac_t""no" 1>&6 1514fi 1515done 1516 1517for ac_hdr in locale.h 1518do 1519ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1520echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1521echo "configure:1522: checking for $ac_hdr" >&5 1522if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1523 echo $ac_n "(cached) $ac_c" 1>&6 1524else 1525 cat > conftest.$ac_ext <<EOF 1526#line 1527 "configure" 1527#include "confdefs.h" 1528#include <$ac_hdr> 1529EOF 1530ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1531{ (eval echo configure:1532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1532ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1533if test -z "$ac_err"; then 1534 rm -rf conftest* 1535 eval "ac_cv_header_$ac_safe=yes" 1536else 1537 echo "$ac_err" >&5 1538 echo "configure: failed program was:" >&5 1539 cat conftest.$ac_ext >&5 1540 rm -rf conftest* 1541 eval "ac_cv_header_$ac_safe=no" 1542fi 1543rm -f conftest* 1544fi 1545if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1546 echo "$ac_t""yes" 1>&6 1547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1548 cat >> confdefs.h <<EOF 1549#define $ac_tr_hdr 1 1550EOF 1551 1552else 1553 echo "$ac_t""no" 1>&6 1554fi 1555done 1556 1557 1558echo $ac_n "checking for working const""... $ac_c" 1>&6 1559echo "configure:1560: checking for working const" >&5 1560if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1561 echo $ac_n "(cached) $ac_c" 1>&6 1562else 1563 cat > conftest.$ac_ext <<EOF 1564#line 1565 "configure" 1565#include "confdefs.h" 1566 1567int main() { 1568 1569/* Ultrix mips cc rejects this. */ 1570typedef int charset[2]; const charset x; 1571/* SunOS 4.1.1 cc rejects this. */ 1572char const *const *ccp; 1573char **p; 1574/* NEC SVR4.0.2 mips cc rejects this. */ 1575struct point {int x, y;}; 1576static struct point const zero = {0,0}; 1577/* AIX XL C 1.02.0.0 rejects this. 1578 It does not let you subtract one const X* pointer from another in an arm 1579 of an if-expression whose if-part is not a constant expression */ 1580const char *g = "string"; 1581ccp = &g + (g ? g-g : 0); 1582/* HPUX 7.0 cc rejects these. */ 1583++ccp; 1584p = (char**) ccp; 1585ccp = (char const *const *) p; 1586{ /* SCO 3.2v4 cc rejects this. */ 1587 char *t; 1588 char const *s = 0 ? (char *) 0 : (char const *) 0; 1589 1590 *t++ = 0; 1591} 1592{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1593 int x[] = {25, 17}; 1594 const int *foo = &x[0]; 1595 ++foo; 1596} 1597{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1598 typedef const int *iptr; 1599 iptr p = 0; 1600 ++p; 1601} 1602{ /* AIX XL C 1.02.0.0 rejects this saying 1603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1604 struct s { int j; const int *ap[3]; }; 1605 struct s *b; b->j = 5; 1606} 1607{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1608 const int foo = 10; 1609} 1610 1611; return 0; } 1612EOF 1613if { (eval echo configure:1614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1614 rm -rf conftest* 1615 ac_cv_c_const=yes 1616else 1617 echo "configure: failed program was:" >&5 1618 cat conftest.$ac_ext >&5 1619 rm -rf conftest* 1620 ac_cv_c_const=no 1621fi 1622rm -f conftest* 1623fi 1624 1625echo "$ac_t""$ac_cv_c_const" 1>&6 1626if test $ac_cv_c_const = no; then 1627 cat >> confdefs.h <<\EOF 1628#define const 1629EOF 1630 1631fi 1632 1633echo $ac_n "checking for off_t""... $ac_c" 1>&6 1634echo "configure:1635: checking for off_t" >&5 1635if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 1636 echo $ac_n "(cached) $ac_c" 1>&6 1637else 1638 cat > conftest.$ac_ext <<EOF 1639#line 1640 "configure" 1640#include "confdefs.h" 1641#include <sys/types.h> 1642#if STDC_HEADERS 1643#include <stdlib.h> 1644#include <stddef.h> 1645#endif 1646EOF 1647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1648 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1649 rm -rf conftest* 1650 ac_cv_type_off_t=yes 1651else 1652 rm -rf conftest* 1653 ac_cv_type_off_t=no 1654fi 1655rm -f conftest* 1656 1657fi 1658echo "$ac_t""$ac_cv_type_off_t" 1>&6 1659if test $ac_cv_type_off_t = no; then 1660 cat >> confdefs.h <<\EOF 1661#define off_t long 1662EOF 1663 1664fi 1665 1666echo $ac_n "checking for size_t""... $ac_c" 1>&6 1667echo "configure:1668: checking for size_t" >&5 1668if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 1669 echo $ac_n "(cached) $ac_c" 1>&6 1670else 1671 cat > conftest.$ac_ext <<EOF 1672#line 1673 "configure" 1673#include "confdefs.h" 1674#include <sys/types.h> 1675#if STDC_HEADERS 1676#include <stdlib.h> 1677#include <stddef.h> 1678#endif 1679EOF 1680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1681 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1682 rm -rf conftest* 1683 ac_cv_type_size_t=yes 1684else 1685 rm -rf conftest* 1686 ac_cv_type_size_t=no 1687fi 1688rm -f conftest* 1689 1690fi 1691echo "$ac_t""$ac_cv_type_size_t" 1>&6 1692if test $ac_cv_type_size_t = no; then 1693 cat >> confdefs.h <<\EOF 1694#define size_t unsigned 1695EOF 1696 1697fi 1698 1699echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 1700echo "configure:1701: checking for st_rdev in struct stat" >&5 1701if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then 1702 echo $ac_n "(cached) $ac_c" 1>&6 1703else 1704 cat > conftest.$ac_ext <<EOF 1705#line 1706 "configure" 1706#include "confdefs.h" 1707#include <sys/types.h> 1708#include <sys/stat.h> 1709int main() { 1710struct stat s; s.st_rdev; 1711; return 0; } 1712EOF 1713if { (eval echo configure:1714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1714 rm -rf conftest* 1715 ac_cv_struct_st_rdev=yes 1716else 1717 echo "configure: failed program was:" >&5 1718 cat conftest.$ac_ext >&5 1719 rm -rf conftest* 1720 ac_cv_struct_st_rdev=no 1721fi 1722rm -f conftest* 1723fi 1724 1725echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 1726if test $ac_cv_struct_st_rdev = yes; then 1727 cat >> confdefs.h <<\EOF 1728#define HAVE_ST_RDEV 1 1729EOF 1730 1731fi 1732 1733 1734echo $ac_n "checking for uint8_t""... $ac_c" 1>&6 1735echo "configure:1736: checking for uint8_t" >&5 1736if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then 1737 echo $ac_n "(cached) $ac_c" 1>&6 1738else 1739 cat > conftest.$ac_ext <<EOF 1740#line 1741 "configure" 1741#include "confdefs.h" 1742#include <sys/types.h> 1743#if STDC_HEADERS 1744#include <stdlib.h> 1745#include <stddef.h> 1746#endif 1747EOF 1748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1749 egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1750 rm -rf conftest* 1751 ac_cv_type_uint8_t=yes 1752else 1753 rm -rf conftest* 1754 ac_cv_type_uint8_t=no 1755fi 1756rm -f conftest* 1757 1758fi 1759echo "$ac_t""$ac_cv_type_uint8_t" 1>&6 1760if test $ac_cv_type_uint8_t = no; then 1761 cat >> confdefs.h <<\EOF 1762#define uint8_t unsigned char 1763EOF 1764 1765fi 1766 1767echo $ac_n "checking for uint16_t""... $ac_c" 1>&6 1768echo "configure:1769: checking for uint16_t" >&5 1769if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then 1770 echo $ac_n "(cached) $ac_c" 1>&6 1771else 1772 cat > conftest.$ac_ext <<EOF 1773#line 1774 "configure" 1774#include "confdefs.h" 1775#include <sys/types.h> 1776#if STDC_HEADERS 1777#include <stdlib.h> 1778#include <stddef.h> 1779#endif 1780EOF 1781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1782 egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1783 rm -rf conftest* 1784 ac_cv_type_uint16_t=yes 1785else 1786 rm -rf conftest* 1787 ac_cv_type_uint16_t=no 1788fi 1789rm -f conftest* 1790 1791fi 1792echo "$ac_t""$ac_cv_type_uint16_t" 1>&6 1793if test $ac_cv_type_uint16_t = no; then 1794 cat >> confdefs.h <<\EOF 1795#define uint16_t unsigned short 1796EOF 1797 1798fi 1799 1800echo $ac_n "checking for uint32_t""... $ac_c" 1>&6 1801echo "configure:1802: checking for uint32_t" >&5 1802if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then 1803 echo $ac_n "(cached) $ac_c" 1>&6 1804else 1805 cat > conftest.$ac_ext <<EOF 1806#line 1807 "configure" 1807#include "confdefs.h" 1808#include <sys/types.h> 1809#if STDC_HEADERS 1810#include <stdlib.h> 1811#include <stddef.h> 1812#endif 1813EOF 1814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1815 egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1816 rm -rf conftest* 1817 ac_cv_type_uint32_t=yes 1818else 1819 rm -rf conftest* 1820 ac_cv_type_uint32_t=no 1821fi 1822rm -f conftest* 1823 1824fi 1825echo "$ac_t""$ac_cv_type_uint32_t" 1>&6 1826if test $ac_cv_type_uint32_t = no; then 1827 cat >> confdefs.h <<\EOF 1828#define uint32_t unsigned int 1829EOF 1830 1831fi 1832 1833 1834echo $ac_n "checking for long long""... $ac_c" 1>&6 1835echo "configure:1836: checking for long long" >&5 1836if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then 1837 echo $ac_n "(cached) $ac_c" 1>&6 1838else 1839 if test "$GCC" = yes; then 1840 ac_cv_c_long_long=yes 1841else 1842if test "$cross_compiling" = yes; then 1843 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 1844else 1845 cat > conftest.$ac_ext <<EOF 1846#line 1847 "configure" 1847#include "confdefs.h" 1848int main() { 1849long long foo = 0; 1850exit(sizeof(long long) < sizeof(long)); } 1851EOF 1852if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1853then 1854 ac_cv_c_long_long=yes 1855else 1856 echo "configure: failed program was:" >&5 1857 cat conftest.$ac_ext >&5 1858 rm -fr conftest* 1859 ac_cv_c_long_long=no 1860fi 1861rm -fr conftest* 1862fi 1863 1864fi 1865fi 1866 1867echo "$ac_t""$ac_cv_c_long_long" 1>&6 1868if test $ac_cv_c_long_long = yes; then 1869 cat >> confdefs.h <<\EOF 1870#define HAVE_LONG_LONG 1 1871EOF 1872 1873fi 1874 1875if test $ac_cv_c_long_long = yes; then 1876 long64='unsigned long long'; 1877else 1878 long64='unsigned long'; 1879fi 1880echo $ac_n "checking for uint64_t""... $ac_c" 1>&6 1881echo "configure:1882: checking for uint64_t" >&5 1882if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then 1883 echo $ac_n "(cached) $ac_c" 1>&6 1884else 1885 cat > conftest.$ac_ext <<EOF 1886#line 1887 "configure" 1887#include "confdefs.h" 1888#include <sys/types.h> 1889#if STDC_HEADERS 1890#include <stdlib.h> 1891#include <stddef.h> 1892#endif 1893EOF 1894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1895 egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1896 rm -rf conftest* 1897 eval "ac_cv_type_uint64_t=yes" 1898else 1899 rm -rf conftest* 1900 eval "ac_cv_type_uint64_t=no" 1901fi 1902rm -f conftest* 1903 1904fi 1905if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then 1906 echo "$ac_t""yes" 1>&6 1907else 1908 echo "$ac_t""no" 1>&6 1909 cat >> confdefs.h <<EOF 1910#define uint64_t $long64 1911EOF 1912 1913fi 1914 1915 1916echo $ac_n "checking size of uint8_t""... $ac_c" 1>&6 1917echo "configure:1918: checking size of uint8_t" >&5 1918if eval "test \"`echo '$''{'ac_cv_sizeof_uint8_t'+set}'`\" = set"; then 1919 echo $ac_n "(cached) $ac_c" 1>&6 1920else 1921 if test "$cross_compiling" = yes; then 1922 ac_cv_sizeof_uint8_t=0 1923else 1924 cat > conftest.$ac_ext <<EOF 1925#line 1926 "configure" 1926#include "confdefs.h" 1927#include <sys/types.h> 1928#ifdef STDC_HEADERS 1929#include <stdlib.h> 1930#endif 1931 1932#include <stdio.h> 1933main() 1934{ 1935 FILE *f=fopen("conftestval", "w"); 1936 if (!f) exit(1); 1937 fprintf(f, "%d\n", sizeof(uint8_t)); 1938 exit(0); 1939} 1940EOF 1941if { (eval echo configure:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1942then 1943 ac_cv_sizeof_uint8_t=`cat conftestval` 1944else 1945 echo "configure: failed program was:" >&5 1946 cat conftest.$ac_ext >&5 1947 rm -fr conftest* 1948 ac_cv_sizeof_uint8_t=0 1949fi 1950rm -fr conftest* 1951fi 1952 1953fi 1954echo "$ac_t""$ac_cv_sizeof_uint8_t" 1>&6 1955cat >> confdefs.h <<EOF 1956#define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t 1957EOF 1958 1959 1960 1961echo $ac_n "checking size of uint16_t""... $ac_c" 1>&6 1962echo "configure:1963: checking size of uint16_t" >&5 1963if eval "test \"`echo '$''{'ac_cv_sizeof_uint16_t'+set}'`\" = set"; then 1964 echo $ac_n "(cached) $ac_c" 1>&6 1965else 1966 if test "$cross_compiling" = yes; then 1967 ac_cv_sizeof_uint16_t=0 1968else 1969 cat > conftest.$ac_ext <<EOF 1970#line 1971 "configure" 1971#include "confdefs.h" 1972#include <sys/types.h> 1973#ifdef STDC_HEADERS 1974#include <stdlib.h> 1975#endif 1976 1977#include <stdio.h> 1978main() 1979{ 1980 FILE *f=fopen("conftestval", "w"); 1981 if (!f) exit(1); 1982 fprintf(f, "%d\n", sizeof(uint16_t)); 1983 exit(0); 1984} 1985EOF 1986if { (eval echo configure:1987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1987then 1988 ac_cv_sizeof_uint16_t=`cat conftestval` 1989else 1990 echo "configure: failed program was:" >&5 1991 cat conftest.$ac_ext >&5 1992 rm -fr conftest* 1993 ac_cv_sizeof_uint16_t=0 1994fi 1995rm -fr conftest* 1996fi 1997 1998fi 1999echo "$ac_t""$ac_cv_sizeof_uint16_t" 1>&6 2000cat >> confdefs.h <<EOF 2001#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t 2002EOF 2003 2004 2005 2006echo $ac_n "checking size of uint32_t""... $ac_c" 1>&6 2007echo "configure:2008: checking size of uint32_t" >&5 2008if eval "test \"`echo '$''{'ac_cv_sizeof_uint32_t'+set}'`\" = set"; then 2009 echo $ac_n "(cached) $ac_c" 1>&6 2010else 2011 if test "$cross_compiling" = yes; then 2012 ac_cv_sizeof_uint32_t=0 2013else 2014 cat > conftest.$ac_ext <<EOF 2015#line 2016 "configure" 2016#include "confdefs.h" 2017#include <sys/types.h> 2018#ifdef STDC_HEADERS 2019#include <stdlib.h> 2020#endif 2021 2022#include <stdio.h> 2023main() 2024{ 2025 FILE *f=fopen("conftestval", "w"); 2026 if (!f) exit(1); 2027 fprintf(f, "%d\n", sizeof(uint32_t)); 2028 exit(0); 2029} 2030EOF 2031if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2032then 2033 ac_cv_sizeof_uint32_t=`cat conftestval` 2034else 2035 echo "configure: failed program was:" >&5 2036 cat conftest.$ac_ext >&5 2037 rm -fr conftest* 2038 ac_cv_sizeof_uint32_t=0 2039fi 2040rm -fr conftest* 2041fi 2042 2043fi 2044echo "$ac_t""$ac_cv_sizeof_uint32_t" 1>&6 2045cat >> confdefs.h <<EOF 2046#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t 2047EOF 2048 2049 2050 2051echo $ac_n "checking size of uint64_t""... $ac_c" 1>&6 2052echo "configure:2053: checking size of uint64_t" >&5 2053if eval "test \"`echo '$''{'ac_cv_sizeof_uint64_t'+set}'`\" = set"; then 2054 echo $ac_n "(cached) $ac_c" 1>&6 2055else 2056 if test "$cross_compiling" = yes; then 2057 ac_cv_sizeof_uint64_t=0 2058else 2059 cat > conftest.$ac_ext <<EOF 2060#line 2061 "configure" 2061#include "confdefs.h" 2062#include <sys/types.h> 2063#ifdef STDC_HEADERS 2064#include <stdlib.h> 2065#endif 2066 2067#include <stdio.h> 2068main() 2069{ 2070 FILE *f=fopen("conftestval", "w"); 2071 if (!f) exit(1); 2072 fprintf(f, "%d\n", sizeof(uint64_t)); 2073 exit(0); 2074} 2075EOF 2076if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2077then 2078 ac_cv_sizeof_uint64_t=`cat conftestval` 2079else 2080 echo "configure: failed program was:" >&5 2081 cat conftest.$ac_ext >&5 2082 rm -fr conftest* 2083 ac_cv_sizeof_uint64_t=0 2084fi 2085rm -fr conftest* 2086fi 2087 2088fi 2089echo "$ac_t""$ac_cv_sizeof_uint64_t" 1>&6 2090cat >> confdefs.h <<EOF 2091#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t 2092EOF 2093 2094 2095 2096 2097for ac_func in strerror strtoul 2098do 2099echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2100echo "configure:2101: checking for $ac_func" >&5 2101if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2102 echo $ac_n "(cached) $ac_c" 1>&6 2103else 2104 cat > conftest.$ac_ext <<EOF 2105#line 2106 "configure" 2106#include "confdefs.h" 2107/* System header to define __stub macros and hopefully few prototypes, 2108 which can conflict with char $ac_func(); below. */ 2109#include <assert.h> 2110/* Override any gcc2 internal prototype to avoid an error. */ 2111/* We use char because int might match the return type of a gcc2 2112 builtin and then its argument prototype would still apply. */ 2113char $ac_func(); 2114 2115int main() { 2116 2117/* The GNU C library defines this for functions which it implements 2118 to always fail with ENOSYS. Some functions are actually named 2119 something starting with __ and the normal name is an alias. */ 2120#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2121choke me 2122#else 2123$ac_func(); 2124#endif 2125 2126; return 0; } 2127EOF 2128if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2129 rm -rf conftest* 2130 eval "ac_cv_func_$ac_func=yes" 2131else 2132 echo "configure: failed program was:" >&5 2133 cat conftest.$ac_ext >&5 2134 rm -rf conftest* 2135 eval "ac_cv_func_$ac_func=no" 2136fi 2137rm -f conftest* 2138fi 2139 2140if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2141 echo "$ac_t""yes" 1>&6 2142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2143 cat >> confdefs.h <<EOF 2144#define $ac_tr_func 1 2145EOF 2146 2147else 2148 echo "$ac_t""no" 1>&6 2149fi 2150done 2151 2152 2153trap '' 1 2 15 2154cat > confcache <<\EOF 2155# This file is a shell script that caches the results of configure 2156# tests run on this system so they can be shared between configure 2157# scripts and configure runs. It is not useful on other systems. 2158# If it contains results you don't want to keep, you may remove or edit it. 2159# 2160# By default, configure uses ./config.cache as the cache file, 2161# creating it if it does not exist already. You can give configure 2162# the --cache-file=FILE option to use a different cache file; that is 2163# what configure does when it calls configure scripts in 2164# subdirectories, so they share the cache. 2165# Giving --cache-file=/dev/null disables caching, for debugging configure. 2166# config.status only pays attention to the cache file if you give it the 2167# --recheck option to rerun configure. 2168# 2169EOF 2170# The following way of writing the cache mishandles newlines in values, 2171# but we know of no workaround that is simple, portable, and efficient. 2172# So, don't put newlines in cache variables' values. 2173# Ultrix sh set writes to stderr and can't be redirected directly, 2174# and sets the high bit in the cache file unless we assign to the vars. 2175(set) 2>&1 | 2176 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2177 *ac_space=\ *) 2178 # `set' does not quote correctly, so add quotes (double-quote substitution 2179 # turns \\\\ into \\, and sed turns \\ into \). 2180 sed -n \ 2181 -e "s/'/'\\\\''/g" \ 2182 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2183 ;; 2184 *) 2185 # `set' quotes correctly as required by POSIX, so do not add quotes. 2186 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2187 ;; 2188 esac >> confcache 2189if cmp -s $cache_file confcache; then 2190 : 2191else 2192 if test -w $cache_file; then 2193 echo "updating cache $cache_file" 2194 cat confcache > $cache_file 2195 else 2196 echo "not updating unwritable cache $cache_file" 2197 fi 2198fi 2199rm -f confcache 2200 2201trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2202 2203test "x$prefix" = xNONE && prefix=$ac_default_prefix 2204# Let make expand exec_prefix. 2205test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2206 2207# Any assignment to VPATH causes Sun make to only execute 2208# the first set of double-colon rules, so remove it if not needed. 2209# If there is a colon in the path, we need to keep it. 2210if test "x$srcdir" = x.; then 2211 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2212fi 2213 2214trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2215 2216DEFS=-DHAVE_CONFIG_H 2217 2218# Without the "./", some shells look in PATH for config.status. 2219: ${CONFIG_STATUS=./config.status} 2220 2221echo creating $CONFIG_STATUS 2222rm -f $CONFIG_STATUS 2223cat > $CONFIG_STATUS <<EOF 2224#! /bin/sh 2225# Generated automatically by configure. 2226# Run this file to recreate the current configuration. 2227# This directory was configured as follows, 2228# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2229# 2230# $0 $ac_configure_args 2231# 2232# Compiler output produced by configure, useful for debugging 2233# configure, is in ./config.log if it exists. 2234 2235ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2236for ac_option 2237do 2238 case "\$ac_option" in 2239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2240 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2241 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2242 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2243 echo "$CONFIG_STATUS generated by autoconf version 2.13" 2244 exit 0 ;; 2245 -help | --help | --hel | --he | --h) 2246 echo "\$ac_cs_usage"; exit 0 ;; 2247 *) echo "\$ac_cs_usage"; exit 1 ;; 2248 esac 2249done 2250 2251ac_given_srcdir=$srcdir 2252ac_given_INSTALL="$INSTALL" 2253 2254trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2255EOF 2256cat >> $CONFIG_STATUS <<EOF 2257 2258# Protect against being on the right side of a sed subst in config.status. 2259sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2260 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2261$ac_vpsub 2262$extrasub 2263s%@SHELL@%$SHELL%g 2264s%@CFLAGS@%$CFLAGS%g 2265s%@CPPFLAGS@%$CPPFLAGS%g 2266s%@CXXFLAGS@%$CXXFLAGS%g 2267s%@FFLAGS@%$FFLAGS%g 2268s%@DEFS@%$DEFS%g 2269s%@LDFLAGS@%$LDFLAGS%g 2270s%@LIBS@%$LIBS%g 2271s%@exec_prefix@%$exec_prefix%g 2272s%@prefix@%$prefix%g 2273s%@program_transform_name@%$program_transform_name%g 2274s%@bindir@%$bindir%g 2275s%@sbindir@%$sbindir%g 2276s%@libexecdir@%$libexecdir%g 2277s%@datadir@%$datadir%g 2278s%@sysconfdir@%$sysconfdir%g 2279s%@sharedstatedir@%$sharedstatedir%g 2280s%@localstatedir@%$localstatedir%g 2281s%@libdir@%$libdir%g 2282s%@includedir@%$includedir%g 2283s%@oldincludedir@%$oldincludedir%g 2284s%@infodir@%$infodir%g 2285s%@mandir@%$mandir%g 2286s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2287s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2288s%@INSTALL_DATA@%$INSTALL_DATA%g 2289s%@PACKAGE@%$PACKAGE%g 2290s%@VERSION@%$VERSION%g 2291s%@ACLOCAL@%$ACLOCAL%g 2292s%@AUTOCONF@%$AUTOCONF%g 2293s%@AUTOMAKE@%$AUTOMAKE%g 2294s%@AUTOHEADER@%$AUTOHEADER%g 2295s%@MAKEINFO@%$MAKEINFO%g 2296s%@SET_MAKE@%$SET_MAKE%g 2297s%@CC@%$CC%g 2298s%@LN_S@%$LN_S%g 2299s%@CPP@%$CPP%g 2300 2301CEOF 2302EOF 2303 2304cat >> $CONFIG_STATUS <<\EOF 2305 2306# Split the substitutions into bite-sized pieces for seds with 2307# small command number limits, like on Digital OSF/1 and HP-UX. 2308ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2309ac_file=1 # Number of current file. 2310ac_beg=1 # First line for current file. 2311ac_end=$ac_max_sed_cmds # Line after last line for current file. 2312ac_more_lines=: 2313ac_sed_cmds="" 2314while $ac_more_lines; do 2315 if test $ac_beg -gt 1; then 2316 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2317 else 2318 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2319 fi 2320 if test ! -s conftest.s$ac_file; then 2321 ac_more_lines=false 2322 rm -f conftest.s$ac_file 2323 else 2324 if test -z "$ac_sed_cmds"; then 2325 ac_sed_cmds="sed -f conftest.s$ac_file" 2326 else 2327 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2328 fi 2329 ac_file=`expr $ac_file + 1` 2330 ac_beg=$ac_end 2331 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2332 fi 2333done 2334if test -z "$ac_sed_cmds"; then 2335 ac_sed_cmds=cat 2336fi 2337EOF 2338 2339cat >> $CONFIG_STATUS <<EOF 2340 2341CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2342EOF 2343cat >> $CONFIG_STATUS <<\EOF 2344for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2345 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2346 case "$ac_file" in 2347 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2348 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2349 *) ac_file_in="${ac_file}.in" ;; 2350 esac 2351 2352 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2353 2354 # Remove last slash and all that follows it. Not all systems have dirname. 2355 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2356 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2357 # The file is in a subdirectory. 2358 test ! -d "$ac_dir" && mkdir "$ac_dir" 2359 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2360 # A "../" for each directory in $ac_dir_suffix. 2361 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2362 else 2363 ac_dir_suffix= ac_dots= 2364 fi 2365 2366 case "$ac_given_srcdir" in 2367 .) srcdir=. 2368 if test -z "$ac_dots"; then top_srcdir=. 2369 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2370 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2371 *) # Relative path. 2372 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2373 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2374 esac 2375 2376 case "$ac_given_INSTALL" in 2377 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2378 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2379 esac 2380 2381 echo creating "$ac_file" 2382 rm -f "$ac_file" 2383 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2384 case "$ac_file" in 2385 *Makefile*) ac_comsub="1i\\ 2386# $configure_input" ;; 2387 *) ac_comsub= ;; 2388 esac 2389 2390 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2391 sed -e "$ac_comsub 2392s%@configure_input@%$configure_input%g 2393s%@srcdir@%$srcdir%g 2394s%@top_srcdir@%$top_srcdir%g 2395s%@INSTALL@%$INSTALL%g 2396" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2397fi; done 2398rm -f conftest.s* 2399 2400# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2401# NAME is the cpp macro being defined and VALUE is the value it is being given. 2402# 2403# ac_d sets the value in "#define NAME VALUE" lines. 2404ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2405ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2406ac_dC='\3' 2407ac_dD='%g' 2408# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2409ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2410ac_uB='\([ ]\)%\1#\2define\3' 2411ac_uC=' ' 2412ac_uD='\4%g' 2413# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2414ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2415ac_eB='$%\1#\2define\3' 2416ac_eC=' ' 2417ac_eD='%g' 2418 2419if test "${CONFIG_HEADERS+set}" != set; then 2420EOF 2421cat >> $CONFIG_STATUS <<EOF 2422 CONFIG_HEADERS="config.h" 2423EOF 2424cat >> $CONFIG_STATUS <<\EOF 2425fi 2426for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2427 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2428 case "$ac_file" in 2429 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2430 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2431 *) ac_file_in="${ac_file}.in" ;; 2432 esac 2433 2434 echo creating $ac_file 2435 2436 rm -f conftest.frag conftest.in conftest.out 2437 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2438 cat $ac_file_inputs > conftest.in 2439 2440EOF 2441 2442# Transform confdefs.h into a sed script conftest.vals that substitutes 2443# the proper values into config.h.in to produce config.h. And first: 2444# Protect against being on the right side of a sed subst in config.status. 2445# Protect against being in an unquoted here document in config.status. 2446rm -f conftest.vals 2447cat > conftest.hdr <<\EOF 2448s/[\\&%]/\\&/g 2449s%[\\$`]%\\&%g 2450s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2451s%ac_d%ac_u%gp 2452s%ac_u%ac_e%gp 2453EOF 2454sed -n -f conftest.hdr confdefs.h > conftest.vals 2455rm -f conftest.hdr 2456 2457# This sed command replaces #undef with comments. This is necessary, for 2458# example, in the case of _POSIX_SOURCE, which is predefined and required 2459# on some systems where configure will not decide to define it. 2460cat >> conftest.vals <<\EOF 2461s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2462EOF 2463 2464# Break up conftest.vals because some shells have a limit on 2465# the size of here documents, and old seds have small limits too. 2466 2467rm -f conftest.tail 2468while : 2469do 2470 ac_lines=`grep -c . conftest.vals` 2471 # grep -c gives empty output for an empty file on some AIX systems. 2472 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2473 # Write a limited-size here document to conftest.frag. 2474 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2475 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2476 echo 'CEOF 2477 sed -f conftest.frag conftest.in > conftest.out 2478 rm -f conftest.in 2479 mv conftest.out conftest.in 2480' >> $CONFIG_STATUS 2481 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2482 rm -f conftest.vals 2483 mv conftest.tail conftest.vals 2484done 2485rm -f conftest.vals 2486 2487cat >> $CONFIG_STATUS <<\EOF 2488 rm -f conftest.frag conftest.h 2489 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2490 cat conftest.in >> conftest.h 2491 rm -f conftest.in 2492 if cmp -s $ac_file conftest.h 2>/dev/null; then 2493 echo "$ac_file is unchanged" 2494 rm -f conftest.h 2495 else 2496 # Remove last slash and all that follows it. Not all systems have dirname. 2497 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2498 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2499 # The file is in a subdirectory. 2500 test ! -d "$ac_dir" && mkdir "$ac_dir" 2501 fi 2502 rm -f $ac_file 2503 mv conftest.h $ac_file 2504 fi 2505fi; done 2506 2507EOF 2508cat >> $CONFIG_STATUS <<EOF 2509 2510 2511EOF 2512cat >> $CONFIG_STATUS <<\EOF 2513test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 2514 2515exit 0 2516EOF 2517chmod +x $CONFIG_STATUS 2518rm -fr confdefs* $ac_clean_files 2519test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2520 2521