1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.57 for GNU Awk 3.1.3. 4# 5# Report bugs to <bug-gawk@gnu.org>. 6# 7# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 8# Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 set -o posix 24fi 25 26# Support unset when possible. 27if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 28 as_unset=unset 29else 30 as_unset=false 31fi 32 33 34# Work around bugs in pre-3.0 UWIN ksh. 35$as_unset ENV MAIL MAILPATH 36PS1='$ ' 37PS2='> ' 38PS4='+ ' 39 40# NLS nuisances. 41for as_var in \ 42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 44 LC_TELEPHONE LC_TIME 45do 46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 47 eval $as_var=C; export $as_var 48 else 49 $as_unset $as_var 50 fi 51done 52 53# Required to use basename. 54if expr a : '\(a\)' >/dev/null 2>&1; then 55 as_expr=expr 56else 57 as_expr=false 58fi 59 60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 61 as_basename=basename 62else 63 as_basename=false 64fi 65 66 67# Name of the executable. 68as_me=`$as_basename "$0" || 69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 70 X"$0" : 'X\(//\)$' \| \ 71 X"$0" : 'X\(/\)$' \| \ 72 . : '\(.\)' 2>/dev/null || 73echo X/"$0" | 74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 75 /^X\/\(\/\/\)$/{ s//\1/; q; } 76 /^X\/\(\/\).*/{ s//\1/; q; } 77 s/.*/./; q'` 78 79 80# PATH needs CR, and LINENO needs CR and PATH. 81# Avoid depending upon Character Ranges. 82as_cr_letters='abcdefghijklmnopqrstuvwxyz' 83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 84as_cr_Letters=$as_cr_letters$as_cr_LETTERS 85as_cr_digits='0123456789' 86as_cr_alnum=$as_cr_Letters$as_cr_digits 87 88# The user is always right. 89if test "${PATH_SEPARATOR+set}" != set; then 90 echo "#! /bin/sh" >conf$$.sh 91 echo "exit 0" >>conf$$.sh 92 chmod +x conf$$.sh 93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 94 PATH_SEPARATOR=';' 95 else 96 PATH_SEPARATOR=: 97 fi 98 rm -f conf$$.sh 99fi 100 101 102 as_lineno_1=$LINENO 103 as_lineno_2=$LINENO 104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 105 test "x$as_lineno_1" != "x$as_lineno_2" && 106 test "x$as_lineno_3" = "x$as_lineno_2" || { 107 # Find who we are. Look in the path if we contain no path at all 108 # relative or not. 109 case $0 in 110 *[\\/]* ) as_myself=$0 ;; 111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 112for as_dir in $PATH 113do 114 IFS=$as_save_IFS 115 test -z "$as_dir" && as_dir=. 116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 117done 118 119 ;; 120 esac 121 # We did not find ourselves, most probably we were run as `sh COMMAND' 122 # in which case we are not to be found in the path. 123 if test "x$as_myself" = x; then 124 as_myself=$0 125 fi 126 if test ! -f "$as_myself"; then 127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 128 { (exit 1); exit 1; }; } 129 fi 130 case $CONFIG_SHELL in 131 '') 132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 134do 135 IFS=$as_save_IFS 136 test -z "$as_dir" && as_dir=. 137 for as_base in sh bash ksh sh5; do 138 case $as_dir in 139 /*) 140 if ("$as_dir/$as_base" -c ' 141 as_lineno_1=$LINENO 142 as_lineno_2=$LINENO 143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 144 test "x$as_lineno_1" != "x$as_lineno_2" && 145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 148 CONFIG_SHELL=$as_dir/$as_base 149 export CONFIG_SHELL 150 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 151 fi;; 152 esac 153 done 154done 155;; 156 esac 157 158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 159 # uniformly replaced by the line number. The first 'sed' inserts a 160 # line-number line before each line; the second 'sed' does the real 161 # work. The second script uses 'N' to pair each line-number line 162 # with the numbered line, and appends trailing '-' during 163 # substitution so that $LINENO is not a special case at line end. 164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 166 sed '=' <$as_myself | 167 sed ' 168 N 169 s,$,-, 170 : loop 171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 172 t loop 173 s,-$,, 174 s,^['$as_cr_digits']*\n,, 175 ' >$as_me.lineno && 176 chmod +x $as_me.lineno || 177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 178 { (exit 1); exit 1; }; } 179 180 # Don't try to exec as it changes $[0], causing all sort of problems 181 # (the dirname of $[0] is not the place where we might find the 182 # original and so on. Autoconf is especially sensible to this). 183 . ./$as_me.lineno 184 # Exit status is that of the last command. 185 exit 186} 187 188 189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 190 *c*,-n*) ECHO_N= ECHO_C=' 191' ECHO_T=' ' ;; 192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 194esac 195 196if expr a : '\(a\)' >/dev/null 2>&1; then 197 as_expr=expr 198else 199 as_expr=false 200fi 201 202rm -f conf$$ conf$$.exe conf$$.file 203echo >conf$$.file 204if ln -s conf$$.file conf$$ 2>/dev/null; then 205 # We could just check for DJGPP; but this test a) works b) is more generic 206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 207 if test -f conf$$.exe; then 208 # Don't use ln at all; we don't have any links 209 as_ln_s='cp -p' 210 else 211 as_ln_s='ln -s' 212 fi 213elif ln conf$$.file conf$$ 2>/dev/null; then 214 as_ln_s=ln 215else 216 as_ln_s='cp -p' 217fi 218rm -f conf$$ conf$$.exe conf$$.file 219 220if mkdir -p . 2>/dev/null; then 221 as_mkdir_p=: 222else 223 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="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="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='GNU Awk' 270PACKAGE_TARNAME='gawk' 271PACKAGE_VERSION='3.1.3' 272PACKAGE_STRING='GNU Awk 3.1.3' 273PACKAGE_BUGREPORT='bug-gawk@gnu.org' 274 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot EGREP YACC LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP RANLIB ac_ct_RANLIB U ANSI2KNR MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS SOCKET_LIBS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures GNU Awk 3.1.3 to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834Program names: 835 --program-prefix=PREFIX prepend PREFIX to installed program names 836 --program-suffix=SUFFIX append SUFFIX to installed program names 837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 838 839System types: 840 --build=BUILD configure for building on BUILD [guessed] 841 --host=HOST cross-compile to build programs to run on HOST [BUILD] 842_ACEOF 843fi 844 845if test -n "$ac_init_help"; then 846 case $ac_init_help in 847 short | recursive ) echo "Configuration of GNU Awk 3.1.3:";; 848 esac 849 cat <<\_ACEOF 850 851Optional Features: 852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 854 --enable-portals Enable /p as path prefix for portals 855 --disable-lint Disable gawk lint checking 856 --enable-switch Enable switch statements for awk programs 857 --disable-dependency-tracking Speeds up one-time builds 858 --enable-dependency-tracking Do not reject slow dependency extractors 859 --disable-largefile omit support for large files 860 --disable-nls do not use Native Language Support 861 --disable-rpath do not hardcode runtime library paths 862 863Optional Packages: 864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 866 --with-whiny-user-strftime Force use of included version of strftime for deficient systems 867 --with-gnu-ld assume the C compiler uses GNU ld default=no 868 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 869 --without-libiconv-prefix don't search for libiconv in includedir and libdir 870 --with-included-gettext use the GNU gettext library included here 871 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 872 --without-libintl-prefix don't search for libintl in includedir and libdir 873 874Some influential environment variables: 875 CC C compiler command 876 CFLAGS C compiler flags 877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 878 nonstandard directory <lib dir> 879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 880 headers in a nonstandard directory <include dir> 881 CPP C preprocessor 882 883Use these variables to override the choices made by `configure' or to help 884it to find libraries and programs with nonstandard names/locations. 885 886Report bugs to <bug-gawk@gnu.org>. 887_ACEOF 888fi 889 890if test "$ac_init_help" = "recursive"; then 891 # If there are subdirs, report their specific --help. 892 ac_popdir=`pwd` 893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 894 test -d $ac_dir || continue 895 ac_builddir=. 896 897if test "$ac_dir" != .; then 898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 899 # A "../" for each directory in $ac_dir_suffix. 900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 901else 902 ac_dir_suffix= ac_top_builddir= 903fi 904 905case $srcdir in 906 .) # No --srcdir option. We are building in place. 907 ac_srcdir=. 908 if test -z "$ac_top_builddir"; then 909 ac_top_srcdir=. 910 else 911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 912 fi ;; 913 [\\/]* | ?:[\\/]* ) # Absolute path. 914 ac_srcdir=$srcdir$ac_dir_suffix; 915 ac_top_srcdir=$srcdir ;; 916 *) # Relative path. 917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 918 ac_top_srcdir=$ac_top_builddir$srcdir ;; 919esac 920# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 921# absolute. 922ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 923ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 924ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 925ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 926 927 cd $ac_dir 928 # Check for guested configure; otherwise get Cygnus style configure. 929 if test -f $ac_srcdir/configure.gnu; then 930 echo 931 $SHELL $ac_srcdir/configure.gnu --help=recursive 932 elif test -f $ac_srcdir/configure; then 933 echo 934 $SHELL $ac_srcdir/configure --help=recursive 935 elif test -f $ac_srcdir/configure.ac || 936 test -f $ac_srcdir/configure.in; then 937 echo 938 $ac_configure --help 939 else 940 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 941 fi 942 cd $ac_popdir 943 done 944fi 945 946test -n "$ac_init_help" && exit 0 947if $ac_init_version; then 948 cat <<\_ACEOF 949GNU Awk configure 3.1.3 950generated by GNU Autoconf 2.57 951 952Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 953Free 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 GNU Awk $as_me 3.1.3, which was 965generated by GNU Autoconf 2.57. 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.* *.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 1294 1295 1296 1297 1298 1299 1300 1301# This is a hack. Different versions of install on different systems 1302# are just too different. Chuck it and use install-sh. 1303# 1304# If the user supplies $INSTALL, figure they know what they're doing. 1305# 1306# With Autoconf 2.5x, this needs to come very early on, but *after* 1307# the INIT macro. Sigh. 1308 1309if test "x$INSTALL" = "x" 1310then 1311 INSTALL="$srcdir/install-sh -c" 1312 export INSTALL 1313fi 1314 1315 1316 ac_config_headers="$ac_config_headers config.h:configh.in" 1317 1318am__api_version="1.7" 1319ac_aux_dir= 1320for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1321 if test -f $ac_dir/install-sh; then 1322 ac_aux_dir=$ac_dir 1323 ac_install_sh="$ac_aux_dir/install-sh -c" 1324 break 1325 elif test -f $ac_dir/install.sh; then 1326 ac_aux_dir=$ac_dir 1327 ac_install_sh="$ac_aux_dir/install.sh -c" 1328 break 1329 elif test -f $ac_dir/shtool; then 1330 ac_aux_dir=$ac_dir 1331 ac_install_sh="$ac_aux_dir/shtool install -c" 1332 break 1333 fi 1334done 1335if test -z "$ac_aux_dir"; then 1336 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1337echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1338 { (exit 1); exit 1; }; } 1339fi 1340ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1341ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1342ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1343 1344# Find a good install program. We prefer a C program (faster), 1345# so one script is as good as another. But avoid the broken or 1346# incompatible versions: 1347# SysV /etc/install, /usr/sbin/install 1348# SunOS /usr/etc/install 1349# IRIX /sbin/install 1350# AIX /bin/install 1351# AmigaOS /C/install, which installs bootblocks on floppy discs 1352# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1353# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1354# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1355# ./install, which can be erroneously created by make from ./install.sh. 1356echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1357echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1358if test -z "$INSTALL"; then 1359if test "${ac_cv_path_install+set}" = set; then 1360 echo $ECHO_N "(cached) $ECHO_C" >&6 1361else 1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1363for as_dir in $PATH 1364do 1365 IFS=$as_save_IFS 1366 test -z "$as_dir" && as_dir=. 1367 # Account for people who put trailing slashes in PATH elements. 1368case $as_dir/ in 1369 ./ | .// | /cC/* | \ 1370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1371 /usr/ucb/* ) ;; 1372 *) 1373 # OSF1 and SCO ODT 3.0 have their own names for install. 1374 # Don't use installbsd from OSF since it installs stuff as root 1375 # by default. 1376 for ac_prog in ginstall scoinst install; do 1377 for ac_exec_ext in '' $ac_executable_extensions; do 1378 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1379 if test $ac_prog = install && 1380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1381 # AIX install. It has an incompatible calling convention. 1382 : 1383 elif test $ac_prog = install && 1384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1385 # program-specific install script used by HP pwplus--don't use. 1386 : 1387 else 1388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1389 break 3 1390 fi 1391 fi 1392 done 1393 done 1394 ;; 1395esac 1396done 1397 1398 1399fi 1400 if test "${ac_cv_path_install+set}" = set; then 1401 INSTALL=$ac_cv_path_install 1402 else 1403 # As a last resort, use the slow shell script. We don't cache a 1404 # path for INSTALL within a source directory, because that will 1405 # break other packages using the cache if that directory is 1406 # removed, or if the path is relative. 1407 INSTALL=$ac_install_sh 1408 fi 1409fi 1410echo "$as_me:$LINENO: result: $INSTALL" >&5 1411echo "${ECHO_T}$INSTALL" >&6 1412 1413# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1414# It thinks the first close brace ends the variable substitution. 1415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1416 1417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1418 1419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1420 1421echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1422echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1423# Just in case 1424sleep 1 1425echo timestamp > conftest.file 1426# Do `set' in a subshell so we don't clobber the current shell's 1427# arguments. Must try -L first in case configure is actually a 1428# symlink; some systems play weird games with the mod time of symlinks 1429# (eg FreeBSD returns the mod time of the symlink's containing 1430# directory). 1431if ( 1432 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1433 if test "$*" = "X"; then 1434 # -L didn't work. 1435 set X `ls -t $srcdir/configure conftest.file` 1436 fi 1437 rm -f conftest.file 1438 if test "$*" != "X $srcdir/configure conftest.file" \ 1439 && test "$*" != "X conftest.file $srcdir/configure"; then 1440 1441 # If neither matched, then we have a broken ls. This can happen 1442 # if, for instance, CONFIG_SHELL is bash and it inherits a 1443 # broken ls alias from the environment. This has actually 1444 # happened. Such a system could not be considered "sane". 1445 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1446alias in your environment" >&5 1447echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1448alias in your environment" >&2;} 1449 { (exit 1); exit 1; }; } 1450 fi 1451 1452 test "$2" = conftest.file 1453 ) 1454then 1455 # Ok. 1456 : 1457else 1458 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1459Check your system clock" >&5 1460echo "$as_me: error: newly created file is older than distributed files! 1461Check your system clock" >&2;} 1462 { (exit 1); exit 1; }; } 1463fi 1464echo "$as_me:$LINENO: result: yes" >&5 1465echo "${ECHO_T}yes" >&6 1466test "$program_prefix" != NONE && 1467 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1468# Use a double $ so make ignores it. 1469test "$program_suffix" != NONE && 1470 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1471# Double any \ or $. echo might interpret backslashes. 1472# By default was `s,x,x', remove it if useless. 1473cat <<\_ACEOF >conftest.sed 1474s/[\\$]/&&/g;s/;s,x,x,$// 1475_ACEOF 1476program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1477rm conftest.sed 1478 1479 1480# expand $ac_aux_dir to an absolute path 1481am_aux_dir=`cd $ac_aux_dir && pwd` 1482 1483test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1484# Use eval to expand $SHELL 1485if eval "$MISSING --run true"; then 1486 am_missing_run="$MISSING --run " 1487else 1488 am_missing_run= 1489 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1490echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1491fi 1492 1493for ac_prog in gawk mawk nawk awk 1494do 1495 # Extract the first word of "$ac_prog", so it can be a program name with args. 1496set dummy $ac_prog; ac_word=$2 1497echo "$as_me:$LINENO: checking for $ac_word" >&5 1498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1499if test "${ac_cv_prog_AWK+set}" = set; then 1500 echo $ECHO_N "(cached) $ECHO_C" >&6 1501else 1502 if test -n "$AWK"; then 1503 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1504else 1505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1506for as_dir in $PATH 1507do 1508 IFS=$as_save_IFS 1509 test -z "$as_dir" && as_dir=. 1510 for ac_exec_ext in '' $ac_executable_extensions; do 1511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1512 ac_cv_prog_AWK="$ac_prog" 1513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1514 break 2 1515 fi 1516done 1517done 1518 1519fi 1520fi 1521AWK=$ac_cv_prog_AWK 1522if test -n "$AWK"; then 1523 echo "$as_me:$LINENO: result: $AWK" >&5 1524echo "${ECHO_T}$AWK" >&6 1525else 1526 echo "$as_me:$LINENO: result: no" >&5 1527echo "${ECHO_T}no" >&6 1528fi 1529 1530 test -n "$AWK" && break 1531done 1532 1533echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1534echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1535set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1536if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1537 echo $ECHO_N "(cached) $ECHO_C" >&6 1538else 1539 cat >conftest.make <<\_ACEOF 1540all: 1541 @echo 'ac_maketemp="$(MAKE)"' 1542_ACEOF 1543# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1544eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1545if test -n "$ac_maketemp"; then 1546 eval ac_cv_prog_make_${ac_make}_set=yes 1547else 1548 eval ac_cv_prog_make_${ac_make}_set=no 1549fi 1550rm -f conftest.make 1551fi 1552if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1553 echo "$as_me:$LINENO: result: yes" >&5 1554echo "${ECHO_T}yes" >&6 1555 SET_MAKE= 1556else 1557 echo "$as_me:$LINENO: result: no" >&5 1558echo "${ECHO_T}no" >&6 1559 SET_MAKE="MAKE=${MAKE-make}" 1560fi 1561 1562rm -rf .tst 2>/dev/null 1563mkdir .tst 2>/dev/null 1564if test -d .tst; then 1565 am__leading_dot=. 1566else 1567 am__leading_dot=_ 1568fi 1569rmdir .tst 2>/dev/null 1570 1571 # test to see if srcdir already configured 1572if test "`cd $srcdir && pwd`" != "`pwd`" && 1573 test -f $srcdir/config.status; then 1574 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1575echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1576 { (exit 1); exit 1; }; } 1577fi 1578 1579# test whether we have cygpath 1580if test -z "$CYGPATH_W"; then 1581 if (cygpath --version) >/dev/null 2>/dev/null; then 1582 CYGPATH_W='cygpath -w' 1583 else 1584 CYGPATH_W=echo 1585 fi 1586fi 1587 1588 1589# Define the identity of the package. 1590 PACKAGE=gawk 1591 VERSION=3.1.3 1592 1593 1594cat >>confdefs.h <<_ACEOF 1595#define PACKAGE "$PACKAGE" 1596_ACEOF 1597 1598 1599cat >>confdefs.h <<_ACEOF 1600#define VERSION "$VERSION" 1601_ACEOF 1602 1603# Some tools Automake needs. 1604 1605ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1606 1607 1608AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1609 1610 1611AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1612 1613 1614AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1615 1616 1617MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1618 1619 1620AMTAR=${AMTAR-"${am_missing_run}tar"} 1621 1622install_sh=${install_sh-"$am_aux_dir/install-sh"} 1623 1624# Installed binaries are usually stripped using `strip' when the user 1625# run `make install-strip'. However `strip' might not be the right 1626# tool to use in cross-compilation environments, therefore Automake 1627# will honor the `STRIP' environment variable to overrule this program. 1628if test "$cross_compiling" != no; then 1629 if test -n "$ac_tool_prefix"; then 1630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1631set dummy ${ac_tool_prefix}strip; ac_word=$2 1632echo "$as_me:$LINENO: checking for $ac_word" >&5 1633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1634if test "${ac_cv_prog_STRIP+set}" = set; then 1635 echo $ECHO_N "(cached) $ECHO_C" >&6 1636else 1637 if test -n "$STRIP"; then 1638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1639else 1640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1641for as_dir in $PATH 1642do 1643 IFS=$as_save_IFS 1644 test -z "$as_dir" && as_dir=. 1645 for ac_exec_ext in '' $ac_executable_extensions; do 1646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1647 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1649 break 2 1650 fi 1651done 1652done 1653 1654fi 1655fi 1656STRIP=$ac_cv_prog_STRIP 1657if test -n "$STRIP"; then 1658 echo "$as_me:$LINENO: result: $STRIP" >&5 1659echo "${ECHO_T}$STRIP" >&6 1660else 1661 echo "$as_me:$LINENO: result: no" >&5 1662echo "${ECHO_T}no" >&6 1663fi 1664 1665fi 1666if test -z "$ac_cv_prog_STRIP"; then 1667 ac_ct_STRIP=$STRIP 1668 # Extract the first word of "strip", so it can be a program name with args. 1669set dummy strip; ac_word=$2 1670echo "$as_me:$LINENO: checking for $ac_word" >&5 1671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1672if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1673 echo $ECHO_N "(cached) $ECHO_C" >&6 1674else 1675 if test -n "$ac_ct_STRIP"; then 1676 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1677else 1678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1679for as_dir in $PATH 1680do 1681 IFS=$as_save_IFS 1682 test -z "$as_dir" && as_dir=. 1683 for ac_exec_ext in '' $ac_executable_extensions; do 1684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1685 ac_cv_prog_ac_ct_STRIP="strip" 1686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1687 break 2 1688 fi 1689done 1690done 1691 1692 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1693fi 1694fi 1695ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1696if test -n "$ac_ct_STRIP"; then 1697 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1698echo "${ECHO_T}$ac_ct_STRIP" >&6 1699else 1700 echo "$as_me:$LINENO: result: no" >&5 1701echo "${ECHO_T}no" >&6 1702fi 1703 1704 STRIP=$ac_ct_STRIP 1705else 1706 STRIP="$ac_cv_prog_STRIP" 1707fi 1708 1709fi 1710INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1711 1712# We need awk for the "check" target. The system "awk" is bad on 1713# some platforms. 1714 1715 1716 1717 1718# Check whether --enable-portals or --disable-portals was given. 1719if test "${enable_portals+set}" = set; then 1720 enableval="$enable_portals" 1721 if test "$enableval" = yes 1722 then 1723 1724cat >>confdefs.h <<\_ACEOF 1725#define HAVE_PORTALS 1 1726_ACEOF 1727 1728 fi 1729 1730fi; 1731 1732# Check whether --with-whiny-user-strftime or --without-whiny-user-strftime was given. 1733if test "${with_whiny_user_strftime+set}" = set; then 1734 withval="$with_whiny_user_strftime" 1735 if test "$withval" = yes 1736 then 1737 1738cat >>confdefs.h <<\_ACEOF 1739#define USE_INCLUDED_STRFTIME 1 1740_ACEOF 1741 1742 fi 1743 1744fi; 1745# Check whether --enable-lint or --disable-lint was given. 1746if test "${enable_lint+set}" = set; then 1747 enableval="$enable_lint" 1748 if test "$enableval" = no 1749 then 1750 1751cat >>confdefs.h <<\_ACEOF 1752#define NO_LINT 1 1753_ACEOF 1754 1755 fi 1756 1757fi; 1758# Check whether --enable-switch or --disable-switch was given. 1759if test "${enable_switch+set}" = set; then 1760 enableval="$enable_switch" 1761 if test "$enableval" = yes 1762 then 1763 1764cat >>confdefs.h <<\_ACEOF 1765#define ALLOW_SWITCH 1 1766_ACEOF 1767 1768 fi 1769 1770fi; 1771 1772echo "$as_me:$LINENO: checking for egrep" >&5 1773echo $ECHO_N "checking for egrep... $ECHO_C" >&6 1774if test "${ac_cv_prog_egrep+set}" = set; then 1775 echo $ECHO_N "(cached) $ECHO_C" >&6 1776else 1777 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 1778 then ac_cv_prog_egrep='grep -E' 1779 else ac_cv_prog_egrep='egrep' 1780 fi 1781fi 1782echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 1783echo "${ECHO_T}$ac_cv_prog_egrep" >&6 1784 EGREP=$ac_cv_prog_egrep 1785 1786 1787for ac_prog in 'bison -y' byacc 1788do 1789 # Extract the first word of "$ac_prog", so it can be a program name with args. 1790set dummy $ac_prog; ac_word=$2 1791echo "$as_me:$LINENO: checking for $ac_word" >&5 1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1793if test "${ac_cv_prog_YACC+set}" = set; then 1794 echo $ECHO_N "(cached) $ECHO_C" >&6 1795else 1796 if test -n "$YACC"; then 1797 ac_cv_prog_YACC="$YACC" # Let the user override the test. 1798else 1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1800for as_dir in $PATH 1801do 1802 IFS=$as_save_IFS 1803 test -z "$as_dir" && as_dir=. 1804 for ac_exec_ext in '' $ac_executable_extensions; do 1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1806 ac_cv_prog_YACC="$ac_prog" 1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1808 break 2 1809 fi 1810done 1811done 1812 1813fi 1814fi 1815YACC=$ac_cv_prog_YACC 1816if test -n "$YACC"; then 1817 echo "$as_me:$LINENO: result: $YACC" >&5 1818echo "${ECHO_T}$YACC" >&6 1819else 1820 echo "$as_me:$LINENO: result: no" >&5 1821echo "${ECHO_T}no" >&6 1822fi 1823 1824 test -n "$YACC" && break 1825done 1826test -n "$YACC" || YACC="yacc" 1827 1828echo "$as_me:$LINENO: checking whether ln -s works" >&5 1829echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 1830LN_S=$as_ln_s 1831if test "$LN_S" = "ln -s"; then 1832 echo "$as_me:$LINENO: result: yes" >&5 1833echo "${ECHO_T}yes" >&6 1834else 1835 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 1836echo "${ECHO_T}no, using $LN_S" >&6 1837fi 1838 1839ac_ext=c 1840ac_cpp='$CPP $CPPFLAGS' 1841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1843ac_compiler_gnu=$ac_cv_c_compiler_gnu 1844if test -n "$ac_tool_prefix"; then 1845 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1846set dummy ${ac_tool_prefix}gcc; ac_word=$2 1847echo "$as_me:$LINENO: checking for $ac_word" >&5 1848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1849if test "${ac_cv_prog_CC+set}" = set; then 1850 echo $ECHO_N "(cached) $ECHO_C" >&6 1851else 1852 if test -n "$CC"; then 1853 ac_cv_prog_CC="$CC" # Let the user override the test. 1854else 1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1856for as_dir in $PATH 1857do 1858 IFS=$as_save_IFS 1859 test -z "$as_dir" && as_dir=. 1860 for ac_exec_ext in '' $ac_executable_extensions; do 1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1862 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1864 break 2 1865 fi 1866done 1867done 1868 1869fi 1870fi 1871CC=$ac_cv_prog_CC 1872if test -n "$CC"; then 1873 echo "$as_me:$LINENO: result: $CC" >&5 1874echo "${ECHO_T}$CC" >&6 1875else 1876 echo "$as_me:$LINENO: result: no" >&5 1877echo "${ECHO_T}no" >&6 1878fi 1879 1880fi 1881if test -z "$ac_cv_prog_CC"; then 1882 ac_ct_CC=$CC 1883 # Extract the first word of "gcc", so it can be a program name with args. 1884set dummy gcc; ac_word=$2 1885echo "$as_me:$LINENO: checking for $ac_word" >&5 1886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1887if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1888 echo $ECHO_N "(cached) $ECHO_C" >&6 1889else 1890 if test -n "$ac_ct_CC"; then 1891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1892else 1893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1894for as_dir in $PATH 1895do 1896 IFS=$as_save_IFS 1897 test -z "$as_dir" && as_dir=. 1898 for ac_exec_ext in '' $ac_executable_extensions; do 1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1900 ac_cv_prog_ac_ct_CC="gcc" 1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1902 break 2 1903 fi 1904done 1905done 1906 1907fi 1908fi 1909ac_ct_CC=$ac_cv_prog_ac_ct_CC 1910if test -n "$ac_ct_CC"; then 1911 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1912echo "${ECHO_T}$ac_ct_CC" >&6 1913else 1914 echo "$as_me:$LINENO: result: no" >&5 1915echo "${ECHO_T}no" >&6 1916fi 1917 1918 CC=$ac_ct_CC 1919else 1920 CC="$ac_cv_prog_CC" 1921fi 1922 1923if test -z "$CC"; then 1924 if test -n "$ac_tool_prefix"; then 1925 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1926set dummy ${ac_tool_prefix}cc; ac_word=$2 1927echo "$as_me:$LINENO: checking for $ac_word" >&5 1928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1929if test "${ac_cv_prog_CC+set}" = set; then 1930 echo $ECHO_N "(cached) $ECHO_C" >&6 1931else 1932 if test -n "$CC"; then 1933 ac_cv_prog_CC="$CC" # Let the user override the test. 1934else 1935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1936for as_dir in $PATH 1937do 1938 IFS=$as_save_IFS 1939 test -z "$as_dir" && as_dir=. 1940 for ac_exec_ext in '' $ac_executable_extensions; do 1941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1942 ac_cv_prog_CC="${ac_tool_prefix}cc" 1943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1944 break 2 1945 fi 1946done 1947done 1948 1949fi 1950fi 1951CC=$ac_cv_prog_CC 1952if test -n "$CC"; then 1953 echo "$as_me:$LINENO: result: $CC" >&5 1954echo "${ECHO_T}$CC" >&6 1955else 1956 echo "$as_me:$LINENO: result: no" >&5 1957echo "${ECHO_T}no" >&6 1958fi 1959 1960fi 1961if test -z "$ac_cv_prog_CC"; then 1962 ac_ct_CC=$CC 1963 # Extract the first word of "cc", so it can be a program name with args. 1964set dummy cc; ac_word=$2 1965echo "$as_me:$LINENO: checking for $ac_word" >&5 1966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1967if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1968 echo $ECHO_N "(cached) $ECHO_C" >&6 1969else 1970 if test -n "$ac_ct_CC"; then 1971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1972else 1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974for as_dir in $PATH 1975do 1976 IFS=$as_save_IFS 1977 test -z "$as_dir" && as_dir=. 1978 for ac_exec_ext in '' $ac_executable_extensions; do 1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1980 ac_cv_prog_ac_ct_CC="cc" 1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1982 break 2 1983 fi 1984done 1985done 1986 1987fi 1988fi 1989ac_ct_CC=$ac_cv_prog_ac_ct_CC 1990if test -n "$ac_ct_CC"; then 1991 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1992echo "${ECHO_T}$ac_ct_CC" >&6 1993else 1994 echo "$as_me:$LINENO: result: no" >&5 1995echo "${ECHO_T}no" >&6 1996fi 1997 1998 CC=$ac_ct_CC 1999else 2000 CC="$ac_cv_prog_CC" 2001fi 2002 2003fi 2004if test -z "$CC"; then 2005 # Extract the first word of "cc", so it can be a program name with args. 2006set dummy cc; ac_word=$2 2007echo "$as_me:$LINENO: checking for $ac_word" >&5 2008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2009if test "${ac_cv_prog_CC+set}" = set; then 2010 echo $ECHO_N "(cached) $ECHO_C" >&6 2011else 2012 if test -n "$CC"; then 2013 ac_cv_prog_CC="$CC" # Let the user override the test. 2014else 2015 ac_prog_rejected=no 2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2017for as_dir in $PATH 2018do 2019 IFS=$as_save_IFS 2020 test -z "$as_dir" && as_dir=. 2021 for ac_exec_ext in '' $ac_executable_extensions; do 2022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2023 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2024 ac_prog_rejected=yes 2025 continue 2026 fi 2027 ac_cv_prog_CC="cc" 2028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2029 break 2 2030 fi 2031done 2032done 2033 2034if test $ac_prog_rejected = yes; then 2035 # We found a bogon in the path, so make sure we never use it. 2036 set dummy $ac_cv_prog_CC 2037 shift 2038 if test $# != 0; then 2039 # We chose a different compiler from the bogus one. 2040 # However, it has the same basename, so the bogon will be chosen 2041 # first if we set CC to just the basename; use the full file name. 2042 shift 2043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2044 fi 2045fi 2046fi 2047fi 2048CC=$ac_cv_prog_CC 2049if test -n "$CC"; then 2050 echo "$as_me:$LINENO: result: $CC" >&5 2051echo "${ECHO_T}$CC" >&6 2052else 2053 echo "$as_me:$LINENO: result: no" >&5 2054echo "${ECHO_T}no" >&6 2055fi 2056 2057fi 2058if test -z "$CC"; then 2059 if test -n "$ac_tool_prefix"; then 2060 for ac_prog in cl 2061 do 2062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2063set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2064echo "$as_me:$LINENO: checking for $ac_word" >&5 2065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2066if test "${ac_cv_prog_CC+set}" = set; then 2067 echo $ECHO_N "(cached) $ECHO_C" >&6 2068else 2069 if test -n "$CC"; then 2070 ac_cv_prog_CC="$CC" # Let the user override the test. 2071else 2072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2073for as_dir in $PATH 2074do 2075 IFS=$as_save_IFS 2076 test -z "$as_dir" && as_dir=. 2077 for ac_exec_ext in '' $ac_executable_extensions; do 2078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2081 break 2 2082 fi 2083done 2084done 2085 2086fi 2087fi 2088CC=$ac_cv_prog_CC 2089if test -n "$CC"; then 2090 echo "$as_me:$LINENO: result: $CC" >&5 2091echo "${ECHO_T}$CC" >&6 2092else 2093 echo "$as_me:$LINENO: result: no" >&5 2094echo "${ECHO_T}no" >&6 2095fi 2096 2097 test -n "$CC" && break 2098 done 2099fi 2100if test -z "$CC"; then 2101 ac_ct_CC=$CC 2102 for ac_prog in cl 2103do 2104 # Extract the first word of "$ac_prog", so it can be a program name with args. 2105set dummy $ac_prog; ac_word=$2 2106echo "$as_me:$LINENO: checking for $ac_word" >&5 2107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2108if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2109 echo $ECHO_N "(cached) $ECHO_C" >&6 2110else 2111 if test -n "$ac_ct_CC"; then 2112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2113else 2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2115for as_dir in $PATH 2116do 2117 IFS=$as_save_IFS 2118 test -z "$as_dir" && as_dir=. 2119 for ac_exec_ext in '' $ac_executable_extensions; do 2120 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2121 ac_cv_prog_ac_ct_CC="$ac_prog" 2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2123 break 2 2124 fi 2125done 2126done 2127 2128fi 2129fi 2130ac_ct_CC=$ac_cv_prog_ac_ct_CC 2131if test -n "$ac_ct_CC"; then 2132 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2133echo "${ECHO_T}$ac_ct_CC" >&6 2134else 2135 echo "$as_me:$LINENO: result: no" >&5 2136echo "${ECHO_T}no" >&6 2137fi 2138 2139 test -n "$ac_ct_CC" && break 2140done 2141 2142 CC=$ac_ct_CC 2143fi 2144 2145fi 2146 2147 2148test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2149See \`config.log' for more details." >&5 2150echo "$as_me: error: no acceptable C compiler found in \$PATH 2151See \`config.log' for more details." >&2;} 2152 { (exit 1); exit 1; }; } 2153 2154# Provide some information about the compiler. 2155echo "$as_me:$LINENO:" \ 2156 "checking for C compiler version" >&5 2157ac_compiler=`set X $ac_compile; echo $2` 2158{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2159 (eval $ac_compiler --version </dev/null >&5) 2>&5 2160 ac_status=$? 2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2162 (exit $ac_status); } 2163{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2164 (eval $ac_compiler -v </dev/null >&5) 2>&5 2165 ac_status=$? 2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2167 (exit $ac_status); } 2168{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2169 (eval $ac_compiler -V </dev/null >&5) 2>&5 2170 ac_status=$? 2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2172 (exit $ac_status); } 2173 2174cat >conftest.$ac_ext <<_ACEOF 2175#line $LINENO "configure" 2176/* confdefs.h. */ 2177_ACEOF 2178cat confdefs.h >>conftest.$ac_ext 2179cat >>conftest.$ac_ext <<_ACEOF 2180/* end confdefs.h. */ 2181 2182int 2183main () 2184{ 2185 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190ac_clean_files_save=$ac_clean_files 2191ac_clean_files="$ac_clean_files a.out a.exe b.out" 2192# Try to create an executable without -o first, disregard a.out. 2193# It will help us diagnose broken compilers, and finding out an intuition 2194# of exeext. 2195echo "$as_me:$LINENO: checking for C compiler default output" >&5 2196echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 2197ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2198if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2199 (eval $ac_link_default) 2>&5 2200 ac_status=$? 2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2202 (exit $ac_status); }; then 2203 # Find the output, starting from the most likely. This scheme is 2204# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2205# resort. 2206 2207# Be careful to initialize this variable, since it used to be cached. 2208# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2209ac_cv_exeext= 2210# b.out is created by i960 compilers. 2211for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2212do 2213 test -f "$ac_file" || continue 2214 case $ac_file in 2215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2216 ;; 2217 conftest.$ac_ext ) 2218 # This is the source file. 2219 ;; 2220 [ab].out ) 2221 # We found the default executable, but exeext='' is most 2222 # certainly right. 2223 break;; 2224 *.* ) 2225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2226 # FIXME: I believe we export ac_cv_exeext for Libtool, 2227 # but it would be cool to find out if it's true. Does anybody 2228 # maintain Libtool? --akim. 2229 export ac_cv_exeext 2230 break;; 2231 * ) 2232 break;; 2233 esac 2234done 2235else 2236 echo "$as_me: failed program was:" >&5 2237sed 's/^/| /' conftest.$ac_ext >&5 2238 2239{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2240See \`config.log' for more details." >&5 2241echo "$as_me: error: C compiler cannot create executables 2242See \`config.log' for more details." >&2;} 2243 { (exit 77); exit 77; }; } 2244fi 2245 2246ac_exeext=$ac_cv_exeext 2247echo "$as_me:$LINENO: result: $ac_file" >&5 2248echo "${ECHO_T}$ac_file" >&6 2249 2250# Check the compiler produces executables we can run. If not, either 2251# the compiler is broken, or we cross compile. 2252echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2253echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2254# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2255# If not cross compiling, check that we can run a simple program. 2256if test "$cross_compiling" != yes; then 2257 if { ac_try='./$ac_file' 2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2259 (eval $ac_try) 2>&5 2260 ac_status=$? 2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 (exit $ac_status); }; }; then 2263 cross_compiling=no 2264 else 2265 if test "$cross_compiling" = maybe; then 2266 cross_compiling=yes 2267 else 2268 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2269If you meant to cross compile, use \`--host'. 2270See \`config.log' for more details." >&5 2271echo "$as_me: error: cannot run C compiled programs. 2272If you meant to cross compile, use \`--host'. 2273See \`config.log' for more details." >&2;} 2274 { (exit 1); exit 1; }; } 2275 fi 2276 fi 2277fi 2278echo "$as_me:$LINENO: result: yes" >&5 2279echo "${ECHO_T}yes" >&6 2280 2281rm -f a.out a.exe conftest$ac_cv_exeext b.out 2282ac_clean_files=$ac_clean_files_save 2283# Check the compiler produces executables we can run. If not, either 2284# the compiler is broken, or we cross compile. 2285echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2286echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2287echo "$as_me:$LINENO: result: $cross_compiling" >&5 2288echo "${ECHO_T}$cross_compiling" >&6 2289 2290echo "$as_me:$LINENO: checking for suffix of executables" >&5 2291echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2293 (eval $ac_link) 2>&5 2294 ac_status=$? 2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2296 (exit $ac_status); }; then 2297 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2298# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2299# work properly (i.e., refer to `conftest.exe'), while it won't with 2300# `rm'. 2301for ac_file in conftest.exe conftest conftest.*; do 2302 test -f "$ac_file" || continue 2303 case $ac_file in 2304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2305 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2306 export ac_cv_exeext 2307 break;; 2308 * ) break;; 2309 esac 2310done 2311else 2312 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2313See \`config.log' for more details." >&5 2314echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2315See \`config.log' for more details." >&2;} 2316 { (exit 1); exit 1; }; } 2317fi 2318 2319rm -f conftest$ac_cv_exeext 2320echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2321echo "${ECHO_T}$ac_cv_exeext" >&6 2322 2323rm -f conftest.$ac_ext 2324EXEEXT=$ac_cv_exeext 2325ac_exeext=$EXEEXT 2326echo "$as_me:$LINENO: checking for suffix of object files" >&5 2327echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2328if test "${ac_cv_objext+set}" = set; then 2329 echo $ECHO_N "(cached) $ECHO_C" >&6 2330else 2331 cat >conftest.$ac_ext <<_ACEOF 2332#line $LINENO "configure" 2333/* confdefs.h. */ 2334_ACEOF 2335cat confdefs.h >>conftest.$ac_ext 2336cat >>conftest.$ac_ext <<_ACEOF 2337/* end confdefs.h. */ 2338 2339int 2340main () 2341{ 2342 2343 ; 2344 return 0; 2345} 2346_ACEOF 2347rm -f conftest.o conftest.obj 2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2349 (eval $ac_compile) 2>&5 2350 ac_status=$? 2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2352 (exit $ac_status); }; then 2353 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2354 case $ac_file in 2355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2356 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2357 break;; 2358 esac 2359done 2360else 2361 echo "$as_me: failed program was:" >&5 2362sed 's/^/| /' conftest.$ac_ext >&5 2363 2364{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2365See \`config.log' for more details." >&5 2366echo "$as_me: error: cannot compute suffix of object files: cannot compile 2367See \`config.log' for more details." >&2;} 2368 { (exit 1); exit 1; }; } 2369fi 2370 2371rm -f conftest.$ac_cv_objext conftest.$ac_ext 2372fi 2373echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2374echo "${ECHO_T}$ac_cv_objext" >&6 2375OBJEXT=$ac_cv_objext 2376ac_objext=$OBJEXT 2377echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2378echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2379if test "${ac_cv_c_compiler_gnu+set}" = set; then 2380 echo $ECHO_N "(cached) $ECHO_C" >&6 2381else 2382 cat >conftest.$ac_ext <<_ACEOF 2383#line $LINENO "configure" 2384/* confdefs.h. */ 2385_ACEOF 2386cat confdefs.h >>conftest.$ac_ext 2387cat >>conftest.$ac_ext <<_ACEOF 2388/* end confdefs.h. */ 2389 2390int 2391main () 2392{ 2393#ifndef __GNUC__ 2394 choke me 2395#endif 2396 2397 ; 2398 return 0; 2399} 2400_ACEOF 2401rm -f conftest.$ac_objext 2402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2403 (eval $ac_compile) 2>&5 2404 ac_status=$? 2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2406 (exit $ac_status); } && 2407 { ac_try='test -s conftest.$ac_objext' 2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2409 (eval $ac_try) 2>&5 2410 ac_status=$? 2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2412 (exit $ac_status); }; }; then 2413 ac_compiler_gnu=yes 2414else 2415 echo "$as_me: failed program was:" >&5 2416sed 's/^/| /' conftest.$ac_ext >&5 2417 2418ac_compiler_gnu=no 2419fi 2420rm -f conftest.$ac_objext conftest.$ac_ext 2421ac_cv_c_compiler_gnu=$ac_compiler_gnu 2422 2423fi 2424echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2426GCC=`test $ac_compiler_gnu = yes && echo yes` 2427ac_test_CFLAGS=${CFLAGS+set} 2428ac_save_CFLAGS=$CFLAGS 2429CFLAGS="-g" 2430echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2431echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2432if test "${ac_cv_prog_cc_g+set}" = set; then 2433 echo $ECHO_N "(cached) $ECHO_C" >&6 2434else 2435 cat >conftest.$ac_ext <<_ACEOF 2436#line $LINENO "configure" 2437/* confdefs.h. */ 2438_ACEOF 2439cat confdefs.h >>conftest.$ac_ext 2440cat >>conftest.$ac_ext <<_ACEOF 2441/* end confdefs.h. */ 2442 2443int 2444main () 2445{ 2446 2447 ; 2448 return 0; 2449} 2450_ACEOF 2451rm -f conftest.$ac_objext 2452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2453 (eval $ac_compile) 2>&5 2454 ac_status=$? 2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2456 (exit $ac_status); } && 2457 { ac_try='test -s conftest.$ac_objext' 2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2459 (eval $ac_try) 2>&5 2460 ac_status=$? 2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2462 (exit $ac_status); }; }; then 2463 ac_cv_prog_cc_g=yes 2464else 2465 echo "$as_me: failed program was:" >&5 2466sed 's/^/| /' conftest.$ac_ext >&5 2467 2468ac_cv_prog_cc_g=no 2469fi 2470rm -f conftest.$ac_objext conftest.$ac_ext 2471fi 2472echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2473echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2474if test "$ac_test_CFLAGS" = set; then 2475 CFLAGS=$ac_save_CFLAGS 2476elif test $ac_cv_prog_cc_g = yes; then 2477 if test "$GCC" = yes; then 2478 CFLAGS="-g -O2" 2479 else 2480 CFLAGS="-g" 2481 fi 2482else 2483 if test "$GCC" = yes; then 2484 CFLAGS="-O2" 2485 else 2486 CFLAGS= 2487 fi 2488fi 2489echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2490echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2491if test "${ac_cv_prog_cc_stdc+set}" = set; then 2492 echo $ECHO_N "(cached) $ECHO_C" >&6 2493else 2494 ac_cv_prog_cc_stdc=no 2495ac_save_CC=$CC 2496cat >conftest.$ac_ext <<_ACEOF 2497#line $LINENO "configure" 2498/* confdefs.h. */ 2499_ACEOF 2500cat confdefs.h >>conftest.$ac_ext 2501cat >>conftest.$ac_ext <<_ACEOF 2502/* end confdefs.h. */ 2503#include <stdarg.h> 2504#include <stdio.h> 2505#include <sys/types.h> 2506#include <sys/stat.h> 2507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2508struct buf { int x; }; 2509FILE * (*rcsopen) (struct buf *, struct stat *, int); 2510static char *e (p, i) 2511 char **p; 2512 int i; 2513{ 2514 return p[i]; 2515} 2516static char *f (char * (*g) (char **, int), char **p, ...) 2517{ 2518 char *s; 2519 va_list v; 2520 va_start (v,p); 2521 s = g (p, va_arg (v,int)); 2522 va_end (v); 2523 return s; 2524} 2525int test (int i, double x); 2526struct s1 {int (*f) (int a);}; 2527struct s2 {int (*f) (double a);}; 2528int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2529int argc; 2530char **argv; 2531int 2532main () 2533{ 2534return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2535 ; 2536 return 0; 2537} 2538_ACEOF 2539# Don't try gcc -ansi; that turns off useful extensions and 2540# breaks some systems' header files. 2541# AIX -qlanglvl=ansi 2542# Ultrix and OSF/1 -std1 2543# HP-UX 10.20 and later -Ae 2544# HP-UX older versions -Aa -D_HPUX_SOURCE 2545# SVR4 -Xc -D__EXTENSIONS__ 2546for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2547do 2548 CC="$ac_save_CC $ac_arg" 2549 rm -f conftest.$ac_objext 2550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2551 (eval $ac_compile) 2>&5 2552 ac_status=$? 2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2554 (exit $ac_status); } && 2555 { ac_try='test -s conftest.$ac_objext' 2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2557 (eval $ac_try) 2>&5 2558 ac_status=$? 2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2560 (exit $ac_status); }; }; then 2561 ac_cv_prog_cc_stdc=$ac_arg 2562break 2563else 2564 echo "$as_me: failed program was:" >&5 2565sed 's/^/| /' conftest.$ac_ext >&5 2566 2567fi 2568rm -f conftest.$ac_objext 2569done 2570rm -f conftest.$ac_ext conftest.$ac_objext 2571CC=$ac_save_CC 2572 2573fi 2574 2575case "x$ac_cv_prog_cc_stdc" in 2576 x|xno) 2577 echo "$as_me:$LINENO: result: none needed" >&5 2578echo "${ECHO_T}none needed" >&6 ;; 2579 *) 2580 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2581echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2582 CC="$CC $ac_cv_prog_cc_stdc" ;; 2583esac 2584 2585# Some people use a C++ compiler to compile C. Since we use `exit', 2586# in C++ we need to declare it. In case someone uses the same compiler 2587# for both compiling C and C++ we need to have the C++ compiler decide 2588# the declaration of exit, since it's the most demanding environment. 2589cat >conftest.$ac_ext <<_ACEOF 2590#ifndef __cplusplus 2591 choke me 2592#endif 2593_ACEOF 2594rm -f conftest.$ac_objext 2595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2596 (eval $ac_compile) 2>&5 2597 ac_status=$? 2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2599 (exit $ac_status); } && 2600 { ac_try='test -s conftest.$ac_objext' 2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2602 (eval $ac_try) 2>&5 2603 ac_status=$? 2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2605 (exit $ac_status); }; }; then 2606 for ac_declaration in \ 2607 ''\ 2608 '#include <stdlib.h>' \ 2609 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2610 'extern "C" void std::exit (int); using std::exit;' \ 2611 'extern "C" void exit (int) throw ();' \ 2612 'extern "C" void exit (int);' \ 2613 'void exit (int);' 2614do 2615 cat >conftest.$ac_ext <<_ACEOF 2616#line $LINENO "configure" 2617/* confdefs.h. */ 2618_ACEOF 2619cat confdefs.h >>conftest.$ac_ext 2620cat >>conftest.$ac_ext <<_ACEOF 2621/* end confdefs.h. */ 2622#include <stdlib.h> 2623$ac_declaration 2624int 2625main () 2626{ 2627exit (42); 2628 ; 2629 return 0; 2630} 2631_ACEOF 2632rm -f conftest.$ac_objext 2633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2634 (eval $ac_compile) 2>&5 2635 ac_status=$? 2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2637 (exit $ac_status); } && 2638 { ac_try='test -s conftest.$ac_objext' 2639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2640 (eval $ac_try) 2>&5 2641 ac_status=$? 2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2643 (exit $ac_status); }; }; then 2644 : 2645else 2646 echo "$as_me: failed program was:" >&5 2647sed 's/^/| /' conftest.$ac_ext >&5 2648 2649continue 2650fi 2651rm -f conftest.$ac_objext conftest.$ac_ext 2652 cat >conftest.$ac_ext <<_ACEOF 2653#line $LINENO "configure" 2654/* confdefs.h. */ 2655_ACEOF 2656cat confdefs.h >>conftest.$ac_ext 2657cat >>conftest.$ac_ext <<_ACEOF 2658/* end confdefs.h. */ 2659$ac_declaration 2660int 2661main () 2662{ 2663exit (42); 2664 ; 2665 return 0; 2666} 2667_ACEOF 2668rm -f conftest.$ac_objext 2669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2670 (eval $ac_compile) 2>&5 2671 ac_status=$? 2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2673 (exit $ac_status); } && 2674 { ac_try='test -s conftest.$ac_objext' 2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2676 (eval $ac_try) 2>&5 2677 ac_status=$? 2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2679 (exit $ac_status); }; }; then 2680 break 2681else 2682 echo "$as_me: failed program was:" >&5 2683sed 's/^/| /' conftest.$ac_ext >&5 2684 2685fi 2686rm -f conftest.$ac_objext conftest.$ac_ext 2687done 2688rm -f conftest* 2689if test -n "$ac_declaration"; then 2690 echo '#ifdef __cplusplus' >>confdefs.h 2691 echo $ac_declaration >>confdefs.h 2692 echo '#endif' >>confdefs.h 2693fi 2694 2695else 2696 echo "$as_me: failed program was:" >&5 2697sed 's/^/| /' conftest.$ac_ext >&5 2698 2699fi 2700rm -f conftest.$ac_objext conftest.$ac_ext 2701ac_ext=c 2702ac_cpp='$CPP $CPPFLAGS' 2703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2705ac_compiler_gnu=$ac_cv_c_compiler_gnu 2706DEPDIR="${am__leading_dot}deps" 2707 2708 ac_config_commands="$ac_config_commands depfiles" 2709 2710 2711am_make=${MAKE-make} 2712cat > confinc << 'END' 2713am__doit: 2714 @echo done 2715.PHONY: am__doit 2716END 2717# If we don't find an include directive, just comment out the code. 2718echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2719echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2720am__include="#" 2721am__quote= 2722_am_result=none 2723# First try GNU make style include. 2724echo "include confinc" > confmf 2725# We grep out `Entering directory' and `Leaving directory' 2726# messages which can occur if `w' ends up in MAKEFLAGS. 2727# In particular we don't look at `^make:' because GNU make might 2728# be invoked under some other name (usually "gmake"), in which 2729# case it prints its new name instead of `make'. 2730if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2731 am__include=include 2732 am__quote= 2733 _am_result=GNU 2734fi 2735# Now try BSD make style include. 2736if test "$am__include" = "#"; then 2737 echo '.include "confinc"' > confmf 2738 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2739 am__include=.include 2740 am__quote="\"" 2741 _am_result=BSD 2742 fi 2743fi 2744 2745 2746echo "$as_me:$LINENO: result: $_am_result" >&5 2747echo "${ECHO_T}$_am_result" >&6 2748rm -f confinc confmf 2749 2750# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2751if test "${enable_dependency_tracking+set}" = set; then 2752 enableval="$enable_dependency_tracking" 2753 2754fi; 2755if test "x$enable_dependency_tracking" != xno; then 2756 am_depcomp="$ac_aux_dir/depcomp" 2757 AMDEPBACKSLASH='\' 2758fi 2759 2760 2761if test "x$enable_dependency_tracking" != xno; then 2762 AMDEP_TRUE= 2763 AMDEP_FALSE='#' 2764else 2765 AMDEP_TRUE='#' 2766 AMDEP_FALSE= 2767fi 2768 2769 2770 2771 2772depcc="$CC" am_compiler_list= 2773 2774echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2775echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2776if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2777 echo $ECHO_N "(cached) $ECHO_C" >&6 2778else 2779 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2780 # We make a subdir and do the tests there. Otherwise we can end up 2781 # making bogus files that we don't know about and never remove. For 2782 # instance it was reported that on HP-UX the gcc test will end up 2783 # making a dummy file named `D' -- because `-MD' means `put the output 2784 # in D'. 2785 mkdir conftest.dir 2786 # Copy depcomp to subdir because otherwise we won't find it if we're 2787 # using a relative directory. 2788 cp "$am_depcomp" conftest.dir 2789 cd conftest.dir 2790 2791 am_cv_CC_dependencies_compiler_type=none 2792 if test "$am_compiler_list" = ""; then 2793 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2794 fi 2795 for depmode in $am_compiler_list; do 2796 # We need to recreate these files for each test, as the compiler may 2797 # overwrite some of them when testing with obscure command lines. 2798 # This happens at least with the AIX C compiler. 2799 echo '#include "conftest.h"' > conftest.c 2800 echo 'int i;' > conftest.h 2801 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2802 2803 case $depmode in 2804 nosideeffect) 2805 # after this tag, mechanisms are not by side-effect, so they'll 2806 # only be used when explicitly requested 2807 if test "x$enable_dependency_tracking" = xyes; then 2808 continue 2809 else 2810 break 2811 fi 2812 ;; 2813 none) break ;; 2814 esac 2815 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2816 # mode. It turns out that the SunPro C++ compiler does not properly 2817 # handle `-M -o', and we need to detect this. 2818 if depmode=$depmode \ 2819 source=conftest.c object=conftest.o \ 2820 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2821 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \ 2822 >/dev/null 2>conftest.err && 2823 grep conftest.h conftest.Po > /dev/null 2>&1 && 2824 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2825 # icc doesn't choke on unknown options, it will just issue warnings 2826 # (even with -Werror). So we grep stderr for any message 2827 # that says an option was ignored. 2828 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 2829 am_cv_CC_dependencies_compiler_type=$depmode 2830 break 2831 fi 2832 fi 2833 done 2834 2835 cd .. 2836 rm -rf conftest.dir 2837else 2838 am_cv_CC_dependencies_compiler_type=none 2839fi 2840 2841fi 2842echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2843echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2844CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2845 2846 2847 2848if 2849 test "x$enable_dependency_tracking" != xno \ 2850 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 2851 am__fastdepCC_TRUE= 2852 am__fastdepCC_FALSE='#' 2853else 2854 am__fastdepCC_TRUE='#' 2855 am__fastdepCC_FALSE= 2856fi 2857 2858 2859ac_ext=c 2860ac_cpp='$CPP $CPPFLAGS' 2861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2863ac_compiler_gnu=$ac_cv_c_compiler_gnu 2864echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2865echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2866# On Suns, sometimes $CPP names a directory. 2867if test -n "$CPP" && test -d "$CPP"; then 2868 CPP= 2869fi 2870if test -z "$CPP"; then 2871 if test "${ac_cv_prog_CPP+set}" = set; then 2872 echo $ECHO_N "(cached) $ECHO_C" >&6 2873else 2874 # Double quotes because CPP needs to be expanded 2875 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2876 do 2877 ac_preproc_ok=false 2878for ac_c_preproc_warn_flag in '' yes 2879do 2880 # Use a header file that comes with gcc, so configuring glibc 2881 # with a fresh cross-compiler works. 2882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2883 # <limits.h> exists even on freestanding compilers. 2884 # On the NeXT, cc -E runs the code through the compiler's parser, 2885 # not just through cpp. "Syntax error" is here to catch this case. 2886 cat >conftest.$ac_ext <<_ACEOF 2887#line $LINENO "configure" 2888/* confdefs.h. */ 2889_ACEOF 2890cat confdefs.h >>conftest.$ac_ext 2891cat >>conftest.$ac_ext <<_ACEOF 2892/* end confdefs.h. */ 2893#ifdef __STDC__ 2894# include <limits.h> 2895#else 2896# include <assert.h> 2897#endif 2898 Syntax error 2899_ACEOF 2900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2902 ac_status=$? 2903 grep -v '^ *+' conftest.er1 >conftest.err 2904 rm -f conftest.er1 2905 cat conftest.err >&5 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2907 (exit $ac_status); } >/dev/null; then 2908 if test -s conftest.err; then 2909 ac_cpp_err=$ac_c_preproc_warn_flag 2910 else 2911 ac_cpp_err= 2912 fi 2913else 2914 ac_cpp_err=yes 2915fi 2916if test -z "$ac_cpp_err"; then 2917 : 2918else 2919 echo "$as_me: failed program was:" >&5 2920sed 's/^/| /' conftest.$ac_ext >&5 2921 2922 # Broken: fails on valid input. 2923continue 2924fi 2925rm -f conftest.err conftest.$ac_ext 2926 2927 # OK, works on sane cases. Now check whether non-existent headers 2928 # can be detected and how. 2929 cat >conftest.$ac_ext <<_ACEOF 2930#line $LINENO "configure" 2931/* confdefs.h. */ 2932_ACEOF 2933cat confdefs.h >>conftest.$ac_ext 2934cat >>conftest.$ac_ext <<_ACEOF 2935/* end confdefs.h. */ 2936#include <ac_nonexistent.h> 2937_ACEOF 2938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2940 ac_status=$? 2941 grep -v '^ *+' conftest.er1 >conftest.err 2942 rm -f conftest.er1 2943 cat conftest.err >&5 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); } >/dev/null; then 2946 if test -s conftest.err; then 2947 ac_cpp_err=$ac_c_preproc_warn_flag 2948 else 2949 ac_cpp_err= 2950 fi 2951else 2952 ac_cpp_err=yes 2953fi 2954if test -z "$ac_cpp_err"; then 2955 # Broken: success on invalid input. 2956continue 2957else 2958 echo "$as_me: failed program was:" >&5 2959sed 's/^/| /' conftest.$ac_ext >&5 2960 2961 # Passes both tests. 2962ac_preproc_ok=: 2963break 2964fi 2965rm -f conftest.err conftest.$ac_ext 2966 2967done 2968# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2969rm -f conftest.err conftest.$ac_ext 2970if $ac_preproc_ok; then 2971 break 2972fi 2973 2974 done 2975 ac_cv_prog_CPP=$CPP 2976 2977fi 2978 CPP=$ac_cv_prog_CPP 2979else 2980 ac_cv_prog_CPP=$CPP 2981fi 2982echo "$as_me:$LINENO: result: $CPP" >&5 2983echo "${ECHO_T}$CPP" >&6 2984ac_preproc_ok=false 2985for ac_c_preproc_warn_flag in '' yes 2986do 2987 # Use a header file that comes with gcc, so configuring glibc 2988 # with a fresh cross-compiler works. 2989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2990 # <limits.h> exists even on freestanding compilers. 2991 # On the NeXT, cc -E runs the code through the compiler's parser, 2992 # not just through cpp. "Syntax error" is here to catch this case. 2993 cat >conftest.$ac_ext <<_ACEOF 2994#line $LINENO "configure" 2995/* confdefs.h. */ 2996_ACEOF 2997cat confdefs.h >>conftest.$ac_ext 2998cat >>conftest.$ac_ext <<_ACEOF 2999/* end confdefs.h. */ 3000#ifdef __STDC__ 3001# include <limits.h> 3002#else 3003# include <assert.h> 3004#endif 3005 Syntax error 3006_ACEOF 3007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3008 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3009 ac_status=$? 3010 grep -v '^ *+' conftest.er1 >conftest.err 3011 rm -f conftest.er1 3012 cat conftest.err >&5 3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3014 (exit $ac_status); } >/dev/null; then 3015 if test -s conftest.err; then 3016 ac_cpp_err=$ac_c_preproc_warn_flag 3017 else 3018 ac_cpp_err= 3019 fi 3020else 3021 ac_cpp_err=yes 3022fi 3023if test -z "$ac_cpp_err"; then 3024 : 3025else 3026 echo "$as_me: failed program was:" >&5 3027sed 's/^/| /' conftest.$ac_ext >&5 3028 3029 # Broken: fails on valid input. 3030continue 3031fi 3032rm -f conftest.err conftest.$ac_ext 3033 3034 # OK, works on sane cases. Now check whether non-existent headers 3035 # can be detected and how. 3036 cat >conftest.$ac_ext <<_ACEOF 3037#line $LINENO "configure" 3038/* confdefs.h. */ 3039_ACEOF 3040cat confdefs.h >>conftest.$ac_ext 3041cat >>conftest.$ac_ext <<_ACEOF 3042/* end confdefs.h. */ 3043#include <ac_nonexistent.h> 3044_ACEOF 3045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3047 ac_status=$? 3048 grep -v '^ *+' conftest.er1 >conftest.err 3049 rm -f conftest.er1 3050 cat conftest.err >&5 3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3052 (exit $ac_status); } >/dev/null; then 3053 if test -s conftest.err; then 3054 ac_cpp_err=$ac_c_preproc_warn_flag 3055 else 3056 ac_cpp_err= 3057 fi 3058else 3059 ac_cpp_err=yes 3060fi 3061if test -z "$ac_cpp_err"; then 3062 # Broken: success on invalid input. 3063continue 3064else 3065 echo "$as_me: failed program was:" >&5 3066sed 's/^/| /' conftest.$ac_ext >&5 3067 3068 # Passes both tests. 3069ac_preproc_ok=: 3070break 3071fi 3072rm -f conftest.err conftest.$ac_ext 3073 3074done 3075# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3076rm -f conftest.err conftest.$ac_ext 3077if $ac_preproc_ok; then 3078 : 3079else 3080 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3081See \`config.log' for more details." >&5 3082echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3083See \`config.log' for more details." >&2;} 3084 { (exit 1); exit 1; }; } 3085fi 3086 3087ac_ext=c 3088ac_cpp='$CPP $CPPFLAGS' 3089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3091ac_compiler_gnu=$ac_cv_c_compiler_gnu 3092 3093if test -n "$ac_tool_prefix"; then 3094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3095set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3096echo "$as_me:$LINENO: checking for $ac_word" >&5 3097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3098if test "${ac_cv_prog_RANLIB+set}" = set; then 3099 echo $ECHO_N "(cached) $ECHO_C" >&6 3100else 3101 if test -n "$RANLIB"; then 3102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3103else 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116done 3117 3118fi 3119fi 3120RANLIB=$ac_cv_prog_RANLIB 3121if test -n "$RANLIB"; then 3122 echo "$as_me:$LINENO: result: $RANLIB" >&5 3123echo "${ECHO_T}$RANLIB" >&6 3124else 3125 echo "$as_me:$LINENO: result: no" >&5 3126echo "${ECHO_T}no" >&6 3127fi 3128 3129fi 3130if test -z "$ac_cv_prog_RANLIB"; then 3131 ac_ct_RANLIB=$RANLIB 3132 # Extract the first word of "ranlib", so it can be a program name with args. 3133set dummy ranlib; ac_word=$2 3134echo "$as_me:$LINENO: checking for $ac_word" >&5 3135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3136if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3137 echo $ECHO_N "(cached) $ECHO_C" >&6 3138else 3139 if test -n "$ac_ct_RANLIB"; then 3140 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3149 ac_cv_prog_ac_ct_RANLIB="ranlib" 3150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3151 break 2 3152 fi 3153done 3154done 3155 3156 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3157fi 3158fi 3159ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3160if test -n "$ac_ct_RANLIB"; then 3161 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3162echo "${ECHO_T}$ac_ct_RANLIB" >&6 3163else 3164 echo "$as_me:$LINENO: result: no" >&5 3165echo "${ECHO_T}no" >&6 3166fi 3167 3168 RANLIB=$ac_ct_RANLIB 3169else 3170 RANLIB="$ac_cv_prog_RANLIB" 3171fi 3172 3173 3174 3175 3176 3177# Find a good install program. We prefer a C program (faster), 3178# so one script is as good as another. But avoid the broken or 3179# incompatible versions: 3180# SysV /etc/install, /usr/sbin/install 3181# SunOS /usr/etc/install 3182# IRIX /sbin/install 3183# AIX /bin/install 3184# AmigaOS /C/install, which installs bootblocks on floppy discs 3185# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3186# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3187# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3188# ./install, which can be erroneously created by make from ./install.sh. 3189echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3190echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3191if test -z "$INSTALL"; then 3192if test "${ac_cv_path_install+set}" = set; then 3193 echo $ECHO_N "(cached) $ECHO_C" >&6 3194else 3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3196for as_dir in $PATH 3197do 3198 IFS=$as_save_IFS 3199 test -z "$as_dir" && as_dir=. 3200 # Account for people who put trailing slashes in PATH elements. 3201case $as_dir/ in 3202 ./ | .// | /cC/* | \ 3203 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3204 /usr/ucb/* ) ;; 3205 *) 3206 # OSF1 and SCO ODT 3.0 have their own names for install. 3207 # Don't use installbsd from OSF since it installs stuff as root 3208 # by default. 3209 for ac_prog in ginstall scoinst install; do 3210 for ac_exec_ext in '' $ac_executable_extensions; do 3211 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3212 if test $ac_prog = install && 3213 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3214 # AIX install. It has an incompatible calling convention. 3215 : 3216 elif test $ac_prog = install && 3217 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3218 # program-specific install script used by HP pwplus--don't use. 3219 : 3220 else 3221 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3222 break 3 3223 fi 3224 fi 3225 done 3226 done 3227 ;; 3228esac 3229done 3230 3231 3232fi 3233 if test "${ac_cv_path_install+set}" = set; then 3234 INSTALL=$ac_cv_path_install 3235 else 3236 # As a last resort, use the slow shell script. We don't cache a 3237 # path for INSTALL within a source directory, because that will 3238 # break other packages using the cache if that directory is 3239 # removed, or if the path is relative. 3240 INSTALL=$ac_install_sh 3241 fi 3242fi 3243echo "$as_me:$LINENO: result: $INSTALL" >&5 3244echo "${ECHO_T}$INSTALL" >&6 3245 3246# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3247# It thinks the first close brace ends the variable substitution. 3248test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3249 3250test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3251 3252test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3253 3254 3255echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3256echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3257set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 3258if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3259 echo $ECHO_N "(cached) $ECHO_C" >&6 3260else 3261 cat >conftest.make <<\_ACEOF 3262all: 3263 @echo 'ac_maketemp="$(MAKE)"' 3264_ACEOF 3265# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3266eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3267if test -n "$ac_maketemp"; then 3268 eval ac_cv_prog_make_${ac_make}_set=yes 3269else 3270 eval ac_cv_prog_make_${ac_make}_set=no 3271fi 3272rm -f conftest.make 3273fi 3274if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3275 echo "$as_me:$LINENO: result: yes" >&5 3276echo "${ECHO_T}yes" >&6 3277 SET_MAKE= 3278else 3279 echo "$as_me:$LINENO: result: no" >&5 3280echo "${ECHO_T}no" >&6 3281 SET_MAKE="MAKE=${MAKE-make}" 3282fi 3283 3284 3285# This is mainly for my use during testing and development. 3286# Yes, it's a bit of a hack. 3287echo "$as_me:$LINENO: checking for special development options" >&5 3288echo $ECHO_N "checking for special development options... $ECHO_C" >&6 3289if test -f $srcdir/.developing 3290then 3291 # add other debug flags as appropriate, save GAWKDEBUG for emergencies 3292 CFLAGS="$CFLAGS -DARRAYDEBUG" 3293 # turn on compiler warnings if we're doing development 3294 if test "$GCC" = yes 3295 then 3296 CFLAGS="$CFLAGS -Wall" 3297 fi 3298 echo "$as_me:$LINENO: result: yes" >&5 3299echo "${ECHO_T}yes" >&6 3300else 3301 echo "$as_me:$LINENO: result: no" >&5 3302echo "${ECHO_T}no" >&6 3303fi 3304 3305 3306 3307 3308 3309 3310echo "$as_me:$LINENO: checking for AIX" >&5 3311echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3312cat >conftest.$ac_ext <<_ACEOF 3313#line $LINENO "configure" 3314/* confdefs.h. */ 3315_ACEOF 3316cat confdefs.h >>conftest.$ac_ext 3317cat >>conftest.$ac_ext <<_ACEOF 3318/* end confdefs.h. */ 3319#ifdef _AIX 3320 yes 3321#endif 3322 3323_ACEOF 3324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3325 $EGREP "yes" >/dev/null 2>&1; then 3326 echo "$as_me:$LINENO: result: yes" >&5 3327echo "${ECHO_T}yes" >&6 3328cat >>confdefs.h <<\_ACEOF 3329#define _ALL_SOURCE 1 3330_ACEOF 3331 3332else 3333 echo "$as_me:$LINENO: result: no" >&5 3334echo "${ECHO_T}no" >&6 3335fi 3336rm -f conftest* 3337 3338 3339 3340 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 3341echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 3342if test "${ac_cv_lib_cposix_strerror+set}" = set; then 3343 echo $ECHO_N "(cached) $ECHO_C" >&6 3344else 3345 ac_check_lib_save_LIBS=$LIBS 3346LIBS="-lcposix $LIBS" 3347cat >conftest.$ac_ext <<_ACEOF 3348#line $LINENO "configure" 3349/* confdefs.h. */ 3350_ACEOF 3351cat confdefs.h >>conftest.$ac_ext 3352cat >>conftest.$ac_ext <<_ACEOF 3353/* end confdefs.h. */ 3354 3355/* Override any gcc2 internal prototype to avoid an error. */ 3356#ifdef __cplusplus 3357extern "C" 3358#endif 3359/* We use char because int might match the return type of a gcc2 3360 builtin and then its argument prototype would still apply. */ 3361char strerror (); 3362int 3363main () 3364{ 3365strerror (); 3366 ; 3367 return 0; 3368} 3369_ACEOF 3370rm -f conftest.$ac_objext conftest$ac_exeext 3371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3372 (eval $ac_link) 2>&5 3373 ac_status=$? 3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3375 (exit $ac_status); } && 3376 { ac_try='test -s conftest$ac_exeext' 3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3378 (eval $ac_try) 2>&5 3379 ac_status=$? 3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3381 (exit $ac_status); }; }; then 3382 ac_cv_lib_cposix_strerror=yes 3383else 3384 echo "$as_me: failed program was:" >&5 3385sed 's/^/| /' conftest.$ac_ext >&5 3386 3387ac_cv_lib_cposix_strerror=no 3388fi 3389rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3390LIBS=$ac_check_lib_save_LIBS 3391fi 3392echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 3393echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 3394if test $ac_cv_lib_cposix_strerror = yes; then 3395 LIBS="$LIBS -lcposix" 3396fi 3397 3398 3399 3400echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3401echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3402if test "${ac_cv_header_stdc+set}" = set; then 3403 echo $ECHO_N "(cached) $ECHO_C" >&6 3404else 3405 cat >conftest.$ac_ext <<_ACEOF 3406#line $LINENO "configure" 3407/* confdefs.h. */ 3408_ACEOF 3409cat confdefs.h >>conftest.$ac_ext 3410cat >>conftest.$ac_ext <<_ACEOF 3411/* end confdefs.h. */ 3412#include <stdlib.h> 3413#include <stdarg.h> 3414#include <string.h> 3415#include <float.h> 3416 3417int 3418main () 3419{ 3420 3421 ; 3422 return 0; 3423} 3424_ACEOF 3425rm -f conftest.$ac_objext 3426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3427 (eval $ac_compile) 2>&5 3428 ac_status=$? 3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3430 (exit $ac_status); } && 3431 { ac_try='test -s conftest.$ac_objext' 3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3433 (eval $ac_try) 2>&5 3434 ac_status=$? 3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3436 (exit $ac_status); }; }; then 3437 ac_cv_header_stdc=yes 3438else 3439 echo "$as_me: failed program was:" >&5 3440sed 's/^/| /' conftest.$ac_ext >&5 3441 3442ac_cv_header_stdc=no 3443fi 3444rm -f conftest.$ac_objext conftest.$ac_ext 3445 3446if test $ac_cv_header_stdc = yes; then 3447 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3448 cat >conftest.$ac_ext <<_ACEOF 3449#line $LINENO "configure" 3450/* confdefs.h. */ 3451_ACEOF 3452cat confdefs.h >>conftest.$ac_ext 3453cat >>conftest.$ac_ext <<_ACEOF 3454/* end confdefs.h. */ 3455#include <string.h> 3456 3457_ACEOF 3458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3459 $EGREP "memchr" >/dev/null 2>&1; then 3460 : 3461else 3462 ac_cv_header_stdc=no 3463fi 3464rm -f conftest* 3465 3466fi 3467 3468if test $ac_cv_header_stdc = yes; then 3469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3470 cat >conftest.$ac_ext <<_ACEOF 3471#line $LINENO "configure" 3472/* confdefs.h. */ 3473_ACEOF 3474cat confdefs.h >>conftest.$ac_ext 3475cat >>conftest.$ac_ext <<_ACEOF 3476/* end confdefs.h. */ 3477#include <stdlib.h> 3478 3479_ACEOF 3480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3481 $EGREP "free" >/dev/null 2>&1; then 3482 : 3483else 3484 ac_cv_header_stdc=no 3485fi 3486rm -f conftest* 3487 3488fi 3489 3490if test $ac_cv_header_stdc = yes; then 3491 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3492 if test "$cross_compiling" = yes; then 3493 : 3494else 3495 cat >conftest.$ac_ext <<_ACEOF 3496#line $LINENO "configure" 3497/* confdefs.h. */ 3498_ACEOF 3499cat confdefs.h >>conftest.$ac_ext 3500cat >>conftest.$ac_ext <<_ACEOF 3501/* end confdefs.h. */ 3502#include <ctype.h> 3503#if ((' ' & 0x0FF) == 0x020) 3504# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3505# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3506#else 3507# define ISLOWER(c) \ 3508 (('a' <= (c) && (c) <= 'i') \ 3509 || ('j' <= (c) && (c) <= 'r') \ 3510 || ('s' <= (c) && (c) <= 'z')) 3511# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3512#endif 3513 3514#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3515int 3516main () 3517{ 3518 int i; 3519 for (i = 0; i < 256; i++) 3520 if (XOR (islower (i), ISLOWER (i)) 3521 || toupper (i) != TOUPPER (i)) 3522 exit(2); 3523 exit (0); 3524} 3525_ACEOF 3526rm -f conftest$ac_exeext 3527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3528 (eval $ac_link) 2>&5 3529 ac_status=$? 3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3533 (eval $ac_try) 2>&5 3534 ac_status=$? 3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3536 (exit $ac_status); }; }; then 3537 : 3538else 3539 echo "$as_me: program exited with status $ac_status" >&5 3540echo "$as_me: failed program was:" >&5 3541sed 's/^/| /' conftest.$ac_ext >&5 3542 3543( exit $ac_status ) 3544ac_cv_header_stdc=no 3545fi 3546rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3547fi 3548fi 3549fi 3550echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3551echo "${ECHO_T}$ac_cv_header_stdc" >&6 3552if test $ac_cv_header_stdc = yes; then 3553 3554cat >>confdefs.h <<\_ACEOF 3555#define STDC_HEADERS 1 3556_ACEOF 3557 3558fi 3559 3560# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3571 inttypes.h stdint.h unistd.h 3572do 3573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3574echo "$as_me:$LINENO: checking for $ac_header" >&5 3575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3576if eval "test \"\${$as_ac_Header+set}\" = set"; then 3577 echo $ECHO_N "(cached) $ECHO_C" >&6 3578else 3579 cat >conftest.$ac_ext <<_ACEOF 3580#line $LINENO "configure" 3581/* confdefs.h. */ 3582_ACEOF 3583cat confdefs.h >>conftest.$ac_ext 3584cat >>conftest.$ac_ext <<_ACEOF 3585/* end confdefs.h. */ 3586$ac_includes_default 3587 3588#include <$ac_header> 3589_ACEOF 3590rm -f conftest.$ac_objext 3591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3592 (eval $ac_compile) 2>&5 3593 ac_status=$? 3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3595 (exit $ac_status); } && 3596 { ac_try='test -s conftest.$ac_objext' 3597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3598 (eval $ac_try) 2>&5 3599 ac_status=$? 3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3601 (exit $ac_status); }; }; then 3602 eval "$as_ac_Header=yes" 3603else 3604 echo "$as_me: failed program was:" >&5 3605sed 's/^/| /' conftest.$ac_ext >&5 3606 3607eval "$as_ac_Header=no" 3608fi 3609rm -f conftest.$ac_objext conftest.$ac_ext 3610fi 3611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3613if test `eval echo '${'$as_ac_Header'}'` = yes; then 3614 cat >>confdefs.h <<_ACEOF 3615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3616_ACEOF 3617 3618fi 3619 3620done 3621 3622 3623if test "${ac_cv_header_minix_config_h+set}" = set; then 3624 echo "$as_me:$LINENO: checking for minix/config.h" >&5 3625echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3626if test "${ac_cv_header_minix_config_h+set}" = set; then 3627 echo $ECHO_N "(cached) $ECHO_C" >&6 3628fi 3629echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3630echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3631else 3632 # Is the header compilable? 3633echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3634echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3635cat >conftest.$ac_ext <<_ACEOF 3636#line $LINENO "configure" 3637/* confdefs.h. */ 3638_ACEOF 3639cat confdefs.h >>conftest.$ac_ext 3640cat >>conftest.$ac_ext <<_ACEOF 3641/* end confdefs.h. */ 3642$ac_includes_default 3643#include <minix/config.h> 3644_ACEOF 3645rm -f conftest.$ac_objext 3646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3647 (eval $ac_compile) 2>&5 3648 ac_status=$? 3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3650 (exit $ac_status); } && 3651 { ac_try='test -s conftest.$ac_objext' 3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3653 (eval $ac_try) 2>&5 3654 ac_status=$? 3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3656 (exit $ac_status); }; }; then 3657 ac_header_compiler=yes 3658else 3659 echo "$as_me: failed program was:" >&5 3660sed 's/^/| /' conftest.$ac_ext >&5 3661 3662ac_header_compiler=no 3663fi 3664rm -f conftest.$ac_objext conftest.$ac_ext 3665echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3666echo "${ECHO_T}$ac_header_compiler" >&6 3667 3668# Is the header present? 3669echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3670echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3671cat >conftest.$ac_ext <<_ACEOF 3672#line $LINENO "configure" 3673/* confdefs.h. */ 3674_ACEOF 3675cat confdefs.h >>conftest.$ac_ext 3676cat >>conftest.$ac_ext <<_ACEOF 3677/* end confdefs.h. */ 3678#include <minix/config.h> 3679_ACEOF 3680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3682 ac_status=$? 3683 grep -v '^ *+' conftest.er1 >conftest.err 3684 rm -f conftest.er1 3685 cat conftest.err >&5 3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3687 (exit $ac_status); } >/dev/null; then 3688 if test -s conftest.err; then 3689 ac_cpp_err=$ac_c_preproc_warn_flag 3690 else 3691 ac_cpp_err= 3692 fi 3693else 3694 ac_cpp_err=yes 3695fi 3696if test -z "$ac_cpp_err"; then 3697 ac_header_preproc=yes 3698else 3699 echo "$as_me: failed program was:" >&5 3700sed 's/^/| /' conftest.$ac_ext >&5 3701 3702 ac_header_preproc=no 3703fi 3704rm -f conftest.err conftest.$ac_ext 3705echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3706echo "${ECHO_T}$ac_header_preproc" >&6 3707 3708# So? What about this header? 3709case $ac_header_compiler:$ac_header_preproc in 3710 yes:no ) 3711 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3712echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3713 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3714echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3715 ( 3716 cat <<\_ASBOX 3717## ------------------------------------ ## 3718## Report this to bug-autoconf@gnu.org. ## 3719## ------------------------------------ ## 3720_ASBOX 3721 ) | 3722 sed "s/^/$as_me: WARNING: /" >&2 3723 ;; 3724 no:yes ) 3725 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3726echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3727 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3728echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3729 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3730echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3731 ( 3732 cat <<\_ASBOX 3733## ------------------------------------ ## 3734## Report this to bug-autoconf@gnu.org. ## 3735## ------------------------------------ ## 3736_ASBOX 3737 ) | 3738 sed "s/^/$as_me: WARNING: /" >&2 3739 ;; 3740esac 3741echo "$as_me:$LINENO: checking for minix/config.h" >&5 3742echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3743if test "${ac_cv_header_minix_config_h+set}" = set; then 3744 echo $ECHO_N "(cached) $ECHO_C" >&6 3745else 3746 ac_cv_header_minix_config_h=$ac_header_preproc 3747fi 3748echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3749echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3750 3751fi 3752if test $ac_cv_header_minix_config_h = yes; then 3753 MINIX=yes 3754else 3755 MINIX= 3756fi 3757 3758 3759if test "$MINIX" = yes; then 3760 3761cat >>confdefs.h <<\_ACEOF 3762#define _POSIX_SOURCE 1 3763_ACEOF 3764 3765 3766cat >>confdefs.h <<\_ACEOF 3767#define _POSIX_1_SOURCE 2 3768_ACEOF 3769 3770 3771cat >>confdefs.h <<\_ACEOF 3772#define _MINIX 1 3773_ACEOF 3774 3775fi 3776 3777# Check whether --enable-largefile or --disable-largefile was given. 3778if test "${enable_largefile+set}" = set; then 3779 enableval="$enable_largefile" 3780 3781fi; 3782if test "$enable_largefile" != no; then 3783 3784 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 3785echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 3786if test "${ac_cv_sys_largefile_CC+set}" = set; then 3787 echo $ECHO_N "(cached) $ECHO_C" >&6 3788else 3789 ac_cv_sys_largefile_CC=no 3790 if test "$GCC" != yes; then 3791 ac_save_CC=$CC 3792 while :; do 3793 # IRIX 6.2 and later do not support large files by default, 3794 # so use the C compiler's -n32 option if that helps. 3795 cat >conftest.$ac_ext <<_ACEOF 3796#line $LINENO "configure" 3797/* confdefs.h. */ 3798_ACEOF 3799cat confdefs.h >>conftest.$ac_ext 3800cat >>conftest.$ac_ext <<_ACEOF 3801/* end confdefs.h. */ 3802#include <sys/types.h> 3803 /* Check that off_t can represent 2**63 - 1 correctly. 3804 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3805 since some C++ compilers masquerading as C compilers 3806 incorrectly reject 9223372036854775807. */ 3807#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3809 && LARGE_OFF_T % 2147483647 == 1) 3810 ? 1 : -1]; 3811int 3812main () 3813{ 3814 3815 ; 3816 return 0; 3817} 3818_ACEOF 3819 rm -f conftest.$ac_objext 3820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3821 (eval $ac_compile) 2>&5 3822 ac_status=$? 3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3824 (exit $ac_status); } && 3825 { ac_try='test -s conftest.$ac_objext' 3826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3827 (eval $ac_try) 2>&5 3828 ac_status=$? 3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3830 (exit $ac_status); }; }; then 3831 break 3832else 3833 echo "$as_me: failed program was:" >&5 3834sed 's/^/| /' conftest.$ac_ext >&5 3835 3836fi 3837rm -f conftest.$ac_objext 3838 CC="$CC -n32" 3839 rm -f conftest.$ac_objext 3840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3841 (eval $ac_compile) 2>&5 3842 ac_status=$? 3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3844 (exit $ac_status); } && 3845 { ac_try='test -s conftest.$ac_objext' 3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3847 (eval $ac_try) 2>&5 3848 ac_status=$? 3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3850 (exit $ac_status); }; }; then 3851 ac_cv_sys_largefile_CC=' -n32'; break 3852else 3853 echo "$as_me: failed program was:" >&5 3854sed 's/^/| /' conftest.$ac_ext >&5 3855 3856fi 3857rm -f conftest.$ac_objext 3858 break 3859 done 3860 CC=$ac_save_CC 3861 rm -f conftest.$ac_ext 3862 fi 3863fi 3864echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 3865echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 3866 if test "$ac_cv_sys_largefile_CC" != no; then 3867 CC=$CC$ac_cv_sys_largefile_CC 3868 fi 3869 3870 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3871echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 3872if test "${ac_cv_sys_file_offset_bits+set}" = set; then 3873 echo $ECHO_N "(cached) $ECHO_C" >&6 3874else 3875 while :; do 3876 ac_cv_sys_file_offset_bits=no 3877 cat >conftest.$ac_ext <<_ACEOF 3878#line $LINENO "configure" 3879/* confdefs.h. */ 3880_ACEOF 3881cat confdefs.h >>conftest.$ac_ext 3882cat >>conftest.$ac_ext <<_ACEOF 3883/* end confdefs.h. */ 3884#include <sys/types.h> 3885 /* Check that off_t can represent 2**63 - 1 correctly. 3886 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3887 since some C++ compilers masquerading as C compilers 3888 incorrectly reject 9223372036854775807. */ 3889#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3891 && LARGE_OFF_T % 2147483647 == 1) 3892 ? 1 : -1]; 3893int 3894main () 3895{ 3896 3897 ; 3898 return 0; 3899} 3900_ACEOF 3901rm -f conftest.$ac_objext 3902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3903 (eval $ac_compile) 2>&5 3904 ac_status=$? 3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3906 (exit $ac_status); } && 3907 { ac_try='test -s conftest.$ac_objext' 3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3909 (eval $ac_try) 2>&5 3910 ac_status=$? 3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3912 (exit $ac_status); }; }; then 3913 break 3914else 3915 echo "$as_me: failed program was:" >&5 3916sed 's/^/| /' conftest.$ac_ext >&5 3917 3918fi 3919rm -f conftest.$ac_objext conftest.$ac_ext 3920 cat >conftest.$ac_ext <<_ACEOF 3921#line $LINENO "configure" 3922/* confdefs.h. */ 3923_ACEOF 3924cat confdefs.h >>conftest.$ac_ext 3925cat >>conftest.$ac_ext <<_ACEOF 3926/* end confdefs.h. */ 3927#define _FILE_OFFSET_BITS 64 3928#include <sys/types.h> 3929 /* Check that off_t can represent 2**63 - 1 correctly. 3930 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3931 since some C++ compilers masquerading as C compilers 3932 incorrectly reject 9223372036854775807. */ 3933#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3935 && LARGE_OFF_T % 2147483647 == 1) 3936 ? 1 : -1]; 3937int 3938main () 3939{ 3940 3941 ; 3942 return 0; 3943} 3944_ACEOF 3945rm -f conftest.$ac_objext 3946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3947 (eval $ac_compile) 2>&5 3948 ac_status=$? 3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3950 (exit $ac_status); } && 3951 { ac_try='test -s conftest.$ac_objext' 3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3953 (eval $ac_try) 2>&5 3954 ac_status=$? 3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3956 (exit $ac_status); }; }; then 3957 ac_cv_sys_file_offset_bits=64; break 3958else 3959 echo "$as_me: failed program was:" >&5 3960sed 's/^/| /' conftest.$ac_ext >&5 3961 3962fi 3963rm -f conftest.$ac_objext conftest.$ac_ext 3964 break 3965done 3966fi 3967echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 3968echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 3969if test "$ac_cv_sys_file_offset_bits" != no; then 3970 3971cat >>confdefs.h <<_ACEOF 3972#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3973_ACEOF 3974 3975fi 3976rm -f conftest* 3977 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 3978echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 3979if test "${ac_cv_sys_large_files+set}" = set; then 3980 echo $ECHO_N "(cached) $ECHO_C" >&6 3981else 3982 while :; do 3983 ac_cv_sys_large_files=no 3984 cat >conftest.$ac_ext <<_ACEOF 3985#line $LINENO "configure" 3986/* confdefs.h. */ 3987_ACEOF 3988cat confdefs.h >>conftest.$ac_ext 3989cat >>conftest.$ac_ext <<_ACEOF 3990/* end confdefs.h. */ 3991#include <sys/types.h> 3992 /* Check that off_t can represent 2**63 - 1 correctly. 3993 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3994 since some C++ compilers masquerading as C compilers 3995 incorrectly reject 9223372036854775807. */ 3996#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3998 && LARGE_OFF_T % 2147483647 == 1) 3999 ? 1 : -1]; 4000int 4001main () 4002{ 4003 4004 ; 4005 return 0; 4006} 4007_ACEOF 4008rm -f conftest.$ac_objext 4009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4010 (eval $ac_compile) 2>&5 4011 ac_status=$? 4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4013 (exit $ac_status); } && 4014 { ac_try='test -s conftest.$ac_objext' 4015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4016 (eval $ac_try) 2>&5 4017 ac_status=$? 4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4019 (exit $ac_status); }; }; then 4020 break 4021else 4022 echo "$as_me: failed program was:" >&5 4023sed 's/^/| /' conftest.$ac_ext >&5 4024 4025fi 4026rm -f conftest.$ac_objext conftest.$ac_ext 4027 cat >conftest.$ac_ext <<_ACEOF 4028#line $LINENO "configure" 4029/* confdefs.h. */ 4030_ACEOF 4031cat confdefs.h >>conftest.$ac_ext 4032cat >>conftest.$ac_ext <<_ACEOF 4033/* end confdefs.h. */ 4034#define _LARGE_FILES 1 4035#include <sys/types.h> 4036 /* Check that off_t can represent 2**63 - 1 correctly. 4037 We can't simply define LARGE_OFF_T to be 9223372036854775807, 4038 since some C++ compilers masquerading as C compilers 4039 incorrectly reject 9223372036854775807. */ 4040#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 4041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 4042 && LARGE_OFF_T % 2147483647 == 1) 4043 ? 1 : -1]; 4044int 4045main () 4046{ 4047 4048 ; 4049 return 0; 4050} 4051_ACEOF 4052rm -f conftest.$ac_objext 4053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4054 (eval $ac_compile) 2>&5 4055 ac_status=$? 4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4057 (exit $ac_status); } && 4058 { ac_try='test -s conftest.$ac_objext' 4059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4060 (eval $ac_try) 2>&5 4061 ac_status=$? 4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4063 (exit $ac_status); }; }; then 4064 ac_cv_sys_large_files=1; break 4065else 4066 echo "$as_me: failed program was:" >&5 4067sed 's/^/| /' conftest.$ac_ext >&5 4068 4069fi 4070rm -f conftest.$ac_objext conftest.$ac_ext 4071 break 4072done 4073fi 4074echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 4075echo "${ECHO_T}$ac_cv_sys_large_files" >&6 4076if test "$ac_cv_sys_large_files" != no; then 4077 4078cat >>confdefs.h <<_ACEOF 4079#define _LARGE_FILES $ac_cv_sys_large_files 4080_ACEOF 4081 4082fi 4083rm -f conftest* 4084fi 4085 4086 4087echo "$as_me:$LINENO: checking for AIX compilation hacks" >&5 4088echo $ECHO_N "checking for AIX compilation hacks... $ECHO_C" >&6 4089if test "${gawk_cv_aix_hack+set}" = set; then 4090 echo $ECHO_N "(cached) $ECHO_C" >&6 4091else 4092 4093if test -d /lpp 4094then 4095 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED=1 -DGAWK_AIX=1" 4096 gawk_cv_aix_hack=yes 4097else 4098 gawk_cv_aix_hack=no 4099fi 4100 4101fi 4102echo "$as_me:$LINENO: result: ${gawk_cv_aix_hack}" >&5 4103echo "${ECHO_T}${gawk_cv_aix_hack}" >&6 4104 4105 4106echo "$as_me:$LINENO: checking for Linux/Alpha compilation hacks" >&5 4107echo $ECHO_N "checking for Linux/Alpha compilation hacks... $ECHO_C" >&6 4108if test "${gawk_cv_linux_alpha_hack+set}" = set; then 4109 echo $ECHO_N "(cached) $ECHO_C" >&6 4110else 4111 4112if test "Linux" = "`uname`" && test "alpha" = "`uname -m`" 4113then 4114 # this isn't necessarily always true, 4115 # the vendor's compiler is also often found 4116 if test "$GCC" = yes 4117 then 4118 CFLAGS="$CFLAGS -mieee" 4119 gawk_cv_linux_alpha_hack=yes 4120 else 4121 gawk_cv_linux_alpha_hack=no 4122 fi 4123else 4124 gawk_cv_linux_alpha_hack=no 4125fi 4126 4127fi 4128echo "$as_me:$LINENO: result: ${gawk_cv_linux_alpha_hack}" >&5 4129echo "${ECHO_T}${gawk_cv_linux_alpha_hack}" >&6 4130 4131 4132if test "$ISC" = 1 # will be set by test for ISC 4133then 4134 CFLAGS="$CFLAGS -D_SYSV3" 4135fi 4136 4137 4138 4139 4140echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 4141echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 4142if test "${am_cv_prog_cc_stdc+set}" = set; then 4143 echo $ECHO_N "(cached) $ECHO_C" >&6 4144else 4145 am_cv_prog_cc_stdc=no 4146ac_save_CC="$CC" 4147# Don't try gcc -ansi; that turns off useful extensions and 4148# breaks some systems' header files. 4149# AIX -qlanglvl=ansi 4150# Ultrix and OSF/1 -std1 4151# HP-UX 10.20 and later -Ae 4152# HP-UX older versions -Aa -D_HPUX_SOURCE 4153# SVR4 -Xc -D__EXTENSIONS__ 4154for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4155do 4156 CC="$ac_save_CC $ac_arg" 4157 cat >conftest.$ac_ext <<_ACEOF 4158#line $LINENO "configure" 4159/* confdefs.h. */ 4160_ACEOF 4161cat confdefs.h >>conftest.$ac_ext 4162cat >>conftest.$ac_ext <<_ACEOF 4163/* end confdefs.h. */ 4164#include <stdarg.h> 4165#include <stdio.h> 4166#include <sys/types.h> 4167#include <sys/stat.h> 4168/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4169struct buf { int x; }; 4170FILE * (*rcsopen) (struct buf *, struct stat *, int); 4171static char *e (p, i) 4172 char **p; 4173 int i; 4174{ 4175 return p[i]; 4176} 4177static char *f (char * (*g) (char **, int), char **p, ...) 4178{ 4179 char *s; 4180 va_list v; 4181 va_start (v,p); 4182 s = g (p, va_arg (v,int)); 4183 va_end (v); 4184 return s; 4185} 4186int test (int i, double x); 4187struct s1 {int (*f) (int a);}; 4188struct s2 {int (*f) (double a);}; 4189int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4190int argc; 4191char **argv; 4192 4193int 4194main () 4195{ 4196 4197return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4198 4199 ; 4200 return 0; 4201} 4202_ACEOF 4203rm -f conftest.$ac_objext 4204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4205 (eval $ac_compile) 2>&5 4206 ac_status=$? 4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4208 (exit $ac_status); } && 4209 { ac_try='test -s conftest.$ac_objext' 4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4211 (eval $ac_try) 2>&5 4212 ac_status=$? 4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4214 (exit $ac_status); }; }; then 4215 am_cv_prog_cc_stdc="$ac_arg"; break 4216else 4217 echo "$as_me: failed program was:" >&5 4218sed 's/^/| /' conftest.$ac_ext >&5 4219 4220fi 4221rm -f conftest.$ac_objext conftest.$ac_ext 4222done 4223CC="$ac_save_CC" 4224 4225fi 4226 4227if test -z "$am_cv_prog_cc_stdc"; then 4228 echo "$as_me:$LINENO: result: none needed" >&5 4229echo "${ECHO_T}none needed" >&6 4230else 4231 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 4232echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 4233fi 4234case "x$am_cv_prog_cc_stdc" in 4235 x|xno) ;; 4236 *) CC="$CC $am_cv_prog_cc_stdc" ;; 4237esac 4238 4239 4240 4241echo "$as_me:$LINENO: checking for function prototypes" >&5 4242echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 4243if test "$am_cv_prog_cc_stdc" != no; then 4244 echo "$as_me:$LINENO: result: yes" >&5 4245echo "${ECHO_T}yes" >&6 4246 4247cat >>confdefs.h <<\_ACEOF 4248#define PROTOTYPES 1 4249_ACEOF 4250 4251 U= ANSI2KNR= 4252else 4253 echo "$as_me:$LINENO: result: no" >&5 4254echo "${ECHO_T}no" >&6 4255 U=_ ANSI2KNR=./ansi2knr 4256fi 4257# Ensure some checks needed by ansi2knr itself. 4258echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4259echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4260if test "${ac_cv_header_stdc+set}" = set; then 4261 echo $ECHO_N "(cached) $ECHO_C" >&6 4262else 4263 cat >conftest.$ac_ext <<_ACEOF 4264#line $LINENO "configure" 4265/* confdefs.h. */ 4266_ACEOF 4267cat confdefs.h >>conftest.$ac_ext 4268cat >>conftest.$ac_ext <<_ACEOF 4269/* end confdefs.h. */ 4270#include <stdlib.h> 4271#include <stdarg.h> 4272#include <string.h> 4273#include <float.h> 4274 4275int 4276main () 4277{ 4278 4279 ; 4280 return 0; 4281} 4282_ACEOF 4283rm -f conftest.$ac_objext 4284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4285 (eval $ac_compile) 2>&5 4286 ac_status=$? 4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4288 (exit $ac_status); } && 4289 { ac_try='test -s conftest.$ac_objext' 4290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4291 (eval $ac_try) 2>&5 4292 ac_status=$? 4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4294 (exit $ac_status); }; }; then 4295 ac_cv_header_stdc=yes 4296else 4297 echo "$as_me: failed program was:" >&5 4298sed 's/^/| /' conftest.$ac_ext >&5 4299 4300ac_cv_header_stdc=no 4301fi 4302rm -f conftest.$ac_objext conftest.$ac_ext 4303 4304if test $ac_cv_header_stdc = yes; then 4305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4306 cat >conftest.$ac_ext <<_ACEOF 4307#line $LINENO "configure" 4308/* confdefs.h. */ 4309_ACEOF 4310cat confdefs.h >>conftest.$ac_ext 4311cat >>conftest.$ac_ext <<_ACEOF 4312/* end confdefs.h. */ 4313#include <string.h> 4314 4315_ACEOF 4316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4317 $EGREP "memchr" >/dev/null 2>&1; then 4318 : 4319else 4320 ac_cv_header_stdc=no 4321fi 4322rm -f conftest* 4323 4324fi 4325 4326if test $ac_cv_header_stdc = yes; then 4327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4328 cat >conftest.$ac_ext <<_ACEOF 4329#line $LINENO "configure" 4330/* confdefs.h. */ 4331_ACEOF 4332cat confdefs.h >>conftest.$ac_ext 4333cat >>conftest.$ac_ext <<_ACEOF 4334/* end confdefs.h. */ 4335#include <stdlib.h> 4336 4337_ACEOF 4338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4339 $EGREP "free" >/dev/null 2>&1; then 4340 : 4341else 4342 ac_cv_header_stdc=no 4343fi 4344rm -f conftest* 4345 4346fi 4347 4348if test $ac_cv_header_stdc = yes; then 4349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4350 if test "$cross_compiling" = yes; then 4351 : 4352else 4353 cat >conftest.$ac_ext <<_ACEOF 4354#line $LINENO "configure" 4355/* confdefs.h. */ 4356_ACEOF 4357cat confdefs.h >>conftest.$ac_ext 4358cat >>conftest.$ac_ext <<_ACEOF 4359/* end confdefs.h. */ 4360#include <ctype.h> 4361#if ((' ' & 0x0FF) == 0x020) 4362# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4363# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4364#else 4365# define ISLOWER(c) \ 4366 (('a' <= (c) && (c) <= 'i') \ 4367 || ('j' <= (c) && (c) <= 'r') \ 4368 || ('s' <= (c) && (c) <= 'z')) 4369# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4370#endif 4371 4372#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4373int 4374main () 4375{ 4376 int i; 4377 for (i = 0; i < 256; i++) 4378 if (XOR (islower (i), ISLOWER (i)) 4379 || toupper (i) != TOUPPER (i)) 4380 exit(2); 4381 exit (0); 4382} 4383_ACEOF 4384rm -f conftest$ac_exeext 4385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4386 (eval $ac_link) 2>&5 4387 ac_status=$? 4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4391 (eval $ac_try) 2>&5 4392 ac_status=$? 4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4394 (exit $ac_status); }; }; then 4395 : 4396else 4397 echo "$as_me: program exited with status $ac_status" >&5 4398echo "$as_me: failed program was:" >&5 4399sed 's/^/| /' conftest.$ac_ext >&5 4400 4401( exit $ac_status ) 4402ac_cv_header_stdc=no 4403fi 4404rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4405fi 4406fi 4407fi 4408echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4409echo "${ECHO_T}$ac_cv_header_stdc" >&6 4410if test $ac_cv_header_stdc = yes; then 4411 4412cat >>confdefs.h <<\_ACEOF 4413#define STDC_HEADERS 1 4414_ACEOF 4415 4416fi 4417 4418 4419for ac_header in string.h 4420do 4421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4422if eval "test \"\${$as_ac_Header+set}\" = set"; then 4423 echo "$as_me:$LINENO: checking for $ac_header" >&5 4424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4425if eval "test \"\${$as_ac_Header+set}\" = set"; then 4426 echo $ECHO_N "(cached) $ECHO_C" >&6 4427fi 4428echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4429echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4430else 4431 # Is the header compilable? 4432echo "$as_me:$LINENO: checking $ac_header usability" >&5 4433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4434cat >conftest.$ac_ext <<_ACEOF 4435#line $LINENO "configure" 4436/* confdefs.h. */ 4437_ACEOF 4438cat confdefs.h >>conftest.$ac_ext 4439cat >>conftest.$ac_ext <<_ACEOF 4440/* end confdefs.h. */ 4441$ac_includes_default 4442#include <$ac_header> 4443_ACEOF 4444rm -f conftest.$ac_objext 4445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4446 (eval $ac_compile) 2>&5 4447 ac_status=$? 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4449 (exit $ac_status); } && 4450 { ac_try='test -s conftest.$ac_objext' 4451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4452 (eval $ac_try) 2>&5 4453 ac_status=$? 4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4455 (exit $ac_status); }; }; then 4456 ac_header_compiler=yes 4457else 4458 echo "$as_me: failed program was:" >&5 4459sed 's/^/| /' conftest.$ac_ext >&5 4460 4461ac_header_compiler=no 4462fi 4463rm -f conftest.$ac_objext conftest.$ac_ext 4464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4465echo "${ECHO_T}$ac_header_compiler" >&6 4466 4467# Is the header present? 4468echo "$as_me:$LINENO: checking $ac_header presence" >&5 4469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4470cat >conftest.$ac_ext <<_ACEOF 4471#line $LINENO "configure" 4472/* confdefs.h. */ 4473_ACEOF 4474cat confdefs.h >>conftest.$ac_ext 4475cat >>conftest.$ac_ext <<_ACEOF 4476/* end confdefs.h. */ 4477#include <$ac_header> 4478_ACEOF 4479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4481 ac_status=$? 4482 grep -v '^ *+' conftest.er1 >conftest.err 4483 rm -f conftest.er1 4484 cat conftest.err >&5 4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4486 (exit $ac_status); } >/dev/null; then 4487 if test -s conftest.err; then 4488 ac_cpp_err=$ac_c_preproc_warn_flag 4489 else 4490 ac_cpp_err= 4491 fi 4492else 4493 ac_cpp_err=yes 4494fi 4495if test -z "$ac_cpp_err"; then 4496 ac_header_preproc=yes 4497else 4498 echo "$as_me: failed program was:" >&5 4499sed 's/^/| /' conftest.$ac_ext >&5 4500 4501 ac_header_preproc=no 4502fi 4503rm -f conftest.err conftest.$ac_ext 4504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4505echo "${ECHO_T}$ac_header_preproc" >&6 4506 4507# So? What about this header? 4508case $ac_header_compiler:$ac_header_preproc in 4509 yes:no ) 4510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4514 ( 4515 cat <<\_ASBOX 4516## ------------------------------------ ## 4517## Report this to bug-autoconf@gnu.org. ## 4518## ------------------------------------ ## 4519_ASBOX 4520 ) | 4521 sed "s/^/$as_me: WARNING: /" >&2 4522 ;; 4523 no:yes ) 4524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4530 ( 4531 cat <<\_ASBOX 4532## ------------------------------------ ## 4533## Report this to bug-autoconf@gnu.org. ## 4534## ------------------------------------ ## 4535_ASBOX 4536 ) | 4537 sed "s/^/$as_me: WARNING: /" >&2 4538 ;; 4539esac 4540echo "$as_me:$LINENO: checking for $ac_header" >&5 4541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4542if eval "test \"\${$as_ac_Header+set}\" = set"; then 4543 echo $ECHO_N "(cached) $ECHO_C" >&6 4544else 4545 eval "$as_ac_Header=$ac_header_preproc" 4546fi 4547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4549 4550fi 4551if test `eval echo '${'$as_ac_Header'}'` = yes; then 4552 cat >>confdefs.h <<_ACEOF 4553#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4554_ACEOF 4555 4556fi 4557 4558done 4559 4560 4561 4562case `(uname) 2> /dev/null` in 4563*CYGWIN*) 4564 with_libiconv_prefix=no 4565 with_libintl_prefix=no 4566 ;; 4567*) 4568 ;; 4569esac 4570 4571 4572 MKINSTALLDIRS= 4573 if test -n "$ac_aux_dir"; then 4574 case "$ac_aux_dir" in 4575 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 4576 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 4577 esac 4578 fi 4579 if test -z "$MKINSTALLDIRS"; then 4580 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 4581 fi 4582 4583 4584 4585 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 4586echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 4587 # Check whether --enable-nls or --disable-nls was given. 4588if test "${enable_nls+set}" = set; then 4589 enableval="$enable_nls" 4590 USE_NLS=$enableval 4591else 4592 USE_NLS=yes 4593fi; 4594 echo "$as_me:$LINENO: result: $USE_NLS" >&5 4595echo "${ECHO_T}$USE_NLS" >&6 4596 4597 4598 4599 4600 4601 4602# Prepare PATH_SEPARATOR. 4603# The user is always right. 4604if test "${PATH_SEPARATOR+set}" != set; then 4605 echo "#! /bin/sh" >conf$$.sh 4606 echo "exit 0" >>conf$$.sh 4607 chmod +x conf$$.sh 4608 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4609 PATH_SEPARATOR=';' 4610 else 4611 PATH_SEPARATOR=: 4612 fi 4613 rm -f conf$$.sh 4614fi 4615 4616# Find out how to test for executable files. Don't use a zero-byte file, 4617# as systems may use methods other than mode bits to determine executability. 4618cat >conf$$.file <<_ASEOF 4619#! /bin/sh 4620exit 0 4621_ASEOF 4622chmod +x conf$$.file 4623if test -x conf$$.file >/dev/null 2>&1; then 4624 ac_executable_p="test -x" 4625else 4626 ac_executable_p="test -f" 4627fi 4628rm -f conf$$.file 4629 4630# Extract the first word of "msgfmt", so it can be a program name with args. 4631set dummy msgfmt; ac_word=$2 4632echo "$as_me:$LINENO: checking for $ac_word" >&5 4633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4634if test "${ac_cv_path_MSGFMT+set}" = set; then 4635 echo $ECHO_N "(cached) $ECHO_C" >&6 4636else 4637 case "$MSGFMT" in 4638 [\\/]* | ?:[\\/]*) 4639 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4640 ;; 4641 *) 4642 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4643 for ac_dir in $PATH; do 4644 IFS="$ac_save_IFS" 4645 test -z "$ac_dir" && ac_dir=. 4646 for ac_exec_ext in '' $ac_executable_extensions; do 4647 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4648 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 4649 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4650 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 4651 break 2 4652 fi 4653 fi 4654 done 4655 done 4656 IFS="$ac_save_IFS" 4657 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 4658 ;; 4659esac 4660fi 4661MSGFMT="$ac_cv_path_MSGFMT" 4662if test "$MSGFMT" != ":"; then 4663 echo "$as_me:$LINENO: result: $MSGFMT" >&5 4664echo "${ECHO_T}$MSGFMT" >&6 4665else 4666 echo "$as_me:$LINENO: result: no" >&5 4667echo "${ECHO_T}no" >&6 4668fi 4669 4670 # Extract the first word of "gmsgfmt", so it can be a program name with args. 4671set dummy gmsgfmt; ac_word=$2 4672echo "$as_me:$LINENO: checking for $ac_word" >&5 4673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4674if test "${ac_cv_path_GMSGFMT+set}" = set; then 4675 echo $ECHO_N "(cached) $ECHO_C" >&6 4676else 4677 case $GMSGFMT in 4678 [\\/]* | ?:[\\/]*) 4679 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4680 ;; 4681 *) 4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4683for as_dir in $PATH 4684do 4685 IFS=$as_save_IFS 4686 test -z "$as_dir" && as_dir=. 4687 for ac_exec_ext in '' $ac_executable_extensions; do 4688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4689 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4691 break 2 4692 fi 4693done 4694done 4695 4696 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4697 ;; 4698esac 4699fi 4700GMSGFMT=$ac_cv_path_GMSGFMT 4701 4702if test -n "$GMSGFMT"; then 4703 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 4704echo "${ECHO_T}$GMSGFMT" >&6 4705else 4706 echo "$as_me:$LINENO: result: no" >&5 4707echo "${ECHO_T}no" >&6 4708fi 4709 4710 4711 4712# Prepare PATH_SEPARATOR. 4713# The user is always right. 4714if test "${PATH_SEPARATOR+set}" != set; then 4715 echo "#! /bin/sh" >conf$$.sh 4716 echo "exit 0" >>conf$$.sh 4717 chmod +x conf$$.sh 4718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4719 PATH_SEPARATOR=';' 4720 else 4721 PATH_SEPARATOR=: 4722 fi 4723 rm -f conf$$.sh 4724fi 4725 4726# Find out how to test for executable files. Don't use a zero-byte file, 4727# as systems may use methods other than mode bits to determine executability. 4728cat >conf$$.file <<_ASEOF 4729#! /bin/sh 4730exit 0 4731_ASEOF 4732chmod +x conf$$.file 4733if test -x conf$$.file >/dev/null 2>&1; then 4734 ac_executable_p="test -x" 4735else 4736 ac_executable_p="test -f" 4737fi 4738rm -f conf$$.file 4739 4740# Extract the first word of "xgettext", so it can be a program name with args. 4741set dummy xgettext; ac_word=$2 4742echo "$as_me:$LINENO: checking for $ac_word" >&5 4743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4744if test "${ac_cv_path_XGETTEXT+set}" = set; then 4745 echo $ECHO_N "(cached) $ECHO_C" >&6 4746else 4747 case "$XGETTEXT" in 4748 [\\/]* | ?:[\\/]*) 4749 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4750 ;; 4751 *) 4752 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4753 for ac_dir in $PATH; do 4754 IFS="$ac_save_IFS" 4755 test -z "$ac_dir" && ac_dir=. 4756 for ac_exec_ext in '' $ac_executable_extensions; do 4757 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4758 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4759 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4760 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 4761 break 2 4762 fi 4763 fi 4764 done 4765 done 4766 IFS="$ac_save_IFS" 4767 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4768 ;; 4769esac 4770fi 4771XGETTEXT="$ac_cv_path_XGETTEXT" 4772if test "$XGETTEXT" != ":"; then 4773 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 4774echo "${ECHO_T}$XGETTEXT" >&6 4775else 4776 echo "$as_me:$LINENO: result: no" >&5 4777echo "${ECHO_T}no" >&6 4778fi 4779 4780 rm -f messages.po 4781 4782 4783# Prepare PATH_SEPARATOR. 4784# The user is always right. 4785if test "${PATH_SEPARATOR+set}" != set; then 4786 echo "#! /bin/sh" >conf$$.sh 4787 echo "exit 0" >>conf$$.sh 4788 chmod +x conf$$.sh 4789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4790 PATH_SEPARATOR=';' 4791 else 4792 PATH_SEPARATOR=: 4793 fi 4794 rm -f conf$$.sh 4795fi 4796 4797# Find out how to test for executable files. Don't use a zero-byte file, 4798# as systems may use methods other than mode bits to determine executability. 4799cat >conf$$.file <<_ASEOF 4800#! /bin/sh 4801exit 0 4802_ASEOF 4803chmod +x conf$$.file 4804if test -x conf$$.file >/dev/null 2>&1; then 4805 ac_executable_p="test -x" 4806else 4807 ac_executable_p="test -f" 4808fi 4809rm -f conf$$.file 4810 4811# Extract the first word of "msgmerge", so it can be a program name with args. 4812set dummy msgmerge; ac_word=$2 4813echo "$as_me:$LINENO: checking for $ac_word" >&5 4814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4815if test "${ac_cv_path_MSGMERGE+set}" = set; then 4816 echo $ECHO_N "(cached) $ECHO_C" >&6 4817else 4818 case "$MSGMERGE" in 4819 [\\/]* | ?:[\\/]*) 4820 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4821 ;; 4822 *) 4823 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4824 for ac_dir in $PATH; do 4825 IFS="$ac_save_IFS" 4826 test -z "$ac_dir" && ac_dir=. 4827 for ac_exec_ext in '' $ac_executable_extensions; do 4828 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4829 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 4830 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 4831 break 2 4832 fi 4833 fi 4834 done 4835 done 4836 IFS="$ac_save_IFS" 4837 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 4838 ;; 4839esac 4840fi 4841MSGMERGE="$ac_cv_path_MSGMERGE" 4842if test "$MSGMERGE" != ":"; then 4843 echo "$as_me:$LINENO: result: $MSGMERGE" >&5 4844echo "${ECHO_T}$MSGMERGE" >&6 4845else 4846 echo "$as_me:$LINENO: result: no" >&5 4847echo "${ECHO_T}no" >&6 4848fi 4849 4850 4851 if test "$GMSGFMT" != ":"; then 4852 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 4853 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4854 : ; 4855 else 4856 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 4857 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 4858echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 4859 GMSGFMT=":" 4860 fi 4861 fi 4862 4863 if test "$XGETTEXT" != ":"; then 4864 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4865 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4866 : ; 4867 else 4868 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 4869echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 4870 XGETTEXT=":" 4871 fi 4872 rm -f messages.po 4873 fi 4874 4875 ac_config_commands="$ac_config_commands default-1" 4876 4877 4878# Make sure we can run config.sub. 4879$ac_config_sub sun4 >/dev/null 2>&1 || 4880 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 4881echo "$as_me: error: cannot run $ac_config_sub" >&2;} 4882 { (exit 1); exit 1; }; } 4883 4884echo "$as_me:$LINENO: checking build system type" >&5 4885echo $ECHO_N "checking build system type... $ECHO_C" >&6 4886if test "${ac_cv_build+set}" = set; then 4887 echo $ECHO_N "(cached) $ECHO_C" >&6 4888else 4889 ac_cv_build_alias=$build_alias 4890test -z "$ac_cv_build_alias" && 4891 ac_cv_build_alias=`$ac_config_guess` 4892test -z "$ac_cv_build_alias" && 4893 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4894echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4895 { (exit 1); exit 1; }; } 4896ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 4897 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 4898echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 4899 { (exit 1); exit 1; }; } 4900 4901fi 4902echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4903echo "${ECHO_T}$ac_cv_build" >&6 4904build=$ac_cv_build 4905build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4906build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4907build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4908 4909 4910echo "$as_me:$LINENO: checking host system type" >&5 4911echo $ECHO_N "checking host system type... $ECHO_C" >&6 4912if test "${ac_cv_host+set}" = set; then 4913 echo $ECHO_N "(cached) $ECHO_C" >&6 4914else 4915 ac_cv_host_alias=$host_alias 4916test -z "$ac_cv_host_alias" && 4917 ac_cv_host_alias=$ac_cv_build_alias 4918ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 4919 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 4920echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 4921 { (exit 1); exit 1; }; } 4922 4923fi 4924echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4925echo "${ECHO_T}$ac_cv_host" >&6 4926host=$ac_cv_host 4927host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 4928host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 4929host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 4930 4931 4932echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4933echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4934if test "${ac_cv_c_const+set}" = set; then 4935 echo $ECHO_N "(cached) $ECHO_C" >&6 4936else 4937 cat >conftest.$ac_ext <<_ACEOF 4938#line $LINENO "configure" 4939/* confdefs.h. */ 4940_ACEOF 4941cat confdefs.h >>conftest.$ac_ext 4942cat >>conftest.$ac_ext <<_ACEOF 4943/* end confdefs.h. */ 4944 4945int 4946main () 4947{ 4948/* FIXME: Include the comments suggested by Paul. */ 4949#ifndef __cplusplus 4950 /* Ultrix mips cc rejects this. */ 4951 typedef int charset[2]; 4952 const charset x; 4953 /* SunOS 4.1.1 cc rejects this. */ 4954 char const *const *ccp; 4955 char **p; 4956 /* NEC SVR4.0.2 mips cc rejects this. */ 4957 struct point {int x, y;}; 4958 static struct point const zero = {0,0}; 4959 /* AIX XL C 1.02.0.0 rejects this. 4960 It does not let you subtract one const X* pointer from another in 4961 an arm of an if-expression whose if-part is not a constant 4962 expression */ 4963 const char *g = "string"; 4964 ccp = &g + (g ? g-g : 0); 4965 /* HPUX 7.0 cc rejects these. */ 4966 ++ccp; 4967 p = (char**) ccp; 4968 ccp = (char const *const *) p; 4969 { /* SCO 3.2v4 cc rejects this. */ 4970 char *t; 4971 char const *s = 0 ? (char *) 0 : (char const *) 0; 4972 4973 *t++ = 0; 4974 } 4975 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4976 int x[] = {25, 17}; 4977 const int *foo = &x[0]; 4978 ++foo; 4979 } 4980 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4981 typedef const int *iptr; 4982 iptr p = 0; 4983 ++p; 4984 } 4985 { /* AIX XL C 1.02.0.0 rejects this saying 4986 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4987 struct s { int j; const int *ap[3]; }; 4988 struct s *b; b->j = 5; 4989 } 4990 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4991 const int foo = 10; 4992 } 4993#endif 4994 4995 ; 4996 return 0; 4997} 4998_ACEOF 4999rm -f conftest.$ac_objext 5000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5001 (eval $ac_compile) 2>&5 5002 ac_status=$? 5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5004 (exit $ac_status); } && 5005 { ac_try='test -s conftest.$ac_objext' 5006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5007 (eval $ac_try) 2>&5 5008 ac_status=$? 5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5010 (exit $ac_status); }; }; then 5011 ac_cv_c_const=yes 5012else 5013 echo "$as_me: failed program was:" >&5 5014sed 's/^/| /' conftest.$ac_ext >&5 5015 5016ac_cv_c_const=no 5017fi 5018rm -f conftest.$ac_objext conftest.$ac_ext 5019fi 5020echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5021echo "${ECHO_T}$ac_cv_c_const" >&6 5022if test $ac_cv_c_const = no; then 5023 5024cat >>confdefs.h <<\_ACEOF 5025#define const 5026_ACEOF 5027 5028fi 5029 5030echo "$as_me:$LINENO: checking for inline" >&5 5031echo $ECHO_N "checking for inline... $ECHO_C" >&6 5032if test "${ac_cv_c_inline+set}" = set; then 5033 echo $ECHO_N "(cached) $ECHO_C" >&6 5034else 5035 ac_cv_c_inline=no 5036for ac_kw in inline __inline__ __inline; do 5037 cat >conftest.$ac_ext <<_ACEOF 5038#line $LINENO "configure" 5039/* confdefs.h. */ 5040_ACEOF 5041cat confdefs.h >>conftest.$ac_ext 5042cat >>conftest.$ac_ext <<_ACEOF 5043/* end confdefs.h. */ 5044#ifndef __cplusplus 5045typedef int foo_t; 5046static $ac_kw foo_t static_foo () {return 0; } 5047$ac_kw foo_t foo () {return 0; } 5048#endif 5049 5050_ACEOF 5051rm -f conftest.$ac_objext 5052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5053 (eval $ac_compile) 2>&5 5054 ac_status=$? 5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5056 (exit $ac_status); } && 5057 { ac_try='test -s conftest.$ac_objext' 5058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5059 (eval $ac_try) 2>&5 5060 ac_status=$? 5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5062 (exit $ac_status); }; }; then 5063 ac_cv_c_inline=$ac_kw; break 5064else 5065 echo "$as_me: failed program was:" >&5 5066sed 's/^/| /' conftest.$ac_ext >&5 5067 5068fi 5069rm -f conftest.$ac_objext conftest.$ac_ext 5070done 5071 5072fi 5073echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5074echo "${ECHO_T}$ac_cv_c_inline" >&6 5075case $ac_cv_c_inline in 5076 inline | yes) ;; 5077 no) 5078cat >>confdefs.h <<\_ACEOF 5079#define inline 5080_ACEOF 5081 ;; 5082 *) cat >>confdefs.h <<_ACEOF 5083#define inline $ac_cv_c_inline 5084_ACEOF 5085 ;; 5086esac 5087 5088echo "$as_me:$LINENO: checking for off_t" >&5 5089echo $ECHO_N "checking for off_t... $ECHO_C" >&6 5090if test "${ac_cv_type_off_t+set}" = set; then 5091 echo $ECHO_N "(cached) $ECHO_C" >&6 5092else 5093 cat >conftest.$ac_ext <<_ACEOF 5094#line $LINENO "configure" 5095/* confdefs.h. */ 5096_ACEOF 5097cat confdefs.h >>conftest.$ac_ext 5098cat >>conftest.$ac_ext <<_ACEOF 5099/* end confdefs.h. */ 5100$ac_includes_default 5101int 5102main () 5103{ 5104if ((off_t *) 0) 5105 return 0; 5106if (sizeof (off_t)) 5107 return 0; 5108 ; 5109 return 0; 5110} 5111_ACEOF 5112rm -f conftest.$ac_objext 5113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5114 (eval $ac_compile) 2>&5 5115 ac_status=$? 5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5117 (exit $ac_status); } && 5118 { ac_try='test -s conftest.$ac_objext' 5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5120 (eval $ac_try) 2>&5 5121 ac_status=$? 5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5123 (exit $ac_status); }; }; then 5124 ac_cv_type_off_t=yes 5125else 5126 echo "$as_me: failed program was:" >&5 5127sed 's/^/| /' conftest.$ac_ext >&5 5128 5129ac_cv_type_off_t=no 5130fi 5131rm -f conftest.$ac_objext conftest.$ac_ext 5132fi 5133echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 5134echo "${ECHO_T}$ac_cv_type_off_t" >&6 5135if test $ac_cv_type_off_t = yes; then 5136 : 5137else 5138 5139cat >>confdefs.h <<_ACEOF 5140#define off_t long 5141_ACEOF 5142 5143fi 5144 5145echo "$as_me:$LINENO: checking for size_t" >&5 5146echo $ECHO_N "checking for size_t... $ECHO_C" >&6 5147if test "${ac_cv_type_size_t+set}" = set; then 5148 echo $ECHO_N "(cached) $ECHO_C" >&6 5149else 5150 cat >conftest.$ac_ext <<_ACEOF 5151#line $LINENO "configure" 5152/* confdefs.h. */ 5153_ACEOF 5154cat confdefs.h >>conftest.$ac_ext 5155cat >>conftest.$ac_ext <<_ACEOF 5156/* end confdefs.h. */ 5157$ac_includes_default 5158int 5159main () 5160{ 5161if ((size_t *) 0) 5162 return 0; 5163if (sizeof (size_t)) 5164 return 0; 5165 ; 5166 return 0; 5167} 5168_ACEOF 5169rm -f conftest.$ac_objext 5170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5171 (eval $ac_compile) 2>&5 5172 ac_status=$? 5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5174 (exit $ac_status); } && 5175 { ac_try='test -s conftest.$ac_objext' 5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5177 (eval $ac_try) 2>&5 5178 ac_status=$? 5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5180 (exit $ac_status); }; }; then 5181 ac_cv_type_size_t=yes 5182else 5183 echo "$as_me: failed program was:" >&5 5184sed 's/^/| /' conftest.$ac_ext >&5 5185 5186ac_cv_type_size_t=no 5187fi 5188rm -f conftest.$ac_objext conftest.$ac_ext 5189fi 5190echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5191echo "${ECHO_T}$ac_cv_type_size_t" >&6 5192if test $ac_cv_type_size_t = yes; then 5193 : 5194else 5195 5196cat >>confdefs.h <<_ACEOF 5197#define size_t unsigned 5198_ACEOF 5199 5200fi 5201 5202# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5203# for constant arguments. Useless! 5204echo "$as_me:$LINENO: checking for working alloca.h" >&5 5205echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5206if test "${ac_cv_working_alloca_h+set}" = set; then 5207 echo $ECHO_N "(cached) $ECHO_C" >&6 5208else 5209 cat >conftest.$ac_ext <<_ACEOF 5210#line $LINENO "configure" 5211/* confdefs.h. */ 5212_ACEOF 5213cat confdefs.h >>conftest.$ac_ext 5214cat >>conftest.$ac_ext <<_ACEOF 5215/* end confdefs.h. */ 5216#include <alloca.h> 5217int 5218main () 5219{ 5220char *p = (char *) alloca (2 * sizeof (int)); 5221 ; 5222 return 0; 5223} 5224_ACEOF 5225rm -f conftest.$ac_objext conftest$ac_exeext 5226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5227 (eval $ac_link) 2>&5 5228 ac_status=$? 5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5230 (exit $ac_status); } && 5231 { ac_try='test -s conftest$ac_exeext' 5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5233 (eval $ac_try) 2>&5 5234 ac_status=$? 5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5236 (exit $ac_status); }; }; then 5237 ac_cv_working_alloca_h=yes 5238else 5239 echo "$as_me: failed program was:" >&5 5240sed 's/^/| /' conftest.$ac_ext >&5 5241 5242ac_cv_working_alloca_h=no 5243fi 5244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5245fi 5246echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5247echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5248if test $ac_cv_working_alloca_h = yes; then 5249 5250cat >>confdefs.h <<\_ACEOF 5251#define HAVE_ALLOCA_H 1 5252_ACEOF 5253 5254fi 5255 5256echo "$as_me:$LINENO: checking for alloca" >&5 5257echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5258if test "${ac_cv_func_alloca_works+set}" = set; then 5259 echo $ECHO_N "(cached) $ECHO_C" >&6 5260else 5261 cat >conftest.$ac_ext <<_ACEOF 5262#line $LINENO "configure" 5263/* confdefs.h. */ 5264_ACEOF 5265cat confdefs.h >>conftest.$ac_ext 5266cat >>conftest.$ac_ext <<_ACEOF 5267/* end confdefs.h. */ 5268#ifdef __GNUC__ 5269# define alloca __builtin_alloca 5270#else 5271# ifdef _MSC_VER 5272# include <malloc.h> 5273# define alloca _alloca 5274# else 5275# if HAVE_ALLOCA_H 5276# include <alloca.h> 5277# else 5278# ifdef _AIX 5279 #pragma alloca 5280# else 5281# ifndef alloca /* predefined by HP cc +Olibcalls */ 5282char *alloca (); 5283# endif 5284# endif 5285# endif 5286# endif 5287#endif 5288 5289int 5290main () 5291{ 5292char *p = (char *) alloca (1); 5293 ; 5294 return 0; 5295} 5296_ACEOF 5297rm -f conftest.$ac_objext conftest$ac_exeext 5298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5299 (eval $ac_link) 2>&5 5300 ac_status=$? 5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5302 (exit $ac_status); } && 5303 { ac_try='test -s conftest$ac_exeext' 5304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5305 (eval $ac_try) 2>&5 5306 ac_status=$? 5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5308 (exit $ac_status); }; }; then 5309 ac_cv_func_alloca_works=yes 5310else 5311 echo "$as_me: failed program was:" >&5 5312sed 's/^/| /' conftest.$ac_ext >&5 5313 5314ac_cv_func_alloca_works=no 5315fi 5316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5317fi 5318echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5319echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5320 5321if test $ac_cv_func_alloca_works = yes; then 5322 5323cat >>confdefs.h <<\_ACEOF 5324#define HAVE_ALLOCA 1 5325_ACEOF 5326 5327else 5328 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5329# that cause trouble. Some versions do not even contain alloca or 5330# contain a buggy version. If you still want to use their alloca, 5331# use ar to extract alloca.o from them instead of compiling alloca.c. 5332 5333ALLOCA=alloca.$ac_objext 5334 5335cat >>confdefs.h <<\_ACEOF 5336#define C_ALLOCA 1 5337_ACEOF 5338 5339 5340echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5341echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5342if test "${ac_cv_os_cray+set}" = set; then 5343 echo $ECHO_N "(cached) $ECHO_C" >&6 5344else 5345 cat >conftest.$ac_ext <<_ACEOF 5346#line $LINENO "configure" 5347/* confdefs.h. */ 5348_ACEOF 5349cat confdefs.h >>conftest.$ac_ext 5350cat >>conftest.$ac_ext <<_ACEOF 5351/* end confdefs.h. */ 5352#if defined(CRAY) && ! defined(CRAY2) 5353webecray 5354#else 5355wenotbecray 5356#endif 5357 5358_ACEOF 5359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5360 $EGREP "webecray" >/dev/null 2>&1; then 5361 ac_cv_os_cray=yes 5362else 5363 ac_cv_os_cray=no 5364fi 5365rm -f conftest* 5366 5367fi 5368echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5369echo "${ECHO_T}$ac_cv_os_cray" >&6 5370if test $ac_cv_os_cray = yes; then 5371 for ac_func in _getb67 GETB67 getb67; do 5372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5373echo "$as_me:$LINENO: checking for $ac_func" >&5 5374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5375if eval "test \"\${$as_ac_var+set}\" = set"; then 5376 echo $ECHO_N "(cached) $ECHO_C" >&6 5377else 5378 cat >conftest.$ac_ext <<_ACEOF 5379#line $LINENO "configure" 5380/* confdefs.h. */ 5381_ACEOF 5382cat confdefs.h >>conftest.$ac_ext 5383cat >>conftest.$ac_ext <<_ACEOF 5384/* end confdefs.h. */ 5385/* System header to define __stub macros and hopefully few prototypes, 5386 which can conflict with char $ac_func (); below. 5387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5388 <limits.h> exists even on freestanding compilers. */ 5389#ifdef __STDC__ 5390# include <limits.h> 5391#else 5392# include <assert.h> 5393#endif 5394/* Override any gcc2 internal prototype to avoid an error. */ 5395#ifdef __cplusplus 5396extern "C" 5397{ 5398#endif 5399/* We use char because int might match the return type of a gcc2 5400 builtin and then its argument prototype would still apply. */ 5401char $ac_func (); 5402/* The GNU C library defines this for functions which it implements 5403 to always fail with ENOSYS. Some functions are actually named 5404 something starting with __ and the normal name is an alias. */ 5405#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5406choke me 5407#else 5408char (*f) () = $ac_func; 5409#endif 5410#ifdef __cplusplus 5411} 5412#endif 5413 5414int 5415main () 5416{ 5417return f != $ac_func; 5418 ; 5419 return 0; 5420} 5421_ACEOF 5422rm -f conftest.$ac_objext conftest$ac_exeext 5423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5424 (eval $ac_link) 2>&5 5425 ac_status=$? 5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5427 (exit $ac_status); } && 5428 { ac_try='test -s conftest$ac_exeext' 5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5430 (eval $ac_try) 2>&5 5431 ac_status=$? 5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5433 (exit $ac_status); }; }; then 5434 eval "$as_ac_var=yes" 5435else 5436 echo "$as_me: failed program was:" >&5 5437sed 's/^/| /' conftest.$ac_ext >&5 5438 5439eval "$as_ac_var=no" 5440fi 5441rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5442fi 5443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5444echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5445if test `eval echo '${'$as_ac_var'}'` = yes; then 5446 5447cat >>confdefs.h <<_ACEOF 5448#define CRAY_STACKSEG_END $ac_func 5449_ACEOF 5450 5451 break 5452fi 5453 5454 done 5455fi 5456 5457echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5458echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5459if test "${ac_cv_c_stack_direction+set}" = set; then 5460 echo $ECHO_N "(cached) $ECHO_C" >&6 5461else 5462 if test "$cross_compiling" = yes; then 5463 ac_cv_c_stack_direction=0 5464else 5465 cat >conftest.$ac_ext <<_ACEOF 5466#line $LINENO "configure" 5467/* confdefs.h. */ 5468_ACEOF 5469cat confdefs.h >>conftest.$ac_ext 5470cat >>conftest.$ac_ext <<_ACEOF 5471/* end confdefs.h. */ 5472int 5473find_stack_direction () 5474{ 5475 static char *addr = 0; 5476 auto char dummy; 5477 if (addr == 0) 5478 { 5479 addr = &dummy; 5480 return find_stack_direction (); 5481 } 5482 else 5483 return (&dummy > addr) ? 1 : -1; 5484} 5485 5486int 5487main () 5488{ 5489 exit (find_stack_direction () < 0); 5490} 5491_ACEOF 5492rm -f conftest$ac_exeext 5493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5494 (eval $ac_link) 2>&5 5495 ac_status=$? 5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5499 (eval $ac_try) 2>&5 5500 ac_status=$? 5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5502 (exit $ac_status); }; }; then 5503 ac_cv_c_stack_direction=1 5504else 5505 echo "$as_me: program exited with status $ac_status" >&5 5506echo "$as_me: failed program was:" >&5 5507sed 's/^/| /' conftest.$ac_ext >&5 5508 5509( exit $ac_status ) 5510ac_cv_c_stack_direction=-1 5511fi 5512rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5513fi 5514fi 5515echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5516echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5517 5518cat >>confdefs.h <<_ACEOF 5519#define STACK_DIRECTION $ac_cv_c_stack_direction 5520_ACEOF 5521 5522 5523fi 5524 5525 5526 5527for ac_header in stdlib.h unistd.h 5528do 5529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5530if eval "test \"\${$as_ac_Header+set}\" = set"; then 5531 echo "$as_me:$LINENO: checking for $ac_header" >&5 5532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5533if eval "test \"\${$as_ac_Header+set}\" = set"; then 5534 echo $ECHO_N "(cached) $ECHO_C" >&6 5535fi 5536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5538else 5539 # Is the header compilable? 5540echo "$as_me:$LINENO: checking $ac_header usability" >&5 5541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5542cat >conftest.$ac_ext <<_ACEOF 5543#line $LINENO "configure" 5544/* confdefs.h. */ 5545_ACEOF 5546cat confdefs.h >>conftest.$ac_ext 5547cat >>conftest.$ac_ext <<_ACEOF 5548/* end confdefs.h. */ 5549$ac_includes_default 5550#include <$ac_header> 5551_ACEOF 5552rm -f conftest.$ac_objext 5553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5554 (eval $ac_compile) 2>&5 5555 ac_status=$? 5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5557 (exit $ac_status); } && 5558 { ac_try='test -s conftest.$ac_objext' 5559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5560 (eval $ac_try) 2>&5 5561 ac_status=$? 5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5563 (exit $ac_status); }; }; then 5564 ac_header_compiler=yes 5565else 5566 echo "$as_me: failed program was:" >&5 5567sed 's/^/| /' conftest.$ac_ext >&5 5568 5569ac_header_compiler=no 5570fi 5571rm -f conftest.$ac_objext conftest.$ac_ext 5572echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5573echo "${ECHO_T}$ac_header_compiler" >&6 5574 5575# Is the header present? 5576echo "$as_me:$LINENO: checking $ac_header presence" >&5 5577echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5578cat >conftest.$ac_ext <<_ACEOF 5579#line $LINENO "configure" 5580/* confdefs.h. */ 5581_ACEOF 5582cat confdefs.h >>conftest.$ac_ext 5583cat >>conftest.$ac_ext <<_ACEOF 5584/* end confdefs.h. */ 5585#include <$ac_header> 5586_ACEOF 5587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5589 ac_status=$? 5590 grep -v '^ *+' conftest.er1 >conftest.err 5591 rm -f conftest.er1 5592 cat conftest.err >&5 5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5594 (exit $ac_status); } >/dev/null; then 5595 if test -s conftest.err; then 5596 ac_cpp_err=$ac_c_preproc_warn_flag 5597 else 5598 ac_cpp_err= 5599 fi 5600else 5601 ac_cpp_err=yes 5602fi 5603if test -z "$ac_cpp_err"; then 5604 ac_header_preproc=yes 5605else 5606 echo "$as_me: failed program was:" >&5 5607sed 's/^/| /' conftest.$ac_ext >&5 5608 5609 ac_header_preproc=no 5610fi 5611rm -f conftest.err conftest.$ac_ext 5612echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5613echo "${ECHO_T}$ac_header_preproc" >&6 5614 5615# So? What about this header? 5616case $ac_header_compiler:$ac_header_preproc in 5617 yes:no ) 5618 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5619echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5622 ( 5623 cat <<\_ASBOX 5624## ------------------------------------ ## 5625## Report this to bug-autoconf@gnu.org. ## 5626## ------------------------------------ ## 5627_ASBOX 5628 ) | 5629 sed "s/^/$as_me: WARNING: /" >&2 5630 ;; 5631 no:yes ) 5632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5633echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5635echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5638 ( 5639 cat <<\_ASBOX 5640## ------------------------------------ ## 5641## Report this to bug-autoconf@gnu.org. ## 5642## ------------------------------------ ## 5643_ASBOX 5644 ) | 5645 sed "s/^/$as_me: WARNING: /" >&2 5646 ;; 5647esac 5648echo "$as_me:$LINENO: checking for $ac_header" >&5 5649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5650if eval "test \"\${$as_ac_Header+set}\" = set"; then 5651 echo $ECHO_N "(cached) $ECHO_C" >&6 5652else 5653 eval "$as_ac_Header=$ac_header_preproc" 5654fi 5655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5657 5658fi 5659if test `eval echo '${'$as_ac_Header'}'` = yes; then 5660 cat >>confdefs.h <<_ACEOF 5661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5662_ACEOF 5663 5664fi 5665 5666done 5667 5668 5669for ac_func in getpagesize 5670do 5671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5672echo "$as_me:$LINENO: checking for $ac_func" >&5 5673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5674if eval "test \"\${$as_ac_var+set}\" = set"; then 5675 echo $ECHO_N "(cached) $ECHO_C" >&6 5676else 5677 cat >conftest.$ac_ext <<_ACEOF 5678#line $LINENO "configure" 5679/* confdefs.h. */ 5680_ACEOF 5681cat confdefs.h >>conftest.$ac_ext 5682cat >>conftest.$ac_ext <<_ACEOF 5683/* end confdefs.h. */ 5684/* System header to define __stub macros and hopefully few prototypes, 5685 which can conflict with char $ac_func (); below. 5686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5687 <limits.h> exists even on freestanding compilers. */ 5688#ifdef __STDC__ 5689# include <limits.h> 5690#else 5691# include <assert.h> 5692#endif 5693/* Override any gcc2 internal prototype to avoid an error. */ 5694#ifdef __cplusplus 5695extern "C" 5696{ 5697#endif 5698/* We use char because int might match the return type of a gcc2 5699 builtin and then its argument prototype would still apply. */ 5700char $ac_func (); 5701/* The GNU C library defines this for functions which it implements 5702 to always fail with ENOSYS. Some functions are actually named 5703 something starting with __ and the normal name is an alias. */ 5704#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5705choke me 5706#else 5707char (*f) () = $ac_func; 5708#endif 5709#ifdef __cplusplus 5710} 5711#endif 5712 5713int 5714main () 5715{ 5716return f != $ac_func; 5717 ; 5718 return 0; 5719} 5720_ACEOF 5721rm -f conftest.$ac_objext conftest$ac_exeext 5722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5723 (eval $ac_link) 2>&5 5724 ac_status=$? 5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5726 (exit $ac_status); } && 5727 { ac_try='test -s conftest$ac_exeext' 5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5729 (eval $ac_try) 2>&5 5730 ac_status=$? 5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5732 (exit $ac_status); }; }; then 5733 eval "$as_ac_var=yes" 5734else 5735 echo "$as_me: failed program was:" >&5 5736sed 's/^/| /' conftest.$ac_ext >&5 5737 5738eval "$as_ac_var=no" 5739fi 5740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5741fi 5742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5744if test `eval echo '${'$as_ac_var'}'` = yes; then 5745 cat >>confdefs.h <<_ACEOF 5746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5747_ACEOF 5748 5749fi 5750done 5751 5752echo "$as_me:$LINENO: checking for working mmap" >&5 5753echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 5754if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 5755 echo $ECHO_N "(cached) $ECHO_C" >&6 5756else 5757 if test "$cross_compiling" = yes; then 5758 ac_cv_func_mmap_fixed_mapped=no 5759else 5760 cat >conftest.$ac_ext <<_ACEOF 5761#line $LINENO "configure" 5762/* confdefs.h. */ 5763_ACEOF 5764cat confdefs.h >>conftest.$ac_ext 5765cat >>conftest.$ac_ext <<_ACEOF 5766/* end confdefs.h. */ 5767$ac_includes_default 5768/* malloc might have been renamed as rpl_malloc. */ 5769#undef malloc 5770 5771/* Thanks to Mike Haertel and Jim Avera for this test. 5772 Here is a matrix of mmap possibilities: 5773 mmap private not fixed 5774 mmap private fixed at somewhere currently unmapped 5775 mmap private fixed at somewhere already mapped 5776 mmap shared not fixed 5777 mmap shared fixed at somewhere currently unmapped 5778 mmap shared fixed at somewhere already mapped 5779 For private mappings, we should verify that changes cannot be read() 5780 back from the file, nor mmap's back from the file at a different 5781 address. (There have been systems where private was not correctly 5782 implemented like the infamous i386 svr4.0, and systems where the 5783 VM page cache was not coherent with the file system buffer cache 5784 like early versions of FreeBSD and possibly contemporary NetBSD.) 5785 For shared mappings, we should conversely verify that changes get 5786 propagated back to all the places they're supposed to be. 5787 5788 Grep wants private fixed already mapped. 5789 The main things grep needs to know about mmap are: 5790 * does it exist and is it safe to write into the mmap'd area 5791 * how to use it (BSD variants) */ 5792 5793#include <fcntl.h> 5794#include <sys/mman.h> 5795 5796#if !STDC_HEADERS && !HAVE_STDLIB_H 5797char *malloc (); 5798#endif 5799 5800/* This mess was copied from the GNU getpagesize.h. */ 5801#if !HAVE_GETPAGESIZE 5802/* Assume that all systems that can run configure have sys/param.h. */ 5803# if !HAVE_SYS_PARAM_H 5804# define HAVE_SYS_PARAM_H 1 5805# endif 5806 5807# ifdef _SC_PAGESIZE 5808# define getpagesize() sysconf(_SC_PAGESIZE) 5809# else /* no _SC_PAGESIZE */ 5810# if HAVE_SYS_PARAM_H 5811# include <sys/param.h> 5812# ifdef EXEC_PAGESIZE 5813# define getpagesize() EXEC_PAGESIZE 5814# else /* no EXEC_PAGESIZE */ 5815# ifdef NBPG 5816# define getpagesize() NBPG * CLSIZE 5817# ifndef CLSIZE 5818# define CLSIZE 1 5819# endif /* no CLSIZE */ 5820# else /* no NBPG */ 5821# ifdef NBPC 5822# define getpagesize() NBPC 5823# else /* no NBPC */ 5824# ifdef PAGESIZE 5825# define getpagesize() PAGESIZE 5826# endif /* PAGESIZE */ 5827# endif /* no NBPC */ 5828# endif /* no NBPG */ 5829# endif /* no EXEC_PAGESIZE */ 5830# else /* no HAVE_SYS_PARAM_H */ 5831# define getpagesize() 8192 /* punt totally */ 5832# endif /* no HAVE_SYS_PARAM_H */ 5833# endif /* no _SC_PAGESIZE */ 5834 5835#endif /* no HAVE_GETPAGESIZE */ 5836 5837int 5838main () 5839{ 5840 char *data, *data2, *data3; 5841 int i, pagesize; 5842 int fd; 5843 5844 pagesize = getpagesize (); 5845 5846 /* First, make a file with some known garbage in it. */ 5847 data = (char *) malloc (pagesize); 5848 if (!data) 5849 exit (1); 5850 for (i = 0; i < pagesize; ++i) 5851 *(data + i) = rand (); 5852 umask (0); 5853 fd = creat ("conftest.mmap", 0600); 5854 if (fd < 0) 5855 exit (1); 5856 if (write (fd, data, pagesize) != pagesize) 5857 exit (1); 5858 close (fd); 5859 5860 /* Next, try to mmap the file at a fixed address which already has 5861 something else allocated at it. If we can, also make sure that 5862 we see the same garbage. */ 5863 fd = open ("conftest.mmap", O_RDWR); 5864 if (fd < 0) 5865 exit (1); 5866 data2 = (char *) malloc (2 * pagesize); 5867 if (!data2) 5868 exit (1); 5869 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 5870 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5871 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5872 exit (1); 5873 for (i = 0; i < pagesize; ++i) 5874 if (*(data + i) != *(data2 + i)) 5875 exit (1); 5876 5877 /* Finally, make sure that changes to the mapped area do not 5878 percolate back to the file as seen by read(). (This is a bug on 5879 some variants of i386 svr4.0.) */ 5880 for (i = 0; i < pagesize; ++i) 5881 *(data2 + i) = *(data2 + i) + 1; 5882 data3 = (char *) malloc (pagesize); 5883 if (!data3) 5884 exit (1); 5885 if (read (fd, data3, pagesize) != pagesize) 5886 exit (1); 5887 for (i = 0; i < pagesize; ++i) 5888 if (*(data + i) != *(data3 + i)) 5889 exit (1); 5890 close (fd); 5891 exit (0); 5892} 5893_ACEOF 5894rm -f conftest$ac_exeext 5895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5896 (eval $ac_link) 2>&5 5897 ac_status=$? 5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5901 (eval $ac_try) 2>&5 5902 ac_status=$? 5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5904 (exit $ac_status); }; }; then 5905 ac_cv_func_mmap_fixed_mapped=yes 5906else 5907 echo "$as_me: program exited with status $ac_status" >&5 5908echo "$as_me: failed program was:" >&5 5909sed 's/^/| /' conftest.$ac_ext >&5 5910 5911( exit $ac_status ) 5912ac_cv_func_mmap_fixed_mapped=no 5913fi 5914rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5915fi 5916fi 5917echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 5918echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 5919if test $ac_cv_func_mmap_fixed_mapped = yes; then 5920 5921cat >>confdefs.h <<\_ACEOF 5922#define HAVE_MMAP 1 5923_ACEOF 5924 5925fi 5926rm -f conftest.mmap 5927 5928 5929 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 5930echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 5931if test "${ac_cv_gnu_library_2_1+set}" = set; then 5932 echo $ECHO_N "(cached) $ECHO_C" >&6 5933else 5934 cat >conftest.$ac_ext <<_ACEOF 5935#line $LINENO "configure" 5936/* confdefs.h. */ 5937_ACEOF 5938cat confdefs.h >>conftest.$ac_ext 5939cat >>conftest.$ac_ext <<_ACEOF 5940/* end confdefs.h. */ 5941 5942#include <features.h> 5943#ifdef __GNU_LIBRARY__ 5944 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 5945 Lucky GNU user 5946 #endif 5947#endif 5948 5949_ACEOF 5950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5951 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 5952 ac_cv_gnu_library_2_1=yes 5953else 5954 ac_cv_gnu_library_2_1=no 5955fi 5956rm -f conftest* 5957 5958 5959 5960fi 5961echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 5962echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 5963 5964 GLIBC21="$ac_cv_gnu_library_2_1" 5965 5966 5967 5968 5969 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 5970echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 5971if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 5972 echo $ECHO_N "(cached) $ECHO_C" >&6 5973else 5974 5975 if test "$cross_compiling" = yes; then 5976 5977 # Guess based on the CPU. 5978 case "$host_cpu" in 5979 alpha* | i3456786 | m68k | s390*) 5980 gt_cv_int_divbyzero_sigfpe="guessing yes";; 5981 *) 5982 gt_cv_int_divbyzero_sigfpe="guessing no";; 5983 esac 5984 5985else 5986 cat >conftest.$ac_ext <<_ACEOF 5987#line $LINENO "configure" 5988/* confdefs.h. */ 5989_ACEOF 5990cat confdefs.h >>conftest.$ac_ext 5991cat >>conftest.$ac_ext <<_ACEOF 5992/* end confdefs.h. */ 5993 5994#include <stdlib.h> 5995#include <signal.h> 5996 5997static void 5998#ifdef __cplusplus 5999sigfpe_handler (int sig) 6000#else 6001sigfpe_handler (sig) int sig; 6002#endif 6003{ 6004 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 6005 exit (sig != SIGFPE); 6006} 6007 6008int x = 1; 6009int y = 0; 6010int z; 6011int nan; 6012 6013int main () 6014{ 6015 signal (SIGFPE, sigfpe_handler); 6016/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 6017#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 6018 signal (SIGTRAP, sigfpe_handler); 6019#endif 6020/* Linux/SPARC yields signal SIGILL. */ 6021#if defined (__sparc__) && defined (__linux__) 6022 signal (SIGILL, sigfpe_handler); 6023#endif 6024 6025 z = x / y; 6026 nan = y / y; 6027 exit (1); 6028} 6029 6030_ACEOF 6031rm -f conftest$ac_exeext 6032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6033 (eval $ac_link) 2>&5 6034 ac_status=$? 6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6038 (eval $ac_try) 2>&5 6039 ac_status=$? 6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6041 (exit $ac_status); }; }; then 6042 gt_cv_int_divbyzero_sigfpe=yes 6043else 6044 echo "$as_me: program exited with status $ac_status" >&5 6045echo "$as_me: failed program was:" >&5 6046sed 's/^/| /' conftest.$ac_ext >&5 6047 6048( exit $ac_status ) 6049gt_cv_int_divbyzero_sigfpe=no 6050fi 6051rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6052fi 6053 6054fi 6055echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 6056echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 6057 case "$gt_cv_int_divbyzero_sigfpe" in 6058 *yes) value=1;; 6059 *) value=0;; 6060 esac 6061 6062cat >>confdefs.h <<_ACEOF 6063#define INTDIV0_RAISES_SIGFPE $value 6064_ACEOF 6065 6066 6067 6068 echo "$as_me:$LINENO: checking for unsigned long long" >&5 6069echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 6070if test "${ac_cv_type_unsigned_long_long+set}" = set; then 6071 echo $ECHO_N "(cached) $ECHO_C" >&6 6072else 6073 cat >conftest.$ac_ext <<_ACEOF 6074#line $LINENO "configure" 6075/* confdefs.h. */ 6076_ACEOF 6077cat confdefs.h >>conftest.$ac_ext 6078cat >>conftest.$ac_ext <<_ACEOF 6079/* end confdefs.h. */ 6080unsigned long long ull = 1; int i = 63; 6081int 6082main () 6083{ 6084unsigned long long ullmax = (unsigned long long) -1; 6085 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 6086 ; 6087 return 0; 6088} 6089_ACEOF 6090rm -f conftest.$ac_objext conftest$ac_exeext 6091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6092 (eval $ac_link) 2>&5 6093 ac_status=$? 6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6095 (exit $ac_status); } && 6096 { ac_try='test -s conftest$ac_exeext' 6097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6098 (eval $ac_try) 2>&5 6099 ac_status=$? 6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6101 (exit $ac_status); }; }; then 6102 ac_cv_type_unsigned_long_long=yes 6103else 6104 echo "$as_me: failed program was:" >&5 6105sed 's/^/| /' conftest.$ac_ext >&5 6106 6107ac_cv_type_unsigned_long_long=no 6108fi 6109rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 6110fi 6111echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 6112echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 6113 if test $ac_cv_type_unsigned_long_long = yes; then 6114 6115cat >>confdefs.h <<\_ACEOF 6116#define HAVE_UNSIGNED_LONG_LONG 1 6117_ACEOF 6118 6119 fi 6120 6121 6122 6123 echo "$as_me:$LINENO: checking for uintmax_t" >&5 6124echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 6125if test "${ac_cv_type_uintmax_t+set}" = set; then 6126 echo $ECHO_N "(cached) $ECHO_C" >&6 6127else 6128 cat >conftest.$ac_ext <<_ACEOF 6129#line $LINENO "configure" 6130/* confdefs.h. */ 6131_ACEOF 6132cat confdefs.h >>conftest.$ac_ext 6133cat >>conftest.$ac_ext <<_ACEOF 6134/* end confdefs.h. */ 6135$ac_includes_default 6136int 6137main () 6138{ 6139if ((uintmax_t *) 0) 6140 return 0; 6141if (sizeof (uintmax_t)) 6142 return 0; 6143 ; 6144 return 0; 6145} 6146_ACEOF 6147rm -f conftest.$ac_objext 6148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6149 (eval $ac_compile) 2>&5 6150 ac_status=$? 6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6152 (exit $ac_status); } && 6153 { ac_try='test -s conftest.$ac_objext' 6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6155 (eval $ac_try) 2>&5 6156 ac_status=$? 6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6158 (exit $ac_status); }; }; then 6159 ac_cv_type_uintmax_t=yes 6160else 6161 echo "$as_me: failed program was:" >&5 6162sed 's/^/| /' conftest.$ac_ext >&5 6163 6164ac_cv_type_uintmax_t=no 6165fi 6166rm -f conftest.$ac_objext conftest.$ac_ext 6167fi 6168echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 6169echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 6170if test $ac_cv_type_uintmax_t = yes; then 6171 : 6172else 6173 test $ac_cv_type_unsigned_long_long = yes \ 6174 && ac_type='unsigned long long' \ 6175 || ac_type='unsigned long' 6176 6177cat >>confdefs.h <<_ACEOF 6178#define uintmax_t $ac_type 6179_ACEOF 6180 6181fi 6182 6183 6184 6185 echo "$as_me:$LINENO: checking for inttypes.h" >&5 6186echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 6187if test "${gt_cv_header_inttypes_h+set}" = set; then 6188 echo $ECHO_N "(cached) $ECHO_C" >&6 6189else 6190 6191 cat >conftest.$ac_ext <<_ACEOF 6192#line $LINENO "configure" 6193/* confdefs.h. */ 6194_ACEOF 6195cat confdefs.h >>conftest.$ac_ext 6196cat >>conftest.$ac_ext <<_ACEOF 6197/* end confdefs.h. */ 6198#include <sys/types.h> 6199#include <inttypes.h> 6200int 6201main () 6202{ 6203 6204 ; 6205 return 0; 6206} 6207_ACEOF 6208rm -f conftest.$ac_objext 6209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6210 (eval $ac_compile) 2>&5 6211 ac_status=$? 6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6213 (exit $ac_status); } && 6214 { ac_try='test -s conftest.$ac_objext' 6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6216 (eval $ac_try) 2>&5 6217 ac_status=$? 6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6219 (exit $ac_status); }; }; then 6220 gt_cv_header_inttypes_h=yes 6221else 6222 echo "$as_me: failed program was:" >&5 6223sed 's/^/| /' conftest.$ac_ext >&5 6224 6225gt_cv_header_inttypes_h=no 6226fi 6227rm -f conftest.$ac_objext conftest.$ac_ext 6228 6229fi 6230echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 6231echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 6232 if test $gt_cv_header_inttypes_h = yes; then 6233 6234cat >>confdefs.h <<_ACEOF 6235#define HAVE_INTTYPES_H 1 6236_ACEOF 6237 6238 fi 6239 6240 6241 6242 if test $gt_cv_header_inttypes_h = yes; then 6243 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 6244echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 6245if test "${gt_cv_inttypes_pri_broken+set}" = set; then 6246 echo $ECHO_N "(cached) $ECHO_C" >&6 6247else 6248 6249 cat >conftest.$ac_ext <<_ACEOF 6250#line $LINENO "configure" 6251/* confdefs.h. */ 6252_ACEOF 6253cat confdefs.h >>conftest.$ac_ext 6254cat >>conftest.$ac_ext <<_ACEOF 6255/* end confdefs.h. */ 6256#include <inttypes.h> 6257#ifdef PRId32 6258char *p = PRId32; 6259#endif 6260 6261int 6262main () 6263{ 6264 6265 ; 6266 return 0; 6267} 6268_ACEOF 6269rm -f conftest.$ac_objext 6270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6271 (eval $ac_compile) 2>&5 6272 ac_status=$? 6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6274 (exit $ac_status); } && 6275 { ac_try='test -s conftest.$ac_objext' 6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6277 (eval $ac_try) 2>&5 6278 ac_status=$? 6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6280 (exit $ac_status); }; }; then 6281 gt_cv_inttypes_pri_broken=no 6282else 6283 echo "$as_me: failed program was:" >&5 6284sed 's/^/| /' conftest.$ac_ext >&5 6285 6286gt_cv_inttypes_pri_broken=yes 6287fi 6288rm -f conftest.$ac_objext conftest.$ac_ext 6289 6290fi 6291echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 6292echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 6293 fi 6294 if test "$gt_cv_inttypes_pri_broken" = yes; then 6295 6296cat >>confdefs.h <<_ACEOF 6297#define PRI_MACROS_BROKEN 1 6298_ACEOF 6299 6300 fi 6301 6302 6303 if test "X$prefix" = "XNONE"; then 6304 acl_final_prefix="$ac_default_prefix" 6305 else 6306 acl_final_prefix="$prefix" 6307 fi 6308 if test "X$exec_prefix" = "XNONE"; then 6309 acl_final_exec_prefix='${prefix}' 6310 else 6311 acl_final_exec_prefix="$exec_prefix" 6312 fi 6313 acl_save_prefix="$prefix" 6314 prefix="$acl_final_prefix" 6315 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 6316 prefix="$acl_save_prefix" 6317 6318 6319# Check whether --with-gnu-ld or --without-gnu-ld was given. 6320if test "${with_gnu_ld+set}" = set; then 6321 withval="$with_gnu_ld" 6322 test "$withval" = no || with_gnu_ld=yes 6323else 6324 with_gnu_ld=no 6325fi; 6326# Prepare PATH_SEPARATOR. 6327# The user is always right. 6328if test "${PATH_SEPARATOR+set}" != set; then 6329 echo "#! /bin/sh" >conf$$.sh 6330 echo "exit 0" >>conf$$.sh 6331 chmod +x conf$$.sh 6332 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6333 PATH_SEPARATOR=';' 6334 else 6335 PATH_SEPARATOR=: 6336 fi 6337 rm -f conf$$.sh 6338fi 6339ac_prog=ld 6340if test "$GCC" = yes; then 6341 # Check if gcc -print-prog-name=ld gives a path. 6342 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 6343echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 6344 case $host in 6345 *-*-mingw*) 6346 # gcc leaves a trailing carriage return which upsets mingw 6347 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6348 *) 6349 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6350 esac 6351 case $ac_prog in 6352 # Accept absolute paths. 6353 [\\/]* | [A-Za-z]:[\\/]*) 6354 re_direlt='/[^/][^/]*/\.\./' 6355 # Canonicalize the path of ld 6356 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 6357 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 6358 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 6359 done 6360 test -z "$LD" && LD="$ac_prog" 6361 ;; 6362 "") 6363 # If it fails, then pretend we aren't using GCC. 6364 ac_prog=ld 6365 ;; 6366 *) 6367 # If it is relative, then search for the first ld in PATH. 6368 with_gnu_ld=unknown 6369 ;; 6370 esac 6371elif test "$with_gnu_ld" = yes; then 6372 echo "$as_me:$LINENO: checking for GNU ld" >&5 6373echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 6374else 6375 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 6376echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 6377fi 6378if test "${acl_cv_path_LD+set}" = set; then 6379 echo $ECHO_N "(cached) $ECHO_C" >&6 6380else 6381 if test -z "$LD"; then 6382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 6383 for ac_dir in $PATH; do 6384 test -z "$ac_dir" && ac_dir=. 6385 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6386 acl_cv_path_LD="$ac_dir/$ac_prog" 6387 # Check to see if the program is GNU ld. I'd rather use --version, 6388 # but apparently some GNU ld's only accept -v. 6389 # Break only if it was the GNU/non-GNU ld that we prefer. 6390 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 6391 test "$with_gnu_ld" != no && break 6392 else 6393 test "$with_gnu_ld" != yes && break 6394 fi 6395 fi 6396 done 6397 IFS="$ac_save_ifs" 6398else 6399 acl_cv_path_LD="$LD" # Let the user override the test with a path. 6400fi 6401fi 6402 6403LD="$acl_cv_path_LD" 6404if test -n "$LD"; then 6405 echo "$as_me:$LINENO: result: $LD" >&5 6406echo "${ECHO_T}$LD" >&6 6407else 6408 echo "$as_me:$LINENO: result: no" >&5 6409echo "${ECHO_T}no" >&6 6410fi 6411test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 6412echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 6413 { (exit 1); exit 1; }; } 6414echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 6415echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 6416if test "${acl_cv_prog_gnu_ld+set}" = set; then 6417 echo $ECHO_N "(cached) $ECHO_C" >&6 6418else 6419 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 6420if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 6421 acl_cv_prog_gnu_ld=yes 6422else 6423 acl_cv_prog_gnu_ld=no 6424fi 6425fi 6426echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 6427echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 6428with_gnu_ld=$acl_cv_prog_gnu_ld 6429 6430 6431 6432 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 6433echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 6434if test "${acl_cv_rpath+set}" = set; then 6435 echo $ECHO_N "(cached) $ECHO_C" >&6 6436else 6437 6438 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 6439 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 6440 . ./conftest.sh 6441 rm -f ./conftest.sh 6442 acl_cv_rpath=done 6443 6444fi 6445echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 6446echo "${ECHO_T}$acl_cv_rpath" >&6 6447 wl="$acl_cv_wl" 6448 libext="$acl_cv_libext" 6449 shlibext="$acl_cv_shlibext" 6450 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 6451 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 6452 hardcode_direct="$acl_cv_hardcode_direct" 6453 hardcode_minus_L="$acl_cv_hardcode_minus_L" 6454 # Check whether --enable-rpath or --disable-rpath was given. 6455if test "${enable_rpath+set}" = set; then 6456 enableval="$enable_rpath" 6457 : 6458else 6459 enable_rpath=yes 6460fi; 6461 6462 6463 6464 6465 6466 6467 6468 use_additional=yes 6469 6470 acl_save_prefix="$prefix" 6471 prefix="$acl_final_prefix" 6472 acl_save_exec_prefix="$exec_prefix" 6473 exec_prefix="$acl_final_exec_prefix" 6474 6475 eval additional_includedir=\"$includedir\" 6476 eval additional_libdir=\"$libdir\" 6477 6478 exec_prefix="$acl_save_exec_prefix" 6479 prefix="$acl_save_prefix" 6480 6481 6482# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 6483if test "${with_libiconv_prefix+set}" = set; then 6484 withval="$with_libiconv_prefix" 6485 6486 if test "X$withval" = "Xno"; then 6487 use_additional=no 6488 else 6489 if test "X$withval" = "X"; then 6490 6491 acl_save_prefix="$prefix" 6492 prefix="$acl_final_prefix" 6493 acl_save_exec_prefix="$exec_prefix" 6494 exec_prefix="$acl_final_exec_prefix" 6495 6496 eval additional_includedir=\"$includedir\" 6497 eval additional_libdir=\"$libdir\" 6498 6499 exec_prefix="$acl_save_exec_prefix" 6500 prefix="$acl_save_prefix" 6501 6502 else 6503 additional_includedir="$withval/include" 6504 additional_libdir="$withval/lib" 6505 fi 6506 fi 6507 6508fi; 6509 LIBICONV= 6510 LTLIBICONV= 6511 INCICONV= 6512 rpathdirs= 6513 ltrpathdirs= 6514 names_already_handled= 6515 names_next_round='iconv ' 6516 while test -n "$names_next_round"; do 6517 names_this_round="$names_next_round" 6518 names_next_round= 6519 for name in $names_this_round; do 6520 already_handled= 6521 for n in $names_already_handled; do 6522 if test "$n" = "$name"; then 6523 already_handled=yes 6524 break 6525 fi 6526 done 6527 if test -z "$already_handled"; then 6528 names_already_handled="$names_already_handled $name" 6529 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6530 eval value=\"\$HAVE_LIB$uppername\" 6531 if test -n "$value"; then 6532 if test "$value" = yes; then 6533 eval value=\"\$LIB$uppername\" 6534 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 6535 eval value=\"\$LTLIB$uppername\" 6536 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 6537 else 6538 : 6539 fi 6540 else 6541 found_dir= 6542 found_la= 6543 found_so= 6544 found_a= 6545 if test $use_additional = yes; then 6546 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 6547 found_dir="$additional_libdir" 6548 found_so="$additional_libdir/lib$name.$shlibext" 6549 if test -f "$additional_libdir/lib$name.la"; then 6550 found_la="$additional_libdir/lib$name.la" 6551 fi 6552 else 6553 if test -f "$additional_libdir/lib$name.$libext"; then 6554 found_dir="$additional_libdir" 6555 found_a="$additional_libdir/lib$name.$libext" 6556 if test -f "$additional_libdir/lib$name.la"; then 6557 found_la="$additional_libdir/lib$name.la" 6558 fi 6559 fi 6560 fi 6561 fi 6562 if test "X$found_dir" = "X"; then 6563 for x in $LDFLAGS $LTLIBICONV; do 6564 6565 acl_save_prefix="$prefix" 6566 prefix="$acl_final_prefix" 6567 acl_save_exec_prefix="$exec_prefix" 6568 exec_prefix="$acl_final_exec_prefix" 6569 eval x=\"$x\" 6570 exec_prefix="$acl_save_exec_prefix" 6571 prefix="$acl_save_prefix" 6572 6573 case "$x" in 6574 -L*) 6575 dir=`echo "X$x" | sed -e 's/^X-L//'` 6576 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 6577 found_dir="$dir" 6578 found_so="$dir/lib$name.$shlibext" 6579 if test -f "$dir/lib$name.la"; then 6580 found_la="$dir/lib$name.la" 6581 fi 6582 else 6583 if test -f "$dir/lib$name.$libext"; then 6584 found_dir="$dir" 6585 found_a="$dir/lib$name.$libext" 6586 if test -f "$dir/lib$name.la"; then 6587 found_la="$dir/lib$name.la" 6588 fi 6589 fi 6590 fi 6591 ;; 6592 esac 6593 if test "X$found_dir" != "X"; then 6594 break 6595 fi 6596 done 6597 fi 6598 if test "X$found_dir" != "X"; then 6599 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 6600 if test "X$found_so" != "X"; then 6601 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 6602 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6603 else 6604 haveit= 6605 for x in $ltrpathdirs; do 6606 if test "X$x" = "X$found_dir"; then 6607 haveit=yes 6608 break 6609 fi 6610 done 6611 if test -z "$haveit"; then 6612 ltrpathdirs="$ltrpathdirs $found_dir" 6613 fi 6614 if test "$hardcode_direct" = yes; then 6615 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6616 else 6617 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 6618 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6619 haveit= 6620 for x in $rpathdirs; do 6621 if test "X$x" = "X$found_dir"; then 6622 haveit=yes 6623 break 6624 fi 6625 done 6626 if test -z "$haveit"; then 6627 rpathdirs="$rpathdirs $found_dir" 6628 fi 6629 else 6630 haveit= 6631 for x in $LDFLAGS $LIBICONV; do 6632 6633 acl_save_prefix="$prefix" 6634 prefix="$acl_final_prefix" 6635 acl_save_exec_prefix="$exec_prefix" 6636 exec_prefix="$acl_final_exec_prefix" 6637 eval x=\"$x\" 6638 exec_prefix="$acl_save_exec_prefix" 6639 prefix="$acl_save_prefix" 6640 6641 if test "X$x" = "X-L$found_dir"; then 6642 haveit=yes 6643 break 6644 fi 6645 done 6646 if test -z "$haveit"; then 6647 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 6648 fi 6649 if test "$hardcode_minus_L" != no; then 6650 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6651 else 6652 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6653 fi 6654 fi 6655 fi 6656 fi 6657 else 6658 if test "X$found_a" != "X"; then 6659 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 6660 else 6661 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 6662 fi 6663 fi 6664 additional_includedir= 6665 case "$found_dir" in 6666 */lib | */lib/) 6667 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 6668 additional_includedir="$basedir/include" 6669 ;; 6670 esac 6671 if test "X$additional_includedir" != "X"; then 6672 if test "X$additional_includedir" != "X/usr/include"; then 6673 haveit= 6674 if test "X$additional_includedir" = "X/usr/local/include"; then 6675 if test -n "$GCC"; then 6676 case $host_os in 6677 linux*) haveit=yes;; 6678 esac 6679 fi 6680 fi 6681 if test -z "$haveit"; then 6682 for x in $CPPFLAGS $INCICONV; do 6683 6684 acl_save_prefix="$prefix" 6685 prefix="$acl_final_prefix" 6686 acl_save_exec_prefix="$exec_prefix" 6687 exec_prefix="$acl_final_exec_prefix" 6688 eval x=\"$x\" 6689 exec_prefix="$acl_save_exec_prefix" 6690 prefix="$acl_save_prefix" 6691 6692 if test "X$x" = "X-I$additional_includedir"; then 6693 haveit=yes 6694 break 6695 fi 6696 done 6697 if test -z "$haveit"; then 6698 if test -d "$additional_includedir"; then 6699 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 6700 fi 6701 fi 6702 fi 6703 fi 6704 fi 6705 if test -n "$found_la"; then 6706 save_libdir="$libdir" 6707 case "$found_la" in 6708 */* | *\\*) . "$found_la" ;; 6709 *) . "./$found_la" ;; 6710 esac 6711 libdir="$save_libdir" 6712 for dep in $dependency_libs; do 6713 case "$dep" in 6714 -L*) 6715 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6716 if test "X$additional_libdir" != "X/usr/lib"; then 6717 haveit= 6718 if test "X$additional_libdir" = "X/usr/local/lib"; then 6719 if test -n "$GCC"; then 6720 case $host_os in 6721 linux*) haveit=yes;; 6722 esac 6723 fi 6724 fi 6725 if test -z "$haveit"; then 6726 haveit= 6727 for x in $LDFLAGS $LIBICONV; do 6728 6729 acl_save_prefix="$prefix" 6730 prefix="$acl_final_prefix" 6731 acl_save_exec_prefix="$exec_prefix" 6732 exec_prefix="$acl_final_exec_prefix" 6733 eval x=\"$x\" 6734 exec_prefix="$acl_save_exec_prefix" 6735 prefix="$acl_save_prefix" 6736 6737 if test "X$x" = "X-L$additional_libdir"; then 6738 haveit=yes 6739 break 6740 fi 6741 done 6742 if test -z "$haveit"; then 6743 if test -d "$additional_libdir"; then 6744 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 6745 fi 6746 fi 6747 haveit= 6748 for x in $LDFLAGS $LTLIBICONV; do 6749 6750 acl_save_prefix="$prefix" 6751 prefix="$acl_final_prefix" 6752 acl_save_exec_prefix="$exec_prefix" 6753 exec_prefix="$acl_final_exec_prefix" 6754 eval x=\"$x\" 6755 exec_prefix="$acl_save_exec_prefix" 6756 prefix="$acl_save_prefix" 6757 6758 if test "X$x" = "X-L$additional_libdir"; then 6759 haveit=yes 6760 break 6761 fi 6762 done 6763 if test -z "$haveit"; then 6764 if test -d "$additional_libdir"; then 6765 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 6766 fi 6767 fi 6768 fi 6769 fi 6770 ;; 6771 -R*) 6772 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6773 if test "$enable_rpath" != no; then 6774 haveit= 6775 for x in $rpathdirs; do 6776 if test "X$x" = "X$dir"; then 6777 haveit=yes 6778 break 6779 fi 6780 done 6781 if test -z "$haveit"; then 6782 rpathdirs="$rpathdirs $dir" 6783 fi 6784 haveit= 6785 for x in $ltrpathdirs; do 6786 if test "X$x" = "X$dir"; then 6787 haveit=yes 6788 break 6789 fi 6790 done 6791 if test -z "$haveit"; then 6792 ltrpathdirs="$ltrpathdirs $dir" 6793 fi 6794 fi 6795 ;; 6796 -l*) 6797 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6798 ;; 6799 *.la) 6800 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6801 ;; 6802 *) 6803 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 6804 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 6805 ;; 6806 esac 6807 done 6808 fi 6809 else 6810 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6811 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 6812 fi 6813 fi 6814 fi 6815 done 6816 done 6817 if test "X$rpathdirs" != "X"; then 6818 if test -n "$hardcode_libdir_separator"; then 6819 alldirs= 6820 for found_dir in $rpathdirs; do 6821 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 6822 done 6823 acl_save_libdir="$libdir" 6824 libdir="$alldirs" 6825 eval flag=\"$hardcode_libdir_flag_spec\" 6826 libdir="$acl_save_libdir" 6827 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6828 else 6829 for found_dir in $rpathdirs; do 6830 acl_save_libdir="$libdir" 6831 libdir="$found_dir" 6832 eval flag=\"$hardcode_libdir_flag_spec\" 6833 libdir="$acl_save_libdir" 6834 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6835 done 6836 fi 6837 fi 6838 if test "X$ltrpathdirs" != "X"; then 6839 for found_dir in $ltrpathdirs; do 6840 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 6841 done 6842 fi 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 6858stdlib.h string.h unistd.h sys/param.h 6859do 6860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6861if eval "test \"\${$as_ac_Header+set}\" = set"; then 6862 echo "$as_me:$LINENO: checking for $ac_header" >&5 6863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6864if eval "test \"\${$as_ac_Header+set}\" = set"; then 6865 echo $ECHO_N "(cached) $ECHO_C" >&6 6866fi 6867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6869else 6870 # Is the header compilable? 6871echo "$as_me:$LINENO: checking $ac_header usability" >&5 6872echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6873cat >conftest.$ac_ext <<_ACEOF 6874#line $LINENO "configure" 6875/* confdefs.h. */ 6876_ACEOF 6877cat confdefs.h >>conftest.$ac_ext 6878cat >>conftest.$ac_ext <<_ACEOF 6879/* end confdefs.h. */ 6880$ac_includes_default 6881#include <$ac_header> 6882_ACEOF 6883rm -f conftest.$ac_objext 6884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6885 (eval $ac_compile) 2>&5 6886 ac_status=$? 6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6888 (exit $ac_status); } && 6889 { ac_try='test -s conftest.$ac_objext' 6890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6891 (eval $ac_try) 2>&5 6892 ac_status=$? 6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6894 (exit $ac_status); }; }; then 6895 ac_header_compiler=yes 6896else 6897 echo "$as_me: failed program was:" >&5 6898sed 's/^/| /' conftest.$ac_ext >&5 6899 6900ac_header_compiler=no 6901fi 6902rm -f conftest.$ac_objext conftest.$ac_ext 6903echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6904echo "${ECHO_T}$ac_header_compiler" >&6 6905 6906# Is the header present? 6907echo "$as_me:$LINENO: checking $ac_header presence" >&5 6908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6909cat >conftest.$ac_ext <<_ACEOF 6910#line $LINENO "configure" 6911/* confdefs.h. */ 6912_ACEOF 6913cat confdefs.h >>conftest.$ac_ext 6914cat >>conftest.$ac_ext <<_ACEOF 6915/* end confdefs.h. */ 6916#include <$ac_header> 6917_ACEOF 6918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6920 ac_status=$? 6921 grep -v '^ *+' conftest.er1 >conftest.err 6922 rm -f conftest.er1 6923 cat conftest.err >&5 6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6925 (exit $ac_status); } >/dev/null; then 6926 if test -s conftest.err; then 6927 ac_cpp_err=$ac_c_preproc_warn_flag 6928 else 6929 ac_cpp_err= 6930 fi 6931else 6932 ac_cpp_err=yes 6933fi 6934if test -z "$ac_cpp_err"; then 6935 ac_header_preproc=yes 6936else 6937 echo "$as_me: failed program was:" >&5 6938sed 's/^/| /' conftest.$ac_ext >&5 6939 6940 ac_header_preproc=no 6941fi 6942rm -f conftest.err conftest.$ac_ext 6943echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6944echo "${ECHO_T}$ac_header_preproc" >&6 6945 6946# So? What about this header? 6947case $ac_header_compiler:$ac_header_preproc in 6948 yes:no ) 6949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6953 ( 6954 cat <<\_ASBOX 6955## ------------------------------------ ## 6956## Report this to bug-autoconf@gnu.org. ## 6957## ------------------------------------ ## 6958_ASBOX 6959 ) | 6960 sed "s/^/$as_me: WARNING: /" >&2 6961 ;; 6962 no:yes ) 6963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6964echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6966echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6968echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6969 ( 6970 cat <<\_ASBOX 6971## ------------------------------------ ## 6972## Report this to bug-autoconf@gnu.org. ## 6973## ------------------------------------ ## 6974_ASBOX 6975 ) | 6976 sed "s/^/$as_me: WARNING: /" >&2 6977 ;; 6978esac 6979echo "$as_me:$LINENO: checking for $ac_header" >&5 6980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6981if eval "test \"\${$as_ac_Header+set}\" = set"; then 6982 echo $ECHO_N "(cached) $ECHO_C" >&6 6983else 6984 eval "$as_ac_Header=$ac_header_preproc" 6985fi 6986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6988 6989fi 6990if test `eval echo '${'$as_ac_Header'}'` = yes; then 6991 cat >>confdefs.h <<_ACEOF 6992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6993_ACEOF 6994 6995fi 6996 6997done 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ 7022geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ 7023strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \ 7024__fsetlocking 7025do 7026as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7027echo "$as_me:$LINENO: checking for $ac_func" >&5 7028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7029if eval "test \"\${$as_ac_var+set}\" = set"; then 7030 echo $ECHO_N "(cached) $ECHO_C" >&6 7031else 7032 cat >conftest.$ac_ext <<_ACEOF 7033#line $LINENO "configure" 7034/* confdefs.h. */ 7035_ACEOF 7036cat confdefs.h >>conftest.$ac_ext 7037cat >>conftest.$ac_ext <<_ACEOF 7038/* end confdefs.h. */ 7039/* System header to define __stub macros and hopefully few prototypes, 7040 which can conflict with char $ac_func (); below. 7041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7042 <limits.h> exists even on freestanding compilers. */ 7043#ifdef __STDC__ 7044# include <limits.h> 7045#else 7046# include <assert.h> 7047#endif 7048/* Override any gcc2 internal prototype to avoid an error. */ 7049#ifdef __cplusplus 7050extern "C" 7051{ 7052#endif 7053/* We use char because int might match the return type of a gcc2 7054 builtin and then its argument prototype would still apply. */ 7055char $ac_func (); 7056/* The GNU C library defines this for functions which it implements 7057 to always fail with ENOSYS. Some functions are actually named 7058 something starting with __ and the normal name is an alias. */ 7059#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7060choke me 7061#else 7062char (*f) () = $ac_func; 7063#endif 7064#ifdef __cplusplus 7065} 7066#endif 7067 7068int 7069main () 7070{ 7071return f != $ac_func; 7072 ; 7073 return 0; 7074} 7075_ACEOF 7076rm -f conftest.$ac_objext conftest$ac_exeext 7077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7078 (eval $ac_link) 2>&5 7079 ac_status=$? 7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7081 (exit $ac_status); } && 7082 { ac_try='test -s conftest$ac_exeext' 7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7084 (eval $ac_try) 2>&5 7085 ac_status=$? 7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7087 (exit $ac_status); }; }; then 7088 eval "$as_ac_var=yes" 7089else 7090 echo "$as_me: failed program was:" >&5 7091sed 's/^/| /' conftest.$ac_ext >&5 7092 7093eval "$as_ac_var=no" 7094fi 7095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7096fi 7097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7098echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7099if test `eval echo '${'$as_ac_var'}'` = yes; then 7100 cat >>confdefs.h <<_ACEOF 7101#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7102_ACEOF 7103 7104fi 7105done 7106 7107 7108 7109 7110 7111 7112 7113 am_save_CPPFLAGS="$CPPFLAGS" 7114 7115 for element in $INCICONV; do 7116 haveit= 7117 for x in $CPPFLAGS; do 7118 7119 acl_save_prefix="$prefix" 7120 prefix="$acl_final_prefix" 7121 acl_save_exec_prefix="$exec_prefix" 7122 exec_prefix="$acl_final_exec_prefix" 7123 eval x=\"$x\" 7124 exec_prefix="$acl_save_exec_prefix" 7125 prefix="$acl_save_prefix" 7126 7127 if test "X$x" = "X$element"; then 7128 haveit=yes 7129 break 7130 fi 7131 done 7132 if test -z "$haveit"; then 7133 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7134 fi 7135 done 7136 7137 7138 echo "$as_me:$LINENO: checking for iconv" >&5 7139echo $ECHO_N "checking for iconv... $ECHO_C" >&6 7140if test "${am_cv_func_iconv+set}" = set; then 7141 echo $ECHO_N "(cached) $ECHO_C" >&6 7142else 7143 7144 am_cv_func_iconv="no, consider installing GNU libiconv" 7145 am_cv_lib_iconv=no 7146 cat >conftest.$ac_ext <<_ACEOF 7147#line $LINENO "configure" 7148/* confdefs.h. */ 7149_ACEOF 7150cat confdefs.h >>conftest.$ac_ext 7151cat >>conftest.$ac_ext <<_ACEOF 7152/* end confdefs.h. */ 7153#include <stdlib.h> 7154#include <iconv.h> 7155int 7156main () 7157{ 7158iconv_t cd = iconv_open("",""); 7159 iconv(cd,NULL,NULL,NULL,NULL); 7160 iconv_close(cd); 7161 ; 7162 return 0; 7163} 7164_ACEOF 7165rm -f conftest.$ac_objext conftest$ac_exeext 7166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7167 (eval $ac_link) 2>&5 7168 ac_status=$? 7169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7170 (exit $ac_status); } && 7171 { ac_try='test -s conftest$ac_exeext' 7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7173 (eval $ac_try) 2>&5 7174 ac_status=$? 7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7176 (exit $ac_status); }; }; then 7177 am_cv_func_iconv=yes 7178else 7179 echo "$as_me: failed program was:" >&5 7180sed 's/^/| /' conftest.$ac_ext >&5 7181 7182fi 7183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7184 if test "$am_cv_func_iconv" != yes; then 7185 am_save_LIBS="$LIBS" 7186 LIBS="$LIBS $LIBICONV" 7187 cat >conftest.$ac_ext <<_ACEOF 7188#line $LINENO "configure" 7189/* confdefs.h. */ 7190_ACEOF 7191cat confdefs.h >>conftest.$ac_ext 7192cat >>conftest.$ac_ext <<_ACEOF 7193/* end confdefs.h. */ 7194#include <stdlib.h> 7195#include <iconv.h> 7196int 7197main () 7198{ 7199iconv_t cd = iconv_open("",""); 7200 iconv(cd,NULL,NULL,NULL,NULL); 7201 iconv_close(cd); 7202 ; 7203 return 0; 7204} 7205_ACEOF 7206rm -f conftest.$ac_objext conftest$ac_exeext 7207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7208 (eval $ac_link) 2>&5 7209 ac_status=$? 7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7211 (exit $ac_status); } && 7212 { ac_try='test -s conftest$ac_exeext' 7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7214 (eval $ac_try) 2>&5 7215 ac_status=$? 7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7217 (exit $ac_status); }; }; then 7218 am_cv_lib_iconv=yes 7219 am_cv_func_iconv=yes 7220else 7221 echo "$as_me: failed program was:" >&5 7222sed 's/^/| /' conftest.$ac_ext >&5 7223 7224fi 7225rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7226 LIBS="$am_save_LIBS" 7227 fi 7228 7229fi 7230echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 7231echo "${ECHO_T}$am_cv_func_iconv" >&6 7232 if test "$am_cv_func_iconv" = yes; then 7233 7234cat >>confdefs.h <<\_ACEOF 7235#define HAVE_ICONV 1 7236_ACEOF 7237 7238 fi 7239 if test "$am_cv_lib_iconv" = yes; then 7240 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 7241echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 7242 echo "$as_me:$LINENO: result: $LIBICONV" >&5 7243echo "${ECHO_T}$LIBICONV" >&6 7244 else 7245 CPPFLAGS="$am_save_CPPFLAGS" 7246 LIBICONV= 7247 LTLIBICONV= 7248 fi 7249 7250 7251 7252 if test "$am_cv_func_iconv" = yes; then 7253 echo "$as_me:$LINENO: checking for iconv declaration" >&5 7254echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 7255 if test "${am_cv_proto_iconv+set}" = set; then 7256 echo $ECHO_N "(cached) $ECHO_C" >&6 7257else 7258 7259 cat >conftest.$ac_ext <<_ACEOF 7260#line $LINENO "configure" 7261/* confdefs.h. */ 7262_ACEOF 7263cat confdefs.h >>conftest.$ac_ext 7264cat >>conftest.$ac_ext <<_ACEOF 7265/* end confdefs.h. */ 7266 7267#include <stdlib.h> 7268#include <iconv.h> 7269extern 7270#ifdef __cplusplus 7271"C" 7272#endif 7273#if defined(__STDC__) || defined(__cplusplus) 7274size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 7275#else 7276size_t iconv(); 7277#endif 7278 7279int 7280main () 7281{ 7282 7283 ; 7284 return 0; 7285} 7286_ACEOF 7287rm -f conftest.$ac_objext 7288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7289 (eval $ac_compile) 2>&5 7290 ac_status=$? 7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7292 (exit $ac_status); } && 7293 { ac_try='test -s conftest.$ac_objext' 7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7295 (eval $ac_try) 2>&5 7296 ac_status=$? 7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7298 (exit $ac_status); }; }; then 7299 am_cv_proto_iconv_arg1="" 7300else 7301 echo "$as_me: failed program was:" >&5 7302sed 's/^/| /' conftest.$ac_ext >&5 7303 7304am_cv_proto_iconv_arg1="const" 7305fi 7306rm -f conftest.$ac_objext conftest.$ac_ext 7307 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 7308fi 7309 7310 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 7311 echo "$as_me:$LINENO: result: ${ac_t:- 7312 }$am_cv_proto_iconv" >&5 7313echo "${ECHO_T}${ac_t:- 7314 }$am_cv_proto_iconv" >&6 7315 7316cat >>confdefs.h <<_ACEOF 7317#define ICONV_CONST $am_cv_proto_iconv_arg1 7318_ACEOF 7319 7320 fi 7321 7322 7323 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 7324echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 7325if test "${am_cv_langinfo_codeset+set}" = set; then 7326 echo $ECHO_N "(cached) $ECHO_C" >&6 7327else 7328 cat >conftest.$ac_ext <<_ACEOF 7329#line $LINENO "configure" 7330/* confdefs.h. */ 7331_ACEOF 7332cat confdefs.h >>conftest.$ac_ext 7333cat >>conftest.$ac_ext <<_ACEOF 7334/* end confdefs.h. */ 7335#include <langinfo.h> 7336int 7337main () 7338{ 7339char* cs = nl_langinfo(CODESET); 7340 ; 7341 return 0; 7342} 7343_ACEOF 7344rm -f conftest.$ac_objext conftest$ac_exeext 7345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7346 (eval $ac_link) 2>&5 7347 ac_status=$? 7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7349 (exit $ac_status); } && 7350 { ac_try='test -s conftest$ac_exeext' 7351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7352 (eval $ac_try) 2>&5 7353 ac_status=$? 7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7355 (exit $ac_status); }; }; then 7356 am_cv_langinfo_codeset=yes 7357else 7358 echo "$as_me: failed program was:" >&5 7359sed 's/^/| /' conftest.$ac_ext >&5 7360 7361am_cv_langinfo_codeset=no 7362fi 7363rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7364 7365fi 7366echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 7367echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 7368 if test $am_cv_langinfo_codeset = yes; then 7369 7370cat >>confdefs.h <<\_ACEOF 7371#define HAVE_LANGINFO_CODESET 1 7372_ACEOF 7373 7374 fi 7375 7376 if test $ac_cv_header_locale_h = yes; then 7377 7378 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 7379echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 7380if test "${am_cv_val_LC_MESSAGES+set}" = set; then 7381 echo $ECHO_N "(cached) $ECHO_C" >&6 7382else 7383 cat >conftest.$ac_ext <<_ACEOF 7384#line $LINENO "configure" 7385/* confdefs.h. */ 7386_ACEOF 7387cat confdefs.h >>conftest.$ac_ext 7388cat >>conftest.$ac_ext <<_ACEOF 7389/* end confdefs.h. */ 7390#include <locale.h> 7391int 7392main () 7393{ 7394return LC_MESSAGES 7395 ; 7396 return 0; 7397} 7398_ACEOF 7399rm -f conftest.$ac_objext conftest$ac_exeext 7400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7401 (eval $ac_link) 2>&5 7402 ac_status=$? 7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7404 (exit $ac_status); } && 7405 { ac_try='test -s conftest$ac_exeext' 7406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7407 (eval $ac_try) 2>&5 7408 ac_status=$? 7409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7410 (exit $ac_status); }; }; then 7411 am_cv_val_LC_MESSAGES=yes 7412else 7413 echo "$as_me: failed program was:" >&5 7414sed 's/^/| /' conftest.$ac_ext >&5 7415 7416am_cv_val_LC_MESSAGES=no 7417fi 7418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7419fi 7420echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 7421echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 7422 if test $am_cv_val_LC_MESSAGES = yes; then 7423 7424cat >>confdefs.h <<\_ACEOF 7425#define HAVE_LC_MESSAGES 1 7426_ACEOF 7427 7428 fi 7429 7430 fi 7431 7432 for ac_prog in bison 7433do 7434 # Extract the first word of "$ac_prog", so it can be a program name with args. 7435set dummy $ac_prog; ac_word=$2 7436echo "$as_me:$LINENO: checking for $ac_word" >&5 7437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7438if test "${ac_cv_prog_INTLBISON+set}" = set; then 7439 echo $ECHO_N "(cached) $ECHO_C" >&6 7440else 7441 if test -n "$INTLBISON"; then 7442 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 7443else 7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445for as_dir in $PATH 7446do 7447 IFS=$as_save_IFS 7448 test -z "$as_dir" && as_dir=. 7449 for ac_exec_ext in '' $ac_executable_extensions; do 7450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7451 ac_cv_prog_INTLBISON="$ac_prog" 7452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7453 break 2 7454 fi 7455done 7456done 7457 7458fi 7459fi 7460INTLBISON=$ac_cv_prog_INTLBISON 7461if test -n "$INTLBISON"; then 7462 echo "$as_me:$LINENO: result: $INTLBISON" >&5 7463echo "${ECHO_T}$INTLBISON" >&6 7464else 7465 echo "$as_me:$LINENO: result: no" >&5 7466echo "${ECHO_T}no" >&6 7467fi 7468 7469 test -n "$INTLBISON" && break 7470done 7471 7472 if test -z "$INTLBISON"; then 7473 ac_verc_fail=yes 7474 else 7475 echo "$as_me:$LINENO: checking version of bison" >&5 7476echo $ECHO_N "checking version of bison... $ECHO_C" >&6 7477 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 7478 case $ac_prog_version in 7479 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 7480 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 7481 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 7482 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 7483 esac 7484 echo "$as_me:$LINENO: result: $ac_prog_version" >&5 7485echo "${ECHO_T}$ac_prog_version" >&6 7486 fi 7487 if test $ac_verc_fail = yes; then 7488 INTLBISON=: 7489 fi 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 7507echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 7508 # Check whether --enable-nls or --disable-nls was given. 7509if test "${enable_nls+set}" = set; then 7510 enableval="$enable_nls" 7511 USE_NLS=$enableval 7512else 7513 USE_NLS=yes 7514fi; 7515 echo "$as_me:$LINENO: result: $USE_NLS" >&5 7516echo "${ECHO_T}$USE_NLS" >&6 7517 7518 7519 7520 7521 BUILD_INCLUDED_LIBINTL=no 7522 USE_INCLUDED_LIBINTL=no 7523 7524 LIBINTL= 7525 LTLIBINTL= 7526 POSUB= 7527 7528 if test "$USE_NLS" = "yes"; then 7529 gt_use_preinstalled_gnugettext=no 7530 7531 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 7532echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 7533 7534# Check whether --with-included-gettext or --without-included-gettext was given. 7535if test "${with_included_gettext+set}" = set; then 7536 withval="$with_included_gettext" 7537 nls_cv_force_use_gnu_gettext=$withval 7538else 7539 nls_cv_force_use_gnu_gettext=no 7540fi; 7541 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 7542echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 7543 7544 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 7545 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 7546 7547 7548 7549 7550 7551 7552 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 7553echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 7554if test "${gt_cv_func_gnugettext2_libc+set}" = set; then 7555 echo $ECHO_N "(cached) $ECHO_C" >&6 7556else 7557 cat >conftest.$ac_ext <<_ACEOF 7558#line $LINENO "configure" 7559/* confdefs.h. */ 7560_ACEOF 7561cat confdefs.h >>conftest.$ac_ext 7562cat >>conftest.$ac_ext <<_ACEOF 7563/* end confdefs.h. */ 7564#include <libintl.h> 7565extern int _nl_msg_cat_cntr; 7566extern int *_nl_domain_bindings; 7567int 7568main () 7569{ 7570bindtextdomain ("", ""); 7571return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings 7572 ; 7573 return 0; 7574} 7575_ACEOF 7576rm -f conftest.$ac_objext conftest$ac_exeext 7577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7578 (eval $ac_link) 2>&5 7579 ac_status=$? 7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7581 (exit $ac_status); } && 7582 { ac_try='test -s conftest$ac_exeext' 7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7584 (eval $ac_try) 2>&5 7585 ac_status=$? 7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7587 (exit $ac_status); }; }; then 7588 gt_cv_func_gnugettext2_libc=yes 7589else 7590 echo "$as_me: failed program was:" >&5 7591sed 's/^/| /' conftest.$ac_ext >&5 7592 7593gt_cv_func_gnugettext2_libc=no 7594fi 7595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7596fi 7597echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5 7598echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6 7599 7600 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then 7601 7602 7603 7604 use_additional=yes 7605 7606 acl_save_prefix="$prefix" 7607 prefix="$acl_final_prefix" 7608 acl_save_exec_prefix="$exec_prefix" 7609 exec_prefix="$acl_final_exec_prefix" 7610 7611 eval additional_includedir=\"$includedir\" 7612 eval additional_libdir=\"$libdir\" 7613 7614 exec_prefix="$acl_save_exec_prefix" 7615 prefix="$acl_save_prefix" 7616 7617 7618# Check whether --with-libintl-prefix or --without-libintl-prefix was given. 7619if test "${with_libintl_prefix+set}" = set; then 7620 withval="$with_libintl_prefix" 7621 7622 if test "X$withval" = "Xno"; then 7623 use_additional=no 7624 else 7625 if test "X$withval" = "X"; then 7626 7627 acl_save_prefix="$prefix" 7628 prefix="$acl_final_prefix" 7629 acl_save_exec_prefix="$exec_prefix" 7630 exec_prefix="$acl_final_exec_prefix" 7631 7632 eval additional_includedir=\"$includedir\" 7633 eval additional_libdir=\"$libdir\" 7634 7635 exec_prefix="$acl_save_exec_prefix" 7636 prefix="$acl_save_prefix" 7637 7638 else 7639 additional_includedir="$withval/include" 7640 additional_libdir="$withval/lib" 7641 fi 7642 fi 7643 7644fi; 7645 LIBINTL= 7646 LTLIBINTL= 7647 INCINTL= 7648 rpathdirs= 7649 ltrpathdirs= 7650 names_already_handled= 7651 names_next_round='intl ' 7652 while test -n "$names_next_round"; do 7653 names_this_round="$names_next_round" 7654 names_next_round= 7655 for name in $names_this_round; do 7656 already_handled= 7657 for n in $names_already_handled; do 7658 if test "$n" = "$name"; then 7659 already_handled=yes 7660 break 7661 fi 7662 done 7663 if test -z "$already_handled"; then 7664 names_already_handled="$names_already_handled $name" 7665 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7666 eval value=\"\$HAVE_LIB$uppername\" 7667 if test -n "$value"; then 7668 if test "$value" = yes; then 7669 eval value=\"\$LIB$uppername\" 7670 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 7671 eval value=\"\$LTLIB$uppername\" 7672 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 7673 else 7674 : 7675 fi 7676 else 7677 found_dir= 7678 found_la= 7679 found_so= 7680 found_a= 7681 if test $use_additional = yes; then 7682 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 7683 found_dir="$additional_libdir" 7684 found_so="$additional_libdir/lib$name.$shlibext" 7685 if test -f "$additional_libdir/lib$name.la"; then 7686 found_la="$additional_libdir/lib$name.la" 7687 fi 7688 else 7689 if test -f "$additional_libdir/lib$name.$libext"; then 7690 found_dir="$additional_libdir" 7691 found_a="$additional_libdir/lib$name.$libext" 7692 if test -f "$additional_libdir/lib$name.la"; then 7693 found_la="$additional_libdir/lib$name.la" 7694 fi 7695 fi 7696 fi 7697 fi 7698 if test "X$found_dir" = "X"; then 7699 for x in $LDFLAGS $LTLIBINTL; do 7700 7701 acl_save_prefix="$prefix" 7702 prefix="$acl_final_prefix" 7703 acl_save_exec_prefix="$exec_prefix" 7704 exec_prefix="$acl_final_exec_prefix" 7705 eval x=\"$x\" 7706 exec_prefix="$acl_save_exec_prefix" 7707 prefix="$acl_save_prefix" 7708 7709 case "$x" in 7710 -L*) 7711 dir=`echo "X$x" | sed -e 's/^X-L//'` 7712 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 7713 found_dir="$dir" 7714 found_so="$dir/lib$name.$shlibext" 7715 if test -f "$dir/lib$name.la"; then 7716 found_la="$dir/lib$name.la" 7717 fi 7718 else 7719 if test -f "$dir/lib$name.$libext"; then 7720 found_dir="$dir" 7721 found_a="$dir/lib$name.$libext" 7722 if test -f "$dir/lib$name.la"; then 7723 found_la="$dir/lib$name.la" 7724 fi 7725 fi 7726 fi 7727 ;; 7728 esac 7729 if test "X$found_dir" != "X"; then 7730 break 7731 fi 7732 done 7733 fi 7734 if test "X$found_dir" != "X"; then 7735 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 7736 if test "X$found_so" != "X"; then 7737 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 7738 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7739 else 7740 haveit= 7741 for x in $ltrpathdirs; do 7742 if test "X$x" = "X$found_dir"; then 7743 haveit=yes 7744 break 7745 fi 7746 done 7747 if test -z "$haveit"; then 7748 ltrpathdirs="$ltrpathdirs $found_dir" 7749 fi 7750 if test "$hardcode_direct" = yes; then 7751 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7752 else 7753 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 7754 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7755 haveit= 7756 for x in $rpathdirs; do 7757 if test "X$x" = "X$found_dir"; then 7758 haveit=yes 7759 break 7760 fi 7761 done 7762 if test -z "$haveit"; then 7763 rpathdirs="$rpathdirs $found_dir" 7764 fi 7765 else 7766 haveit= 7767 for x in $LDFLAGS $LIBINTL; do 7768 7769 acl_save_prefix="$prefix" 7770 prefix="$acl_final_prefix" 7771 acl_save_exec_prefix="$exec_prefix" 7772 exec_prefix="$acl_final_exec_prefix" 7773 eval x=\"$x\" 7774 exec_prefix="$acl_save_exec_prefix" 7775 prefix="$acl_save_prefix" 7776 7777 if test "X$x" = "X-L$found_dir"; then 7778 haveit=yes 7779 break 7780 fi 7781 done 7782 if test -z "$haveit"; then 7783 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 7784 fi 7785 if test "$hardcode_minus_L" != no; then 7786 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7787 else 7788 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7789 fi 7790 fi 7791 fi 7792 fi 7793 else 7794 if test "X$found_a" != "X"; then 7795 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 7796 else 7797 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 7798 fi 7799 fi 7800 additional_includedir= 7801 case "$found_dir" in 7802 */lib | */lib/) 7803 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 7804 additional_includedir="$basedir/include" 7805 ;; 7806 esac 7807 if test "X$additional_includedir" != "X"; then 7808 if test "X$additional_includedir" != "X/usr/include"; then 7809 haveit= 7810 if test "X$additional_includedir" = "X/usr/local/include"; then 7811 if test -n "$GCC"; then 7812 case $host_os in 7813 linux*) haveit=yes;; 7814 esac 7815 fi 7816 fi 7817 if test -z "$haveit"; then 7818 for x in $CPPFLAGS $INCINTL; do 7819 7820 acl_save_prefix="$prefix" 7821 prefix="$acl_final_prefix" 7822 acl_save_exec_prefix="$exec_prefix" 7823 exec_prefix="$acl_final_exec_prefix" 7824 eval x=\"$x\" 7825 exec_prefix="$acl_save_exec_prefix" 7826 prefix="$acl_save_prefix" 7827 7828 if test "X$x" = "X-I$additional_includedir"; then 7829 haveit=yes 7830 break 7831 fi 7832 done 7833 if test -z "$haveit"; then 7834 if test -d "$additional_includedir"; then 7835 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 7836 fi 7837 fi 7838 fi 7839 fi 7840 fi 7841 if test -n "$found_la"; then 7842 save_libdir="$libdir" 7843 case "$found_la" in 7844 */* | *\\*) . "$found_la" ;; 7845 *) . "./$found_la" ;; 7846 esac 7847 libdir="$save_libdir" 7848 for dep in $dependency_libs; do 7849 case "$dep" in 7850 -L*) 7851 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7852 if test "X$additional_libdir" != "X/usr/lib"; then 7853 haveit= 7854 if test "X$additional_libdir" = "X/usr/local/lib"; then 7855 if test -n "$GCC"; then 7856 case $host_os in 7857 linux*) haveit=yes;; 7858 esac 7859 fi 7860 fi 7861 if test -z "$haveit"; then 7862 haveit= 7863 for x in $LDFLAGS $LIBINTL; do 7864 7865 acl_save_prefix="$prefix" 7866 prefix="$acl_final_prefix" 7867 acl_save_exec_prefix="$exec_prefix" 7868 exec_prefix="$acl_final_exec_prefix" 7869 eval x=\"$x\" 7870 exec_prefix="$acl_save_exec_prefix" 7871 prefix="$acl_save_prefix" 7872 7873 if test "X$x" = "X-L$additional_libdir"; then 7874 haveit=yes 7875 break 7876 fi 7877 done 7878 if test -z "$haveit"; then 7879 if test -d "$additional_libdir"; then 7880 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 7881 fi 7882 fi 7883 haveit= 7884 for x in $LDFLAGS $LTLIBINTL; do 7885 7886 acl_save_prefix="$prefix" 7887 prefix="$acl_final_prefix" 7888 acl_save_exec_prefix="$exec_prefix" 7889 exec_prefix="$acl_final_exec_prefix" 7890 eval x=\"$x\" 7891 exec_prefix="$acl_save_exec_prefix" 7892 prefix="$acl_save_prefix" 7893 7894 if test "X$x" = "X-L$additional_libdir"; then 7895 haveit=yes 7896 break 7897 fi 7898 done 7899 if test -z "$haveit"; then 7900 if test -d "$additional_libdir"; then 7901 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 7902 fi 7903 fi 7904 fi 7905 fi 7906 ;; 7907 -R*) 7908 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7909 if test "$enable_rpath" != no; then 7910 haveit= 7911 for x in $rpathdirs; do 7912 if test "X$x" = "X$dir"; then 7913 haveit=yes 7914 break 7915 fi 7916 done 7917 if test -z "$haveit"; then 7918 rpathdirs="$rpathdirs $dir" 7919 fi 7920 haveit= 7921 for x in $ltrpathdirs; do 7922 if test "X$x" = "X$dir"; then 7923 haveit=yes 7924 break 7925 fi 7926 done 7927 if test -z "$haveit"; then 7928 ltrpathdirs="$ltrpathdirs $dir" 7929 fi 7930 fi 7931 ;; 7932 -l*) 7933 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7934 ;; 7935 *.la) 7936 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7937 ;; 7938 *) 7939 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 7940 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 7941 ;; 7942 esac 7943 done 7944 fi 7945 else 7946 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7947 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 7948 fi 7949 fi 7950 fi 7951 done 7952 done 7953 if test "X$rpathdirs" != "X"; then 7954 if test -n "$hardcode_libdir_separator"; then 7955 alldirs= 7956 for found_dir in $rpathdirs; do 7957 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7958 done 7959 acl_save_libdir="$libdir" 7960 libdir="$alldirs" 7961 eval flag=\"$hardcode_libdir_flag_spec\" 7962 libdir="$acl_save_libdir" 7963 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7964 else 7965 for found_dir in $rpathdirs; do 7966 acl_save_libdir="$libdir" 7967 libdir="$found_dir" 7968 eval flag=\"$hardcode_libdir_flag_spec\" 7969 libdir="$acl_save_libdir" 7970 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7971 done 7972 fi 7973 fi 7974 if test "X$ltrpathdirs" != "X"; then 7975 for found_dir in $ltrpathdirs; do 7976 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 7977 done 7978 fi 7979 7980 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 7981echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 7982if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then 7983 echo $ECHO_N "(cached) $ECHO_C" >&6 7984else 7985 gt_save_CPPFLAGS="$CPPFLAGS" 7986 CPPFLAGS="$CPPFLAGS $INCINTL" 7987 gt_save_LIBS="$LIBS" 7988 LIBS="$LIBS $LIBINTL" 7989 cat >conftest.$ac_ext <<_ACEOF 7990#line $LINENO "configure" 7991/* confdefs.h. */ 7992_ACEOF 7993cat confdefs.h >>conftest.$ac_ext 7994cat >>conftest.$ac_ext <<_ACEOF 7995/* end confdefs.h. */ 7996#include <libintl.h> 7997extern int _nl_msg_cat_cntr; 7998extern 7999#ifdef __cplusplus 8000"C" 8001#endif 8002const char *_nl_expand_alias (); 8003int 8004main () 8005{ 8006bindtextdomain ("", ""); 8007return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) 8008 ; 8009 return 0; 8010} 8011_ACEOF 8012rm -f conftest.$ac_objext conftest$ac_exeext 8013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8014 (eval $ac_link) 2>&5 8015 ac_status=$? 8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8017 (exit $ac_status); } && 8018 { ac_try='test -s conftest$ac_exeext' 8019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8020 (eval $ac_try) 2>&5 8021 ac_status=$? 8022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8023 (exit $ac_status); }; }; then 8024 gt_cv_func_gnugettext2_libintl=yes 8025else 8026 echo "$as_me: failed program was:" >&5 8027sed 's/^/| /' conftest.$ac_ext >&5 8028 8029gt_cv_func_gnugettext2_libintl=no 8030fi 8031rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8032 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then 8033 LIBS="$LIBS $LIBICONV" 8034 cat >conftest.$ac_ext <<_ACEOF 8035#line $LINENO "configure" 8036/* confdefs.h. */ 8037_ACEOF 8038cat confdefs.h >>conftest.$ac_ext 8039cat >>conftest.$ac_ext <<_ACEOF 8040/* end confdefs.h. */ 8041#include <libintl.h> 8042extern int _nl_msg_cat_cntr; 8043extern 8044#ifdef __cplusplus 8045"C" 8046#endif 8047const char *_nl_expand_alias (); 8048int 8049main () 8050{ 8051bindtextdomain ("", ""); 8052return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0) 8053 ; 8054 return 0; 8055} 8056_ACEOF 8057rm -f conftest.$ac_objext conftest$ac_exeext 8058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8059 (eval $ac_link) 2>&5 8060 ac_status=$? 8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8062 (exit $ac_status); } && 8063 { ac_try='test -s conftest$ac_exeext' 8064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8065 (eval $ac_try) 2>&5 8066 ac_status=$? 8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8068 (exit $ac_status); }; }; then 8069 LIBINTL="$LIBINTL $LIBICONV" 8070 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 8071 gt_cv_func_gnugettext2_libintl=yes 8072 8073else 8074 echo "$as_me: failed program was:" >&5 8075sed 's/^/| /' conftest.$ac_ext >&5 8076 8077fi 8078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8079 fi 8080 CPPFLAGS="$gt_save_CPPFLAGS" 8081 LIBS="$gt_save_LIBS" 8082fi 8083echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5 8084echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6 8085 fi 8086 8087 if test "$gt_cv_func_gnugettext2_libc" = "yes" \ 8088 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \ 8089 && test "$PACKAGE" != gettext-runtime \ 8090 && test "$PACKAGE" != gettext-tools; }; then 8091 gt_use_preinstalled_gnugettext=yes 8092 else 8093 LIBINTL= 8094 LTLIBINTL= 8095 INCINTL= 8096 fi 8097 8098 8099 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 8100 nls_cv_use_gnu_gettext=yes 8101 fi 8102 fi 8103 8104 if test "$nls_cv_use_gnu_gettext" = "yes"; then 8105 BUILD_INCLUDED_LIBINTL=yes 8106 USE_INCLUDED_LIBINTL=yes 8107 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 8108 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 8109 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 8110 fi 8111 8112 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 8113 || test "$nls_cv_use_gnu_gettext" = "yes"; then 8114 CATOBJEXT=.gmo 8115 fi 8116 8117 8118 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 8119 || test "$nls_cv_use_gnu_gettext" = "yes"; then 8120 8121cat >>confdefs.h <<\_ACEOF 8122#define ENABLE_NLS 1 8123_ACEOF 8124 8125 else 8126 USE_NLS=no 8127 fi 8128 fi 8129 8130 echo "$as_me:$LINENO: checking whether to use NLS" >&5 8131echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 8132 echo "$as_me:$LINENO: result: $USE_NLS" >&5 8133echo "${ECHO_T}$USE_NLS" >&6 8134 if test "$USE_NLS" = "yes"; then 8135 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 8136echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 8137 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 8138 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then 8139 gt_source="external libintl" 8140 else 8141 gt_source="libc" 8142 fi 8143 else 8144 gt_source="included intl directory" 8145 fi 8146 echo "$as_me:$LINENO: result: $gt_source" >&5 8147echo "${ECHO_T}$gt_source" >&6 8148 fi 8149 8150 if test "$USE_NLS" = "yes"; then 8151 8152 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 8153 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then 8154 echo "$as_me:$LINENO: checking how to link with libintl" >&5 8155echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 8156 echo "$as_me:$LINENO: result: $LIBINTL" >&5 8157echo "${ECHO_T}$LIBINTL" >&6 8158 8159 for element in $INCINTL; do 8160 haveit= 8161 for x in $CPPFLAGS; do 8162 8163 acl_save_prefix="$prefix" 8164 prefix="$acl_final_prefix" 8165 acl_save_exec_prefix="$exec_prefix" 8166 exec_prefix="$acl_final_exec_prefix" 8167 eval x=\"$x\" 8168 exec_prefix="$acl_save_exec_prefix" 8169 prefix="$acl_save_prefix" 8170 8171 if test "X$x" = "X$element"; then 8172 haveit=yes 8173 break 8174 fi 8175 done 8176 if test -z "$haveit"; then 8177 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8178 fi 8179 done 8180 8181 fi 8182 8183 8184cat >>confdefs.h <<\_ACEOF 8185#define HAVE_GETTEXT 1 8186_ACEOF 8187 8188 8189cat >>confdefs.h <<\_ACEOF 8190#define HAVE_DCGETTEXT 1 8191_ACEOF 8192 8193 fi 8194 8195 POSUB=po 8196 fi 8197 8198 8199 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 8200 BUILD_INCLUDED_LIBINTL=yes 8201 fi 8202 8203 8204 8205 8206 8207 nls_cv_header_intl= 8208 nls_cv_header_libgt= 8209 8210 DATADIRNAME=share 8211 8212 8213 INSTOBJEXT=.mo 8214 8215 8216 GENCAT=gencat 8217 8218 8219 if test "$USE_INCLUDED_LIBINTL" = yes; then 8220 INTLOBJS="\$(GETTOBJS)" 8221 fi 8222 8223 8224 INTL_LIBTOOL_SUFFIX_PREFIX= 8225 8226 8227 8228 INTLLIBS="$LIBINTL" 8229 8230 8231 8232 8233 8234 8235 8236 8237echo "$as_me:$LINENO: checking for ANSI C header files" >&5 8238echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 8239if test "${ac_cv_header_stdc+set}" = set; then 8240 echo $ECHO_N "(cached) $ECHO_C" >&6 8241else 8242 cat >conftest.$ac_ext <<_ACEOF 8243#line $LINENO "configure" 8244/* confdefs.h. */ 8245_ACEOF 8246cat confdefs.h >>conftest.$ac_ext 8247cat >>conftest.$ac_ext <<_ACEOF 8248/* end confdefs.h. */ 8249#include <stdlib.h> 8250#include <stdarg.h> 8251#include <string.h> 8252#include <float.h> 8253 8254int 8255main () 8256{ 8257 8258 ; 8259 return 0; 8260} 8261_ACEOF 8262rm -f conftest.$ac_objext 8263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8264 (eval $ac_compile) 2>&5 8265 ac_status=$? 8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8267 (exit $ac_status); } && 8268 { ac_try='test -s conftest.$ac_objext' 8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8270 (eval $ac_try) 2>&5 8271 ac_status=$? 8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8273 (exit $ac_status); }; }; then 8274 ac_cv_header_stdc=yes 8275else 8276 echo "$as_me: failed program was:" >&5 8277sed 's/^/| /' conftest.$ac_ext >&5 8278 8279ac_cv_header_stdc=no 8280fi 8281rm -f conftest.$ac_objext conftest.$ac_ext 8282 8283if test $ac_cv_header_stdc = yes; then 8284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8285 cat >conftest.$ac_ext <<_ACEOF 8286#line $LINENO "configure" 8287/* confdefs.h. */ 8288_ACEOF 8289cat confdefs.h >>conftest.$ac_ext 8290cat >>conftest.$ac_ext <<_ACEOF 8291/* end confdefs.h. */ 8292#include <string.h> 8293 8294_ACEOF 8295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8296 $EGREP "memchr" >/dev/null 2>&1; then 8297 : 8298else 8299 ac_cv_header_stdc=no 8300fi 8301rm -f conftest* 8302 8303fi 8304 8305if test $ac_cv_header_stdc = yes; then 8306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8307 cat >conftest.$ac_ext <<_ACEOF 8308#line $LINENO "configure" 8309/* confdefs.h. */ 8310_ACEOF 8311cat confdefs.h >>conftest.$ac_ext 8312cat >>conftest.$ac_ext <<_ACEOF 8313/* end confdefs.h. */ 8314#include <stdlib.h> 8315 8316_ACEOF 8317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8318 $EGREP "free" >/dev/null 2>&1; then 8319 : 8320else 8321 ac_cv_header_stdc=no 8322fi 8323rm -f conftest* 8324 8325fi 8326 8327if test $ac_cv_header_stdc = yes; then 8328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8329 if test "$cross_compiling" = yes; then 8330 : 8331else 8332 cat >conftest.$ac_ext <<_ACEOF 8333#line $LINENO "configure" 8334/* confdefs.h. */ 8335_ACEOF 8336cat confdefs.h >>conftest.$ac_ext 8337cat >>conftest.$ac_ext <<_ACEOF 8338/* end confdefs.h. */ 8339#include <ctype.h> 8340#if ((' ' & 0x0FF) == 0x020) 8341# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8342# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8343#else 8344# define ISLOWER(c) \ 8345 (('a' <= (c) && (c) <= 'i') \ 8346 || ('j' <= (c) && (c) <= 'r') \ 8347 || ('s' <= (c) && (c) <= 'z')) 8348# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8349#endif 8350 8351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8352int 8353main () 8354{ 8355 int i; 8356 for (i = 0; i < 256; i++) 8357 if (XOR (islower (i), ISLOWER (i)) 8358 || toupper (i) != TOUPPER (i)) 8359 exit(2); 8360 exit (0); 8361} 8362_ACEOF 8363rm -f conftest$ac_exeext 8364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8365 (eval $ac_link) 2>&5 8366 ac_status=$? 8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8370 (eval $ac_try) 2>&5 8371 ac_status=$? 8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8373 (exit $ac_status); }; }; then 8374 : 8375else 8376 echo "$as_me: program exited with status $ac_status" >&5 8377echo "$as_me: failed program was:" >&5 8378sed 's/^/| /' conftest.$ac_ext >&5 8379 8380( exit $ac_status ) 8381ac_cv_header_stdc=no 8382fi 8383rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8384fi 8385fi 8386fi 8387echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 8388echo "${ECHO_T}$ac_cv_header_stdc" >&6 8389if test $ac_cv_header_stdc = yes; then 8390 8391cat >>confdefs.h <<\_ACEOF 8392#define STDC_HEADERS 1 8393_ACEOF 8394 8395fi 8396 8397echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 8398echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 8399if test "${ac_cv_header_sys_wait_h+set}" = set; then 8400 echo $ECHO_N "(cached) $ECHO_C" >&6 8401else 8402 cat >conftest.$ac_ext <<_ACEOF 8403#line $LINENO "configure" 8404/* confdefs.h. */ 8405_ACEOF 8406cat confdefs.h >>conftest.$ac_ext 8407cat >>conftest.$ac_ext <<_ACEOF 8408/* end confdefs.h. */ 8409#include <sys/types.h> 8410#include <sys/wait.h> 8411#ifndef WEXITSTATUS 8412# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 8413#endif 8414#ifndef WIFEXITED 8415# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 8416#endif 8417 8418int 8419main () 8420{ 8421 int s; 8422 wait (&s); 8423 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 8424 ; 8425 return 0; 8426} 8427_ACEOF 8428rm -f conftest.$ac_objext 8429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8430 (eval $ac_compile) 2>&5 8431 ac_status=$? 8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8433 (exit $ac_status); } && 8434 { ac_try='test -s conftest.$ac_objext' 8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8436 (eval $ac_try) 2>&5 8437 ac_status=$? 8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8439 (exit $ac_status); }; }; then 8440 ac_cv_header_sys_wait_h=yes 8441else 8442 echo "$as_me: failed program was:" >&5 8443sed 's/^/| /' conftest.$ac_ext >&5 8444 8445ac_cv_header_sys_wait_h=no 8446fi 8447rm -f conftest.$ac_objext conftest.$ac_ext 8448fi 8449echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 8450echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 8451if test $ac_cv_header_sys_wait_h = yes; then 8452 8453cat >>confdefs.h <<\_ACEOF 8454#define HAVE_SYS_WAIT_H 1 8455_ACEOF 8456 8457fi 8458 8459echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 8460echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 8461if test "${ac_cv_header_time+set}" = set; then 8462 echo $ECHO_N "(cached) $ECHO_C" >&6 8463else 8464 cat >conftest.$ac_ext <<_ACEOF 8465#line $LINENO "configure" 8466/* confdefs.h. */ 8467_ACEOF 8468cat confdefs.h >>conftest.$ac_ext 8469cat >>conftest.$ac_ext <<_ACEOF 8470/* end confdefs.h. */ 8471#include <sys/types.h> 8472#include <sys/time.h> 8473#include <time.h> 8474 8475int 8476main () 8477{ 8478if ((struct tm *) 0) 8479return 0; 8480 ; 8481 return 0; 8482} 8483_ACEOF 8484rm -f conftest.$ac_objext 8485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8486 (eval $ac_compile) 2>&5 8487 ac_status=$? 8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8489 (exit $ac_status); } && 8490 { ac_try='test -s conftest.$ac_objext' 8491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8492 (eval $ac_try) 2>&5 8493 ac_status=$? 8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8495 (exit $ac_status); }; }; then 8496 ac_cv_header_time=yes 8497else 8498 echo "$as_me: failed program was:" >&5 8499sed 's/^/| /' conftest.$ac_ext >&5 8500 8501ac_cv_header_time=no 8502fi 8503rm -f conftest.$ac_objext conftest.$ac_ext 8504fi 8505echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 8506echo "${ECHO_T}$ac_cv_header_time" >&6 8507if test $ac_cv_header_time = yes; then 8508 8509cat >>confdefs.h <<\_ACEOF 8510#define TIME_WITH_SYS_TIME 1 8511_ACEOF 8512 8513fi 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533for ac_header in fcntl.h limits.h locale.h libintl.h mcheck.h \ 8534 netdb.h netinet/in.h signum.h stdarg.h string.h \ 8535 sys/param.h sys/socket.h sys/time.h unistd.h \ 8536 termios.h stropts.h wchar.h wctype.h 8537do 8538as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8539if eval "test \"\${$as_ac_Header+set}\" = set"; then 8540 echo "$as_me:$LINENO: checking for $ac_header" >&5 8541echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8542if eval "test \"\${$as_ac_Header+set}\" = set"; then 8543 echo $ECHO_N "(cached) $ECHO_C" >&6 8544fi 8545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8546echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8547else 8548 # Is the header compilable? 8549echo "$as_me:$LINENO: checking $ac_header usability" >&5 8550echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8551cat >conftest.$ac_ext <<_ACEOF 8552#line $LINENO "configure" 8553/* confdefs.h. */ 8554_ACEOF 8555cat confdefs.h >>conftest.$ac_ext 8556cat >>conftest.$ac_ext <<_ACEOF 8557/* end confdefs.h. */ 8558$ac_includes_default 8559#include <$ac_header> 8560_ACEOF 8561rm -f conftest.$ac_objext 8562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8563 (eval $ac_compile) 2>&5 8564 ac_status=$? 8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8566 (exit $ac_status); } && 8567 { ac_try='test -s conftest.$ac_objext' 8568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8569 (eval $ac_try) 2>&5 8570 ac_status=$? 8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8572 (exit $ac_status); }; }; then 8573 ac_header_compiler=yes 8574else 8575 echo "$as_me: failed program was:" >&5 8576sed 's/^/| /' conftest.$ac_ext >&5 8577 8578ac_header_compiler=no 8579fi 8580rm -f conftest.$ac_objext conftest.$ac_ext 8581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8582echo "${ECHO_T}$ac_header_compiler" >&6 8583 8584# Is the header present? 8585echo "$as_me:$LINENO: checking $ac_header presence" >&5 8586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8587cat >conftest.$ac_ext <<_ACEOF 8588#line $LINENO "configure" 8589/* confdefs.h. */ 8590_ACEOF 8591cat confdefs.h >>conftest.$ac_ext 8592cat >>conftest.$ac_ext <<_ACEOF 8593/* end confdefs.h. */ 8594#include <$ac_header> 8595_ACEOF 8596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8598 ac_status=$? 8599 grep -v '^ *+' conftest.er1 >conftest.err 8600 rm -f conftest.er1 8601 cat conftest.err >&5 8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8603 (exit $ac_status); } >/dev/null; then 8604 if test -s conftest.err; then 8605 ac_cpp_err=$ac_c_preproc_warn_flag 8606 else 8607 ac_cpp_err= 8608 fi 8609else 8610 ac_cpp_err=yes 8611fi 8612if test -z "$ac_cpp_err"; then 8613 ac_header_preproc=yes 8614else 8615 echo "$as_me: failed program was:" >&5 8616sed 's/^/| /' conftest.$ac_ext >&5 8617 8618 ac_header_preproc=no 8619fi 8620rm -f conftest.err conftest.$ac_ext 8621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8622echo "${ECHO_T}$ac_header_preproc" >&6 8623 8624# So? What about this header? 8625case $ac_header_compiler:$ac_header_preproc in 8626 yes:no ) 8627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8631 ( 8632 cat <<\_ASBOX 8633## ------------------------------------ ## 8634## Report this to bug-autoconf@gnu.org. ## 8635## ------------------------------------ ## 8636_ASBOX 8637 ) | 8638 sed "s/^/$as_me: WARNING: /" >&2 8639 ;; 8640 no:yes ) 8641 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8642echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8643 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8644echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8647 ( 8648 cat <<\_ASBOX 8649## ------------------------------------ ## 8650## Report this to bug-autoconf@gnu.org. ## 8651## ------------------------------------ ## 8652_ASBOX 8653 ) | 8654 sed "s/^/$as_me: WARNING: /" >&2 8655 ;; 8656esac 8657echo "$as_me:$LINENO: checking for $ac_header" >&5 8658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8659if eval "test \"\${$as_ac_Header+set}\" = set"; then 8660 echo $ECHO_N "(cached) $ECHO_C" >&6 8661else 8662 eval "$as_ac_Header=$ac_header_preproc" 8663fi 8664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8666 8667fi 8668if test `eval echo '${'$as_ac_Header'}'` = yes; then 8669 cat >>confdefs.h <<_ACEOF 8670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8671_ACEOF 8672 8673fi 8674 8675done 8676 8677 8678if test "$ac_cv_header_string_h" = yes 8679then 8680 8681for ac_header in memory.h 8682do 8683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8684if eval "test \"\${$as_ac_Header+set}\" = set"; then 8685 echo "$as_me:$LINENO: checking for $ac_header" >&5 8686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8687if eval "test \"\${$as_ac_Header+set}\" = set"; then 8688 echo $ECHO_N "(cached) $ECHO_C" >&6 8689fi 8690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8692else 8693 # Is the header compilable? 8694echo "$as_me:$LINENO: checking $ac_header usability" >&5 8695echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8696cat >conftest.$ac_ext <<_ACEOF 8697#line $LINENO "configure" 8698/* confdefs.h. */ 8699_ACEOF 8700cat confdefs.h >>conftest.$ac_ext 8701cat >>conftest.$ac_ext <<_ACEOF 8702/* end confdefs.h. */ 8703$ac_includes_default 8704#include <$ac_header> 8705_ACEOF 8706rm -f conftest.$ac_objext 8707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8708 (eval $ac_compile) 2>&5 8709 ac_status=$? 8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8711 (exit $ac_status); } && 8712 { ac_try='test -s conftest.$ac_objext' 8713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8714 (eval $ac_try) 2>&5 8715 ac_status=$? 8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8717 (exit $ac_status); }; }; then 8718 ac_header_compiler=yes 8719else 8720 echo "$as_me: failed program was:" >&5 8721sed 's/^/| /' conftest.$ac_ext >&5 8722 8723ac_header_compiler=no 8724fi 8725rm -f conftest.$ac_objext conftest.$ac_ext 8726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8727echo "${ECHO_T}$ac_header_compiler" >&6 8728 8729# Is the header present? 8730echo "$as_me:$LINENO: checking $ac_header presence" >&5 8731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8732cat >conftest.$ac_ext <<_ACEOF 8733#line $LINENO "configure" 8734/* confdefs.h. */ 8735_ACEOF 8736cat confdefs.h >>conftest.$ac_ext 8737cat >>conftest.$ac_ext <<_ACEOF 8738/* end confdefs.h. */ 8739#include <$ac_header> 8740_ACEOF 8741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8743 ac_status=$? 8744 grep -v '^ *+' conftest.er1 >conftest.err 8745 rm -f conftest.er1 8746 cat conftest.err >&5 8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8748 (exit $ac_status); } >/dev/null; then 8749 if test -s conftest.err; then 8750 ac_cpp_err=$ac_c_preproc_warn_flag 8751 else 8752 ac_cpp_err= 8753 fi 8754else 8755 ac_cpp_err=yes 8756fi 8757if test -z "$ac_cpp_err"; then 8758 ac_header_preproc=yes 8759else 8760 echo "$as_me: failed program was:" >&5 8761sed 's/^/| /' conftest.$ac_ext >&5 8762 8763 ac_header_preproc=no 8764fi 8765rm -f conftest.err conftest.$ac_ext 8766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8767echo "${ECHO_T}$ac_header_preproc" >&6 8768 8769# So? What about this header? 8770case $ac_header_compiler:$ac_header_preproc in 8771 yes:no ) 8772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8776 ( 8777 cat <<\_ASBOX 8778## ------------------------------------ ## 8779## Report this to bug-autoconf@gnu.org. ## 8780## ------------------------------------ ## 8781_ASBOX 8782 ) | 8783 sed "s/^/$as_me: WARNING: /" >&2 8784 ;; 8785 no:yes ) 8786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8789echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8791echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8792 ( 8793 cat <<\_ASBOX 8794## ------------------------------------ ## 8795## Report this to bug-autoconf@gnu.org. ## 8796## ------------------------------------ ## 8797_ASBOX 8798 ) | 8799 sed "s/^/$as_me: WARNING: /" >&2 8800 ;; 8801esac 8802echo "$as_me:$LINENO: checking for $ac_header" >&5 8803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8804if eval "test \"\${$as_ac_Header+set}\" = set"; then 8805 echo $ECHO_N "(cached) $ECHO_C" >&6 8806else 8807 eval "$as_ac_Header=$ac_header_preproc" 8808fi 8809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8811 8812fi 8813if test `eval echo '${'$as_ac_Header'}'` = yes; then 8814 cat >>confdefs.h <<_ACEOF 8815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8816_ACEOF 8817 8818fi 8819 8820done 8821 8822else 8823 8824for ac_header in strings.h 8825do 8826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8827if eval "test \"\${$as_ac_Header+set}\" = set"; then 8828 echo "$as_me:$LINENO: checking for $ac_header" >&5 8829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8830if eval "test \"\${$as_ac_Header+set}\" = set"; then 8831 echo $ECHO_N "(cached) $ECHO_C" >&6 8832fi 8833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8835else 8836 # Is the header compilable? 8837echo "$as_me:$LINENO: checking $ac_header usability" >&5 8838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8839cat >conftest.$ac_ext <<_ACEOF 8840#line $LINENO "configure" 8841/* confdefs.h. */ 8842_ACEOF 8843cat confdefs.h >>conftest.$ac_ext 8844cat >>conftest.$ac_ext <<_ACEOF 8845/* end confdefs.h. */ 8846$ac_includes_default 8847#include <$ac_header> 8848_ACEOF 8849rm -f conftest.$ac_objext 8850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8851 (eval $ac_compile) 2>&5 8852 ac_status=$? 8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8854 (exit $ac_status); } && 8855 { ac_try='test -s conftest.$ac_objext' 8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8857 (eval $ac_try) 2>&5 8858 ac_status=$? 8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8860 (exit $ac_status); }; }; then 8861 ac_header_compiler=yes 8862else 8863 echo "$as_me: failed program was:" >&5 8864sed 's/^/| /' conftest.$ac_ext >&5 8865 8866ac_header_compiler=no 8867fi 8868rm -f conftest.$ac_objext conftest.$ac_ext 8869echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8870echo "${ECHO_T}$ac_header_compiler" >&6 8871 8872# Is the header present? 8873echo "$as_me:$LINENO: checking $ac_header presence" >&5 8874echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8875cat >conftest.$ac_ext <<_ACEOF 8876#line $LINENO "configure" 8877/* confdefs.h. */ 8878_ACEOF 8879cat confdefs.h >>conftest.$ac_ext 8880cat >>conftest.$ac_ext <<_ACEOF 8881/* end confdefs.h. */ 8882#include <$ac_header> 8883_ACEOF 8884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8886 ac_status=$? 8887 grep -v '^ *+' conftest.er1 >conftest.err 8888 rm -f conftest.er1 8889 cat conftest.err >&5 8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8891 (exit $ac_status); } >/dev/null; then 8892 if test -s conftest.err; then 8893 ac_cpp_err=$ac_c_preproc_warn_flag 8894 else 8895 ac_cpp_err= 8896 fi 8897else 8898 ac_cpp_err=yes 8899fi 8900if test -z "$ac_cpp_err"; then 8901 ac_header_preproc=yes 8902else 8903 echo "$as_me: failed program was:" >&5 8904sed 's/^/| /' conftest.$ac_ext >&5 8905 8906 ac_header_preproc=no 8907fi 8908rm -f conftest.err conftest.$ac_ext 8909echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8910echo "${ECHO_T}$ac_header_preproc" >&6 8911 8912# So? What about this header? 8913case $ac_header_compiler:$ac_header_preproc in 8914 yes:no ) 8915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8916echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8919 ( 8920 cat <<\_ASBOX 8921## ------------------------------------ ## 8922## Report this to bug-autoconf@gnu.org. ## 8923## ------------------------------------ ## 8924_ASBOX 8925 ) | 8926 sed "s/^/$as_me: WARNING: /" >&2 8927 ;; 8928 no:yes ) 8929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8935 ( 8936 cat <<\_ASBOX 8937## ------------------------------------ ## 8938## Report this to bug-autoconf@gnu.org. ## 8939## ------------------------------------ ## 8940_ASBOX 8941 ) | 8942 sed "s/^/$as_me: WARNING: /" >&2 8943 ;; 8944esac 8945echo "$as_me:$LINENO: checking for $ac_header" >&5 8946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8947if eval "test \"\${$as_ac_Header+set}\" = set"; then 8948 echo $ECHO_N "(cached) $ECHO_C" >&6 8949else 8950 eval "$as_ac_Header=$ac_header_preproc" 8951fi 8952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8954 8955fi 8956if test `eval echo '${'$as_ac_Header'}'` = yes; then 8957 cat >>confdefs.h <<_ACEOF 8958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8959_ACEOF 8960 8961fi 8962 8963done 8964 8965fi 8966 8967echo "$as_me:$LINENO: checking for pid_t" >&5 8968echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 8969if test "${ac_cv_type_pid_t+set}" = set; then 8970 echo $ECHO_N "(cached) $ECHO_C" >&6 8971else 8972 cat >conftest.$ac_ext <<_ACEOF 8973#line $LINENO "configure" 8974/* confdefs.h. */ 8975_ACEOF 8976cat confdefs.h >>conftest.$ac_ext 8977cat >>conftest.$ac_ext <<_ACEOF 8978/* end confdefs.h. */ 8979$ac_includes_default 8980int 8981main () 8982{ 8983if ((pid_t *) 0) 8984 return 0; 8985if (sizeof (pid_t)) 8986 return 0; 8987 ; 8988 return 0; 8989} 8990_ACEOF 8991rm -f conftest.$ac_objext 8992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8993 (eval $ac_compile) 2>&5 8994 ac_status=$? 8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8996 (exit $ac_status); } && 8997 { ac_try='test -s conftest.$ac_objext' 8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8999 (eval $ac_try) 2>&5 9000 ac_status=$? 9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9002 (exit $ac_status); }; }; then 9003 ac_cv_type_pid_t=yes 9004else 9005 echo "$as_me: failed program was:" >&5 9006sed 's/^/| /' conftest.$ac_ext >&5 9007 9008ac_cv_type_pid_t=no 9009fi 9010rm -f conftest.$ac_objext conftest.$ac_ext 9011fi 9012echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 9013echo "${ECHO_T}$ac_cv_type_pid_t" >&6 9014if test $ac_cv_type_pid_t = yes; then 9015 : 9016else 9017 9018cat >>confdefs.h <<_ACEOF 9019#define pid_t int 9020_ACEOF 9021 9022fi 9023 9024echo "$as_me:$LINENO: checking return type of signal handlers" >&5 9025echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 9026if test "${ac_cv_type_signal+set}" = set; then 9027 echo $ECHO_N "(cached) $ECHO_C" >&6 9028else 9029 cat >conftest.$ac_ext <<_ACEOF 9030#line $LINENO "configure" 9031/* confdefs.h. */ 9032_ACEOF 9033cat confdefs.h >>conftest.$ac_ext 9034cat >>conftest.$ac_ext <<_ACEOF 9035/* end confdefs.h. */ 9036#include <sys/types.h> 9037#include <signal.h> 9038#ifdef signal 9039# undef signal 9040#endif 9041#ifdef __cplusplus 9042extern "C" void (*signal (int, void (*)(int)))(int); 9043#else 9044void (*signal ()) (); 9045#endif 9046 9047int 9048main () 9049{ 9050int i; 9051 ; 9052 return 0; 9053} 9054_ACEOF 9055rm -f conftest.$ac_objext 9056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9057 (eval $ac_compile) 2>&5 9058 ac_status=$? 9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9060 (exit $ac_status); } && 9061 { ac_try='test -s conftest.$ac_objext' 9062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9063 (eval $ac_try) 2>&5 9064 ac_status=$? 9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9066 (exit $ac_status); }; }; then 9067 ac_cv_type_signal=void 9068else 9069 echo "$as_me: failed program was:" >&5 9070sed 's/^/| /' conftest.$ac_ext >&5 9071 9072ac_cv_type_signal=int 9073fi 9074rm -f conftest.$ac_objext conftest.$ac_ext 9075fi 9076echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 9077echo "${ECHO_T}$ac_cv_type_signal" >&6 9078 9079cat >>confdefs.h <<_ACEOF 9080#define RETSIGTYPE $ac_cv_type_signal 9081_ACEOF 9082 9083 9084echo "$as_me:$LINENO: checking for size_t" >&5 9085echo $ECHO_N "checking for size_t... $ECHO_C" >&6 9086if test "${ac_cv_type_size_t+set}" = set; then 9087 echo $ECHO_N "(cached) $ECHO_C" >&6 9088else 9089 cat >conftest.$ac_ext <<_ACEOF 9090#line $LINENO "configure" 9091/* confdefs.h. */ 9092_ACEOF 9093cat confdefs.h >>conftest.$ac_ext 9094cat >>conftest.$ac_ext <<_ACEOF 9095/* end confdefs.h. */ 9096$ac_includes_default 9097int 9098main () 9099{ 9100if ((size_t *) 0) 9101 return 0; 9102if (sizeof (size_t)) 9103 return 0; 9104 ; 9105 return 0; 9106} 9107_ACEOF 9108rm -f conftest.$ac_objext 9109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9110 (eval $ac_compile) 2>&5 9111 ac_status=$? 9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9113 (exit $ac_status); } && 9114 { ac_try='test -s conftest.$ac_objext' 9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9116 (eval $ac_try) 2>&5 9117 ac_status=$? 9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9119 (exit $ac_status); }; }; then 9120 ac_cv_type_size_t=yes 9121else 9122 echo "$as_me: failed program was:" >&5 9123sed 's/^/| /' conftest.$ac_ext >&5 9124 9125ac_cv_type_size_t=no 9126fi 9127rm -f conftest.$ac_objext conftest.$ac_ext 9128fi 9129echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 9130echo "${ECHO_T}$ac_cv_type_size_t" >&6 9131if test $ac_cv_type_size_t = yes; then 9132 : 9133else 9134 9135cat >>confdefs.h <<_ACEOF 9136#define size_t unsigned 9137_ACEOF 9138 9139fi 9140 9141echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 9142echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 9143if test "${ac_cv_type_uid_t+set}" = set; then 9144 echo $ECHO_N "(cached) $ECHO_C" >&6 9145else 9146 cat >conftest.$ac_ext <<_ACEOF 9147#line $LINENO "configure" 9148/* confdefs.h. */ 9149_ACEOF 9150cat confdefs.h >>conftest.$ac_ext 9151cat >>conftest.$ac_ext <<_ACEOF 9152/* end confdefs.h. */ 9153#include <sys/types.h> 9154 9155_ACEOF 9156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9157 $EGREP "uid_t" >/dev/null 2>&1; then 9158 ac_cv_type_uid_t=yes 9159else 9160 ac_cv_type_uid_t=no 9161fi 9162rm -f conftest* 9163 9164fi 9165echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 9166echo "${ECHO_T}$ac_cv_type_uid_t" >&6 9167if test $ac_cv_type_uid_t = no; then 9168 9169cat >>confdefs.h <<\_ACEOF 9170#define uid_t int 9171_ACEOF 9172 9173 9174cat >>confdefs.h <<\_ACEOF 9175#define gid_t int 9176_ACEOF 9177 9178fi 9179 9180echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5 9181echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6 9182if test "${ac_cv_type_getgroups+set}" = set; then 9183 echo $ECHO_N "(cached) $ECHO_C" >&6 9184else 9185 if test "$cross_compiling" = yes; then 9186 ac_cv_type_getgroups=cross 9187else 9188 cat >conftest.$ac_ext <<_ACEOF 9189#line $LINENO "configure" 9190/* confdefs.h. */ 9191_ACEOF 9192cat confdefs.h >>conftest.$ac_ext 9193cat >>conftest.$ac_ext <<_ACEOF 9194/* end confdefs.h. */ 9195/* Thanks to Mike Rendell for this test. */ 9196#include <sys/types.h> 9197#define NGID 256 9198#undef MAX 9199#define MAX(x, y) ((x) > (y) ? (x) : (y)) 9200 9201int 9202main () 9203{ 9204 gid_t gidset[NGID]; 9205 int i, n; 9206 union { gid_t gval; long lval; } val; 9207 9208 val.lval = -1; 9209 for (i = 0; i < NGID; i++) 9210 gidset[i] = val.gval; 9211 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 9212 gidset); 9213 /* Exit non-zero if getgroups seems to require an array of ints. This 9214 happens when gid_t is short but getgroups modifies an array of ints. */ 9215 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); 9216} 9217_ACEOF 9218rm -f conftest$ac_exeext 9219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9220 (eval $ac_link) 2>&5 9221 ac_status=$? 9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9225 (eval $ac_try) 2>&5 9226 ac_status=$? 9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9228 (exit $ac_status); }; }; then 9229 ac_cv_type_getgroups=gid_t 9230else 9231 echo "$as_me: program exited with status $ac_status" >&5 9232echo "$as_me: failed program was:" >&5 9233sed 's/^/| /' conftest.$ac_ext >&5 9234 9235( exit $ac_status ) 9236ac_cv_type_getgroups=int 9237fi 9238rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9239fi 9240if test $ac_cv_type_getgroups = cross; then 9241 cat >conftest.$ac_ext <<_ACEOF 9242#line $LINENO "configure" 9243/* confdefs.h. */ 9244_ACEOF 9245cat confdefs.h >>conftest.$ac_ext 9246cat >>conftest.$ac_ext <<_ACEOF 9247/* end confdefs.h. */ 9248#include <unistd.h> 9249 9250_ACEOF 9251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9252 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then 9253 ac_cv_type_getgroups=gid_t 9254else 9255 ac_cv_type_getgroups=int 9256fi 9257rm -f conftest* 9258 9259fi 9260fi 9261echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5 9262echo "${ECHO_T}$ac_cv_type_getgroups" >&6 9263 9264cat >>confdefs.h <<_ACEOF 9265#define GETGROUPS_T $ac_cv_type_getgroups 9266_ACEOF 9267 9268 9269 9270 echo "$as_me:$LINENO: checking for long long" >&5 9271echo $ECHO_N "checking for long long... $ECHO_C" >&6 9272if test "${ac_cv_type_long_long+set}" = set; then 9273 echo $ECHO_N "(cached) $ECHO_C" >&6 9274else 9275 cat >conftest.$ac_ext <<_ACEOF 9276#line $LINENO "configure" 9277/* confdefs.h. */ 9278_ACEOF 9279cat confdefs.h >>conftest.$ac_ext 9280cat >>conftest.$ac_ext <<_ACEOF 9281/* end confdefs.h. */ 9282long long ll = 1; int i = 63; 9283int 9284main () 9285{ 9286long long llmax = (long long) -1; 9287 return ll << i | ll >> i | llmax / ll | llmax % ll; 9288 ; 9289 return 0; 9290} 9291_ACEOF 9292rm -f conftest.$ac_objext conftest$ac_exeext 9293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9294 (eval $ac_link) 2>&5 9295 ac_status=$? 9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9297 (exit $ac_status); } && 9298 { ac_try='test -s conftest$ac_exeext' 9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9300 (eval $ac_try) 2>&5 9301 ac_status=$? 9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9303 (exit $ac_status); }; }; then 9304 ac_cv_type_long_long=yes 9305else 9306 echo "$as_me: failed program was:" >&5 9307sed 's/^/| /' conftest.$ac_ext >&5 9308 9309ac_cv_type_long_long=no 9310fi 9311rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9312fi 9313echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 9314echo "${ECHO_T}$ac_cv_type_long_long" >&6 9315 if test $ac_cv_type_long_long = yes; then 9316 9317cat >>confdefs.h <<\_ACEOF 9318#define HAVE_LONG_LONG 1 9319_ACEOF 9320 9321 fi 9322 9323 9324 echo "$as_me:$LINENO: checking for unsigned long long" >&5 9325echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 9326if test "${ac_cv_type_unsigned_long_long+set}" = set; then 9327 echo $ECHO_N "(cached) $ECHO_C" >&6 9328else 9329 cat >conftest.$ac_ext <<_ACEOF 9330#line $LINENO "configure" 9331/* confdefs.h. */ 9332_ACEOF 9333cat confdefs.h >>conftest.$ac_ext 9334cat >>conftest.$ac_ext <<_ACEOF 9335/* end confdefs.h. */ 9336unsigned long long ull = 1; int i = 63; 9337int 9338main () 9339{ 9340unsigned long long ullmax = (unsigned long long) -1; 9341 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 9342 ; 9343 return 0; 9344} 9345_ACEOF 9346rm -f conftest.$ac_objext conftest$ac_exeext 9347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9348 (eval $ac_link) 2>&5 9349 ac_status=$? 9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9351 (exit $ac_status); } && 9352 { ac_try='test -s conftest$ac_exeext' 9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9354 (eval $ac_try) 2>&5 9355 ac_status=$? 9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9357 (exit $ac_status); }; }; then 9358 ac_cv_type_unsigned_long_long=yes 9359else 9360 echo "$as_me: failed program was:" >&5 9361sed 's/^/| /' conftest.$ac_ext >&5 9362 9363ac_cv_type_unsigned_long_long=no 9364fi 9365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9366fi 9367echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 9368echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 9369 if test $ac_cv_type_unsigned_long_long = yes; then 9370 9371cat >>confdefs.h <<\_ACEOF 9372#define HAVE_UNSIGNED_LONG_LONG 1 9373_ACEOF 9374 9375 fi 9376 9377 9378 9379 echo "$as_me:$LINENO: checking for intmax_t" >&5 9380echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 9381if test "${ac_cv_type_intmax_t+set}" = set; then 9382 echo $ECHO_N "(cached) $ECHO_C" >&6 9383else 9384 cat >conftest.$ac_ext <<_ACEOF 9385#line $LINENO "configure" 9386/* confdefs.h. */ 9387_ACEOF 9388cat confdefs.h >>conftest.$ac_ext 9389cat >>conftest.$ac_ext <<_ACEOF 9390/* end confdefs.h. */ 9391$ac_includes_default 9392int 9393main () 9394{ 9395if ((intmax_t *) 0) 9396 return 0; 9397if (sizeof (intmax_t)) 9398 return 0; 9399 ; 9400 return 0; 9401} 9402_ACEOF 9403rm -f conftest.$ac_objext 9404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9405 (eval $ac_compile) 2>&5 9406 ac_status=$? 9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9408 (exit $ac_status); } && 9409 { ac_try='test -s conftest.$ac_objext' 9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9411 (eval $ac_try) 2>&5 9412 ac_status=$? 9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9414 (exit $ac_status); }; }; then 9415 ac_cv_type_intmax_t=yes 9416else 9417 echo "$as_me: failed program was:" >&5 9418sed 's/^/| /' conftest.$ac_ext >&5 9419 9420ac_cv_type_intmax_t=no 9421fi 9422rm -f conftest.$ac_objext conftest.$ac_ext 9423fi 9424echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 9425echo "${ECHO_T}$ac_cv_type_intmax_t" >&6 9426if test $ac_cv_type_intmax_t = yes; then 9427 : 9428else 9429 test $ac_cv_type_long_long = yes \ 9430 && ac_type='long long' \ 9431 || ac_type='long' 9432 9433cat >>confdefs.h <<_ACEOF 9434#define intmax_t $ac_type 9435_ACEOF 9436 9437fi 9438 9439 9440 9441 9442 echo "$as_me:$LINENO: checking for uintmax_t" >&5 9443echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 9444if test "${ac_cv_type_uintmax_t+set}" = set; then 9445 echo $ECHO_N "(cached) $ECHO_C" >&6 9446else 9447 cat >conftest.$ac_ext <<_ACEOF 9448#line $LINENO "configure" 9449/* confdefs.h. */ 9450_ACEOF 9451cat confdefs.h >>conftest.$ac_ext 9452cat >>conftest.$ac_ext <<_ACEOF 9453/* end confdefs.h. */ 9454$ac_includes_default 9455int 9456main () 9457{ 9458if ((uintmax_t *) 0) 9459 return 0; 9460if (sizeof (uintmax_t)) 9461 return 0; 9462 ; 9463 return 0; 9464} 9465_ACEOF 9466rm -f conftest.$ac_objext 9467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9468 (eval $ac_compile) 2>&5 9469 ac_status=$? 9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9471 (exit $ac_status); } && 9472 { ac_try='test -s conftest.$ac_objext' 9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9474 (eval $ac_try) 2>&5 9475 ac_status=$? 9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9477 (exit $ac_status); }; }; then 9478 ac_cv_type_uintmax_t=yes 9479else 9480 echo "$as_me: failed program was:" >&5 9481sed 's/^/| /' conftest.$ac_ext >&5 9482 9483ac_cv_type_uintmax_t=no 9484fi 9485rm -f conftest.$ac_objext conftest.$ac_ext 9486fi 9487echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 9488echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 9489if test $ac_cv_type_uintmax_t = yes; then 9490 : 9491else 9492 test $ac_cv_type_unsigned_long_long = yes \ 9493 && ac_type='unsigned long long' \ 9494 || ac_type='unsigned long' 9495 9496cat >>confdefs.h <<_ACEOF 9497#define uintmax_t $ac_type 9498_ACEOF 9499 9500fi 9501 9502 9503echo "$as_me:$LINENO: checking for ssize_t" >&5 9504echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 9505if test "${ac_cv_type_ssize_t+set}" = set; then 9506 echo $ECHO_N "(cached) $ECHO_C" >&6 9507else 9508 cat >conftest.$ac_ext <<_ACEOF 9509#line $LINENO "configure" 9510/* confdefs.h. */ 9511_ACEOF 9512cat confdefs.h >>conftest.$ac_ext 9513cat >>conftest.$ac_ext <<_ACEOF 9514/* end confdefs.h. */ 9515$ac_includes_default 9516int 9517main () 9518{ 9519if ((ssize_t *) 0) 9520 return 0; 9521if (sizeof (ssize_t)) 9522 return 0; 9523 ; 9524 return 0; 9525} 9526_ACEOF 9527rm -f conftest.$ac_objext 9528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9529 (eval $ac_compile) 2>&5 9530 ac_status=$? 9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9532 (exit $ac_status); } && 9533 { ac_try='test -s conftest.$ac_objext' 9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9535 (eval $ac_try) 2>&5 9536 ac_status=$? 9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9538 (exit $ac_status); }; }; then 9539 ac_cv_type_ssize_t=yes 9540else 9541 echo "$as_me: failed program was:" >&5 9542sed 's/^/| /' conftest.$ac_ext >&5 9543 9544ac_cv_type_ssize_t=no 9545fi 9546rm -f conftest.$ac_objext conftest.$ac_ext 9547fi 9548echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 9549echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 9550if test $ac_cv_type_ssize_t = yes; then 9551 : 9552else 9553 9554cat >>confdefs.h <<_ACEOF 9555#define ssize_t int 9556_ACEOF 9557 9558fi 9559 9560cat >conftest.$ac_ext <<_ACEOF 9561#line $LINENO "configure" 9562/* confdefs.h. */ 9563_ACEOF 9564cat confdefs.h >>conftest.$ac_ext 9565cat >>conftest.$ac_ext <<_ACEOF 9566/* end confdefs.h. */ 9567#include <stdio.h> 9568 9569_ACEOF 9570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9571 $EGREP "int.*sprintf" >/dev/null 2>&1; then 9572 9573cat >>confdefs.h <<\_ACEOF 9574#define SPRINTF_RET int 9575_ACEOF 9576 9577else 9578 cat >>confdefs.h <<\_ACEOF 9579#define SPRINTF_RET char * 9580_ACEOF 9581 9582fi 9583rm -f conftest* 9584 9585cat >conftest.$ac_ext <<_ACEOF 9586#line $LINENO "configure" 9587/* confdefs.h. */ 9588_ACEOF 9589cat confdefs.h >>conftest.$ac_ext 9590cat >>conftest.$ac_ext <<_ACEOF 9591/* end confdefs.h. */ 9592#include <sys/types.h> 9593int 9594main () 9595{ 9596 9597 time_t foo; 9598 foo = 0; 9599 9600 ; 9601 return 0; 9602} 9603_ACEOF 9604rm -f conftest.$ac_objext 9605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9606 (eval $ac_compile) 2>&5 9607 ac_status=$? 9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9609 (exit $ac_status); } && 9610 { ac_try='test -s conftest.$ac_objext' 9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9612 (eval $ac_try) 2>&5 9613 ac_status=$? 9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9615 (exit $ac_status); }; }; then 9616 9617cat >>confdefs.h <<\_ACEOF 9618#define TIME_T_IN_SYS_TYPES_H 1 9619_ACEOF 9620 9621else 9622 echo "$as_me: failed program was:" >&5 9623sed 's/^/| /' conftest.$ac_ext >&5 9624 9625fi 9626rm -f conftest.$ac_objext conftest.$ac_ext 9627 9628 9629cat >>confdefs.h <<\_ACEOF 9630#define REGEX_MALLOC 1 9631_ACEOF 9632 9633 9634for ac_func in vprintf 9635do 9636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9637echo "$as_me:$LINENO: checking for $ac_func" >&5 9638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9639if eval "test \"\${$as_ac_var+set}\" = set"; then 9640 echo $ECHO_N "(cached) $ECHO_C" >&6 9641else 9642 cat >conftest.$ac_ext <<_ACEOF 9643#line $LINENO "configure" 9644/* confdefs.h. */ 9645_ACEOF 9646cat confdefs.h >>conftest.$ac_ext 9647cat >>conftest.$ac_ext <<_ACEOF 9648/* end confdefs.h. */ 9649/* System header to define __stub macros and hopefully few prototypes, 9650 which can conflict with char $ac_func (); below. 9651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9652 <limits.h> exists even on freestanding compilers. */ 9653#ifdef __STDC__ 9654# include <limits.h> 9655#else 9656# include <assert.h> 9657#endif 9658/* Override any gcc2 internal prototype to avoid an error. */ 9659#ifdef __cplusplus 9660extern "C" 9661{ 9662#endif 9663/* We use char because int might match the return type of a gcc2 9664 builtin and then its argument prototype would still apply. */ 9665char $ac_func (); 9666/* The GNU C library defines this for functions which it implements 9667 to always fail with ENOSYS. Some functions are actually named 9668 something starting with __ and the normal name is an alias. */ 9669#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9670choke me 9671#else 9672char (*f) () = $ac_func; 9673#endif 9674#ifdef __cplusplus 9675} 9676#endif 9677 9678int 9679main () 9680{ 9681return f != $ac_func; 9682 ; 9683 return 0; 9684} 9685_ACEOF 9686rm -f conftest.$ac_objext conftest$ac_exeext 9687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9688 (eval $ac_link) 2>&5 9689 ac_status=$? 9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9691 (exit $ac_status); } && 9692 { ac_try='test -s conftest$ac_exeext' 9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9694 (eval $ac_try) 2>&5 9695 ac_status=$? 9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9697 (exit $ac_status); }; }; then 9698 eval "$as_ac_var=yes" 9699else 9700 echo "$as_me: failed program was:" >&5 9701sed 's/^/| /' conftest.$ac_ext >&5 9702 9703eval "$as_ac_var=no" 9704fi 9705rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9706fi 9707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9708echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9709if test `eval echo '${'$as_ac_var'}'` = yes; then 9710 cat >>confdefs.h <<_ACEOF 9711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9712_ACEOF 9713 9714echo "$as_me:$LINENO: checking for _doprnt" >&5 9715echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 9716if test "${ac_cv_func__doprnt+set}" = set; then 9717 echo $ECHO_N "(cached) $ECHO_C" >&6 9718else 9719 cat >conftest.$ac_ext <<_ACEOF 9720#line $LINENO "configure" 9721/* confdefs.h. */ 9722_ACEOF 9723cat confdefs.h >>conftest.$ac_ext 9724cat >>conftest.$ac_ext <<_ACEOF 9725/* end confdefs.h. */ 9726/* System header to define __stub macros and hopefully few prototypes, 9727 which can conflict with char _doprnt (); below. 9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9729 <limits.h> exists even on freestanding compilers. */ 9730#ifdef __STDC__ 9731# include <limits.h> 9732#else 9733# include <assert.h> 9734#endif 9735/* Override any gcc2 internal prototype to avoid an error. */ 9736#ifdef __cplusplus 9737extern "C" 9738{ 9739#endif 9740/* We use char because int might match the return type of a gcc2 9741 builtin and then its argument prototype would still apply. */ 9742char _doprnt (); 9743/* The GNU C library defines this for functions which it implements 9744 to always fail with ENOSYS. Some functions are actually named 9745 something starting with __ and the normal name is an alias. */ 9746#if defined (__stub__doprnt) || defined (__stub____doprnt) 9747choke me 9748#else 9749char (*f) () = _doprnt; 9750#endif 9751#ifdef __cplusplus 9752} 9753#endif 9754 9755int 9756main () 9757{ 9758return f != _doprnt; 9759 ; 9760 return 0; 9761} 9762_ACEOF 9763rm -f conftest.$ac_objext conftest$ac_exeext 9764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9765 (eval $ac_link) 2>&5 9766 ac_status=$? 9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9768 (exit $ac_status); } && 9769 { ac_try='test -s conftest$ac_exeext' 9770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9771 (eval $ac_try) 2>&5 9772 ac_status=$? 9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9774 (exit $ac_status); }; }; then 9775 ac_cv_func__doprnt=yes 9776else 9777 echo "$as_me: failed program was:" >&5 9778sed 's/^/| /' conftest.$ac_ext >&5 9779 9780ac_cv_func__doprnt=no 9781fi 9782rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9783fi 9784echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 9785echo "${ECHO_T}$ac_cv_func__doprnt" >&6 9786if test $ac_cv_func__doprnt = yes; then 9787 9788cat >>confdefs.h <<\_ACEOF 9789#define HAVE_DOPRNT 1 9790_ACEOF 9791 9792fi 9793 9794fi 9795done 9796 9797 9798 9799 9800for ac_header in stdlib.h 9801do 9802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9803if eval "test \"\${$as_ac_Header+set}\" = set"; then 9804 echo "$as_me:$LINENO: checking for $ac_header" >&5 9805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9806if eval "test \"\${$as_ac_Header+set}\" = set"; then 9807 echo $ECHO_N "(cached) $ECHO_C" >&6 9808fi 9809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9811else 9812 # Is the header compilable? 9813echo "$as_me:$LINENO: checking $ac_header usability" >&5 9814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9815cat >conftest.$ac_ext <<_ACEOF 9816#line $LINENO "configure" 9817/* confdefs.h. */ 9818_ACEOF 9819cat confdefs.h >>conftest.$ac_ext 9820cat >>conftest.$ac_ext <<_ACEOF 9821/* end confdefs.h. */ 9822$ac_includes_default 9823#include <$ac_header> 9824_ACEOF 9825rm -f conftest.$ac_objext 9826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9827 (eval $ac_compile) 2>&5 9828 ac_status=$? 9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9830 (exit $ac_status); } && 9831 { ac_try='test -s conftest.$ac_objext' 9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9833 (eval $ac_try) 2>&5 9834 ac_status=$? 9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9836 (exit $ac_status); }; }; then 9837 ac_header_compiler=yes 9838else 9839 echo "$as_me: failed program was:" >&5 9840sed 's/^/| /' conftest.$ac_ext >&5 9841 9842ac_header_compiler=no 9843fi 9844rm -f conftest.$ac_objext conftest.$ac_ext 9845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9846echo "${ECHO_T}$ac_header_compiler" >&6 9847 9848# Is the header present? 9849echo "$as_me:$LINENO: checking $ac_header presence" >&5 9850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9851cat >conftest.$ac_ext <<_ACEOF 9852#line $LINENO "configure" 9853/* confdefs.h. */ 9854_ACEOF 9855cat confdefs.h >>conftest.$ac_ext 9856cat >>conftest.$ac_ext <<_ACEOF 9857/* end confdefs.h. */ 9858#include <$ac_header> 9859_ACEOF 9860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9862 ac_status=$? 9863 grep -v '^ *+' conftest.er1 >conftest.err 9864 rm -f conftest.er1 9865 cat conftest.err >&5 9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9867 (exit $ac_status); } >/dev/null; then 9868 if test -s conftest.err; then 9869 ac_cpp_err=$ac_c_preproc_warn_flag 9870 else 9871 ac_cpp_err= 9872 fi 9873else 9874 ac_cpp_err=yes 9875fi 9876if test -z "$ac_cpp_err"; then 9877 ac_header_preproc=yes 9878else 9879 echo "$as_me: failed program was:" >&5 9880sed 's/^/| /' conftest.$ac_ext >&5 9881 9882 ac_header_preproc=no 9883fi 9884rm -f conftest.err conftest.$ac_ext 9885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9886echo "${ECHO_T}$ac_header_preproc" >&6 9887 9888# So? What about this header? 9889case $ac_header_compiler:$ac_header_preproc in 9890 yes:no ) 9891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9895 ( 9896 cat <<\_ASBOX 9897## ------------------------------------ ## 9898## Report this to bug-autoconf@gnu.org. ## 9899## ------------------------------------ ## 9900_ASBOX 9901 ) | 9902 sed "s/^/$as_me: WARNING: /" >&2 9903 ;; 9904 no:yes ) 9905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9911 ( 9912 cat <<\_ASBOX 9913## ------------------------------------ ## 9914## Report this to bug-autoconf@gnu.org. ## 9915## ------------------------------------ ## 9916_ASBOX 9917 ) | 9918 sed "s/^/$as_me: WARNING: /" >&2 9919 ;; 9920esac 9921echo "$as_me:$LINENO: checking for $ac_header" >&5 9922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9923if eval "test \"\${$as_ac_Header+set}\" = set"; then 9924 echo $ECHO_N "(cached) $ECHO_C" >&6 9925else 9926 eval "$as_ac_Header=$ac_header_preproc" 9927fi 9928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9930 9931fi 9932if test `eval echo '${'$as_ac_Header'}'` = yes; then 9933 cat >>confdefs.h <<_ACEOF 9934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9935_ACEOF 9936 9937fi 9938 9939done 9940 9941 9942for ac_func in strtod 9943do 9944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9945echo "$as_me:$LINENO: checking for $ac_func" >&5 9946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9947if eval "test \"\${$as_ac_var+set}\" = set"; then 9948 echo $ECHO_N "(cached) $ECHO_C" >&6 9949else 9950 cat >conftest.$ac_ext <<_ACEOF 9951#line $LINENO "configure" 9952/* confdefs.h. */ 9953_ACEOF 9954cat confdefs.h >>conftest.$ac_ext 9955cat >>conftest.$ac_ext <<_ACEOF 9956/* end confdefs.h. */ 9957/* System header to define __stub macros and hopefully few prototypes, 9958 which can conflict with char $ac_func (); below. 9959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9960 <limits.h> exists even on freestanding compilers. */ 9961#ifdef __STDC__ 9962# include <limits.h> 9963#else 9964# include <assert.h> 9965#endif 9966/* Override any gcc2 internal prototype to avoid an error. */ 9967#ifdef __cplusplus 9968extern "C" 9969{ 9970#endif 9971/* We use char because int might match the return type of a gcc2 9972 builtin and then its argument prototype would still apply. */ 9973char $ac_func (); 9974/* The GNU C library defines this for functions which it implements 9975 to always fail with ENOSYS. Some functions are actually named 9976 something starting with __ and the normal name is an alias. */ 9977#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9978choke me 9979#else 9980char (*f) () = $ac_func; 9981#endif 9982#ifdef __cplusplus 9983} 9984#endif 9985 9986int 9987main () 9988{ 9989return f != $ac_func; 9990 ; 9991 return 0; 9992} 9993_ACEOF 9994rm -f conftest.$ac_objext conftest$ac_exeext 9995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9996 (eval $ac_link) 2>&5 9997 ac_status=$? 9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9999 (exit $ac_status); } && 10000 { ac_try='test -s conftest$ac_exeext' 10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10002 (eval $ac_try) 2>&5 10003 ac_status=$? 10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10005 (exit $ac_status); }; }; then 10006 eval "$as_ac_var=yes" 10007else 10008 echo "$as_me: failed program was:" >&5 10009sed 's/^/| /' conftest.$ac_ext >&5 10010 10011eval "$as_ac_var=no" 10012fi 10013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10014fi 10015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10016echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10017if test `eval echo '${'$as_ac_var'}'` = yes; then 10018 cat >>confdefs.h <<_ACEOF 10019#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10020_ACEOF 10021 10022fi 10023done 10024 10025echo "$as_me:$LINENO: checking for strtod with C89 semantics" >&5 10026echo $ECHO_N "checking for strtod with C89 semantics... $ECHO_C" >&6 10027if test "${gawk_ac_cv_func_strtod_c89+set}" = set; then 10028 echo $ECHO_N "(cached) $ECHO_C" >&6 10029else 10030 if test "$cross_compiling" = yes; then 10031 gawk_ac_cv_func_strtod_c89=no 10032else 10033 cat >conftest.$ac_ext <<_ACEOF 10034#line $LINENO "configure" 10035/* confdefs.h. */ 10036_ACEOF 10037cat confdefs.h >>conftest.$ac_ext 10038cat >>conftest.$ac_ext <<_ACEOF 10039/* end confdefs.h. */ 10040/* Test program from Arnold Robbins (arnold@skeeve.com) */ 10041#if HAVE_STDLIB_H 10042#include <stdlib.h> 10043#else 10044extern double strtod(); 10045#endif 10046 10047int 10048main () 10049{ 10050#if ! HAVE_STRTOD 10051 exit(1); 10052#else 10053 double d; 10054 char *str = "0x345a"; 10055 10056 d = strtod(str, 0); 10057 if (d == 0) 10058 exit (0); 10059 else 10060 exit (1); 10061#endif 10062} 10063_ACEOF 10064rm -f conftest$ac_exeext 10065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10066 (eval $ac_link) 2>&5 10067 ac_status=$? 10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10071 (eval $ac_try) 2>&5 10072 ac_status=$? 10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10074 (exit $ac_status); }; }; then 10075 gawk_ac_cv_func_strtod_c89=yes 10076else 10077 echo "$as_me: program exited with status $ac_status" >&5 10078echo "$as_me: failed program was:" >&5 10079sed 's/^/| /' conftest.$ac_ext >&5 10080 10081( exit $ac_status ) 10082gawk_ac_cv_func_strtod_c89=no 10083fi 10084rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10085fi 10086fi 10087echo "$as_me:$LINENO: result: $gawk_ac_cv_func_strtod_c89" >&5 10088echo "${ECHO_T}$gawk_ac_cv_func_strtod_c89" >&6 10089if test $gawk_ac_cv_func_strtod_c89 = no; then 10090 10091cat >>confdefs.h <<\_ACEOF 10092#define STRTOD_NOT_C89 1 10093_ACEOF 10094 10095fi 10096 10097 10098 10099for ac_header in sys/time.h unistd.h 10100do 10101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10102if eval "test \"\${$as_ac_Header+set}\" = set"; then 10103 echo "$as_me:$LINENO: checking for $ac_header" >&5 10104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10105if eval "test \"\${$as_ac_Header+set}\" = set"; then 10106 echo $ECHO_N "(cached) $ECHO_C" >&6 10107fi 10108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10110else 10111 # Is the header compilable? 10112echo "$as_me:$LINENO: checking $ac_header usability" >&5 10113echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10114cat >conftest.$ac_ext <<_ACEOF 10115#line $LINENO "configure" 10116/* confdefs.h. */ 10117_ACEOF 10118cat confdefs.h >>conftest.$ac_ext 10119cat >>conftest.$ac_ext <<_ACEOF 10120/* end confdefs.h. */ 10121$ac_includes_default 10122#include <$ac_header> 10123_ACEOF 10124rm -f conftest.$ac_objext 10125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10126 (eval $ac_compile) 2>&5 10127 ac_status=$? 10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10129 (exit $ac_status); } && 10130 { ac_try='test -s conftest.$ac_objext' 10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10132 (eval $ac_try) 2>&5 10133 ac_status=$? 10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10135 (exit $ac_status); }; }; then 10136 ac_header_compiler=yes 10137else 10138 echo "$as_me: failed program was:" >&5 10139sed 's/^/| /' conftest.$ac_ext >&5 10140 10141ac_header_compiler=no 10142fi 10143rm -f conftest.$ac_objext conftest.$ac_ext 10144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10145echo "${ECHO_T}$ac_header_compiler" >&6 10146 10147# Is the header present? 10148echo "$as_me:$LINENO: checking $ac_header presence" >&5 10149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10150cat >conftest.$ac_ext <<_ACEOF 10151#line $LINENO "configure" 10152/* confdefs.h. */ 10153_ACEOF 10154cat confdefs.h >>conftest.$ac_ext 10155cat >>conftest.$ac_ext <<_ACEOF 10156/* end confdefs.h. */ 10157#include <$ac_header> 10158_ACEOF 10159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10161 ac_status=$? 10162 grep -v '^ *+' conftest.er1 >conftest.err 10163 rm -f conftest.er1 10164 cat conftest.err >&5 10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10166 (exit $ac_status); } >/dev/null; then 10167 if test -s conftest.err; then 10168 ac_cpp_err=$ac_c_preproc_warn_flag 10169 else 10170 ac_cpp_err= 10171 fi 10172else 10173 ac_cpp_err=yes 10174fi 10175if test -z "$ac_cpp_err"; then 10176 ac_header_preproc=yes 10177else 10178 echo "$as_me: failed program was:" >&5 10179sed 's/^/| /' conftest.$ac_ext >&5 10180 10181 ac_header_preproc=no 10182fi 10183rm -f conftest.err conftest.$ac_ext 10184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10185echo "${ECHO_T}$ac_header_preproc" >&6 10186 10187# So? What about this header? 10188case $ac_header_compiler:$ac_header_preproc in 10189 yes:no ) 10190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10194 ( 10195 cat <<\_ASBOX 10196## ------------------------------------ ## 10197## Report this to bug-autoconf@gnu.org. ## 10198## ------------------------------------ ## 10199_ASBOX 10200 ) | 10201 sed "s/^/$as_me: WARNING: /" >&2 10202 ;; 10203 no:yes ) 10204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10210 ( 10211 cat <<\_ASBOX 10212## ------------------------------------ ## 10213## Report this to bug-autoconf@gnu.org. ## 10214## ------------------------------------ ## 10215_ASBOX 10216 ) | 10217 sed "s/^/$as_me: WARNING: /" >&2 10218 ;; 10219esac 10220echo "$as_me:$LINENO: checking for $ac_header" >&5 10221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10222if eval "test \"\${$as_ac_Header+set}\" = set"; then 10223 echo $ECHO_N "(cached) $ECHO_C" >&6 10224else 10225 eval "$as_ac_Header=$ac_header_preproc" 10226fi 10227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10229 10230fi 10231if test `eval echo '${'$as_ac_Header'}'` = yes; then 10232 cat >>confdefs.h <<_ACEOF 10233#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10234_ACEOF 10235 10236fi 10237 10238done 10239 10240 10241for ac_func in alarm 10242do 10243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10244echo "$as_me:$LINENO: checking for $ac_func" >&5 10245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10246if eval "test \"\${$as_ac_var+set}\" = set"; then 10247 echo $ECHO_N "(cached) $ECHO_C" >&6 10248else 10249 cat >conftest.$ac_ext <<_ACEOF 10250#line $LINENO "configure" 10251/* confdefs.h. */ 10252_ACEOF 10253cat confdefs.h >>conftest.$ac_ext 10254cat >>conftest.$ac_ext <<_ACEOF 10255/* end confdefs.h. */ 10256/* System header to define __stub macros and hopefully few prototypes, 10257 which can conflict with char $ac_func (); below. 10258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10259 <limits.h> exists even on freestanding compilers. */ 10260#ifdef __STDC__ 10261# include <limits.h> 10262#else 10263# include <assert.h> 10264#endif 10265/* Override any gcc2 internal prototype to avoid an error. */ 10266#ifdef __cplusplus 10267extern "C" 10268{ 10269#endif 10270/* We use char because int might match the return type of a gcc2 10271 builtin and then its argument prototype would still apply. */ 10272char $ac_func (); 10273/* The GNU C library defines this for functions which it implements 10274 to always fail with ENOSYS. Some functions are actually named 10275 something starting with __ and the normal name is an alias. */ 10276#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10277choke me 10278#else 10279char (*f) () = $ac_func; 10280#endif 10281#ifdef __cplusplus 10282} 10283#endif 10284 10285int 10286main () 10287{ 10288return f != $ac_func; 10289 ; 10290 return 0; 10291} 10292_ACEOF 10293rm -f conftest.$ac_objext conftest$ac_exeext 10294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10295 (eval $ac_link) 2>&5 10296 ac_status=$? 10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10298 (exit $ac_status); } && 10299 { ac_try='test -s conftest$ac_exeext' 10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10301 (eval $ac_try) 2>&5 10302 ac_status=$? 10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10304 (exit $ac_status); }; }; then 10305 eval "$as_ac_var=yes" 10306else 10307 echo "$as_me: failed program was:" >&5 10308sed 's/^/| /' conftest.$ac_ext >&5 10309 10310eval "$as_ac_var=no" 10311fi 10312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10313fi 10314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10315echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10316if test `eval echo '${'$as_ac_var'}'` = yes; then 10317 cat >>confdefs.h <<_ACEOF 10318#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10319_ACEOF 10320 10321fi 10322done 10323 10324echo "$as_me:$LINENO: checking for working mktime" >&5 10325echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 10326if test "${ac_cv_func_working_mktime+set}" = set; then 10327 echo $ECHO_N "(cached) $ECHO_C" >&6 10328else 10329 if test "$cross_compiling" = yes; then 10330 ac_cv_func_working_mktime=no 10331else 10332 cat >conftest.$ac_ext <<_ACEOF 10333#line $LINENO "configure" 10334/* confdefs.h. */ 10335_ACEOF 10336cat confdefs.h >>conftest.$ac_ext 10337cat >>conftest.$ac_ext <<_ACEOF 10338/* end confdefs.h. */ 10339/* Test program from Paul Eggert and Tony Leneis. */ 10340#if TIME_WITH_SYS_TIME 10341# include <sys/time.h> 10342# include <time.h> 10343#else 10344# if HAVE_SYS_TIME_H 10345# include <sys/time.h> 10346# else 10347# include <time.h> 10348# endif 10349#endif 10350 10351#if HAVE_UNISTD_H 10352# include <unistd.h> 10353#endif 10354 10355#if !HAVE_ALARM 10356# define alarm(X) /* empty */ 10357#endif 10358 10359/* Work around redefinition to rpl_putenv by other config tests. */ 10360#undef putenv 10361 10362static time_t time_t_max; 10363 10364/* Values we'll use to set the TZ environment variable. */ 10365static const char *const tz_strings[] = { 10366 (const char *) 0, "TZ=GMT0", "TZ=JST-9", 10367 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" 10368}; 10369#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) 10370 10371/* Fail if mktime fails to convert a date in the spring-forward gap. 10372 Based on a problem report from Andreas Jaeger. */ 10373static void 10374spring_forward_gap () 10375{ 10376 /* glibc (up to about 1998-10-07) failed this test. */ 10377 struct tm tm; 10378 10379 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" 10380 instead of "TZ=America/Vancouver" in order to detect the bug even 10381 on systems that don't support the Olson extension, or don't have the 10382 full zoneinfo tables installed. */ 10383 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 10384 10385 tm.tm_year = 98; 10386 tm.tm_mon = 3; 10387 tm.tm_mday = 5; 10388 tm.tm_hour = 2; 10389 tm.tm_min = 0; 10390 tm.tm_sec = 0; 10391 tm.tm_isdst = -1; 10392 if (mktime (&tm) == (time_t)-1) 10393 exit (1); 10394} 10395 10396static void 10397mktime_test (now) 10398 time_t now; 10399{ 10400 struct tm *lt; 10401 if ((lt = localtime (&now)) && mktime (lt) != now) 10402 exit (1); 10403 now = time_t_max - now; 10404 if ((lt = localtime (&now)) && mktime (lt) != now) 10405 exit (1); 10406} 10407 10408static void 10409irix_6_4_bug () 10410{ 10411 /* Based on code from Ariel Faigon. */ 10412 struct tm tm; 10413 tm.tm_year = 96; 10414 tm.tm_mon = 3; 10415 tm.tm_mday = 0; 10416 tm.tm_hour = 0; 10417 tm.tm_min = 0; 10418 tm.tm_sec = 0; 10419 tm.tm_isdst = -1; 10420 mktime (&tm); 10421 if (tm.tm_mon != 2 || tm.tm_mday != 31) 10422 exit (1); 10423} 10424 10425static void 10426bigtime_test (j) 10427 int j; 10428{ 10429 struct tm tm; 10430 time_t now; 10431 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; 10432 now = mktime (&tm); 10433 if (now != (time_t) -1) 10434 { 10435 struct tm *lt = localtime (&now); 10436 if (! (lt 10437 && lt->tm_year == tm.tm_year 10438 && lt->tm_mon == tm.tm_mon 10439 && lt->tm_mday == tm.tm_mday 10440 && lt->tm_hour == tm.tm_hour 10441 && lt->tm_min == tm.tm_min 10442 && lt->tm_sec == tm.tm_sec 10443 && lt->tm_yday == tm.tm_yday 10444 && lt->tm_wday == tm.tm_wday 10445 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) 10446 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) 10447 exit (1); 10448 } 10449} 10450 10451int 10452main () 10453{ 10454 time_t t, delta; 10455 int i, j; 10456 10457 /* This test makes some buggy mktime implementations loop. 10458 Give up after 60 seconds; a mktime slower than that 10459 isn't worth using anyway. */ 10460 alarm (60); 10461 10462 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) 10463 continue; 10464 time_t_max--; 10465 delta = time_t_max / 997; /* a suitable prime number */ 10466 for (i = 0; i < N_STRINGS; i++) 10467 { 10468 if (tz_strings[i]) 10469 putenv (tz_strings[i]); 10470 10471 for (t = 0; t <= time_t_max - delta; t += delta) 10472 mktime_test (t); 10473 mktime_test ((time_t) 60 * 60); 10474 mktime_test ((time_t) 60 * 60 * 24); 10475 10476 for (j = 1; 0 < j; j *= 2) 10477 bigtime_test (j); 10478 bigtime_test (j - 1); 10479 } 10480 irix_6_4_bug (); 10481 spring_forward_gap (); 10482 exit (0); 10483} 10484_ACEOF 10485rm -f conftest$ac_exeext 10486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10487 (eval $ac_link) 2>&5 10488 ac_status=$? 10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10492 (eval $ac_try) 2>&5 10493 ac_status=$? 10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10495 (exit $ac_status); }; }; then 10496 ac_cv_func_working_mktime=yes 10497else 10498 echo "$as_me: program exited with status $ac_status" >&5 10499echo "$as_me: failed program was:" >&5 10500sed 's/^/| /' conftest.$ac_ext >&5 10501 10502( exit $ac_status ) 10503ac_cv_func_working_mktime=no 10504fi 10505rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10506fi 10507fi 10508echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 10509echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 10510if test $ac_cv_func_working_mktime = no; then 10511 LIBOBJS="$LIBOBJS mktime.$ac_objext" 10512fi 10513 10514case "$ac_cv_func_working_mktime" in 10515yes) 10516cat >>confdefs.h <<\_ACEOF 10517#define HAVE_MKTIME 1 10518_ACEOF 10519 10520 ;; 10521esac 10522 10523 10524echo "$as_me:$LINENO: checking for fmod in -lm" >&5 10525echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6 10526if test "${ac_cv_lib_m_fmod+set}" = set; then 10527 echo $ECHO_N "(cached) $ECHO_C" >&6 10528else 10529 ac_check_lib_save_LIBS=$LIBS 10530LIBS="-lm $LIBS" 10531cat >conftest.$ac_ext <<_ACEOF 10532#line $LINENO "configure" 10533/* confdefs.h. */ 10534_ACEOF 10535cat confdefs.h >>conftest.$ac_ext 10536cat >>conftest.$ac_ext <<_ACEOF 10537/* end confdefs.h. */ 10538 10539/* Override any gcc2 internal prototype to avoid an error. */ 10540#ifdef __cplusplus 10541extern "C" 10542#endif 10543/* We use char because int might match the return type of a gcc2 10544 builtin and then its argument prototype would still apply. */ 10545char fmod (); 10546int 10547main () 10548{ 10549fmod (); 10550 ; 10551 return 0; 10552} 10553_ACEOF 10554rm -f conftest.$ac_objext conftest$ac_exeext 10555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10556 (eval $ac_link) 2>&5 10557 ac_status=$? 10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10559 (exit $ac_status); } && 10560 { ac_try='test -s conftest$ac_exeext' 10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10562 (eval $ac_try) 2>&5 10563 ac_status=$? 10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10565 (exit $ac_status); }; }; then 10566 ac_cv_lib_m_fmod=yes 10567else 10568 echo "$as_me: failed program was:" >&5 10569sed 's/^/| /' conftest.$ac_ext >&5 10570 10571ac_cv_lib_m_fmod=no 10572fi 10573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10574LIBS=$ac_check_lib_save_LIBS 10575fi 10576echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5 10577echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6 10578if test $ac_cv_lib_m_fmod = yes; then 10579 cat >>confdefs.h <<_ACEOF 10580#define HAVE_LIBM 1 10581_ACEOF 10582 10583 LIBS="-lm $LIBS" 10584 10585fi 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607for ac_func in fmod getgrent getgroups grantpt mbrlen mbrtowc memcmp \ 10608 memcpy memset setlocale snprintf strchr strerror \ 10609 strftime strncasecmp strtod system tzset wcrtomb wcscoll 10610do 10611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10612echo "$as_me:$LINENO: checking for $ac_func" >&5 10613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10614if eval "test \"\${$as_ac_var+set}\" = set"; then 10615 echo $ECHO_N "(cached) $ECHO_C" >&6 10616else 10617 cat >conftest.$ac_ext <<_ACEOF 10618#line $LINENO "configure" 10619/* confdefs.h. */ 10620_ACEOF 10621cat confdefs.h >>conftest.$ac_ext 10622cat >>conftest.$ac_ext <<_ACEOF 10623/* end confdefs.h. */ 10624/* System header to define __stub macros and hopefully few prototypes, 10625 which can conflict with char $ac_func (); below. 10626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10627 <limits.h> exists even on freestanding compilers. */ 10628#ifdef __STDC__ 10629# include <limits.h> 10630#else 10631# include <assert.h> 10632#endif 10633/* Override any gcc2 internal prototype to avoid an error. */ 10634#ifdef __cplusplus 10635extern "C" 10636{ 10637#endif 10638/* We use char because int might match the return type of a gcc2 10639 builtin and then its argument prototype would still apply. */ 10640char $ac_func (); 10641/* The GNU C library defines this for functions which it implements 10642 to always fail with ENOSYS. Some functions are actually named 10643 something starting with __ and the normal name is an alias. */ 10644#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10645choke me 10646#else 10647char (*f) () = $ac_func; 10648#endif 10649#ifdef __cplusplus 10650} 10651#endif 10652 10653int 10654main () 10655{ 10656return f != $ac_func; 10657 ; 10658 return 0; 10659} 10660_ACEOF 10661rm -f conftest.$ac_objext conftest$ac_exeext 10662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10663 (eval $ac_link) 2>&5 10664 ac_status=$? 10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10666 (exit $ac_status); } && 10667 { ac_try='test -s conftest$ac_exeext' 10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10669 (eval $ac_try) 2>&5 10670 ac_status=$? 10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10672 (exit $ac_status); }; }; then 10673 eval "$as_ac_var=yes" 10674else 10675 echo "$as_me: failed program was:" >&5 10676sed 's/^/| /' conftest.$ac_ext >&5 10677 10678eval "$as_ac_var=no" 10679fi 10680rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10681fi 10682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10683echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10684if test `eval echo '${'$as_ac_var'}'` = yes; then 10685 cat >>confdefs.h <<_ACEOF 10686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10687_ACEOF 10688 10689fi 10690done 10691 10692 10693if test "${ac_cv_header_dlfcn_h+set}" = set; then 10694 echo "$as_me:$LINENO: checking for dlfcn.h" >&5 10695echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 10696if test "${ac_cv_header_dlfcn_h+set}" = set; then 10697 echo $ECHO_N "(cached) $ECHO_C" >&6 10698fi 10699echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 10700echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 10701else 10702 # Is the header compilable? 10703echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 10704echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 10705cat >conftest.$ac_ext <<_ACEOF 10706#line $LINENO "configure" 10707/* confdefs.h. */ 10708_ACEOF 10709cat confdefs.h >>conftest.$ac_ext 10710cat >>conftest.$ac_ext <<_ACEOF 10711/* end confdefs.h. */ 10712$ac_includes_default 10713#include <dlfcn.h> 10714_ACEOF 10715rm -f conftest.$ac_objext 10716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10717 (eval $ac_compile) 2>&5 10718 ac_status=$? 10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10720 (exit $ac_status); } && 10721 { ac_try='test -s conftest.$ac_objext' 10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10723 (eval $ac_try) 2>&5 10724 ac_status=$? 10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10726 (exit $ac_status); }; }; then 10727 ac_header_compiler=yes 10728else 10729 echo "$as_me: failed program was:" >&5 10730sed 's/^/| /' conftest.$ac_ext >&5 10731 10732ac_header_compiler=no 10733fi 10734rm -f conftest.$ac_objext conftest.$ac_ext 10735echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10736echo "${ECHO_T}$ac_header_compiler" >&6 10737 10738# Is the header present? 10739echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 10740echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 10741cat >conftest.$ac_ext <<_ACEOF 10742#line $LINENO "configure" 10743/* confdefs.h. */ 10744_ACEOF 10745cat confdefs.h >>conftest.$ac_ext 10746cat >>conftest.$ac_ext <<_ACEOF 10747/* end confdefs.h. */ 10748#include <dlfcn.h> 10749_ACEOF 10750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10752 ac_status=$? 10753 grep -v '^ *+' conftest.er1 >conftest.err 10754 rm -f conftest.er1 10755 cat conftest.err >&5 10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10757 (exit $ac_status); } >/dev/null; then 10758 if test -s conftest.err; then 10759 ac_cpp_err=$ac_c_preproc_warn_flag 10760 else 10761 ac_cpp_err= 10762 fi 10763else 10764 ac_cpp_err=yes 10765fi 10766if test -z "$ac_cpp_err"; then 10767 ac_header_preproc=yes 10768else 10769 echo "$as_me: failed program was:" >&5 10770sed 's/^/| /' conftest.$ac_ext >&5 10771 10772 ac_header_preproc=no 10773fi 10774rm -f conftest.err conftest.$ac_ext 10775echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10776echo "${ECHO_T}$ac_header_preproc" >&6 10777 10778# So? What about this header? 10779case $ac_header_compiler:$ac_header_preproc in 10780 yes:no ) 10781 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 10782echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10783 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 10784echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 10785 ( 10786 cat <<\_ASBOX 10787## ------------------------------------ ## 10788## Report this to bug-autoconf@gnu.org. ## 10789## ------------------------------------ ## 10790_ASBOX 10791 ) | 10792 sed "s/^/$as_me: WARNING: /" >&2 10793 ;; 10794 no:yes ) 10795 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 10796echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 10797 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 10798echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 10799 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 10800echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 10801 ( 10802 cat <<\_ASBOX 10803## ------------------------------------ ## 10804## Report this to bug-autoconf@gnu.org. ## 10805## ------------------------------------ ## 10806_ASBOX 10807 ) | 10808 sed "s/^/$as_me: WARNING: /" >&2 10809 ;; 10810esac 10811echo "$as_me:$LINENO: checking for dlfcn.h" >&5 10812echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 10813if test "${ac_cv_header_dlfcn_h+set}" = set; then 10814 echo $ECHO_N "(cached) $ECHO_C" >&6 10815else 10816 ac_cv_header_dlfcn_h=$ac_header_preproc 10817fi 10818echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 10819echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 10820 10821fi 10822if test $ac_cv_header_dlfcn_h = yes; then 10823 10824cat >>confdefs.h <<\_ACEOF 10825#define DYNAMIC 1 10826_ACEOF 10827 10828 if test "$GCC" = yes 10829 then 10830 # Add others here as appropriate, 10831 # one day use GNU libtool. 10832 if uname | $EGREP -i 'linux|freebsd|cygwin' > /dev/null 10833 then 10834 LDFLAGS="$LDFLAGS -export-dynamic" 10835 fi 10836 fi 10837 10838 # Check this separately. Some systems have dlopen 10839 # in libc. Notably freebsd and cygwin. 10840 10841echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10842echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 10843if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10844 echo $ECHO_N "(cached) $ECHO_C" >&6 10845else 10846 ac_check_lib_save_LIBS=$LIBS 10847LIBS="-ldl $LIBS" 10848cat >conftest.$ac_ext <<_ACEOF 10849#line $LINENO "configure" 10850/* confdefs.h. */ 10851_ACEOF 10852cat confdefs.h >>conftest.$ac_ext 10853cat >>conftest.$ac_ext <<_ACEOF 10854/* end confdefs.h. */ 10855 10856/* Override any gcc2 internal prototype to avoid an error. */ 10857#ifdef __cplusplus 10858extern "C" 10859#endif 10860/* We use char because int might match the return type of a gcc2 10861 builtin and then its argument prototype would still apply. */ 10862char dlopen (); 10863int 10864main () 10865{ 10866dlopen (); 10867 ; 10868 return 0; 10869} 10870_ACEOF 10871rm -f conftest.$ac_objext conftest$ac_exeext 10872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10873 (eval $ac_link) 2>&5 10874 ac_status=$? 10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10876 (exit $ac_status); } && 10877 { ac_try='test -s conftest$ac_exeext' 10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10879 (eval $ac_try) 2>&5 10880 ac_status=$? 10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10882 (exit $ac_status); }; }; then 10883 ac_cv_lib_dl_dlopen=yes 10884else 10885 echo "$as_me: failed program was:" >&5 10886sed 's/^/| /' conftest.$ac_ext >&5 10887 10888ac_cv_lib_dl_dlopen=no 10889fi 10890rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10891LIBS=$ac_check_lib_save_LIBS 10892fi 10893echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10894echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 10895if test $ac_cv_lib_dl_dlopen = yes; then 10896 cat >>confdefs.h <<_ACEOF 10897#define HAVE_LIBDL 1 10898_ACEOF 10899 10900 LIBS="-ldl $LIBS" 10901 10902fi 10903 10904 10905fi 10906 10907 10908 10909case `(uname) 2> /dev/null` in 10910*VMS*|*BeOS*|*OS/2*|*MS-DOS*) 10911 10912cat >>confdefs.h <<\_ACEOF 10913#define GETPGRP_VOID 1 10914_ACEOF 10915 10916 ;; 10917*) echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 10918echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6 10919if test "${ac_cv_func_getpgrp_void+set}" = set; then 10920 echo $ECHO_N "(cached) $ECHO_C" >&6 10921else 10922 # Use it with a single arg. 10923cat >conftest.$ac_ext <<_ACEOF 10924#line $LINENO "configure" 10925/* confdefs.h. */ 10926_ACEOF 10927cat confdefs.h >>conftest.$ac_ext 10928cat >>conftest.$ac_ext <<_ACEOF 10929/* end confdefs.h. */ 10930$ac_includes_default 10931int 10932main () 10933{ 10934getpgrp (0); 10935 ; 10936 return 0; 10937} 10938_ACEOF 10939rm -f conftest.$ac_objext 10940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10941 (eval $ac_compile) 2>&5 10942 ac_status=$? 10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10944 (exit $ac_status); } && 10945 { ac_try='test -s conftest.$ac_objext' 10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10947 (eval $ac_try) 2>&5 10948 ac_status=$? 10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10950 (exit $ac_status); }; }; then 10951 ac_cv_func_getpgrp_void=no 10952else 10953 echo "$as_me: failed program was:" >&5 10954sed 's/^/| /' conftest.$ac_ext >&5 10955 10956ac_cv_func_getpgrp_void=yes 10957fi 10958rm -f conftest.$ac_objext conftest.$ac_ext 10959 10960fi 10961echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 10962echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6 10963if test $ac_cv_func_getpgrp_void = yes; then 10964 10965cat >>confdefs.h <<\_ACEOF 10966#define GETPGRP_VOID 1 10967_ACEOF 10968 10969fi 10970 10971 ;; 10972esac 10973 10974 10975gawk_have_sockets=no 10976# Check for system-dependent location of socket libraries 10977 10978SOCKET_LIBS= 10979if test "$ISC" = yes; then 10980 SOCKET_LIBS="-lnsl_s -linet" 10981else 10982 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 10983 # libraries were built with DECnet support. And karl@cs.umb.edu says 10984 # the Alpha needs dnet_stub (dnet does not exist). 10985 # 10986 # ADR: Is this needed just for sockets??? 10987# AC_CHECK_LIB(dnet, dnet_ntoa, [SOCKET_LIBS="$SOCKET_LIBS -ldnet"]) 10988# if test $ac_cv_lib_dnet_ntoa = no; then 10989# AC_CHECK_LIB(dnet_stub, dnet_ntoa, 10990# [SOCKET_LIBS="$SOCKET_LIBS -ldnet_stub"]) 10991# fi 10992 10993 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 10994 # to get the SysV transport functions. 10995 # chad@anasazi.com says the Pyramid MIS-ES running DC/OSx (SVR4) 10996 # needs -lnsl. 10997 # The nsl library prevents programs from opening the X display 10998 # on Irix 5.2, according to dickey@clark.net. 10999 echo "$as_me:$LINENO: checking for gethostbyname" >&5 11000echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 11001if test "${ac_cv_func_gethostbyname+set}" = set; then 11002 echo $ECHO_N "(cached) $ECHO_C" >&6 11003else 11004 cat >conftest.$ac_ext <<_ACEOF 11005#line $LINENO "configure" 11006/* confdefs.h. */ 11007_ACEOF 11008cat confdefs.h >>conftest.$ac_ext 11009cat >>conftest.$ac_ext <<_ACEOF 11010/* end confdefs.h. */ 11011/* System header to define __stub macros and hopefully few prototypes, 11012 which can conflict with char gethostbyname (); below. 11013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11014 <limits.h> exists even on freestanding compilers. */ 11015#ifdef __STDC__ 11016# include <limits.h> 11017#else 11018# include <assert.h> 11019#endif 11020/* Override any gcc2 internal prototype to avoid an error. */ 11021#ifdef __cplusplus 11022extern "C" 11023{ 11024#endif 11025/* We use char because int might match the return type of a gcc2 11026 builtin and then its argument prototype would still apply. */ 11027char gethostbyname (); 11028/* The GNU C library defines this for functions which it implements 11029 to always fail with ENOSYS. Some functions are actually named 11030 something starting with __ and the normal name is an alias. */ 11031#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 11032choke me 11033#else 11034char (*f) () = gethostbyname; 11035#endif 11036#ifdef __cplusplus 11037} 11038#endif 11039 11040int 11041main () 11042{ 11043return f != gethostbyname; 11044 ; 11045 return 0; 11046} 11047_ACEOF 11048rm -f conftest.$ac_objext conftest$ac_exeext 11049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11050 (eval $ac_link) 2>&5 11051 ac_status=$? 11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11053 (exit $ac_status); } && 11054 { ac_try='test -s conftest$ac_exeext' 11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11056 (eval $ac_try) 2>&5 11057 ac_status=$? 11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11059 (exit $ac_status); }; }; then 11060 ac_cv_func_gethostbyname=yes 11061else 11062 echo "$as_me: failed program was:" >&5 11063sed 's/^/| /' conftest.$ac_ext >&5 11064 11065ac_cv_func_gethostbyname=no 11066fi 11067rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11068fi 11069echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 11070echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 11071 11072 if test $ac_cv_func_gethostbyname = no; then 11073 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 11074echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 11075if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 11076 echo $ECHO_N "(cached) $ECHO_C" >&6 11077else 11078 ac_check_lib_save_LIBS=$LIBS 11079LIBS="-lnsl $LIBS" 11080cat >conftest.$ac_ext <<_ACEOF 11081#line $LINENO "configure" 11082/* confdefs.h. */ 11083_ACEOF 11084cat confdefs.h >>conftest.$ac_ext 11085cat >>conftest.$ac_ext <<_ACEOF 11086/* end confdefs.h. */ 11087 11088/* Override any gcc2 internal prototype to avoid an error. */ 11089#ifdef __cplusplus 11090extern "C" 11091#endif 11092/* We use char because int might match the return type of a gcc2 11093 builtin and then its argument prototype would still apply. */ 11094char gethostbyname (); 11095int 11096main () 11097{ 11098gethostbyname (); 11099 ; 11100 return 0; 11101} 11102_ACEOF 11103rm -f conftest.$ac_objext conftest$ac_exeext 11104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11105 (eval $ac_link) 2>&5 11106 ac_status=$? 11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11108 (exit $ac_status); } && 11109 { ac_try='test -s conftest$ac_exeext' 11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11111 (eval $ac_try) 2>&5 11112 ac_status=$? 11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11114 (exit $ac_status); }; }; then 11115 ac_cv_lib_nsl_gethostbyname=yes 11116else 11117 echo "$as_me: failed program was:" >&5 11118sed 's/^/| /' conftest.$ac_ext >&5 11119 11120ac_cv_lib_nsl_gethostbyname=no 11121fi 11122rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11123LIBS=$ac_check_lib_save_LIBS 11124fi 11125echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 11126echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 11127if test $ac_cv_lib_nsl_gethostbyname = yes; then 11128 SOCKET_LIBS="$SOCKET_LIBS -lnsl" 11129fi 11130 11131 fi 11132 11133 # lieder@skyler.mavd.honeywell.com says without -lsocket, 11134 # socket/setsockopt and other routines are undefined under SCO ODT 11135 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 11136 # on later versions), says simon@lia.di.epfl.ch: it contains 11137 # gethostby* variants that don't use the nameserver (or something). 11138 # -lsocket must be given before -lnsl if both are needed. 11139 # We assume that if connect needs -lnsl, so does gethostbyname. 11140 echo "$as_me:$LINENO: checking for connect" >&5 11141echo $ECHO_N "checking for connect... $ECHO_C" >&6 11142if test "${ac_cv_func_connect+set}" = set; then 11143 echo $ECHO_N "(cached) $ECHO_C" >&6 11144else 11145 cat >conftest.$ac_ext <<_ACEOF 11146#line $LINENO "configure" 11147/* confdefs.h. */ 11148_ACEOF 11149cat confdefs.h >>conftest.$ac_ext 11150cat >>conftest.$ac_ext <<_ACEOF 11151/* end confdefs.h. */ 11152/* System header to define __stub macros and hopefully few prototypes, 11153 which can conflict with char connect (); below. 11154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11155 <limits.h> exists even on freestanding compilers. */ 11156#ifdef __STDC__ 11157# include <limits.h> 11158#else 11159# include <assert.h> 11160#endif 11161/* Override any gcc2 internal prototype to avoid an error. */ 11162#ifdef __cplusplus 11163extern "C" 11164{ 11165#endif 11166/* We use char because int might match the return type of a gcc2 11167 builtin and then its argument prototype would still apply. */ 11168char connect (); 11169/* The GNU C library defines this for functions which it implements 11170 to always fail with ENOSYS. Some functions are actually named 11171 something starting with __ and the normal name is an alias. */ 11172#if defined (__stub_connect) || defined (__stub___connect) 11173choke me 11174#else 11175char (*f) () = connect; 11176#endif 11177#ifdef __cplusplus 11178} 11179#endif 11180 11181int 11182main () 11183{ 11184return f != connect; 11185 ; 11186 return 0; 11187} 11188_ACEOF 11189rm -f conftest.$ac_objext conftest$ac_exeext 11190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11191 (eval $ac_link) 2>&5 11192 ac_status=$? 11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11194 (exit $ac_status); } && 11195 { ac_try='test -s conftest$ac_exeext' 11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11197 (eval $ac_try) 2>&5 11198 ac_status=$? 11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11200 (exit $ac_status); }; }; then 11201 ac_cv_func_connect=yes 11202else 11203 echo "$as_me: failed program was:" >&5 11204sed 's/^/| /' conftest.$ac_ext >&5 11205 11206ac_cv_func_connect=no 11207fi 11208rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11209fi 11210echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 11211echo "${ECHO_T}$ac_cv_func_connect" >&6 11212 11213 if test $ac_cv_func_connect = no; then 11214 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 11215echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 11216if test "${ac_cv_lib_socket_connect+set}" = set; then 11217 echo $ECHO_N "(cached) $ECHO_C" >&6 11218else 11219 ac_check_lib_save_LIBS=$LIBS 11220LIBS="-lsocket $SOCKET_LIBS $LIBS" 11221cat >conftest.$ac_ext <<_ACEOF 11222#line $LINENO "configure" 11223/* confdefs.h. */ 11224_ACEOF 11225cat confdefs.h >>conftest.$ac_ext 11226cat >>conftest.$ac_ext <<_ACEOF 11227/* end confdefs.h. */ 11228 11229/* Override any gcc2 internal prototype to avoid an error. */ 11230#ifdef __cplusplus 11231extern "C" 11232#endif 11233/* We use char because int might match the return type of a gcc2 11234 builtin and then its argument prototype would still apply. */ 11235char connect (); 11236int 11237main () 11238{ 11239connect (); 11240 ; 11241 return 0; 11242} 11243_ACEOF 11244rm -f conftest.$ac_objext conftest$ac_exeext 11245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11246 (eval $ac_link) 2>&5 11247 ac_status=$? 11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11249 (exit $ac_status); } && 11250 { ac_try='test -s conftest$ac_exeext' 11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11252 (eval $ac_try) 2>&5 11253 ac_status=$? 11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11255 (exit $ac_status); }; }; then 11256 ac_cv_lib_socket_connect=yes 11257else 11258 echo "$as_me: failed program was:" >&5 11259sed 's/^/| /' conftest.$ac_ext >&5 11260 11261ac_cv_lib_socket_connect=no 11262fi 11263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11264LIBS=$ac_check_lib_save_LIBS 11265fi 11266echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 11267echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 11268if test $ac_cv_lib_socket_connect = yes; then 11269 SOCKET_LIBS="-lsocket $SOCKET_LIBS" 11270 gawk_have_sockets=yes 11271fi 11272 11273 else 11274 gawk_have_sockets=yes 11275 fi 11276fi 11277 11278if test "${gawk_have_sockets}" = "yes" 11279then 11280 echo "$as_me:$LINENO: checking where to find the socket library calls" >&5 11281echo $ECHO_N "checking where to find the socket library calls... $ECHO_C" >&6 11282 case "${SOCKET_LIBS}" in 11283 ?*) gawk_lib_loc="${SOCKET_LIBS}" ;; 11284 *) gawk_lib_loc="the standard library" ;; 11285 esac 11286 echo "$as_me:$LINENO: result: ${gawk_lib_loc}" >&5 11287echo "${ECHO_T}${gawk_lib_loc}" >&6 11288 11289 11290cat >>confdefs.h <<\_ACEOF 11291#define HAVE_SOCKETS 1 11292_ACEOF 11293 11294fi 11295 11296 11297 11298echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 11299echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 11300if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then 11301 echo $ECHO_N "(cached) $ECHO_C" >&6 11302else 11303 cat >conftest.$ac_ext <<_ACEOF 11304#line $LINENO "configure" 11305/* confdefs.h. */ 11306_ACEOF 11307cat confdefs.h >>conftest.$ac_ext 11308cat >>conftest.$ac_ext <<_ACEOF 11309/* end confdefs.h. */ 11310$ac_includes_default 11311int 11312main () 11313{ 11314static struct stat ac_aggr; 11315if (ac_aggr.st_blksize) 11316return 0; 11317 ; 11318 return 0; 11319} 11320_ACEOF 11321rm -f conftest.$ac_objext 11322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11323 (eval $ac_compile) 2>&5 11324 ac_status=$? 11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11326 (exit $ac_status); } && 11327 { ac_try='test -s conftest.$ac_objext' 11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11329 (eval $ac_try) 2>&5 11330 ac_status=$? 11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11332 (exit $ac_status); }; }; then 11333 ac_cv_member_struct_stat_st_blksize=yes 11334else 11335 echo "$as_me: failed program was:" >&5 11336sed 's/^/| /' conftest.$ac_ext >&5 11337 11338cat >conftest.$ac_ext <<_ACEOF 11339#line $LINENO "configure" 11340/* confdefs.h. */ 11341_ACEOF 11342cat confdefs.h >>conftest.$ac_ext 11343cat >>conftest.$ac_ext <<_ACEOF 11344/* end confdefs.h. */ 11345$ac_includes_default 11346int 11347main () 11348{ 11349static struct stat ac_aggr; 11350if (sizeof ac_aggr.st_blksize) 11351return 0; 11352 ; 11353 return 0; 11354} 11355_ACEOF 11356rm -f conftest.$ac_objext 11357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11358 (eval $ac_compile) 2>&5 11359 ac_status=$? 11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11361 (exit $ac_status); } && 11362 { ac_try='test -s conftest.$ac_objext' 11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11364 (eval $ac_try) 2>&5 11365 ac_status=$? 11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11367 (exit $ac_status); }; }; then 11368 ac_cv_member_struct_stat_st_blksize=yes 11369else 11370 echo "$as_me: failed program was:" >&5 11371sed 's/^/| /' conftest.$ac_ext >&5 11372 11373ac_cv_member_struct_stat_st_blksize=no 11374fi 11375rm -f conftest.$ac_objext conftest.$ac_ext 11376fi 11377rm -f conftest.$ac_objext conftest.$ac_ext 11378fi 11379echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 11380echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 11381if test $ac_cv_member_struct_stat_st_blksize = yes; then 11382 11383cat >>confdefs.h <<_ACEOF 11384#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 11385_ACEOF 11386 11387 11388cat >>confdefs.h <<\_ACEOF 11389#define HAVE_ST_BLKSIZE 1 11390_ACEOF 11391 11392fi 11393 11394 11395echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 11396echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 11397if test "${ac_cv_header_time+set}" = set; then 11398 echo $ECHO_N "(cached) $ECHO_C" >&6 11399else 11400 cat >conftest.$ac_ext <<_ACEOF 11401#line $LINENO "configure" 11402/* confdefs.h. */ 11403_ACEOF 11404cat confdefs.h >>conftest.$ac_ext 11405cat >>conftest.$ac_ext <<_ACEOF 11406/* end confdefs.h. */ 11407#include <sys/types.h> 11408#include <sys/time.h> 11409#include <time.h> 11410 11411int 11412main () 11413{ 11414if ((struct tm *) 0) 11415return 0; 11416 ; 11417 return 0; 11418} 11419_ACEOF 11420rm -f conftest.$ac_objext 11421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11422 (eval $ac_compile) 2>&5 11423 ac_status=$? 11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11425 (exit $ac_status); } && 11426 { ac_try='test -s conftest.$ac_objext' 11427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11428 (eval $ac_try) 2>&5 11429 ac_status=$? 11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11431 (exit $ac_status); }; }; then 11432 ac_cv_header_time=yes 11433else 11434 echo "$as_me: failed program was:" >&5 11435sed 's/^/| /' conftest.$ac_ext >&5 11436 11437ac_cv_header_time=no 11438fi 11439rm -f conftest.$ac_objext conftest.$ac_ext 11440fi 11441echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 11442echo "${ECHO_T}$ac_cv_header_time" >&6 11443if test $ac_cv_header_time = yes; then 11444 11445cat >>confdefs.h <<\_ACEOF 11446#define TIME_WITH_SYS_TIME 1 11447_ACEOF 11448 11449fi 11450 11451echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 11452echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 11453if test "${ac_cv_struct_tm+set}" = set; then 11454 echo $ECHO_N "(cached) $ECHO_C" >&6 11455else 11456 cat >conftest.$ac_ext <<_ACEOF 11457#line $LINENO "configure" 11458/* confdefs.h. */ 11459_ACEOF 11460cat confdefs.h >>conftest.$ac_ext 11461cat >>conftest.$ac_ext <<_ACEOF 11462/* end confdefs.h. */ 11463#include <sys/types.h> 11464#include <time.h> 11465 11466int 11467main () 11468{ 11469struct tm *tp; tp->tm_sec; 11470 ; 11471 return 0; 11472} 11473_ACEOF 11474rm -f conftest.$ac_objext 11475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11476 (eval $ac_compile) 2>&5 11477 ac_status=$? 11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11479 (exit $ac_status); } && 11480 { ac_try='test -s conftest.$ac_objext' 11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11482 (eval $ac_try) 2>&5 11483 ac_status=$? 11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11485 (exit $ac_status); }; }; then 11486 ac_cv_struct_tm=time.h 11487else 11488 echo "$as_me: failed program was:" >&5 11489sed 's/^/| /' conftest.$ac_ext >&5 11490 11491ac_cv_struct_tm=sys/time.h 11492fi 11493rm -f conftest.$ac_objext conftest.$ac_ext 11494fi 11495echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 11496echo "${ECHO_T}$ac_cv_struct_tm" >&6 11497if test $ac_cv_struct_tm = sys/time.h; then 11498 11499cat >>confdefs.h <<\_ACEOF 11500#define TM_IN_SYS_TIME 1 11501_ACEOF 11502 11503fi 11504 11505echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 11506echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 11507if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then 11508 echo $ECHO_N "(cached) $ECHO_C" >&6 11509else 11510 cat >conftest.$ac_ext <<_ACEOF 11511#line $LINENO "configure" 11512/* confdefs.h. */ 11513_ACEOF 11514cat confdefs.h >>conftest.$ac_ext 11515cat >>conftest.$ac_ext <<_ACEOF 11516/* end confdefs.h. */ 11517#include <sys/types.h> 11518#include <$ac_cv_struct_tm> 11519 11520 11521int 11522main () 11523{ 11524static struct tm ac_aggr; 11525if (ac_aggr.tm_zone) 11526return 0; 11527 ; 11528 return 0; 11529} 11530_ACEOF 11531rm -f conftest.$ac_objext 11532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11533 (eval $ac_compile) 2>&5 11534 ac_status=$? 11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11536 (exit $ac_status); } && 11537 { ac_try='test -s conftest.$ac_objext' 11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11539 (eval $ac_try) 2>&5 11540 ac_status=$? 11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11542 (exit $ac_status); }; }; then 11543 ac_cv_member_struct_tm_tm_zone=yes 11544else 11545 echo "$as_me: failed program was:" >&5 11546sed 's/^/| /' conftest.$ac_ext >&5 11547 11548cat >conftest.$ac_ext <<_ACEOF 11549#line $LINENO "configure" 11550/* confdefs.h. */ 11551_ACEOF 11552cat confdefs.h >>conftest.$ac_ext 11553cat >>conftest.$ac_ext <<_ACEOF 11554/* end confdefs.h. */ 11555#include <sys/types.h> 11556#include <$ac_cv_struct_tm> 11557 11558 11559int 11560main () 11561{ 11562static struct tm ac_aggr; 11563if (sizeof ac_aggr.tm_zone) 11564return 0; 11565 ; 11566 return 0; 11567} 11568_ACEOF 11569rm -f conftest.$ac_objext 11570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11571 (eval $ac_compile) 2>&5 11572 ac_status=$? 11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11574 (exit $ac_status); } && 11575 { ac_try='test -s conftest.$ac_objext' 11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11577 (eval $ac_try) 2>&5 11578 ac_status=$? 11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11580 (exit $ac_status); }; }; then 11581 ac_cv_member_struct_tm_tm_zone=yes 11582else 11583 echo "$as_me: failed program was:" >&5 11584sed 's/^/| /' conftest.$ac_ext >&5 11585 11586ac_cv_member_struct_tm_tm_zone=no 11587fi 11588rm -f conftest.$ac_objext conftest.$ac_ext 11589fi 11590rm -f conftest.$ac_objext conftest.$ac_ext 11591fi 11592echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 11593echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 11594if test $ac_cv_member_struct_tm_tm_zone = yes; then 11595 11596cat >>confdefs.h <<_ACEOF 11597#define HAVE_STRUCT_TM_TM_ZONE 1 11598_ACEOF 11599 11600 11601fi 11602 11603if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 11604 11605cat >>confdefs.h <<\_ACEOF 11606#define HAVE_TM_ZONE 1 11607_ACEOF 11608 11609else 11610 echo "$as_me:$LINENO: checking for tzname" >&5 11611echo $ECHO_N "checking for tzname... $ECHO_C" >&6 11612if test "${ac_cv_var_tzname+set}" = set; then 11613 echo $ECHO_N "(cached) $ECHO_C" >&6 11614else 11615 cat >conftest.$ac_ext <<_ACEOF 11616#line $LINENO "configure" 11617/* confdefs.h. */ 11618_ACEOF 11619cat confdefs.h >>conftest.$ac_ext 11620cat >>conftest.$ac_ext <<_ACEOF 11621/* end confdefs.h. */ 11622#include <time.h> 11623#ifndef tzname /* For SGI. */ 11624extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 11625#endif 11626 11627int 11628main () 11629{ 11630atoi(*tzname); 11631 ; 11632 return 0; 11633} 11634_ACEOF 11635rm -f conftest.$ac_objext conftest$ac_exeext 11636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11637 (eval $ac_link) 2>&5 11638 ac_status=$? 11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); } && 11641 { ac_try='test -s conftest$ac_exeext' 11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11643 (eval $ac_try) 2>&5 11644 ac_status=$? 11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11646 (exit $ac_status); }; }; then 11647 ac_cv_var_tzname=yes 11648else 11649 echo "$as_me: failed program was:" >&5 11650sed 's/^/| /' conftest.$ac_ext >&5 11651 11652ac_cv_var_tzname=no 11653fi 11654rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11655fi 11656echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 11657echo "${ECHO_T}$ac_cv_var_tzname" >&6 11658 if test $ac_cv_var_tzname = yes; then 11659 11660cat >>confdefs.h <<\_ACEOF 11661#define HAVE_TZNAME 1 11662_ACEOF 11663 11664 fi 11665fi 11666 11667 11668 11669echo "$as_me:$LINENO: checking whether char is unsigned" >&5 11670echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 11671if test "${ac_cv_c_char_unsigned+set}" = set; then 11672 echo $ECHO_N "(cached) $ECHO_C" >&6 11673else 11674 cat >conftest.$ac_ext <<_ACEOF 11675#line $LINENO "configure" 11676/* confdefs.h. */ 11677_ACEOF 11678cat confdefs.h >>conftest.$ac_ext 11679cat >>conftest.$ac_ext <<_ACEOF 11680/* end confdefs.h. */ 11681$ac_includes_default 11682int 11683main () 11684{ 11685static int test_array [1 - 2 * !(((char) -1) < 0)]; 11686test_array [0] = 0 11687 11688 ; 11689 return 0; 11690} 11691_ACEOF 11692rm -f conftest.$ac_objext 11693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11694 (eval $ac_compile) 2>&5 11695 ac_status=$? 11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11697 (exit $ac_status); } && 11698 { ac_try='test -s conftest.$ac_objext' 11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11700 (eval $ac_try) 2>&5 11701 ac_status=$? 11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11703 (exit $ac_status); }; }; then 11704 ac_cv_c_char_unsigned=no 11705else 11706 echo "$as_me: failed program was:" >&5 11707sed 's/^/| /' conftest.$ac_ext >&5 11708 11709ac_cv_c_char_unsigned=yes 11710fi 11711rm -f conftest.$ac_objext conftest.$ac_ext 11712fi 11713echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 11714echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 11715if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 11716 cat >>confdefs.h <<\_ACEOF 11717#define __CHAR_UNSIGNED__ 1 11718_ACEOF 11719 11720fi 11721 11722echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 11723echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 11724if test "${ac_cv_c_const+set}" = set; then 11725 echo $ECHO_N "(cached) $ECHO_C" >&6 11726else 11727 cat >conftest.$ac_ext <<_ACEOF 11728#line $LINENO "configure" 11729/* confdefs.h. */ 11730_ACEOF 11731cat confdefs.h >>conftest.$ac_ext 11732cat >>conftest.$ac_ext <<_ACEOF 11733/* end confdefs.h. */ 11734 11735int 11736main () 11737{ 11738/* FIXME: Include the comments suggested by Paul. */ 11739#ifndef __cplusplus 11740 /* Ultrix mips cc rejects this. */ 11741 typedef int charset[2]; 11742 const charset x; 11743 /* SunOS 4.1.1 cc rejects this. */ 11744 char const *const *ccp; 11745 char **p; 11746 /* NEC SVR4.0.2 mips cc rejects this. */ 11747 struct point {int x, y;}; 11748 static struct point const zero = {0,0}; 11749 /* AIX XL C 1.02.0.0 rejects this. 11750 It does not let you subtract one const X* pointer from another in 11751 an arm of an if-expression whose if-part is not a constant 11752 expression */ 11753 const char *g = "string"; 11754 ccp = &g + (g ? g-g : 0); 11755 /* HPUX 7.0 cc rejects these. */ 11756 ++ccp; 11757 p = (char**) ccp; 11758 ccp = (char const *const *) p; 11759 { /* SCO 3.2v4 cc rejects this. */ 11760 char *t; 11761 char const *s = 0 ? (char *) 0 : (char const *) 0; 11762 11763 *t++ = 0; 11764 } 11765 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11766 int x[] = {25, 17}; 11767 const int *foo = &x[0]; 11768 ++foo; 11769 } 11770 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11771 typedef const int *iptr; 11772 iptr p = 0; 11773 ++p; 11774 } 11775 { /* AIX XL C 1.02.0.0 rejects this saying 11776 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11777 struct s { int j; const int *ap[3]; }; 11778 struct s *b; b->j = 5; 11779 } 11780 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11781 const int foo = 10; 11782 } 11783#endif 11784 11785 ; 11786 return 0; 11787} 11788_ACEOF 11789rm -f conftest.$ac_objext 11790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11791 (eval $ac_compile) 2>&5 11792 ac_status=$? 11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11794 (exit $ac_status); } && 11795 { ac_try='test -s conftest.$ac_objext' 11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11797 (eval $ac_try) 2>&5 11798 ac_status=$? 11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11800 (exit $ac_status); }; }; then 11801 ac_cv_c_const=yes 11802else 11803 echo "$as_me: failed program was:" >&5 11804sed 's/^/| /' conftest.$ac_ext >&5 11805 11806ac_cv_c_const=no 11807fi 11808rm -f conftest.$ac_objext conftest.$ac_ext 11809fi 11810echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 11811echo "${ECHO_T}$ac_cv_c_const" >&6 11812if test $ac_cv_c_const = no; then 11813 11814cat >>confdefs.h <<\_ACEOF 11815#define const 11816_ACEOF 11817 11818fi 11819 11820echo "$as_me:$LINENO: checking for inline" >&5 11821echo $ECHO_N "checking for inline... $ECHO_C" >&6 11822if test "${ac_cv_c_inline+set}" = set; then 11823 echo $ECHO_N "(cached) $ECHO_C" >&6 11824else 11825 ac_cv_c_inline=no 11826for ac_kw in inline __inline__ __inline; do 11827 cat >conftest.$ac_ext <<_ACEOF 11828#line $LINENO "configure" 11829/* confdefs.h. */ 11830_ACEOF 11831cat confdefs.h >>conftest.$ac_ext 11832cat >>conftest.$ac_ext <<_ACEOF 11833/* end confdefs.h. */ 11834#ifndef __cplusplus 11835typedef int foo_t; 11836static $ac_kw foo_t static_foo () {return 0; } 11837$ac_kw foo_t foo () {return 0; } 11838#endif 11839 11840_ACEOF 11841rm -f conftest.$ac_objext 11842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11843 (eval $ac_compile) 2>&5 11844 ac_status=$? 11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11846 (exit $ac_status); } && 11847 { ac_try='test -s conftest.$ac_objext' 11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11849 (eval $ac_try) 2>&5 11850 ac_status=$? 11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11852 (exit $ac_status); }; }; then 11853 ac_cv_c_inline=$ac_kw; break 11854else 11855 echo "$as_me: failed program was:" >&5 11856sed 's/^/| /' conftest.$ac_ext >&5 11857 11858fi 11859rm -f conftest.$ac_objext conftest.$ac_ext 11860done 11861 11862fi 11863echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 11864echo "${ECHO_T}$ac_cv_c_inline" >&6 11865case $ac_cv_c_inline in 11866 inline | yes) ;; 11867 no) 11868cat >>confdefs.h <<\_ACEOF 11869#define inline 11870_ACEOF 11871 ;; 11872 *) cat >>confdefs.h <<_ACEOF 11873#define inline $ac_cv_c_inline 11874_ACEOF 11875 ;; 11876esac 11877 11878echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5 11879echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6 11880if test "${ac_cv_c_stringize+set}" = set; then 11881 echo $ECHO_N "(cached) $ECHO_C" >&6 11882else 11883 cat >conftest.$ac_ext <<_ACEOF 11884#line $LINENO "configure" 11885/* confdefs.h. */ 11886_ACEOF 11887cat confdefs.h >>conftest.$ac_ext 11888cat >>conftest.$ac_ext <<_ACEOF 11889/* end confdefs.h. */ 11890#define x(y) #y 11891 11892char *s = x(teststring); 11893_ACEOF 11894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11895 $EGREP "#teststring" >/dev/null 2>&1; then 11896 ac_cv_c_stringize=no 11897else 11898 ac_cv_c_stringize=yes 11899fi 11900rm -f conftest* 11901 11902fi 11903echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5 11904echo "${ECHO_T}$ac_cv_c_stringize" >&6 11905if test $ac_cv_c_stringize = yes; then 11906 11907cat >>confdefs.h <<\_ACEOF 11908#define HAVE_STRINGIZE 1 11909_ACEOF 11910 11911fi 11912 11913 11914 ac_config_files="$ac_config_files Makefile awklib/Makefile doc/Makefile intl/Makefile po/Makefile.in test/Makefile" 11915cat >confcache <<\_ACEOF 11916# This file is a shell script that caches the results of configure 11917# tests run on this system so they can be shared between configure 11918# scripts and configure runs, see configure's option --config-cache. 11919# It is not useful on other systems. If it contains results you don't 11920# want to keep, you may remove or edit it. 11921# 11922# config.status only pays attention to the cache file if you give it 11923# the --recheck option to rerun configure. 11924# 11925# `ac_cv_env_foo' variables (set or unset) will be overridden when 11926# loading this file, other *unset* `ac_cv_foo' will be assigned the 11927# following values. 11928 11929_ACEOF 11930 11931# The following way of writing the cache mishandles newlines in values, 11932# but we know of no workaround that is simple, portable, and efficient. 11933# So, don't put newlines in cache variables' values. 11934# Ultrix sh set writes to stderr and can't be redirected directly, 11935# and sets the high bit in the cache file unless we assign to the vars. 11936{ 11937 (set) 2>&1 | 11938 case `(ac_space=' '; set | grep ac_space) 2>&1` in 11939 *ac_space=\ *) 11940 # `set' does not quote correctly, so add quotes (double-quote 11941 # substitution turns \\\\ into \\, and sed turns \\ into \). 11942 sed -n \ 11943 "s/'/'\\\\''/g; 11944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11945 ;; 11946 *) 11947 # `set' quotes correctly as required by POSIX, so do not add quotes. 11948 sed -n \ 11949 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11950 ;; 11951 esac; 11952} | 11953 sed ' 11954 t clear 11955 : clear 11956 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11957 t end 11958 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11959 : end' >>confcache 11960if diff $cache_file confcache >/dev/null 2>&1; then :; else 11961 if test -w $cache_file; then 11962 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 11963 cat confcache >$cache_file 11964 else 11965 echo "not updating unwritable cache $cache_file" 11966 fi 11967fi 11968rm -f confcache 11969 11970test "x$prefix" = xNONE && prefix=$ac_default_prefix 11971# Let make expand exec_prefix. 11972test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11973 11974# VPATH may cause trouble with some makes, so we remove $(srcdir), 11975# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 11976# trailing colons and then remove the whole line if VPATH becomes empty 11977# (actually we leave an empty line to preserve line numbers). 11978if test "x$srcdir" = x.; then 11979 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 11980s/:*\$(srcdir):*/:/; 11981s/:*\${srcdir}:*/:/; 11982s/:*@srcdir@:*/:/; 11983s/^\([^=]*=[ ]*\):*/\1/; 11984s/:*$//; 11985s/^[^=]*=[ ]*$//; 11986}' 11987fi 11988 11989DEFS=-DHAVE_CONFIG_H 11990 11991ac_libobjs= 11992ac_ltlibobjs= 11993for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11994 # 1. Remove the extension, and $U if already installed. 11995 ac_i=`echo "$ac_i" | 11996 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 11997 # 2. Add them. 11998 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 11999 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 12000done 12001LIBOBJS=$ac_libobjs 12002 12003LTLIBOBJS=$ac_ltlibobjs 12004 12005 12006if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12007 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 12008Usually this means the macro was only invoked conditionally." >&5 12009echo "$as_me: error: conditional \"AMDEP\" was never defined. 12010Usually this means the macro was only invoked conditionally." >&2;} 12011 { (exit 1); exit 1; }; } 12012fi 12013if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12014 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 12015Usually this means the macro was only invoked conditionally." >&5 12016echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 12017Usually this means the macro was only invoked conditionally." >&2;} 12018 { (exit 1); exit 1; }; } 12019fi 12020 12021: ${CONFIG_STATUS=./config.status} 12022ac_clean_files_save=$ac_clean_files 12023ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12024{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12025echo "$as_me: creating $CONFIG_STATUS" >&6;} 12026cat >$CONFIG_STATUS <<_ACEOF 12027#! $SHELL 12028# Generated by $as_me. 12029# Run this file to recreate the current configuration. 12030# Compiler output produced by configure, useful for debugging 12031# configure, is in config.log if it exists. 12032 12033debug=false 12034ac_cs_recheck=false 12035ac_cs_silent=false 12036SHELL=\${CONFIG_SHELL-$SHELL} 12037_ACEOF 12038 12039cat >>$CONFIG_STATUS <<\_ACEOF 12040## --------------------- ## 12041## M4sh Initialization. ## 12042## --------------------- ## 12043 12044# Be Bourne compatible 12045if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12046 emulate sh 12047 NULLCMD=: 12048 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 12049 # is contrary to our usage. Disable this feature. 12050 alias -g '${1+"$@"}'='"$@"' 12051elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 12052 set -o posix 12053fi 12054 12055# Support unset when possible. 12056if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 12057 as_unset=unset 12058else 12059 as_unset=false 12060fi 12061 12062 12063# Work around bugs in pre-3.0 UWIN ksh. 12064$as_unset ENV MAIL MAILPATH 12065PS1='$ ' 12066PS2='> ' 12067PS4='+ ' 12068 12069# NLS nuisances. 12070for as_var in \ 12071 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 12072 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 12073 LC_TELEPHONE LC_TIME 12074do 12075 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 12076 eval $as_var=C; export $as_var 12077 else 12078 $as_unset $as_var 12079 fi 12080done 12081 12082# Required to use basename. 12083if expr a : '\(a\)' >/dev/null 2>&1; then 12084 as_expr=expr 12085else 12086 as_expr=false 12087fi 12088 12089if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 12090 as_basename=basename 12091else 12092 as_basename=false 12093fi 12094 12095 12096# Name of the executable. 12097as_me=`$as_basename "$0" || 12098$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12099 X"$0" : 'X\(//\)$' \| \ 12100 X"$0" : 'X\(/\)$' \| \ 12101 . : '\(.\)' 2>/dev/null || 12102echo X/"$0" | 12103 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 12104 /^X\/\(\/\/\)$/{ s//\1/; q; } 12105 /^X\/\(\/\).*/{ s//\1/; q; } 12106 s/.*/./; q'` 12107 12108 12109# PATH needs CR, and LINENO needs CR and PATH. 12110# Avoid depending upon Character Ranges. 12111as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12112as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12113as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12114as_cr_digits='0123456789' 12115as_cr_alnum=$as_cr_Letters$as_cr_digits 12116 12117# The user is always right. 12118if test "${PATH_SEPARATOR+set}" != set; then 12119 echo "#! /bin/sh" >conf$$.sh 12120 echo "exit 0" >>conf$$.sh 12121 chmod +x conf$$.sh 12122 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12123 PATH_SEPARATOR=';' 12124 else 12125 PATH_SEPARATOR=: 12126 fi 12127 rm -f conf$$.sh 12128fi 12129 12130 12131 as_lineno_1=$LINENO 12132 as_lineno_2=$LINENO 12133 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 12134 test "x$as_lineno_1" != "x$as_lineno_2" && 12135 test "x$as_lineno_3" = "x$as_lineno_2" || { 12136 # Find who we are. Look in the path if we contain no path at all 12137 # relative or not. 12138 case $0 in 12139 *[\\/]* ) as_myself=$0 ;; 12140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12141for as_dir in $PATH 12142do 12143 IFS=$as_save_IFS 12144 test -z "$as_dir" && as_dir=. 12145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12146done 12147 12148 ;; 12149 esac 12150 # We did not find ourselves, most probably we were run as `sh COMMAND' 12151 # in which case we are not to be found in the path. 12152 if test "x$as_myself" = x; then 12153 as_myself=$0 12154 fi 12155 if test ! -f "$as_myself"; then 12156 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 12157echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 12158 { (exit 1); exit 1; }; } 12159 fi 12160 case $CONFIG_SHELL in 12161 '') 12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12163for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 12164do 12165 IFS=$as_save_IFS 12166 test -z "$as_dir" && as_dir=. 12167 for as_base in sh bash ksh sh5; do 12168 case $as_dir in 12169 /*) 12170 if ("$as_dir/$as_base" -c ' 12171 as_lineno_1=$LINENO 12172 as_lineno_2=$LINENO 12173 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 12174 test "x$as_lineno_1" != "x$as_lineno_2" && 12175 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 12176 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 12177 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 12178 CONFIG_SHELL=$as_dir/$as_base 12179 export CONFIG_SHELL 12180 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 12181 fi;; 12182 esac 12183 done 12184done 12185;; 12186 esac 12187 12188 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12189 # uniformly replaced by the line number. The first 'sed' inserts a 12190 # line-number line before each line; the second 'sed' does the real 12191 # work. The second script uses 'N' to pair each line-number line 12192 # with the numbered line, and appends trailing '-' during 12193 # substitution so that $LINENO is not a special case at line end. 12194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12195 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 12196 sed '=' <$as_myself | 12197 sed ' 12198 N 12199 s,$,-, 12200 : loop 12201 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 12202 t loop 12203 s,-$,, 12204 s,^['$as_cr_digits']*\n,, 12205 ' >$as_me.lineno && 12206 chmod +x $as_me.lineno || 12207 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 12208echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 12209 { (exit 1); exit 1; }; } 12210 12211 # Don't try to exec as it changes $[0], causing all sort of problems 12212 # (the dirname of $[0] is not the place where we might find the 12213 # original and so on. Autoconf is especially sensible to this). 12214 . ./$as_me.lineno 12215 # Exit status is that of the last command. 12216 exit 12217} 12218 12219 12220case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 12221 *c*,-n*) ECHO_N= ECHO_C=' 12222' ECHO_T=' ' ;; 12223 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 12224 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 12225esac 12226 12227if expr a : '\(a\)' >/dev/null 2>&1; then 12228 as_expr=expr 12229else 12230 as_expr=false 12231fi 12232 12233rm -f conf$$ conf$$.exe conf$$.file 12234echo >conf$$.file 12235if ln -s conf$$.file conf$$ 2>/dev/null; then 12236 # We could just check for DJGPP; but this test a) works b) is more generic 12237 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 12238 if test -f conf$$.exe; then 12239 # Don't use ln at all; we don't have any links 12240 as_ln_s='cp -p' 12241 else 12242 as_ln_s='ln -s' 12243 fi 12244elif ln conf$$.file conf$$ 2>/dev/null; then 12245 as_ln_s=ln 12246else 12247 as_ln_s='cp -p' 12248fi 12249rm -f conf$$ conf$$.exe conf$$.file 12250 12251if mkdir -p . 2>/dev/null; then 12252 as_mkdir_p=: 12253else 12254 as_mkdir_p=false 12255fi 12256 12257as_executable_p="test -f" 12258 12259# Sed expression to map a string onto a valid CPP name. 12260as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12261 12262# Sed expression to map a string onto a valid variable name. 12263as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12264 12265 12266# IFS 12267# We need space, tab and new line, in precisely that order. 12268as_nl=' 12269' 12270IFS=" $as_nl" 12271 12272# CDPATH. 12273$as_unset CDPATH 12274 12275exec 6>&1 12276 12277# Open the log real soon, to keep \$[0] and so on meaningful, and to 12278# report actual input values of CONFIG_FILES etc. instead of their 12279# values after options handling. Logging --version etc. is OK. 12280exec 5>>config.log 12281{ 12282 echo 12283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12284## Running $as_me. ## 12285_ASBOX 12286} >&5 12287cat >&5 <<_CSEOF 12288 12289This file was extended by GNU Awk $as_me 3.1.3, which was 12290generated by GNU Autoconf 2.57. Invocation command line was 12291 12292 CONFIG_FILES = $CONFIG_FILES 12293 CONFIG_HEADERS = $CONFIG_HEADERS 12294 CONFIG_LINKS = $CONFIG_LINKS 12295 CONFIG_COMMANDS = $CONFIG_COMMANDS 12296 $ $0 $@ 12297 12298_CSEOF 12299echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 12300echo >&5 12301_ACEOF 12302 12303# Files that config.status was made for. 12304if test -n "$ac_config_files"; then 12305 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 12306fi 12307 12308if test -n "$ac_config_headers"; then 12309 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 12310fi 12311 12312if test -n "$ac_config_links"; then 12313 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 12314fi 12315 12316if test -n "$ac_config_commands"; then 12317 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 12318fi 12319 12320cat >>$CONFIG_STATUS <<\_ACEOF 12321 12322ac_cs_usage="\ 12323\`$as_me' instantiates files from templates according to the 12324current configuration. 12325 12326Usage: $0 [OPTIONS] [FILE]... 12327 12328 -h, --help print this help, then exit 12329 -V, --version print version number, then exit 12330 -q, --quiet do not print progress messages 12331 -d, --debug don't remove temporary files 12332 --recheck update $as_me by reconfiguring in the same conditions 12333 --file=FILE[:TEMPLATE] 12334 instantiate the configuration file FILE 12335 --header=FILE[:TEMPLATE] 12336 instantiate the configuration header FILE 12337 12338Configuration files: 12339$config_files 12340 12341Configuration headers: 12342$config_headers 12343 12344Configuration commands: 12345$config_commands 12346 12347Report bugs to <bug-autoconf@gnu.org>." 12348_ACEOF 12349 12350cat >>$CONFIG_STATUS <<_ACEOF 12351ac_cs_version="\\ 12352GNU Awk config.status 3.1.3 12353configured by $0, generated by GNU Autoconf 2.57, 12354 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 12355 12356Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 12357Free Software Foundation, Inc. 12358This config.status script is free software; the Free Software Foundation 12359gives unlimited permission to copy, distribute and modify it." 12360srcdir=$srcdir 12361INSTALL="$INSTALL" 12362_ACEOF 12363 12364cat >>$CONFIG_STATUS <<\_ACEOF 12365# If no file are specified by the user, then we need to provide default 12366# value. By we need to know if files were specified by the user. 12367ac_need_defaults=: 12368while test $# != 0 12369do 12370 case $1 in 12371 --*=*) 12372 ac_option=`expr "x$1" : 'x\([^=]*\)='` 12373 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 12374 ac_shift=: 12375 ;; 12376 -*) 12377 ac_option=$1 12378 ac_optarg=$2 12379 ac_shift=shift 12380 ;; 12381 *) # This is not an option, so the user has probably given explicit 12382 # arguments. 12383 ac_option=$1 12384 ac_need_defaults=false;; 12385 esac 12386 12387 case $ac_option in 12388 # Handling of the options. 12389_ACEOF 12390cat >>$CONFIG_STATUS <<\_ACEOF 12391 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12392 ac_cs_recheck=: ;; 12393 --version | --vers* | -V ) 12394 echo "$ac_cs_version"; exit 0 ;; 12395 --he | --h) 12396 # Conflict between --help and --header 12397 { { echo "$as_me:$LINENO: error: ambiguous option: $1 12398Try \`$0 --help' for more information." >&5 12399echo "$as_me: error: ambiguous option: $1 12400Try \`$0 --help' for more information." >&2;} 12401 { (exit 1); exit 1; }; };; 12402 --help | --hel | -h ) 12403 echo "$ac_cs_usage"; exit 0 ;; 12404 --debug | --d* | -d ) 12405 debug=: ;; 12406 --file | --fil | --fi | --f ) 12407 $ac_shift 12408 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12409 ac_need_defaults=false;; 12410 --header | --heade | --head | --hea ) 12411 $ac_shift 12412 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12413 ac_need_defaults=false;; 12414 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12415 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12416 ac_cs_silent=: ;; 12417 12418 # This is an error. 12419 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 12420Try \`$0 --help' for more information." >&5 12421echo "$as_me: error: unrecognized option: $1 12422Try \`$0 --help' for more information." >&2;} 12423 { (exit 1); exit 1; }; } ;; 12424 12425 *) ac_config_targets="$ac_config_targets $1" ;; 12426 12427 esac 12428 shift 12429done 12430 12431ac_configure_extra_args= 12432 12433if $ac_cs_silent; then 12434 exec 6>/dev/null 12435 ac_configure_extra_args="$ac_configure_extra_args --silent" 12436fi 12437 12438_ACEOF 12439cat >>$CONFIG_STATUS <<_ACEOF 12440if \$ac_cs_recheck; then 12441 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12442 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12443fi 12444 12445_ACEOF 12446 12447cat >>$CONFIG_STATUS <<_ACEOF 12448# 12449# INIT-COMMANDS section. 12450# 12451 12452AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12453# Capture the value of obsolete ALL_LINGUAS because we need it to compute 12454 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 12455 # from automake. 12456 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 12457 # Capture the value of LINGUAS because we need it to compute CATALOGS. 12458 LINGUAS="${LINGUAS-%UNSET%}" 12459 12460 12461_ACEOF 12462 12463 12464 12465cat >>$CONFIG_STATUS <<\_ACEOF 12466for ac_config_target in $ac_config_targets 12467do 12468 case "$ac_config_target" in 12469 # Handling of arguments. 12470 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12471 "awklib/Makefile" ) CONFIG_FILES="$CONFIG_FILES awklib/Makefile" ;; 12472 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12473 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 12474 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 12475 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 12476 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12477 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12478 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;; 12479 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12480echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12481 { (exit 1); exit 1; }; };; 12482 esac 12483done 12484 12485# If the user did not use the arguments to specify the items to instantiate, 12486# then the envvar interface is used. Set only those that are not. 12487# We use the long form for the default assignment because of an extremely 12488# bizarre bug on SunOS 4.1.3. 12489if $ac_need_defaults; then 12490 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12491 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12492 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12493fi 12494 12495# Have a temporary directory for convenience. Make it in the build tree 12496# simply because there is no reason to put it here, and in addition, 12497# creating and moving files from /tmp can sometimes cause problems. 12498# Create a temporary directory, and hook for its removal unless debugging. 12499$debug || 12500{ 12501 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 12502 trap '{ (exit 1); exit 1; }' 1 2 13 15 12503} 12504 12505# Create a (secure) tmp directory for tmp files. 12506 12507{ 12508 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 12509 test -n "$tmp" && test -d "$tmp" 12510} || 12511{ 12512 tmp=./confstat$$-$RANDOM 12513 (umask 077 && mkdir $tmp) 12514} || 12515{ 12516 echo "$me: cannot create a temporary directory in ." >&2 12517 { (exit 1); exit 1; } 12518} 12519 12520_ACEOF 12521 12522cat >>$CONFIG_STATUS <<_ACEOF 12523 12524# 12525# CONFIG_FILES section. 12526# 12527 12528# No need to generate the scripts if there are no CONFIG_FILES. 12529# This happens for instance when ./config.status config.h 12530if test -n "\$CONFIG_FILES"; then 12531 # Protect against being on the right side of a sed subst in config.status. 12532 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 12533 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 12534s,@SHELL@,$SHELL,;t t 12535s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 12536s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 12537s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 12538s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 12539s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 12540s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 12541s,@exec_prefix@,$exec_prefix,;t t 12542s,@prefix@,$prefix,;t t 12543s,@program_transform_name@,$program_transform_name,;t t 12544s,@bindir@,$bindir,;t t 12545s,@sbindir@,$sbindir,;t t 12546s,@libexecdir@,$libexecdir,;t t 12547s,@datadir@,$datadir,;t t 12548s,@sysconfdir@,$sysconfdir,;t t 12549s,@sharedstatedir@,$sharedstatedir,;t t 12550s,@localstatedir@,$localstatedir,;t t 12551s,@libdir@,$libdir,;t t 12552s,@includedir@,$includedir,;t t 12553s,@oldincludedir@,$oldincludedir,;t t 12554s,@infodir@,$infodir,;t t 12555s,@mandir@,$mandir,;t t 12556s,@build_alias@,$build_alias,;t t 12557s,@host_alias@,$host_alias,;t t 12558s,@target_alias@,$target_alias,;t t 12559s,@DEFS@,$DEFS,;t t 12560s,@ECHO_C@,$ECHO_C,;t t 12561s,@ECHO_N@,$ECHO_N,;t t 12562s,@ECHO_T@,$ECHO_T,;t t 12563s,@LIBS@,$LIBS,;t t 12564s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 12565s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 12566s,@INSTALL_DATA@,$INSTALL_DATA,;t t 12567s,@CYGPATH_W@,$CYGPATH_W,;t t 12568s,@PACKAGE@,$PACKAGE,;t t 12569s,@VERSION@,$VERSION,;t t 12570s,@ACLOCAL@,$ACLOCAL,;t t 12571s,@AUTOCONF@,$AUTOCONF,;t t 12572s,@AUTOMAKE@,$AUTOMAKE,;t t 12573s,@AUTOHEADER@,$AUTOHEADER,;t t 12574s,@MAKEINFO@,$MAKEINFO,;t t 12575s,@AMTAR@,$AMTAR,;t t 12576s,@install_sh@,$install_sh,;t t 12577s,@STRIP@,$STRIP,;t t 12578s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 12579s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 12580s,@AWK@,$AWK,;t t 12581s,@SET_MAKE@,$SET_MAKE,;t t 12582s,@am__leading_dot@,$am__leading_dot,;t t 12583s,@EGREP@,$EGREP,;t t 12584s,@YACC@,$YACC,;t t 12585s,@LN_S@,$LN_S,;t t 12586s,@CC@,$CC,;t t 12587s,@CFLAGS@,$CFLAGS,;t t 12588s,@LDFLAGS@,$LDFLAGS,;t t 12589s,@CPPFLAGS@,$CPPFLAGS,;t t 12590s,@ac_ct_CC@,$ac_ct_CC,;t t 12591s,@EXEEXT@,$EXEEXT,;t t 12592s,@OBJEXT@,$OBJEXT,;t t 12593s,@DEPDIR@,$DEPDIR,;t t 12594s,@am__include@,$am__include,;t t 12595s,@am__quote@,$am__quote,;t t 12596s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 12597s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 12598s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 12599s,@CCDEPMODE@,$CCDEPMODE,;t t 12600s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 12601s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 12602s,@CPP@,$CPP,;t t 12603s,@RANLIB@,$RANLIB,;t t 12604s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 12605s,@U@,$U,;t t 12606s,@ANSI2KNR@,$ANSI2KNR,;t t 12607s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 12608s,@USE_NLS@,$USE_NLS,;t t 12609s,@MSGFMT@,$MSGFMT,;t t 12610s,@GMSGFMT@,$GMSGFMT,;t t 12611s,@XGETTEXT@,$XGETTEXT,;t t 12612s,@MSGMERGE@,$MSGMERGE,;t t 12613s,@build@,$build,;t t 12614s,@build_cpu@,$build_cpu,;t t 12615s,@build_vendor@,$build_vendor,;t t 12616s,@build_os@,$build_os,;t t 12617s,@host@,$host,;t t 12618s,@host_cpu@,$host_cpu,;t t 12619s,@host_vendor@,$host_vendor,;t t 12620s,@host_os@,$host_os,;t t 12621s,@ALLOCA@,$ALLOCA,;t t 12622s,@GLIBC21@,$GLIBC21,;t t 12623s,@LIBICONV@,$LIBICONV,;t t 12624s,@LTLIBICONV@,$LTLIBICONV,;t t 12625s,@INTLBISON@,$INTLBISON,;t t 12626s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 12627s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 12628s,@CATOBJEXT@,$CATOBJEXT,;t t 12629s,@DATADIRNAME@,$DATADIRNAME,;t t 12630s,@INSTOBJEXT@,$INSTOBJEXT,;t t 12631s,@GENCAT@,$GENCAT,;t t 12632s,@INTLOBJS@,$INTLOBJS,;t t 12633s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 12634s,@INTLLIBS@,$INTLLIBS,;t t 12635s,@LIBINTL@,$LIBINTL,;t t 12636s,@LTLIBINTL@,$LTLIBINTL,;t t 12637s,@POSUB@,$POSUB,;t t 12638s,@LIBOBJS@,$LIBOBJS,;t t 12639s,@SOCKET_LIBS@,$SOCKET_LIBS,;t t 12640s,@LTLIBOBJS@,$LTLIBOBJS,;t t 12641CEOF 12642 12643_ACEOF 12644 12645 cat >>$CONFIG_STATUS <<\_ACEOF 12646 # Split the substitutions into bite-sized pieces for seds with 12647 # small command number limits, like on Digital OSF/1 and HP-UX. 12648 ac_max_sed_lines=48 12649 ac_sed_frag=1 # Number of current file. 12650 ac_beg=1 # First line for current file. 12651 ac_end=$ac_max_sed_lines # Line after last line for current file. 12652 ac_more_lines=: 12653 ac_sed_cmds= 12654 while $ac_more_lines; do 12655 if test $ac_beg -gt 1; then 12656 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12657 else 12658 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 12659 fi 12660 if test ! -s $tmp/subs.frag; then 12661 ac_more_lines=false 12662 else 12663 # The purpose of the label and of the branching condition is to 12664 # speed up the sed processing (if there are no `@' at all, there 12665 # is no need to browse any of the substitutions). 12666 # These are the two extra sed commands mentioned above. 12667 (echo ':t 12668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 12669 if test -z "$ac_sed_cmds"; then 12670 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 12671 else 12672 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 12673 fi 12674 ac_sed_frag=`expr $ac_sed_frag + 1` 12675 ac_beg=$ac_end 12676 ac_end=`expr $ac_end + $ac_max_sed_lines` 12677 fi 12678 done 12679 if test -z "$ac_sed_cmds"; then 12680 ac_sed_cmds=cat 12681 fi 12682fi # test -n "$CONFIG_FILES" 12683 12684_ACEOF 12685cat >>$CONFIG_STATUS <<\_ACEOF 12686for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 12687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12688 case $ac_file in 12689 - | *:- | *:-:* ) # input from stdin 12690 cat >$tmp/stdin 12691 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12693 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12695 * ) ac_file_in=$ac_file.in ;; 12696 esac 12697 12698 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 12699 ac_dir=`(dirname "$ac_file") 2>/dev/null || 12700$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12701 X"$ac_file" : 'X\(//\)[^/]' \| \ 12702 X"$ac_file" : 'X\(//\)$' \| \ 12703 X"$ac_file" : 'X\(/\)' \| \ 12704 . : '\(.\)' 2>/dev/null || 12705echo X"$ac_file" | 12706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12707 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12708 /^X\(\/\/\)$/{ s//\1/; q; } 12709 /^X\(\/\).*/{ s//\1/; q; } 12710 s/.*/./; q'` 12711 { if $as_mkdir_p; then 12712 mkdir -p "$ac_dir" 12713 else 12714 as_dir="$ac_dir" 12715 as_dirs= 12716 while test ! -d "$as_dir"; do 12717 as_dirs="$as_dir $as_dirs" 12718 as_dir=`(dirname "$as_dir") 2>/dev/null || 12719$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12720 X"$as_dir" : 'X\(//\)[^/]' \| \ 12721 X"$as_dir" : 'X\(//\)$' \| \ 12722 X"$as_dir" : 'X\(/\)' \| \ 12723 . : '\(.\)' 2>/dev/null || 12724echo X"$as_dir" | 12725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 12726 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 12727 /^X\(\/\/\)$/{ s//\1/; q; } 12728 /^X\(\/\).*/{ s//\1/; q; } 12729 s/.*/./; q'` 12730 done 12731 test ! -n "$as_dirs" || mkdir $as_dirs 12732 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 12733echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 12734 { (exit 1); exit 1; }; }; } 12735 12736 ac_builddir=. 12737 12738if test "$ac_dir" != .; then 12739 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 12740 # A "../" for each directory in $ac_dir_suffix. 12741 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 12742else 12743 ac_dir_suffix= ac_top_builddir= 12744fi 12745 12746case $srcdir in 12747 .) # No --srcdir option. We are building in place. 12748 ac_srcdir=. 12749 if test -z "$ac_top_builddir"; then 12750 ac_top_srcdir=. 12751 else 12752 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 12753 fi ;; 12754 [\\/]* | ?:[\\/]* ) # Absolute path. 12755 ac_srcdir=$srcdir$ac_dir_suffix; 12756 ac_top_srcdir=$srcdir ;; 12757 *) # Relative path. 12758 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 12759 ac_top_srcdir=$ac_top_builddir$srcdir ;; 12760esac 12761# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 12762# absolute. 12763ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 12764ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 12765ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 12766ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 12767 12768 12769 case $INSTALL in 12770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12771 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 12772 esac 12773 12774 if test x"$ac_file" != x-; then 12775 { echo "$as_me:$LINENO: creating $ac_file" >&5 12776echo "$as_me: creating $ac_file" >&6;} 12777 rm -f "$ac_file" 12778 fi 12779 # Let's still pretend it is `configure' which instantiates (i.e., don't 12780 # use $as_me), people would be surprised to read: 12781 # /* config.h. Generated by config.status. */ 12782 if test x"$ac_file" = x-; then 12783 configure_input= 12784 else 12785 configure_input="$ac_file. " 12786 fi 12787 configure_input=$configure_input"Generated from `echo $ac_file_in | 12788 sed 's,.*/,,'` by configure." 12789 12790 # First look for the input files in the build tree, otherwise in the 12791 # src tree. 12792 ac_file_inputs=`IFS=: 12793 for f in $ac_file_in; do 12794 case $f in 12795 -) echo $tmp/stdin ;; 12796 [\\/$]*) 12797 # Absolute (can't be DOS-style, as IFS=:) 12798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12799echo "$as_me: error: cannot find input file: $f" >&2;} 12800 { (exit 1); exit 1; }; } 12801 echo $f;; 12802 *) # Relative 12803 if test -f "$f"; then 12804 # Build tree 12805 echo $f 12806 elif test -f "$srcdir/$f"; then 12807 # Source tree 12808 echo $srcdir/$f 12809 else 12810 # /dev/null tree 12811 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12812echo "$as_me: error: cannot find input file: $f" >&2;} 12813 { (exit 1); exit 1; }; } 12814 fi;; 12815 esac 12816 done` || { (exit 1); exit 1; } 12817_ACEOF 12818cat >>$CONFIG_STATUS <<_ACEOF 12819 sed "$ac_vpsub 12820$extrasub 12821_ACEOF 12822cat >>$CONFIG_STATUS <<\_ACEOF 12823:t 12824/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12825s,@configure_input@,$configure_input,;t t 12826s,@srcdir@,$ac_srcdir,;t t 12827s,@abs_srcdir@,$ac_abs_srcdir,;t t 12828s,@top_srcdir@,$ac_top_srcdir,;t t 12829s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 12830s,@builddir@,$ac_builddir,;t t 12831s,@abs_builddir@,$ac_abs_builddir,;t t 12832s,@top_builddir@,$ac_top_builddir,;t t 12833s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 12834s,@INSTALL@,$ac_INSTALL,;t t 12835" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 12836 rm -f $tmp/stdin 12837 if test x"$ac_file" != x-; then 12838 mv $tmp/out $ac_file 12839 else 12840 cat $tmp/out 12841 rm -f $tmp/out 12842 fi 12843 12844done 12845_ACEOF 12846cat >>$CONFIG_STATUS <<\_ACEOF 12847 12848# 12849# CONFIG_HEADER section. 12850# 12851 12852# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 12853# NAME is the cpp macro being defined and VALUE is the value it is being given. 12854# 12855# ac_d sets the value in "#define NAME VALUE" lines. 12856ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 12857ac_dB='[ ].*$,\1#\2' 12858ac_dC=' ' 12859ac_dD=',;t' 12860# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 12861ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 12862ac_uB='$,\1#\2define\3' 12863ac_uC=' ' 12864ac_uD=',;t' 12865 12866for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 12867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 12868 case $ac_file in 12869 - | *:- | *:-:* ) # input from stdin 12870 cat >$tmp/stdin 12871 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12873 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 12874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 12875 * ) ac_file_in=$ac_file.in ;; 12876 esac 12877 12878 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 12879echo "$as_me: creating $ac_file" >&6;} 12880 12881 # First look for the input files in the build tree, otherwise in the 12882 # src tree. 12883 ac_file_inputs=`IFS=: 12884 for f in $ac_file_in; do 12885 case $f in 12886 -) echo $tmp/stdin ;; 12887 [\\/$]*) 12888 # Absolute (can't be DOS-style, as IFS=:) 12889 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12890echo "$as_me: error: cannot find input file: $f" >&2;} 12891 { (exit 1); exit 1; }; } 12892 echo $f;; 12893 *) # Relative 12894 if test -f "$f"; then 12895 # Build tree 12896 echo $f 12897 elif test -f "$srcdir/$f"; then 12898 # Source tree 12899 echo $srcdir/$f 12900 else 12901 # /dev/null tree 12902 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 12903echo "$as_me: error: cannot find input file: $f" >&2;} 12904 { (exit 1); exit 1; }; } 12905 fi;; 12906 esac 12907 done` || { (exit 1); exit 1; } 12908 # Remove the trailing spaces. 12909 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 12910 12911_ACEOF 12912 12913# Transform confdefs.h into two sed scripts, `conftest.defines' and 12914# `conftest.undefs', that substitutes the proper values into 12915# config.h.in to produce config.h. The first handles `#define' 12916# templates, and the second `#undef' templates. 12917# And first: Protect against being on the right side of a sed subst in 12918# config.status. Protect against being in an unquoted here document 12919# in config.status. 12920rm -f conftest.defines conftest.undefs 12921# Using a here document instead of a string reduces the quoting nightmare. 12922# Putting comments in sed scripts is not portable. 12923# 12924# `end' is used to avoid that the second main sed command (meant for 12925# 0-ary CPP macros) applies to n-ary macro definitions. 12926# See the Autoconf documentation for `clear'. 12927cat >confdef2sed.sed <<\_ACEOF 12928s/[\\&,]/\\&/g 12929s,[\\$`],\\&,g 12930t clear 12931: clear 12932s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 12933t end 12934s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 12935: end 12936_ACEOF 12937# If some macros were called several times there might be several times 12938# the same #defines, which is useless. Nevertheless, we may not want to 12939# sort them, since we want the *last* AC-DEFINE to be honored. 12940uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 12941sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 12942rm -f confdef2sed.sed 12943 12944# This sed command replaces #undef with comments. This is necessary, for 12945# example, in the case of _POSIX_SOURCE, which is predefined and required 12946# on some systems where configure will not decide to define it. 12947cat >>conftest.undefs <<\_ACEOF 12948s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 12949_ACEOF 12950 12951# Break up conftest.defines because some shells have a limit on the size 12952# of here documents, and old seds have small limits too (100 cmds). 12953echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 12954echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 12955echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 12956echo ' :' >>$CONFIG_STATUS 12957rm -f conftest.tail 12958while grep . conftest.defines >/dev/null 12959do 12960 # Write a limited-size here document to $tmp/defines.sed. 12961 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 12962 # Speed up: don't consider the non `#define' lines. 12963 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 12964 # Work around the forget-to-reset-the-flag bug. 12965 echo 't clr' >>$CONFIG_STATUS 12966 echo ': clr' >>$CONFIG_STATUS 12967 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 12968 echo 'CEOF 12969 sed -f $tmp/defines.sed $tmp/in >$tmp/out 12970 rm -f $tmp/in 12971 mv $tmp/out $tmp/in 12972' >>$CONFIG_STATUS 12973 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 12974 rm -f conftest.defines 12975 mv conftest.tail conftest.defines 12976done 12977rm -f conftest.defines 12978echo ' fi # grep' >>$CONFIG_STATUS 12979echo >>$CONFIG_STATUS 12980 12981# Break up conftest.undefs because some shells have a limit on the size 12982# of here documents, and old seds have small limits too (100 cmds). 12983echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 12984rm -f conftest.tail 12985while grep . conftest.undefs >/dev/null 12986do 12987 # Write a limited-size here document to $tmp/undefs.sed. 12988 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 12989 # Speed up: don't consider the non `#undef' 12990 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 12991 # Work around the forget-to-reset-the-flag bug. 12992 echo 't clr' >>$CONFIG_STATUS 12993 echo ': clr' >>$CONFIG_STATUS 12994 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 12995 echo 'CEOF 12996 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 12997 rm -f $tmp/in 12998 mv $tmp/out $tmp/in 12999' >>$CONFIG_STATUS 13000 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 13001 rm -f conftest.undefs 13002 mv conftest.tail conftest.undefs 13003done 13004rm -f conftest.undefs 13005 13006cat >>$CONFIG_STATUS <<\_ACEOF 13007 # Let's still pretend it is `configure' which instantiates (i.e., don't 13008 # use $as_me), people would be surprised to read: 13009 # /* config.h. Generated by config.status. */ 13010 if test x"$ac_file" = x-; then 13011 echo "/* Generated by configure. */" >$tmp/config.h 13012 else 13013 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 13014 fi 13015 cat $tmp/in >>$tmp/config.h 13016 rm -f $tmp/in 13017 if test x"$ac_file" != x-; then 13018 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 13019 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13020echo "$as_me: $ac_file is unchanged" >&6;} 13021 else 13022 ac_dir=`(dirname "$ac_file") 2>/dev/null || 13023$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13024 X"$ac_file" : 'X\(//\)[^/]' \| \ 13025 X"$ac_file" : 'X\(//\)$' \| \ 13026 X"$ac_file" : 'X\(/\)' \| \ 13027 . : '\(.\)' 2>/dev/null || 13028echo X"$ac_file" | 13029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13030 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13031 /^X\(\/\/\)$/{ s//\1/; q; } 13032 /^X\(\/\).*/{ s//\1/; q; } 13033 s/.*/./; q'` 13034 { if $as_mkdir_p; then 13035 mkdir -p "$ac_dir" 13036 else 13037 as_dir="$ac_dir" 13038 as_dirs= 13039 while test ! -d "$as_dir"; do 13040 as_dirs="$as_dir $as_dirs" 13041 as_dir=`(dirname "$as_dir") 2>/dev/null || 13042$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13043 X"$as_dir" : 'X\(//\)[^/]' \| \ 13044 X"$as_dir" : 'X\(//\)$' \| \ 13045 X"$as_dir" : 'X\(/\)' \| \ 13046 . : '\(.\)' 2>/dev/null || 13047echo X"$as_dir" | 13048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13049 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13050 /^X\(\/\/\)$/{ s//\1/; q; } 13051 /^X\(\/\).*/{ s//\1/; q; } 13052 s/.*/./; q'` 13053 done 13054 test ! -n "$as_dirs" || mkdir $as_dirs 13055 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 13056echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 13057 { (exit 1); exit 1; }; }; } 13058 13059 rm -f $ac_file 13060 mv $tmp/config.h $ac_file 13061 fi 13062 else 13063 cat $tmp/config.h 13064 rm -f $tmp/config.h 13065 fi 13066# Compute $ac_file's index in $config_headers. 13067_am_stamp_count=1 13068for _am_header in $config_headers :; do 13069 case $_am_header in 13070 $ac_file | $ac_file:* ) 13071 break ;; 13072 * ) 13073 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13074 esac 13075done 13076echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 13077$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13078 X$ac_file : 'X\(//\)[^/]' \| \ 13079 X$ac_file : 'X\(//\)$' \| \ 13080 X$ac_file : 'X\(/\)' \| \ 13081 . : '\(.\)' 2>/dev/null || 13082echo X$ac_file | 13083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13084 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13085 /^X\(\/\/\)$/{ s//\1/; q; } 13086 /^X\(\/\).*/{ s//\1/; q; } 13087 s/.*/./; q'`/stamp-h$_am_stamp_count 13088 # Run the commands associated with the file. 13089 case $ac_file in 13090 config.h ) cat $srcdir/custom.h >> config.h ;; 13091 esac 13092done 13093_ACEOF 13094cat >>$CONFIG_STATUS <<\_ACEOF 13095 13096# 13097# CONFIG_COMMANDS section. 13098# 13099for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 13100 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 13101 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 13102 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 13103$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13104 X"$ac_dest" : 'X\(//\)[^/]' \| \ 13105 X"$ac_dest" : 'X\(//\)$' \| \ 13106 X"$ac_dest" : 'X\(/\)' \| \ 13107 . : '\(.\)' 2>/dev/null || 13108echo X"$ac_dest" | 13109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13110 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13111 /^X\(\/\/\)$/{ s//\1/; q; } 13112 /^X\(\/\).*/{ s//\1/; q; } 13113 s/.*/./; q'` 13114 ac_builddir=. 13115 13116if test "$ac_dir" != .; then 13117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 13118 # A "../" for each directory in $ac_dir_suffix. 13119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 13120else 13121 ac_dir_suffix= ac_top_builddir= 13122fi 13123 13124case $srcdir in 13125 .) # No --srcdir option. We are building in place. 13126 ac_srcdir=. 13127 if test -z "$ac_top_builddir"; then 13128 ac_top_srcdir=. 13129 else 13130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 13131 fi ;; 13132 [\\/]* | ?:[\\/]* ) # Absolute path. 13133 ac_srcdir=$srcdir$ac_dir_suffix; 13134 ac_top_srcdir=$srcdir ;; 13135 *) # Relative path. 13136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 13137 ac_top_srcdir=$ac_top_builddir$srcdir ;; 13138esac 13139# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 13140# absolute. 13141ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 13142ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 13143ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 13144ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 13145 13146 13147 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 13148echo "$as_me: executing $ac_dest commands" >&6;} 13149 case $ac_dest in 13150 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 13151 # Strip MF so we end up with the name of the file. 13152 mf=`echo "$mf" | sed -e 's/:.*$//'` 13153 # Check whether this is an Automake generated Makefile or not. 13154 # We used to match only the files named `Makefile.in', but 13155 # some people rename them; so instead we look at the file content. 13156 # Grep'ing the first line is not enough: some people post-process 13157 # each Makefile.in and add a new line on top of each file to say so. 13158 # So let's grep whole file. 13159 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 13160 dirpart=`(dirname "$mf") 2>/dev/null || 13161$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13162 X"$mf" : 'X\(//\)[^/]' \| \ 13163 X"$mf" : 'X\(//\)$' \| \ 13164 X"$mf" : 'X\(/\)' \| \ 13165 . : '\(.\)' 2>/dev/null || 13166echo X"$mf" | 13167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13168 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13169 /^X\(\/\/\)$/{ s//\1/; q; } 13170 /^X\(\/\).*/{ s//\1/; q; } 13171 s/.*/./; q'` 13172 else 13173 continue 13174 fi 13175 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 13176 # Extract the definition of DEP_FILES from the Makefile without 13177 # running `make'. 13178 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 13179 test -z "$DEPDIR" && continue 13180 # When using ansi2knr, U may be empty or an underscore; expand it 13181 U=`sed -n -e '/^U = / s///p' < "$mf"` 13182 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 13183 # We invoke sed twice because it is the simplest approach to 13184 # changing $(DEPDIR) to its actual value in the expansion. 13185 for file in `sed -n -e ' 13186 /^DEP_FILES = .*\\\\$/ { 13187 s/^DEP_FILES = // 13188 :loop 13189 s/\\\\$// 13190 p 13191 n 13192 /\\\\$/ b loop 13193 p 13194 } 13195 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 13196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13197 # Make sure the directory exists. 13198 test -f "$dirpart/$file" && continue 13199 fdir=`(dirname "$file") 2>/dev/null || 13200$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13201 X"$file" : 'X\(//\)[^/]' \| \ 13202 X"$file" : 'X\(//\)$' \| \ 13203 X"$file" : 'X\(/\)' \| \ 13204 . : '\(.\)' 2>/dev/null || 13205echo X"$file" | 13206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13207 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13208 /^X\(\/\/\)$/{ s//\1/; q; } 13209 /^X\(\/\).*/{ s//\1/; q; } 13210 s/.*/./; q'` 13211 { if $as_mkdir_p; then 13212 mkdir -p $dirpart/$fdir 13213 else 13214 as_dir=$dirpart/$fdir 13215 as_dirs= 13216 while test ! -d "$as_dir"; do 13217 as_dirs="$as_dir $as_dirs" 13218 as_dir=`(dirname "$as_dir") 2>/dev/null || 13219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13220 X"$as_dir" : 'X\(//\)[^/]' \| \ 13221 X"$as_dir" : 'X\(//\)$' \| \ 13222 X"$as_dir" : 'X\(/\)' \| \ 13223 . : '\(.\)' 2>/dev/null || 13224echo X"$as_dir" | 13225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 13226 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 13227 /^X\(\/\/\)$/{ s//\1/; q; } 13228 /^X\(\/\).*/{ s//\1/; q; } 13229 s/.*/./; q'` 13230 done 13231 test ! -n "$as_dirs" || mkdir $as_dirs 13232 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 13233echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 13234 { (exit 1); exit 1; }; }; } 13235 13236 # echo "creating $dirpart/$file" 13237 echo '# dummy' > "$dirpart/$file" 13238 done 13239done 13240 ;; 13241 default-1 ) 13242 for ac_file in $CONFIG_FILES; do 13243 # Support "outfile[:infile[:infile...]]" 13244 case "$ac_file" in 13245 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 13246 esac 13247 # PO directories have a Makefile.in generated from Makefile.in.in. 13248 case "$ac_file" in */Makefile.in) 13249 # Adjust a relative srcdir. 13250 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 13251 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 13252 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 13253 # In autoconf-2.13 it is called $ac_given_srcdir. 13254 # In autoconf-2.50 it is called $srcdir. 13255 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 13256 case "$ac_given_srcdir" in 13257 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 13258 /*) top_srcdir="$ac_given_srcdir" ;; 13259 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 13260 esac 13261 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 13262 rm -f "$ac_dir/POTFILES" 13263 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 13264 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 13265 POMAKEFILEDEPS="POTFILES.in" 13266 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 13267 # on $ac_dir but don't depend on user-specified configuration 13268 # parameters. 13269 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 13270 # The LINGUAS file contains the set of available languages. 13271 if test -n "$OBSOLETE_ALL_LINGUAS"; then 13272 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 13273 fi 13274 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 13275 # Hide the ALL_LINGUAS assigment from automake. 13276 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 13277 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 13278 else 13279 # The set of available languages was given in configure.in. 13280 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 13281 fi 13282 case "$ac_given_srcdir" in 13283 .) srcdirpre= ;; 13284 *) srcdirpre='$(srcdir)/' ;; 13285 esac 13286 POFILES= 13287 GMOFILES= 13288 UPDATEPOFILES= 13289 DUMMYPOFILES= 13290 for lang in $ALL_LINGUAS; do 13291 POFILES="$POFILES $srcdirpre$lang.po" 13292 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 13293 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 13294 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 13295 done 13296 # CATALOGS depends on both $ac_dir and the user's LINGUAS 13297 # environment variable. 13298 INST_LINGUAS= 13299 if test -n "$ALL_LINGUAS"; then 13300 for presentlang in $ALL_LINGUAS; do 13301 useit=no 13302 if test "%UNSET%" != "$LINGUAS"; then 13303 desiredlanguages="$LINGUAS" 13304 else 13305 desiredlanguages="$ALL_LINGUAS" 13306 fi 13307 for desiredlang in $desiredlanguages; do 13308 # Use the presentlang catalog if desiredlang is 13309 # a. equal to presentlang, or 13310 # b. a variant of presentlang (because in this case, 13311 # presentlang can be used as a fallback for messages 13312 # which are not translated in the desiredlang catalog). 13313 case "$desiredlang" in 13314 "$presentlang"*) useit=yes;; 13315 esac 13316 done 13317 if test $useit = yes; then 13318 INST_LINGUAS="$INST_LINGUAS $presentlang" 13319 fi 13320 done 13321 fi 13322 CATALOGS= 13323 if test -n "$INST_LINGUAS"; then 13324 for lang in $INST_LINGUAS; do 13325 CATALOGS="$CATALOGS $lang.gmo" 13326 done 13327 fi 13328 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 13329 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 13330 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 13331 if test -f "$f"; then 13332 case "$f" in 13333 *.orig | *.bak | *~) ;; 13334 *) cat "$f" >> "$ac_dir/Makefile" ;; 13335 esac 13336 fi 13337 done 13338 fi 13339 ;; 13340 esac 13341 done ;; 13342 esac 13343done 13344_ACEOF 13345 13346cat >>$CONFIG_STATUS <<\_ACEOF 13347 13348{ (exit 0); exit 0; } 13349_ACEOF 13350chmod +x $CONFIG_STATUS 13351ac_clean_files=$ac_clean_files_save 13352 13353 13354# configure is writing to config.log, and then calls config.status. 13355# config.status does its own redirection, appending to config.log. 13356# Unfortunately, on DOS this fails, as config.log is still kept open 13357# by configure, so config.status won't be able to write to it; its 13358# output is simply discarded. So we exec the FD to /dev/null, 13359# effectively closing config.log, so it can be properly (re)opened and 13360# appended to by config.status. When coming back to configure, we 13361# need to make the FD available again. 13362if test "$no_create" != yes; then 13363 ac_cs_success=: 13364 ac_config_status_args= 13365 test "$silent" = yes && 13366 ac_config_status_args="$ac_config_status_args --quiet" 13367 exec 5>/dev/null 13368 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13369 exec 5>>config.log 13370 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13371 # would make configure fail if this is the last instruction. 13372 $ac_cs_success || { (exit 1); exit 1; } 13373fi 13374 13375