1 #! /bin/sh 2 # From configure.ac Revision . 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.59 for libconfig 0.9.9. 5 # 6 # Copyright (C) 2003 Free Software Foundation, Inc. 7 # This configure script is free software; the Free Software Foundation 8 # gives unlimited permission to copy, distribute and modify it. 9 ## --------------------- ## 10 ## M4sh Initialization. ## 11 ## --------------------- ## 12 13 # Be Bourne compatible 14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22 fi 23 DUALCASE=1; export DUALCASE # for MKS sh 24 25 # Support unset when possible. 26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 27 as_unset=unset 28 else 29 as_unset=false 30 fi 31 32 33 # Work around bugs in pre-3.0 UWIN ksh. 34 $as_unset ENV MAIL MAILPATH 35 PS1='$ ' 36 PS2='> ' 37 PS4='+ ' 38 39 # NLS nuisances. 40 for as_var in \ 41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 43 LC_TELEPHONE LC_TIME 44 do 45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 46 eval $as_var=C; export $as_var 47 else 48 $as_unset $as_var 49 fi 50 done 51 52 # Required to use basename. 53 if expr a : '\(a\)' >/dev/null 2>&1; then 54 as_expr=expr 55 else 56 as_expr=false 57 fi 58 59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 60 as_basename=basename 61 else 62 as_basename=false 63 fi 64 65 66 # Name of the executable. 67 as_me=`$as_basename "$0" || 68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69 X"$0" : 'X\(//\)$' \| \ 70 X"$0" : 'X\(/\)$' \| \ 71 . : '\(.\)' 2>/dev/null || 72 echo X/"$0" | 73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 74 /^X\/\(\/\/\)$/{ s//\1/; q; } 75 /^X\/\(\/\).*/{ s//\1/; q; } 76 s/.*/./; q'` 77 78 79 # PATH needs CR, and LINENO needs CR and PATH. 80 # Avoid depending upon Character Ranges. 81 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 84 as_cr_digits='0123456789' 85 as_cr_alnum=$as_cr_Letters$as_cr_digits 86 87 # The user is always right. 88 if test "${PATH_SEPARATOR+set}" != set; then 89 echo "#! /bin/sh" >conf$$.sh 90 echo "exit 0" >>conf$$.sh 91 chmod +x conf$$.sh 92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 93 PATH_SEPARATOR=';' 94 else 95 PATH_SEPARATOR=: 96 fi 97 rm -f conf$$.sh 98 fi 99 100 101 as_lineno_1=$LINENO 102 as_lineno_2=$LINENO 103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 104 test "x$as_lineno_1" != "x$as_lineno_2" && 105 test "x$as_lineno_3" = "x$as_lineno_2" || { 106 # Find who we are. Look in the path if we contain no path at all 107 # relative or not. 108 case $0 in 109 *[\\/]* ) as_myself=$0 ;; 110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 111 for as_dir in $PATH 112 do 113 IFS=$as_save_IFS 114 test -z "$as_dir" && as_dir=. 115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 116 done 117 118 ;; 119 esac 120 # We did not find ourselves, most probably we were run as `sh COMMAND' 121 # in which case we are not to be found in the path. 122 if test "x$as_myself" = x; then 123 as_myself=$0 124 fi 125 if test ! -f "$as_myself"; then 126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 127 { (exit 1); exit 1; }; } 128 fi 129 case $CONFIG_SHELL in 130 '') 131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 133 do 134 IFS=$as_save_IFS 135 test -z "$as_dir" && as_dir=. 136 for as_base in sh bash ksh sh5; do 137 case $as_dir in 138 /*) 139 if ("$as_dir/$as_base" -c ' 140 as_lineno_1=$LINENO 141 as_lineno_2=$LINENO 142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 143 test "x$as_lineno_1" != "x$as_lineno_2" && 144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 147 CONFIG_SHELL=$as_dir/$as_base 148 export CONFIG_SHELL 149 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 150 fi;; 151 esac 152 done 153 done 154 ;; 155 esac 156 157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 158 # uniformly replaced by the line number. The first 'sed' inserts a 159 # line-number line before each line; the second 'sed' does the real 160 # work. The second script uses 'N' to pair each line-number line 161 # with the numbered line, and appends trailing '-' during 162 # substitution so that $LINENO is not a special case at line end. 163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 165 sed '=' <$as_myself | 166 sed ' 167 N 168 s,$,-, 169 : loop 170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 171 t loop 172 s,-$,, 173 s,^['$as_cr_digits']*\n,, 174 ' >$as_me.lineno && 175 chmod +x $as_me.lineno || 176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 177 { (exit 1); exit 1; }; } 178 179 # Don't try to exec as it changes $[0], causing all sort of problems 180 # (the dirname of $[0] is not the place where we might find the 181 # original and so on. Autoconf is especially sensible to this). 182 . ./$as_me.lineno 183 # Exit status is that of the last command. 184 exit 185 } 186 187 188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 189 *c*,-n*) ECHO_N= ECHO_C=' 190 ' ECHO_T=' ' ;; 191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 193 esac 194 195 if expr a : '\(a\)' >/dev/null 2>&1; then 196 as_expr=expr 197 else 198 as_expr=false 199 fi 200 201 rm -f conf$$ conf$$.exe conf$$.file 202 echo >conf$$.file 203 if ln -s conf$$.file conf$$ 2>/dev/null; then 204 # We could just check for DJGPP; but this test a) works b) is more generic 205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 206 if test -f conf$$.exe; then 207 # Don't use ln at all; we don't have any links 208 as_ln_s='cp -p' 209 else 210 as_ln_s='ln -s' 211 fi 212 elif ln conf$$.file conf$$ 2>/dev/null; then 213 as_ln_s=ln 214 else 215 as_ln_s='cp -p' 216 fi 217 rm -f conf$$ conf$$.exe conf$$.file 218 219 if mkdir -p . 2>/dev/null; then 220 as_mkdir_p=: 221 else 222 test -d ./-p && rmdir ./-p 223 as_mkdir_p=false 224 fi 225 226 as_executable_p="test -f" 227 228 # Sed expression to map a string onto a valid CPP name. 229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 230 231 # Sed expression to map a string onto a valid variable name. 232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 233 234 235 # IFS 236 # We need space, tab and new line, in precisely that order. 237 as_nl=' 238 ' 239 IFS=" $as_nl" 240 241 # CDPATH. 242 $as_unset CDPATH 243 244 245 # Name of the host. 246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 247 # so uname gets run too. 248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 249 250 exec 6>&1 251 252 # 253 # Initializations. 254 # 255 ac_default_prefix=/usr/local 256 ac_config_libobj_dir=. 257 cross_compiling=no 258 subdirs= 259 MFLAGS= 260 MAKEFLAGS= 261 SHELL=${CONFIG_SHELL-/bin/sh} 262 263 # Maximum number of lines to put in a shell here document. 264 # This variable seems obsolete. It should probably be removed, and 265 # only ac_max_sed_lines should be used. 266 : ${ac_max_here_lines=38} 267 268 # Identity of this package. 269 PACKAGE_NAME='libconfig' 270 PACKAGE_TARNAME='libconfig' 271 PACKAGE_VERSION='0.9.9' 272 PACKAGE_STRING='libconfig 0.9.9' 273 PACKAGE_BUGREPORT='' 274 275 # Factoring default headers for most tests. 276 ac_includes_default="\ 277 #include <stdio.h> 278 #if HAVE_SYS_TYPES_H 279 # include <sys/types.h> 280 #endif 281 #if HAVE_SYS_STAT_H 282 # include <sys/stat.h> 283 #endif 284 #if STDC_HEADERS 285 # include <stdlib.h> 286 # include <stddef.h> 287 #else 288 # if HAVE_STDLIB_H 289 # include <stdlib.h> 290 # endif 291 #endif 292 #if HAVE_STRING_H 293 # if !STDC_HEADERS && HAVE_MEMORY_H 294 # include <memory.h> 295 # endif 296 # include <string.h> 297 #endif 298 #if HAVE_STRINGS_H 299 # include <strings.h> 300 #endif 301 #if HAVE_INTTYPES_H 302 # include <inttypes.h> 303 #else 304 # if HAVE_STDINT_H 305 # include <stdint.h> 306 # endif 307 #endif 308 #if HAVE_UNISTD_H 309 # include <unistd.h> 310 #endif" 311 312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB AR ac_ct_AR CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHOBJEXT AREXT SHOBJFLAGS SHOBJLDFLAGS SHLIBOBJS LIBOBJS LDRUNPATH LTLIBOBJS' 313 ac_subst_files='' 314 315 # Initialize some variables set by options. 316 ac_init_help= 317 ac_init_version=false 318 # The variables have the same names as the options, with 319 # dashes changed to underlines. 320 cache_file=/dev/null 321 exec_prefix=NONE 322 no_create= 323 no_recursion= 324 prefix=NONE 325 program_prefix=NONE 326 program_suffix=NONE 327 program_transform_name=s,x,x, 328 silent= 329 site= 330 srcdir= 331 verbose= 332 x_includes=NONE 333 x_libraries=NONE 334 335 # Installation directory options. 336 # These are left unexpanded so users can "make install exec_prefix=/foo" 337 # and all the variables that are supposed to be based on exec_prefix 338 # by default will actually change. 339 # Use braces instead of parens because sh, perl, etc. also accept them. 340 bindir='${exec_prefix}/bin' 341 sbindir='${exec_prefix}/sbin' 342 libexecdir='${exec_prefix}/libexec' 343 datadir='${prefix}/share' 344 sysconfdir='${prefix}/etc' 345 sharedstatedir='${prefix}/com' 346 localstatedir='${prefix}/var' 347 libdir='${exec_prefix}/lib' 348 includedir='${prefix}/include' 349 oldincludedir='/usr/include' 350 infodir='${prefix}/info' 351 mandir='${prefix}/man' 352 353 ac_prev= 354 for ac_option 355 do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627 Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650 done 651 652 if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656 fi 657 658 # Be sure to have absolute paths. 659 for ac_var in exec_prefix prefix 660 do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667 done 668 669 # Be sure to have absolute paths. 670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672 do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679 done 680 681 # There might be people who depend on the old broken behavior: `$host' 682 # used to hold the argument of --host etc. 683 # FIXME: To remove some day. 684 build=$build_alias 685 host=$host_alias 686 target=$target_alias 687 688 # FIXME: To remove some day. 689 if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697 fi 698 699 ac_tool_prefix= 700 test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702 test "$silent" = yes && exec 6>/dev/null 703 704 705 # Find the source files, if location was not specified. 706 if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715 echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725 else 726 ac_srcdir_defaulted=no 727 fi 728 if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736 fi 737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741 ac_env_build_alias_set=${build_alias+set} 742 ac_env_build_alias_value=$build_alias 743 ac_cv_env_build_alias_set=${build_alias+set} 744 ac_cv_env_build_alias_value=$build_alias 745 ac_env_host_alias_set=${host_alias+set} 746 ac_env_host_alias_value=$host_alias 747 ac_cv_env_host_alias_set=${host_alias+set} 748 ac_cv_env_host_alias_value=$host_alias 749 ac_env_target_alias_set=${target_alias+set} 750 ac_env_target_alias_value=$target_alias 751 ac_cv_env_target_alias_set=${target_alias+set} 752 ac_cv_env_target_alias_value=$target_alias 753 ac_env_CC_set=${CC+set} 754 ac_env_CC_value=$CC 755 ac_cv_env_CC_set=${CC+set} 756 ac_cv_env_CC_value=$CC 757 ac_env_CFLAGS_set=${CFLAGS+set} 758 ac_env_CFLAGS_value=$CFLAGS 759 ac_cv_env_CFLAGS_set=${CFLAGS+set} 760 ac_cv_env_CFLAGS_value=$CFLAGS 761 ac_env_LDFLAGS_set=${LDFLAGS+set} 762 ac_env_LDFLAGS_value=$LDFLAGS 763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764 ac_cv_env_LDFLAGS_value=$LDFLAGS 765 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766 ac_env_CPPFLAGS_value=$CPPFLAGS 767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769 ac_env_CPP_set=${CPP+set} 770 ac_env_CPP_value=$CPP 771 ac_cv_env_CPP_set=${CPP+set} 772 ac_cv_env_CPP_value=$CPP 773 774 # 775 # Report the --help message. 776 # 777 if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781 \`configure' configures libconfig 0.9.9 to adapt to many kinds of systems. 782 783 Usage: $0 [OPTION]... [VAR=VALUE]... 784 785 To assign environment variables (e.g., CC, CFLAGS...), specify them as 786 VAR=VALUE. See below for descriptions of some of the useful variables. 787 788 Defaults for the options are specified in brackets. 789 790 Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801 _ACEOF 802 803 cat <<_ACEOF 804 Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810 By default, \`make install' will install all the files in 811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813 for instance \`--prefix=\$HOME'. 814 815 For better control, use the options below. 816 817 Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830 _ACEOF 831 832 cat <<\_ACEOF 833 834 System types: 835 --build=BUILD configure for building on BUILD [guessed] 836 --host=HOST cross-compile to build programs to run on HOST [BUILD] 837 _ACEOF 838 fi 839 840 if test -n "$ac_init_help"; then 841 case $ac_init_help in 842 short | recursive ) echo "Configuration of libconfig 0.9.9:";; 843 esac 844 cat <<\_ACEOF 845 846 Optional Features: 847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 849 --disable-largefile omit support for large files 850 851 Some influential environment variables: 852 CC C compiler command 853 CFLAGS C compiler flags 854 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 855 nonstandard directory <lib dir> 856 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 857 headers in a nonstandard directory <include dir> 858 CPP C preprocessor 859 860 Use these variables to override the choices made by `configure' or to help 861 it to find libraries and programs with nonstandard names/locations. 862 863 _ACEOF 864 fi 865 866 if test "$ac_init_help" = "recursive"; then 867 # If there are subdirs, report their specific --help. 868 ac_popdir=`pwd` 869 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 870 test -d $ac_dir || continue 871 ac_builddir=. 872 873 if test "$ac_dir" != .; then 874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 875 # A "../" for each directory in $ac_dir_suffix. 876 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 877 else 878 ac_dir_suffix= ac_top_builddir= 879 fi 880 881 case $srcdir in 882 .) # No --srcdir option. We are building in place. 883 ac_srcdir=. 884 if test -z "$ac_top_builddir"; then 885 ac_top_srcdir=. 886 else 887 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 888 fi ;; 889 [\\/]* | ?:[\\/]* ) # Absolute path. 890 ac_srcdir=$srcdir$ac_dir_suffix; 891 ac_top_srcdir=$srcdir ;; 892 *) # Relative path. 893 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 894 ac_top_srcdir=$ac_top_builddir$srcdir ;; 895 esac 896 897 # Do not use `cd foo && pwd` to compute absolute paths, because 898 # the directories may not exist. 899 case `pwd` in 900 .) ac_abs_builddir="$ac_dir";; 901 *) 902 case "$ac_dir" in 903 .) ac_abs_builddir=`pwd`;; 904 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 905 *) ac_abs_builddir=`pwd`/"$ac_dir";; 906 esac;; 907 esac 908 case $ac_abs_builddir in 909 .) ac_abs_top_builddir=${ac_top_builddir}.;; 910 *) 911 case ${ac_top_builddir}. in 912 .) ac_abs_top_builddir=$ac_abs_builddir;; 913 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 914 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 915 esac;; 916 esac 917 case $ac_abs_builddir in 918 .) ac_abs_srcdir=$ac_srcdir;; 919 *) 920 case $ac_srcdir in 921 .) ac_abs_srcdir=$ac_abs_builddir;; 922 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 923 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 924 esac;; 925 esac 926 case $ac_abs_builddir in 927 .) ac_abs_top_srcdir=$ac_top_srcdir;; 928 *) 929 case $ac_top_srcdir in 930 .) ac_abs_top_srcdir=$ac_abs_builddir;; 931 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 932 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 933 esac;; 934 esac 935 936 cd $ac_dir 937 # Check for guested configure; otherwise get Cygnus style configure. 938 if test -f $ac_srcdir/configure.gnu; then 939 echo 940 $SHELL $ac_srcdir/configure.gnu --help=recursive 941 elif test -f $ac_srcdir/configure; then 942 echo 943 $SHELL $ac_srcdir/configure --help=recursive 944 elif test -f $ac_srcdir/configure.ac || 945 test -f $ac_srcdir/configure.in; then 946 echo 947 $ac_configure --help 948 else 949 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 950 fi 951 cd $ac_popdir 952 done 953 fi 954 955 test -n "$ac_init_help" && exit 0 956 if $ac_init_version; then 957 cat <<\_ACEOF 958 libconfig configure 0.9.9 959 generated by GNU Autoconf 2.59 960 961 Copyright (C) 2003 Free Software Foundation, Inc. 962 This configure script is free software; the Free Software Foundation 963 gives unlimited permission to copy, distribute and modify it. 964 _ACEOF 965 exit 0 966 fi 967 exec 5>config.log 968 cat >&5 <<_ACEOF 969 This file contains any messages produced by compilers while 970 running configure, to aid debugging if configure makes a mistake. 971 972 It was created by libconfig $as_me 0.9.9, which was 973 generated by GNU Autoconf 2.59. Invocation command line was 974 975 $ $0 $@ 976 977 _ACEOF 978 { 979 cat <<_ASUNAME 980 ## --------- ## 981 ## Platform. ## 982 ## --------- ## 983 984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 985 uname -m = `(uname -m) 2>/dev/null || echo unknown` 986 uname -r = `(uname -r) 2>/dev/null || echo unknown` 987 uname -s = `(uname -s) 2>/dev/null || echo unknown` 988 uname -v = `(uname -v) 2>/dev/null || echo unknown` 989 990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 992 993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 996 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1000 1001 _ASUNAME 1002 1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1004 for as_dir in $PATH 1005 do 1006 IFS=$as_save_IFS 1007 test -z "$as_dir" && as_dir=. 1008 echo "PATH: $as_dir" 1009 done 1010 1011 } >&5 1012 1013 cat >&5 <<_ACEOF 1014 1015 1016 ## ----------- ## 1017 ## Core tests. ## 1018 ## ----------- ## 1019 1020 _ACEOF 1021 1022 1023 # Keep a trace of the command line. 1024 # Strip out --no-create and --no-recursion so they do not pile up. 1025 # Strip out --silent because we don't want to record it for future runs. 1026 # Also quote any args containing shell meta-characters. 1027 # Make two passes to allow for proper duplicate-argument suppression. 1028 ac_configure_args= 1029 ac_configure_args0= 1030 ac_configure_args1= 1031 ac_sep= 1032 ac_must_keep_next=false 1033 for ac_pass in 1 2 1034 do 1035 for ac_arg 1036 do 1037 case $ac_arg in 1038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1040 | -silent | --silent | --silen | --sile | --sil) 1041 continue ;; 1042 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1043 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1044 esac 1045 case $ac_pass in 1046 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1047 2) 1048 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1049 if test $ac_must_keep_next = true; then 1050 ac_must_keep_next=false # Got value, back to normal. 1051 else 1052 case $ac_arg in 1053 *=* | --config-cache | -C | -disable-* | --disable-* \ 1054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1056 | -with-* | --with-* | -without-* | --without-* | --x) 1057 case "$ac_configure_args0 " in 1058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1059 esac 1060 ;; 1061 -* ) ac_must_keep_next=true ;; 1062 esac 1063 fi 1064 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1065 # Get rid of the leading space. 1066 ac_sep=" " 1067 ;; 1068 esac 1069 done 1070 done 1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1073 1074 # When interrupted or exit'd, cleanup temporary files, and complete 1075 # config.log. We remove comments because anyway the quotes in there 1076 # would cause problems or look ugly. 1077 # WARNING: Be sure not to use single quotes in there, as some shells, 1078 # such as our DU 5.0 friend, will then `close' the trap. 1079 trap 'exit_status=$? 1080 # Save into config.log some information that might help in debugging. 1081 { 1082 echo 1083 1084 cat <<\_ASBOX 1085 ## ---------------- ## 1086 ## Cache variables. ## 1087 ## ---------------- ## 1088 _ASBOX 1089 echo 1090 # The following way of writing the cache mishandles newlines in values, 1091 { 1092 (set) 2>&1 | 1093 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1094 *ac_space=\ *) 1095 sed -n \ 1096 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1098 ;; 1099 *) 1100 sed -n \ 1101 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1102 ;; 1103 esac; 1104 } 1105 echo 1106 1107 cat <<\_ASBOX 1108 ## ----------------- ## 1109 ## Output variables. ## 1110 ## ----------------- ## 1111 _ASBOX 1112 echo 1113 for ac_var in $ac_subst_vars 1114 do 1115 eval ac_val=$`echo $ac_var` 1116 echo "$ac_var='"'"'$ac_val'"'"'" 1117 done | sort 1118 echo 1119 1120 if test -n "$ac_subst_files"; then 1121 cat <<\_ASBOX 1122 ## ------------- ## 1123 ## Output files. ## 1124 ## ------------- ## 1125 _ASBOX 1126 echo 1127 for ac_var in $ac_subst_files 1128 do 1129 eval ac_val=$`echo $ac_var` 1130 echo "$ac_var='"'"'$ac_val'"'"'" 1131 done | sort 1132 echo 1133 fi 1134 1135 if test -s confdefs.h; then 1136 cat <<\_ASBOX 1137 ## ----------- ## 1138 ## confdefs.h. ## 1139 ## ----------- ## 1140 _ASBOX 1141 echo 1142 sed "/^$/d" confdefs.h | sort 1143 echo 1144 fi 1145 test "$ac_signal" != 0 && 1146 echo "$as_me: caught signal $ac_signal" 1147 echo "$as_me: exit $exit_status" 1148 } >&5 1149 rm -f core *.core && 1150 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1151 exit $exit_status 1152 ' 0 1153 for ac_signal in 1 2 13 15; do 1154 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1155 done 1156 ac_signal=0 1157 1158 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1159 rm -rf conftest* confdefs.h 1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1161 echo >confdefs.h 1162 1163 # Predefined preprocessor variables. 1164 1165 cat >>confdefs.h <<_ACEOF 1166 #define PACKAGE_NAME "$PACKAGE_NAME" 1167 _ACEOF 1168 1169 1170 cat >>confdefs.h <<_ACEOF 1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1172 _ACEOF 1173 1174 1175 cat >>confdefs.h <<_ACEOF 1176 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1177 _ACEOF 1178 1179 1180 cat >>confdefs.h <<_ACEOF 1181 #define PACKAGE_STRING "$PACKAGE_STRING" 1182 _ACEOF 1183 1184 1185 cat >>confdefs.h <<_ACEOF 1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1187 _ACEOF 1188 1189 1190 # Let the site file select an alternate cache file if it wants to. 1191 # Prefer explicitly selected file to automatically selected ones. 1192 if test -z "$CONFIG_SITE"; then 1193 if test "x$prefix" != xNONE; then 1194 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1195 else 1196 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1197 fi 1198 fi 1199 for ac_site_file in $CONFIG_SITE; do 1200 if test -r "$ac_site_file"; then 1201 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1202 echo "$as_me: loading site script $ac_site_file" >&6;} 1203 sed 's/^/| /' "$ac_site_file" >&5 1204 . "$ac_site_file" 1205 fi 1206 done 1207 1208 if test -r "$cache_file"; then 1209 # Some versions of bash will fail to source /dev/null (special 1210 # files actually), so we avoid doing that. 1211 if test -f "$cache_file"; then 1212 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1213 echo "$as_me: loading cache $cache_file" >&6;} 1214 case $cache_file in 1215 [\\/]* | ?:[\\/]* ) . $cache_file;; 1216 *) . ./$cache_file;; 1217 esac 1218 fi 1219 else 1220 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1221 echo "$as_me: creating cache $cache_file" >&6;} 1222 >$cache_file 1223 fi 1224 1225 # Check that the precious variables saved in the cache have kept the same 1226 # value. 1227 ac_cache_corrupted=false 1228 for ac_var in `(set) 2>&1 | 1229 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1230 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1231 eval ac_new_set=\$ac_env_${ac_var}_set 1232 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1233 eval ac_new_val="\$ac_env_${ac_var}_value" 1234 case $ac_old_set,$ac_new_set in 1235 set,) 1236 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1238 ac_cache_corrupted=: ;; 1239 ,set) 1240 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1242 ac_cache_corrupted=: ;; 1243 ,);; 1244 *) 1245 if test "x$ac_old_val" != "x$ac_new_val"; then 1246 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1248 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1249 echo "$as_me: former value: $ac_old_val" >&2;} 1250 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1251 echo "$as_me: current value: $ac_new_val" >&2;} 1252 ac_cache_corrupted=: 1253 fi;; 1254 esac 1255 # Pass precious variables to config.status. 1256 if test "$ac_new_set" = set; then 1257 case $ac_new_val in 1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1259 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1260 *) ac_arg=$ac_var=$ac_new_val ;; 1261 esac 1262 case " $ac_configure_args " in 1263 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1264 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1265 esac 1266 fi 1267 done 1268 if $ac_cache_corrupted; then 1269 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1271 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1273 { (exit 1); exit 1; }; } 1274 fi 1275 1276 ac_ext=c 1277 ac_cpp='$CPP $CPPFLAGS' 1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 ac_config_headers="$ac_config_headers config.h" 1309 1310 1311 ac_ext=c 1312 ac_cpp='$CPP $CPPFLAGS' 1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1316 if test -n "$ac_tool_prefix"; then 1317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1318 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1319 echo "$as_me:$LINENO: checking for $ac_word" >&5 1320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1321 if test "${ac_cv_prog_CC+set}" = set; then 1322 echo $ECHO_N "(cached) $ECHO_C" >&6 1323 else 1324 if test -n "$CC"; then 1325 ac_cv_prog_CC="$CC" # Let the user override the test. 1326 else 1327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1328 for as_dir in $PATH 1329 do 1330 IFS=$as_save_IFS 1331 test -z "$as_dir" && as_dir=. 1332 for ac_exec_ext in '' $ac_executable_extensions; do 1333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1334 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1336 break 2 1337 fi 1338 done 1339 done 1340 1341 fi 1342 fi 1343 CC=$ac_cv_prog_CC 1344 if test -n "$CC"; then 1345 echo "$as_me:$LINENO: result: $CC" >&5 1346 echo "${ECHO_T}$CC" >&6 1347 else 1348 echo "$as_me:$LINENO: result: no" >&5 1349 echo "${ECHO_T}no" >&6 1350 fi 1351 1352 fi 1353 if test -z "$ac_cv_prog_CC"; then 1354 ac_ct_CC=$CC 1355 # Extract the first word of "gcc", so it can be a program name with args. 1356 set dummy gcc; ac_word=$2 1357 echo "$as_me:$LINENO: checking for $ac_word" >&5 1358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1360 echo $ECHO_N "(cached) $ECHO_C" >&6 1361 else 1362 if test -n "$ac_ct_CC"; then 1363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1364 else 1365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1366 for as_dir in $PATH 1367 do 1368 IFS=$as_save_IFS 1369 test -z "$as_dir" && as_dir=. 1370 for ac_exec_ext in '' $ac_executable_extensions; do 1371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1372 ac_cv_prog_ac_ct_CC="gcc" 1373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1374 break 2 1375 fi 1376 done 1377 done 1378 1379 fi 1380 fi 1381 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1382 if test -n "$ac_ct_CC"; then 1383 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1384 echo "${ECHO_T}$ac_ct_CC" >&6 1385 else 1386 echo "$as_me:$LINENO: result: no" >&5 1387 echo "${ECHO_T}no" >&6 1388 fi 1389 1390 CC=$ac_ct_CC 1391 else 1392 CC="$ac_cv_prog_CC" 1393 fi 1394 1395 if test -z "$CC"; then 1396 if test -n "$ac_tool_prefix"; then 1397 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1398 set dummy ${ac_tool_prefix}cc; ac_word=$2 1399 echo "$as_me:$LINENO: checking for $ac_word" >&5 1400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1401 if test "${ac_cv_prog_CC+set}" = set; then 1402 echo $ECHO_N "(cached) $ECHO_C" >&6 1403 else 1404 if test -n "$CC"; then 1405 ac_cv_prog_CC="$CC" # Let the user override the test. 1406 else 1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1408 for as_dir in $PATH 1409 do 1410 IFS=$as_save_IFS 1411 test -z "$as_dir" && as_dir=. 1412 for ac_exec_ext in '' $ac_executable_extensions; do 1413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1414 ac_cv_prog_CC="${ac_tool_prefix}cc" 1415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1416 break 2 1417 fi 1418 done 1419 done 1420 1421 fi 1422 fi 1423 CC=$ac_cv_prog_CC 1424 if test -n "$CC"; then 1425 echo "$as_me:$LINENO: result: $CC" >&5 1426 echo "${ECHO_T}$CC" >&6 1427 else 1428 echo "$as_me:$LINENO: result: no" >&5 1429 echo "${ECHO_T}no" >&6 1430 fi 1431 1432 fi 1433 if test -z "$ac_cv_prog_CC"; then 1434 ac_ct_CC=$CC 1435 # Extract the first word of "cc", so it can be a program name with args. 1436 set dummy cc; ac_word=$2 1437 echo "$as_me:$LINENO: checking for $ac_word" >&5 1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1440 echo $ECHO_N "(cached) $ECHO_C" >&6 1441 else 1442 if test -n "$ac_ct_CC"; then 1443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1444 else 1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1446 for as_dir in $PATH 1447 do 1448 IFS=$as_save_IFS 1449 test -z "$as_dir" && as_dir=. 1450 for ac_exec_ext in '' $ac_executable_extensions; do 1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1452 ac_cv_prog_ac_ct_CC="cc" 1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1454 break 2 1455 fi 1456 done 1457 done 1458 1459 fi 1460 fi 1461 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1462 if test -n "$ac_ct_CC"; then 1463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1464 echo "${ECHO_T}$ac_ct_CC" >&6 1465 else 1466 echo "$as_me:$LINENO: result: no" >&5 1467 echo "${ECHO_T}no" >&6 1468 fi 1469 1470 CC=$ac_ct_CC 1471 else 1472 CC="$ac_cv_prog_CC" 1473 fi 1474 1475 fi 1476 if test -z "$CC"; then 1477 # Extract the first word of "cc", so it can be a program name with args. 1478 set dummy cc; ac_word=$2 1479 echo "$as_me:$LINENO: checking for $ac_word" >&5 1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1481 if test "${ac_cv_prog_CC+set}" = set; then 1482 echo $ECHO_N "(cached) $ECHO_C" >&6 1483 else 1484 if test -n "$CC"; then 1485 ac_cv_prog_CC="$CC" # Let the user override the test. 1486 else 1487 ac_prog_rejected=no 1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1489 for as_dir in $PATH 1490 do 1491 IFS=$as_save_IFS 1492 test -z "$as_dir" && as_dir=. 1493 for ac_exec_ext in '' $ac_executable_extensions; do 1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1496 ac_prog_rejected=yes 1497 continue 1498 fi 1499 ac_cv_prog_CC="cc" 1500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1501 break 2 1502 fi 1503 done 1504 done 1505 1506 if test $ac_prog_rejected = yes; then 1507 # We found a bogon in the path, so make sure we never use it. 1508 set dummy $ac_cv_prog_CC 1509 shift 1510 if test $# != 0; then 1511 # We chose a different compiler from the bogus one. 1512 # However, it has the same basename, so the bogon will be chosen 1513 # first if we set CC to just the basename; use the full file name. 1514 shift 1515 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1516 fi 1517 fi 1518 fi 1519 fi 1520 CC=$ac_cv_prog_CC 1521 if test -n "$CC"; then 1522 echo "$as_me:$LINENO: result: $CC" >&5 1523 echo "${ECHO_T}$CC" >&6 1524 else 1525 echo "$as_me:$LINENO: result: no" >&5 1526 echo "${ECHO_T}no" >&6 1527 fi 1528 1529 fi 1530 if test -z "$CC"; then 1531 if test -n "$ac_tool_prefix"; then 1532 for ac_prog in cl 1533 do 1534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1536 echo "$as_me:$LINENO: checking for $ac_word" >&5 1537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1538 if test "${ac_cv_prog_CC+set}" = set; then 1539 echo $ECHO_N "(cached) $ECHO_C" >&6 1540 else 1541 if test -n "$CC"; then 1542 ac_cv_prog_CC="$CC" # Let the user override the test. 1543 else 1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1545 for as_dir in $PATH 1546 do 1547 IFS=$as_save_IFS 1548 test -z "$as_dir" && as_dir=. 1549 for ac_exec_ext in '' $ac_executable_extensions; do 1550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1553 break 2 1554 fi 1555 done 1556 done 1557 1558 fi 1559 fi 1560 CC=$ac_cv_prog_CC 1561 if test -n "$CC"; then 1562 echo "$as_me:$LINENO: result: $CC" >&5 1563 echo "${ECHO_T}$CC" >&6 1564 else 1565 echo "$as_me:$LINENO: result: no" >&5 1566 echo "${ECHO_T}no" >&6 1567 fi 1568 1569 test -n "$CC" && break 1570 done 1571 fi 1572 if test -z "$CC"; then 1573 ac_ct_CC=$CC 1574 for ac_prog in cl 1575 do 1576 # Extract the first word of "$ac_prog", so it can be a program name with args. 1577 set dummy $ac_prog; ac_word=$2 1578 echo "$as_me:$LINENO: checking for $ac_word" >&5 1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1581 echo $ECHO_N "(cached) $ECHO_C" >&6 1582 else 1583 if test -n "$ac_ct_CC"; then 1584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1585 else 1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1587 for as_dir in $PATH 1588 do 1589 IFS=$as_save_IFS 1590 test -z "$as_dir" && as_dir=. 1591 for ac_exec_ext in '' $ac_executable_extensions; do 1592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1593 ac_cv_prog_ac_ct_CC="$ac_prog" 1594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1595 break 2 1596 fi 1597 done 1598 done 1599 1600 fi 1601 fi 1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1603 if test -n "$ac_ct_CC"; then 1604 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1605 echo "${ECHO_T}$ac_ct_CC" >&6 1606 else 1607 echo "$as_me:$LINENO: result: no" >&5 1608 echo "${ECHO_T}no" >&6 1609 fi 1610 1611 test -n "$ac_ct_CC" && break 1612 done 1613 1614 CC=$ac_ct_CC 1615 fi 1616 1617 fi 1618 1619 1620 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1621 See \`config.log' for more details." >&5 1622 echo "$as_me: error: no acceptable C compiler found in \$PATH 1623 See \`config.log' for more details." >&2;} 1624 { (exit 1); exit 1; }; } 1625 1626 # Provide some information about the compiler. 1627 echo "$as_me:$LINENO:" \ 1628 "checking for C compiler version" >&5 1629 ac_compiler=`set X $ac_compile; echo $2` 1630 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1631 (eval $ac_compiler --version </dev/null >&5) 2>&5 1632 ac_status=$? 1633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1634 (exit $ac_status); } 1635 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1636 (eval $ac_compiler -v </dev/null >&5) 2>&5 1637 ac_status=$? 1638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1639 (exit $ac_status); } 1640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1641 (eval $ac_compiler -V </dev/null >&5) 2>&5 1642 ac_status=$? 1643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1644 (exit $ac_status); } 1645 1646 cat >conftest.$ac_ext <<_ACEOF 1647 /* confdefs.h. */ 1648 _ACEOF 1649 cat confdefs.h >>conftest.$ac_ext 1650 cat >>conftest.$ac_ext <<_ACEOF 1651 /* end confdefs.h. */ 1652 1653 int 1654 main () 1655 { 1656 1657 ; 1658 return 0; 1659 } 1660 _ACEOF 1661 ac_clean_files_save=$ac_clean_files 1662 ac_clean_files="$ac_clean_files a.out a.exe b.out" 1663 # Try to create an executable without -o first, disregard a.out. 1664 # It will help us diagnose broken compilers, and finding out an intuition 1665 # of exeext. 1666 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1667 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1668 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1669 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1670 (eval $ac_link_default) 2>&5 1671 ac_status=$? 1672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1673 (exit $ac_status); }; then 1674 # Find the output, starting from the most likely. This scheme is 1675 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1676 # resort. 1677 1678 # Be careful to initialize this variable, since it used to be cached. 1679 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1680 ac_cv_exeext= 1681 # b.out is created by i960 compilers. 1682 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1683 do 1684 test -f "$ac_file" || continue 1685 case $ac_file in 1686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1687 ;; 1688 conftest.$ac_ext ) 1689 # This is the source file. 1690 ;; 1691 [ab].out ) 1692 # We found the default executable, but exeext='' is most 1693 # certainly right. 1694 break;; 1695 *.* ) 1696 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1697 # FIXME: I believe we export ac_cv_exeext for Libtool, 1698 # but it would be cool to find out if it's true. Does anybody 1699 # maintain Libtool? --akim. 1700 export ac_cv_exeext 1701 break;; 1702 * ) 1703 break;; 1704 esac 1705 done 1706 else 1707 echo "$as_me: failed program was:" >&5 1708 sed 's/^/| /' conftest.$ac_ext >&5 1709 1710 { { echo "$as_me:$LINENO: error: C compiler cannot create executables 1711 See \`config.log' for more details." >&5 1712 echo "$as_me: error: C compiler cannot create executables 1713 See \`config.log' for more details." >&2;} 1714 { (exit 77); exit 77; }; } 1715 fi 1716 1717 ac_exeext=$ac_cv_exeext 1718 echo "$as_me:$LINENO: result: $ac_file" >&5 1719 echo "${ECHO_T}$ac_file" >&6 1720 1721 # Check the compiler produces executables we can run. If not, either 1722 # the compiler is broken, or we cross compile. 1723 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1724 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1725 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1726 # If not cross compiling, check that we can run a simple program. 1727 if test "$cross_compiling" != yes; then 1728 if { ac_try='./$ac_file' 1729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1730 (eval $ac_try) 2>&5 1731 ac_status=$? 1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1733 (exit $ac_status); }; }; then 1734 cross_compiling=no 1735 else 1736 if test "$cross_compiling" = maybe; then 1737 cross_compiling=yes 1738 else 1739 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1740 If you meant to cross compile, use \`--host'. 1741 See \`config.log' for more details." >&5 1742 echo "$as_me: error: cannot run C compiled programs. 1743 If you meant to cross compile, use \`--host'. 1744 See \`config.log' for more details." >&2;} 1745 { (exit 1); exit 1; }; } 1746 fi 1747 fi 1748 fi 1749 echo "$as_me:$LINENO: result: yes" >&5 1750 echo "${ECHO_T}yes" >&6 1751 1752 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1753 ac_clean_files=$ac_clean_files_save 1754 # Check the compiler produces executables we can run. If not, either 1755 # the compiler is broken, or we cross compile. 1756 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1757 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1758 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1759 echo "${ECHO_T}$cross_compiling" >&6 1760 1761 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1762 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1764 (eval $ac_link) 2>&5 1765 ac_status=$? 1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1767 (exit $ac_status); }; then 1768 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1769 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1770 # work properly (i.e., refer to `conftest.exe'), while it won't with 1771 # `rm'. 1772 for ac_file in conftest.exe conftest conftest.*; do 1773 test -f "$ac_file" || continue 1774 case $ac_file in 1775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1776 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1777 export ac_cv_exeext 1778 break;; 1779 * ) break;; 1780 esac 1781 done 1782 else 1783 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1784 See \`config.log' for more details." >&5 1785 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1786 See \`config.log' for more details." >&2;} 1787 { (exit 1); exit 1; }; } 1788 fi 1789 1790 rm -f conftest$ac_cv_exeext 1791 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1792 echo "${ECHO_T}$ac_cv_exeext" >&6 1793 1794 rm -f conftest.$ac_ext 1795 EXEEXT=$ac_cv_exeext 1796 ac_exeext=$EXEEXT 1797 echo "$as_me:$LINENO: checking for suffix of object files" >&5 1798 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1799 if test "${ac_cv_objext+set}" = set; then 1800 echo $ECHO_N "(cached) $ECHO_C" >&6 1801 else 1802 cat >conftest.$ac_ext <<_ACEOF 1803 /* confdefs.h. */ 1804 _ACEOF 1805 cat confdefs.h >>conftest.$ac_ext 1806 cat >>conftest.$ac_ext <<_ACEOF 1807 /* end confdefs.h. */ 1808 1809 int 1810 main () 1811 { 1812 1813 ; 1814 return 0; 1815 } 1816 _ACEOF 1817 rm -f conftest.o conftest.obj 1818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1819 (eval $ac_compile) 2>&5 1820 ac_status=$? 1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1822 (exit $ac_status); }; then 1823 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1824 case $ac_file in 1825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1826 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1827 break;; 1828 esac 1829 done 1830 else 1831 echo "$as_me: failed program was:" >&5 1832 sed 's/^/| /' conftest.$ac_ext >&5 1833 1834 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1835 See \`config.log' for more details." >&5 1836 echo "$as_me: error: cannot compute suffix of object files: cannot compile 1837 See \`config.log' for more details." >&2;} 1838 { (exit 1); exit 1; }; } 1839 fi 1840 1841 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1842 fi 1843 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1844 echo "${ECHO_T}$ac_cv_objext" >&6 1845 OBJEXT=$ac_cv_objext 1846 ac_objext=$OBJEXT 1847 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1848 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1849 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1850 echo $ECHO_N "(cached) $ECHO_C" >&6 1851 else 1852 cat >conftest.$ac_ext <<_ACEOF 1853 /* confdefs.h. */ 1854 _ACEOF 1855 cat confdefs.h >>conftest.$ac_ext 1856 cat >>conftest.$ac_ext <<_ACEOF 1857 /* end confdefs.h. */ 1858 1859 int 1860 main () 1861 { 1862 #ifndef __GNUC__ 1863 choke me 1864 #endif 1865 1866 ; 1867 return 0; 1868 } 1869 _ACEOF 1870 rm -f conftest.$ac_objext 1871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1872 (eval $ac_compile) 2>conftest.er1 1873 ac_status=$? 1874 grep -v '^ *+' conftest.er1 >conftest.err 1875 rm -f conftest.er1 1876 cat conftest.err >&5 1877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1878 (exit $ac_status); } && 1879 { ac_try='test -z "$ac_c_werror_flag" 1880 || test ! -s conftest.err' 1881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1882 (eval $ac_try) 2>&5 1883 ac_status=$? 1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1885 (exit $ac_status); }; } && 1886 { ac_try='test -s conftest.$ac_objext' 1887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1888 (eval $ac_try) 2>&5 1889 ac_status=$? 1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1891 (exit $ac_status); }; }; then 1892 ac_compiler_gnu=yes 1893 else 1894 echo "$as_me: failed program was:" >&5 1895 sed 's/^/| /' conftest.$ac_ext >&5 1896 1897 ac_compiler_gnu=no 1898 fi 1899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1900 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1901 1902 fi 1903 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1904 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1905 GCC=`test $ac_compiler_gnu = yes && echo yes` 1906 ac_test_CFLAGS=${CFLAGS+set} 1907 ac_save_CFLAGS=$CFLAGS 1908 CFLAGS="-g" 1909 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1910 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 1911 if test "${ac_cv_prog_cc_g+set}" = set; then 1912 echo $ECHO_N "(cached) $ECHO_C" >&6 1913 else 1914 cat >conftest.$ac_ext <<_ACEOF 1915 /* confdefs.h. */ 1916 _ACEOF 1917 cat confdefs.h >>conftest.$ac_ext 1918 cat >>conftest.$ac_ext <<_ACEOF 1919 /* end confdefs.h. */ 1920 1921 int 1922 main () 1923 { 1924 1925 ; 1926 return 0; 1927 } 1928 _ACEOF 1929 rm -f conftest.$ac_objext 1930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1931 (eval $ac_compile) 2>conftest.er1 1932 ac_status=$? 1933 grep -v '^ *+' conftest.er1 >conftest.err 1934 rm -f conftest.er1 1935 cat conftest.err >&5 1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1937 (exit $ac_status); } && 1938 { ac_try='test -z "$ac_c_werror_flag" 1939 || test ! -s conftest.err' 1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1941 (eval $ac_try) 2>&5 1942 ac_status=$? 1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1944 (exit $ac_status); }; } && 1945 { ac_try='test -s conftest.$ac_objext' 1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1947 (eval $ac_try) 2>&5 1948 ac_status=$? 1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1950 (exit $ac_status); }; }; then 1951 ac_cv_prog_cc_g=yes 1952 else 1953 echo "$as_me: failed program was:" >&5 1954 sed 's/^/| /' conftest.$ac_ext >&5 1955 1956 ac_cv_prog_cc_g=no 1957 fi 1958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1959 fi 1960 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1961 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 1962 if test "$ac_test_CFLAGS" = set; then 1963 CFLAGS=$ac_save_CFLAGS 1964 elif test $ac_cv_prog_cc_g = yes; then 1965 if test "$GCC" = yes; then 1966 CFLAGS="-g -O2" 1967 else 1968 CFLAGS="-g" 1969 fi 1970 else 1971 if test "$GCC" = yes; then 1972 CFLAGS="-O2" 1973 else 1974 CFLAGS= 1975 fi 1976 fi 1977 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 1978 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 1979 if test "${ac_cv_prog_cc_stdc+set}" = set; then 1980 echo $ECHO_N "(cached) $ECHO_C" >&6 1981 else 1982 ac_cv_prog_cc_stdc=no 1983 ac_save_CC=$CC 1984 cat >conftest.$ac_ext <<_ACEOF 1985 /* confdefs.h. */ 1986 _ACEOF 1987 cat confdefs.h >>conftest.$ac_ext 1988 cat >>conftest.$ac_ext <<_ACEOF 1989 /* end confdefs.h. */ 1990 #include <stdarg.h> 1991 #include <stdio.h> 1992 #include <sys/types.h> 1993 #include <sys/stat.h> 1994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 1995 struct buf { int x; }; 1996 FILE * (*rcsopen) (struct buf *, struct stat *, int); 1997 static char *e (p, i) 1998 char **p; 1999 int i; 2000 { 2001 return p[i]; 2002 } 2003 static char *f (char * (*g) (char **, int), char **p, ...) 2004 { 2005 char *s; 2006 va_list v; 2007 va_start (v,p); 2008 s = g (p, va_arg (v,int)); 2009 va_end (v); 2010 return s; 2011 } 2012 2013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2014 function prototypes and stuff, but not '\xHH' hex character constants. 2015 These don't provoke an error unfortunately, instead are silently treated 2016 as 'x'. The following induces an error, until -std1 is added to get 2017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2018 array size at least. It's necessary to write '\x00'==0 to get something 2019 that's true only with -std1. */ 2020 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2021 2022 int test (int i, double x); 2023 struct s1 {int (*f) (int a);}; 2024 struct s2 {int (*f) (double a);}; 2025 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2026 int argc; 2027 char **argv; 2028 int 2029 main () 2030 { 2031 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2032 ; 2033 return 0; 2034 } 2035 _ACEOF 2036 # Don't try gcc -ansi; that turns off useful extensions and 2037 # breaks some systems' header files. 2038 # AIX -qlanglvl=ansi 2039 # Ultrix and OSF/1 -std1 2040 # HP-UX 10.20 and later -Ae 2041 # HP-UX older versions -Aa -D_HPUX_SOURCE 2042 # SVR4 -Xc -D__EXTENSIONS__ 2043 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2044 do 2045 CC="$ac_save_CC $ac_arg" 2046 rm -f conftest.$ac_objext 2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2048 (eval $ac_compile) 2>conftest.er1 2049 ac_status=$? 2050 grep -v '^ *+' conftest.er1 >conftest.err 2051 rm -f conftest.er1 2052 cat conftest.err >&5 2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2054 (exit $ac_status); } && 2055 { ac_try='test -z "$ac_c_werror_flag" 2056 || test ! -s conftest.err' 2057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2058 (eval $ac_try) 2>&5 2059 ac_status=$? 2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2061 (exit $ac_status); }; } && 2062 { ac_try='test -s conftest.$ac_objext' 2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2064 (eval $ac_try) 2>&5 2065 ac_status=$? 2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2067 (exit $ac_status); }; }; then 2068 ac_cv_prog_cc_stdc=$ac_arg 2069 break 2070 else 2071 echo "$as_me: failed program was:" >&5 2072 sed 's/^/| /' conftest.$ac_ext >&5 2073 2074 fi 2075 rm -f conftest.err conftest.$ac_objext 2076 done 2077 rm -f conftest.$ac_ext conftest.$ac_objext 2078 CC=$ac_save_CC 2079 2080 fi 2081 2082 case "x$ac_cv_prog_cc_stdc" in 2083 x|xno) 2084 echo "$as_me:$LINENO: result: none needed" >&5 2085 echo "${ECHO_T}none needed" >&6 ;; 2086 *) 2087 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2088 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2089 CC="$CC $ac_cv_prog_cc_stdc" ;; 2090 esac 2091 2092 # Some people use a C++ compiler to compile C. Since we use `exit', 2093 # in C++ we need to declare it. In case someone uses the same compiler 2094 # for both compiling C and C++ we need to have the C++ compiler decide 2095 # the declaration of exit, since it's the most demanding environment. 2096 cat >conftest.$ac_ext <<_ACEOF 2097 #ifndef __cplusplus 2098 choke me 2099 #endif 2100 _ACEOF 2101 rm -f conftest.$ac_objext 2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2103 (eval $ac_compile) 2>conftest.er1 2104 ac_status=$? 2105 grep -v '^ *+' conftest.er1 >conftest.err 2106 rm -f conftest.er1 2107 cat conftest.err >&5 2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2109 (exit $ac_status); } && 2110 { ac_try='test -z "$ac_c_werror_flag" 2111 || test ! -s conftest.err' 2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2113 (eval $ac_try) 2>&5 2114 ac_status=$? 2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2116 (exit $ac_status); }; } && 2117 { ac_try='test -s conftest.$ac_objext' 2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2119 (eval $ac_try) 2>&5 2120 ac_status=$? 2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2122 (exit $ac_status); }; }; then 2123 for ac_declaration in \ 2124 '' \ 2125 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2126 'extern "C" void std::exit (int); using std::exit;' \ 2127 'extern "C" void exit (int) throw ();' \ 2128 'extern "C" void exit (int);' \ 2129 'void exit (int);' 2130 do 2131 cat >conftest.$ac_ext <<_ACEOF 2132 /* confdefs.h. */ 2133 _ACEOF 2134 cat confdefs.h >>conftest.$ac_ext 2135 cat >>conftest.$ac_ext <<_ACEOF 2136 /* end confdefs.h. */ 2137 $ac_declaration 2138 #include <stdlib.h> 2139 int 2140 main () 2141 { 2142 exit (42); 2143 ; 2144 return 0; 2145 } 2146 _ACEOF 2147 rm -f conftest.$ac_objext 2148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2149 (eval $ac_compile) 2>conftest.er1 2150 ac_status=$? 2151 grep -v '^ *+' conftest.er1 >conftest.err 2152 rm -f conftest.er1 2153 cat conftest.err >&5 2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2155 (exit $ac_status); } && 2156 { ac_try='test -z "$ac_c_werror_flag" 2157 || test ! -s conftest.err' 2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2159 (eval $ac_try) 2>&5 2160 ac_status=$? 2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2162 (exit $ac_status); }; } && 2163 { ac_try='test -s conftest.$ac_objext' 2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2165 (eval $ac_try) 2>&5 2166 ac_status=$? 2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2168 (exit $ac_status); }; }; then 2169 : 2170 else 2171 echo "$as_me: failed program was:" >&5 2172 sed 's/^/| /' conftest.$ac_ext >&5 2173 2174 continue 2175 fi 2176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2177 cat >conftest.$ac_ext <<_ACEOF 2178 /* confdefs.h. */ 2179 _ACEOF 2180 cat confdefs.h >>conftest.$ac_ext 2181 cat >>conftest.$ac_ext <<_ACEOF 2182 /* end confdefs.h. */ 2183 $ac_declaration 2184 int 2185 main () 2186 { 2187 exit (42); 2188 ; 2189 return 0; 2190 } 2191 _ACEOF 2192 rm -f conftest.$ac_objext 2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2194 (eval $ac_compile) 2>conftest.er1 2195 ac_status=$? 2196 grep -v '^ *+' conftest.er1 >conftest.err 2197 rm -f conftest.er1 2198 cat conftest.err >&5 2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2200 (exit $ac_status); } && 2201 { ac_try='test -z "$ac_c_werror_flag" 2202 || test ! -s conftest.err' 2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2204 (eval $ac_try) 2>&5 2205 ac_status=$? 2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 (exit $ac_status); }; } && 2208 { ac_try='test -s conftest.$ac_objext' 2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2210 (eval $ac_try) 2>&5 2211 ac_status=$? 2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2213 (exit $ac_status); }; }; then 2214 break 2215 else 2216 echo "$as_me: failed program was:" >&5 2217 sed 's/^/| /' conftest.$ac_ext >&5 2218 2219 fi 2220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2221 done 2222 rm -f conftest* 2223 if test -n "$ac_declaration"; then 2224 echo '#ifdef __cplusplus' >>confdefs.h 2225 echo $ac_declaration >>confdefs.h 2226 echo '#endif' >>confdefs.h 2227 fi 2228 2229 else 2230 echo "$as_me: failed program was:" >&5 2231 sed 's/^/| /' conftest.$ac_ext >&5 2232 2233 fi 2234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2235 ac_ext=c 2236 ac_cpp='$CPP $CPPFLAGS' 2237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2239 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2240 2241 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2242 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 2243 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 2244 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2245 echo $ECHO_N "(cached) $ECHO_C" >&6 2246 else 2247 cat >conftest.make <<\_ACEOF 2248 all: 2249 @echo 'ac_maketemp="$(MAKE)"' 2250 _ACEOF 2251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2252 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2253 if test -n "$ac_maketemp"; then 2254 eval ac_cv_prog_make_${ac_make}_set=yes 2255 else 2256 eval ac_cv_prog_make_${ac_make}_set=no 2257 fi 2258 rm -f conftest.make 2259 fi 2260 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2261 echo "$as_me:$LINENO: result: yes" >&5 2262 echo "${ECHO_T}yes" >&6 2263 SET_MAKE= 2264 else 2265 echo "$as_me:$LINENO: result: no" >&5 2266 echo "${ECHO_T}no" >&6 2267 SET_MAKE="MAKE=${MAKE-make}" 2268 fi 2269 2270 ac_aux_dir= 2271 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2272 if test -f $ac_dir/install-sh; then 2273 ac_aux_dir=$ac_dir 2274 ac_install_sh="$ac_aux_dir/install-sh -c" 2275 break 2276 elif test -f $ac_dir/install.sh; then 2277 ac_aux_dir=$ac_dir 2278 ac_install_sh="$ac_aux_dir/install.sh -c" 2279 break 2280 elif test -f $ac_dir/shtool; then 2281 ac_aux_dir=$ac_dir 2282 ac_install_sh="$ac_aux_dir/shtool install -c" 2283 break 2284 fi 2285 done 2286 if test -z "$ac_aux_dir"; then 2287 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2288 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2289 { (exit 1); exit 1; }; } 2290 fi 2291 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2292 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2293 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2294 2295 # Find a good install program. We prefer a C program (faster), 2296 # so one script is as good as another. But avoid the broken or 2297 # incompatible versions: 2298 # SysV /etc/install, /usr/sbin/install 2299 # SunOS /usr/etc/install 2300 # IRIX /sbin/install 2301 # AIX /bin/install 2302 # AmigaOS /C/install, which installs bootblocks on floppy discs 2303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2306 # OS/2's system install, which has a completely different semantic 2307 # ./install, which can be erroneously created by make from ./install.sh. 2308 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2309 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2310 if test -z "$INSTALL"; then 2311 if test "${ac_cv_path_install+set}" = set; then 2312 echo $ECHO_N "(cached) $ECHO_C" >&6 2313 else 2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2315 for as_dir in $PATH 2316 do 2317 IFS=$as_save_IFS 2318 test -z "$as_dir" && as_dir=. 2319 # Account for people who put trailing slashes in PATH elements. 2320 case $as_dir/ in 2321 ./ | .// | /cC/* | \ 2322 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2323 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2324 /usr/ucb/* ) ;; 2325 *) 2326 # OSF1 and SCO ODT 3.0 have their own names for install. 2327 # Don't use installbsd from OSF since it installs stuff as root 2328 # by default. 2329 for ac_prog in ginstall scoinst install; do 2330 for ac_exec_ext in '' $ac_executable_extensions; do 2331 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2332 if test $ac_prog = install && 2333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2334 # AIX install. It has an incompatible calling convention. 2335 : 2336 elif test $ac_prog = install && 2337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2338 # program-specific install script used by HP pwplus--don't use. 2339 : 2340 else 2341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2342 break 3 2343 fi 2344 fi 2345 done 2346 done 2347 ;; 2348 esac 2349 done 2350 2351 2352 fi 2353 if test "${ac_cv_path_install+set}" = set; then 2354 INSTALL=$ac_cv_path_install 2355 else 2356 # As a last resort, use the slow shell script. We don't cache a 2357 # path for INSTALL within a source directory, because that will 2358 # break other packages using the cache if that directory is 2359 # removed, or if the path is relative. 2360 INSTALL=$ac_install_sh 2361 fi 2362 fi 2363 echo "$as_me:$LINENO: result: $INSTALL" >&5 2364 echo "${ECHO_T}$INSTALL" >&6 2365 2366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2367 # It thinks the first close brace ends the variable substitution. 2368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2369 2370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2371 2372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2373 2374 echo "$as_me:$LINENO: checking whether ln -s works" >&5 2375 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2376 LN_S=$as_ln_s 2377 if test "$LN_S" = "ln -s"; then 2378 echo "$as_me:$LINENO: result: yes" >&5 2379 echo "${ECHO_T}yes" >&6 2380 else 2381 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2382 echo "${ECHO_T}no, using $LN_S" >&6 2383 fi 2384 2385 if test -n "$ac_tool_prefix"; then 2386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2388 echo "$as_me:$LINENO: checking for $ac_word" >&5 2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2390 if test "${ac_cv_prog_RANLIB+set}" = set; then 2391 echo $ECHO_N "(cached) $ECHO_C" >&6 2392 else 2393 if test -n "$RANLIB"; then 2394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2395 else 2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2397 for as_dir in $PATH 2398 do 2399 IFS=$as_save_IFS 2400 test -z "$as_dir" && as_dir=. 2401 for ac_exec_ext in '' $ac_executable_extensions; do 2402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2405 break 2 2406 fi 2407 done 2408 done 2409 2410 fi 2411 fi 2412 RANLIB=$ac_cv_prog_RANLIB 2413 if test -n "$RANLIB"; then 2414 echo "$as_me:$LINENO: result: $RANLIB" >&5 2415 echo "${ECHO_T}$RANLIB" >&6 2416 else 2417 echo "$as_me:$LINENO: result: no" >&5 2418 echo "${ECHO_T}no" >&6 2419 fi 2420 2421 fi 2422 if test -z "$ac_cv_prog_RANLIB"; then 2423 ac_ct_RANLIB=$RANLIB 2424 # Extract the first word of "ranlib", so it can be a program name with args. 2425 set dummy ranlib; ac_word=$2 2426 echo "$as_me:$LINENO: checking for $ac_word" >&5 2427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2429 echo $ECHO_N "(cached) $ECHO_C" >&6 2430 else 2431 if test -n "$ac_ct_RANLIB"; then 2432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2433 else 2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2435 for as_dir in $PATH 2436 do 2437 IFS=$as_save_IFS 2438 test -z "$as_dir" && as_dir=. 2439 for ac_exec_ext in '' $ac_executable_extensions; do 2440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2441 ac_cv_prog_ac_ct_RANLIB="ranlib" 2442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2443 break 2 2444 fi 2445 done 2446 done 2447 2448 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2449 fi 2450 fi 2451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2452 if test -n "$ac_ct_RANLIB"; then 2453 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2454 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2455 else 2456 echo "$as_me:$LINENO: result: no" >&5 2457 echo "${ECHO_T}no" >&6 2458 fi 2459 2460 RANLIB=$ac_ct_RANLIB 2461 else 2462 RANLIB="$ac_cv_prog_RANLIB" 2463 fi 2464 2465 if test -n "$ac_tool_prefix"; then 2466 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 2467 set dummy ${ac_tool_prefix}ar; ac_word=$2 2468 echo "$as_me:$LINENO: checking for $ac_word" >&5 2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2470 if test "${ac_cv_prog_AR+set}" = set; then 2471 echo $ECHO_N "(cached) $ECHO_C" >&6 2472 else 2473 if test -n "$AR"; then 2474 ac_cv_prog_AR="$AR" # Let the user override the test. 2475 else 2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477 for as_dir in $PATH 2478 do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 for ac_exec_ext in '' $ac_executable_extensions; do 2482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2483 ac_cv_prog_AR="${ac_tool_prefix}ar" 2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2485 break 2 2486 fi 2487 done 2488 done 2489 2490 fi 2491 fi 2492 AR=$ac_cv_prog_AR 2493 if test -n "$AR"; then 2494 echo "$as_me:$LINENO: result: $AR" >&5 2495 echo "${ECHO_T}$AR" >&6 2496 else 2497 echo "$as_me:$LINENO: result: no" >&5 2498 echo "${ECHO_T}no" >&6 2499 fi 2500 2501 fi 2502 if test -z "$ac_cv_prog_AR"; then 2503 ac_ct_AR=$AR 2504 # Extract the first word of "ar", so it can be a program name with args. 2505 set dummy ar; ac_word=$2 2506 echo "$as_me:$LINENO: checking for $ac_word" >&5 2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2508 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 2509 echo $ECHO_N "(cached) $ECHO_C" >&6 2510 else 2511 if test -n "$ac_ct_AR"; then 2512 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 2513 else 2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2515 for as_dir in $PATH 2516 do 2517 IFS=$as_save_IFS 2518 test -z "$as_dir" && as_dir=. 2519 for ac_exec_ext in '' $ac_executable_extensions; do 2520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2521 ac_cv_prog_ac_ct_AR="ar" 2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2523 break 2 2524 fi 2525 done 2526 done 2527 2528 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="true" 2529 fi 2530 fi 2531 ac_ct_AR=$ac_cv_prog_ac_ct_AR 2532 if test -n "$ac_ct_AR"; then 2533 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 2534 echo "${ECHO_T}$ac_ct_AR" >&6 2535 else 2536 echo "$as_me:$LINENO: result: no" >&5 2537 echo "${ECHO_T}no" >&6 2538 fi 2539 2540 AR=$ac_ct_AR 2541 else 2542 AR="$ac_cv_prog_AR" 2543 fi 2544 2545 2546 ac_ext=c 2547 ac_cpp='$CPP $CPPFLAGS' 2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2551 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2552 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2553 # On Suns, sometimes $CPP names a directory. 2554 if test -n "$CPP" && test -d "$CPP"; then 2555 CPP= 2556 fi 2557 if test -z "$CPP"; then 2558 if test "${ac_cv_prog_CPP+set}" = set; then 2559 echo $ECHO_N "(cached) $ECHO_C" >&6 2560 else 2561 # Double quotes because CPP needs to be expanded 2562 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2563 do 2564 ac_preproc_ok=false 2565 for ac_c_preproc_warn_flag in '' yes 2566 do 2567 # Use a header file that comes with gcc, so configuring glibc 2568 # with a fresh cross-compiler works. 2569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2570 # <limits.h> exists even on freestanding compilers. 2571 # On the NeXT, cc -E runs the code through the compiler's parser, 2572 # not just through cpp. "Syntax error" is here to catch this case. 2573 cat >conftest.$ac_ext <<_ACEOF 2574 /* confdefs.h. */ 2575 _ACEOF 2576 cat confdefs.h >>conftest.$ac_ext 2577 cat >>conftest.$ac_ext <<_ACEOF 2578 /* end confdefs.h. */ 2579 #ifdef __STDC__ 2580 # include <limits.h> 2581 #else 2582 # include <assert.h> 2583 #endif 2584 Syntax error 2585 _ACEOF 2586 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2587 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2588 ac_status=$? 2589 grep -v '^ *+' conftest.er1 >conftest.err 2590 rm -f conftest.er1 2591 cat conftest.err >&5 2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2593 (exit $ac_status); } >/dev/null; then 2594 if test -s conftest.err; then 2595 ac_cpp_err=$ac_c_preproc_warn_flag 2596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2597 else 2598 ac_cpp_err= 2599 fi 2600 else 2601 ac_cpp_err=yes 2602 fi 2603 if test -z "$ac_cpp_err"; then 2604 : 2605 else 2606 echo "$as_me: failed program was:" >&5 2607 sed 's/^/| /' conftest.$ac_ext >&5 2608 2609 # Broken: fails on valid input. 2610 continue 2611 fi 2612 rm -f conftest.err conftest.$ac_ext 2613 2614 # OK, works on sane cases. Now check whether non-existent headers 2615 # can be detected and how. 2616 cat >conftest.$ac_ext <<_ACEOF 2617 /* confdefs.h. */ 2618 _ACEOF 2619 cat confdefs.h >>conftest.$ac_ext 2620 cat >>conftest.$ac_ext <<_ACEOF 2621 /* end confdefs.h. */ 2622 #include <ac_nonexistent.h> 2623 _ACEOF 2624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2626 ac_status=$? 2627 grep -v '^ *+' conftest.er1 >conftest.err 2628 rm -f conftest.er1 2629 cat conftest.err >&5 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 (exit $ac_status); } >/dev/null; then 2632 if test -s conftest.err; then 2633 ac_cpp_err=$ac_c_preproc_warn_flag 2634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2635 else 2636 ac_cpp_err= 2637 fi 2638 else 2639 ac_cpp_err=yes 2640 fi 2641 if test -z "$ac_cpp_err"; then 2642 # Broken: success on invalid input. 2643 continue 2644 else 2645 echo "$as_me: failed program was:" >&5 2646 sed 's/^/| /' conftest.$ac_ext >&5 2647 2648 # Passes both tests. 2649 ac_preproc_ok=: 2650 break 2651 fi 2652 rm -f conftest.err conftest.$ac_ext 2653 2654 done 2655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2656 rm -f conftest.err conftest.$ac_ext 2657 if $ac_preproc_ok; then 2658 break 2659 fi 2660 2661 done 2662 ac_cv_prog_CPP=$CPP 2663 2664 fi 2665 CPP=$ac_cv_prog_CPP 2666 else 2667 ac_cv_prog_CPP=$CPP 2668 fi 2669 echo "$as_me:$LINENO: result: $CPP" >&5 2670 echo "${ECHO_T}$CPP" >&6 2671 ac_preproc_ok=false 2672 for ac_c_preproc_warn_flag in '' yes 2673 do 2674 # Use a header file that comes with gcc, so configuring glibc 2675 # with a fresh cross-compiler works. 2676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2677 # <limits.h> exists even on freestanding compilers. 2678 # On the NeXT, cc -E runs the code through the compiler's parser, 2679 # not just through cpp. "Syntax error" is here to catch this case. 2680 cat >conftest.$ac_ext <<_ACEOF 2681 /* confdefs.h. */ 2682 _ACEOF 2683 cat confdefs.h >>conftest.$ac_ext 2684 cat >>conftest.$ac_ext <<_ACEOF 2685 /* end confdefs.h. */ 2686 #ifdef __STDC__ 2687 # include <limits.h> 2688 #else 2689 # include <assert.h> 2690 #endif 2691 Syntax error 2692 _ACEOF 2693 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2695 ac_status=$? 2696 grep -v '^ *+' conftest.er1 >conftest.err 2697 rm -f conftest.er1 2698 cat conftest.err >&5 2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2700 (exit $ac_status); } >/dev/null; then 2701 if test -s conftest.err; then 2702 ac_cpp_err=$ac_c_preproc_warn_flag 2703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2704 else 2705 ac_cpp_err= 2706 fi 2707 else 2708 ac_cpp_err=yes 2709 fi 2710 if test -z "$ac_cpp_err"; then 2711 : 2712 else 2713 echo "$as_me: failed program was:" >&5 2714 sed 's/^/| /' conftest.$ac_ext >&5 2715 2716 # Broken: fails on valid input. 2717 continue 2718 fi 2719 rm -f conftest.err conftest.$ac_ext 2720 2721 # OK, works on sane cases. Now check whether non-existent headers 2722 # can be detected and how. 2723 cat >conftest.$ac_ext <<_ACEOF 2724 /* confdefs.h. */ 2725 _ACEOF 2726 cat confdefs.h >>conftest.$ac_ext 2727 cat >>conftest.$ac_ext <<_ACEOF 2728 /* end confdefs.h. */ 2729 #include <ac_nonexistent.h> 2730 _ACEOF 2731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2733 ac_status=$? 2734 grep -v '^ *+' conftest.er1 >conftest.err 2735 rm -f conftest.er1 2736 cat conftest.err >&5 2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2738 (exit $ac_status); } >/dev/null; then 2739 if test -s conftest.err; then 2740 ac_cpp_err=$ac_c_preproc_warn_flag 2741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2742 else 2743 ac_cpp_err= 2744 fi 2745 else 2746 ac_cpp_err=yes 2747 fi 2748 if test -z "$ac_cpp_err"; then 2749 # Broken: success on invalid input. 2750 continue 2751 else 2752 echo "$as_me: failed program was:" >&5 2753 sed 's/^/| /' conftest.$ac_ext >&5 2754 2755 # Passes both tests. 2756 ac_preproc_ok=: 2757 break 2758 fi 2759 rm -f conftest.err conftest.$ac_ext 2760 2761 done 2762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2763 rm -f conftest.err conftest.$ac_ext 2764 if $ac_preproc_ok; then 2765 : 2766 else 2767 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2768 See \`config.log' for more details." >&5 2769 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2770 See \`config.log' for more details." >&2;} 2771 { (exit 1); exit 1; }; } 2772 fi 2773 2774 ac_ext=c 2775 ac_cpp='$CPP $CPPFLAGS' 2776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2778 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2779 2780 2781 echo "$as_me:$LINENO: checking for egrep" >&5 2782 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2783 if test "${ac_cv_prog_egrep+set}" = set; then 2784 echo $ECHO_N "(cached) $ECHO_C" >&6 2785 else 2786 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2787 then ac_cv_prog_egrep='grep -E' 2788 else ac_cv_prog_egrep='egrep' 2789 fi 2790 fi 2791 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2792 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2793 EGREP=$ac_cv_prog_egrep 2794 2795 2796 2797 echo "$as_me:$LINENO: checking for AIX" >&5 2798 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 2799 cat >conftest.$ac_ext <<_ACEOF 2800 /* confdefs.h. */ 2801 _ACEOF 2802 cat confdefs.h >>conftest.$ac_ext 2803 cat >>conftest.$ac_ext <<_ACEOF 2804 /* end confdefs.h. */ 2805 #ifdef _AIX 2806 yes 2807 #endif 2808 2809 _ACEOF 2810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2811 $EGREP "yes" >/dev/null 2>&1; then 2812 echo "$as_me:$LINENO: result: yes" >&5 2813 echo "${ECHO_T}yes" >&6 2814 cat >>confdefs.h <<\_ACEOF 2815 #define _ALL_SOURCE 1 2816 _ACEOF 2817 2818 else 2819 echo "$as_me:$LINENO: result: no" >&5 2820 echo "${ECHO_T}no" >&6 2821 fi 2822 rm -f conftest* 2823 2824 2825 2826 # Make sure we can run config.sub. 2827 $ac_config_sub sun4 >/dev/null 2>&1 || 2828 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2829 echo "$as_me: error: cannot run $ac_config_sub" >&2;} 2830 { (exit 1); exit 1; }; } 2831 2832 echo "$as_me:$LINENO: checking build system type" >&5 2833 echo $ECHO_N "checking build system type... $ECHO_C" >&6 2834 if test "${ac_cv_build+set}" = set; then 2835 echo $ECHO_N "(cached) $ECHO_C" >&6 2836 else 2837 ac_cv_build_alias=$build_alias 2838 test -z "$ac_cv_build_alias" && 2839 ac_cv_build_alias=`$ac_config_guess` 2840 test -z "$ac_cv_build_alias" && 2841 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2842 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2843 { (exit 1); exit 1; }; } 2844 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2845 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2846 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 2847 { (exit 1); exit 1; }; } 2848 2849 fi 2850 echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2851 echo "${ECHO_T}$ac_cv_build" >&6 2852 build=$ac_cv_build 2853 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2854 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2855 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2856 2857 2858 2859 echo "$as_me:$LINENO: checking host system type" >&5 2860 echo $ECHO_N "checking host system type... $ECHO_C" >&6 2861 if test "${ac_cv_host+set}" = set; then 2862 echo $ECHO_N "(cached) $ECHO_C" >&6 2863 else 2864 ac_cv_host_alias=$host_alias 2865 test -z "$ac_cv_host_alias" && 2866 ac_cv_host_alias=$ac_cv_build_alias 2867 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2868 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2869 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 2870 { (exit 1); exit 1; }; } 2871 2872 fi 2873 echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2874 echo "${ECHO_T}$ac_cv_host" >&6 2875 host=$ac_cv_host 2876 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2877 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2878 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2879 2880 2881 2882 2883 2884 2885 2886 echo "$as_me:$LINENO: checking host operating system" >&5 2887 echo $ECHO_N "checking host operating system... $ECHO_C" >&6 2888 echo "$as_me:$LINENO: result: $host_os" >&5 2889 echo "${ECHO_T}$host_os" >&6 2890 2891 SHOBJEXT="so" 2892 AREXT="a" 2893 2894 case $host_os in 2895 darwin*) 2896 SHOBJEXT="dylib" 2897 ;; 2898 hpux*) 2899 SHOBJEXT="sl" 2900 ;; 2901 mingw32msvc*) 2902 SHOBJEXT="dll" 2903 SHOBJFLAGS="-mno-cygwin -mms-bitfields -DPIC" 2904 SHOBJLDFLAGS='-shared -Wl,--dll -Wl,--enable-auto-image-base -Wl,--output-def,$@.def,--out-implib,$@.a' 2905 ;; 2906 esac 2907 2908 2909 2910 2911 2912 2913 echo "$as_me:$LINENO: checking how to create shared objects" >&5 2914 echo $ECHO_N "checking how to create shared objects... $ECHO_C" >&6 2915 2916 if test -z "$SHOBJFLAGS" -a -z "$SHOBJLDFLAGS"; then 2917 2918 2919 2920 2921 OLD_LDFLAGS="$LDFLAGS" 2922 SHOBJFLAGS="" 2923 2924 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic" 2925 2926 cat >conftest.$ac_ext <<_ACEOF 2927 /* confdefs.h. */ 2928 _ACEOF 2929 cat confdefs.h >>conftest.$ac_ext 2930 cat >>conftest.$ac_ext <<_ACEOF 2931 /* end confdefs.h. */ 2932 #include <stdio.h> 2933 int unrestst(void); 2934 int 2935 main () 2936 { 2937 printf("okay\n"); unrestst(); return(0); 2938 ; 2939 return 0; 2940 } 2941 _ACEOF 2942 rm -f conftest.$ac_objext conftest$ac_exeext 2943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2944 (eval $ac_link) 2>conftest.er1 2945 ac_status=$? 2946 grep -v '^ *+' conftest.er1 >conftest.err 2947 rm -f conftest.er1 2948 cat conftest.err >&5 2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2950 (exit $ac_status); } && 2951 { ac_try='test -z "$ac_c_werror_flag" 2952 || test ! -s conftest.err' 2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2954 (eval $ac_try) 2>&5 2955 ac_status=$? 2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); }; } && 2958 { ac_try='test -s conftest$ac_exeext' 2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2960 (eval $ac_try) 2>&5 2961 ac_status=$? 2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2963 (exit $ac_status); }; }; then 2964 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic" 2965 else 2966 echo "$as_me: failed program was:" >&5 2967 sed 's/^/| /' conftest.$ac_ext >&5 2968 2969 2970 LDFLAGS="$OLD_LDFLAGS" 2971 2972 2973 2974 2975 2976 OLD_LDFLAGS="$LDFLAGS" 2977 SHOBJFLAGS="" 2978 2979 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared" 2980 2981 cat >conftest.$ac_ext <<_ACEOF 2982 /* confdefs.h. */ 2983 _ACEOF 2984 cat confdefs.h >>conftest.$ac_ext 2985 cat >>conftest.$ac_ext <<_ACEOF 2986 /* end confdefs.h. */ 2987 #include <stdio.h> 2988 int unrestst(void); 2989 int 2990 main () 2991 { 2992 printf("okay\n"); unrestst(); return(0); 2993 ; 2994 return 0; 2995 } 2996 _ACEOF 2997 rm -f conftest.$ac_objext conftest$ac_exeext 2998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2999 (eval $ac_link) 2>conftest.er1 3000 ac_status=$? 3001 grep -v '^ *+' conftest.er1 >conftest.err 3002 rm -f conftest.er1 3003 cat conftest.err >&5 3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3005 (exit $ac_status); } && 3006 { ac_try='test -z "$ac_c_werror_flag" 3007 || test ! -s conftest.err' 3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3009 (eval $ac_try) 2>&5 3010 ac_status=$? 3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3012 (exit $ac_status); }; } && 3013 { ac_try='test -s conftest$ac_exeext' 3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3015 (eval $ac_try) 2>&5 3016 ac_status=$? 3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 (exit $ac_status); }; }; then 3019 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared" 3020 else 3021 echo "$as_me: failed program was:" >&5 3022 sed 's/^/| /' conftest.$ac_ext >&5 3023 3024 3025 LDFLAGS="$OLD_LDFLAGS" 3026 3027 3028 3029 3030 3031 OLD_LDFLAGS="$LDFLAGS" 3032 SHOBJFLAGS="" 3033 3034 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic -mimpure-text" 3035 3036 cat >conftest.$ac_ext <<_ACEOF 3037 /* confdefs.h. */ 3038 _ACEOF 3039 cat confdefs.h >>conftest.$ac_ext 3040 cat >>conftest.$ac_ext <<_ACEOF 3041 /* end confdefs.h. */ 3042 #include <stdio.h> 3043 int unrestst(void); 3044 int 3045 main () 3046 { 3047 printf("okay\n"); unrestst(); return(0); 3048 ; 3049 return 0; 3050 } 3051 _ACEOF 3052 rm -f conftest.$ac_objext conftest$ac_exeext 3053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3054 (eval $ac_link) 2>conftest.er1 3055 ac_status=$? 3056 grep -v '^ *+' conftest.er1 >conftest.err 3057 rm -f conftest.er1 3058 cat conftest.err >&5 3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3060 (exit $ac_status); } && 3061 { ac_try='test -z "$ac_c_werror_flag" 3062 || test ! -s conftest.err' 3063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3064 (eval $ac_try) 2>&5 3065 ac_status=$? 3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3067 (exit $ac_status); }; } && 3068 { ac_try='test -s conftest$ac_exeext' 3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3070 (eval $ac_try) 2>&5 3071 ac_status=$? 3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3073 (exit $ac_status); }; }; then 3074 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic -mimpure-text" 3075 else 3076 echo "$as_me: failed program was:" >&5 3077 sed 's/^/| /' conftest.$ac_ext >&5 3078 3079 3080 LDFLAGS="$OLD_LDFLAGS" 3081 3082 3083 3084 3085 3086 OLD_LDFLAGS="$LDFLAGS" 3087 SHOBJFLAGS="" 3088 3089 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -mimpure-text" 3090 3091 cat >conftest.$ac_ext <<_ACEOF 3092 /* confdefs.h. */ 3093 _ACEOF 3094 cat confdefs.h >>conftest.$ac_ext 3095 cat >>conftest.$ac_ext <<_ACEOF 3096 /* end confdefs.h. */ 3097 #include <stdio.h> 3098 int unrestst(void); 3099 int 3100 main () 3101 { 3102 printf("okay\n"); unrestst(); return(0); 3103 ; 3104 return 0; 3105 } 3106 _ACEOF 3107 rm -f conftest.$ac_objext conftest$ac_exeext 3108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3109 (eval $ac_link) 2>conftest.er1 3110 ac_status=$? 3111 grep -v '^ *+' conftest.er1 >conftest.err 3112 rm -f conftest.er1 3113 cat conftest.err >&5 3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3115 (exit $ac_status); } && 3116 { ac_try='test -z "$ac_c_werror_flag" 3117 || test ! -s conftest.err' 3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3119 (eval $ac_try) 2>&5 3120 ac_status=$? 3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); }; } && 3123 { ac_try='test -s conftest$ac_exeext' 3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3125 (eval $ac_try) 2>&5 3126 ac_status=$? 3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3128 (exit $ac_status); }; }; then 3129 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -mimpure-text" 3130 else 3131 echo "$as_me: failed program was:" >&5 3132 sed 's/^/| /' conftest.$ac_ext >&5 3133 3134 3135 LDFLAGS="$OLD_LDFLAGS" 3136 3137 3138 3139 3140 3141 OLD_LDFLAGS="$LDFLAGS" 3142 SHOBJFLAGS="" 3143 3144 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -rdynamic -Wl,-G,-z,textoff" 3145 3146 cat >conftest.$ac_ext <<_ACEOF 3147 /* confdefs.h. */ 3148 _ACEOF 3149 cat confdefs.h >>conftest.$ac_ext 3150 cat >>conftest.$ac_ext <<_ACEOF 3151 /* end confdefs.h. */ 3152 #include <stdio.h> 3153 int unrestst(void); 3154 int 3155 main () 3156 { 3157 printf("okay\n"); unrestst(); return(0); 3158 ; 3159 return 0; 3160 } 3161 _ACEOF 3162 rm -f conftest.$ac_objext conftest$ac_exeext 3163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3164 (eval $ac_link) 2>conftest.er1 3165 ac_status=$? 3166 grep -v '^ *+' conftest.er1 >conftest.err 3167 rm -f conftest.er1 3168 cat conftest.err >&5 3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3170 (exit $ac_status); } && 3171 { ac_try='test -z "$ac_c_werror_flag" 3172 || test ! -s conftest.err' 3173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3174 (eval $ac_try) 2>&5 3175 ac_status=$? 3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3177 (exit $ac_status); }; } && 3178 { ac_try='test -s conftest$ac_exeext' 3179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3180 (eval $ac_try) 2>&5 3181 ac_status=$? 3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3183 (exit $ac_status); }; }; then 3184 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -rdynamic -Wl,-G,-z,textoff" 3185 else 3186 echo "$as_me: failed program was:" >&5 3187 sed 's/^/| /' conftest.$ac_ext >&5 3188 3189 3190 LDFLAGS="$OLD_LDFLAGS" 3191 3192 3193 3194 3195 3196 OLD_LDFLAGS="$LDFLAGS" 3197 SHOBJFLAGS="" 3198 3199 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -Wl,-G,-z,textoff" 3200 3201 cat >conftest.$ac_ext <<_ACEOF 3202 /* confdefs.h. */ 3203 _ACEOF 3204 cat confdefs.h >>conftest.$ac_ext 3205 cat >>conftest.$ac_ext <<_ACEOF 3206 /* end confdefs.h. */ 3207 #include <stdio.h> 3208 int unrestst(void); 3209 int 3210 main () 3211 { 3212 printf("okay\n"); unrestst(); return(0); 3213 ; 3214 return 0; 3215 } 3216 _ACEOF 3217 rm -f conftest.$ac_objext conftest$ac_exeext 3218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3219 (eval $ac_link) 2>conftest.er1 3220 ac_status=$? 3221 grep -v '^ *+' conftest.er1 >conftest.err 3222 rm -f conftest.er1 3223 cat conftest.err >&5 3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3225 (exit $ac_status); } && 3226 { ac_try='test -z "$ac_c_werror_flag" 3227 || test ! -s conftest.err' 3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3229 (eval $ac_try) 2>&5 3230 ac_status=$? 3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3232 (exit $ac_status); }; } && 3233 { ac_try='test -s conftest$ac_exeext' 3234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3235 (eval $ac_try) 2>&5 3236 ac_status=$? 3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3238 (exit $ac_status); }; }; then 3239 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -Wl,-G,-z,textoff" 3240 else 3241 echo "$as_me: failed program was:" >&5 3242 sed 's/^/| /' conftest.$ac_ext >&5 3243 3244 3245 LDFLAGS="$OLD_LDFLAGS" 3246 3247 3248 3249 3250 3251 OLD_LDFLAGS="$LDFLAGS" 3252 SHOBJFLAGS="" 3253 3254 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -shared -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 3255 3256 cat >conftest.$ac_ext <<_ACEOF 3257 /* confdefs.h. */ 3258 _ACEOF 3259 cat confdefs.h >>conftest.$ac_ext 3260 cat >>conftest.$ac_ext <<_ACEOF 3261 /* end confdefs.h. */ 3262 #include <stdio.h> 3263 int unrestst(void); 3264 int 3265 main () 3266 { 3267 printf("okay\n"); unrestst(); return(0); 3268 ; 3269 return 0; 3270 } 3271 _ACEOF 3272 rm -f conftest.$ac_objext conftest$ac_exeext 3273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3274 (eval $ac_link) 2>conftest.er1 3275 ac_status=$? 3276 grep -v '^ *+' conftest.er1 >conftest.err 3277 rm -f conftest.er1 3278 cat conftest.err >&5 3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3280 (exit $ac_status); } && 3281 { ac_try='test -z "$ac_c_werror_flag" 3282 || test ! -s conftest.err' 3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3284 (eval $ac_try) 2>&5 3285 ac_status=$? 3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3287 (exit $ac_status); }; } && 3288 { ac_try='test -s conftest$ac_exeext' 3289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3290 (eval $ac_try) 2>&5 3291 ac_status=$? 3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3293 (exit $ac_status); }; }; then 3294 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-shared -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 3295 else 3296 echo "$as_me: failed program was:" >&5 3297 sed 's/^/| /' conftest.$ac_ext >&5 3298 3299 3300 LDFLAGS="$OLD_LDFLAGS" 3301 3302 3303 3304 3305 3306 OLD_LDFLAGS="$LDFLAGS" 3307 SHOBJFLAGS="" 3308 3309 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -dynamiclib -flat_namespace -undefined suppress -bind_at_load" 3310 3311 cat >conftest.$ac_ext <<_ACEOF 3312 /* confdefs.h. */ 3313 _ACEOF 3314 cat confdefs.h >>conftest.$ac_ext 3315 cat >>conftest.$ac_ext <<_ACEOF 3316 /* end confdefs.h. */ 3317 #include <stdio.h> 3318 int unrestst(void); 3319 int 3320 main () 3321 { 3322 printf("okay\n"); unrestst(); return(0); 3323 ; 3324 return 0; 3325 } 3326 _ACEOF 3327 rm -f conftest.$ac_objext conftest$ac_exeext 3328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3329 (eval $ac_link) 2>conftest.er1 3330 ac_status=$? 3331 grep -v '^ *+' conftest.er1 >conftest.err 3332 rm -f conftest.er1 3333 cat conftest.err >&5 3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3335 (exit $ac_status); } && 3336 { ac_try='test -z "$ac_c_werror_flag" 3337 || test ! -s conftest.err' 3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3339 (eval $ac_try) 2>&5 3340 ac_status=$? 3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3342 (exit $ac_status); }; } && 3343 { ac_try='test -s conftest$ac_exeext' 3344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3345 (eval $ac_try) 2>&5 3346 ac_status=$? 3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3348 (exit $ac_status); }; }; then 3349 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-dynamiclib -flat_namespace -undefined suppress -bind_at_load" 3350 else 3351 echo "$as_me: failed program was:" >&5 3352 sed 's/^/| /' conftest.$ac_ext >&5 3353 3354 3355 LDFLAGS="$OLD_LDFLAGS" 3356 3357 3358 3359 3360 3361 OLD_LDFLAGS="$LDFLAGS" 3362 SHOBJFLAGS="" 3363 3364 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -Wl,-dynamiclib -Wl,-flat_namespace -Wl,-undefined,suppress -Wl,-bind_at_load" 3365 3366 cat >conftest.$ac_ext <<_ACEOF 3367 /* confdefs.h. */ 3368 _ACEOF 3369 cat confdefs.h >>conftest.$ac_ext 3370 cat >>conftest.$ac_ext <<_ACEOF 3371 /* end confdefs.h. */ 3372 #include <stdio.h> 3373 int unrestst(void); 3374 int 3375 main () 3376 { 3377 printf("okay\n"); unrestst(); return(0); 3378 ; 3379 return 0; 3380 } 3381 _ACEOF 3382 rm -f conftest.$ac_objext conftest$ac_exeext 3383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3384 (eval $ac_link) 2>conftest.er1 3385 ac_status=$? 3386 grep -v '^ *+' conftest.er1 >conftest.err 3387 rm -f conftest.er1 3388 cat conftest.err >&5 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); } && 3391 { ac_try='test -z "$ac_c_werror_flag" 3392 || test ! -s conftest.err' 3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3394 (eval $ac_try) 2>&5 3395 ac_status=$? 3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3397 (exit $ac_status); }; } && 3398 { ac_try='test -s conftest$ac_exeext' 3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3400 (eval $ac_try) 2>&5 3401 ac_status=$? 3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3403 (exit $ac_status); }; }; then 3404 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-Wl,-dynamiclib -Wl,-flat_namespace -Wl,-undefined,suppress -Wl,-bind_at_load" 3405 else 3406 echo "$as_me: failed program was:" >&5 3407 sed 's/^/| /' conftest.$ac_ext >&5 3408 3409 3410 LDFLAGS="$OLD_LDFLAGS" 3411 3412 3413 3414 3415 3416 OLD_LDFLAGS="$LDFLAGS" 3417 SHOBJFLAGS="" 3418 3419 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -dynamiclib -flat_namespace -undefined suppress" 3420 3421 cat >conftest.$ac_ext <<_ACEOF 3422 /* confdefs.h. */ 3423 _ACEOF 3424 cat confdefs.h >>conftest.$ac_ext 3425 cat >>conftest.$ac_ext <<_ACEOF 3426 /* end confdefs.h. */ 3427 #include <stdio.h> 3428 int unrestst(void); 3429 int 3430 main () 3431 { 3432 printf("okay\n"); unrestst(); return(0); 3433 ; 3434 return 0; 3435 } 3436 _ACEOF 3437 rm -f conftest.$ac_objext conftest$ac_exeext 3438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3439 (eval $ac_link) 2>conftest.er1 3440 ac_status=$? 3441 grep -v '^ *+' conftest.er1 >conftest.err 3442 rm -f conftest.er1 3443 cat conftest.err >&5 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3445 (exit $ac_status); } && 3446 { ac_try='test -z "$ac_c_werror_flag" 3447 || test ! -s conftest.err' 3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3449 (eval $ac_try) 2>&5 3450 ac_status=$? 3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3452 (exit $ac_status); }; } && 3453 { ac_try='test -s conftest$ac_exeext' 3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3455 (eval $ac_try) 2>&5 3456 ac_status=$? 3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3458 (exit $ac_status); }; }; then 3459 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-dynamiclib -flat_namespace -undefined suppress" 3460 else 3461 echo "$as_me: failed program was:" >&5 3462 sed 's/^/| /' conftest.$ac_ext >&5 3463 3464 3465 LDFLAGS="$OLD_LDFLAGS" 3466 3467 3468 3469 3470 3471 OLD_LDFLAGS="$LDFLAGS" 3472 SHOBJFLAGS="" 3473 3474 LDFLAGS="$OLD_LDFLAGS -fPIC -DPIC -dynamiclib" 3475 3476 cat >conftest.$ac_ext <<_ACEOF 3477 /* confdefs.h. */ 3478 _ACEOF 3479 cat confdefs.h >>conftest.$ac_ext 3480 cat >>conftest.$ac_ext <<_ACEOF 3481 /* end confdefs.h. */ 3482 #include <stdio.h> 3483 int unrestst(void); 3484 int 3485 main () 3486 { 3487 printf("okay\n"); unrestst(); return(0); 3488 ; 3489 return 0; 3490 } 3491 _ACEOF 3492 rm -f conftest.$ac_objext conftest$ac_exeext 3493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3494 (eval $ac_link) 2>conftest.er1 3495 ac_status=$? 3496 grep -v '^ *+' conftest.er1 >conftest.err 3497 rm -f conftest.er1 3498 cat conftest.err >&5 3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3500 (exit $ac_status); } && 3501 { ac_try='test -z "$ac_c_werror_flag" 3502 || test ! -s conftest.err' 3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3504 (eval $ac_try) 2>&5 3505 ac_status=$? 3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3507 (exit $ac_status); }; } && 3508 { ac_try='test -s conftest$ac_exeext' 3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3510 (eval $ac_try) 2>&5 3511 ac_status=$? 3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3513 (exit $ac_status); }; }; then 3514 SHOBJFLAGS="-fPIC -DPIC"; SHOBJLDFLAGS="-dynamiclib" 3515 else 3516 echo "$as_me: failed program was:" >&5 3517 sed 's/^/| /' conftest.$ac_ext >&5 3518 3519 3520 LDFLAGS="$OLD_LDFLAGS" 3521 3522 echo "$as_me:$LINENO: result: cant" >&5 3523 echo "${ECHO_T}cant" >&6 3524 { { echo "$as_me:$LINENO: error: We are unable to make shared objects." >&5 3525 echo "$as_me: error: We are unable to make shared objects." >&2;} 3526 { (exit 1); exit 1; }; } 3527 3528 3529 fi 3530 rm -f conftest.err conftest.$ac_objext \ 3531 conftest$ac_exeext conftest.$ac_ext 3532 3533 LDFLAGS="$OLD_LDFLAGS" 3534 3535 3536 3537 fi 3538 rm -f conftest.err conftest.$ac_objext \ 3539 conftest$ac_exeext conftest.$ac_ext 3540 3541 LDFLAGS="$OLD_LDFLAGS" 3542 3543 3544 3545 fi 3546 rm -f conftest.err conftest.$ac_objext \ 3547 conftest$ac_exeext conftest.$ac_ext 3548 3549 LDFLAGS="$OLD_LDFLAGS" 3550 3551 3552 3553 fi 3554 rm -f conftest.err conftest.$ac_objext \ 3555 conftest$ac_exeext conftest.$ac_ext 3556 3557 LDFLAGS="$OLD_LDFLAGS" 3558 3559 3560 3561 fi 3562 rm -f conftest.err conftest.$ac_objext \ 3563 conftest$ac_exeext conftest.$ac_ext 3564 3565 LDFLAGS="$OLD_LDFLAGS" 3566 3567 3568 3569 fi 3570 rm -f conftest.err conftest.$ac_objext \ 3571 conftest$ac_exeext conftest.$ac_ext 3572 3573 LDFLAGS="$OLD_LDFLAGS" 3574 3575 3576 3577 fi 3578 rm -f conftest.err conftest.$ac_objext \ 3579 conftest$ac_exeext conftest.$ac_ext 3580 3581 LDFLAGS="$OLD_LDFLAGS" 3582 3583 3584 3585 fi 3586 rm -f conftest.err conftest.$ac_objext \ 3587 conftest$ac_exeext conftest.$ac_ext 3588 3589 LDFLAGS="$OLD_LDFLAGS" 3590 3591 3592 3593 fi 3594 rm -f conftest.err conftest.$ac_objext \ 3595 conftest$ac_exeext conftest.$ac_ext 3596 3597 LDFLAGS="$OLD_LDFLAGS" 3598 3599 3600 3601 fi 3602 rm -f conftest.err conftest.$ac_objext \ 3603 conftest$ac_exeext conftest.$ac_ext 3604 3605 LDFLAGS="$OLD_LDFLAGS" 3606 3607 3608 3609 fi 3610 rm -f conftest.err conftest.$ac_objext \ 3611 conftest$ac_exeext conftest.$ac_ext 3612 3613 LDFLAGS="$OLD_LDFLAGS" 3614 3615 fi 3616 3617 echo "$as_me:$LINENO: result: $SHOBJLDFLAGS $SHOBJFLAGS" >&5 3618 echo "${ECHO_T}$SHOBJLDFLAGS $SHOBJFLAGS" >&6 3619 3620 3621 3622 SHLIBOBJS="" 3623 for obj in $LIBOBJS; do 3624 SHLIBOBJS="$SHLIBOBJS `echo $obj | sed 's/\.o$/_shr.o/g'`" 3625 done 3626 3627 3628 3629 3630 3631 3632 3633 3634 ac_header_dirent=no 3635 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 3636 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 3637 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 3638 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 3639 if eval "test \"\${$as_ac_Header+set}\" = set"; then 3640 echo $ECHO_N "(cached) $ECHO_C" >&6 3641 else 3642 cat >conftest.$ac_ext <<_ACEOF 3643 /* confdefs.h. */ 3644 _ACEOF 3645 cat confdefs.h >>conftest.$ac_ext 3646 cat >>conftest.$ac_ext <<_ACEOF 3647 /* end confdefs.h. */ 3648 #include <sys/types.h> 3649 #include <$ac_hdr> 3650 3651 int 3652 main () 3653 { 3654 if ((DIR *) 0) 3655 return 0; 3656 ; 3657 return 0; 3658 } 3659 _ACEOF 3660 rm -f conftest.$ac_objext 3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3662 (eval $ac_compile) 2>conftest.er1 3663 ac_status=$? 3664 grep -v '^ *+' conftest.er1 >conftest.err 3665 rm -f conftest.er1 3666 cat conftest.err >&5 3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3668 (exit $ac_status); } && 3669 { ac_try='test -z "$ac_c_werror_flag" 3670 || test ! -s conftest.err' 3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3672 (eval $ac_try) 2>&5 3673 ac_status=$? 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3675 (exit $ac_status); }; } && 3676 { ac_try='test -s conftest.$ac_objext' 3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3678 (eval $ac_try) 2>&5 3679 ac_status=$? 3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 (exit $ac_status); }; }; then 3682 eval "$as_ac_Header=yes" 3683 else 3684 echo "$as_me: failed program was:" >&5 3685 sed 's/^/| /' conftest.$ac_ext >&5 3686 3687 eval "$as_ac_Header=no" 3688 fi 3689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3690 fi 3691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3693 if test `eval echo '${'$as_ac_Header'}'` = yes; then 3694 cat >>confdefs.h <<_ACEOF 3695 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 3696 _ACEOF 3697 3698 ac_header_dirent=$ac_hdr; break 3699 fi 3700 3701 done 3702 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 3703 if test $ac_header_dirent = dirent.h; then 3704 echo "$as_me:$LINENO: checking for library containing opendir" >&5 3705 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 3706 if test "${ac_cv_search_opendir+set}" = set; then 3707 echo $ECHO_N "(cached) $ECHO_C" >&6 3708 else 3709 ac_func_search_save_LIBS=$LIBS 3710 ac_cv_search_opendir=no 3711 cat >conftest.$ac_ext <<_ACEOF 3712 /* confdefs.h. */ 3713 _ACEOF 3714 cat confdefs.h >>conftest.$ac_ext 3715 cat >>conftest.$ac_ext <<_ACEOF 3716 /* end confdefs.h. */ 3717 3718 /* Override any gcc2 internal prototype to avoid an error. */ 3719 #ifdef __cplusplus 3720 extern "C" 3721 #endif 3722 /* We use char because int might match the return type of a gcc2 3723 builtin and then its argument prototype would still apply. */ 3724 char opendir (); 3725 int 3726 main () 3727 { 3728 opendir (); 3729 ; 3730 return 0; 3731 } 3732 _ACEOF 3733 rm -f conftest.$ac_objext conftest$ac_exeext 3734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3735 (eval $ac_link) 2>conftest.er1 3736 ac_status=$? 3737 grep -v '^ *+' conftest.er1 >conftest.err 3738 rm -f conftest.er1 3739 cat conftest.err >&5 3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3741 (exit $ac_status); } && 3742 { ac_try='test -z "$ac_c_werror_flag" 3743 || test ! -s conftest.err' 3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3745 (eval $ac_try) 2>&5 3746 ac_status=$? 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3748 (exit $ac_status); }; } && 3749 { ac_try='test -s conftest$ac_exeext' 3750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3751 (eval $ac_try) 2>&5 3752 ac_status=$? 3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3754 (exit $ac_status); }; }; then 3755 ac_cv_search_opendir="none required" 3756 else 3757 echo "$as_me: failed program was:" >&5 3758 sed 's/^/| /' conftest.$ac_ext >&5 3759 3760 fi 3761 rm -f conftest.err conftest.$ac_objext \ 3762 conftest$ac_exeext conftest.$ac_ext 3763 if test "$ac_cv_search_opendir" = no; then 3764 for ac_lib in dir; do 3765 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3766 cat >conftest.$ac_ext <<_ACEOF 3767 /* confdefs.h. */ 3768 _ACEOF 3769 cat confdefs.h >>conftest.$ac_ext 3770 cat >>conftest.$ac_ext <<_ACEOF 3771 /* end confdefs.h. */ 3772 3773 /* Override any gcc2 internal prototype to avoid an error. */ 3774 #ifdef __cplusplus 3775 extern "C" 3776 #endif 3777 /* We use char because int might match the return type of a gcc2 3778 builtin and then its argument prototype would still apply. */ 3779 char opendir (); 3780 int 3781 main () 3782 { 3783 opendir (); 3784 ; 3785 return 0; 3786 } 3787 _ACEOF 3788 rm -f conftest.$ac_objext conftest$ac_exeext 3789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3790 (eval $ac_link) 2>conftest.er1 3791 ac_status=$? 3792 grep -v '^ *+' conftest.er1 >conftest.err 3793 rm -f conftest.er1 3794 cat conftest.err >&5 3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3796 (exit $ac_status); } && 3797 { ac_try='test -z "$ac_c_werror_flag" 3798 || test ! -s conftest.err' 3799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3800 (eval $ac_try) 2>&5 3801 ac_status=$? 3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3803 (exit $ac_status); }; } && 3804 { ac_try='test -s conftest$ac_exeext' 3805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3806 (eval $ac_try) 2>&5 3807 ac_status=$? 3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3809 (exit $ac_status); }; }; then 3810 ac_cv_search_opendir="-l$ac_lib" 3811 break 3812 else 3813 echo "$as_me: failed program was:" >&5 3814 sed 's/^/| /' conftest.$ac_ext >&5 3815 3816 fi 3817 rm -f conftest.err conftest.$ac_objext \ 3818 conftest$ac_exeext conftest.$ac_ext 3819 done 3820 fi 3821 LIBS=$ac_func_search_save_LIBS 3822 fi 3823 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 3824 echo "${ECHO_T}$ac_cv_search_opendir" >&6 3825 if test "$ac_cv_search_opendir" != no; then 3826 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 3827 3828 fi 3829 3830 else 3831 echo "$as_me:$LINENO: checking for library containing opendir" >&5 3832 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 3833 if test "${ac_cv_search_opendir+set}" = set; then 3834 echo $ECHO_N "(cached) $ECHO_C" >&6 3835 else 3836 ac_func_search_save_LIBS=$LIBS 3837 ac_cv_search_opendir=no 3838 cat >conftest.$ac_ext <<_ACEOF 3839 /* confdefs.h. */ 3840 _ACEOF 3841 cat confdefs.h >>conftest.$ac_ext 3842 cat >>conftest.$ac_ext <<_ACEOF 3843 /* end confdefs.h. */ 3844 3845 /* Override any gcc2 internal prototype to avoid an error. */ 3846 #ifdef __cplusplus 3847 extern "C" 3848 #endif 3849 /* We use char because int might match the return type of a gcc2 3850 builtin and then its argument prototype would still apply. */ 3851 char opendir (); 3852 int 3853 main () 3854 { 3855 opendir (); 3856 ; 3857 return 0; 3858 } 3859 _ACEOF 3860 rm -f conftest.$ac_objext conftest$ac_exeext 3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3862 (eval $ac_link) 2>conftest.er1 3863 ac_status=$? 3864 grep -v '^ *+' conftest.er1 >conftest.err 3865 rm -f conftest.er1 3866 cat conftest.err >&5 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); } && 3869 { ac_try='test -z "$ac_c_werror_flag" 3870 || test ! -s conftest.err' 3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3872 (eval $ac_try) 2>&5 3873 ac_status=$? 3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3875 (exit $ac_status); }; } && 3876 { ac_try='test -s conftest$ac_exeext' 3877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3878 (eval $ac_try) 2>&5 3879 ac_status=$? 3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3881 (exit $ac_status); }; }; then 3882 ac_cv_search_opendir="none required" 3883 else 3884 echo "$as_me: failed program was:" >&5 3885 sed 's/^/| /' conftest.$ac_ext >&5 3886 3887 fi 3888 rm -f conftest.err conftest.$ac_objext \ 3889 conftest$ac_exeext conftest.$ac_ext 3890 if test "$ac_cv_search_opendir" = no; then 3891 for ac_lib in x; do 3892 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3893 cat >conftest.$ac_ext <<_ACEOF 3894 /* confdefs.h. */ 3895 _ACEOF 3896 cat confdefs.h >>conftest.$ac_ext 3897 cat >>conftest.$ac_ext <<_ACEOF 3898 /* end confdefs.h. */ 3899 3900 /* Override any gcc2 internal prototype to avoid an error. */ 3901 #ifdef __cplusplus 3902 extern "C" 3903 #endif 3904 /* We use char because int might match the return type of a gcc2 3905 builtin and then its argument prototype would still apply. */ 3906 char opendir (); 3907 int 3908 main () 3909 { 3910 opendir (); 3911 ; 3912 return 0; 3913 } 3914 _ACEOF 3915 rm -f conftest.$ac_objext conftest$ac_exeext 3916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3917 (eval $ac_link) 2>conftest.er1 3918 ac_status=$? 3919 grep -v '^ *+' conftest.er1 >conftest.err 3920 rm -f conftest.er1 3921 cat conftest.err >&5 3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3923 (exit $ac_status); } && 3924 { ac_try='test -z "$ac_c_werror_flag" 3925 || test ! -s conftest.err' 3926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3927 (eval $ac_try) 2>&5 3928 ac_status=$? 3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3930 (exit $ac_status); }; } && 3931 { ac_try='test -s conftest$ac_exeext' 3932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3933 (eval $ac_try) 2>&5 3934 ac_status=$? 3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3936 (exit $ac_status); }; }; then 3937 ac_cv_search_opendir="-l$ac_lib" 3938 break 3939 else 3940 echo "$as_me: failed program was:" >&5 3941 sed 's/^/| /' conftest.$ac_ext >&5 3942 3943 fi 3944 rm -f conftest.err conftest.$ac_objext \ 3945 conftest$ac_exeext conftest.$ac_ext 3946 done 3947 fi 3948 LIBS=$ac_func_search_save_LIBS 3949 fi 3950 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 3951 echo "${ECHO_T}$ac_cv_search_opendir" >&6 3952 if test "$ac_cv_search_opendir" != no; then 3953 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 3954 3955 fi 3956 3957 fi 3958 3959 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3960 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3961 if test "${ac_cv_header_stdc+set}" = set; then 3962 echo $ECHO_N "(cached) $ECHO_C" >&6 3963 else 3964 cat >conftest.$ac_ext <<_ACEOF 3965 /* confdefs.h. */ 3966 _ACEOF 3967 cat confdefs.h >>conftest.$ac_ext 3968 cat >>conftest.$ac_ext <<_ACEOF 3969 /* end confdefs.h. */ 3970 #include <stdlib.h> 3971 #include <stdarg.h> 3972 #include <string.h> 3973 #include <float.h> 3974 3975 int 3976 main () 3977 { 3978 3979 ; 3980 return 0; 3981 } 3982 _ACEOF 3983 rm -f conftest.$ac_objext 3984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3985 (eval $ac_compile) 2>conftest.er1 3986 ac_status=$? 3987 grep -v '^ *+' conftest.er1 >conftest.err 3988 rm -f conftest.er1 3989 cat conftest.err >&5 3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3991 (exit $ac_status); } && 3992 { ac_try='test -z "$ac_c_werror_flag" 3993 || test ! -s conftest.err' 3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3995 (eval $ac_try) 2>&5 3996 ac_status=$? 3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3998 (exit $ac_status); }; } && 3999 { ac_try='test -s conftest.$ac_objext' 4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4001 (eval $ac_try) 2>&5 4002 ac_status=$? 4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4004 (exit $ac_status); }; }; then 4005 ac_cv_header_stdc=yes 4006 else 4007 echo "$as_me: failed program was:" >&5 4008 sed 's/^/| /' conftest.$ac_ext >&5 4009 4010 ac_cv_header_stdc=no 4011 fi 4012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4013 4014 if test $ac_cv_header_stdc = yes; then 4015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4016 cat >conftest.$ac_ext <<_ACEOF 4017 /* confdefs.h. */ 4018 _ACEOF 4019 cat confdefs.h >>conftest.$ac_ext 4020 cat >>conftest.$ac_ext <<_ACEOF 4021 /* end confdefs.h. */ 4022 #include <string.h> 4023 4024 _ACEOF 4025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4026 $EGREP "memchr" >/dev/null 2>&1; then 4027 : 4028 else 4029 ac_cv_header_stdc=no 4030 fi 4031 rm -f conftest* 4032 4033 fi 4034 4035 if test $ac_cv_header_stdc = yes; then 4036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4037 cat >conftest.$ac_ext <<_ACEOF 4038 /* confdefs.h. */ 4039 _ACEOF 4040 cat confdefs.h >>conftest.$ac_ext 4041 cat >>conftest.$ac_ext <<_ACEOF 4042 /* end confdefs.h. */ 4043 #include <stdlib.h> 4044 4045 _ACEOF 4046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4047 $EGREP "free" >/dev/null 2>&1; then 4048 : 4049 else 4050 ac_cv_header_stdc=no 4051 fi 4052 rm -f conftest* 4053 4054 fi 4055 4056 if test $ac_cv_header_stdc = yes; then 4057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4058 if test "$cross_compiling" = yes; then 4059 : 4060 else 4061 cat >conftest.$ac_ext <<_ACEOF 4062 /* confdefs.h. */ 4063 _ACEOF 4064 cat confdefs.h >>conftest.$ac_ext 4065 cat >>conftest.$ac_ext <<_ACEOF 4066 /* end confdefs.h. */ 4067 #include <ctype.h> 4068 #if ((' ' & 0x0FF) == 0x020) 4069 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4070 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4071 #else 4072 # define ISLOWER(c) \ 4073 (('a' <= (c) && (c) <= 'i') \ 4074 || ('j' <= (c) && (c) <= 'r') \ 4075 || ('s' <= (c) && (c) <= 'z')) 4076 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4077 #endif 4078 4079 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4080 int 4081 main () 4082 { 4083 int i; 4084 for (i = 0; i < 256; i++) 4085 if (XOR (islower (i), ISLOWER (i)) 4086 || toupper (i) != TOUPPER (i)) 4087 exit(2); 4088 exit (0); 4089 } 4090 _ACEOF 4091 rm -f conftest$ac_exeext 4092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4093 (eval $ac_link) 2>&5 4094 ac_status=$? 4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4098 (eval $ac_try) 2>&5 4099 ac_status=$? 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); }; }; then 4102 : 4103 else 4104 echo "$as_me: program exited with status $ac_status" >&5 4105 echo "$as_me: failed program was:" >&5 4106 sed 's/^/| /' conftest.$ac_ext >&5 4107 4108 ( exit $ac_status ) 4109 ac_cv_header_stdc=no 4110 fi 4111 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4112 fi 4113 fi 4114 fi 4115 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4116 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4117 if test $ac_cv_header_stdc = yes; then 4118 4119 cat >>confdefs.h <<\_ACEOF 4120 #define STDC_HEADERS 1 4121 _ACEOF 4122 4123 fi 4124 4125 4126 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4137 inttypes.h stdint.h unistd.h 4138 do 4139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4140 echo "$as_me:$LINENO: checking for $ac_header" >&5 4141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4142 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4143 echo $ECHO_N "(cached) $ECHO_C" >&6 4144 else 4145 cat >conftest.$ac_ext <<_ACEOF 4146 /* confdefs.h. */ 4147 _ACEOF 4148 cat confdefs.h >>conftest.$ac_ext 4149 cat >>conftest.$ac_ext <<_ACEOF 4150 /* end confdefs.h. */ 4151 $ac_includes_default 4152 4153 #include <$ac_header> 4154 _ACEOF 4155 rm -f conftest.$ac_objext 4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4157 (eval $ac_compile) 2>conftest.er1 4158 ac_status=$? 4159 grep -v '^ *+' conftest.er1 >conftest.err 4160 rm -f conftest.er1 4161 cat conftest.err >&5 4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4163 (exit $ac_status); } && 4164 { ac_try='test -z "$ac_c_werror_flag" 4165 || test ! -s conftest.err' 4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4167 (eval $ac_try) 2>&5 4168 ac_status=$? 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4170 (exit $ac_status); }; } && 4171 { ac_try='test -s conftest.$ac_objext' 4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4173 (eval $ac_try) 2>&5 4174 ac_status=$? 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4176 (exit $ac_status); }; }; then 4177 eval "$as_ac_Header=yes" 4178 else 4179 echo "$as_me: failed program was:" >&5 4180 sed 's/^/| /' conftest.$ac_ext >&5 4181 4182 eval "$as_ac_Header=no" 4183 fi 4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4185 fi 4186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4188 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4189 cat >>confdefs.h <<_ACEOF 4190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4191 _ACEOF 4192 4193 fi 4194 4195 done 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 for ac_header in arpa/inet.h errno.h fcntl.h inttypes.h netdb.h netinet/in.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/socket.h sys/stat.h sys/types.h unistd.h 4214 do 4215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4216 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4217 echo "$as_me:$LINENO: checking for $ac_header" >&5 4218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4219 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4220 echo $ECHO_N "(cached) $ECHO_C" >&6 4221 fi 4222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4224 else 4225 # Is the header compilable? 4226 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4228 cat >conftest.$ac_ext <<_ACEOF 4229 /* confdefs.h. */ 4230 _ACEOF 4231 cat confdefs.h >>conftest.$ac_ext 4232 cat >>conftest.$ac_ext <<_ACEOF 4233 /* end confdefs.h. */ 4234 $ac_includes_default 4235 #include <$ac_header> 4236 _ACEOF 4237 rm -f conftest.$ac_objext 4238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4239 (eval $ac_compile) 2>conftest.er1 4240 ac_status=$? 4241 grep -v '^ *+' conftest.er1 >conftest.err 4242 rm -f conftest.er1 4243 cat conftest.err >&5 4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4245 (exit $ac_status); } && 4246 { ac_try='test -z "$ac_c_werror_flag" 4247 || test ! -s conftest.err' 4248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4249 (eval $ac_try) 2>&5 4250 ac_status=$? 4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); }; } && 4253 { ac_try='test -s conftest.$ac_objext' 4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4255 (eval $ac_try) 2>&5 4256 ac_status=$? 4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4258 (exit $ac_status); }; }; then 4259 ac_header_compiler=yes 4260 else 4261 echo "$as_me: failed program was:" >&5 4262 sed 's/^/| /' conftest.$ac_ext >&5 4263 4264 ac_header_compiler=no 4265 fi 4266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4268 echo "${ECHO_T}$ac_header_compiler" >&6 4269 4270 # Is the header present? 4271 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4273 cat >conftest.$ac_ext <<_ACEOF 4274 /* confdefs.h. */ 4275 _ACEOF 4276 cat confdefs.h >>conftest.$ac_ext 4277 cat >>conftest.$ac_ext <<_ACEOF 4278 /* end confdefs.h. */ 4279 #include <$ac_header> 4280 _ACEOF 4281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4283 ac_status=$? 4284 grep -v '^ *+' conftest.er1 >conftest.err 4285 rm -f conftest.er1 4286 cat conftest.err >&5 4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4288 (exit $ac_status); } >/dev/null; then 4289 if test -s conftest.err; then 4290 ac_cpp_err=$ac_c_preproc_warn_flag 4291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4292 else 4293 ac_cpp_err= 4294 fi 4295 else 4296 ac_cpp_err=yes 4297 fi 4298 if test -z "$ac_cpp_err"; then 4299 ac_header_preproc=yes 4300 else 4301 echo "$as_me: failed program was:" >&5 4302 sed 's/^/| /' conftest.$ac_ext >&5 4303 4304 ac_header_preproc=no 4305 fi 4306 rm -f conftest.err conftest.$ac_ext 4307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4308 echo "${ECHO_T}$ac_header_preproc" >&6 4309 4310 # So? What about this header? 4311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4312 yes:no: ) 4313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4317 ac_header_preproc=yes 4318 ;; 4319 no:yes:* ) 4320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4332 ( 4333 cat <<\_ASBOX 4334 ## ------------------------------------ ## 4335 ## Report this to the libconfig lists. ## 4336 ## ------------------------------------ ## 4337 _ASBOX 4338 ) | 4339 sed "s/^/$as_me: WARNING: /" >&2 4340 ;; 4341 esac 4342 echo "$as_me:$LINENO: checking for $ac_header" >&5 4343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4344 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4345 echo $ECHO_N "(cached) $ECHO_C" >&6 4346 else 4347 eval "$as_ac_Header=\$ac_header_preproc" 4348 fi 4349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4351 4352 fi 4353 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4354 cat >>confdefs.h <<_ACEOF 4355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4356 _ACEOF 4357 4358 fi 4359 4360 done 4361 4362 4363 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4364 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4365 if test "${ac_cv_c_const+set}" = set; then 4366 echo $ECHO_N "(cached) $ECHO_C" >&6 4367 else 4368 cat >conftest.$ac_ext <<_ACEOF 4369 /* confdefs.h. */ 4370 _ACEOF 4371 cat confdefs.h >>conftest.$ac_ext 4372 cat >>conftest.$ac_ext <<_ACEOF 4373 /* end confdefs.h. */ 4374 4375 int 4376 main () 4377 { 4378 /* FIXME: Include the comments suggested by Paul. */ 4379 #ifndef __cplusplus 4380 /* Ultrix mips cc rejects this. */ 4381 typedef int charset[2]; 4382 const charset x; 4383 /* SunOS 4.1.1 cc rejects this. */ 4384 char const *const *ccp; 4385 char **p; 4386 /* NEC SVR4.0.2 mips cc rejects this. */ 4387 struct point {int x, y;}; 4388 static struct point const zero = {0,0}; 4389 /* AIX XL C 1.02.0.0 rejects this. 4390 It does not let you subtract one const X* pointer from another in 4391 an arm of an if-expression whose if-part is not a constant 4392 expression */ 4393 const char *g = "string"; 4394 ccp = &g + (g ? g-g : 0); 4395 /* HPUX 7.0 cc rejects these. */ 4396 ++ccp; 4397 p = (char**) ccp; 4398 ccp = (char const *const *) p; 4399 { /* SCO 3.2v4 cc rejects this. */ 4400 char *t; 4401 char const *s = 0 ? (char *) 0 : (char const *) 0; 4402 4403 *t++ = 0; 4404 } 4405 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4406 int x[] = {25, 17}; 4407 const int *foo = &x[0]; 4408 ++foo; 4409 } 4410 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4411 typedef const int *iptr; 4412 iptr p = 0; 4413 ++p; 4414 } 4415 { /* AIX XL C 1.02.0.0 rejects this saying 4416 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4417 struct s { int j; const int *ap[3]; }; 4418 struct s *b; b->j = 5; 4419 } 4420 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4421 const int foo = 10; 4422 } 4423 #endif 4424 4425 ; 4426 return 0; 4427 } 4428 _ACEOF 4429 rm -f conftest.$ac_objext 4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4431 (eval $ac_compile) 2>conftest.er1 4432 ac_status=$? 4433 grep -v '^ *+' conftest.er1 >conftest.err 4434 rm -f conftest.er1 4435 cat conftest.err >&5 4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4437 (exit $ac_status); } && 4438 { ac_try='test -z "$ac_c_werror_flag" 4439 || test ! -s conftest.err' 4440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4441 (eval $ac_try) 2>&5 4442 ac_status=$? 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4444 (exit $ac_status); }; } && 4445 { ac_try='test -s conftest.$ac_objext' 4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4447 (eval $ac_try) 2>&5 4448 ac_status=$? 4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4450 (exit $ac_status); }; }; then 4451 ac_cv_c_const=yes 4452 else 4453 echo "$as_me: failed program was:" >&5 4454 sed 's/^/| /' conftest.$ac_ext >&5 4455 4456 ac_cv_c_const=no 4457 fi 4458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4459 fi 4460 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4461 echo "${ECHO_T}$ac_cv_c_const" >&6 4462 if test $ac_cv_c_const = no; then 4463 4464 cat >>confdefs.h <<\_ACEOF 4465 #define const 4466 _ACEOF 4467 4468 fi 4469 4470 echo "$as_me:$LINENO: checking for mode_t" >&5 4471 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 4472 if test "${ac_cv_type_mode_t+set}" = set; then 4473 echo $ECHO_N "(cached) $ECHO_C" >&6 4474 else 4475 cat >conftest.$ac_ext <<_ACEOF 4476 /* confdefs.h. */ 4477 _ACEOF 4478 cat confdefs.h >>conftest.$ac_ext 4479 cat >>conftest.$ac_ext <<_ACEOF 4480 /* end confdefs.h. */ 4481 $ac_includes_default 4482 int 4483 main () 4484 { 4485 if ((mode_t *) 0) 4486 return 0; 4487 if (sizeof (mode_t)) 4488 return 0; 4489 ; 4490 return 0; 4491 } 4492 _ACEOF 4493 rm -f conftest.$ac_objext 4494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4495 (eval $ac_compile) 2>conftest.er1 4496 ac_status=$? 4497 grep -v '^ *+' conftest.er1 >conftest.err 4498 rm -f conftest.er1 4499 cat conftest.err >&5 4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4501 (exit $ac_status); } && 4502 { ac_try='test -z "$ac_c_werror_flag" 4503 || test ! -s conftest.err' 4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4505 (eval $ac_try) 2>&5 4506 ac_status=$? 4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4508 (exit $ac_status); }; } && 4509 { ac_try='test -s conftest.$ac_objext' 4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4511 (eval $ac_try) 2>&5 4512 ac_status=$? 4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4514 (exit $ac_status); }; }; then 4515 ac_cv_type_mode_t=yes 4516 else 4517 echo "$as_me: failed program was:" >&5 4518 sed 's/^/| /' conftest.$ac_ext >&5 4519 4520 ac_cv_type_mode_t=no 4521 fi 4522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4523 fi 4524 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 4525 echo "${ECHO_T}$ac_cv_type_mode_t" >&6 4526 if test $ac_cv_type_mode_t = yes; then 4527 : 4528 else 4529 4530 cat >>confdefs.h <<_ACEOF 4531 #define mode_t int 4532 _ACEOF 4533 4534 fi 4535 4536 echo "$as_me:$LINENO: checking for off_t" >&5 4537 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4538 if test "${ac_cv_type_off_t+set}" = set; then 4539 echo $ECHO_N "(cached) $ECHO_C" >&6 4540 else 4541 cat >conftest.$ac_ext <<_ACEOF 4542 /* confdefs.h. */ 4543 _ACEOF 4544 cat confdefs.h >>conftest.$ac_ext 4545 cat >>conftest.$ac_ext <<_ACEOF 4546 /* end confdefs.h. */ 4547 $ac_includes_default 4548 int 4549 main () 4550 { 4551 if ((off_t *) 0) 4552 return 0; 4553 if (sizeof (off_t)) 4554 return 0; 4555 ; 4556 return 0; 4557 } 4558 _ACEOF 4559 rm -f conftest.$ac_objext 4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4561 (eval $ac_compile) 2>conftest.er1 4562 ac_status=$? 4563 grep -v '^ *+' conftest.er1 >conftest.err 4564 rm -f conftest.er1 4565 cat conftest.err >&5 4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4567 (exit $ac_status); } && 4568 { ac_try='test -z "$ac_c_werror_flag" 4569 || test ! -s conftest.err' 4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4571 (eval $ac_try) 2>&5 4572 ac_status=$? 4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4574 (exit $ac_status); }; } && 4575 { ac_try='test -s conftest.$ac_objext' 4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4577 (eval $ac_try) 2>&5 4578 ac_status=$? 4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4580 (exit $ac_status); }; }; then 4581 ac_cv_type_off_t=yes 4582 else 4583 echo "$as_me: failed program was:" >&5 4584 sed 's/^/| /' conftest.$ac_ext >&5 4585 4586 ac_cv_type_off_t=no 4587 fi 4588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4589 fi 4590 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4591 echo "${ECHO_T}$ac_cv_type_off_t" >&6 4592 if test $ac_cv_type_off_t = yes; then 4593 : 4594 else 4595 4596 cat >>confdefs.h <<_ACEOF 4597 #define off_t long 4598 _ACEOF 4599 4600 fi 4601 4602 echo "$as_me:$LINENO: checking for size_t" >&5 4603 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4604 if test "${ac_cv_type_size_t+set}" = set; then 4605 echo $ECHO_N "(cached) $ECHO_C" >&6 4606 else 4607 cat >conftest.$ac_ext <<_ACEOF 4608 /* confdefs.h. */ 4609 _ACEOF 4610 cat confdefs.h >>conftest.$ac_ext 4611 cat >>conftest.$ac_ext <<_ACEOF 4612 /* end confdefs.h. */ 4613 $ac_includes_default 4614 int 4615 main () 4616 { 4617 if ((size_t *) 0) 4618 return 0; 4619 if (sizeof (size_t)) 4620 return 0; 4621 ; 4622 return 0; 4623 } 4624 _ACEOF 4625 rm -f conftest.$ac_objext 4626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4627 (eval $ac_compile) 2>conftest.er1 4628 ac_status=$? 4629 grep -v '^ *+' conftest.er1 >conftest.err 4630 rm -f conftest.er1 4631 cat conftest.err >&5 4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4633 (exit $ac_status); } && 4634 { ac_try='test -z "$ac_c_werror_flag" 4635 || test ! -s conftest.err' 4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4637 (eval $ac_try) 2>&5 4638 ac_status=$? 4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4640 (exit $ac_status); }; } && 4641 { ac_try='test -s conftest.$ac_objext' 4642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4643 (eval $ac_try) 2>&5 4644 ac_status=$? 4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4646 (exit $ac_status); }; }; then 4647 ac_cv_type_size_t=yes 4648 else 4649 echo "$as_me: failed program was:" >&5 4650 sed 's/^/| /' conftest.$ac_ext >&5 4651 4652 ac_cv_type_size_t=no 4653 fi 4654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4655 fi 4656 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4657 echo "${ECHO_T}$ac_cv_type_size_t" >&6 4658 if test $ac_cv_type_size_t = yes; then 4659 : 4660 else 4661 4662 cat >>confdefs.h <<_ACEOF 4663 #define size_t unsigned 4664 _ACEOF 4665 4666 fi 4667 4668 echo "$as_me:$LINENO: checking for off_t" >&5 4669 echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4670 if test "${ac_cv_type_off_t+set}" = set; then 4671 echo $ECHO_N "(cached) $ECHO_C" >&6 4672 else 4673 cat >conftest.$ac_ext <<_ACEOF 4674 /* confdefs.h. */ 4675 _ACEOF 4676 cat confdefs.h >>conftest.$ac_ext 4677 cat >>conftest.$ac_ext <<_ACEOF 4678 /* end confdefs.h. */ 4679 $ac_includes_default 4680 int 4681 main () 4682 { 4683 if ((off_t *) 0) 4684 return 0; 4685 if (sizeof (off_t)) 4686 return 0; 4687 ; 4688 return 0; 4689 } 4690 _ACEOF 4691 rm -f conftest.$ac_objext 4692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4693 (eval $ac_compile) 2>conftest.er1 4694 ac_status=$? 4695 grep -v '^ *+' conftest.er1 >conftest.err 4696 rm -f conftest.er1 4697 cat conftest.err >&5 4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4699 (exit $ac_status); } && 4700 { ac_try='test -z "$ac_c_werror_flag" 4701 || test ! -s conftest.err' 4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4703 (eval $ac_try) 2>&5 4704 ac_status=$? 4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4706 (exit $ac_status); }; } && 4707 { ac_try='test -s conftest.$ac_objext' 4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4709 (eval $ac_try) 2>&5 4710 ac_status=$? 4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4712 (exit $ac_status); }; }; then 4713 ac_cv_type_off_t=yes 4714 else 4715 echo "$as_me: failed program was:" >&5 4716 sed 's/^/| /' conftest.$ac_ext >&5 4717 4718 ac_cv_type_off_t=no 4719 fi 4720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4721 fi 4722 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4723 echo "${ECHO_T}$ac_cv_type_off_t" >&6 4724 if test $ac_cv_type_off_t = yes; then 4725 : 4726 else 4727 4728 cat >>confdefs.h <<_ACEOF 4729 #define off_t long 4730 _ACEOF 4731 4732 fi 4733 4734 # Check whether --enable-largefile or --disable-largefile was given. 4735 if test "${enable_largefile+set}" = set; then 4736 enableval="$enable_largefile" 4737 4738 fi; 4739 if test "$enable_largefile" != no; then 4740 4741 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 4742 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 4743 if test "${ac_cv_sys_largefile_CC+set}" = set; then 4744 echo $ECHO_N "(cached) $ECHO_C" >&6 4745 else 4746 ac_cv_sys_largefile_CC=no 4747 if test "$GCC" != yes; then 4748 ac_save_CC=$CC 4749 while :; do 4750 # IRIX 6.2 and later do not support large files by default, 4751 # so use the C compiler's -n32 option if that helps. 4752 cat >conftest.$ac_ext <<_ACEOF 4753 /* confdefs.h. */ 4754 _ACEOF 4755 cat confdefs.h >>conftest.$ac_ext 4756 cat >>conftest.$ac_ext <<_ACEOF 4757 /* end confdefs.h. */ 4758 #include <sys/types.h> 4759 /* Check that off_t can represent 2**63 - 1 correctly. 4760 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4761 since some C++ compilers masquerading as C compilers 4762 incorrectly reject 9223372036854775807. */ 4763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4765 && LARGE_OFF_T % 2147483647 == 1) 4766 ? 1 : -1]; 4767 int 4768 main () 4769 { 4770 4771 ; 4772 return 0; 4773 } 4774 _ACEOF 4775 rm -f conftest.$ac_objext 4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4777 (eval $ac_compile) 2>conftest.er1 4778 ac_status=$? 4779 grep -v '^ *+' conftest.er1 >conftest.err 4780 rm -f conftest.er1 4781 cat conftest.err >&5 4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4783 (exit $ac_status); } && 4784 { ac_try='test -z "$ac_c_werror_flag" 4785 || test ! -s conftest.err' 4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4787 (eval $ac_try) 2>&5 4788 ac_status=$? 4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4790 (exit $ac_status); }; } && 4791 { ac_try='test -s conftest.$ac_objext' 4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4793 (eval $ac_try) 2>&5 4794 ac_status=$? 4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4796 (exit $ac_status); }; }; then 4797 break 4798 else 4799 echo "$as_me: failed program was:" >&5 4800 sed 's/^/| /' conftest.$ac_ext >&5 4801 4802 fi 4803 rm -f conftest.err conftest.$ac_objext 4804 CC="$CC -n32" 4805 rm -f conftest.$ac_objext 4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4807 (eval $ac_compile) 2>conftest.er1 4808 ac_status=$? 4809 grep -v '^ *+' conftest.er1 >conftest.err |