1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for fixincludes . 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME='fixincludes' 269PACKAGE_TARNAME='fixincludes' 270PACKAGE_VERSION=' ' 271PACKAGE_STRING='fixincludes ' 272PACKAGE_BUGREPORT='' 273 274ac_unique_file="inclhack.def" 275# Factoring default headers for most tests. 276ac_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 312ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT WARN_CFLAGS WARN_PEDANTIC WERROR target_noncanonical TARGET CPP EGREP MAINT LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_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. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 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 627Try \`$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 650done 651 652if 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; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 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 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 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 679done 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. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if 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 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if 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 || 715echo 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 725else 726 ac_srcdir_defaulted=no 727fi 728if 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 736fi 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; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if 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 fixincludes to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 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 804Installation 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 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine 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 834System types: 835 --build=BUILD configure for building on BUILD [guessed] 836 --host=HOST cross-compile to build programs to run on HOST [BUILD] 837 --target=TARGET configure for building compilers for TARGET [HOST] 838_ACEOF 839fi 840 841if test -n "$ac_init_help"; then 842 case $ac_init_help in 843 short | recursive ) echo "Configuration of fixincludes :";; 844 esac 845 cat <<\_ACEOF 846 847Optional Features: 848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 850 --enable-werror-always enable -Werror despite compiler version 851 --enable-twoprocess Use a separate process to apply the fixes 852 --enable-maintainer-mode enable make rules and dependencies not useful 853 (and sometimes confusing) to the casual installer 854 855Optional Packages: 856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 858 --with-local-prefix=DIR specifies directory to put local include 859 860Some influential environment variables: 861 CC C compiler command 862 CFLAGS C compiler flags 863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 864 nonstandard directory <lib dir> 865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 866 headers in a nonstandard directory <include dir> 867 CPP C preprocessor 868 869Use these variables to override the choices made by `configure' or to help 870it to find libraries and programs with nonstandard names/locations. 871 872_ACEOF 873fi 874 875if test "$ac_init_help" = "recursive"; then 876 # If there are subdirs, report their specific --help. 877 ac_popdir=`pwd` 878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 879 test -d $ac_dir || continue 880 ac_builddir=. 881 882if test "$ac_dir" != .; then 883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 884 # A "../" for each directory in $ac_dir_suffix. 885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 886else 887 ac_dir_suffix= ac_top_builddir= 888fi 889 890case $srcdir in 891 .) # No --srcdir option. We are building in place. 892 ac_srcdir=. 893 if test -z "$ac_top_builddir"; then 894 ac_top_srcdir=. 895 else 896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 897 fi ;; 898 [\\/]* | ?:[\\/]* ) # Absolute path. 899 ac_srcdir=$srcdir$ac_dir_suffix; 900 ac_top_srcdir=$srcdir ;; 901 *) # Relative path. 902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 903 ac_top_srcdir=$ac_top_builddir$srcdir ;; 904esac 905 906# Do not use `cd foo && pwd` to compute absolute paths, because 907# the directories may not exist. 908case `pwd` in 909.) ac_abs_builddir="$ac_dir";; 910*) 911 case "$ac_dir" in 912 .) ac_abs_builddir=`pwd`;; 913 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 914 *) ac_abs_builddir=`pwd`/"$ac_dir";; 915 esac;; 916esac 917case $ac_abs_builddir in 918.) ac_abs_top_builddir=${ac_top_builddir}.;; 919*) 920 case ${ac_top_builddir}. in 921 .) ac_abs_top_builddir=$ac_abs_builddir;; 922 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 923 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 924 esac;; 925esac 926case $ac_abs_builddir in 927.) ac_abs_srcdir=$ac_srcdir;; 928*) 929 case $ac_srcdir in 930 .) ac_abs_srcdir=$ac_abs_builddir;; 931 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 932 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 933 esac;; 934esac 935case $ac_abs_builddir in 936.) ac_abs_top_srcdir=$ac_top_srcdir;; 937*) 938 case $ac_top_srcdir in 939 .) ac_abs_top_srcdir=$ac_abs_builddir;; 940 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 941 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 942 esac;; 943esac 944 945 cd $ac_dir 946 # Check for guested configure; otherwise get Cygnus style configure. 947 if test -f $ac_srcdir/configure.gnu; then 948 echo 949 $SHELL $ac_srcdir/configure.gnu --help=recursive 950 elif test -f $ac_srcdir/configure; then 951 echo 952 $SHELL $ac_srcdir/configure --help=recursive 953 elif test -f $ac_srcdir/configure.ac || 954 test -f $ac_srcdir/configure.in; then 955 echo 956 $ac_configure --help 957 else 958 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 959 fi 960 cd $ac_popdir 961 done 962fi 963 964test -n "$ac_init_help" && exit 0 965if $ac_init_version; then 966 cat <<\_ACEOF 967fixincludes configure 968generated by GNU Autoconf 2.59 969 970Copyright (C) 2003 Free Software Foundation, Inc. 971This configure script is free software; the Free Software Foundation 972gives unlimited permission to copy, distribute and modify it. 973_ACEOF 974 exit 0 975fi 976exec 5>config.log 977cat >&5 <<_ACEOF 978This file contains any messages produced by compilers while 979running configure, to aid debugging if configure makes a mistake. 980 981It was created by fixincludes $as_me , which was 982generated by GNU Autoconf 2.59. Invocation command line was 983 984 $ $0 $@ 985 986_ACEOF 987{ 988cat <<_ASUNAME 989## --------- ## 990## Platform. ## 991## --------- ## 992 993hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 994uname -m = `(uname -m) 2>/dev/null || echo unknown` 995uname -r = `(uname -r) 2>/dev/null || echo unknown` 996uname -s = `(uname -s) 2>/dev/null || echo unknown` 997uname -v = `(uname -v) 2>/dev/null || echo unknown` 998 999/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1000/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1001 1002/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1003/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1004/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1005hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1006/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1007/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1008/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1009 1010_ASUNAME 1011 1012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1013for as_dir in $PATH 1014do 1015 IFS=$as_save_IFS 1016 test -z "$as_dir" && as_dir=. 1017 echo "PATH: $as_dir" 1018done 1019 1020} >&5 1021 1022cat >&5 <<_ACEOF 1023 1024 1025## ----------- ## 1026## Core tests. ## 1027## ----------- ## 1028 1029_ACEOF 1030 1031 1032# Keep a trace of the command line. 1033# Strip out --no-create and --no-recursion so they do not pile up. 1034# Strip out --silent because we don't want to record it for future runs. 1035# Also quote any args containing shell meta-characters. 1036# Make two passes to allow for proper duplicate-argument suppression. 1037ac_configure_args= 1038ac_configure_args0= 1039ac_configure_args1= 1040ac_sep= 1041ac_must_keep_next=false 1042for ac_pass in 1 2 1043do 1044 for ac_arg 1045 do 1046 case $ac_arg in 1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1049 | -silent | --silent | --silen | --sile | --sil) 1050 continue ;; 1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1053 esac 1054 case $ac_pass in 1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1056 2) 1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1058 if test $ac_must_keep_next = true; then 1059 ac_must_keep_next=false # Got value, back to normal. 1060 else 1061 case $ac_arg in 1062 *=* | --config-cache | -C | -disable-* | --disable-* \ 1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1065 | -with-* | --with-* | -without-* | --without-* | --x) 1066 case "$ac_configure_args0 " in 1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1068 esac 1069 ;; 1070 -* ) ac_must_keep_next=true ;; 1071 esac 1072 fi 1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1074 # Get rid of the leading space. 1075 ac_sep=" " 1076 ;; 1077 esac 1078 done 1079done 1080$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1081$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1082 1083# When interrupted or exit'd, cleanup temporary files, and complete 1084# config.log. We remove comments because anyway the quotes in there 1085# would cause problems or look ugly. 1086# WARNING: Be sure not to use single quotes in there, as some shells, 1087# such as our DU 5.0 friend, will then `close' the trap. 1088trap 'exit_status=$? 1089 # Save into config.log some information that might help in debugging. 1090 { 1091 echo 1092 1093 cat <<\_ASBOX 1094## ---------------- ## 1095## Cache variables. ## 1096## ---------------- ## 1097_ASBOX 1098 echo 1099 # The following way of writing the cache mishandles newlines in values, 1100{ 1101 (set) 2>&1 | 1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1103 *ac_space=\ *) 1104 sed -n \ 1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1107 ;; 1108 *) 1109 sed -n \ 1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1111 ;; 1112 esac; 1113} 1114 echo 1115 1116 cat <<\_ASBOX 1117## ----------------- ## 1118## Output variables. ## 1119## ----------------- ## 1120_ASBOX 1121 echo 1122 for ac_var in $ac_subst_vars 1123 do 1124 eval ac_val=$`echo $ac_var` 1125 echo "$ac_var='"'"'$ac_val'"'"'" 1126 done | sort 1127 echo 1128 1129 if test -n "$ac_subst_files"; then 1130 cat <<\_ASBOX 1131## ------------- ## 1132## Output files. ## 1133## ------------- ## 1134_ASBOX 1135 echo 1136 for ac_var in $ac_subst_files 1137 do 1138 eval ac_val=$`echo $ac_var` 1139 echo "$ac_var='"'"'$ac_val'"'"'" 1140 done | sort 1141 echo 1142 fi 1143 1144 if test -s confdefs.h; then 1145 cat <<\_ASBOX 1146## ----------- ## 1147## confdefs.h. ## 1148## ----------- ## 1149_ASBOX 1150 echo 1151 sed "/^$/d" confdefs.h | sort 1152 echo 1153 fi 1154 test "$ac_signal" != 0 && 1155 echo "$as_me: caught signal $ac_signal" 1156 echo "$as_me: exit $exit_status" 1157 } >&5 1158 rm -f core *.core && 1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1160 exit $exit_status 1161 ' 0 1162for ac_signal in 1 2 13 15; do 1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1164done 1165ac_signal=0 1166 1167# confdefs.h avoids OS command line length limits that DEFS can exceed. 1168rm -rf conftest* confdefs.h 1169# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1170echo >confdefs.h 1171 1172# Predefined preprocessor variables. 1173 1174cat >>confdefs.h <<_ACEOF 1175#define PACKAGE_NAME "$PACKAGE_NAME" 1176_ACEOF 1177 1178 1179cat >>confdefs.h <<_ACEOF 1180#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1181_ACEOF 1182 1183 1184cat >>confdefs.h <<_ACEOF 1185#define PACKAGE_VERSION "$PACKAGE_VERSION" 1186_ACEOF 1187 1188 1189cat >>confdefs.h <<_ACEOF 1190#define PACKAGE_STRING "$PACKAGE_STRING" 1191_ACEOF 1192 1193 1194cat >>confdefs.h <<_ACEOF 1195#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1196_ACEOF 1197 1198 1199# Let the site file select an alternate cache file if it wants to. 1200# Prefer explicitly selected file to automatically selected ones. 1201if test -z "$CONFIG_SITE"; then 1202 if test "x$prefix" != xNONE; then 1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1204 else 1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1206 fi 1207fi 1208for ac_site_file in $CONFIG_SITE; do 1209 if test -r "$ac_site_file"; then 1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1211echo "$as_me: loading site script $ac_site_file" >&6;} 1212 sed 's/^/| /' "$ac_site_file" >&5 1213 . "$ac_site_file" 1214 fi 1215done 1216 1217if test -r "$cache_file"; then 1218 # Some versions of bash will fail to source /dev/null (special 1219 # files actually), so we avoid doing that. 1220 if test -f "$cache_file"; then 1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1222echo "$as_me: loading cache $cache_file" >&6;} 1223 case $cache_file in 1224 [\\/]* | ?:[\\/]* ) . $cache_file;; 1225 *) . ./$cache_file;; 1226 esac 1227 fi 1228else 1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1230echo "$as_me: creating cache $cache_file" >&6;} 1231 >$cache_file 1232fi 1233 1234# Check that the precious variables saved in the cache have kept the same 1235# value. 1236ac_cache_corrupted=false 1237for ac_var in `(set) 2>&1 | 1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1240 eval ac_new_set=\$ac_env_${ac_var}_set 1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1242 eval ac_new_val="\$ac_env_${ac_var}_value" 1243 case $ac_old_set,$ac_new_set in 1244 set,) 1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1246echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1247 ac_cache_corrupted=: ;; 1248 ,set) 1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1250echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1251 ac_cache_corrupted=: ;; 1252 ,);; 1253 *) 1254 if test "x$ac_old_val" != "x$ac_new_val"; then 1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1256echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1258echo "$as_me: former value: $ac_old_val" >&2;} 1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1260echo "$as_me: current value: $ac_new_val" >&2;} 1261 ac_cache_corrupted=: 1262 fi;; 1263 esac 1264 # Pass precious variables to config.status. 1265 if test "$ac_new_set" = set; then 1266 case $ac_new_val in 1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1269 *) ac_arg=$ac_var=$ac_new_val ;; 1270 esac 1271 case " $ac_configure_args " in 1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1274 esac 1275 fi 1276done 1277if $ac_cache_corrupted; then 1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1279echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1281echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1282 { (exit 1); exit 1; }; } 1283fi 1284 1285ac_ext=c 1286ac_cpp='$CPP $CPPFLAGS' 1287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1289ac_compiler_gnu=$ac_cv_c_compiler_gnu 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318ac_aux_dir= 1319for ac_dir in .. $srcdir/..; do 1320 if test -f $ac_dir/install-sh; then 1321 ac_aux_dir=$ac_dir 1322 ac_install_sh="$ac_aux_dir/install-sh -c" 1323 break 1324 elif test -f $ac_dir/install.sh; then 1325 ac_aux_dir=$ac_dir 1326 ac_install_sh="$ac_aux_dir/install.sh -c" 1327 break 1328 elif test -f $ac_dir/shtool; then 1329 ac_aux_dir=$ac_dir 1330 ac_install_sh="$ac_aux_dir/shtool install -c" 1331 break 1332 fi 1333done 1334if test -z "$ac_aux_dir"; then 1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 1336echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} 1337 { (exit 1); exit 1; }; } 1338fi 1339ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1340ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1341ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1342 1343# Make sure we can run config.sub. 1344$ac_config_sub sun4 >/dev/null 2>&1 || 1345 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1346echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1347 { (exit 1); exit 1; }; } 1348 1349echo "$as_me:$LINENO: checking build system type" >&5 1350echo $ECHO_N "checking build system type... $ECHO_C" >&6 1351if test "${ac_cv_build+set}" = set; then 1352 echo $ECHO_N "(cached) $ECHO_C" >&6 1353else 1354 ac_cv_build_alias=$build_alias 1355test -z "$ac_cv_build_alias" && 1356 ac_cv_build_alias=`$ac_config_guess` 1357test -z "$ac_cv_build_alias" && 1358 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1359echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1360 { (exit 1); exit 1; }; } 1361ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1362 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1363echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1364 { (exit 1); exit 1; }; } 1365 1366fi 1367echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1368echo "${ECHO_T}$ac_cv_build" >&6 1369build=$ac_cv_build 1370build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1371build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1372build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1373 1374 1375echo "$as_me:$LINENO: checking host system type" >&5 1376echo $ECHO_N "checking host system type... $ECHO_C" >&6 1377if test "${ac_cv_host+set}" = set; then 1378 echo $ECHO_N "(cached) $ECHO_C" >&6 1379else 1380 ac_cv_host_alias=$host_alias 1381test -z "$ac_cv_host_alias" && 1382 ac_cv_host_alias=$ac_cv_build_alias 1383ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1384 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1385echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1386 { (exit 1); exit 1; }; } 1387 1388fi 1389echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1390echo "${ECHO_T}$ac_cv_host" >&6 1391host=$ac_cv_host 1392host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1393host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1394host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1395 1396 1397echo "$as_me:$LINENO: checking target system type" >&5 1398echo $ECHO_N "checking target system type... $ECHO_C" >&6 1399if test "${ac_cv_target+set}" = set; then 1400 echo $ECHO_N "(cached) $ECHO_C" >&6 1401else 1402 ac_cv_target_alias=$target_alias 1403test "x$ac_cv_target_alias" = "x" && 1404 ac_cv_target_alias=$ac_cv_host_alias 1405ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1406 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1407echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1408 { (exit 1); exit 1; }; } 1409 1410fi 1411echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1412echo "${ECHO_T}$ac_cv_target" >&6 1413target=$ac_cv_target 1414target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1415target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1416target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1417 1418 1419# The aliases save the names the user supplied, while $host etc. 1420# will get canonicalized. 1421test -n "$target_alias" && 1422 test "$program_prefix$program_suffix$program_transform_name" = \ 1423 NONENONEs,x,x, && 1424 program_prefix=${target_alias}- 1425ac_ext=c 1426ac_cpp='$CPP $CPPFLAGS' 1427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1429ac_compiler_gnu=$ac_cv_c_compiler_gnu 1430if test -n "$ac_tool_prefix"; then 1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1432set dummy ${ac_tool_prefix}gcc; ac_word=$2 1433echo "$as_me:$LINENO: checking for $ac_word" >&5 1434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1435if test "${ac_cv_prog_CC+set}" = set; then 1436 echo $ECHO_N "(cached) $ECHO_C" >&6 1437else 1438 if test -n "$CC"; then 1439 ac_cv_prog_CC="$CC" # Let the user override the test. 1440else 1441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1442for as_dir in $PATH 1443do 1444 IFS=$as_save_IFS 1445 test -z "$as_dir" && as_dir=. 1446 for ac_exec_ext in '' $ac_executable_extensions; do 1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1448 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1450 break 2 1451 fi 1452done 1453done 1454 1455fi 1456fi 1457CC=$ac_cv_prog_CC 1458if test -n "$CC"; then 1459 echo "$as_me:$LINENO: result: $CC" >&5 1460echo "${ECHO_T}$CC" >&6 1461else 1462 echo "$as_me:$LINENO: result: no" >&5 1463echo "${ECHO_T}no" >&6 1464fi 1465 1466fi 1467if test -z "$ac_cv_prog_CC"; then 1468 ac_ct_CC=$CC 1469 # Extract the first word of "gcc", so it can be a program name with args. 1470set dummy gcc; ac_word=$2 1471echo "$as_me:$LINENO: checking for $ac_word" >&5 1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1473if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1474 echo $ECHO_N "(cached) $ECHO_C" >&6 1475else 1476 if test -n "$ac_ct_CC"; then 1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1478else 1479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1480for as_dir in $PATH 1481do 1482 IFS=$as_save_IFS 1483 test -z "$as_dir" && as_dir=. 1484 for ac_exec_ext in '' $ac_executable_extensions; do 1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1486 ac_cv_prog_ac_ct_CC="gcc" 1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1488 break 2 1489 fi 1490done 1491done 1492 1493fi 1494fi 1495ac_ct_CC=$ac_cv_prog_ac_ct_CC 1496if test -n "$ac_ct_CC"; then 1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1498echo "${ECHO_T}$ac_ct_CC" >&6 1499else 1500 echo "$as_me:$LINENO: result: no" >&5 1501echo "${ECHO_T}no" >&6 1502fi 1503 1504 CC=$ac_ct_CC 1505else 1506 CC="$ac_cv_prog_CC" 1507fi 1508 1509if test -z "$CC"; then 1510 if test -n "$ac_tool_prefix"; then 1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1512set dummy ${ac_tool_prefix}cc; ac_word=$2 1513echo "$as_me:$LINENO: checking for $ac_word" >&5 1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1515if test "${ac_cv_prog_CC+set}" = set; then 1516 echo $ECHO_N "(cached) $ECHO_C" >&6 1517else 1518 if test -n "$CC"; then 1519 ac_cv_prog_CC="$CC" # Let the user override the test. 1520else 1521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1522for as_dir in $PATH 1523do 1524 IFS=$as_save_IFS 1525 test -z "$as_dir" && as_dir=. 1526 for ac_exec_ext in '' $ac_executable_extensions; do 1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1528 ac_cv_prog_CC="${ac_tool_prefix}cc" 1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1530 break 2 1531 fi 1532done 1533done 1534 1535fi 1536fi 1537CC=$ac_cv_prog_CC 1538if test -n "$CC"; then 1539 echo "$as_me:$LINENO: result: $CC" >&5 1540echo "${ECHO_T}$CC" >&6 1541else 1542 echo "$as_me:$LINENO: result: no" >&5 1543echo "${ECHO_T}no" >&6 1544fi 1545 1546fi 1547if test -z "$ac_cv_prog_CC"; then 1548 ac_ct_CC=$CC 1549 # Extract the first word of "cc", so it can be a program name with args. 1550set dummy cc; ac_word=$2 1551echo "$as_me:$LINENO: checking for $ac_word" >&5 1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1553if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1554 echo $ECHO_N "(cached) $ECHO_C" >&6 1555else 1556 if test -n "$ac_ct_CC"; then 1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1558else 1559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1560for as_dir in $PATH 1561do 1562 IFS=$as_save_IFS 1563 test -z "$as_dir" && as_dir=. 1564 for ac_exec_ext in '' $ac_executable_extensions; do 1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1566 ac_cv_prog_ac_ct_CC="cc" 1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1568 break 2 1569 fi 1570done 1571done 1572 1573fi 1574fi 1575ac_ct_CC=$ac_cv_prog_ac_ct_CC 1576if test -n "$ac_ct_CC"; then 1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1578echo "${ECHO_T}$ac_ct_CC" >&6 1579else 1580 echo "$as_me:$LINENO: result: no" >&5 1581echo "${ECHO_T}no" >&6 1582fi 1583 1584 CC=$ac_ct_CC 1585else 1586 CC="$ac_cv_prog_CC" 1587fi 1588 1589fi 1590if test -z "$CC"; then 1591 # Extract the first word of "cc", so it can be a program name with args. 1592set dummy cc; ac_word=$2 1593echo "$as_me:$LINENO: checking for $ac_word" >&5 1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1595if test "${ac_cv_prog_CC+set}" = set; then 1596 echo $ECHO_N "(cached) $ECHO_C" >&6 1597else 1598 if test -n "$CC"; then 1599 ac_cv_prog_CC="$CC" # Let the user override the test. 1600else 1601 ac_prog_rejected=no 1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1603for as_dir in $PATH 1604do 1605 IFS=$as_save_IFS 1606 test -z "$as_dir" && as_dir=. 1607 for ac_exec_ext in '' $ac_executable_extensions; do 1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1610 ac_prog_rejected=yes 1611 continue 1612 fi 1613 ac_cv_prog_CC="cc" 1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1615 break 2 1616 fi 1617done 1618done 1619 1620if test $ac_prog_rejected = yes; then 1621 # We found a bogon in the path, so make sure we never use it. 1622 set dummy $ac_cv_prog_CC 1623 shift 1624 if test $# != 0; then 1625 # We chose a different compiler from the bogus one. 1626 # However, it has the same basename, so the bogon will be chosen 1627 # first if we set CC to just the basename; use the full file name. 1628 shift 1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1630 fi 1631fi 1632fi 1633fi 1634CC=$ac_cv_prog_CC 1635if test -n "$CC"; then 1636 echo "$as_me:$LINENO: result: $CC" >&5 1637echo "${ECHO_T}$CC" >&6 1638else 1639 echo "$as_me:$LINENO: result: no" >&5 1640echo "${ECHO_T}no" >&6 1641fi 1642 1643fi 1644if test -z "$CC"; then 1645 if test -n "$ac_tool_prefix"; then 1646 for ac_prog in cl 1647 do 1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1649set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1650echo "$as_me:$LINENO: checking for $ac_word" >&5 1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1652if test "${ac_cv_prog_CC+set}" = set; then 1653 echo $ECHO_N "(cached) $ECHO_C" >&6 1654else 1655 if test -n "$CC"; then 1656 ac_cv_prog_CC="$CC" # Let the user override the test. 1657else 1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1659for as_dir in $PATH 1660do 1661 IFS=$as_save_IFS 1662 test -z "$as_dir" && as_dir=. 1663 for ac_exec_ext in '' $ac_executable_extensions; do 1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1667 break 2 1668 fi 1669done 1670done 1671 1672fi 1673fi 1674CC=$ac_cv_prog_CC 1675if test -n "$CC"; then 1676 echo "$as_me:$LINENO: result: $CC" >&5 1677echo "${ECHO_T}$CC" >&6 1678else 1679 echo "$as_me:$LINENO: result: no" >&5 1680echo "${ECHO_T}no" >&6 1681fi 1682 1683 test -n "$CC" && break 1684 done 1685fi 1686if test -z "$CC"; then 1687 ac_ct_CC=$CC 1688 for ac_prog in cl 1689do 1690 # Extract the first word of "$ac_prog", so it can be a program name with args. 1691set dummy $ac_prog; ac_word=$2 1692echo "$as_me:$LINENO: checking for $ac_word" >&5 1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1694if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1695 echo $ECHO_N "(cached) $ECHO_C" >&6 1696else 1697 if test -n "$ac_ct_CC"; then 1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1699else 1700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1701for as_dir in $PATH 1702do 1703 IFS=$as_save_IFS 1704 test -z "$as_dir" && as_dir=. 1705 for ac_exec_ext in '' $ac_executable_extensions; do 1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1707 ac_cv_prog_ac_ct_CC="$ac_prog" 1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1709 break 2 1710 fi 1711done 1712done 1713 1714fi 1715fi 1716ac_ct_CC=$ac_cv_prog_ac_ct_CC 1717if test -n "$ac_ct_CC"; then 1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1719echo "${ECHO_T}$ac_ct_CC" >&6 1720else 1721 echo "$as_me:$LINENO: result: no" >&5 1722echo "${ECHO_T}no" >&6 1723fi 1724 1725 test -n "$ac_ct_CC" && break 1726done 1727 1728 CC=$ac_ct_CC 1729fi 1730 1731fi 1732 1733 1734test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1735See \`config.log' for more details." >&5 1736echo "$as_me: error: no acceptable C compiler found in \$PATH 1737See \`config.log' for more details." >&2;} 1738 { (exit 1); exit 1; }; } 1739 1740# Provide some information about the compiler. 1741echo "$as_me:$LINENO:" \ 1742 "checking for C compiler version" >&5 1743ac_compiler=`set X $ac_compile; echo $2` 1744{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1745 (eval $ac_compiler --version </dev/null >&5) 2>&5 1746 ac_status=$? 1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1748 (exit $ac_status); } 1749{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1750 (eval $ac_compiler -v </dev/null >&5) 2>&5 1751 ac_status=$? 1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1753 (exit $ac_status); } 1754{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1755 (eval $ac_compiler -V </dev/null >&5) 2>&5 1756 ac_status=$? 1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1758 (exit $ac_status); } 1759 1760cat >conftest.$ac_ext <<_ACEOF 1761/* confdefs.h. */ 1762_ACEOF 1763cat confdefs.h >>conftest.$ac_ext 1764cat >>conftest.$ac_ext <<_ACEOF 1765/* end confdefs.h. */ 1766 1767int 1768main () 1769{ 1770 1771 ; 1772 return 0; 1773} 1774_ACEOF 1775ac_clean_files_save=$ac_clean_files 1776ac_clean_files="$ac_clean_files a.out a.exe b.out" 1777# Try to create an executable without -o first, disregard a.out. 1778# It will help us diagnose broken compilers, and finding out an intuition 1779# of exeext. 1780echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1781echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1782ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1783if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1784 (eval $ac_link_default) 2>&5 1785 ac_status=$? 1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1787 (exit $ac_status); }; then 1788 # Find the output, starting from the most likely. This scheme is 1789# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1790# resort. 1791 1792# Be careful to initialize this variable, since it used to be cached. 1793# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1794ac_cv_exeext= 1795# b.out is created by i960 compilers. 1796for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1797do 1798 test -f "$ac_file" || continue 1799 case $ac_file in 1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1801 ;; 1802 conftest.$ac_ext ) 1803 # This is the source file. 1804 ;; 1805 [ab].out ) 1806 # We found the default executable, but exeext='' is most 1807 # certainly right. 1808 break;; 1809 *.* ) 1810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1811 # FIXME: I believe we export ac_cv_exeext for Libtool, 1812 # but it would be cool to find out if it's true. Does anybody 1813 # maintain Libtool? --akim. 1814 export ac_cv_exeext 1815 break;; 1816 * ) 1817 break;; 1818 esac 1819done 1820else 1821 echo "$as_me: failed program was:" >&5 1822sed 's/^/| /' conftest.$ac_ext >&5 1823 1824{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1825See \`config.log' for more details." >&5 1826echo "$as_me: error: C compiler cannot create executables 1827See \`config.log' for more details." >&2;} 1828 { (exit 77); exit 77; }; } 1829fi 1830 1831ac_exeext=$ac_cv_exeext 1832echo "$as_me:$LINENO: result: $ac_file" >&5 1833echo "${ECHO_T}$ac_file" >&6 1834 1835# Check the compiler produces executables we can run. If not, either 1836# the compiler is broken, or we cross compile. 1837echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1838echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1839# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1840# If not cross compiling, check that we can run a simple program. 1841if test "$cross_compiling" != yes; then 1842 if { ac_try='./$ac_file' 1843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1844 (eval $ac_try) 2>&5 1845 ac_status=$? 1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1847 (exit $ac_status); }; }; then 1848 cross_compiling=no 1849 else 1850 if test "$cross_compiling" = maybe; then 1851 cross_compiling=yes 1852 else 1853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1854If you meant to cross compile, use \`--host'. 1855See \`config.log' for more details." >&5 1856echo "$as_me: error: cannot run C compiled programs. 1857If you meant to cross compile, use \`--host'. 1858See \`config.log' for more details." >&2;} 1859 { (exit 1); exit 1; }; } 1860 fi 1861 fi 1862fi 1863echo "$as_me:$LINENO: result: yes" >&5 1864echo "${ECHO_T}yes" >&6 1865 1866rm -f a.out a.exe conftest$ac_cv_exeext b.out 1867ac_clean_files=$ac_clean_files_save 1868# Check the compiler produces executables we can run. If not, either 1869# the compiler is broken, or we cross compile. 1870echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1871echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1872echo "$as_me:$LINENO: result: $cross_compiling" >&5 1873echo "${ECHO_T}$cross_compiling" >&6 1874 1875echo "$as_me:$LINENO: checking for suffix of executables" >&5 1876echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1878 (eval $ac_link) 2>&5 1879 ac_status=$? 1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1881 (exit $ac_status); }; then 1882 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1883# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1884# work properly (i.e., refer to `conftest.exe'), while it won't with 1885# `rm'. 1886for ac_file in conftest.exe conftest conftest.*; do 1887 test -f "$ac_file" || continue 1888 case $ac_file in 1889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1890 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1891 export ac_cv_exeext 1892 break;; 1893 * ) break;; 1894 esac 1895done 1896else 1897 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1898See \`config.log' for more details." >&5 1899echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1900See \`config.log' for more details." >&2;} 1901 { (exit 1); exit 1; }; } 1902fi 1903 1904rm -f conftest$ac_cv_exeext 1905echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1906echo "${ECHO_T}$ac_cv_exeext" >&6 1907 1908rm -f conftest.$ac_ext 1909EXEEXT=$ac_cv_exeext 1910ac_exeext=$EXEEXT 1911echo "$as_me:$LINENO: checking for suffix of object files" >&5 1912echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1913if test "${ac_cv_objext+set}" = set; then 1914 echo $ECHO_N "(cached) $ECHO_C" >&6 1915else 1916 cat >conftest.$ac_ext <<_ACEOF 1917/* confdefs.h. */ 1918_ACEOF 1919cat confdefs.h >>conftest.$ac_ext 1920cat >>conftest.$ac_ext <<_ACEOF 1921/* end confdefs.h. */ 1922 1923int 1924main () 1925{ 1926 1927 ; 1928 return 0; 1929} 1930_ACEOF 1931rm -f conftest.o conftest.obj 1932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1933 (eval $ac_compile) 2>&5 1934 ac_status=$? 1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1936 (exit $ac_status); }; then 1937 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1938 case $ac_file in 1939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1941 break;; 1942 esac 1943done 1944else 1945 echo "$as_me: failed program was:" >&5 1946sed 's/^/| /' conftest.$ac_ext >&5 1947 1948{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1949See \`config.log' for more details." >&5 1950echo "$as_me: error: cannot compute suffix of object files: cannot compile 1951See \`config.log' for more details." >&2;} 1952 { (exit 1); exit 1; }; } 1953fi 1954 1955rm -f conftest.$ac_cv_objext conftest.$ac_ext 1956fi 1957echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1958echo "${ECHO_T}$ac_cv_objext" >&6 1959OBJEXT=$ac_cv_objext 1960ac_objext=$OBJEXT 1961echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1962echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1963if test "${ac_cv_c_compiler_gnu+set}" = set; then 1964 echo $ECHO_N "(cached) $ECHO_C" >&6 1965else 1966 cat >conftest.$ac_ext <<_ACEOF 1967/* confdefs.h. */ 1968_ACEOF 1969cat confdefs.h >>conftest.$ac_ext 1970cat >>conftest.$ac_ext <<_ACEOF 1971/* end confdefs.h. */ 1972 1973int 1974main () 1975{ 1976#ifndef __GNUC__ 1977 choke me 1978#endif 1979 1980 ; 1981 return 0; 1982} 1983_ACEOF 1984rm -f conftest.$ac_objext 1985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1986 (eval $ac_compile) 2>conftest.er1 1987 ac_status=$? 1988 grep -v '^ *+' conftest.er1 >conftest.err 1989 rm -f conftest.er1 1990 cat conftest.err >&5 1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1992 (exit $ac_status); } && 1993 { ac_try='test -z "$ac_c_werror_flag" 1994 || test ! -s conftest.err' 1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1996 (eval $ac_try) 2>&5 1997 ac_status=$? 1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1999 (exit $ac_status); }; } && 2000 { ac_try='test -s conftest.$ac_objext' 2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2002 (eval $ac_try) 2>&5 2003 ac_status=$? 2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2005 (exit $ac_status); }; }; then 2006 ac_compiler_gnu=yes 2007else 2008 echo "$as_me: failed program was:" >&5 2009sed 's/^/| /' conftest.$ac_ext >&5 2010 2011ac_compiler_gnu=no 2012fi 2013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2014ac_cv_c_compiler_gnu=$ac_compiler_gnu 2015 2016fi 2017echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2018echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2019GCC=`test $ac_compiler_gnu = yes && echo yes` 2020ac_test_CFLAGS=${CFLAGS+set} 2021ac_save_CFLAGS=$CFLAGS 2022CFLAGS="-g" 2023echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2024echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2025if test "${ac_cv_prog_cc_g+set}" = set; then 2026 echo $ECHO_N "(cached) $ECHO_C" >&6 2027else 2028 cat >conftest.$ac_ext <<_ACEOF 2029/* confdefs.h. */ 2030_ACEOF 2031cat confdefs.h >>conftest.$ac_ext 2032cat >>conftest.$ac_ext <<_ACEOF 2033/* end confdefs.h. */ 2034 2035int 2036main () 2037{ 2038 2039 ; 2040 return 0; 2041} 2042_ACEOF 2043rm -f conftest.$ac_objext 2044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2045 (eval $ac_compile) 2>conftest.er1 2046 ac_status=$? 2047 grep -v '^ *+' conftest.er1 >conftest.err 2048 rm -f conftest.er1 2049 cat conftest.err >&5 2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2051 (exit $ac_status); } && 2052 { ac_try='test -z "$ac_c_werror_flag" 2053 || test ! -s conftest.err' 2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2055 (eval $ac_try) 2>&5 2056 ac_status=$? 2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2058 (exit $ac_status); }; } && 2059 { ac_try='test -s conftest.$ac_objext' 2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2061 (eval $ac_try) 2>&5 2062 ac_status=$? 2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2064 (exit $ac_status); }; }; then 2065 ac_cv_prog_cc_g=yes 2066else 2067 echo "$as_me: failed program was:" >&5 2068sed 's/^/| /' conftest.$ac_ext >&5 2069 2070ac_cv_prog_cc_g=no 2071fi 2072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2073fi 2074echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2075echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2076if test "$ac_test_CFLAGS" = set; then 2077 CFLAGS=$ac_save_CFLAGS 2078elif test $ac_cv_prog_cc_g = yes; then 2079 if test "$GCC" = yes; then 2080 CFLAGS="-g -O2" 2081 else 2082 CFLAGS="-g" 2083 fi 2084else 2085 if test "$GCC" = yes; then 2086 CFLAGS="-O2" 2087 else 2088 CFLAGS= 2089 fi 2090fi 2091echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2092echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2093if test "${ac_cv_prog_cc_stdc+set}" = set; then 2094 echo $ECHO_N "(cached) $ECHO_C" >&6 2095else 2096 ac_cv_prog_cc_stdc=no 2097ac_save_CC=$CC 2098cat >conftest.$ac_ext <<_ACEOF 2099/* confdefs.h. */ 2100_ACEOF 2101cat confdefs.h >>conftest.$ac_ext 2102cat >>conftest.$ac_ext <<_ACEOF 2103/* end confdefs.h. */ 2104#include <stdarg.h> 2105#include <stdio.h> 2106#include <sys/types.h> 2107#include <sys/stat.h> 2108/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2109struct buf { int x; }; 2110FILE * (*rcsopen) (struct buf *, struct stat *, int); 2111static char *e (p, i) 2112 char **p; 2113 int i; 2114{ 2115 return p[i]; 2116} 2117static char *f (char * (*g) (char **, int), char **p, ...) 2118{ 2119 char *s; 2120 va_list v; 2121 va_start (v,p); 2122 s = g (p, va_arg (v,int)); 2123 va_end (v); 2124 return s; 2125} 2126 2127/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2128 function prototypes and stuff, but not '\xHH' hex character constants. 2129 These don't provoke an error unfortunately, instead are silently treated 2130 as 'x'. The following induces an error, until -std1 is added to get 2131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2132 array size at least. It's necessary to write '\x00'==0 to get something 2133 that's true only with -std1. */ 2134int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2135 2136int test (int i, double x); 2137struct s1 {int (*f) (int a);}; 2138struct s2 {int (*f) (double a);}; 2139int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2140int argc; 2141char **argv; 2142int 2143main () 2144{ 2145return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2146 ; 2147 return 0; 2148} 2149_ACEOF 2150# Don't try gcc -ansi; that turns off useful extensions and 2151# breaks some systems' header files. 2152# AIX -qlanglvl=ansi 2153# Ultrix and OSF/1 -std1 2154# HP-UX 10.20 and later -Ae 2155# HP-UX older versions -Aa -D_HPUX_SOURCE 2156# SVR4 -Xc -D__EXTENSIONS__ 2157for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2158do 2159 CC="$ac_save_CC $ac_arg" 2160 rm -f conftest.$ac_objext 2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2162 (eval $ac_compile) 2>conftest.er1 2163 ac_status=$? 2164 grep -v '^ *+' conftest.er1 >conftest.err 2165 rm -f conftest.er1 2166 cat conftest.err >&5 2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2168 (exit $ac_status); } && 2169 { ac_try='test -z "$ac_c_werror_flag" 2170 || test ! -s conftest.err' 2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2172 (eval $ac_try) 2>&5 2173 ac_status=$? 2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2175 (exit $ac_status); }; } && 2176 { ac_try='test -s conftest.$ac_objext' 2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2178 (eval $ac_try) 2>&5 2179 ac_status=$? 2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2181 (exit $ac_status); }; }; then 2182 ac_cv_prog_cc_stdc=$ac_arg 2183break 2184else 2185 echo "$as_me: failed program was:" >&5 2186sed 's/^/| /' conftest.$ac_ext >&5 2187 2188fi 2189rm -f conftest.err conftest.$ac_objext 2190done 2191rm -f conftest.$ac_ext conftest.$ac_objext 2192CC=$ac_save_CC 2193 2194fi 2195 2196case "x$ac_cv_prog_cc_stdc" in 2197 x|xno) 2198 echo "$as_me:$LINENO: result: none needed" >&5 2199echo "${ECHO_T}none needed" >&6 ;; 2200 *) 2201 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2202echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2203 CC="$CC $ac_cv_prog_cc_stdc" ;; 2204esac 2205 2206# Some people use a C++ compiler to compile C. Since we use `exit', 2207# in C++ we need to declare it. In case someone uses the same compiler 2208# for both compiling C and C++ we need to have the C++ compiler decide 2209# the declaration of exit, since it's the most demanding environment. 2210cat >conftest.$ac_ext <<_ACEOF 2211#ifndef __cplusplus 2212 choke me 2213#endif 2214_ACEOF 2215rm -f conftest.$ac_objext 2216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2217 (eval $ac_compile) 2>conftest.er1 2218 ac_status=$? 2219 grep -v '^ *+' conftest.er1 >conftest.err 2220 rm -f conftest.er1 2221 cat conftest.err >&5 2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2223 (exit $ac_status); } && 2224 { ac_try='test -z "$ac_c_werror_flag" 2225 || test ! -s conftest.err' 2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2227 (eval $ac_try) 2>&5 2228 ac_status=$? 2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2230 (exit $ac_status); }; } && 2231 { ac_try='test -s conftest.$ac_objext' 2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2233 (eval $ac_try) 2>&5 2234 ac_status=$? 2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2236 (exit $ac_status); }; }; then 2237 for ac_declaration in \ 2238 '' \ 2239 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2240 'extern "C" void std::exit (int); using std::exit;' \ 2241 'extern "C" void exit (int) throw ();' \ 2242 'extern "C" void exit (int);' \ 2243 'void exit (int);' 2244do 2245 cat >conftest.$ac_ext <<_ACEOF 2246/* confdefs.h. */ 2247_ACEOF 2248cat confdefs.h >>conftest.$ac_ext 2249cat >>conftest.$ac_ext <<_ACEOF 2250/* end confdefs.h. */ 2251$ac_declaration 2252#include <stdlib.h> 2253int 2254main () 2255{ 2256exit (42); 2257 ; 2258 return 0; 2259} 2260_ACEOF 2261rm -f conftest.$ac_objext 2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2263 (eval $ac_compile) 2>conftest.er1 2264 ac_status=$? 2265 grep -v '^ *+' conftest.er1 >conftest.err 2266 rm -f conftest.er1 2267 cat conftest.err >&5 2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 (exit $ac_status); } && 2270 { ac_try='test -z "$ac_c_werror_flag" 2271 || test ! -s conftest.err' 2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2273 (eval $ac_try) 2>&5 2274 ac_status=$? 2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2276 (exit $ac_status); }; } && 2277 { ac_try='test -s conftest.$ac_objext' 2278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2279 (eval $ac_try) 2>&5 2280 ac_status=$? 2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2282 (exit $ac_status); }; }; then 2283 : 2284else 2285 echo "$as_me: failed program was:" >&5 2286sed 's/^/| /' conftest.$ac_ext >&5 2287 2288continue 2289fi 2290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2291 cat >conftest.$ac_ext <<_ACEOF 2292/* confdefs.h. */ 2293_ACEOF 2294cat confdefs.h >>conftest.$ac_ext 2295cat >>conftest.$ac_ext <<_ACEOF 2296/* end confdefs.h. */ 2297$ac_declaration 2298int 2299main () 2300{ 2301exit (42); 2302 ; 2303 return 0; 2304} 2305_ACEOF 2306rm -f conftest.$ac_objext 2307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2308 (eval $ac_compile) 2>conftest.er1 2309 ac_status=$? 2310 grep -v '^ *+' conftest.er1 >conftest.err 2311 rm -f conftest.er1 2312 cat conftest.err >&5 2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2314 (exit $ac_status); } && 2315 { ac_try='test -z "$ac_c_werror_flag" 2316 || test ! -s conftest.err' 2317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2318 (eval $ac_try) 2>&5 2319 ac_status=$? 2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2321 (exit $ac_status); }; } && 2322 { ac_try='test -s conftest.$ac_objext' 2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2324 (eval $ac_try) 2>&5 2325 ac_status=$? 2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2327 (exit $ac_status); }; }; then 2328 break 2329else 2330 echo "$as_me: failed program was:" >&5 2331sed 's/^/| /' conftest.$ac_ext >&5 2332 2333fi 2334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2335done 2336rm -f conftest* 2337if test -n "$ac_declaration"; then 2338 echo '#ifdef __cplusplus' >>confdefs.h 2339 echo $ac_declaration >>confdefs.h 2340 echo '#endif' >>confdefs.h 2341fi 2342 2343else 2344 echo "$as_me: failed program was:" >&5 2345sed 's/^/| /' conftest.$ac_ext >&5 2346 2347fi 2348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2349ac_ext=c 2350ac_cpp='$CPP $CPPFLAGS' 2351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2353ac_compiler_gnu=$ac_cv_c_compiler_gnu 2354 2355 2356# Figure out what compiler warnings we can enable. 2357# See config/warnings.m4 for details. 2358 2359 2360WARN_CFLAGS= 2361save_CFLAGS="$CFLAGS" 2362for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ 2363 -Wmissing-prototypes -Wold-style-definition \ 2364 -Wmissing-format-attribute -Wno-overlength-strings; do 2365 as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 2366 2367 echo "$as_me:$LINENO: checking whether $CC supports $option" >&5 2368echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6 2369if eval "test \"\${$as_acx_Woption+set}\" = set"; then 2370 echo $ECHO_N "(cached) $ECHO_C" >&6 2371else 2372 CFLAGS="$option" 2373 cat >conftest.$ac_ext <<_ACEOF 2374/* confdefs.h. */ 2375_ACEOF 2376cat confdefs.h >>conftest.$ac_ext 2377cat >>conftest.$ac_ext <<_ACEOF 2378/* end confdefs.h. */ 2379 2380int 2381main () 2382{ 2383 2384 ; 2385 return 0; 2386} 2387_ACEOF 2388rm -f conftest.$ac_objext 2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2390 (eval $ac_compile) 2>conftest.er1 2391 ac_status=$? 2392 grep -v '^ *+' conftest.er1 >conftest.err 2393 rm -f conftest.er1 2394 cat conftest.err >&5 2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2396 (exit $ac_status); } && 2397 { ac_try='test -z "$ac_c_werror_flag" 2398 || test ! -s conftest.err' 2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2400 (eval $ac_try) 2>&5 2401 ac_status=$? 2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2403 (exit $ac_status); }; } && 2404 { ac_try='test -s conftest.$ac_objext' 2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2406 (eval $ac_try) 2>&5 2407 ac_status=$? 2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2409 (exit $ac_status); }; }; then 2410 eval "$as_acx_Woption=yes" 2411else 2412 echo "$as_me: failed program was:" >&5 2413sed 's/^/| /' conftest.$ac_ext >&5 2414 2415eval "$as_acx_Woption=no" 2416fi 2417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2418 2419fi 2420echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5 2421echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6 2422 if test `eval echo '${'$as_acx_Woption'}'` = yes; then 2423 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$option" 2424fi 2425 2426 done 2427CFLAGS="$save_CFLAGS" 2428 2429WARN_PEDANTIC= 2430if test "$GCC" = yes; then 2431 echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long" >&5 2432echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long... $ECHO_C" >&6 2433if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then 2434 echo $ECHO_N "(cached) $ECHO_C" >&6 2435else 2436 save_CFLAGS="$CFLAGS" 2437CFLAGS="-pedantic -Wno-long-long" 2438cat >conftest.$ac_ext <<_ACEOF 2439/* confdefs.h. */ 2440_ACEOF 2441cat confdefs.h >>conftest.$ac_ext 2442cat >>conftest.$ac_ext <<_ACEOF 2443/* end confdefs.h. */ 2444 2445int 2446main () 2447{ 2448 2449 ; 2450 return 0; 2451} 2452_ACEOF 2453rm -f conftest.$ac_objext 2454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2455 (eval $ac_compile) 2>conftest.er1 2456 ac_status=$? 2457 grep -v '^ *+' conftest.er1 >conftest.err 2458 rm -f conftest.er1 2459 cat conftest.err >&5 2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2461 (exit $ac_status); } && 2462 { ac_try='test -z "$ac_c_werror_flag" 2463 || test ! -s conftest.err' 2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2465 (eval $ac_try) 2>&5 2466 ac_status=$? 2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2468 (exit $ac_status); }; } && 2469 { ac_try='test -s conftest.$ac_objext' 2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2471 (eval $ac_try) 2>&5 2472 ac_status=$? 2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2474 (exit $ac_status); }; }; then 2475 acx_cv_prog_cc_pedantic__Wno_long_long=yes 2476else 2477 echo "$as_me: failed program was:" >&5 2478sed 's/^/| /' conftest.$ac_ext >&5 2479 2480acx_cv_prog_cc_pedantic__Wno_long_long=no 2481fi 2482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2483CFLAGS="$save_CFLAGS" 2484fi 2485echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5 2486echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long" >&6 2487if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then 2488 WARN_PEDANTIC="-pedantic -Wno-long-long" 2489fi 2490 2491 2492fi 2493 2494 2495 2496# Only enable with --enable-werror-always until existing warnings are 2497# corrected. 2498WERROR= 2499# Check whether --enable-werror-always or --disable-werror-always was given. 2500if test "${enable_werror_always+set}" = set; then 2501 enableval="$enable_werror_always" 2502 2503else 2504 enable_werror_always=no 2505fi; 2506if test $enable_werror_always = yes; then 2507 WERROR=-Werror 2508fi 2509 2510 2511 2512# Determine the noncanonical target name, for directory use. 2513 case ${build_alias} in 2514 "") build_noncanonical=${build} ;; 2515 *) build_noncanonical=${build_alias} ;; 2516esac 2517 2518 case ${host_alias} in 2519 "") host_noncanonical=${build_noncanonical} ;; 2520 *) host_noncanonical=${host_alias} ;; 2521esac 2522 2523 case ${target_alias} in 2524 "") target_noncanonical=${host_noncanonical} ;; 2525 *) target_noncanonical=${target_alias} ;; 2526esac 2527 2528 2529 2530 2531# Specify the local prefix 2532local_prefix= 2533 2534# Check whether --with-local-prefix or --without-local-prefix was given. 2535if test "${with_local_prefix+set}" = set; then 2536 withval="$with_local_prefix" 2537 case "${withval}" in 2538yes) { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5 2539echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;} 2540 { (exit 1); exit 1; }; } ;; 2541no) ;; 2542*) local_prefix=$with_local_prefix ;; 2543esac 2544fi; 2545 2546# Default local prefix if it is empty 2547if test x$local_prefix = x; then 2548 local_prefix=/usr/local 2549fi 2550 2551# Choose one or two-process fix methodology. Systems that cannot handle 2552# bi-directional pipes must use the two process method. 2553# 2554# Check whether --enable-twoprocess or --disable-twoprocess was given. 2555if test "${enable_twoprocess+set}" = set; then 2556 enableval="$enable_twoprocess" 2557 if test "x$enable_twoprocess" = xyes; then 2558 TARGET=twoprocess 2559else 2560 TARGET=oneprocess 2561fi 2562else 2563 case $host in 2564 i?86-*-msdosdjgpp* | \ 2565 i?86-*-mingw32* | \ 2566 *-*-beos* ) 2567 TARGET=twoprocess 2568 ;; 2569 2570 * ) 2571 TARGET=oneprocess 2572 ;; 2573esac 2574fi; 2575 2576 2577if test $TARGET = twoprocess; then 2578 2579cat >>confdefs.h <<\_ACEOF 2580#define SEPARATE_FIX_PROC 1 2581_ACEOF 2582 2583fi 2584 2585case $host in 2586 vax-dec-bsd* ) 2587 2588cat >>confdefs.h <<\_ACEOF 2589#define exit xexit 2590_ACEOF 2591 2592 2593cat >>confdefs.h <<\_ACEOF 2594#define atexit xatexit 2595_ACEOF 2596 2597 ;; 2598esac 2599 2600 2601cat >>confdefs.h <<_ACEOF 2602#define EXE_EXT "$ac_exeext" 2603_ACEOF 2604 2605 2606# Checks for header files. 2607ac_ext=c 2608ac_cpp='$CPP $CPPFLAGS' 2609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2611ac_compiler_gnu=$ac_cv_c_compiler_gnu 2612echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2613echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2614# On Suns, sometimes $CPP names a directory. 2615if test -n "$CPP" && test -d "$CPP"; then 2616 CPP= 2617fi 2618if test -z "$CPP"; then 2619 if test "${ac_cv_prog_CPP+set}" = set; then 2620 echo $ECHO_N "(cached) $ECHO_C" >&6 2621else 2622 # Double quotes because CPP needs to be expanded 2623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2624 do 2625 ac_preproc_ok=false 2626for ac_c_preproc_warn_flag in '' yes 2627do 2628 # Use a header file that comes with gcc, so configuring glibc 2629 # with a fresh cross-compiler works. 2630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2631 # <limits.h> exists even on freestanding compilers. 2632 # On the NeXT, cc -E runs the code through the compiler's parser, 2633 # not just through cpp. "Syntax error" is here to catch this case. 2634 cat >conftest.$ac_ext <<_ACEOF 2635/* confdefs.h. */ 2636_ACEOF 2637cat confdefs.h >>conftest.$ac_ext 2638cat >>conftest.$ac_ext <<_ACEOF 2639/* end confdefs.h. */ 2640#ifdef __STDC__ 2641# include <limits.h> 2642#else 2643# include <assert.h> 2644#endif 2645 Syntax error 2646_ACEOF 2647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2649 ac_status=$? 2650 grep -v '^ *+' conftest.er1 >conftest.err 2651 rm -f conftest.er1 2652 cat conftest.err >&5 2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2654 (exit $ac_status); } >/dev/null; then 2655 if test -s conftest.err; then 2656 ac_cpp_err=$ac_c_preproc_warn_flag 2657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2658 else 2659 ac_cpp_err= 2660 fi 2661else 2662 ac_cpp_err=yes 2663fi 2664if test -z "$ac_cpp_err"; then 2665 : 2666else 2667 echo "$as_me: failed program was:" >&5 2668sed 's/^/| /' conftest.$ac_ext >&5 2669 2670 # Broken: fails on valid input. 2671continue 2672fi 2673rm -f conftest.err conftest.$ac_ext 2674 2675 # OK, works on sane cases. Now check whether non-existent headers 2676 # can be detected and how. 2677 cat >conftest.$ac_ext <<_ACEOF 2678/* confdefs.h. */ 2679_ACEOF 2680cat confdefs.h >>conftest.$ac_ext 2681cat >>conftest.$ac_ext <<_ACEOF 2682/* end confdefs.h. */ 2683#include <ac_nonexistent.h> 2684_ACEOF 2685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2687 ac_status=$? 2688 grep -v '^ *+' conftest.er1 >conftest.err 2689 rm -f conftest.er1 2690 cat conftest.err >&5 2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2692 (exit $ac_status); } >/dev/null; then 2693 if test -s conftest.err; then 2694 ac_cpp_err=$ac_c_preproc_warn_flag 2695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2696 else 2697 ac_cpp_err= 2698 fi 2699else 2700 ac_cpp_err=yes 2701fi 2702if test -z "$ac_cpp_err"; then 2703 # Broken: success on invalid input. 2704continue 2705else 2706 echo "$as_me: failed program was:" >&5 2707sed 's/^/| /' conftest.$ac_ext >&5 2708 2709 # Passes both tests. 2710ac_preproc_ok=: 2711break 2712fi 2713rm -f conftest.err conftest.$ac_ext 2714 2715done 2716# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2717rm -f conftest.err conftest.$ac_ext 2718if $ac_preproc_ok; then 2719 break 2720fi 2721 2722 done 2723 ac_cv_prog_CPP=$CPP 2724 2725fi 2726 CPP=$ac_cv_prog_CPP 2727else 2728 ac_cv_prog_CPP=$CPP 2729fi 2730echo "$as_me:$LINENO: result: $CPP" >&5 2731echo "${ECHO_T}$CPP" >&6 2732ac_preproc_ok=false 2733for ac_c_preproc_warn_flag in '' yes 2734do 2735 # Use a header file that comes with gcc, so configuring glibc 2736 # with a fresh cross-compiler works. 2737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2738 # <limits.h> exists even on freestanding compilers. 2739 # On the NeXT, cc -E runs the code through the compiler's parser, 2740 # not just through cpp. "Syntax error" is here to catch this case. 2741 cat >conftest.$ac_ext <<_ACEOF 2742/* confdefs.h. */ 2743_ACEOF 2744cat confdefs.h >>conftest.$ac_ext 2745cat >>conftest.$ac_ext <<_ACEOF 2746/* end confdefs.h. */ 2747#ifdef __STDC__ 2748# include <limits.h> 2749#else 2750# include <assert.h> 2751#endif 2752 Syntax error 2753_ACEOF 2754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2755 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2756 ac_status=$? 2757 grep -v '^ *+' conftest.er1 >conftest.err 2758 rm -f conftest.er1 2759 cat conftest.err >&5 2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2761 (exit $ac_status); } >/dev/null; then 2762 if test -s conftest.err; then 2763 ac_cpp_err=$ac_c_preproc_warn_flag 2764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2765 else 2766 ac_cpp_err= 2767 fi 2768else 2769 ac_cpp_err=yes 2770fi 2771if test -z "$ac_cpp_err"; then 2772 : 2773else 2774 echo "$as_me: failed program was:" >&5 2775sed 's/^/| /' conftest.$ac_ext >&5 2776 2777 # Broken: fails on valid input. 2778continue 2779fi 2780rm -f conftest.err conftest.$ac_ext 2781 2782 # OK, works on sane cases. Now check whether non-existent headers 2783 # can be detected and how. 2784 cat >conftest.$ac_ext <<_ACEOF 2785/* confdefs.h. */ 2786_ACEOF 2787cat confdefs.h >>conftest.$ac_ext 2788cat >>conftest.$ac_ext <<_ACEOF 2789/* end confdefs.h. */ 2790#include <ac_nonexistent.h> 2791_ACEOF 2792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2794 ac_status=$? 2795 grep -v '^ *+' conftest.er1 >conftest.err 2796 rm -f conftest.er1 2797 cat conftest.err >&5 2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2799 (exit $ac_status); } >/dev/null; then 2800 if test -s conftest.err; then 2801 ac_cpp_err=$ac_c_preproc_warn_flag 2802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2803 else 2804 ac_cpp_err= 2805 fi 2806else 2807 ac_cpp_err=yes 2808fi 2809if test -z "$ac_cpp_err"; then 2810 # Broken: success on invalid input. 2811continue 2812else 2813 echo "$as_me: failed program was:" >&5 2814sed 's/^/| /' conftest.$ac_ext >&5 2815 2816 # Passes both tests. 2817ac_preproc_ok=: 2818break 2819fi 2820rm -f conftest.err conftest.$ac_ext 2821 2822done 2823# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2824rm -f conftest.err conftest.$ac_ext 2825if $ac_preproc_ok; then 2826 : 2827else 2828 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2829See \`config.log' for more details." >&5 2830echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2831See \`config.log' for more details." >&2;} 2832 { (exit 1); exit 1; }; } 2833fi 2834 2835ac_ext=c 2836ac_cpp='$CPP $CPPFLAGS' 2837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2839ac_compiler_gnu=$ac_cv_c_compiler_gnu 2840 2841 2842echo "$as_me:$LINENO: checking for egrep" >&5 2843echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2844if test "${ac_cv_prog_egrep+set}" = set; then 2845 echo $ECHO_N "(cached) $ECHO_C" >&6 2846else 2847 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2848 then ac_cv_prog_egrep='grep -E' 2849 else ac_cv_prog_egrep='egrep' 2850 fi 2851fi 2852echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2853echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2854 EGREP=$ac_cv_prog_egrep 2855 2856 2857echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2858echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2859if test "${ac_cv_header_stdc+set}" = set; then 2860 echo $ECHO_N "(cached) $ECHO_C" >&6 2861else 2862 cat >conftest.$ac_ext <<_ACEOF 2863/* confdefs.h. */ 2864_ACEOF 2865cat confdefs.h >>conftest.$ac_ext 2866cat >>conftest.$ac_ext <<_ACEOF 2867/* end confdefs.h. */ 2868#include <stdlib.h> 2869#include <stdarg.h> 2870#include <string.h> 2871#include <float.h> 2872 2873int 2874main () 2875{ 2876 2877 ; 2878 return 0; 2879} 2880_ACEOF 2881rm -f conftest.$ac_objext 2882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2883 (eval $ac_compile) 2>conftest.er1 2884 ac_status=$? 2885 grep -v '^ *+' conftest.er1 >conftest.err 2886 rm -f conftest.er1 2887 cat conftest.err >&5 2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2889 (exit $ac_status); } && 2890 { ac_try='test -z "$ac_c_werror_flag" 2891 || test ! -s conftest.err' 2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2893 (eval $ac_try) 2>&5 2894 ac_status=$? 2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2896 (exit $ac_status); }; } && 2897 { ac_try='test -s conftest.$ac_objext' 2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2899 (eval $ac_try) 2>&5 2900 ac_status=$? 2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2902 (exit $ac_status); }; }; then 2903 ac_cv_header_stdc=yes 2904else 2905 echo "$as_me: failed program was:" >&5 2906sed 's/^/| /' conftest.$ac_ext >&5 2907 2908ac_cv_header_stdc=no 2909fi 2910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2911 2912if test $ac_cv_header_stdc = yes; then 2913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2914 cat >conftest.$ac_ext <<_ACEOF 2915/* confdefs.h. */ 2916_ACEOF 2917cat confdefs.h >>conftest.$ac_ext 2918cat >>conftest.$ac_ext <<_ACEOF 2919/* end confdefs.h. */ 2920#include <string.h> 2921 2922_ACEOF 2923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2924 $EGREP "memchr" >/dev/null 2>&1; then 2925 : 2926else 2927 ac_cv_header_stdc=no 2928fi 2929rm -f conftest* 2930 2931fi 2932 2933if test $ac_cv_header_stdc = yes; then 2934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2935 cat >conftest.$ac_ext <<_ACEOF 2936/* confdefs.h. */ 2937_ACEOF 2938cat confdefs.h >>conftest.$ac_ext 2939cat >>conftest.$ac_ext <<_ACEOF 2940/* end confdefs.h. */ 2941#include <stdlib.h> 2942 2943_ACEOF 2944if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2945 $EGREP "free" >/dev/null 2>&1; then 2946 : 2947else 2948 ac_cv_header_stdc=no 2949fi 2950rm -f conftest* 2951 2952fi 2953 2954if test $ac_cv_header_stdc = yes; then 2955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2956 if test "$cross_compiling" = yes; then 2957 : 2958else 2959 cat >conftest.$ac_ext <<_ACEOF 2960/* confdefs.h. */ 2961_ACEOF 2962cat confdefs.h >>conftest.$ac_ext 2963cat >>conftest.$ac_ext <<_ACEOF 2964/* end confdefs.h. */ 2965#include <ctype.h> 2966#if ((' ' & 0x0FF) == 0x020) 2967# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2968# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2969#else 2970# define ISLOWER(c) \ 2971 (('a' <= (c) && (c) <= 'i') \ 2972 || ('j' <= (c) && (c) <= 'r') \ 2973 || ('s' <= (c) && (c) <= 'z')) 2974# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2975#endif 2976 2977#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2978int 2979main () 2980{ 2981 int i; 2982 for (i = 0; i < 256; i++) 2983 if (XOR (islower (i), ISLOWER (i)) 2984 || toupper (i) != TOUPPER (i)) 2985 exit(2); 2986 exit (0); 2987} 2988_ACEOF 2989rm -f conftest$ac_exeext 2990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2991 (eval $ac_link) 2>&5 2992 ac_status=$? 2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2996 (eval $ac_try) 2>&5 2997 ac_status=$? 2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2999 (exit $ac_status); }; }; then 3000 : 3001else 3002 echo "$as_me: program exited with status $ac_status" >&5 3003echo "$as_me: failed program was:" >&5 3004sed 's/^/| /' conftest.$ac_ext >&5 3005 3006( exit $ac_status ) 3007ac_cv_header_stdc=no 3008fi 3009rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3010fi 3011fi 3012fi 3013echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3014echo "${ECHO_T}$ac_cv_header_stdc" >&6 3015if test $ac_cv_header_stdc = yes; then 3016 3017cat >>confdefs.h <<\_ACEOF 3018#define STDC_HEADERS 1 3019_ACEOF 3020 3021fi 3022 3023# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3034 inttypes.h stdint.h unistd.h 3035do 3036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3037echo "$as_me:$LINENO: checking for $ac_header" >&5 3038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3039if eval "test \"\${$as_ac_Header+set}\" = set"; then 3040 echo $ECHO_N "(cached) $ECHO_C" >&6 3041else 3042 cat >conftest.$ac_ext <<_ACEOF 3043/* confdefs.h. */ 3044_ACEOF 3045cat confdefs.h >>conftest.$ac_ext 3046cat >>conftest.$ac_ext <<_ACEOF 3047/* end confdefs.h. */ 3048$ac_includes_default 3049 3050#include <$ac_header> 3051_ACEOF 3052rm -f conftest.$ac_objext 3053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3054 (eval $ac_compile) 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_objext' 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 eval "$as_ac_Header=yes" 3075else 3076 echo "$as_me: failed program was:" >&5 3077sed 's/^/| /' conftest.$ac_ext >&5 3078 3079eval "$as_ac_Header=no" 3080fi 3081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3082fi 3083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3085if test `eval echo '${'$as_ac_Header'}'` = yes; then 3086 cat >>confdefs.h <<_ACEOF 3087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3088_ACEOF 3089 3090fi 3091 3092done 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102for ac_header in stddef.h stdlib.h strings.h unistd.h fcntl.h sys/file.h \ 3103 sys/stat.h 3104do 3105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3106if eval "test \"\${$as_ac_Header+set}\" = set"; then 3107 echo "$as_me:$LINENO: checking for $ac_header" >&5 3108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3109if eval "test \"\${$as_ac_Header+set}\" = set"; then 3110 echo $ECHO_N "(cached) $ECHO_C" >&6 3111fi 3112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3114else 3115 # Is the header compilable? 3116echo "$as_me:$LINENO: checking $ac_header usability" >&5 3117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3118cat >conftest.$ac_ext <<_ACEOF 3119/* confdefs.h. */ 3120_ACEOF 3121cat confdefs.h >>conftest.$ac_ext 3122cat >>conftest.$ac_ext <<_ACEOF 3123/* end confdefs.h. */ 3124$ac_includes_default 3125#include <$ac_header> 3126_ACEOF 3127rm -f conftest.$ac_objext 3128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3129 (eval $ac_compile) 2>conftest.er1 3130 ac_status=$? 3131 grep -v '^ *+' conftest.er1 >conftest.err 3132 rm -f conftest.er1 3133 cat conftest.err >&5 3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3135 (exit $ac_status); } && 3136 { ac_try='test -z "$ac_c_werror_flag" 3137 || test ! -s conftest.err' 3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3139 (eval $ac_try) 2>&5 3140 ac_status=$? 3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3142 (exit $ac_status); }; } && 3143 { ac_try='test -s conftest.$ac_objext' 3144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3145 (eval $ac_try) 2>&5 3146 ac_status=$? 3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3148 (exit $ac_status); }; }; then 3149 ac_header_compiler=yes 3150else 3151 echo "$as_me: failed program was:" >&5 3152sed 's/^/| /' conftest.$ac_ext >&5 3153 3154ac_header_compiler=no 3155fi 3156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3157echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3158echo "${ECHO_T}$ac_header_compiler" >&6 3159 3160# Is the header present? 3161echo "$as_me:$LINENO: checking $ac_header presence" >&5 3162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3163cat >conftest.$ac_ext <<_ACEOF 3164/* confdefs.h. */ 3165_ACEOF 3166cat confdefs.h >>conftest.$ac_ext 3167cat >>conftest.$ac_ext <<_ACEOF 3168/* end confdefs.h. */ 3169#include <$ac_header> 3170_ACEOF 3171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3173 ac_status=$? 3174 grep -v '^ *+' conftest.er1 >conftest.err 3175 rm -f conftest.er1 3176 cat conftest.err >&5 3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3178 (exit $ac_status); } >/dev/null; then 3179 if test -s conftest.err; then 3180 ac_cpp_err=$ac_c_preproc_warn_flag 3181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3182 else 3183 ac_cpp_err= 3184 fi 3185else 3186 ac_cpp_err=yes 3187fi 3188if test -z "$ac_cpp_err"; then 3189 ac_header_preproc=yes 3190else 3191 echo "$as_me: failed program was:" >&5 3192sed 's/^/| /' conftest.$ac_ext >&5 3193 3194 ac_header_preproc=no 3195fi 3196rm -f conftest.err conftest.$ac_ext 3197echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3198echo "${ECHO_T}$ac_header_preproc" >&6 3199 3200# So? What about this header? 3201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3202 yes:no: ) 3203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 3206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 3207 ac_header_preproc=yes 3208 ;; 3209 no:yes:* ) 3210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3213echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 3215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 3216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 3217echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 3218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 3221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 3222 ( 3223 cat <<\_ASBOX 3224## -------------------------------------- ## 3225## Report this to the fixincludes lists. ## 3226## -------------------------------------- ## 3227_ASBOX 3228 ) | 3229 sed "s/^/$as_me: WARNING: /" >&2 3230 ;; 3231esac 3232echo "$as_me:$LINENO: checking for $ac_header" >&5 3233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3234if eval "test \"\${$as_ac_Header+set}\" = set"; then 3235 echo $ECHO_N "(cached) $ECHO_C" >&6 3236else 3237 eval "$as_ac_Header=\$ac_header_preproc" 3238fi 3239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3241 3242fi 3243if test `eval echo '${'$as_ac_Header'}'` = yes; then 3244 cat >>confdefs.h <<_ACEOF 3245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3246_ACEOF 3247 3248fi 3249 3250done 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked 3270do 3271as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3272echo "$as_me:$LINENO: checking for $ac_func" >&5 3273echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3274if eval "test \"\${$as_ac_var+set}\" = set"; then 3275 echo $ECHO_N "(cached) $ECHO_C" >&6 3276else 3277 cat >conftest.$ac_ext <<_ACEOF 3278/* confdefs.h. */ 3279_ACEOF 3280cat confdefs.h >>conftest.$ac_ext 3281cat >>conftest.$ac_ext <<_ACEOF 3282/* end confdefs.h. */ 3283/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 3284 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3285#define $ac_func innocuous_$ac_func 3286 3287/* System header to define __stub macros and hopefully few prototypes, 3288 which can conflict with char $ac_func (); below. 3289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3290 <limits.h> exists even on freestanding compilers. */ 3291 3292#ifdef __STDC__ 3293# include <limits.h> 3294#else 3295# include <assert.h> 3296#endif 3297 3298#undef $ac_func 3299 3300/* Override any gcc2 internal prototype to avoid an error. */ 3301#ifdef __cplusplus 3302extern "C" 3303{ 3304#endif 3305/* We use char because int might match the return type of a gcc2 3306 builtin and then its argument prototype would still apply. */ 3307char $ac_func (); 3308/* The GNU C library defines this for functions which it implements 3309 to always fail with ENOSYS. Some functions are actually named 3310 something starting with __ and the normal name is an alias. */ 3311#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3312choke me 3313#else 3314char (*f) () = $ac_func; 3315#endif 3316#ifdef __cplusplus 3317} 3318#endif 3319 3320int 3321main () 3322{ 3323return f != $ac_func; 3324 ; 3325 return 0; 3326} 3327_ACEOF 3328rm -f conftest.$ac_objext conftest$ac_exeext 3329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3330 (eval $ac_link) 2>conftest.er1 3331 ac_status=$? 3332 grep -v '^ *+' conftest.er1 >conftest.err 3333 rm -f conftest.er1 3334 cat conftest.err >&5 3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3336 (exit $ac_status); } && 3337 { ac_try='test -z "$ac_c_werror_flag" 3338 || test ! -s conftest.err' 3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3340 (eval $ac_try) 2>&5 3341 ac_status=$? 3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3343 (exit $ac_status); }; } && 3344 { ac_try='test -s conftest$ac_exeext' 3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3346 (eval $ac_try) 2>&5 3347 ac_status=$? 3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3349 (exit $ac_status); }; }; then 3350 eval "$as_ac_var=yes" 3351else 3352 echo "$as_me: failed program was:" >&5 3353sed 's/^/| /' conftest.$ac_ext >&5 3354 3355eval "$as_ac_var=no" 3356fi 3357rm -f conftest.err conftest.$ac_objext \ 3358 conftest$ac_exeext conftest.$ac_ext 3359fi 3360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3361echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3362if test `eval echo '${'$as_ac_var'}'` = yes; then 3363 cat >>confdefs.h <<_ACEOF 3364#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 3365_ACEOF 3366 3367fi 3368done 3369 3370echo "$as_me:$LINENO: checking whether abort is declared" >&5 3371echo $ECHO_N "checking whether abort is declared... $ECHO_C" >&6 3372if test "${ac_cv_have_decl_abort+set}" = set; then 3373 echo $ECHO_N "(cached) $ECHO_C" >&6 3374else 3375 cat >conftest.$ac_ext <<_ACEOF 3376/* confdefs.h. */ 3377_ACEOF 3378cat confdefs.h >>conftest.$ac_ext 3379cat >>conftest.$ac_ext <<_ACEOF 3380/* end confdefs.h. */ 3381$ac_includes_default 3382int 3383main () 3384{ 3385#ifndef abort 3386 char *p = (char *) abort; 3387#endif 3388 3389 ; 3390 return 0; 3391} 3392_ACEOF 3393rm -f conftest.$ac_objext 3394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3395 (eval $ac_compile) 2>conftest.er1 3396 ac_status=$? 3397 grep -v '^ *+' conftest.er1 >conftest.err 3398 rm -f conftest.er1 3399 cat conftest.err >&5 3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3401 (exit $ac_status); } && 3402 { ac_try='test -z "$ac_c_werror_flag" 3403 || test ! -s conftest.err' 3404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3405 (eval $ac_try) 2>&5 3406 ac_status=$? 3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3408 (exit $ac_status); }; } && 3409 { ac_try='test -s conftest.$ac_objext' 3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3411 (eval $ac_try) 2>&5 3412 ac_status=$? 3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3414 (exit $ac_status); }; }; then 3415 ac_cv_have_decl_abort=yes 3416else 3417 echo "$as_me: failed program was:" >&5 3418sed 's/^/| /' conftest.$ac_ext >&5 3419 3420ac_cv_have_decl_abort=no 3421fi 3422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3423fi 3424echo "$as_me:$LINENO: result: $ac_cv_have_decl_abort" >&5 3425echo "${ECHO_T}$ac_cv_have_decl_abort" >&6 3426if test $ac_cv_have_decl_abort = yes; then 3427 3428cat >>confdefs.h <<_ACEOF 3429#define HAVE_DECL_ABORT 1 3430_ACEOF 3431 3432 3433else 3434 cat >>confdefs.h <<_ACEOF 3435#define HAVE_DECL_ABORT 0 3436_ACEOF 3437 3438 3439fi 3440echo "$as_me:$LINENO: checking whether asprintf is declared" >&5 3441echo $ECHO_N "checking whether asprintf is declared... $ECHO_C" >&6 3442if test "${ac_cv_have_decl_asprintf+set}" = set; then 3443 echo $ECHO_N "(cached) $ECHO_C" >&6 3444else 3445 cat >conftest.$ac_ext <<_ACEOF 3446/* confdefs.h. */ 3447_ACEOF 3448cat confdefs.h >>conftest.$ac_ext 3449cat >>conftest.$ac_ext <<_ACEOF 3450/* end confdefs.h. */ 3451$ac_includes_default 3452int 3453main () 3454{ 3455#ifndef asprintf 3456 char *p = (char *) asprintf; 3457#endif 3458 3459 ; 3460 return 0; 3461} 3462_ACEOF 3463rm -f conftest.$ac_objext 3464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3465 (eval $ac_compile) 2>conftest.er1 3466 ac_status=$? 3467 grep -v '^ *+' conftest.er1 >conftest.err 3468 rm -f conftest.er1 3469 cat conftest.err >&5 3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3471 (exit $ac_status); } && 3472 { ac_try='test -z "$ac_c_werror_flag" 3473 || test ! -s conftest.err' 3474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3475 (eval $ac_try) 2>&5 3476 ac_status=$? 3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3478 (exit $ac_status); }; } && 3479 { ac_try='test -s conftest.$ac_objext' 3480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3481 (eval $ac_try) 2>&5 3482 ac_status=$? 3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3484 (exit $ac_status); }; }; then 3485 ac_cv_have_decl_asprintf=yes 3486else 3487 echo "$as_me: failed program was:" >&5 3488sed 's/^/| /' conftest.$ac_ext >&5 3489 3490ac_cv_have_decl_asprintf=no 3491fi 3492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3493fi 3494echo "$as_me:$LINENO: result: $ac_cv_have_decl_asprintf" >&5 3495echo "${ECHO_T}$ac_cv_have_decl_asprintf" >&6 3496if test $ac_cv_have_decl_asprintf = yes; then 3497 3498cat >>confdefs.h <<_ACEOF 3499#define HAVE_DECL_ASPRINTF 1 3500_ACEOF 3501 3502 3503else 3504 cat >>confdefs.h <<_ACEOF 3505#define HAVE_DECL_ASPRINTF 0 3506_ACEOF 3507 3508 3509fi 3510echo "$as_me:$LINENO: checking whether basename is declared" >&5 3511echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 3512if test "${ac_cv_have_decl_basename+set}" = set; then 3513 echo $ECHO_N "(cached) $ECHO_C" >&6 3514else 3515 cat >conftest.$ac_ext <<_ACEOF 3516/* confdefs.h. */ 3517_ACEOF 3518cat confdefs.h >>conftest.$ac_ext 3519cat >>conftest.$ac_ext <<_ACEOF 3520/* end confdefs.h. */ 3521$ac_includes_default 3522int 3523main () 3524{ 3525#ifndef basename 3526 char *p = (char *) basename; 3527#endif 3528 3529 ; 3530 return 0; 3531} 3532_ACEOF 3533rm -f conftest.$ac_objext 3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3535 (eval $ac_compile) 2>conftest.er1 3536 ac_status=$? 3537 grep -v '^ *+' conftest.er1 >conftest.err 3538 rm -f conftest.er1 3539 cat conftest.err >&5 3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3541 (exit $ac_status); } && 3542 { ac_try='test -z "$ac_c_werror_flag" 3543 || test ! -s conftest.err' 3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3545 (eval $ac_try) 2>&5 3546 ac_status=$? 3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 (exit $ac_status); }; } && 3549 { ac_try='test -s conftest.$ac_objext' 3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3551 (eval $ac_try) 2>&5 3552 ac_status=$? 3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3554 (exit $ac_status); }; }; then 3555 ac_cv_have_decl_basename=yes 3556else 3557 echo "$as_me: failed program was:" >&5 3558sed 's/^/| /' conftest.$ac_ext >&5 3559 3560ac_cv_have_decl_basename=no 3561fi 3562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3563fi 3564echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 3565echo "${ECHO_T}$ac_cv_have_decl_basename" >&6 3566if test $ac_cv_have_decl_basename = yes; then 3567 3568cat >>confdefs.h <<_ACEOF 3569#define HAVE_DECL_BASENAME 1 3570_ACEOF 3571 3572 3573else 3574 cat >>confdefs.h <<_ACEOF 3575#define HAVE_DECL_BASENAME 0 3576_ACEOF 3577 3578 3579fi 3580echo "$as_me:$LINENO: checking whether errno is declared" >&5 3581echo $ECHO_N "checking whether errno is declared... $ECHO_C" >&6 3582if test "${ac_cv_have_decl_errno+set}" = set; then 3583 echo $ECHO_N "(cached) $ECHO_C" >&6 3584else 3585 cat >conftest.$ac_ext <<_ACEOF 3586/* confdefs.h. */ 3587_ACEOF 3588cat confdefs.h >>conftest.$ac_ext 3589cat >>conftest.$ac_ext <<_ACEOF 3590/* end confdefs.h. */ 3591$ac_includes_default 3592int 3593main () 3594{ 3595#ifndef errno 3596 char *p = (char *) errno; 3597#endif 3598 3599 ; 3600 return 0; 3601} 3602_ACEOF 3603rm -f conftest.$ac_objext 3604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3605 (eval $ac_compile) 2>conftest.er1 3606 ac_status=$? 3607 grep -v '^ *+' conftest.er1 >conftest.err 3608 rm -f conftest.er1 3609 cat conftest.err >&5 3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3611 (exit $ac_status); } && 3612 { ac_try='test -z "$ac_c_werror_flag" 3613 || test ! -s conftest.err' 3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3615 (eval $ac_try) 2>&5 3616 ac_status=$? 3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3618 (exit $ac_status); }; } && 3619 { ac_try='test -s conftest.$ac_objext' 3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3621 (eval $ac_try) 2>&5 3622 ac_status=$? 3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3624 (exit $ac_status); }; }; then 3625 ac_cv_have_decl_errno=yes 3626else 3627 echo "$as_me: failed program was:" >&5 3628sed 's/^/| /' conftest.$ac_ext >&5 3629 3630ac_cv_have_decl_errno=no 3631fi 3632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3633fi 3634echo "$as_me:$LINENO: result: $ac_cv_have_decl_errno" >&5 3635echo "${ECHO_T}$ac_cv_have_decl_errno" >&6 3636if test $ac_cv_have_decl_errno = yes; then 3637 3638cat >>confdefs.h <<_ACEOF 3639#define HAVE_DECL_ERRNO 1 3640_ACEOF 3641 3642 3643else 3644 cat >>confdefs.h <<_ACEOF 3645#define HAVE_DECL_ERRNO 0 3646_ACEOF 3647 3648 3649fi 3650echo "$as_me:$LINENO: checking whether vasprintf is declared" >&5 3651echo $ECHO_N "checking whether vasprintf is declared... $ECHO_C" >&6 3652if test "${ac_cv_have_decl_vasprintf+set}" = set; then 3653 echo $ECHO_N "(cached) $ECHO_C" >&6 3654else 3655 cat >conftest.$ac_ext <<_ACEOF 3656/* confdefs.h. */ 3657_ACEOF 3658cat confdefs.h >>conftest.$ac_ext 3659cat >>conftest.$ac_ext <<_ACEOF 3660/* end confdefs.h. */ 3661$ac_includes_default 3662int 3663main () 3664{ 3665#ifndef vasprintf 3666 char *p = (char *) vasprintf; 3667#endif 3668 3669 ; 3670 return 0; 3671} 3672_ACEOF 3673rm -f conftest.$ac_objext 3674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3675 (eval $ac_compile) 2>conftest.er1 3676 ac_status=$? 3677 grep -v '^ *+' conftest.er1 >conftest.err 3678 rm -f conftest.er1 3679 cat conftest.err >&5 3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 (exit $ac_status); } && 3682 { ac_try='test -z "$ac_c_werror_flag" 3683 || test ! -s conftest.err' 3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3685 (eval $ac_try) 2>&5 3686 ac_status=$? 3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3688 (exit $ac_status); }; } && 3689 { ac_try='test -s conftest.$ac_objext' 3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3691 (eval $ac_try) 2>&5 3692 ac_status=$? 3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3694 (exit $ac_status); }; }; then 3695 ac_cv_have_decl_vasprintf=yes 3696else 3697 echo "$as_me: failed program was:" >&5 3698sed 's/^/| /' conftest.$ac_ext >&5 3699 3700ac_cv_have_decl_vasprintf=no 3701fi 3702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3703fi 3704echo "$as_me:$LINENO: result: $ac_cv_have_decl_vasprintf" >&5 3705echo "${ECHO_T}$ac_cv_have_decl_vasprintf" >&6 3706if test $ac_cv_have_decl_vasprintf = yes; then 3707 3708cat >>confdefs.h <<_ACEOF 3709#define HAVE_DECL_VASPRINTF 1 3710_ACEOF 3711 3712 3713else 3714 cat >>confdefs.h <<_ACEOF 3715#define HAVE_DECL_VASPRINTF 0 3716_ACEOF 3717 3718 3719fi 3720echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5 3721echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6 3722if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then 3723 echo $ECHO_N "(cached) $ECHO_C" >&6 3724else 3725 cat >conftest.$ac_ext <<_ACEOF 3726/* confdefs.h. */ 3727_ACEOF 3728cat confdefs.h >>conftest.$ac_ext 3729cat >>conftest.$ac_ext <<_ACEOF 3730/* end confdefs.h. */ 3731$ac_includes_default 3732int 3733main () 3734{ 3735#ifndef clearerr_unlocked 3736 char *p = (char *) clearerr_unlocked; 3737#endif 3738 3739 ; 3740 return 0; 3741} 3742_ACEOF 3743rm -f conftest.$ac_objext 3744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3745 (eval $ac_compile) 2>conftest.er1 3746 ac_status=$? 3747 grep -v '^ *+' conftest.er1 >conftest.err 3748 rm -f conftest.er1 3749 cat conftest.err >&5 3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3751 (exit $ac_status); } && 3752 { ac_try='test -z "$ac_c_werror_flag" 3753 || test ! -s conftest.err' 3754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3755 (eval $ac_try) 2>&5 3756 ac_status=$? 3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3758 (exit $ac_status); }; } && 3759 { ac_try='test -s conftest.$ac_objext' 3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3761 (eval $ac_try) 2>&5 3762 ac_status=$? 3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3764 (exit $ac_status); }; }; then 3765 ac_cv_have_decl_clearerr_unlocked=yes 3766else 3767 echo "$as_me: failed program was:" >&5 3768sed 's/^/| /' conftest.$ac_ext >&5 3769 3770ac_cv_have_decl_clearerr_unlocked=no 3771fi 3772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3773fi 3774echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5 3775echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6 3776if test $ac_cv_have_decl_clearerr_unlocked = yes; then 3777 3778cat >>confdefs.h <<_ACEOF 3779#define HAVE_DECL_CLEARERR_UNLOCKED 1 3780_ACEOF 3781 3782 3783else 3784 cat >>confdefs.h <<_ACEOF 3785#define HAVE_DECL_CLEARERR_UNLOCKED 0 3786_ACEOF 3787 3788 3789fi 3790echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 3791echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 3792if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 3793 echo $ECHO_N "(cached) $ECHO_C" >&6 3794else 3795 cat >conftest.$ac_ext <<_ACEOF 3796/* confdefs.h. */ 3797_ACEOF 3798cat confdefs.h >>conftest.$ac_ext 3799cat >>conftest.$ac_ext <<_ACEOF 3800/* end confdefs.h. */ 3801$ac_includes_default 3802int 3803main () 3804{ 3805#ifndef feof_unlocked 3806 char *p = (char *) feof_unlocked; 3807#endif 3808 3809 ; 3810 return 0; 3811} 3812_ACEOF 3813rm -f conftest.$ac_objext 3814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3815 (eval $ac_compile) 2>conftest.er1 3816 ac_status=$? 3817 grep -v '^ *+' conftest.er1 >conftest.err 3818 rm -f conftest.er1 3819 cat conftest.err >&5 3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3821 (exit $ac_status); } && 3822 { ac_try='test -z "$ac_c_werror_flag" 3823 || test ! -s conftest.err' 3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3825 (eval $ac_try) 2>&5 3826 ac_status=$? 3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3828 (exit $ac_status); }; } && 3829 { ac_try='test -s conftest.$ac_objext' 3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3831 (eval $ac_try) 2>&5 3832 ac_status=$? 3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3834 (exit $ac_status); }; }; then 3835 ac_cv_have_decl_feof_unlocked=yes 3836else 3837 echo "$as_me: failed program was:" >&5 3838sed 's/^/| /' conftest.$ac_ext >&5 3839 3840ac_cv_have_decl_feof_unlocked=no 3841fi 3842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3843fi 3844echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 3845echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 3846if test $ac_cv_have_decl_feof_unlocked = yes; then 3847 3848cat >>confdefs.h <<_ACEOF 3849#define HAVE_DECL_FEOF_UNLOCKED 1 3850_ACEOF 3851 3852 3853else 3854 cat >>confdefs.h <<_ACEOF 3855#define HAVE_DECL_FEOF_UNLOCKED 0 3856_ACEOF 3857 3858 3859fi 3860echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5 3861echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6 3862if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then 3863 echo $ECHO_N "(cached) $ECHO_C" >&6 3864else 3865 cat >conftest.$ac_ext <<_ACEOF 3866/* confdefs.h. */ 3867_ACEOF 3868cat confdefs.h >>conftest.$ac_ext 3869cat >>conftest.$ac_ext <<_ACEOF 3870/* end confdefs.h. */ 3871$ac_includes_default 3872int 3873main () 3874{ 3875#ifndef ferror_unlocked 3876 char *p = (char *) ferror_unlocked; 3877#endif 3878 3879 ; 3880 return 0; 3881} 3882_ACEOF 3883rm -f conftest.$ac_objext 3884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3885 (eval $ac_compile) 2>conftest.er1 3886 ac_status=$? 3887 grep -v '^ *+' conftest.er1 >conftest.err 3888 rm -f conftest.er1 3889 cat conftest.err >&5 3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3891 (exit $ac_status); } && 3892 { ac_try='test -z "$ac_c_werror_flag" 3893 || test ! -s conftest.err' 3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3895 (eval $ac_try) 2>&5 3896 ac_status=$? 3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3898 (exit $ac_status); }; } && 3899 { ac_try='test -s conftest.$ac_objext' 3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3901 (eval $ac_try) 2>&5 3902 ac_status=$? 3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3904 (exit $ac_status); }; }; then 3905 ac_cv_have_decl_ferror_unlocked=yes 3906else 3907 echo "$as_me: failed program was:" >&5 3908sed 's/^/| /' conftest.$ac_ext >&5 3909 3910ac_cv_have_decl_ferror_unlocked=no 3911fi 3912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3913fi 3914echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5 3915echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6 3916if test $ac_cv_have_decl_ferror_unlocked = yes; then 3917 3918cat >>confdefs.h <<_ACEOF 3919#define HAVE_DECL_FERROR_UNLOCKED 1 3920_ACEOF 3921 3922 3923else 3924 cat >>confdefs.h <<_ACEOF 3925#define HAVE_DECL_FERROR_UNLOCKED 0 3926_ACEOF 3927 3928 3929fi 3930echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5 3931echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6 3932if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then 3933 echo $ECHO_N "(cached) $ECHO_C" >&6 3934else 3935 cat >conftest.$ac_ext <<_ACEOF 3936/* confdefs.h. */ 3937_ACEOF 3938cat confdefs.h >>conftest.$ac_ext 3939cat >>conftest.$ac_ext <<_ACEOF 3940/* end confdefs.h. */ 3941$ac_includes_default 3942int 3943main () 3944{ 3945#ifndef fflush_unlocked 3946 char *p = (char *) fflush_unlocked; 3947#endif 3948 3949 ; 3950 return 0; 3951} 3952_ACEOF 3953rm -f conftest.$ac_objext 3954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3955 (eval $ac_compile) 2>conftest.er1 3956 ac_status=$? 3957 grep -v '^ *+' conftest.er1 >conftest.err 3958 rm -f conftest.er1 3959 cat conftest.err >&5 3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3961 (exit $ac_status); } && 3962 { ac_try='test -z "$ac_c_werror_flag" 3963 || test ! -s conftest.err' 3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3965 (eval $ac_try) 2>&5 3966 ac_status=$? 3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3968 (exit $ac_status); }; } && 3969 { ac_try='test -s conftest.$ac_objext' 3970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3971 (eval $ac_try) 2>&5 3972 ac_status=$? 3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3974 (exit $ac_status); }; }; then 3975 ac_cv_have_decl_fflush_unlocked=yes 3976else 3977 echo "$as_me: failed program was:" >&5 3978sed 's/^/| /' conftest.$ac_ext >&5 3979 3980ac_cv_have_decl_fflush_unlocked=no 3981fi 3982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3983fi 3984echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5 3985echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6 3986if test $ac_cv_have_decl_fflush_unlocked = yes; then 3987 3988cat >>confdefs.h <<_ACEOF 3989#define HAVE_DECL_FFLUSH_UNLOCKED 1 3990_ACEOF 3991 3992 3993else 3994 cat >>confdefs.h <<_ACEOF 3995#define HAVE_DECL_FFLUSH_UNLOCKED 0 3996_ACEOF 3997 3998 3999fi 4000echo "$as_me:$LINENO: checking whether fgetc_unlocked is declared" >&5 4001echo $ECHO_N "checking whether fgetc_unlocked is declared... $ECHO_C" >&6 4002if test "${ac_cv_have_decl_fgetc_unlocked+set}" = set; then 4003 echo $ECHO_N "(cached) $ECHO_C" >&6 4004else 4005 cat >conftest.$ac_ext <<_ACEOF 4006/* confdefs.h. */ 4007_ACEOF 4008cat confdefs.h >>conftest.$ac_ext 4009cat >>conftest.$ac_ext <<_ACEOF 4010/* end confdefs.h. */ 4011$ac_includes_default 4012int 4013main () 4014{ 4015#ifndef fgetc_unlocked 4016 char *p = (char *) fgetc_unlocked; 4017#endif 4018 4019 ; 4020 return 0; 4021} 4022_ACEOF 4023rm -f conftest.$ac_objext 4024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4025 (eval $ac_compile) 2>conftest.er1 4026 ac_status=$? 4027 grep -v '^ *+' conftest.er1 >conftest.err 4028 rm -f conftest.er1 4029 cat conftest.err >&5 4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4031 (exit $ac_status); } && 4032 { ac_try='test -z "$ac_c_werror_flag" 4033 || test ! -s conftest.err' 4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4035 (eval $ac_try) 2>&5 4036 ac_status=$? 4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4038 (exit $ac_status); }; } && 4039 { ac_try='test -s conftest.$ac_objext' 4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4041 (eval $ac_try) 2>&5 4042 ac_status=$? 4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4044 (exit $ac_status); }; }; then 4045 ac_cv_have_decl_fgetc_unlocked=yes 4046else 4047 echo "$as_me: failed program was:" >&5 4048sed 's/^/| /' conftest.$ac_ext >&5 4049 4050ac_cv_have_decl_fgetc_unlocked=no 4051fi 4052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4053fi 4054echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc_unlocked" >&5 4055echo "${ECHO_T}$ac_cv_have_decl_fgetc_unlocked" >&6 4056if test $ac_cv_have_decl_fgetc_unlocked = yes; then 4057 4058cat >>confdefs.h <<_ACEOF 4059#define HAVE_DECL_FGETC_UNLOCKED 1 4060_ACEOF 4061 4062 4063else 4064 cat >>confdefs.h <<_ACEOF 4065#define HAVE_DECL_FGETC_UNLOCKED 0 4066_ACEOF 4067 4068 4069fi 4070echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 4071echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 4072if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 4073 echo $ECHO_N "(cached) $ECHO_C" >&6 4074else 4075 cat >conftest.$ac_ext <<_ACEOF 4076/* confdefs.h. */ 4077_ACEOF 4078cat confdefs.h >>conftest.$ac_ext 4079cat >>conftest.$ac_ext <<_ACEOF 4080/* end confdefs.h. */ 4081$ac_includes_default 4082int 4083main () 4084{ 4085#ifndef fgets_unlocked 4086 char *p = (char *) fgets_unlocked; 4087#endif 4088 4089 ; 4090 return 0; 4091} 4092_ACEOF 4093rm -f conftest.$ac_objext 4094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4095 (eval $ac_compile) 2>conftest.er1 4096 ac_status=$? 4097 grep -v '^ *+' conftest.er1 >conftest.err 4098 rm -f conftest.er1 4099 cat conftest.err >&5 4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4101 (exit $ac_status); } && 4102 { ac_try='test -z "$ac_c_werror_flag" 4103 || test ! -s conftest.err' 4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4105 (eval $ac_try) 2>&5 4106 ac_status=$? 4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); }; } && 4109 { ac_try='test -s conftest.$ac_objext' 4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4111 (eval $ac_try) 2>&5 4112 ac_status=$? 4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4114 (exit $ac_status); }; }; then 4115 ac_cv_have_decl_fgets_unlocked=yes 4116else 4117 echo "$as_me: failed program was:" >&5 4118sed 's/^/| /' conftest.$ac_ext >&5 4119 4120ac_cv_have_decl_fgets_unlocked=no 4121fi 4122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4123fi 4124echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 4125echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 4126if test $ac_cv_have_decl_fgets_unlocked = yes; then 4127 4128cat >>confdefs.h <<_ACEOF 4129#define HAVE_DECL_FGETS_UNLOCKED 1 4130_ACEOF 4131 4132 4133else 4134 cat >>confdefs.h <<_ACEOF 4135#define HAVE_DECL_FGETS_UNLOCKED 0 4136_ACEOF 4137 4138 4139fi 4140echo "$as_me:$LINENO: checking whether fileno_unlocked is declared" >&5 4141echo $ECHO_N "checking whether fileno_unlocked is declared... $ECHO_C" >&6 4142if test "${ac_cv_have_decl_fileno_unlocked+set}" = set; then 4143 echo $ECHO_N "(cached) $ECHO_C" >&6 4144else 4145 cat >conftest.$ac_ext <<_ACEOF 4146/* confdefs.h. */ 4147_ACEOF 4148cat confdefs.h >>conftest.$ac_ext 4149cat >>conftest.$ac_ext <<_ACEOF 4150/* end confdefs.h. */ 4151$ac_includes_default 4152int 4153main () 4154{ 4155#ifndef fileno_unlocked 4156 char *p = (char *) fileno_unlocked; 4157#endif 4158 4159 ; 4160 return 0; 4161} 4162_ACEOF 4163rm -f conftest.$ac_objext 4164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4165 (eval $ac_compile) 2>conftest.er1 4166 ac_status=$? 4167 grep -v '^ *+' conftest.er1 >conftest.err 4168 rm -f conftest.er1 4169 cat conftest.err >&5 4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4171 (exit $ac_status); } && 4172 { ac_try='test -z "$ac_c_werror_flag" 4173 || test ! -s conftest.err' 4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4175 (eval $ac_try) 2>&5 4176 ac_status=$? 4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4178 (exit $ac_status); }; } && 4179 { ac_try='test -s conftest.$ac_objext' 4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4181 (eval $ac_try) 2>&5 4182 ac_status=$? 4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4184 (exit $ac_status); }; }; then 4185 ac_cv_have_decl_fileno_unlocked=yes 4186else 4187 echo "$as_me: failed program was:" >&5 4188sed 's/^/| /' conftest.$ac_ext >&5 4189 4190ac_cv_have_decl_fileno_unlocked=no 4191fi 4192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4193fi 4194echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno_unlocked" >&5 4195echo "${ECHO_T}$ac_cv_have_decl_fileno_unlocked" >&6 4196if test $ac_cv_have_decl_fileno_unlocked = yes; then 4197 4198cat >>confdefs.h <<_ACEOF 4199#define HAVE_DECL_FILENO_UNLOCKED 1 4200_ACEOF 4201 4202 4203else 4204 cat >>confdefs.h <<_ACEOF 4205#define HAVE_DECL_FILENO_UNLOCKED 0 4206_ACEOF 4207 4208 4209fi 4210echo "$as_me:$LINENO: checking whether fprintf_unlocked is declared" >&5 4211echo $ECHO_N "checking whether fprintf_unlocked is declared... $ECHO_C" >&6 4212if test "${ac_cv_have_decl_fprintf_unlocked+set}" = set; then 4213 echo $ECHO_N "(cached) $ECHO_C" >&6 4214else 4215 cat >conftest.$ac_ext <<_ACEOF 4216/* confdefs.h. */ 4217_ACEOF 4218cat confdefs.h >>conftest.$ac_ext 4219cat >>conftest.$ac_ext <<_ACEOF 4220/* end confdefs.h. */ 4221$ac_includes_default 4222int 4223main () 4224{ 4225#ifndef fprintf_unlocked 4226 char *p = (char *) fprintf_unlocked; 4227#endif 4228 4229 ; 4230 return 0; 4231} 4232_ACEOF 4233rm -f conftest.$ac_objext 4234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4235 (eval $ac_compile) 2>conftest.er1 4236 ac_status=$? 4237 grep -v '^ *+' conftest.er1 >conftest.err 4238 rm -f conftest.er1 4239 cat conftest.err >&5 4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4241 (exit $ac_status); } && 4242 { ac_try='test -z "$ac_c_werror_flag" 4243 || test ! -s conftest.err' 4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4245 (eval $ac_try) 2>&5 4246 ac_status=$? 4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4248 (exit $ac_status); }; } && 4249 { ac_try='test -s conftest.$ac_objext' 4250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4251 (eval $ac_try) 2>&5 4252 ac_status=$? 4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4254 (exit $ac_status); }; }; then 4255 ac_cv_have_decl_fprintf_unlocked=yes 4256else 4257 echo "$as_me: failed program was:" >&5 4258sed 's/^/| /' conftest.$ac_ext >&5 4259 4260ac_cv_have_decl_fprintf_unlocked=no 4261fi 4262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4263fi 4264echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf_unlocked" >&5 4265echo "${ECHO_T}$ac_cv_have_decl_fprintf_unlocked" >&6 4266if test $ac_cv_have_decl_fprintf_unlocked = yes; then 4267 4268cat >>confdefs.h <<_ACEOF 4269#define HAVE_DECL_FPRINTF_UNLOCKED 1 4270_ACEOF 4271 4272 4273else 4274 cat >>confdefs.h <<_ACEOF 4275#define HAVE_DECL_FPRINTF_UNLOCKED 0 4276_ACEOF 4277 4278 4279fi 4280echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5 4281echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6 4282if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then 4283 echo $ECHO_N "(cached) $ECHO_C" >&6 4284else 4285 cat >conftest.$ac_ext <<_ACEOF 4286/* confdefs.h. */ 4287_ACEOF 4288cat confdefs.h >>conftest.$ac_ext 4289cat >>conftest.$ac_ext <<_ACEOF 4290/* end confdefs.h. */ 4291$ac_includes_default 4292int 4293main () 4294{ 4295#ifndef fputc_unlocked 4296 char *p = (char *) fputc_unlocked; 4297#endif 4298 4299 ; 4300 return 0; 4301} 4302_ACEOF 4303rm -f conftest.$ac_objext 4304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4305 (eval $ac_compile) 2>conftest.er1 4306 ac_status=$? 4307 grep -v '^ *+' conftest.er1 >conftest.err 4308 rm -f conftest.er1 4309 cat conftest.err >&5 4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4311 (exit $ac_status); } && 4312 { ac_try='test -z "$ac_c_werror_flag" 4313 || test ! -s conftest.err' 4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4315 (eval $ac_try) 2>&5 4316 ac_status=$? 4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4318 (exit $ac_status); }; } && 4319 { ac_try='test -s conftest.$ac_objext' 4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4321 (eval $ac_try) 2>&5 4322 ac_status=$? 4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4324 (exit $ac_status); }; }; then 4325 ac_cv_have_decl_fputc_unlocked=yes 4326else 4327 echo "$as_me: failed program was:" >&5 4328sed 's/^/| /' conftest.$ac_ext >&5 4329 4330ac_cv_have_decl_fputc_unlocked=no 4331fi 4332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4333fi 4334echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5 4335echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6 4336if test $ac_cv_have_decl_fputc_unlocked = yes; then 4337 4338cat >>confdefs.h <<_ACEOF 4339#define HAVE_DECL_FPUTC_UNLOCKED 1 4340_ACEOF 4341 4342 4343else 4344 cat >>confdefs.h <<_ACEOF 4345#define HAVE_DECL_FPUTC_UNLOCKED 0 4346_ACEOF 4347 4348 4349fi 4350echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5 4351echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6 4352if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then 4353 echo $ECHO_N "(cached) $ECHO_C" >&6 4354else 4355 cat >conftest.$ac_ext <<_ACEOF 4356/* confdefs.h. */ 4357_ACEOF 4358cat confdefs.h >>conftest.$ac_ext 4359cat >>conftest.$ac_ext <<_ACEOF 4360/* end confdefs.h. */ 4361$ac_includes_default 4362int 4363main () 4364{ 4365#ifndef fputs_unlocked 4366 char *p = (char *) fputs_unlocked; 4367#endif 4368 4369 ; 4370 return 0; 4371} 4372_ACEOF 4373rm -f conftest.$ac_objext 4374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4375 (eval $ac_compile) 2>conftest.er1 4376 ac_status=$? 4377 grep -v '^ *+' conftest.er1 >conftest.err 4378 rm -f conftest.er1 4379 cat conftest.err >&5 4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4381 (exit $ac_status); } && 4382 { ac_try='test -z "$ac_c_werror_flag" 4383 || test ! -s conftest.err' 4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4385 (eval $ac_try) 2>&5 4386 ac_status=$? 4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4388 (exit $ac_status); }; } && 4389 { ac_try='test -s conftest.$ac_objext' 4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4391 (eval $ac_try) 2>&5 4392 ac_status=$? 4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4394 (exit $ac_status); }; }; then 4395 ac_cv_have_decl_fputs_unlocked=yes 4396else 4397 echo "$as_me: failed program was:" >&5 4398sed 's/^/| /' conftest.$ac_ext >&5 4399 4400ac_cv_have_decl_fputs_unlocked=no 4401fi 4402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4403fi 4404echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5 4405echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6 4406if test $ac_cv_have_decl_fputs_unlocked = yes; then 4407 4408cat >>confdefs.h <<_ACEOF 4409#define HAVE_DECL_FPUTS_UNLOCKED 1 4410_ACEOF 4411 4412 4413else 4414 cat >>confdefs.h <<_ACEOF 4415#define HAVE_DECL_FPUTS_UNLOCKED 0 4416_ACEOF 4417 4418 4419fi 4420echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5 4421echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6 4422if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then 4423 echo $ECHO_N "(cached) $ECHO_C" >&6 4424else 4425 cat >conftest.$ac_ext <<_ACEOF 4426/* confdefs.h. */ 4427_ACEOF 4428cat confdefs.h >>conftest.$ac_ext 4429cat >>conftest.$ac_ext <<_ACEOF 4430/* end confdefs.h. */ 4431$ac_includes_default 4432int 4433main () 4434{ 4435#ifndef fread_unlocked 4436 char *p = (char *) fread_unlocked; 4437#endif 4438 4439 ; 4440 return 0; 4441} 4442_ACEOF 4443rm -f conftest.$ac_objext 4444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4445 (eval $ac_compile) 2>conftest.er1 4446 ac_status=$? 4447 grep -v '^ *+' conftest.er1 >conftest.err 4448 rm -f conftest.er1 4449 cat conftest.err >&5 4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4451 (exit $ac_status); } && 4452 { ac_try='test -z "$ac_c_werror_flag" 4453 || test ! -s conftest.err' 4454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4455 (eval $ac_try) 2>&5 4456 ac_status=$? 4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4458 (exit $ac_status); }; } && 4459 { ac_try='test -s conftest.$ac_objext' 4460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4461 (eval $ac_try) 2>&5 4462 ac_status=$? 4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4464 (exit $ac_status); }; }; then 4465 ac_cv_have_decl_fread_unlocked=yes 4466else 4467 echo "$as_me: failed program was:" >&5 4468sed 's/^/| /' conftest.$ac_ext >&5 4469 4470ac_cv_have_decl_fread_unlocked=no 4471fi 4472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4473fi 4474echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5 4475echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6 4476if test $ac_cv_have_decl_fread_unlocked = yes; then 4477 4478cat >>confdefs.h <<_ACEOF 4479#define HAVE_DECL_FREAD_UNLOCKED 1 4480_ACEOF 4481 4482 4483else 4484 cat >>confdefs.h <<_ACEOF 4485#define HAVE_DECL_FREAD_UNLOCKED 0 4486_ACEOF 4487 4488 4489fi 4490echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5 4491echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6 4492if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then 4493 echo $ECHO_N "(cached) $ECHO_C" >&6 4494else 4495 cat >conftest.$ac_ext <<_ACEOF 4496/* confdefs.h. */ 4497_ACEOF 4498cat confdefs.h >>conftest.$ac_ext 4499cat >>conftest.$ac_ext <<_ACEOF 4500/* end confdefs.h. */ 4501$ac_includes_default 4502int 4503main () 4504{ 4505#ifndef fwrite_unlocked 4506 char *p = (char *) fwrite_unlocked; 4507#endif 4508 4509 ; 4510 return 0; 4511} 4512_ACEOF 4513rm -f conftest.$ac_objext 4514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4515 (eval $ac_compile) 2>conftest.er1 4516 ac_status=$? 4517 grep -v '^ *+' conftest.er1 >conftest.err 4518 rm -f conftest.er1 4519 cat conftest.err >&5 4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4521 (exit $ac_status); } && 4522 { ac_try='test -z "$ac_c_werror_flag" 4523 || test ! -s conftest.err' 4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4525 (eval $ac_try) 2>&5 4526 ac_status=$? 4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4528 (exit $ac_status); }; } && 4529 { ac_try='test -s conftest.$ac_objext' 4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4531 (eval $ac_try) 2>&5 4532 ac_status=$? 4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4534 (exit $ac_status); }; }; then 4535 ac_cv_have_decl_fwrite_unlocked=yes 4536else 4537 echo "$as_me: failed program was:" >&5 4538sed 's/^/| /' conftest.$ac_ext >&5 4539 4540ac_cv_have_decl_fwrite_unlocked=no 4541fi 4542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4543fi 4544echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5 4545echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6 4546if test $ac_cv_have_decl_fwrite_unlocked = yes; then 4547 4548cat >>confdefs.h <<_ACEOF 4549#define HAVE_DECL_FWRITE_UNLOCKED 1 4550_ACEOF 4551 4552 4553else 4554 cat >>confdefs.h <<_ACEOF 4555#define HAVE_DECL_FWRITE_UNLOCKED 0 4556_ACEOF 4557 4558 4559fi 4560echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5 4561echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6 4562if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then 4563 echo $ECHO_N "(cached) $ECHO_C" >&6 4564else 4565 cat >conftest.$ac_ext <<_ACEOF 4566/* confdefs.h. */ 4567_ACEOF 4568cat confdefs.h >>conftest.$ac_ext 4569cat >>conftest.$ac_ext <<_ACEOF 4570/* end confdefs.h. */ 4571$ac_includes_default 4572int 4573main () 4574{ 4575#ifndef getchar_unlocked 4576 char *p = (char *) getchar_unlocked; 4577#endif 4578 4579 ; 4580 return 0; 4581} 4582_ACEOF 4583rm -f conftest.$ac_objext 4584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4585 (eval $ac_compile) 2>conftest.er1 4586 ac_status=$? 4587 grep -v '^ *+' conftest.er1 >conftest.err 4588 rm -f conftest.er1 4589 cat conftest.err >&5 4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4591 (exit $ac_status); } && 4592 { ac_try='test -z "$ac_c_werror_flag" 4593 || test ! -s conftest.err' 4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4595 (eval $ac_try) 2>&5 4596 ac_status=$? 4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4598 (exit $ac_status); }; } && 4599 { ac_try='test -s conftest.$ac_objext' 4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4601 (eval $ac_try) 2>&5 4602 ac_status=$? 4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4604 (exit $ac_status); }; }; then 4605 ac_cv_have_decl_getchar_unlocked=yes 4606else 4607 echo "$as_me: failed program was:" >&5 4608sed 's/^/| /' conftest.$ac_ext >&5 4609 4610ac_cv_have_decl_getchar_unlocked=no 4611fi 4612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4613fi 4614echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5 4615echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6 4616if test $ac_cv_have_decl_getchar_unlocked = yes; then 4617 4618cat >>confdefs.h <<_ACEOF 4619#define HAVE_DECL_GETCHAR_UNLOCKED 1 4620_ACEOF 4621 4622 4623else 4624 cat >>confdefs.h <<_ACEOF 4625#define HAVE_DECL_GETCHAR_UNLOCKED 0 4626_ACEOF 4627 4628 4629fi 4630echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 4631echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 4632if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 4633 echo $ECHO_N "(cached) $ECHO_C" >&6 4634else 4635 cat >conftest.$ac_ext <<_ACEOF 4636/* confdefs.h. */ 4637_ACEOF 4638cat confdefs.h >>conftest.$ac_ext 4639cat >>conftest.$ac_ext <<_ACEOF 4640/* end confdefs.h. */ 4641$ac_includes_default 4642int 4643main () 4644{ 4645#ifndef getc_unlocked 4646 char *p = (char *) getc_unlocked; 4647#endif 4648 4649 ; 4650 return 0; 4651} 4652_ACEOF 4653rm -f conftest.$ac_objext 4654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4655 (eval $ac_compile) 2>conftest.er1 4656 ac_status=$? 4657 grep -v '^ *+' conftest.er1 >conftest.err 4658 rm -f conftest.er1 4659 cat conftest.err >&5 4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4661 (exit $ac_status); } && 4662 { ac_try='test -z "$ac_c_werror_flag" 4663 || test ! -s conftest.err' 4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4665 (eval $ac_try) 2>&5 4666 ac_status=$? 4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4668 (exit $ac_status); }; } && 4669 { ac_try='test -s conftest.$ac_objext' 4670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4671 (eval $ac_try) 2>&5 4672 ac_status=$? 4673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4674 (exit $ac_status); }; }; then 4675 ac_cv_have_decl_getc_unlocked=yes 4676else 4677 echo "$as_me: failed program was:" >&5 4678sed 's/^/| /' conftest.$ac_ext >&5 4679 4680ac_cv_have_decl_getc_unlocked=no 4681fi 4682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4683fi 4684echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 4685echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 4686if test $ac_cv_have_decl_getc_unlocked = yes; then 4687 4688cat >>confdefs.h <<_ACEOF 4689#define HAVE_DECL_GETC_UNLOCKED 1 4690_ACEOF 4691 4692 4693else 4694 cat >>confdefs.h <<_ACEOF 4695#define HAVE_DECL_GETC_UNLOCKED 0 4696_ACEOF 4697 4698 4699fi 4700echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5 4701echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6 4702if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then 4703 echo $ECHO_N "(cached) $ECHO_C" >&6 4704else 4705 cat >conftest.$ac_ext <<_ACEOF 4706/* confdefs.h. */ 4707_ACEOF 4708cat confdefs.h >>conftest.$ac_ext 4709cat >>conftest.$ac_ext <<_ACEOF 4710/* end confdefs.h. */ 4711$ac_includes_default 4712int 4713main () 4714{ 4715#ifndef putchar_unlocked 4716 char *p = (char *) putchar_unlocked; 4717#endif 4718 4719 ; 4720 return 0; 4721} 4722_ACEOF 4723rm -f conftest.$ac_objext 4724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4725 (eval $ac_compile) 2>conftest.er1 4726 ac_status=$? 4727 grep -v '^ *+' conftest.er1 >conftest.err 4728 rm -f conftest.er1 4729 cat conftest.err >&5 4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4731 (exit $ac_status); } && 4732 { ac_try='test -z "$ac_c_werror_flag" 4733 || test ! -s conftest.err' 4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4735 (eval $ac_try) 2>&5 4736 ac_status=$? 4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4738 (exit $ac_status); }; } && 4739 { ac_try='test -s conftest.$ac_objext' 4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4741 (eval $ac_try) 2>&5 4742 ac_status=$? 4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4744 (exit $ac_status); }; }; then 4745 ac_cv_have_decl_putchar_unlocked=yes 4746else 4747 echo "$as_me: failed program was:" >&5 4748sed 's/^/| /' conftest.$ac_ext >&5 4749 4750ac_cv_have_decl_putchar_unlocked=no 4751fi 4752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4753fi 4754echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5 4755echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6 4756if test $ac_cv_have_decl_putchar_unlocked = yes; then 4757 4758cat >>confdefs.h <<_ACEOF 4759#define HAVE_DECL_PUTCHAR_UNLOCKED 1 4760_ACEOF 4761 4762 4763else 4764 cat >>confdefs.h <<_ACEOF 4765#define HAVE_DECL_PUTCHAR_UNLOCKED 0 4766_ACEOF 4767 4768 4769fi 4770echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5 4771echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6 4772if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then 4773 echo $ECHO_N "(cached) $ECHO_C" >&6 4774else 4775 cat >conftest.$ac_ext <<_ACEOF 4776/* confdefs.h. */ 4777_ACEOF 4778cat confdefs.h >>conftest.$ac_ext 4779cat >>conftest.$ac_ext <<_ACEOF 4780/* end confdefs.h. */ 4781$ac_includes_default 4782int 4783main () 4784{ 4785#ifndef putc_unlocked 4786 char *p = (char *) putc_unlocked; 4787#endif 4788 4789 ; 4790 return 0; 4791} 4792_ACEOF 4793rm -f conftest.$ac_objext 4794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4795 (eval $ac_compile) 2>conftest.er1 4796 ac_status=$? 4797 grep -v '^ *+' conftest.er1 >conftest.err 4798 rm -f conftest.er1 4799 cat conftest.err >&5 4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4801 (exit $ac_status); } && 4802 { ac_try='test -z "$ac_c_werror_flag" 4803 || test ! -s conftest.err' 4804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4805 (eval $ac_try) 2>&5 4806 ac_status=$? 4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4808 (exit $ac_status); }; } && 4809 { ac_try='test -s conftest.$ac_objext' 4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4811 (eval $ac_try) 2>&5 4812 ac_status=$? 4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4814 (exit $ac_status); }; }; then 4815 ac_cv_have_decl_putc_unlocked=yes 4816else 4817 echo "$as_me: failed program was:" >&5 4818sed 's/^/| /' conftest.$ac_ext >&5 4819 4820ac_cv_have_decl_putc_unlocked=no 4821fi 4822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4823fi 4824echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5 4825echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6 4826if test $ac_cv_have_decl_putc_unlocked = yes; then 4827 4828cat >>confdefs.h <<_ACEOF 4829#define HAVE_DECL_PUTC_UNLOCKED 1 4830_ACEOF 4831 4832 4833else 4834 cat >>confdefs.h <<_ACEOF 4835#define HAVE_DECL_PUTC_UNLOCKED 0 4836_ACEOF 4837 4838 4839fi 4840 4841 4842 4843# Checks for typedefs, structures, and compiler characteristics. 4844echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4845echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4846if test "${ac_cv_c_const+set}" = set; then 4847 echo $ECHO_N "(cached) $ECHO_C" >&6 4848else 4849 cat >conftest.$ac_ext <<_ACEOF 4850/* confdefs.h. */ 4851_ACEOF 4852cat confdefs.h >>conftest.$ac_ext 4853cat >>conftest.$ac_ext <<_ACEOF 4854/* end confdefs.h. */ 4855 4856int 4857main () 4858{ 4859/* FIXME: Include the comments suggested by Paul. */ 4860#ifndef __cplusplus 4861 /* Ultrix mips cc rejects this. */ 4862 typedef int charset[2]; 4863 const charset x; 4864 /* SunOS 4.1.1 cc rejects this. */ 4865 char const *const *ccp; 4866 char **p; 4867 /* NEC SVR4.0.2 mips cc rejects this. */ 4868 struct point {int x, y;}; 4869 static struct point const zero = {0,0}; 4870 /* AIX XL C 1.02.0.0 rejects this. 4871 It does not let you subtract one const X* pointer from another in 4872 an arm of an if-expression whose if-part is not a constant 4873 expression */ 4874 const char *g = "string"; 4875 ccp = &g + (g ? g-g : 0); 4876 /* HPUX 7.0 cc rejects these. */ 4877 ++ccp; 4878 p = (char**) ccp; 4879 ccp = (char const *const *) p; 4880 { /* SCO 3.2v4 cc rejects this. */ 4881 char *t; 4882 char const *s = 0 ? (char *) 0 : (char const *) 0; 4883 4884 *t++ = 0; 4885 } 4886 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4887 int x[] = {25, 17}; 4888 const int *foo = &x[0]; 4889 ++foo; 4890 } 4891 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4892 typedef const int *iptr; 4893 iptr p = 0; 4894 ++p; 4895 } 4896 { /* AIX XL C 1.02.0.0 rejects this saying 4897 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4898 struct s { int j; const int *ap[3]; }; 4899 struct s *b; b->j = 5; 4900 } 4901 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4902 const int foo = 10; 4903 } 4904#endif 4905 4906 ; 4907 return 0; 4908} 4909_ACEOF 4910rm -f conftest.$ac_objext 4911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4912 (eval $ac_compile) 2>conftest.er1 4913 ac_status=$? 4914 grep -v '^ *+' conftest.er1 >conftest.err 4915 rm -f conftest.er1 4916 cat conftest.err >&5 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4918 (exit $ac_status); } && 4919 { ac_try='test -z "$ac_c_werror_flag" 4920 || test ! -s conftest.err' 4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4922 (eval $ac_try) 2>&5 4923 ac_status=$? 4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4925 (exit $ac_status); }; } && 4926 { ac_try='test -s conftest.$ac_objext' 4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4928 (eval $ac_try) 2>&5 4929 ac_status=$? 4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4931 (exit $ac_status); }; }; then 4932 ac_cv_c_const=yes 4933else 4934 echo "$as_me: failed program was:" >&5 4935sed 's/^/| /' conftest.$ac_ext >&5 4936 4937ac_cv_c_const=no 4938fi 4939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4940fi 4941echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4942echo "${ECHO_T}$ac_cv_c_const" >&6 4943if test $ac_cv_c_const = no; then 4944 4945cat >>confdefs.h <<\_ACEOF 4946#define const 4947_ACEOF 4948 4949fi 4950 4951 4952# Checks for library functions. 4953 4954if test "${ac_cv_header_sys_mman_h+set}" = set; then 4955 echo "$as_me:$LINENO: checking for sys/mman.h" >&5 4956echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6 4957if test "${ac_cv_header_sys_mman_h+set}" = set; then 4958 echo $ECHO_N "(cached) $ECHO_C" >&6 4959fi 4960echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5 4961echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6 4962else 4963 # Is the header compilable? 4964echo "$as_me:$LINENO: checking sys/mman.h usability" >&5 4965echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6 4966cat >conftest.$ac_ext <<_ACEOF 4967/* confdefs.h. */ 4968_ACEOF 4969cat confdefs.h >>conftest.$ac_ext 4970cat >>conftest.$ac_ext <<_ACEOF 4971/* end confdefs.h. */ 4972$ac_includes_default 4973#include <sys/mman.h> 4974_ACEOF 4975rm -f conftest.$ac_objext 4976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4977 (eval $ac_compile) 2>conftest.er1 4978 ac_status=$? 4979 grep -v '^ *+' conftest.er1 >conftest.err 4980 rm -f conftest.er1 4981 cat conftest.err >&5 4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4983 (exit $ac_status); } && 4984 { ac_try='test -z "$ac_c_werror_flag" 4985 || test ! -s conftest.err' 4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4987 (eval $ac_try) 2>&5 4988 ac_status=$? 4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4990 (exit $ac_status); }; } && 4991 { ac_try='test -s conftest.$ac_objext' 4992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4993 (eval $ac_try) 2>&5 4994 ac_status=$? 4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4996 (exit $ac_status); }; }; then 4997 ac_header_compiler=yes 4998else 4999 echo "$as_me: failed program was:" >&5 5000sed 's/^/| /' conftest.$ac_ext >&5 5001 5002ac_header_compiler=no 5003fi 5004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5005echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5006echo "${ECHO_T}$ac_header_compiler" >&6 5007 5008# Is the header present? 5009echo "$as_me:$LINENO: checking sys/mman.h presence" >&5 5010echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6 5011cat >conftest.$ac_ext <<_ACEOF 5012/* confdefs.h. */ 5013_ACEOF 5014cat confdefs.h >>conftest.$ac_ext 5015cat >>conftest.$ac_ext <<_ACEOF 5016/* end confdefs.h. */ 5017#include <sys/mman.h> 5018_ACEOF 5019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5021 ac_status=$? 5022 grep -v '^ *+' conftest.er1 >conftest.err 5023 rm -f conftest.er1 5024 cat conftest.err >&5 5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5026 (exit $ac_status); } >/dev/null; then 5027 if test -s conftest.err; then 5028 ac_cpp_err=$ac_c_preproc_warn_flag 5029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5030 else 5031 ac_cpp_err= 5032 fi 5033else 5034 ac_cpp_err=yes 5035fi 5036if test -z "$ac_cpp_err"; then 5037 ac_header_preproc=yes 5038else 5039 echo "$as_me: failed program was:" >&5 5040sed 's/^/| /' conftest.$ac_ext >&5 5041 5042 ac_header_preproc=no 5043fi 5044rm -f conftest.err conftest.$ac_ext 5045echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5046echo "${ECHO_T}$ac_header_preproc" >&6 5047 5048# So? What about this header? 5049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5050 yes:no: ) 5051 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5 5052echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5053 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5 5054echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;} 5055 ac_header_preproc=yes 5056 ;; 5057 no:yes:* ) 5058 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5 5059echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;} 5060 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5 5061echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;} 5062 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5 5063echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;} 5064 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5 5065echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;} 5066 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5 5067echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;} 5068 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5 5069echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;} 5070 ( 5071 cat <<\_ASBOX 5072## -------------------------------------- ## 5073## Report this to the fixincludes lists. ## 5074## -------------------------------------- ## 5075_ASBOX 5076 ) | 5077 sed "s/^/$as_me: WARNING: /" >&2 5078 ;; 5079esac 5080echo "$as_me:$LINENO: checking for sys/mman.h" >&5 5081echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6 5082if test "${ac_cv_header_sys_mman_h+set}" = set; then 5083 echo $ECHO_N "(cached) $ECHO_C" >&6 5084else 5085 ac_cv_header_sys_mman_h=$ac_header_preproc 5086fi 5087echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5 5088echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6 5089 5090fi 5091if test $ac_cv_header_sys_mman_h = yes; then 5092 gcc_header_sys_mman_h=yes 5093else 5094 gcc_header_sys_mman_h=no 5095fi 5096 5097 5098echo "$as_me:$LINENO: checking for mmap" >&5 5099echo $ECHO_N "checking for mmap... $ECHO_C" >&6 5100if test "${ac_cv_func_mmap+set}" = set; then 5101 echo $ECHO_N "(cached) $ECHO_C" >&6 5102else 5103 cat >conftest.$ac_ext <<_ACEOF 5104/* confdefs.h. */ 5105_ACEOF 5106cat confdefs.h >>conftest.$ac_ext 5107cat >>conftest.$ac_ext <<_ACEOF 5108/* end confdefs.h. */ 5109/* Define mmap to an innocuous variant, in case <limits.h> declares mmap. 5110 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5111#define mmap innocuous_mmap 5112 5113/* System header to define __stub macros and hopefully few prototypes, 5114 which can conflict with char mmap (); below. 5115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5116 <limits.h> exists even on freestanding compilers. */ 5117 5118#ifdef __STDC__ 5119# include <limits.h> 5120#else 5121# include <assert.h> 5122#endif 5123 5124#undef mmap 5125 5126/* Override any gcc2 internal prototype to avoid an error. */ 5127#ifdef __cplusplus 5128extern "C" 5129{ 5130#endif 5131/* We use char because int might match the return type of a gcc2 5132 builtin and then its argument prototype would still apply. */ 5133char mmap (); 5134/* The GNU C library defines this for functions which it implements 5135 to always fail with ENOSYS. Some functions are actually named 5136 something starting with __ and the normal name is an alias. */ 5137#if defined (__stub_mmap) || defined (__stub___mmap) 5138choke me 5139#else 5140char (*f) () = mmap; 5141#endif 5142#ifdef __cplusplus 5143} 5144#endif 5145 5146int 5147main () 5148{ 5149return f != mmap; 5150 ; 5151 return 0; 5152} 5153_ACEOF 5154rm -f conftest.$ac_objext conftest$ac_exeext 5155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5156 (eval $ac_link) 2>conftest.er1 5157 ac_status=$? 5158 grep -v '^ *+' conftest.er1 >conftest.err 5159 rm -f conftest.er1 5160 cat conftest.err >&5 5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5162 (exit $ac_status); } && 5163 { ac_try='test -z "$ac_c_werror_flag" 5164 || test ! -s conftest.err' 5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5166 (eval $ac_try) 2>&5 5167 ac_status=$? 5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5169 (exit $ac_status); }; } && 5170 { ac_try='test -s conftest$ac_exeext' 5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5172 (eval $ac_try) 2>&5 5173 ac_status=$? 5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5175 (exit $ac_status); }; }; then 5176 ac_cv_func_mmap=yes 5177else 5178 echo "$as_me: failed program was:" >&5 5179sed 's/^/| /' conftest.$ac_ext >&5 5180 5181ac_cv_func_mmap=no 5182fi 5183rm -f conftest.err conftest.$ac_objext \ 5184 conftest$ac_exeext conftest.$ac_ext 5185fi 5186echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5 5187echo "${ECHO_T}$ac_cv_func_mmap" >&6 5188if test $ac_cv_func_mmap = yes; then 5189 gcc_func_mmap=yes 5190else 5191 gcc_func_mmap=no 5192fi 5193 5194if test "$gcc_header_sys_mman_h" != yes \ 5195 || test "$gcc_func_mmap" != yes; then 5196 gcc_cv_func_mmap_file=no 5197 gcc_cv_func_mmap_dev_zero=no 5198 gcc_cv_func_mmap_anon=no 5199else 5200 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5 5201echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6 5202if test "${gcc_cv_func_mmap_file+set}" = set; then 5203 echo $ECHO_N "(cached) $ECHO_C" >&6 5204else 5205 # Add a system to this blacklist if 5206 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a 5207 # memory area containing the same data that you'd get if you applied 5208 # read() to the same fd. The only system known to have a problem here 5209 # is VMS, where text files have record structure. 5210 case "$host_os" in 5211 vms* | ultrix*) 5212 gcc_cv_func_mmap_file=no ;; 5213 *) 5214 gcc_cv_func_mmap_file=yes;; 5215 esac 5216fi 5217echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5 5218echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6 5219 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5 5220echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6 5221if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then 5222 echo $ECHO_N "(cached) $ECHO_C" >&6 5223else 5224 # Add a system to this blacklist if it has mmap() but /dev/zero 5225 # does not exist, or if mmapping /dev/zero does not give anonymous 5226 # zeroed pages with both the following properties: 5227 # 1. If you map N consecutive pages in with one call, and then 5228 # unmap any subset of those pages, the pages that were not 5229 # explicitly unmapped remain accessible. 5230 # 2. If you map two adjacent blocks of memory and then unmap them 5231 # both at once, they must both go away. 5232 # Systems known to be in this category are Windows (all variants), 5233 # VMS, and Darwin. 5234 case "$host_os" in 5235 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) 5236 gcc_cv_func_mmap_dev_zero=no ;; 5237 *) 5238 gcc_cv_func_mmap_dev_zero=yes;; 5239 esac 5240fi 5241echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5 5242echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6 5243 5244 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for. 5245 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5 5246echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6 5247if test "${gcc_cv_decl_map_anon+set}" = set; then 5248 echo $ECHO_N "(cached) $ECHO_C" >&6 5249else 5250 cat >conftest.$ac_ext <<_ACEOF 5251/* confdefs.h. */ 5252_ACEOF 5253cat confdefs.h >>conftest.$ac_ext 5254cat >>conftest.$ac_ext <<_ACEOF 5255/* end confdefs.h. */ 5256#include <sys/types.h> 5257#include <sys/mman.h> 5258#include <unistd.h> 5259 5260#ifndef MAP_ANONYMOUS 5261#define MAP_ANONYMOUS MAP_ANON 5262#endif 5263 5264int 5265main () 5266{ 5267int n = MAP_ANONYMOUS; 5268 ; 5269 return 0; 5270} 5271_ACEOF 5272rm -f conftest.$ac_objext 5273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5274 (eval $ac_compile) 2>conftest.er1 5275 ac_status=$? 5276 grep -v '^ *+' conftest.er1 >conftest.err 5277 rm -f conftest.er1 5278 cat conftest.err >&5 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5280 (exit $ac_status); } && 5281 { ac_try='test -z "$ac_c_werror_flag" 5282 || test ! -s conftest.err' 5283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5284 (eval $ac_try) 2>&5 5285 ac_status=$? 5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5287 (exit $ac_status); }; } && 5288 { ac_try='test -s conftest.$ac_objext' 5289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5290 (eval $ac_try) 2>&5 5291 ac_status=$? 5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5293 (exit $ac_status); }; }; then 5294 gcc_cv_decl_map_anon=yes 5295else 5296 echo "$as_me: failed program was:" >&5 5297sed 's/^/| /' conftest.$ac_ext >&5 5298 5299gcc_cv_decl_map_anon=no 5300fi 5301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5302fi 5303echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5 5304echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6 5305 5306 if test $gcc_cv_decl_map_anon = no; then 5307 gcc_cv_func_mmap_anon=no 5308 else 5309 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5 5310echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6 5311if test "${gcc_cv_func_mmap_anon+set}" = set; then 5312 echo $ECHO_N "(cached) $ECHO_C" >&6 5313else 5314 # Add a system to this blacklist if it has mmap() and MAP_ANON or 5315 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 5316 # doesn't give anonymous zeroed pages with the same properties listed 5317 # above for use of /dev/zero. 5318 # Systems known to be in this category are Windows, VMS, and SCO Unix. 5319 case "$host_os" in 5320 vms* | cygwin* | pe | mingw* | sco* | udk* ) 5321 gcc_cv_func_mmap_anon=no ;; 5322 *) 5323 gcc_cv_func_mmap_anon=yes;; 5324 esac 5325fi 5326echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5 5327echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6 5328 fi 5329fi 5330 5331if test $gcc_cv_func_mmap_file = yes; then 5332 5333cat >>confdefs.h <<\_ACEOF 5334#define HAVE_MMAP_FILE 1 5335_ACEOF 5336 5337fi 5338if test $gcc_cv_func_mmap_dev_zero = yes; then 5339 5340cat >>confdefs.h <<\_ACEOF 5341#define HAVE_MMAP_DEV_ZERO 1 5342_ACEOF 5343 5344fi 5345if test $gcc_cv_func_mmap_anon = yes; then 5346 5347cat >>confdefs.h <<\_ACEOF 5348#define HAVE_MMAP_ANON 1 5349_ACEOF 5350 5351fi 5352 5353 5354echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 5355echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 5356# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 5357if test "${enable_maintainer_mode+set}" = set; then 5358 enableval="$enable_maintainer_mode" 5359 USE_MAINTAINER_MODE=$enableval 5360else 5361 USE_MAINTAINER_MODE=no 5362fi; 5363echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 5364echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 5365if test "$USE_MAINTAINER_MODE" = yes; then 5366 MAINT= 5367else 5368 MAINT='#' 5369fi 5370 5371 5372 ac_config_headers="$ac_config_headers config.h" 5373 5374 ac_config_files="$ac_config_files Makefile mkheaders.almost:mkheaders.in" 5375 5376cat >confcache <<\_ACEOF 5377# This file is a shell script that caches the results of configure 5378# tests run on this system so they can be shared between configure 5379# scripts and configure runs, see configure's option --config-cache. 5380# It is not useful on other systems. If it contains results you don't 5381# want to keep, you may remove or edit it. 5382# 5383# config.status only pays attention to the cache file if you give it 5384# the --recheck option to rerun configure. 5385# 5386# `ac_cv_env_foo' variables (set or unset) will be overridden when 5387# loading this file, other *unset* `ac_cv_foo' will be assigned the 5388# following values. 5389 5390_ACEOF 5391 5392# The following way of writing the cache mishandles newlines in values, 5393# but we know of no workaround that is simple, portable, and efficient. 5394# So, don't put newlines in cache variables' values. 5395# Ultrix sh set writes to stderr and can't be redirected directly, 5396# and sets the high bit in the cache file unless we assign to the vars. 5397{ 5398 (set) 2>&1 | 5399 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5400 *ac_space=\ *) 5401 # `set' does not quote correctly, so add quotes (double-quote 5402 # substitution turns \\\\ into \\, and sed turns \\ into \). 5403 sed -n \ 5404 "s/'/'\\\\''/g; 5405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5406 ;; 5407 *) 5408 # `set' quotes correctly as required by POSIX, so do not add quotes. 5409 sed -n \ 5410 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 5411 ;; 5412 esac; 5413} | 5414 sed ' 5415 t clear 5416 : clear 5417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5418 t end 5419 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5420 : end' >>confcache 5421if diff $cache_file confcache >/dev/null 2>&1; then :; else 5422 if test -w $cache_file; then 5423 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 5424 cat confcache >$cache_file 5425 else 5426 echo "not updating unwritable cache $cache_file" 5427 fi 5428fi 5429rm -f confcache 5430 5431test "x$prefix" = xNONE && prefix=$ac_default_prefix 5432# Let make expand exec_prefix. 5433test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5434 5435# VPATH may cause trouble with some makes, so we remove $(srcdir), 5436# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5437# trailing colons and then remove the whole line if VPATH becomes empty 5438# (actually we leave an empty line to preserve line numbers). 5439if test "x$srcdir" = x.; then 5440 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5441s/:*\$(srcdir):*/:/; 5442s/:*\${srcdir}:*/:/; 5443s/:*@srcdir@:*/:/; 5444s/^\([^=]*=[ ]*\):*/\1/; 5445s/:*$//; 5446s/^[^=]*=[ ]*$//; 5447}' 5448fi 5449 5450DEFS=-DHAVE_CONFIG_H 5451 5452ac_libobjs= 5453ac_ltlibobjs= 5454for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5455 # 1. Remove the extension, and $U if already installed. 5456 ac_i=`echo "$ac_i" | 5457 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 5458 # 2. Add them. 5459 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 5460 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 5461done 5462LIBOBJS=$ac_libobjs 5463 5464LTLIBOBJS=$ac_ltlibobjs 5465 5466 5467 5468: ${CONFIG_STATUS=./config.status} 5469ac_clean_files_save=$ac_clean_files 5470ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5471{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 5472echo "$as_me: creating $CONFIG_STATUS" >&6;} 5473cat >$CONFIG_STATUS <<_ACEOF 5474#! $SHELL 5475# Generated by $as_me. 5476# Run this file to recreate the current configuration. 5477# Compiler output produced by configure, useful for debugging 5478# configure, is in config.log if it exists. 5479 5480debug=false 5481ac_cs_recheck=false 5482ac_cs_silent=false 5483SHELL=\${CONFIG_SHELL-$SHELL} 5484_ACEOF 5485 5486cat >>$CONFIG_STATUS <<\_ACEOF 5487## --------------------- ## 5488## M4sh Initialization. ## 5489## --------------------- ## 5490 5491# Be Bourne compatible 5492if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 5493 emulate sh 5494 NULLCMD=: 5495 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 5496 # is contrary to our usage. Disable this feature. 5497 alias -g '${1+"$@"}'='"$@"' 5498elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 5499 set -o posix 5500fi 5501DUALCASE=1; export DUALCASE # for MKS sh 5502 5503# Support unset when possible. 5504if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5505 as_unset=unset 5506else 5507 as_unset=false 5508fi 5509 5510 5511# Work around bugs in pre-3.0 UWIN ksh. 5512$as_unset ENV MAIL MAILPATH 5513PS1='$ ' 5514PS2='> ' 5515PS4='+ ' 5516 5517# NLS nuisances. 5518for as_var in \ 5519 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5520 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5521 LC_TELEPHONE LC_TIME 5522do 5523 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 5524 eval $as_var=C; export $as_var 5525 else 5526 $as_unset $as_var 5527 fi 5528done 5529 5530# Required to use basename. 5531if expr a : '\(a\)' >/dev/null 2>&1; then 5532 as_expr=expr 5533else 5534 as_expr=false 5535fi 5536 5537if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 5538 as_basename=basename 5539else 5540 as_basename=false 5541fi 5542 5543 5544# Name of the executable. 5545as_me=`$as_basename "$0" || 5546$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5547 X"$0" : 'X\(//\)$' \| \ 5548 X"$0" : 'X\(/\)$' \| \ 5549 . : '\(.\)' 2>/dev/null || 5550echo X/"$0" | 5551 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 5552 /^X\/\(\/\/\)$/{ s//\1/; q; } 5553 /^X\/\(\/\).*/{ s//\1/; q; } 5554 s/.*/./; q'` 5555 5556 5557# PATH needs CR, and LINENO needs CR and PATH. 5558# Avoid depending upon Character Ranges. 5559as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5560as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5561as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5562as_cr_digits='0123456789' 5563as_cr_alnum=$as_cr_Letters$as_cr_digits 5564 5565# The user is always right. 5566if test "${PATH_SEPARATOR+set}" != set; then 5567 echo "#! /bin/sh" >conf$$.sh 5568 echo "exit 0" >>conf$$.sh 5569 chmod +x conf$$.sh 5570 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5571 PATH_SEPARATOR=';' 5572 else 5573 PATH_SEPARATOR=: 5574 fi 5575 rm -f conf$$.sh 5576fi 5577 5578 5579 as_lineno_1=$LINENO 5580 as_lineno_2=$LINENO 5581 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5582 test "x$as_lineno_1" != "x$as_lineno_2" && 5583 test "x$as_lineno_3" = "x$as_lineno_2" || { 5584 # Find who we are. Look in the path if we contain no path at all 5585 # relative or not. 5586 case $0 in 5587 *[\\/]* ) as_myself=$0 ;; 5588 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5589for as_dir in $PATH 5590do 5591 IFS=$as_save_IFS 5592 test -z "$as_dir" && as_dir=. 5593 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5594done 5595 5596 ;; 5597 esac 5598 # We did not find ourselves, most probably we were run as `sh COMMAND' 5599 # in which case we are not to be found in the path. 5600 if test "x$as_myself" = x; then 5601 as_myself=$0 5602 fi 5603 if test ! -f "$as_myself"; then 5604 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 5605echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 5606 { (exit 1); exit 1; }; } 5607 fi 5608 case $CONFIG_SHELL in 5609 '') 5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5611for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 5612do 5613 IFS=$as_save_IFS 5614 test -z "$as_dir" && as_dir=. 5615 for as_base in sh bash ksh sh5; do 5616 case $as_dir in 5617 /*) 5618 if ("$as_dir/$as_base" -c ' 5619 as_lineno_1=$LINENO 5620 as_lineno_2=$LINENO 5621 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 5622 test "x$as_lineno_1" != "x$as_lineno_2" && 5623 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 5624 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 5625 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 5626 CONFIG_SHELL=$as_dir/$as_base 5627 export CONFIG_SHELL 5628 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 5629 fi;; 5630 esac 5631 done 5632done 5633;; 5634 esac 5635 5636 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 5637 # uniformly replaced by the line number. The first 'sed' inserts a 5638 # line-number line before each line; the second 'sed' does the real 5639 # work. The second script uses 'N' to pair each line-number line 5640 # with the numbered line, and appends trailing '-' during 5641 # substitution so that $LINENO is not a special case at line end. 5642 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 5643 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 5644 sed '=' <$as_myself | 5645 sed ' 5646 N 5647 s,$,-, 5648 : loop 5649 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 5650 t loop 5651 s,-$,, 5652 s,^['$as_cr_digits']*\n,, 5653 ' >$as_me.lineno && 5654 chmod +x $as_me.lineno || 5655 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 5656echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 5657 { (exit 1); exit 1; }; } 5658 5659 # Don't try to exec as it changes $[0], causing all sort of problems 5660 # (the dirname of $[0] is not the place where we might find the 5661 # original and so on. Autoconf is especially sensible to this). 5662 . ./$as_me.lineno 5663 # Exit status is that of the last command. 5664 exit 5665} 5666 5667 5668case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 5669 *c*,-n*) ECHO_N= ECHO_C=' 5670' ECHO_T=' ' ;; 5671 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 5672 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 5673esac 5674 5675if expr a : '\(a\)' >/dev/null 2>&1; then 5676 as_expr=expr 5677else 5678 as_expr=false 5679fi 5680 5681rm -f conf$$ conf$$.exe conf$$.file 5682echo >conf$$.file 5683if ln -s conf$$.file conf$$ 2>/dev/null; then 5684 # We could just check for DJGPP; but this test a) works b) is more generic 5685 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 5686 if test -f conf$$.exe; then 5687 # Don't use ln at all; we don't have any links 5688 as_ln_s='cp -p' 5689 else 5690 as_ln_s='ln -s' 5691 fi 5692elif ln conf$$.file conf$$ 2>/dev/null; then 5693 as_ln_s=ln 5694else 5695 as_ln_s='cp -p' 5696fi 5697rm -f conf$$ conf$$.exe conf$$.file 5698 5699if mkdir -p . 2>/dev/null; then 5700 as_mkdir_p=: 5701else 5702 test -d ./-p && rmdir ./-p 5703 as_mkdir_p=false 5704fi 5705 5706as_executable_p="test -f" 5707 5708# Sed expression to map a string onto a valid CPP name. 5709as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5710 5711# Sed expression to map a string onto a valid variable name. 5712as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5713 5714 5715# IFS 5716# We need space, tab and new line, in precisely that order. 5717as_nl=' 5718' 5719IFS=" $as_nl" 5720 5721# CDPATH. 5722$as_unset CDPATH 5723 5724exec 6>&1 5725 5726# Open the log real soon, to keep \$[0] and so on meaningful, and to 5727# report actual input values of CONFIG_FILES etc. instead of their 5728# values after options handling. Logging --version etc. is OK. 5729exec 5>>config.log 5730{ 5731 echo 5732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5733## Running $as_me. ## 5734_ASBOX 5735} >&5 5736cat >&5 <<_CSEOF 5737 5738This file was extended by fixincludes $as_me , which was 5739generated by GNU Autoconf 2.59. Invocation command line was 5740 5741 CONFIG_FILES = $CONFIG_FILES 5742 CONFIG_HEADERS = $CONFIG_HEADERS 5743 CONFIG_LINKS = $CONFIG_LINKS 5744 CONFIG_COMMANDS = $CONFIG_COMMANDS 5745 $ $0 $@ 5746 5747_CSEOF 5748echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 5749echo >&5 5750_ACEOF 5751 5752# Files that config.status was made for. 5753if test -n "$ac_config_files"; then 5754 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5755fi 5756 5757if test -n "$ac_config_headers"; then 5758 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5759fi 5760 5761if test -n "$ac_config_links"; then 5762 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5763fi 5764 5765if test -n "$ac_config_commands"; then 5766 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5767fi 5768 5769cat >>$CONFIG_STATUS <<\_ACEOF 5770 5771ac_cs_usage="\ 5772\`$as_me' instantiates files from templates according to the 5773current configuration. 5774 5775Usage: $0 [OPTIONS] [FILE]... 5776 5777 -h, --help print this help, then exit 5778 -V, --version print version number, then exit 5779 -q, --quiet do not print progress messages 5780 -d, --debug don't remove temporary files 5781 --recheck update $as_me by reconfiguring in the same conditions 5782 --file=FILE[:TEMPLATE] 5783 instantiate the configuration file FILE 5784 --header=FILE[:TEMPLATE] 5785 instantiate the configuration header FILE 5786 5787Configuration files: 5788$config_files 5789 5790Configuration headers: 5791$config_headers 5792 5793Report bugs to <bug-autoconf@gnu.org>." 5794_ACEOF 5795 5796cat >>$CONFIG_STATUS <<_ACEOF 5797ac_cs_version="\\ 5798fixincludes config.status 5799configured by $0, generated by GNU Autoconf 2.59, 5800 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5801 5802Copyright (C) 2003 Free Software Foundation, Inc. 5803This config.status script is free software; the Free Software Foundation 5804gives unlimited permission to copy, distribute and modify it." 5805srcdir=$srcdir 5806_ACEOF 5807 5808cat >>$CONFIG_STATUS <<\_ACEOF 5809# If no file are specified by the user, then we need to provide default 5810# value. By we need to know if files were specified by the user. 5811ac_need_defaults=: 5812while test $# != 0 5813do 5814 case $1 in 5815 --*=*) 5816 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5817 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5818 ac_shift=: 5819 ;; 5820 -*) 5821 ac_option=$1 5822 ac_optarg=$2 5823 ac_shift=shift 5824 ;; 5825 *) # This is not an option, so the user has probably given explicit 5826 # arguments. 5827 ac_option=$1 5828 ac_need_defaults=false;; 5829 esac 5830 5831 case $ac_option in 5832 # Handling of the options. 5833_ACEOF 5834cat >>$CONFIG_STATUS <<\_ACEOF 5835 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5836 ac_cs_recheck=: ;; 5837 --version | --vers* | -V ) 5838 echo "$ac_cs_version"; exit 0 ;; 5839 --he | --h) 5840 # Conflict between --help and --header 5841 { { echo "$as_me:$LINENO: error: ambiguous option: $1 5842Try \`$0 --help' for more information." >&5 5843echo "$as_me: error: ambiguous option: $1 5844Try \`$0 --help' for more information." >&2;} 5845 { (exit 1); exit 1; }; };; 5846 --help | --hel | -h ) 5847 echo "$ac_cs_usage"; exit 0 ;; 5848 --debug | --d* | -d ) 5849 debug=: ;; 5850 --file | --fil | --fi | --f ) 5851 $ac_shift 5852 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5853 ac_need_defaults=false;; 5854 --header | --heade | --head | --hea ) 5855 $ac_shift 5856 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5857 ac_need_defaults=false;; 5858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5859 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5860 ac_cs_silent=: ;; 5861 5862 # This is an error. 5863 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 5864Try \`$0 --help' for more information." >&5 5865echo "$as_me: error: unrecognized option: $1 5866Try \`$0 --help' for more information." >&2;} 5867 { (exit 1); exit 1; }; } ;; 5868 5869 *) ac_config_targets="$ac_config_targets $1" ;; 5870 5871 esac 5872 shift 5873done 5874 5875ac_configure_extra_args= 5876 5877if $ac_cs_silent; then 5878 exec 6>/dev/null 5879 ac_configure_extra_args="$ac_configure_extra_args --silent" 5880fi 5881 5882_ACEOF 5883cat >>$CONFIG_STATUS <<_ACEOF 5884if \$ac_cs_recheck; then 5885 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5886 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5887fi 5888 5889_ACEOF 5890 5891 5892 5893 5894 5895cat >>$CONFIG_STATUS <<\_ACEOF 5896for ac_config_target in $ac_config_targets 5897do 5898 case "$ac_config_target" in 5899 # Handling of arguments. 5900 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5901 "mkheaders.almost" ) CONFIG_FILES="$CONFIG_FILES mkheaders.almost:mkheaders.in" ;; 5902 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5903 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5904echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5905 { (exit 1); exit 1; }; };; 5906 esac 5907done 5908 5909# If the user did not use the arguments to specify the items to instantiate, 5910# then the envvar interface is used. Set only those that are not. 5911# We use the long form for the default assignment because of an extremely 5912# bizarre bug on SunOS 4.1.3. 5913if $ac_need_defaults; then 5914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5916fi 5917 5918# Have a temporary directory for convenience. Make it in the build tree 5919# simply because there is no reason to put it here, and in addition, 5920# creating and moving files from /tmp can sometimes cause problems. 5921# Create a temporary directory, and hook for its removal unless debugging. 5922$debug || 5923{ 5924 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5925 trap '{ (exit 1); exit 1; }' 1 2 13 15 5926} 5927 5928# Create a (secure) tmp directory for tmp files. 5929 5930{ 5931 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 5932 test -n "$tmp" && test -d "$tmp" 5933} || 5934{ 5935 tmp=./confstat$$-$RANDOM 5936 (umask 077 && mkdir $tmp) 5937} || 5938{ 5939 echo "$me: cannot create a temporary directory in ." >&2 5940 { (exit 1); exit 1; } 5941} 5942 5943_ACEOF 5944 5945cat >>$CONFIG_STATUS <<_ACEOF 5946 5947# 5948# CONFIG_FILES section. 5949# 5950 5951# No need to generate the scripts if there are no CONFIG_FILES. 5952# This happens for instance when ./config.status config.h 5953if test -n "\$CONFIG_FILES"; then 5954 # Protect against being on the right side of a sed subst in config.status. 5955 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5956 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5957s,@SHELL@,$SHELL,;t t 5958s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5959s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5960s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5961s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5962s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5963s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5964s,@exec_prefix@,$exec_prefix,;t t 5965s,@prefix@,$prefix,;t t 5966s,@program_transform_name@,$program_transform_name,;t t 5967s,@bindir@,$bindir,;t t 5968s,@sbindir@,$sbindir,;t t 5969s,@libexecdir@,$libexecdir,;t t 5970s,@datadir@,$datadir,;t t 5971s,@sysconfdir@,$sysconfdir,;t t 5972s,@sharedstatedir@,$sharedstatedir,;t t 5973s,@localstatedir@,$localstatedir,;t t 5974s,@libdir@,$libdir,;t t 5975s,@includedir@,$includedir,;t t 5976s,@oldincludedir@,$oldincludedir,;t t 5977s,@infodir@,$infodir,;t t 5978s,@mandir@,$mandir,;t t 5979s,@build_alias@,$build_alias,;t t 5980s,@host_alias@,$host_alias,;t t 5981s,@target_alias@,$target_alias,;t t 5982s,@DEFS@,$DEFS,;t t 5983s,@ECHO_C@,$ECHO_C,;t t 5984s,@ECHO_N@,$ECHO_N,;t t 5985s,@ECHO_T@,$ECHO_T,;t t 5986s,@LIBS@,$LIBS,;t t 5987s,@build@,$build,;t t 5988s,@build_cpu@,$build_cpu,;t t 5989s,@build_vendor@,$build_vendor,;t t 5990s,@build_os@,$build_os,;t t 5991s,@host@,$host,;t t 5992s,@host_cpu@,$host_cpu,;t t 5993s,@host_vendor@,$host_vendor,;t t 5994s,@host_os@,$host_os,;t t 5995s,@target@,$target,;t t 5996s,@target_cpu@,$target_cpu,;t t 5997s,@target_vendor@,$target_vendor,;t t 5998s,@target_os@,$target_os,;t t 5999s,@CC@,$CC,;t t 6000s,@CFLAGS@,$CFLAGS,;t t 6001s,@LDFLAGS@,$LDFLAGS,;t t 6002s,@CPPFLAGS@,$CPPFLAGS,;t t 6003s,@ac_ct_CC@,$ac_ct_CC,;t t 6004s,@EXEEXT@,$EXEEXT,;t t 6005s,@OBJEXT@,$OBJEXT,;t t 6006s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t 6007s,@WARN_PEDANTIC@,$WARN_PEDANTIC,;t t 6008s,@WERROR@,$WERROR,;t t 6009s,@target_noncanonical@,$target_noncanonical,;t t 6010s,@TARGET@,$TARGET,;t t 6011s,@CPP@,$CPP,;t t 6012s,@EGREP@,$EGREP,;t t 6013s,@MAINT@,$MAINT,;t t 6014s,@LIBOBJS@,$LIBOBJS,;t t 6015s,@LTLIBOBJS@,$LTLIBOBJS,;t t 6016CEOF 6017 6018_ACEOF 6019 6020 cat >>$CONFIG_STATUS <<\_ACEOF 6021 # Split the substitutions into bite-sized pieces for seds with 6022 # small command number limits, like on Digital OSF/1 and HP-UX. 6023 ac_max_sed_lines=48 6024 ac_sed_frag=1 # Number of current file. 6025 ac_beg=1 # First line for current file. 6026 ac_end=$ac_max_sed_lines # Line after last line for current file. 6027 ac_more_lines=: 6028 ac_sed_cmds= 6029 while $ac_more_lines; do 6030 if test $ac_beg -gt 1; then 6031 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 6032 else 6033 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 6034 fi 6035 if test ! -s $tmp/subs.frag; then 6036 ac_more_lines=false 6037 else 6038 # The purpose of the label and of the branching condition is to 6039 # speed up the sed processing (if there are no `@' at all, there 6040 # is no need to browse any of the substitutions). 6041 # These are the two extra sed commands mentioned above. 6042 (echo ':t 6043 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 6044 if test -z "$ac_sed_cmds"; then 6045 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 6046 else 6047 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 6048 fi 6049 ac_sed_frag=`expr $ac_sed_frag + 1` 6050 ac_beg=$ac_end 6051 ac_end=`expr $ac_end + $ac_max_sed_lines` 6052 fi 6053 done 6054 if test -z "$ac_sed_cmds"; then 6055 ac_sed_cmds=cat 6056 fi 6057fi # test -n "$CONFIG_FILES" 6058 6059_ACEOF 6060cat >>$CONFIG_STATUS <<\_ACEOF 6061for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 6062 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6063 case $ac_file in 6064 - | *:- | *:-:* ) # input from stdin 6065 cat >$tmp/stdin 6066 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6067 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6068 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6069 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6070 * ) ac_file_in=$ac_file.in ;; 6071 esac 6072 6073 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 6074 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6075$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6076 X"$ac_file" : 'X\(//\)[^/]' \| \ 6077 X"$ac_file" : 'X\(//\)$' \| \ 6078 X"$ac_file" : 'X\(/\)' \| \ 6079 . : '\(.\)' 2>/dev/null || 6080echo X"$ac_file" | 6081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6082 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6083 /^X\(\/\/\)$/{ s//\1/; q; } 6084 /^X\(\/\).*/{ s//\1/; q; } 6085 s/.*/./; q'` 6086 { if $as_mkdir_p; then 6087 mkdir -p "$ac_dir" 6088 else 6089 as_dir="$ac_dir" 6090 as_dirs= 6091 while test ! -d "$as_dir"; do 6092 as_dirs="$as_dir $as_dirs" 6093 as_dir=`(dirname "$as_dir") 2>/dev/null || 6094$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6095 X"$as_dir" : 'X\(//\)[^/]' \| \ 6096 X"$as_dir" : 'X\(//\)$' \| \ 6097 X"$as_dir" : 'X\(/\)' \| \ 6098 . : '\(.\)' 2>/dev/null || 6099echo X"$as_dir" | 6100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6101 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6102 /^X\(\/\/\)$/{ s//\1/; q; } 6103 /^X\(\/\).*/{ s//\1/; q; } 6104 s/.*/./; q'` 6105 done 6106 test ! -n "$as_dirs" || mkdir $as_dirs 6107 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6108echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6109 { (exit 1); exit 1; }; }; } 6110 6111 ac_builddir=. 6112 6113if test "$ac_dir" != .; then 6114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6115 # A "../" for each directory in $ac_dir_suffix. 6116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 6117else 6118 ac_dir_suffix= ac_top_builddir= 6119fi 6120 6121case $srcdir in 6122 .) # No --srcdir option. We are building in place. 6123 ac_srcdir=. 6124 if test -z "$ac_top_builddir"; then 6125 ac_top_srcdir=. 6126 else 6127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 6128 fi ;; 6129 [\\/]* | ?:[\\/]* ) # Absolute path. 6130 ac_srcdir=$srcdir$ac_dir_suffix; 6131 ac_top_srcdir=$srcdir ;; 6132 *) # Relative path. 6133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 6134 ac_top_srcdir=$ac_top_builddir$srcdir ;; 6135esac 6136 6137# Do not use `cd foo && pwd` to compute absolute paths, because 6138# the directories may not exist. 6139case `pwd` in 6140.) ac_abs_builddir="$ac_dir";; 6141*) 6142 case "$ac_dir" in 6143 .) ac_abs_builddir=`pwd`;; 6144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 6145 *) ac_abs_builddir=`pwd`/"$ac_dir";; 6146 esac;; 6147esac 6148case $ac_abs_builddir in 6149.) ac_abs_top_builddir=${ac_top_builddir}.;; 6150*) 6151 case ${ac_top_builddir}. in 6152 .) ac_abs_top_builddir=$ac_abs_builddir;; 6153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 6154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 6155 esac;; 6156esac 6157case $ac_abs_builddir in 6158.) ac_abs_srcdir=$ac_srcdir;; 6159*) 6160 case $ac_srcdir in 6161 .) ac_abs_srcdir=$ac_abs_builddir;; 6162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 6163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 6164 esac;; 6165esac 6166case $ac_abs_builddir in 6167.) ac_abs_top_srcdir=$ac_top_srcdir;; 6168*) 6169 case $ac_top_srcdir in 6170 .) ac_abs_top_srcdir=$ac_abs_builddir;; 6171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 6172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 6173 esac;; 6174esac 6175 6176 6177 6178 if test x"$ac_file" != x-; then 6179 { echo "$as_me:$LINENO: creating $ac_file" >&5 6180echo "$as_me: creating $ac_file" >&6;} 6181 rm -f "$ac_file" 6182 fi 6183 # Let's still pretend it is `configure' which instantiates (i.e., don't 6184 # use $as_me), people would be surprised to read: 6185 # /* config.h. Generated by config.status. */ 6186 if test x"$ac_file" = x-; then 6187 configure_input= 6188 else 6189 configure_input="$ac_file. " 6190 fi 6191 configure_input=$configure_input"Generated from `echo $ac_file_in | 6192 sed 's,.*/,,'` by configure." 6193 6194 # First look for the input files in the build tree, otherwise in the 6195 # src tree. 6196 ac_file_inputs=`IFS=: 6197 for f in $ac_file_in; do 6198 case $f in 6199 -) echo $tmp/stdin ;; 6200 [\\/$]*) 6201 # Absolute (can't be DOS-style, as IFS=:) 6202 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6203echo "$as_me: error: cannot find input file: $f" >&2;} 6204 { (exit 1); exit 1; }; } 6205 echo "$f";; 6206 *) # Relative 6207 if test -f "$f"; then 6208 # Build tree 6209 echo "$f" 6210 elif test -f "$srcdir/$f"; then 6211 # Source tree 6212 echo "$srcdir/$f" 6213 else 6214 # /dev/null tree 6215 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6216echo "$as_me: error: cannot find input file: $f" >&2;} 6217 { (exit 1); exit 1; }; } 6218 fi;; 6219 esac 6220 done` || { (exit 1); exit 1; } 6221_ACEOF 6222cat >>$CONFIG_STATUS <<_ACEOF 6223 sed "$ac_vpsub 6224$extrasub 6225_ACEOF 6226cat >>$CONFIG_STATUS <<\_ACEOF 6227:t 6228/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6229s,@configure_input@,$configure_input,;t t 6230s,@srcdir@,$ac_srcdir,;t t 6231s,@abs_srcdir@,$ac_abs_srcdir,;t t 6232s,@top_srcdir@,$ac_top_srcdir,;t t 6233s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 6234s,@builddir@,$ac_builddir,;t t 6235s,@abs_builddir@,$ac_abs_builddir,;t t 6236s,@top_builddir@,$ac_top_builddir,;t t 6237s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 6238" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 6239 rm -f $tmp/stdin 6240 if test x"$ac_file" != x-; then 6241 mv $tmp/out $ac_file 6242 else 6243 cat $tmp/out 6244 rm -f $tmp/out 6245 fi 6246 6247done 6248_ACEOF 6249cat >>$CONFIG_STATUS <<\_ACEOF 6250 6251# 6252# CONFIG_HEADER section. 6253# 6254 6255# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 6256# NAME is the cpp macro being defined and VALUE is the value it is being given. 6257# 6258# ac_d sets the value in "#define NAME VALUE" lines. 6259ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 6260ac_dB='[ ].*$,\1#\2' 6261ac_dC=' ' 6262ac_dD=',;t' 6263# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 6264ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 6265ac_uB='$,\1#\2define\3' 6266ac_uC=' ' 6267ac_uD=',;t' 6268 6269for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 6270 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 6271 case $ac_file in 6272 - | *:- | *:-:* ) # input from stdin 6273 cat >$tmp/stdin 6274 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6275 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6276 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 6277 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 6278 * ) ac_file_in=$ac_file.in ;; 6279 esac 6280 6281 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 6282echo "$as_me: creating $ac_file" >&6;} 6283 6284 # First look for the input files in the build tree, otherwise in the 6285 # src tree. 6286 ac_file_inputs=`IFS=: 6287 for f in $ac_file_in; do 6288 case $f in 6289 -) echo $tmp/stdin ;; 6290 [\\/$]*) 6291 # Absolute (can't be DOS-style, as IFS=:) 6292 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6293echo "$as_me: error: cannot find input file: $f" >&2;} 6294 { (exit 1); exit 1; }; } 6295 # Do quote $f, to prevent DOS paths from being IFS'd. 6296 echo "$f";; 6297 *) # Relative 6298 if test -f "$f"; then 6299 # Build tree 6300 echo "$f" 6301 elif test -f "$srcdir/$f"; then 6302 # Source tree 6303 echo "$srcdir/$f" 6304 else 6305 # /dev/null tree 6306 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 6307echo "$as_me: error: cannot find input file: $f" >&2;} 6308 { (exit 1); exit 1; }; } 6309 fi;; 6310 esac 6311 done` || { (exit 1); exit 1; } 6312 # Remove the trailing spaces. 6313 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 6314 6315_ACEOF 6316 6317# Transform confdefs.h into two sed scripts, `conftest.defines' and 6318# `conftest.undefs', that substitutes the proper values into 6319# config.h.in to produce config.h. The first handles `#define' 6320# templates, and the second `#undef' templates. 6321# And first: Protect against being on the right side of a sed subst in 6322# config.status. Protect against being in an unquoted here document 6323# in config.status. 6324rm -f conftest.defines conftest.undefs 6325# Using a here document instead of a string reduces the quoting nightmare. 6326# Putting comments in sed scripts is not portable. 6327# 6328# `end' is used to avoid that the second main sed command (meant for 6329# 0-ary CPP macros) applies to n-ary macro definitions. 6330# See the Autoconf documentation for `clear'. 6331cat >confdef2sed.sed <<\_ACEOF 6332s/[\\&,]/\\&/g 6333s,[\\$`],\\&,g 6334t clear 6335: clear 6336s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 6337t end 6338s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 6339: end 6340_ACEOF 6341# If some macros were called several times there might be several times 6342# the same #defines, which is useless. Nevertheless, we may not want to 6343# sort them, since we want the *last* AC-DEFINE to be honored. 6344uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 6345sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 6346rm -f confdef2sed.sed 6347 6348# This sed command replaces #undef with comments. This is necessary, for 6349# example, in the case of _POSIX_SOURCE, which is predefined and required 6350# on some systems where configure will not decide to define it. 6351cat >>conftest.undefs <<\_ACEOF 6352s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 6353_ACEOF 6354 6355# Break up conftest.defines because some shells have a limit on the size 6356# of here documents, and old seds have small limits too (100 cmds). 6357echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 6358echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 6359echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 6360echo ' :' >>$CONFIG_STATUS 6361rm -f conftest.tail 6362while grep . conftest.defines >/dev/null 6363do 6364 # Write a limited-size here document to $tmp/defines.sed. 6365 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 6366 # Speed up: don't consider the non `#define' lines. 6367 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 6368 # Work around the forget-to-reset-the-flag bug. 6369 echo 't clr' >>$CONFIG_STATUS 6370 echo ': clr' >>$CONFIG_STATUS 6371 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 6372 echo 'CEOF 6373 sed -f $tmp/defines.sed $tmp/in >$tmp/out 6374 rm -f $tmp/in 6375 mv $tmp/out $tmp/in 6376' >>$CONFIG_STATUS 6377 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 6378 rm -f conftest.defines 6379 mv conftest.tail conftest.defines 6380done 6381rm -f conftest.defines 6382echo ' fi # grep' >>$CONFIG_STATUS 6383echo >>$CONFIG_STATUS 6384 6385# Break up conftest.undefs because some shells have a limit on the size 6386# of here documents, and old seds have small limits too (100 cmds). 6387echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 6388rm -f conftest.tail 6389while grep . conftest.undefs >/dev/null 6390do 6391 # Write a limited-size here document to $tmp/undefs.sed. 6392 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 6393 # Speed up: don't consider the non `#undef' 6394 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 6395 # Work around the forget-to-reset-the-flag bug. 6396 echo 't clr' >>$CONFIG_STATUS 6397 echo ': clr' >>$CONFIG_STATUS 6398 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 6399 echo 'CEOF 6400 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 6401 rm -f $tmp/in 6402 mv $tmp/out $tmp/in 6403' >>$CONFIG_STATUS 6404 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 6405 rm -f conftest.undefs 6406 mv conftest.tail conftest.undefs 6407done 6408rm -f conftest.undefs 6409 6410cat >>$CONFIG_STATUS <<\_ACEOF 6411 # Let's still pretend it is `configure' which instantiates (i.e., don't 6412 # use $as_me), people would be surprised to read: 6413 # /* config.h. Generated by config.status. */ 6414 if test x"$ac_file" = x-; then 6415 echo "/* Generated by configure. */" >$tmp/config.h 6416 else 6417 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 6418 fi 6419 cat $tmp/in >>$tmp/config.h 6420 rm -f $tmp/in 6421 if test x"$ac_file" != x-; then 6422 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 6423 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 6424echo "$as_me: $ac_file is unchanged" >&6;} 6425 else 6426 ac_dir=`(dirname "$ac_file") 2>/dev/null || 6427$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6428 X"$ac_file" : 'X\(//\)[^/]' \| \ 6429 X"$ac_file" : 'X\(//\)$' \| \ 6430 X"$ac_file" : 'X\(/\)' \| \ 6431 . : '\(.\)' 2>/dev/null || 6432echo X"$ac_file" | 6433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6434 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6435 /^X\(\/\/\)$/{ s//\1/; q; } 6436 /^X\(\/\).*/{ s//\1/; q; } 6437 s/.*/./; q'` 6438 { if $as_mkdir_p; then 6439 mkdir -p "$ac_dir" 6440 else 6441 as_dir="$ac_dir" 6442 as_dirs= 6443 while test ! -d "$as_dir"; do 6444 as_dirs="$as_dir $as_dirs" 6445 as_dir=`(dirname "$as_dir") 2>/dev/null || 6446$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6447 X"$as_dir" : 'X\(//\)[^/]' \| \ 6448 X"$as_dir" : 'X\(//\)$' \| \ 6449 X"$as_dir" : 'X\(/\)' \| \ 6450 . : '\(.\)' 2>/dev/null || 6451echo X"$as_dir" | 6452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6453 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6454 /^X\(\/\/\)$/{ s//\1/; q; } 6455 /^X\(\/\).*/{ s//\1/; q; } 6456 s/.*/./; q'` 6457 done 6458 test ! -n "$as_dirs" || mkdir $as_dirs 6459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 6460echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 6461 { (exit 1); exit 1; }; }; } 6462 6463 rm -f $ac_file 6464 mv $tmp/config.h $ac_file 6465 fi 6466 else 6467 cat $tmp/config.h 6468 rm -f $tmp/config.h 6469 fi 6470 # Run the commands associated with the file. 6471 case $ac_file in 6472 config.h ) echo timestamp > stamp-h ;; 6473 esac 6474done 6475_ACEOF 6476 6477cat >>$CONFIG_STATUS <<\_ACEOF 6478 6479{ (exit 0); exit 0; } 6480_ACEOF 6481chmod +x $CONFIG_STATUS 6482ac_clean_files=$ac_clean_files_save 6483 6484 6485# configure is writing to config.log, and then calls config.status. 6486# config.status does its own redirection, appending to config.log. 6487# Unfortunately, on DOS this fails, as config.log is still kept open 6488# by configure, so config.status won't be able to write to it; its 6489# output is simply discarded. So we exec the FD to /dev/null, 6490# effectively closing config.log, so it can be properly (re)opened and 6491# appended to by config.status. When coming back to configure, we 6492# need to make the FD available again. 6493if test "$no_create" != yes; then 6494 ac_cs_success=: 6495 ac_config_status_args= 6496 test "$silent" = yes && 6497 ac_config_status_args="$ac_config_status_args --quiet" 6498 exec 5>/dev/null 6499 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6500 exec 5>>config.log 6501 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6502 # would make configure fail if this is the last instruction. 6503 $ac_cs_success || { (exit 1); exit 1; } 6504fi 6505 6506