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