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