configure revision 98919bdb2ec92be4bd469b71911daaef63787c92
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="version.h" 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 E2FSPROGS_YEAR E2FSPROGS_MONTH E2FSPROGS_DAY E2FSPROGS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD CPP EGREP LINUX_INCLUDE MAINTAINER_CMT HTREE_CMT HTREE_CLR_CMT ELF_CMT BSDLIB_CMT PROFILE_CMT CHECKER_CMT LIB_EXT STATIC_LIB_EXT PROFILED_LIB_EXT SWAPFS_CMT DEBUGFS_CMT IMAGER_CMT RESIZER_CMT E2FSCK_TYPE FSCK_PROG FSCK_MAN E2INITRD_PROG E2INITRD_MAN GETTEXT_PACKAGE PACKAGE VERSION SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB BINARY_TYPE LN LN_S MV CP RM CHMOD AWK SED PERL LDCONFIG AR ac_ct_AR STRIP ac_ct_STRIP BUILD_CC SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG SOCKET_LIB DLOPEN_LIB LINUX_CMT CYGWIN_CMT UNIX_CMT root_prefix root_bindir root_sbindir root_libdir root_sysconfdir LDFLAG_STATIC SS_DIR ET_DIR DO_TEST_SUITE INTL_FLAGS LIBOBJS LTLIBOBJS' 313ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY' 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 this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834System types: 835 --build=BUILD configure for building on BUILD [guessed] 836 --host=HOST cross-compile to build programs to run on HOST [BUILD] 837_ACEOF 838fi 839 840if test -n "$ac_init_help"; then 841 842 cat <<\_ACEOF 843 844Optional Features: 845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 847 --enable-maintainer-mode enable makefile rules useful for maintainers 848 --enable-compression enable EXPERIMENTAL compression support 849 --enable-htree enable EXPERIMENTAL htree directory support 850 --enable-htree-clear clear htree because we don't trust e2fsck 851 --enable-elf-shlibs select ELF shared libraries 852 --enable-bsd-shlibs select BSD shared libraries 853 --enable-profile build profiling libraries 854 --enable-checker build checker libraries 855 --enable-jbd-debug enable journal debugging 856 --enable-blkid-debug enable blkid debugging 857 --enable-testio-debug enable the use of the test I/O manager for debugging 858 --disable-swapfs disable support of legacy byte-swapped filesystems 859 --disable-debugfs disable support of debugfs program 860 --disable-imager disable support of e2image program 861 --disable-resizer disable support of e2resize program 862 --enable-dynamic-e2fsck build e2fsck dynamically 863 --enable-fsck build fsck wrapper program 864 --enable-e2initrd-helper build e2initrd-helper program 865 --disable-nls do not use Native Language Support 866 --disable-rpath do not hardcode runtime library paths 867 868Optional Packages: 869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 871 --with-diet-libc Use diet libc 872 --with-cc=COMPILER select compiler to use 873 --with-linker=LINKER select linker to use 874 --with-ccopts=CCOPTS select compiler command line options 875 --with-ldopts=LDOPTS select linker command line options 876 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root 877 --with-gnu-ld assume the C compiler uses GNU ld default=no 878 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 879 --without-libiconv-prefix don't search for libiconv in includedir and libdir 880 --with-included-gettext use the GNU gettext library included here 881 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 882 --without-libintl-prefix don't search for libintl in includedir and libdir 883 884Some influential environment variables: 885 CC C compiler command 886 CFLAGS C compiler flags 887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 888 nonstandard directory <lib dir> 889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 890 headers in a nonstandard directory <include dir> 891 CPP C preprocessor 892 893Use these variables to override the choices made by `configure' or to help 894it to find libraries and programs with nonstandard names/locations. 895 896_ACEOF 897fi 898 899if test "$ac_init_help" = "recursive"; then 900 # If there are subdirs, report their specific --help. 901 ac_popdir=`pwd` 902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 903 test -d $ac_dir || continue 904 ac_builddir=. 905 906if test "$ac_dir" != .; then 907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 908 # A "../" for each directory in $ac_dir_suffix. 909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 910else 911 ac_dir_suffix= ac_top_builddir= 912fi 913 914case $srcdir in 915 .) # No --srcdir option. We are building in place. 916 ac_srcdir=. 917 if test -z "$ac_top_builddir"; then 918 ac_top_srcdir=. 919 else 920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 921 fi ;; 922 [\\/]* | ?:[\\/]* ) # Absolute path. 923 ac_srcdir=$srcdir$ac_dir_suffix; 924 ac_top_srcdir=$srcdir ;; 925 *) # Relative path. 926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 927 ac_top_srcdir=$ac_top_builddir$srcdir ;; 928esac 929 930# Do not use `cd foo && pwd` to compute absolute paths, because 931# the directories may not exist. 932case `pwd` in 933.) ac_abs_builddir="$ac_dir";; 934*) 935 case "$ac_dir" in 936 .) ac_abs_builddir=`pwd`;; 937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 938 *) ac_abs_builddir=`pwd`/"$ac_dir";; 939 esac;; 940esac 941case $ac_abs_builddir in 942.) ac_abs_top_builddir=${ac_top_builddir}.;; 943*) 944 case ${ac_top_builddir}. in 945 .) ac_abs_top_builddir=$ac_abs_builddir;; 946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 948 esac;; 949esac 950case $ac_abs_builddir in 951.) ac_abs_srcdir=$ac_srcdir;; 952*) 953 case $ac_srcdir in 954 .) ac_abs_srcdir=$ac_abs_builddir;; 955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 957 esac;; 958esac 959case $ac_abs_builddir in 960.) ac_abs_top_srcdir=$ac_top_srcdir;; 961*) 962 case $ac_top_srcdir in 963 .) ac_abs_top_srcdir=$ac_abs_builddir;; 964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 966 esac;; 967esac 968 969 cd $ac_dir 970 # Check for guested configure; otherwise get Cygnus style configure. 971 if test -f $ac_srcdir/configure.gnu; then 972 echo 973 $SHELL $ac_srcdir/configure.gnu --help=recursive 974 elif test -f $ac_srcdir/configure; then 975 echo 976 $SHELL $ac_srcdir/configure --help=recursive 977 elif test -f $ac_srcdir/configure.ac || 978 test -f $ac_srcdir/configure.in; then 979 echo 980 $ac_configure --help 981 else 982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 983 fi 984 cd "$ac_popdir" 985 done 986fi 987 988test -n "$ac_init_help" && exit 0 989if $ac_init_version; then 990 cat <<\_ACEOF 991 992Copyright (C) 2003 Free Software Foundation, Inc. 993This configure script is free software; the Free Software Foundation 994gives unlimited permission to copy, distribute and modify it. 995_ACEOF 996 exit 0 997fi 998exec 5>config.log 999cat >&5 <<_ACEOF 1000This file contains any messages produced by compilers while 1001running configure, to aid debugging if configure makes a mistake. 1002 1003It was created by $as_me, which was 1004generated by GNU Autoconf 2.59. Invocation command line was 1005 1006 $ $0 $@ 1007 1008_ACEOF 1009{ 1010cat <<_ASUNAME 1011## --------- ## 1012## Platform. ## 1013## --------- ## 1014 1015hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1016uname -m = `(uname -m) 2>/dev/null || echo unknown` 1017uname -r = `(uname -r) 2>/dev/null || echo unknown` 1018uname -s = `(uname -s) 2>/dev/null || echo unknown` 1019uname -v = `(uname -v) 2>/dev/null || echo unknown` 1020 1021/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1022/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1023 1024/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1025/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1026/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1027hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1028/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1029/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1030/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1031 1032_ASUNAME 1033 1034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1035for as_dir in $PATH 1036do 1037 IFS=$as_save_IFS 1038 test -z "$as_dir" && as_dir=. 1039 echo "PATH: $as_dir" 1040done 1041 1042} >&5 1043 1044cat >&5 <<_ACEOF 1045 1046 1047## ----------- ## 1048## Core tests. ## 1049## ----------- ## 1050 1051_ACEOF 1052 1053 1054# Keep a trace of the command line. 1055# Strip out --no-create and --no-recursion so they do not pile up. 1056# Strip out --silent because we don't want to record it for future runs. 1057# Also quote any args containing shell meta-characters. 1058# Make two passes to allow for proper duplicate-argument suppression. 1059ac_configure_args= 1060ac_configure_args0= 1061ac_configure_args1= 1062ac_sep= 1063ac_must_keep_next=false 1064for ac_pass in 1 2 1065do 1066 for ac_arg 1067 do 1068 case $ac_arg in 1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1071 | -silent | --silent | --silen | --sile | --sil) 1072 continue ;; 1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1075 esac 1076 case $ac_pass in 1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1078 2) 1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1080 if test $ac_must_keep_next = true; then 1081 ac_must_keep_next=false # Got value, back to normal. 1082 else 1083 case $ac_arg in 1084 *=* | --config-cache | -C | -disable-* | --disable-* \ 1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1087 | -with-* | --with-* | -without-* | --without-* | --x) 1088 case "$ac_configure_args0 " in 1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1090 esac 1091 ;; 1092 -* ) ac_must_keep_next=true ;; 1093 esac 1094 fi 1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1096 # Get rid of the leading space. 1097 ac_sep=" " 1098 ;; 1099 esac 1100 done 1101done 1102$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1103$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1104 1105# When interrupted or exit'd, cleanup temporary files, and complete 1106# config.log. We remove comments because anyway the quotes in there 1107# would cause problems or look ugly. 1108# WARNING: Be sure not to use single quotes in there, as some shells, 1109# such as our DU 5.0 friend, will then `close' the trap. 1110trap 'exit_status=$? 1111 # Save into config.log some information that might help in debugging. 1112 { 1113 echo 1114 1115 cat <<\_ASBOX 1116## ---------------- ## 1117## Cache variables. ## 1118## ---------------- ## 1119_ASBOX 1120 echo 1121 # The following way of writing the cache mishandles newlines in values, 1122{ 1123 (set) 2>&1 | 1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1125 *ac_space=\ *) 1126 sed -n \ 1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1129 ;; 1130 *) 1131 sed -n \ 1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1133 ;; 1134 esac; 1135} 1136 echo 1137 1138 cat <<\_ASBOX 1139## ----------------- ## 1140## Output variables. ## 1141## ----------------- ## 1142_ASBOX 1143 echo 1144 for ac_var in $ac_subst_vars 1145 do 1146 eval ac_val=$`echo $ac_var` 1147 echo "$ac_var='"'"'$ac_val'"'"'" 1148 done | sort 1149 echo 1150 1151 if test -n "$ac_subst_files"; then 1152 cat <<\_ASBOX 1153## ------------- ## 1154## Output files. ## 1155## ------------- ## 1156_ASBOX 1157 echo 1158 for ac_var in $ac_subst_files 1159 do 1160 eval ac_val=$`echo $ac_var` 1161 echo "$ac_var='"'"'$ac_val'"'"'" 1162 done | sort 1163 echo 1164 fi 1165 1166 if test -s confdefs.h; then 1167 cat <<\_ASBOX 1168## ----------- ## 1169## confdefs.h. ## 1170## ----------- ## 1171_ASBOX 1172 echo 1173 sed "/^$/d" confdefs.h | sort 1174 echo 1175 fi 1176 test "$ac_signal" != 0 && 1177 echo "$as_me: caught signal $ac_signal" 1178 echo "$as_me: exit $exit_status" 1179 } >&5 1180 rm -f core *.core && 1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1182 exit $exit_status 1183 ' 0 1184for ac_signal in 1 2 13 15; do 1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1186done 1187ac_signal=0 1188 1189# confdefs.h avoids OS command line length limits that DEFS can exceed. 1190rm -rf conftest* confdefs.h 1191# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1192echo >confdefs.h 1193 1194# Predefined preprocessor variables. 1195 1196cat >>confdefs.h <<_ACEOF 1197#define PACKAGE_NAME "$PACKAGE_NAME" 1198_ACEOF 1199 1200 1201cat >>confdefs.h <<_ACEOF 1202#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1203_ACEOF 1204 1205 1206cat >>confdefs.h <<_ACEOF 1207#define PACKAGE_VERSION "$PACKAGE_VERSION" 1208_ACEOF 1209 1210 1211cat >>confdefs.h <<_ACEOF 1212#define PACKAGE_STRING "$PACKAGE_STRING" 1213_ACEOF 1214 1215 1216cat >>confdefs.h <<_ACEOF 1217#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1218_ACEOF 1219 1220 1221# Let the site file select an alternate cache file if it wants to. 1222# Prefer explicitly selected file to automatically selected ones. 1223if test -z "$CONFIG_SITE"; then 1224 if test "x$prefix" != xNONE; then 1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1226 else 1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1228 fi 1229fi 1230for ac_site_file in $CONFIG_SITE; do 1231 if test -r "$ac_site_file"; then 1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1233echo "$as_me: loading site script $ac_site_file" >&6;} 1234 sed 's/^/| /' "$ac_site_file" >&5 1235 . "$ac_site_file" 1236 fi 1237done 1238 1239if test -r "$cache_file"; then 1240 # Some versions of bash will fail to source /dev/null (special 1241 # files actually), so we avoid doing that. 1242 if test -f "$cache_file"; then 1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1244echo "$as_me: loading cache $cache_file" >&6;} 1245 case $cache_file in 1246 [\\/]* | ?:[\\/]* ) . $cache_file;; 1247 *) . ./$cache_file;; 1248 esac 1249 fi 1250else 1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1252echo "$as_me: creating cache $cache_file" >&6;} 1253 >$cache_file 1254fi 1255 1256# Check that the precious variables saved in the cache have kept the same 1257# value. 1258ac_cache_corrupted=false 1259for ac_var in `(set) 2>&1 | 1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1262 eval ac_new_set=\$ac_env_${ac_var}_set 1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1264 eval ac_new_val="\$ac_env_${ac_var}_value" 1265 case $ac_old_set,$ac_new_set in 1266 set,) 1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1268echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1269 ac_cache_corrupted=: ;; 1270 ,set) 1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1272echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1273 ac_cache_corrupted=: ;; 1274 ,);; 1275 *) 1276 if test "x$ac_old_val" != "x$ac_new_val"; then 1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1278echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1280echo "$as_me: former value: $ac_old_val" >&2;} 1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1282echo "$as_me: current value: $ac_new_val" >&2;} 1283 ac_cache_corrupted=: 1284 fi;; 1285 esac 1286 # Pass precious variables to config.status. 1287 if test "$ac_new_set" = set; then 1288 case $ac_new_val in 1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1291 *) ac_arg=$ac_var=$ac_new_val ;; 1292 esac 1293 case " $ac_configure_args " in 1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1296 esac 1297 fi 1298done 1299if $ac_cache_corrupted; then 1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1301echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1303echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1304 { (exit 1); exit 1; }; } 1305fi 1306 1307ac_ext=c 1308ac_cpp='$CPP $CPPFLAGS' 1309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1311ac_compiler_gnu=$ac_cv_c_compiler_gnu 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332ac_aux_dir= 1333for ac_dir in config $srcdir/config; do 1334 if test -f $ac_dir/install-sh; then 1335 ac_aux_dir=$ac_dir 1336 ac_install_sh="$ac_aux_dir/install-sh -c" 1337 break 1338 elif test -f $ac_dir/install.sh; then 1339 ac_aux_dir=$ac_dir 1340 ac_install_sh="$ac_aux_dir/install.sh -c" 1341 break 1342 elif test -f $ac_dir/shtool; then 1343 ac_aux_dir=$ac_dir 1344 ac_install_sh="$ac_aux_dir/shtool install -c" 1345 break 1346 fi 1347done 1348if test -z "$ac_aux_dir"; then 1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 1350echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} 1351 { (exit 1); exit 1; }; } 1352fi 1353ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1354ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1355ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1356 1357MCONFIG=./MCONFIG 1358 1359BINARY_TYPE=bin 1360E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ 1361 | awk '{print $3}' | tr \" " " | awk '{print $1}'` 1362DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ 1363 | tr \" " "` 1364E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` 1365MONTH=`echo $DATE | awk -F- '{print $2}'` 1366YEAR=`echo $DATE | awk -F- '{print $3}'` 1367 1368if expr $YEAR ">" 1900 > /dev/null ; then 1369 E2FSPROGS_YEAR=$YEAR 1370elif expr $YEAR ">" 90 >/dev/null ; then 1371 E2FSPROGS_YEAR=19$YEAR 1372else 1373 E2FSPROGS_YEAR=20$YEAR 1374fi 1375 1376case $MONTH in 1377Jan) E2FSPROGS_MONTH="January" ;; 1378Feb) E2FSPROGS_MONTH="February" ;; 1379Mar) E2FSPROGS_MONTH="March" ;; 1380Apr) E2FSPROGS_MONTH="April" ;; 1381May) E2FSPROGS_MONTH="May" ;; 1382Jun) E2FSPROGS_MONTH="June" ;; 1383Jul) E2FSPROGS_MONTH="July" ;; 1384Aug) E2FSPROGS_MONTH="August" ;; 1385Sep) E2FSPROGS_MONTH="September" ;; 1386Oct) E2FSPROGS_MONTH="October" ;; 1387Nov) E2FSPROGS_MONTH="November" ;; 1388Dec) E2FSPROGS_MONTH="December" ;; 1389*) echo "Unknown month $MONTH??" ;; 1390esac 1391 1392unset DATE MONTH YEAR 1393echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" 1394echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" 1395 1396 1397 1398 1399# Make sure we can run config.sub. 1400$ac_config_sub sun4 >/dev/null 2>&1 || 1401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1402echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1403 { (exit 1); exit 1; }; } 1404 1405echo "$as_me:$LINENO: checking build system type" >&5 1406echo $ECHO_N "checking build system type... $ECHO_C" >&6 1407if test "${ac_cv_build+set}" = set; then 1408 echo $ECHO_N "(cached) $ECHO_C" >&6 1409else 1410 ac_cv_build_alias=$build_alias 1411test -z "$ac_cv_build_alias" && 1412 ac_cv_build_alias=`$ac_config_guess` 1413test -z "$ac_cv_build_alias" && 1414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1415echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1416 { (exit 1); exit 1; }; } 1417ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1419echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1420 { (exit 1); exit 1; }; } 1421 1422fi 1423echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1424echo "${ECHO_T}$ac_cv_build" >&6 1425build=$ac_cv_build 1426build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1427build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1428build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1429 1430 1431echo "$as_me:$LINENO: checking host system type" >&5 1432echo $ECHO_N "checking host system type... $ECHO_C" >&6 1433if test "${ac_cv_host+set}" = set; then 1434 echo $ECHO_N "(cached) $ECHO_C" >&6 1435else 1436 ac_cv_host_alias=$host_alias 1437test -z "$ac_cv_host_alias" && 1438 ac_cv_host_alias=$ac_cv_build_alias 1439ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1441echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1442 { (exit 1); exit 1; }; } 1443 1444fi 1445echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1446echo "${ECHO_T}$ac_cv_host" >&6 1447host=$ac_cv_host 1448host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1449host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1450host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1451 1452 1453 1454# Check whether --with-diet-libc or --without-diet-libc was given. 1455if test "${with_diet_libc+set}" = set; then 1456 withval="$with_diet_libc" 1457 CC="diet cc -nostdinc" 1458echo "$as_me:$LINENO: result: CC=$CC" >&5 1459echo "${ECHO_T}CC=$CC" >&6 1460fi; 1461# Check whether --with-cc or --without-cc was given. 1462if test "${with_cc+set}" = set; then 1463 withval="$with_cc" 1464 echo "$as_me:$LINENO: result: CC=$withval" >&5 1465echo "${ECHO_T}CC=$withval" >&6 1466CC=$withval 1467else 1468 if test -z "$CC" ; then CC=cc; fi 1469echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 1470echo "${ECHO_T}CC defaults to $CC" >&6 1471fi; export CC 1472 1473ac_ext=c 1474ac_cpp='$CPP $CPPFLAGS' 1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1477ac_compiler_gnu=$ac_cv_c_compiler_gnu 1478if test -n "$ac_tool_prefix"; then 1479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1480set dummy ${ac_tool_prefix}gcc; ac_word=$2 1481echo "$as_me:$LINENO: checking for $ac_word" >&5 1482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1483if test "${ac_cv_prog_CC+set}" = set; then 1484 echo $ECHO_N "(cached) $ECHO_C" >&6 1485else 1486 if test -n "$CC"; then 1487 ac_cv_prog_CC="$CC" # Let the user override the test. 1488else 1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1490for as_dir in $PATH 1491do 1492 IFS=$as_save_IFS 1493 test -z "$as_dir" && as_dir=. 1494 for ac_exec_ext in '' $ac_executable_extensions; do 1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1496 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1498 break 2 1499 fi 1500done 1501done 1502 1503fi 1504fi 1505CC=$ac_cv_prog_CC 1506if test -n "$CC"; then 1507 echo "$as_me:$LINENO: result: $CC" >&5 1508echo "${ECHO_T}$CC" >&6 1509else 1510 echo "$as_me:$LINENO: result: no" >&5 1511echo "${ECHO_T}no" >&6 1512fi 1513 1514fi 1515if test -z "$ac_cv_prog_CC"; then 1516 ac_ct_CC=$CC 1517 # Extract the first word of "gcc", so it can be a program name with args. 1518set dummy gcc; ac_word=$2 1519echo "$as_me:$LINENO: checking for $ac_word" >&5 1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1522 echo $ECHO_N "(cached) $ECHO_C" >&6 1523else 1524 if test -n "$ac_ct_CC"; then 1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1526else 1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1528for as_dir in $PATH 1529do 1530 IFS=$as_save_IFS 1531 test -z "$as_dir" && as_dir=. 1532 for ac_exec_ext in '' $ac_executable_extensions; do 1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1534 ac_cv_prog_ac_ct_CC="gcc" 1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1536 break 2 1537 fi 1538done 1539done 1540 1541fi 1542fi 1543ac_ct_CC=$ac_cv_prog_ac_ct_CC 1544if test -n "$ac_ct_CC"; then 1545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1546echo "${ECHO_T}$ac_ct_CC" >&6 1547else 1548 echo "$as_me:$LINENO: result: no" >&5 1549echo "${ECHO_T}no" >&6 1550fi 1551 1552 CC=$ac_ct_CC 1553else 1554 CC="$ac_cv_prog_CC" 1555fi 1556 1557if test -z "$CC"; then 1558 if test -n "$ac_tool_prefix"; then 1559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1560set dummy ${ac_tool_prefix}cc; ac_word=$2 1561echo "$as_me:$LINENO: checking for $ac_word" >&5 1562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1563if test "${ac_cv_prog_CC+set}" = set; then 1564 echo $ECHO_N "(cached) $ECHO_C" >&6 1565else 1566 if test -n "$CC"; then 1567 ac_cv_prog_CC="$CC" # Let the user override the test. 1568else 1569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1570for as_dir in $PATH 1571do 1572 IFS=$as_save_IFS 1573 test -z "$as_dir" && as_dir=. 1574 for ac_exec_ext in '' $ac_executable_extensions; do 1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1576 ac_cv_prog_CC="${ac_tool_prefix}cc" 1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1578 break 2 1579 fi 1580done 1581done 1582 1583fi 1584fi 1585CC=$ac_cv_prog_CC 1586if test -n "$CC"; then 1587 echo "$as_me:$LINENO: result: $CC" >&5 1588echo "${ECHO_T}$CC" >&6 1589else 1590 echo "$as_me:$LINENO: result: no" >&5 1591echo "${ECHO_T}no" >&6 1592fi 1593 1594fi 1595if test -z "$ac_cv_prog_CC"; then 1596 ac_ct_CC=$CC 1597 # Extract the first word of "cc", so it can be a program name with args. 1598set dummy cc; ac_word=$2 1599echo "$as_me:$LINENO: checking for $ac_word" >&5 1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1602 echo $ECHO_N "(cached) $ECHO_C" >&6 1603else 1604 if test -n "$ac_ct_CC"; then 1605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1606else 1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1608for as_dir in $PATH 1609do 1610 IFS=$as_save_IFS 1611 test -z "$as_dir" && as_dir=. 1612 for ac_exec_ext in '' $ac_executable_extensions; do 1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1614 ac_cv_prog_ac_ct_CC="cc" 1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1616 break 2 1617 fi 1618done 1619done 1620 1621fi 1622fi 1623ac_ct_CC=$ac_cv_prog_ac_ct_CC 1624if test -n "$ac_ct_CC"; then 1625 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1626echo "${ECHO_T}$ac_ct_CC" >&6 1627else 1628 echo "$as_me:$LINENO: result: no" >&5 1629echo "${ECHO_T}no" >&6 1630fi 1631 1632 CC=$ac_ct_CC 1633else 1634 CC="$ac_cv_prog_CC" 1635fi 1636 1637fi 1638if test -z "$CC"; then 1639 # Extract the first word of "cc", so it can be a program name with args. 1640set dummy cc; ac_word=$2 1641echo "$as_me:$LINENO: checking for $ac_word" >&5 1642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1643if test "${ac_cv_prog_CC+set}" = set; then 1644 echo $ECHO_N "(cached) $ECHO_C" >&6 1645else 1646 if test -n "$CC"; then 1647 ac_cv_prog_CC="$CC" # Let the user override the test. 1648else 1649 ac_prog_rejected=no 1650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1651for as_dir in $PATH 1652do 1653 IFS=$as_save_IFS 1654 test -z "$as_dir" && as_dir=. 1655 for ac_exec_ext in '' $ac_executable_extensions; do 1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1658 ac_prog_rejected=yes 1659 continue 1660 fi 1661 ac_cv_prog_CC="cc" 1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1663 break 2 1664 fi 1665done 1666done 1667 1668if test $ac_prog_rejected = yes; then 1669 # We found a bogon in the path, so make sure we never use it. 1670 set dummy $ac_cv_prog_CC 1671 shift 1672 if test $# != 0; then 1673 # We chose a different compiler from the bogus one. 1674 # However, it has the same basename, so the bogon will be chosen 1675 # first if we set CC to just the basename; use the full file name. 1676 shift 1677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1678 fi 1679fi 1680fi 1681fi 1682CC=$ac_cv_prog_CC 1683if test -n "$CC"; then 1684 echo "$as_me:$LINENO: result: $CC" >&5 1685echo "${ECHO_T}$CC" >&6 1686else 1687 echo "$as_me:$LINENO: result: no" >&5 1688echo "${ECHO_T}no" >&6 1689fi 1690 1691fi 1692if test -z "$CC"; then 1693 if test -n "$ac_tool_prefix"; then 1694 for ac_prog in cl 1695 do 1696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1697set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1698echo "$as_me:$LINENO: checking for $ac_word" >&5 1699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1700if test "${ac_cv_prog_CC+set}" = set; then 1701 echo $ECHO_N "(cached) $ECHO_C" >&6 1702else 1703 if test -n "$CC"; then 1704 ac_cv_prog_CC="$CC" # Let the user override the test. 1705else 1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1707for as_dir in $PATH 1708do 1709 IFS=$as_save_IFS 1710 test -z "$as_dir" && as_dir=. 1711 for ac_exec_ext in '' $ac_executable_extensions; do 1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1715 break 2 1716 fi 1717done 1718done 1719 1720fi 1721fi 1722CC=$ac_cv_prog_CC 1723if test -n "$CC"; then 1724 echo "$as_me:$LINENO: result: $CC" >&5 1725echo "${ECHO_T}$CC" >&6 1726else 1727 echo "$as_me:$LINENO: result: no" >&5 1728echo "${ECHO_T}no" >&6 1729fi 1730 1731 test -n "$CC" && break 1732 done 1733fi 1734if test -z "$CC"; then 1735 ac_ct_CC=$CC 1736 for ac_prog in cl 1737do 1738 # Extract the first word of "$ac_prog", so it can be a program name with args. 1739set dummy $ac_prog; ac_word=$2 1740echo "$as_me:$LINENO: checking for $ac_word" >&5 1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1743 echo $ECHO_N "(cached) $ECHO_C" >&6 1744else 1745 if test -n "$ac_ct_CC"; then 1746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1747else 1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1749for as_dir in $PATH 1750do 1751 IFS=$as_save_IFS 1752 test -z "$as_dir" && as_dir=. 1753 for ac_exec_ext in '' $ac_executable_extensions; do 1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1755 ac_cv_prog_ac_ct_CC="$ac_prog" 1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1757 break 2 1758 fi 1759done 1760done 1761 1762fi 1763fi 1764ac_ct_CC=$ac_cv_prog_ac_ct_CC 1765if test -n "$ac_ct_CC"; then 1766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1767echo "${ECHO_T}$ac_ct_CC" >&6 1768else 1769 echo "$as_me:$LINENO: result: no" >&5 1770echo "${ECHO_T}no" >&6 1771fi 1772 1773 test -n "$ac_ct_CC" && break 1774done 1775 1776 CC=$ac_ct_CC 1777fi 1778 1779fi 1780 1781 1782test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1783See \`config.log' for more details." >&5 1784echo "$as_me: error: no acceptable C compiler found in \$PATH 1785See \`config.log' for more details." >&2;} 1786 { (exit 1); exit 1; }; } 1787 1788# Provide some information about the compiler. 1789echo "$as_me:$LINENO:" \ 1790 "checking for C compiler version" >&5 1791ac_compiler=`set X $ac_compile; echo $2` 1792{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1793 (eval $ac_compiler --version </dev/null >&5) 2>&5 1794 ac_status=$? 1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1796 (exit $ac_status); } 1797{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1798 (eval $ac_compiler -v </dev/null >&5) 2>&5 1799 ac_status=$? 1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1801 (exit $ac_status); } 1802{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1803 (eval $ac_compiler -V </dev/null >&5) 2>&5 1804 ac_status=$? 1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1806 (exit $ac_status); } 1807 1808cat >conftest.$ac_ext <<_ACEOF 1809/* confdefs.h. */ 1810_ACEOF 1811cat confdefs.h >>conftest.$ac_ext 1812cat >>conftest.$ac_ext <<_ACEOF 1813/* end confdefs.h. */ 1814 1815int 1816main () 1817{ 1818 1819 ; 1820 return 0; 1821} 1822_ACEOF 1823ac_clean_files_save=$ac_clean_files 1824ac_clean_files="$ac_clean_files a.out a.exe b.out" 1825# Try to create an executable without -o first, disregard a.out. 1826# It will help us diagnose broken compilers, and finding out an intuition 1827# of exeext. 1828echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1829echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1830ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1831if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1832 (eval $ac_link_default) 2>&5 1833 ac_status=$? 1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1835 (exit $ac_status); }; then 1836 # Find the output, starting from the most likely. This scheme is 1837# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1838# resort. 1839 1840# Be careful to initialize this variable, since it used to be cached. 1841# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1842ac_cv_exeext= 1843# b.out is created by i960 compilers. 1844for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1845do 1846 test -f "$ac_file" || continue 1847 case $ac_file in 1848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1849 ;; 1850 conftest.$ac_ext ) 1851 # This is the source file. 1852 ;; 1853 [ab].out ) 1854 # We found the default executable, but exeext='' is most 1855 # certainly right. 1856 break;; 1857 *.* ) 1858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1859 # FIXME: I believe we export ac_cv_exeext for Libtool, 1860 # but it would be cool to find out if it's true. Does anybody 1861 # maintain Libtool? --akim. 1862 export ac_cv_exeext 1863 break;; 1864 * ) 1865 break;; 1866 esac 1867done 1868else 1869 echo "$as_me: failed program was:" >&5 1870sed 's/^/| /' conftest.$ac_ext >&5 1871 1872{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1873See \`config.log' for more details." >&5 1874echo "$as_me: error: C compiler cannot create executables 1875See \`config.log' for more details." >&2;} 1876 { (exit 77); exit 77; }; } 1877fi 1878 1879ac_exeext=$ac_cv_exeext 1880echo "$as_me:$LINENO: result: $ac_file" >&5 1881echo "${ECHO_T}$ac_file" >&6 1882 1883# Check the compiler produces executables we can run. If not, either 1884# the compiler is broken, or we cross compile. 1885echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1886echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1887# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1888# If not cross compiling, check that we can run a simple program. 1889if test "$cross_compiling" != yes; then 1890 if { ac_try='./$ac_file' 1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1892 (eval $ac_try) 2>&5 1893 ac_status=$? 1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1895 (exit $ac_status); }; }; then 1896 cross_compiling=no 1897 else 1898 if test "$cross_compiling" = maybe; then 1899 cross_compiling=yes 1900 else 1901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1902If you meant to cross compile, use \`--host'. 1903See \`config.log' for more details." >&5 1904echo "$as_me: error: cannot run C compiled programs. 1905If you meant to cross compile, use \`--host'. 1906See \`config.log' for more details." >&2;} 1907 { (exit 1); exit 1; }; } 1908 fi 1909 fi 1910fi 1911echo "$as_me:$LINENO: result: yes" >&5 1912echo "${ECHO_T}yes" >&6 1913 1914rm -f a.out a.exe conftest$ac_cv_exeext b.out 1915ac_clean_files=$ac_clean_files_save 1916# Check the compiler produces executables we can run. If not, either 1917# the compiler is broken, or we cross compile. 1918echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1919echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1920echo "$as_me:$LINENO: result: $cross_compiling" >&5 1921echo "${ECHO_T}$cross_compiling" >&6 1922 1923echo "$as_me:$LINENO: checking for suffix of executables" >&5 1924echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1926 (eval $ac_link) 2>&5 1927 ac_status=$? 1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1929 (exit $ac_status); }; then 1930 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1931# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1932# work properly (i.e., refer to `conftest.exe'), while it won't with 1933# `rm'. 1934for ac_file in conftest.exe conftest conftest.*; do 1935 test -f "$ac_file" || continue 1936 case $ac_file in 1937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1939 export ac_cv_exeext 1940 break;; 1941 * ) break;; 1942 esac 1943done 1944else 1945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1946See \`config.log' for more details." >&5 1947echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1948See \`config.log' for more details." >&2;} 1949 { (exit 1); exit 1; }; } 1950fi 1951 1952rm -f conftest$ac_cv_exeext 1953echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1954echo "${ECHO_T}$ac_cv_exeext" >&6 1955 1956rm -f conftest.$ac_ext 1957EXEEXT=$ac_cv_exeext 1958ac_exeext=$EXEEXT 1959echo "$as_me:$LINENO: checking for suffix of object files" >&5 1960echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1961if test "${ac_cv_objext+set}" = set; then 1962 echo $ECHO_N "(cached) $ECHO_C" >&6 1963else 1964 cat >conftest.$ac_ext <<_ACEOF 1965/* confdefs.h. */ 1966_ACEOF 1967cat confdefs.h >>conftest.$ac_ext 1968cat >>conftest.$ac_ext <<_ACEOF 1969/* end confdefs.h. */ 1970 1971int 1972main () 1973{ 1974 1975 ; 1976 return 0; 1977} 1978_ACEOF 1979rm -f conftest.o conftest.obj 1980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1981 (eval $ac_compile) 2>&5 1982 ac_status=$? 1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1984 (exit $ac_status); }; then 1985 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1986 case $ac_file in 1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1989 break;; 1990 esac 1991done 1992else 1993 echo "$as_me: failed program was:" >&5 1994sed 's/^/| /' conftest.$ac_ext >&5 1995 1996{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1997See \`config.log' for more details." >&5 1998echo "$as_me: error: cannot compute suffix of object files: cannot compile 1999See \`config.log' for more details." >&2;} 2000 { (exit 1); exit 1; }; } 2001fi 2002 2003rm -f conftest.$ac_cv_objext conftest.$ac_ext 2004fi 2005echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2006echo "${ECHO_T}$ac_cv_objext" >&6 2007OBJEXT=$ac_cv_objext 2008ac_objext=$OBJEXT 2009echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2010echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2011if test "${ac_cv_c_compiler_gnu+set}" = set; then 2012 echo $ECHO_N "(cached) $ECHO_C" >&6 2013else 2014 cat >conftest.$ac_ext <<_ACEOF 2015/* confdefs.h. */ 2016_ACEOF 2017cat confdefs.h >>conftest.$ac_ext 2018cat >>conftest.$ac_ext <<_ACEOF 2019/* end confdefs.h. */ 2020 2021int 2022main () 2023{ 2024#ifndef __GNUC__ 2025 choke me 2026#endif 2027 2028 ; 2029 return 0; 2030} 2031_ACEOF 2032rm -f conftest.$ac_objext 2033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2034 (eval $ac_compile) 2>conftest.er1 2035 ac_status=$? 2036 grep -v '^ *+' conftest.er1 >conftest.err 2037 rm -f conftest.er1 2038 cat conftest.err >&5 2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2040 (exit $ac_status); } && 2041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2043 (eval $ac_try) 2>&5 2044 ac_status=$? 2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2046 (exit $ac_status); }; } && 2047 { ac_try='test -s conftest.$ac_objext' 2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2049 (eval $ac_try) 2>&5 2050 ac_status=$? 2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2052 (exit $ac_status); }; }; then 2053 ac_compiler_gnu=yes 2054else 2055 echo "$as_me: failed program was:" >&5 2056sed 's/^/| /' conftest.$ac_ext >&5 2057 2058ac_compiler_gnu=no 2059fi 2060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2061ac_cv_c_compiler_gnu=$ac_compiler_gnu 2062 2063fi 2064echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2066GCC=`test $ac_compiler_gnu = yes && echo yes` 2067ac_test_CFLAGS=${CFLAGS+set} 2068ac_save_CFLAGS=$CFLAGS 2069CFLAGS="-g" 2070echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2072if test "${ac_cv_prog_cc_g+set}" = set; then 2073 echo $ECHO_N "(cached) $ECHO_C" >&6 2074else 2075 cat >conftest.$ac_ext <<_ACEOF 2076/* confdefs.h. */ 2077_ACEOF 2078cat confdefs.h >>conftest.$ac_ext 2079cat >>conftest.$ac_ext <<_ACEOF 2080/* end confdefs.h. */ 2081 2082int 2083main () 2084{ 2085 2086 ; 2087 return 0; 2088} 2089_ACEOF 2090rm -f conftest.$ac_objext 2091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2092 (eval $ac_compile) 2>conftest.er1 2093 ac_status=$? 2094 grep -v '^ *+' conftest.er1 >conftest.err 2095 rm -f conftest.er1 2096 cat conftest.err >&5 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2098 (exit $ac_status); } && 2099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2101 (eval $ac_try) 2>&5 2102 ac_status=$? 2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2104 (exit $ac_status); }; } && 2105 { ac_try='test -s conftest.$ac_objext' 2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2107 (eval $ac_try) 2>&5 2108 ac_status=$? 2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2110 (exit $ac_status); }; }; then 2111 ac_cv_prog_cc_g=yes 2112else 2113 echo "$as_me: failed program was:" >&5 2114sed 's/^/| /' conftest.$ac_ext >&5 2115 2116ac_cv_prog_cc_g=no 2117fi 2118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2119fi 2120echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2121echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2122if test "$ac_test_CFLAGS" = set; then 2123 CFLAGS=$ac_save_CFLAGS 2124elif test $ac_cv_prog_cc_g = yes; then 2125 if test "$GCC" = yes; then 2126 CFLAGS="-g -O2" 2127 else 2128 CFLAGS="-g" 2129 fi 2130else 2131 if test "$GCC" = yes; then 2132 CFLAGS="-O2" 2133 else 2134 CFLAGS= 2135 fi 2136fi 2137echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2138echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2139if test "${ac_cv_prog_cc_stdc+set}" = set; then 2140 echo $ECHO_N "(cached) $ECHO_C" >&6 2141else 2142 ac_cv_prog_cc_stdc=no 2143ac_save_CC=$CC 2144cat >conftest.$ac_ext <<_ACEOF 2145/* confdefs.h. */ 2146_ACEOF 2147cat confdefs.h >>conftest.$ac_ext 2148cat >>conftest.$ac_ext <<_ACEOF 2149/* end confdefs.h. */ 2150#include <stdarg.h> 2151#include <stdio.h> 2152#include <sys/types.h> 2153#include <sys/stat.h> 2154/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2155struct buf { int x; }; 2156FILE * (*rcsopen) (struct buf *, struct stat *, int); 2157static char *e (p, i) 2158 char **p; 2159 int i; 2160{ 2161 return p[i]; 2162} 2163static char *f (char * (*g) (char **, int), char **p, ...) 2164{ 2165 char *s; 2166 va_list v; 2167 va_start (v,p); 2168 s = g (p, va_arg (v,int)); 2169 va_end (v); 2170 return s; 2171} 2172 2173/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2174 function prototypes and stuff, but not '\xHH' hex character constants. 2175 These don't provoke an error unfortunately, instead are silently treated 2176 as 'x'. The following induces an error, until -std1 is added to get 2177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2178 array size at least. It's necessary to write '\x00'==0 to get something 2179 that's true only with -std1. */ 2180int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2181 2182int test (int i, double x); 2183struct s1 {int (*f) (int a);}; 2184struct s2 {int (*f) (double a);}; 2185int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2186int argc; 2187char **argv; 2188int 2189main () 2190{ 2191return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2192 ; 2193 return 0; 2194} 2195_ACEOF 2196# Don't try gcc -ansi; that turns off useful extensions and 2197# breaks some systems' header files. 2198# AIX -qlanglvl=ansi 2199# Ultrix and OSF/1 -std1 2200# HP-UX 10.20 and later -Ae 2201# HP-UX older versions -Aa -D_HPUX_SOURCE 2202# SVR4 -Xc -D__EXTENSIONS__ 2203for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2204do 2205 CC="$ac_save_CC $ac_arg" 2206 rm -f conftest.$ac_objext 2207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2208 (eval $ac_compile) 2>conftest.er1 2209 ac_status=$? 2210 grep -v '^ *+' conftest.er1 >conftest.err 2211 rm -f conftest.er1 2212 cat conftest.err >&5 2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 (exit $ac_status); } && 2215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2217 (eval $ac_try) 2>&5 2218 ac_status=$? 2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2220 (exit $ac_status); }; } && 2221 { ac_try='test -s conftest.$ac_objext' 2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2223 (eval $ac_try) 2>&5 2224 ac_status=$? 2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2226 (exit $ac_status); }; }; then 2227 ac_cv_prog_cc_stdc=$ac_arg 2228break 2229else 2230 echo "$as_me: failed program was:" >&5 2231sed 's/^/| /' conftest.$ac_ext >&5 2232 2233fi 2234rm -f conftest.err conftest.$ac_objext 2235done 2236rm -f conftest.$ac_ext conftest.$ac_objext 2237CC=$ac_save_CC 2238 2239fi 2240 2241case "x$ac_cv_prog_cc_stdc" in 2242 x|xno) 2243 echo "$as_me:$LINENO: result: none needed" >&5 2244echo "${ECHO_T}none needed" >&6 ;; 2245 *) 2246 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2247echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2248 CC="$CC $ac_cv_prog_cc_stdc" ;; 2249esac 2250 2251# Some people use a C++ compiler to compile C. Since we use `exit', 2252# in C++ we need to declare it. In case someone uses the same compiler 2253# for both compiling C and C++ we need to have the C++ compiler decide 2254# the declaration of exit, since it's the most demanding environment. 2255cat >conftest.$ac_ext <<_ACEOF 2256#ifndef __cplusplus 2257 choke me 2258#endif 2259_ACEOF 2260rm -f conftest.$ac_objext 2261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2262 (eval $ac_compile) 2>conftest.er1 2263 ac_status=$? 2264 grep -v '^ *+' conftest.er1 >conftest.err 2265 rm -f conftest.er1 2266 cat conftest.err >&5 2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2268 (exit $ac_status); } && 2269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2271 (eval $ac_try) 2>&5 2272 ac_status=$? 2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 (exit $ac_status); }; } && 2275 { ac_try='test -s conftest.$ac_objext' 2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2277 (eval $ac_try) 2>&5 2278 ac_status=$? 2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2280 (exit $ac_status); }; }; then 2281 for ac_declaration in \ 2282 '' \ 2283 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2284 'extern "C" void std::exit (int); using std::exit;' \ 2285 'extern "C" void exit (int) throw ();' \ 2286 'extern "C" void exit (int);' \ 2287 'void exit (int);' 2288do 2289 cat >conftest.$ac_ext <<_ACEOF 2290/* confdefs.h. */ 2291_ACEOF 2292cat confdefs.h >>conftest.$ac_ext 2293cat >>conftest.$ac_ext <<_ACEOF 2294/* end confdefs.h. */ 2295$ac_declaration 2296#include <stdlib.h> 2297int 2298main () 2299{ 2300exit (42); 2301 ; 2302 return 0; 2303} 2304_ACEOF 2305rm -f conftest.$ac_objext 2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2307 (eval $ac_compile) 2>conftest.er1 2308 ac_status=$? 2309 grep -v '^ *+' conftest.er1 >conftest.err 2310 rm -f conftest.er1 2311 cat conftest.err >&5 2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2313 (exit $ac_status); } && 2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2316 (eval $ac_try) 2>&5 2317 ac_status=$? 2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2319 (exit $ac_status); }; } && 2320 { ac_try='test -s conftest.$ac_objext' 2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2322 (eval $ac_try) 2>&5 2323 ac_status=$? 2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2325 (exit $ac_status); }; }; then 2326 : 2327else 2328 echo "$as_me: failed program was:" >&5 2329sed 's/^/| /' conftest.$ac_ext >&5 2330 2331continue 2332fi 2333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2334 cat >conftest.$ac_ext <<_ACEOF 2335/* confdefs.h. */ 2336_ACEOF 2337cat confdefs.h >>conftest.$ac_ext 2338cat >>conftest.$ac_ext <<_ACEOF 2339/* end confdefs.h. */ 2340$ac_declaration 2341int 2342main () 2343{ 2344exit (42); 2345 ; 2346 return 0; 2347} 2348_ACEOF 2349rm -f conftest.$ac_objext 2350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2351 (eval $ac_compile) 2>conftest.er1 2352 ac_status=$? 2353 grep -v '^ *+' conftest.er1 >conftest.err 2354 rm -f conftest.er1 2355 cat conftest.err >&5 2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2357 (exit $ac_status); } && 2358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2360 (eval $ac_try) 2>&5 2361 ac_status=$? 2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2363 (exit $ac_status); }; } && 2364 { ac_try='test -s conftest.$ac_objext' 2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2366 (eval $ac_try) 2>&5 2367 ac_status=$? 2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2369 (exit $ac_status); }; }; then 2370 break 2371else 2372 echo "$as_me: failed program was:" >&5 2373sed 's/^/| /' conftest.$ac_ext >&5 2374 2375fi 2376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2377done 2378rm -f conftest* 2379if test -n "$ac_declaration"; then 2380 echo '#ifdef __cplusplus' >>confdefs.h 2381 echo $ac_declaration >>confdefs.h 2382 echo '#endif' >>confdefs.h 2383fi 2384 2385else 2386 echo "$as_me: failed program was:" >&5 2387sed 's/^/| /' conftest.$ac_ext >&5 2388 2389fi 2390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2391ac_ext=c 2392ac_cpp='$CPP $CPPFLAGS' 2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2395ac_compiler_gnu=$ac_cv_c_compiler_gnu 2396 2397 2398# Check whether --with-linker or --without-linker was given. 2399if test "${with_linker+set}" = set; then 2400 withval="$with_linker" 2401 echo "$as_me:$LINENO: result: LD=$withval" >&5 2402echo "${ECHO_T}LD=$withval" >&6 2403LD=$withval 2404else 2405 if test -z "$LD" ; then LD=$CC; fi 2406echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 2407echo "${ECHO_T}LD defaults to $LD" >&6 2408fi; export LD 2409 2410 2411# Check whether --with-ccopts or --without-ccopts was given. 2412if test "${with_ccopts+set}" = set; then 2413 withval="$with_ccopts" 2414 echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 2415echo "${ECHO_T}CCOPTS is $withval" >&6 2416CFLAGS=$withval 2417fi; 2418ac_ext=c 2419ac_cpp='$CPP $CPPFLAGS' 2420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2422ac_compiler_gnu=$ac_cv_c_compiler_gnu 2423echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2424echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2425# On Suns, sometimes $CPP names a directory. 2426if test -n "$CPP" && test -d "$CPP"; then 2427 CPP= 2428fi 2429if test -z "$CPP"; then 2430 if test "${ac_cv_prog_CPP+set}" = set; then 2431 echo $ECHO_N "(cached) $ECHO_C" >&6 2432else 2433 # Double quotes because CPP needs to be expanded 2434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2435 do 2436 ac_preproc_ok=false 2437for ac_c_preproc_warn_flag in '' yes 2438do 2439 # Use a header file that comes with gcc, so configuring glibc 2440 # with a fresh cross-compiler works. 2441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2442 # <limits.h> exists even on freestanding compilers. 2443 # On the NeXT, cc -E runs the code through the compiler's parser, 2444 # not just through cpp. "Syntax error" is here to catch this case. 2445 cat >conftest.$ac_ext <<_ACEOF 2446/* confdefs.h. */ 2447_ACEOF 2448cat confdefs.h >>conftest.$ac_ext 2449cat >>conftest.$ac_ext <<_ACEOF 2450/* end confdefs.h. */ 2451#ifdef __STDC__ 2452# include <limits.h> 2453#else 2454# include <assert.h> 2455#endif 2456 Syntax error 2457_ACEOF 2458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2460 ac_status=$? 2461 grep -v '^ *+' conftest.er1 >conftest.err 2462 rm -f conftest.er1 2463 cat conftest.err >&5 2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2465 (exit $ac_status); } >/dev/null; then 2466 if test -s conftest.err; then 2467 ac_cpp_err=$ac_c_preproc_warn_flag 2468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2469 else 2470 ac_cpp_err= 2471 fi 2472else 2473 ac_cpp_err=yes 2474fi 2475if test -z "$ac_cpp_err"; then 2476 : 2477else 2478 echo "$as_me: failed program was:" >&5 2479sed 's/^/| /' conftest.$ac_ext >&5 2480 2481 # Broken: fails on valid input. 2482continue 2483fi 2484rm -f conftest.err conftest.$ac_ext 2485 2486 # OK, works on sane cases. Now check whether non-existent headers 2487 # can be detected and how. 2488 cat >conftest.$ac_ext <<_ACEOF 2489/* confdefs.h. */ 2490_ACEOF 2491cat confdefs.h >>conftest.$ac_ext 2492cat >>conftest.$ac_ext <<_ACEOF 2493/* end confdefs.h. */ 2494#include <ac_nonexistent.h> 2495_ACEOF 2496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2498 ac_status=$? 2499 grep -v '^ *+' conftest.er1 >conftest.err 2500 rm -f conftest.er1 2501 cat conftest.err >&5 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); } >/dev/null; then 2504 if test -s conftest.err; then 2505 ac_cpp_err=$ac_c_preproc_warn_flag 2506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2507 else 2508 ac_cpp_err= 2509 fi 2510else 2511 ac_cpp_err=yes 2512fi 2513if test -z "$ac_cpp_err"; then 2514 # Broken: success on invalid input. 2515continue 2516else 2517 echo "$as_me: failed program was:" >&5 2518sed 's/^/| /' conftest.$ac_ext >&5 2519 2520 # Passes both tests. 2521ac_preproc_ok=: 2522break 2523fi 2524rm -f conftest.err conftest.$ac_ext 2525 2526done 2527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2528rm -f conftest.err conftest.$ac_ext 2529if $ac_preproc_ok; then 2530 break 2531fi 2532 2533 done 2534 ac_cv_prog_CPP=$CPP 2535 2536fi 2537 CPP=$ac_cv_prog_CPP 2538else 2539 ac_cv_prog_CPP=$CPP 2540fi 2541echo "$as_me:$LINENO: result: $CPP" >&5 2542echo "${ECHO_T}$CPP" >&6 2543ac_preproc_ok=false 2544for ac_c_preproc_warn_flag in '' yes 2545do 2546 # Use a header file that comes with gcc, so configuring glibc 2547 # with a fresh cross-compiler works. 2548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2549 # <limits.h> exists even on freestanding compilers. 2550 # On the NeXT, cc -E runs the code through the compiler's parser, 2551 # not just through cpp. "Syntax error" is here to catch this case. 2552 cat >conftest.$ac_ext <<_ACEOF 2553/* confdefs.h. */ 2554_ACEOF 2555cat confdefs.h >>conftest.$ac_ext 2556cat >>conftest.$ac_ext <<_ACEOF 2557/* end confdefs.h. */ 2558#ifdef __STDC__ 2559# include <limits.h> 2560#else 2561# include <assert.h> 2562#endif 2563 Syntax error 2564_ACEOF 2565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2567 ac_status=$? 2568 grep -v '^ *+' conftest.er1 >conftest.err 2569 rm -f conftest.er1 2570 cat conftest.err >&5 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); } >/dev/null; then 2573 if test -s conftest.err; then 2574 ac_cpp_err=$ac_c_preproc_warn_flag 2575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2576 else 2577 ac_cpp_err= 2578 fi 2579else 2580 ac_cpp_err=yes 2581fi 2582if test -z "$ac_cpp_err"; then 2583 : 2584else 2585 echo "$as_me: failed program was:" >&5 2586sed 's/^/| /' conftest.$ac_ext >&5 2587 2588 # Broken: fails on valid input. 2589continue 2590fi 2591rm -f conftest.err conftest.$ac_ext 2592 2593 # OK, works on sane cases. Now check whether non-existent headers 2594 # can be detected and how. 2595 cat >conftest.$ac_ext <<_ACEOF 2596/* confdefs.h. */ 2597_ACEOF 2598cat confdefs.h >>conftest.$ac_ext 2599cat >>conftest.$ac_ext <<_ACEOF 2600/* end confdefs.h. */ 2601#include <ac_nonexistent.h> 2602_ACEOF 2603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2605 ac_status=$? 2606 grep -v '^ *+' conftest.er1 >conftest.err 2607 rm -f conftest.er1 2608 cat conftest.err >&5 2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2610 (exit $ac_status); } >/dev/null; then 2611 if test -s conftest.err; then 2612 ac_cpp_err=$ac_c_preproc_warn_flag 2613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2614 else 2615 ac_cpp_err= 2616 fi 2617else 2618 ac_cpp_err=yes 2619fi 2620if test -z "$ac_cpp_err"; then 2621 # Broken: success on invalid input. 2622continue 2623else 2624 echo "$as_me: failed program was:" >&5 2625sed 's/^/| /' conftest.$ac_ext >&5 2626 2627 # Passes both tests. 2628ac_preproc_ok=: 2629break 2630fi 2631rm -f conftest.err conftest.$ac_ext 2632 2633done 2634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2635rm -f conftest.err conftest.$ac_ext 2636if $ac_preproc_ok; then 2637 : 2638else 2639 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2640See \`config.log' for more details." >&5 2641echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2642See \`config.log' for more details." >&2;} 2643 { (exit 1); exit 1; }; } 2644fi 2645 2646ac_ext=c 2647ac_cpp='$CPP $CPPFLAGS' 2648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2650ac_compiler_gnu=$ac_cv_c_compiler_gnu 2651 2652 2653echo "$as_me:$LINENO: checking for egrep" >&5 2654echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2655if test "${ac_cv_prog_egrep+set}" = set; then 2656 echo $ECHO_N "(cached) $ECHO_C" >&6 2657else 2658 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2659 then ac_cv_prog_egrep='grep -E' 2660 else ac_cv_prog_egrep='egrep' 2661 fi 2662fi 2663echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2664echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2665 EGREP=$ac_cv_prog_egrep 2666 2667 2668echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2669echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2670if test "${ac_cv_header_stdc+set}" = set; then 2671 echo $ECHO_N "(cached) $ECHO_C" >&6 2672else 2673 cat >conftest.$ac_ext <<_ACEOF 2674/* confdefs.h. */ 2675_ACEOF 2676cat confdefs.h >>conftest.$ac_ext 2677cat >>conftest.$ac_ext <<_ACEOF 2678/* end confdefs.h. */ 2679#include <stdlib.h> 2680#include <stdarg.h> 2681#include <string.h> 2682#include <float.h> 2683 2684int 2685main () 2686{ 2687 2688 ; 2689 return 0; 2690} 2691_ACEOF 2692rm -f conftest.$ac_objext 2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2694 (eval $ac_compile) 2>conftest.er1 2695 ac_status=$? 2696 grep -v '^ *+' conftest.er1 >conftest.err 2697 rm -f conftest.er1 2698 cat conftest.err >&5 2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2700 (exit $ac_status); } && 2701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2703 (eval $ac_try) 2>&5 2704 ac_status=$? 2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2706 (exit $ac_status); }; } && 2707 { ac_try='test -s conftest.$ac_objext' 2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2709 (eval $ac_try) 2>&5 2710 ac_status=$? 2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2712 (exit $ac_status); }; }; then 2713 ac_cv_header_stdc=yes 2714else 2715 echo "$as_me: failed program was:" >&5 2716sed 's/^/| /' conftest.$ac_ext >&5 2717 2718ac_cv_header_stdc=no 2719fi 2720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2721 2722if test $ac_cv_header_stdc = yes; then 2723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2724 cat >conftest.$ac_ext <<_ACEOF 2725/* confdefs.h. */ 2726_ACEOF 2727cat confdefs.h >>conftest.$ac_ext 2728cat >>conftest.$ac_ext <<_ACEOF 2729/* end confdefs.h. */ 2730#include <string.h> 2731 2732_ACEOF 2733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2734 $EGREP "memchr" >/dev/null 2>&1; then 2735 : 2736else 2737 ac_cv_header_stdc=no 2738fi 2739rm -f conftest* 2740 2741fi 2742 2743if test $ac_cv_header_stdc = yes; then 2744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2745 cat >conftest.$ac_ext <<_ACEOF 2746/* confdefs.h. */ 2747_ACEOF 2748cat confdefs.h >>conftest.$ac_ext 2749cat >>conftest.$ac_ext <<_ACEOF 2750/* end confdefs.h. */ 2751#include <stdlib.h> 2752 2753_ACEOF 2754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2755 $EGREP "free" >/dev/null 2>&1; then 2756 : 2757else 2758 ac_cv_header_stdc=no 2759fi 2760rm -f conftest* 2761 2762fi 2763 2764if test $ac_cv_header_stdc = yes; then 2765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2766 if test "$cross_compiling" = yes; then 2767 : 2768else 2769 cat >conftest.$ac_ext <<_ACEOF 2770/* confdefs.h. */ 2771_ACEOF 2772cat confdefs.h >>conftest.$ac_ext 2773cat >>conftest.$ac_ext <<_ACEOF 2774/* end confdefs.h. */ 2775#include <ctype.h> 2776#if ((' ' & 0x0FF) == 0x020) 2777# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2778# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2779#else 2780# define ISLOWER(c) \ 2781 (('a' <= (c) && (c) <= 'i') \ 2782 || ('j' <= (c) && (c) <= 'r') \ 2783 || ('s' <= (c) && (c) <= 'z')) 2784# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 2785#endif 2786 2787#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2788int 2789main () 2790{ 2791 int i; 2792 for (i = 0; i < 256; i++) 2793 if (XOR (islower (i), ISLOWER (i)) 2794 || toupper (i) != TOUPPER (i)) 2795 exit(2); 2796 exit (0); 2797} 2798_ACEOF 2799rm -f conftest$ac_exeext 2800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2801 (eval $ac_link) 2>&5 2802 ac_status=$? 2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2806 (eval $ac_try) 2>&5 2807 ac_status=$? 2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2809 (exit $ac_status); }; }; then 2810 : 2811else 2812 echo "$as_me: program exited with status $ac_status" >&5 2813echo "$as_me: failed program was:" >&5 2814sed 's/^/| /' conftest.$ac_ext >&5 2815 2816( exit $ac_status ) 2817ac_cv_header_stdc=no 2818fi 2819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 2820fi 2821fi 2822fi 2823echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 2824echo "${ECHO_T}$ac_cv_header_stdc" >&6 2825if test $ac_cv_header_stdc = yes; then 2826 2827cat >>confdefs.h <<\_ACEOF 2828#define STDC_HEADERS 1 2829_ACEOF 2830 2831fi 2832 2833# On IRIX 5.3, sys/types and inttypes.h are conflicting. 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 2844 inttypes.h stdint.h unistd.h 2845do 2846as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 2847echo "$as_me:$LINENO: checking for $ac_header" >&5 2848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 2849if eval "test \"\${$as_ac_Header+set}\" = set"; then 2850 echo $ECHO_N "(cached) $ECHO_C" >&6 2851else 2852 cat >conftest.$ac_ext <<_ACEOF 2853/* confdefs.h. */ 2854_ACEOF 2855cat confdefs.h >>conftest.$ac_ext 2856cat >>conftest.$ac_ext <<_ACEOF 2857/* end confdefs.h. */ 2858$ac_includes_default 2859 2860#include <$ac_header> 2861_ACEOF 2862rm -f conftest.$ac_objext 2863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2864 (eval $ac_compile) 2>conftest.er1 2865 ac_status=$? 2866 grep -v '^ *+' conftest.er1 >conftest.err 2867 rm -f conftest.er1 2868 cat conftest.err >&5 2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2870 (exit $ac_status); } && 2871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2873 (eval $ac_try) 2>&5 2874 ac_status=$? 2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2876 (exit $ac_status); }; } && 2877 { ac_try='test -s conftest.$ac_objext' 2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2879 (eval $ac_try) 2>&5 2880 ac_status=$? 2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2882 (exit $ac_status); }; }; then 2883 eval "$as_ac_Header=yes" 2884else 2885 echo "$as_me: failed program was:" >&5 2886sed 's/^/| /' conftest.$ac_ext >&5 2887 2888eval "$as_ac_Header=no" 2889fi 2890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2891fi 2892echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 2893echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 2894if test `eval echo '${'$as_ac_Header'}'` = yes; then 2895 cat >>confdefs.h <<_ACEOF 2896#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 2897_ACEOF 2898 2899fi 2900 2901done 2902 2903 2904if test "${ac_cv_header_linux_fs_h+set}" = set; then 2905 echo "$as_me:$LINENO: checking for linux/fs.h" >&5 2906echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6 2907if test "${ac_cv_header_linux_fs_h+set}" = set; then 2908 echo $ECHO_N "(cached) $ECHO_C" >&6 2909fi 2910echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 2911echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6 2912else 2913 # Is the header compilable? 2914echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 2915echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6 2916cat >conftest.$ac_ext <<_ACEOF 2917/* confdefs.h. */ 2918_ACEOF 2919cat confdefs.h >>conftest.$ac_ext 2920cat >>conftest.$ac_ext <<_ACEOF 2921/* end confdefs.h. */ 2922$ac_includes_default 2923#include <linux/fs.h> 2924_ACEOF 2925rm -f conftest.$ac_objext 2926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2927 (eval $ac_compile) 2>conftest.er1 2928 ac_status=$? 2929 grep -v '^ *+' conftest.er1 >conftest.err 2930 rm -f conftest.er1 2931 cat conftest.err >&5 2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2933 (exit $ac_status); } && 2934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2936 (eval $ac_try) 2>&5 2937 ac_status=$? 2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2939 (exit $ac_status); }; } && 2940 { ac_try='test -s conftest.$ac_objext' 2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2942 (eval $ac_try) 2>&5 2943 ac_status=$? 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); }; }; then 2946 ac_header_compiler=yes 2947else 2948 echo "$as_me: failed program was:" >&5 2949sed 's/^/| /' conftest.$ac_ext >&5 2950 2951ac_header_compiler=no 2952fi 2953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 2955echo "${ECHO_T}$ac_header_compiler" >&6 2956 2957# Is the header present? 2958echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 2959echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6 2960cat >conftest.$ac_ext <<_ACEOF 2961/* confdefs.h. */ 2962_ACEOF 2963cat confdefs.h >>conftest.$ac_ext 2964cat >>conftest.$ac_ext <<_ACEOF 2965/* end confdefs.h. */ 2966#include <linux/fs.h> 2967_ACEOF 2968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2970 ac_status=$? 2971 grep -v '^ *+' conftest.er1 >conftest.err 2972 rm -f conftest.er1 2973 cat conftest.err >&5 2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2975 (exit $ac_status); } >/dev/null; then 2976 if test -s conftest.err; then 2977 ac_cpp_err=$ac_c_preproc_warn_flag 2978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2979 else 2980 ac_cpp_err= 2981 fi 2982else 2983 ac_cpp_err=yes 2984fi 2985if test -z "$ac_cpp_err"; then 2986 ac_header_preproc=yes 2987else 2988 echo "$as_me: failed program was:" >&5 2989sed 's/^/| /' conftest.$ac_ext >&5 2990 2991 ac_header_preproc=no 2992fi 2993rm -f conftest.err conftest.$ac_ext 2994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 2995echo "${ECHO_T}$ac_header_preproc" >&6 2996 2997# So? What about this header? 2998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 2999 yes:no: ) 3000 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 3001echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3002 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 3003echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} 3004 ac_header_preproc=yes 3005 ;; 3006 no:yes:* ) 3007 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 3008echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} 3009 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 3010echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} 3011 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 3012echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} 3013 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 3014echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} 3015 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 3016echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} 3017 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 3018echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} 3019 ( 3020 cat <<\_ASBOX 3021## ------------------------------------------ ## 3022## Report this to the AC_PACKAGE_NAME lists. ## 3023## ------------------------------------------ ## 3024_ASBOX 3025 ) | 3026 sed "s/^/$as_me: WARNING: /" >&2 3027 ;; 3028esac 3029echo "$as_me:$LINENO: checking for linux/fs.h" >&5 3030echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6 3031if test "${ac_cv_header_linux_fs_h+set}" = set; then 3032 echo $ECHO_N "(cached) $ECHO_C" >&6 3033else 3034 ac_cv_header_linux_fs_h=$ac_header_preproc 3035fi 3036echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 3037echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6 3038 3039fi 3040if test $ac_cv_header_linux_fs_h = yes; then 3041 linux_headers=yes 3042else 3043 linux_headers=no 3044fi 3045 3046 3047if test "$linux_headers" != yes; then 3048 LINUX_INCLUDE='-I$(top_builddir)/include' 3049fi 3050 3051echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 3052echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6 3053if test "$GCC" = yes 3054then 3055 case "$host_cpu" in 3056 alpha) addcflags="-mieee" ;; 3057 esac 3058fi 3059if test "x$addcflags" != x 3060then 3061 echo "$as_me:$LINENO: result: $addcflags" >&5 3062echo "${ECHO_T}$addcflags" >&6 3063 CFLAGS="$addcflags $CFLAGS" 3064else 3065 echo "$as_me:$LINENO: result: (none)" >&5 3066echo "${ECHO_T}(none)" >&6 3067fi 3068LIB_EXT=.a 3069STATIC_LIB_EXT=.a 3070PROFILE_LIB_EXT=.a 3071 3072# Check whether --with-ldopts or --without-ldopts was given. 3073if test "${with_ldopts+set}" = set; then 3074 withval="$with_ldopts" 3075 echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 3076echo "${ECHO_T}LDFLAGS is $withval" >&6 3077LDFLAGS=$withval 3078else 3079 LDFLAGS= 3080fi; 3081 3082# Check whether --with-root-prefix or --without-root-prefix was given. 3083if test "${with_root_prefix+set}" = set; then 3084 withval="$with_root_prefix" 3085 root_prefix=$withval 3086else 3087 root_prefix=NONE 3088fi; # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 3089if test "${enable_maintainer_mode+set}" = set; then 3090 enableval="$enable_maintainer_mode" 3091 if test "$enableval" = "no" 3092then 3093 MAINTAINER_CMT=# 3094 echo "Disabling maintainer mode" 3095else 3096 MAINTAINER_CMT= 3097 echo "Enabling maintainer mode" 3098fi 3099 3100else 3101 MAINTAINER_CMT=# 3102echo "Disabling maintainer mode by default" 3103 3104fi; 3105 3106# Check whether --enable-compression or --disable-compression was given. 3107if test "${enable_compression+set}" = set; then 3108 enableval="$enable_compression" 3109 if test "$enableval" = "no" 3110then 3111 echo "Disabling compression support" 3112else 3113 cat >>confdefs.h <<\_ACEOF 3114#define ENABLE_COMPRESSION 1 3115_ACEOF 3116 3117 echo "Enabling compression support" 3118 echo "WARNING: Compression support is experimental" 3119fi 3120 3121else 3122 echo "Disabling compression support by default" 3123 3124fi; 3125# Check whether --enable-htree or --disable-htree was given. 3126if test "${enable_htree+set}" = set; then 3127 enableval="$enable_htree" 3128 if test "$enableval" = "no" 3129then 3130 HTREE_CMT=# 3131 echo "Disabling htree directory support" 3132else 3133 HTREE_CMT= 3134 cat >>confdefs.h <<\_ACEOF 3135#define ENABLE_HTREE 1 3136_ACEOF 3137 3138 echo "Enabling htree directory support" 3139fi 3140 3141else 3142 HTREE_CMT= 3143cat >>confdefs.h <<\_ACEOF 3144#define ENABLE_HTREE 1 3145_ACEOF 3146 3147echo "Enabling htree directory support by default" 3148 3149fi; 3150 3151# Check whether --enable-htree-clear or --disable-htree-clear was given. 3152if test "${enable_htree_clear+set}" = set; then 3153 enableval="$enable_htree_clear" 3154 if test "$enableval" = "no" 3155then 3156 HTREE_CLR_CMT=# 3157 echo "Disabling htree clearing" 3158else 3159 HTREE_CLR_CMT= 3160 cat >>confdefs.h <<\_ACEOF 3161#define ENABLE_HTREE_CLEAR 1 3162_ACEOF 3163 3164 echo "Enabling htree clearing" 3165fi 3166 3167else 3168 HTREE_CLR_CMT=# 3169echo "Disabling htree clearing by default" 3170 3171fi; 3172 3173# Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. 3174if test "${enable_elf_shlibs+set}" = set; then 3175 enableval="$enable_elf_shlibs" 3176 if test "$enableval" = "no" 3177then 3178 ELF_CMT=# 3179 MAKEFILE_ELF=/dev/null 3180 echo "Disabling ELF shared libraries" 3181else 3182 ELF_CMT= 3183 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib 3184 case "$host_os" in 3185 solaris2.*) 3186 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib 3187 ;; 3188 esac 3189 BINARY_TYPE=elfbin 3190 LIB_EXT=.so 3191 echo "Enabling ELF shared libraries" 3192fi 3193 3194else 3195 MAKEFILE_ELF=/dev/null 3196ELF_CMT=# 3197echo "Disabling ELF shared libraries by default" 3198 3199fi; 3200 3201 3202# Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. 3203if test "${enable_bsd_shlibs+set}" = set; then 3204 enableval="$enable_bsd_shlibs" 3205 if test "$enableval" = "no" 3206then 3207 BSDLIB_CMT=# 3208 MAKEFILE_BSDLIB=/dev/null 3209 echo "Disabling BSD shared libraries" 3210else 3211 BSDLIB_CMT= 3212 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib 3213 LIB_EXT=.so 3214 case "$host_os" in 3215 darwin*) 3216 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib 3217 LIB_EXT=.dylib 3218 ;; 3219 esac 3220 echo "Enabling BSD shared libraries" 3221fi 3222 3223else 3224 MAKEFILE_BSDLIB=/dev/null 3225BSDLIB_CMT=# 3226echo "Disabling BSD shared libraries by default" 3227 3228fi; 3229 3230 3231# Check whether --enable-profile or --disable-profile was given. 3232if test "${enable_profile+set}" = set; then 3233 enableval="$enable_profile" 3234 if test "$enableval" = "no" 3235then 3236 PROFILE_CMT=# 3237 MAKEFILE_PROFILE=/dev/null 3238 echo "Disabling profiling libraries" 3239else 3240 PROFILE_CMT= 3241 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile 3242 PROFILED_LIB_EXT=_p.a 3243 echo "Building profiling libraries" 3244fi 3245 3246else 3247 PROFILE_CMT=# 3248MAKEFILE_PROFILE=/dev/null 3249echo "Disabling profiling libraries by default" 3250 3251fi; 3252 3253 3254# Check whether --enable-checker or --disable-checker was given. 3255if test "${enable_checker+set}" = set; then 3256 enableval="$enable_checker" 3257 if test "$enableval" = "no" 3258then 3259 CHECKER_CMT=# 3260 MAKEFILE_CHECKER=/dev/null 3261 echo "Disabling checker libraries" 3262else 3263 CHECKER_CMT= 3264 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker 3265 echo "Building checker libraries" 3266fi 3267 3268else 3269 CHECKER_CMT=# 3270MAKEFILE_CHECKER=/dev/null 3271echo "Disabling checker libraries by default" 3272 3273fi; 3274 3275 3276 3277 3278 3279# Check whether --enable-jbd-debug or --disable-jbd-debug was given. 3280if test "${enable_jbd_debug+set}" = set; then 3281 enableval="$enable_jbd_debug" 3282 if test "$enableval" = "no" 3283then 3284 echo "Disabling journal debugging" 3285else 3286 cat >>confdefs.h <<\_ACEOF 3287#define CONFIG_JBD_DEBUG 1 3288_ACEOF 3289 3290 echo "Enabling journal debugging" 3291fi 3292 3293else 3294 echo "Disabling journal debugging by default" 3295 3296fi; 3297# Check whether --enable-blkid-debug or --disable-blkid-debug was given. 3298if test "${enable_blkid_debug+set}" = set; then 3299 enableval="$enable_blkid_debug" 3300 if test "$enableval" = "no" 3301then 3302 echo "Disabling blkid debugging" 3303else 3304 cat >>confdefs.h <<\_ACEOF 3305#define CONFIG_BLKID_DEBUG 1 3306_ACEOF 3307 3308 echo "Enabling blkid debugging" 3309fi 3310 3311else 3312 echo "Disabling blkid debugging by default" 3313 3314fi; 3315# Check whether --enable-testio-debug or --disable-testio-debug was given. 3316if test "${enable_testio_debug+set}" = set; then 3317 enableval="$enable_testio_debug" 3318 if test "$enableval" = "no" 3319then 3320 echo "Disabling testio debugging" 3321else 3322 cat >>confdefs.h <<\_ACEOF 3323#define CONFIG_TESTIO_DEBUG 1 3324_ACEOF 3325 3326 echo "Enabling testio debugging" 3327fi 3328 3329else 3330 echo "Disabling testio debugging by default" 3331 3332fi; 3333# Check whether --enable-swapfs or --disable-swapfs was given. 3334if test "${enable_swapfs+set}" = set; then 3335 enableval="$enable_swapfs" 3336 if test "$enableval" = "no" 3337then 3338 SWAPFS_CMT=# 3339 echo "Disabling swapfs support" 3340else 3341 SWAPFS_CMT= 3342 cat >>confdefs.h <<\_ACEOF 3343#define ENABLE_SWAPFS 1 3344_ACEOF 3345 3346 echo "Enabling swapfs support" 3347fi 3348 3349else 3350 SWAPFS_CMT= 3351echo "Enabling swapfs support by default" 3352cat >>confdefs.h <<\_ACEOF 3353#define ENABLE_SWAPFS 1 3354_ACEOF 3355 3356 3357fi; 3358 3359# Check whether --enable-debugfs or --disable-debugfs was given. 3360if test "${enable_debugfs+set}" = set; then 3361 enableval="$enable_debugfs" 3362 if test "$enableval" = "no" 3363then 3364 echo "Disabling debugfs support" 3365 DEBUGFS_CMT="#" 3366else 3367 DEBUGFS_CMT= 3368 echo "Enabling debugfs support" 3369fi 3370 3371else 3372 echo "Enabling debugfs support by default" 3373DEBUGFS_CMT= 3374 3375fi; 3376 3377# Check whether --enable-imager or --disable-imager was given. 3378if test "${enable_imager+set}" = set; then 3379 enableval="$enable_imager" 3380 if test "$enableval" = "no" 3381then 3382 echo "Disabling e2image support" 3383 IMAGER_CMT="#" 3384else 3385 IMAGER_CMT= 3386 echo "Enabling e2image support" 3387fi 3388 3389else 3390 echo "Enabling e2image support by default" 3391IMAGER_CMT= 3392 3393fi; 3394 3395# Check whether --enable-resizer or --disable-resizer was given. 3396if test "${enable_resizer+set}" = set; then 3397 enableval="$enable_resizer" 3398 if test "$enableval" = "no" 3399then 3400 echo "Disabling e2resize support" 3401 RESIZER_CMT="#" 3402else 3403 RESIZER_CMT= 3404 echo "Enabling e2resize support" 3405fi 3406 3407else 3408 echo "Enabling e2resize support by default" 3409RESIZER_CMT= 3410 3411fi; 3412 3413# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. 3414if test "${enable_dynamic_e2fsck+set}" = set; then 3415 enableval="$enable_dynamic_e2fsck" 3416 if test "$enableval" = "no" 3417then 3418 E2FSCK_TYPE=static 3419 echo "Building e2fsck statically" 3420else 3421 E2FSCK_TYPE=shared 3422 echo "Building e2fsck dynamically" 3423fi 3424 3425else 3426 E2FSCK_TYPE=static 3427echo "Building e2fsck statically by default" 3428 3429fi; 3430 3431# Check whether --enable-fsck or --disable-fsck was given. 3432if test "${enable_fsck+set}" = set; then 3433 enableval="$enable_fsck" 3434 if test "$enableval" = "no" 3435then 3436 FSCK_PROG='' FSCK_MAN='' 3437 echo "Not building fsck wrapper" 3438else 3439 FSCK_PROG=fsck FSCK_MAN=fsck.8 3440 echo "Building fsck wrapper" 3441fi 3442 3443else 3444 case "$host_os" in 3445 gnu*) 3446 FSCK_PROG='' FSCK_MAN='' 3447 echo "Not building fsck wrapper by default" 3448 ;; 3449 *) 3450 FSCK_PROG=fsck FSCK_MAN=fsck.8 3451 echo "Building fsck wrapper by default" 3452esac 3453 3454fi; 3455 3456 3457# Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given. 3458if test "${enable_e2initrd_helper+set}" = set; then 3459 enableval="$enable_e2initrd_helper" 3460 if test "$enableval" = "no" 3461then 3462 E2INITRD_PROG='' E2INITRD_MAN='' 3463 echo "Not building e2initrd helper" 3464else 3465 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 3466 echo "Building e2initrd helper" 3467fi 3468 3469else 3470 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 3471echo "Building e2initrd helper by default" 3472 3473fi; 3474 3475 3476MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library 3477 3478GETTEXT_PACKAGE=e2fsprogs 3479PACKAGE=e2fsprogs 3480VERSION="$E2FSPROGS_VERSION" 3481VERSION=0.14.1 3482cat >>confdefs.h <<_ACEOF 3483#define PACKAGE "$PACKAGE" 3484_ACEOF 3485 3486cat >>confdefs.h <<_ACEOF 3487#define VERSION "$VERSION" 3488_ACEOF 3489 3490 3491 3492 3493 3494echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3495echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3496set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3497if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3498 echo $ECHO_N "(cached) $ECHO_C" >&6 3499else 3500 cat >conftest.make <<\_ACEOF 3501all: 3502 @echo 'ac_maketemp="$(MAKE)"' 3503_ACEOF 3504# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3505eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3506if test -n "$ac_maketemp"; then 3507 eval ac_cv_prog_make_${ac_make}_set=yes 3508else 3509 eval ac_cv_prog_make_${ac_make}_set=no 3510fi 3511rm -f conftest.make 3512fi 3513if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3514 echo "$as_me:$LINENO: result: yes" >&5 3515echo "${ECHO_T}yes" >&6 3516 SET_MAKE= 3517else 3518 echo "$as_me:$LINENO: result: no" >&5 3519echo "${ECHO_T}no" >&6 3520 SET_MAKE="MAKE=${MAKE-make}" 3521fi 3522 3523# Find a good install program. We prefer a C program (faster), 3524# so one script is as good as another. But avoid the broken or 3525# incompatible versions: 3526# SysV /etc/install, /usr/sbin/install 3527# SunOS /usr/etc/install 3528# IRIX /sbin/install 3529# AIX /bin/install 3530# AmigaOS /C/install, which installs bootblocks on floppy discs 3531# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3532# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3533# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3534# OS/2's system install, which has a completely different semantic 3535# ./install, which can be erroneously created by make from ./install.sh. 3536echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3537echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3538if test -z "$INSTALL"; then 3539if test "${ac_cv_path_install+set}" = set; then 3540 echo $ECHO_N "(cached) $ECHO_C" >&6 3541else 3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3543for as_dir in $PATH 3544do 3545 IFS=$as_save_IFS 3546 test -z "$as_dir" && as_dir=. 3547 # Account for people who put trailing slashes in PATH elements. 3548case $as_dir/ in 3549 ./ | .// | /cC/* | \ 3550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3551 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3552 /usr/ucb/* ) ;; 3553 *) 3554 # OSF1 and SCO ODT 3.0 have their own names for install. 3555 # Don't use installbsd from OSF since it installs stuff as root 3556 # by default. 3557 for ac_prog in ginstall scoinst install; do 3558 for ac_exec_ext in '' $ac_executable_extensions; do 3559 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3560 if test $ac_prog = install && 3561 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3562 # AIX install. It has an incompatible calling convention. 3563 : 3564 elif test $ac_prog = install && 3565 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3566 # program-specific install script used by HP pwplus--don't use. 3567 : 3568 else 3569 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3570 break 3 3571 fi 3572 fi 3573 done 3574 done 3575 ;; 3576esac 3577done 3578 3579 3580fi 3581 if test "${ac_cv_path_install+set}" = set; then 3582 INSTALL=$ac_cv_path_install 3583 else 3584 # As a last resort, use the slow shell script. We don't cache a 3585 # path for INSTALL within a source directory, because that will 3586 # break other packages using the cache if that directory is 3587 # removed, or if the path is relative. 3588 INSTALL=$ac_install_sh 3589 fi 3590fi 3591echo "$as_me:$LINENO: result: $INSTALL" >&5 3592echo "${ECHO_T}$INSTALL" >&6 3593 3594# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3595# It thinks the first close brace ends the variable substitution. 3596test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3597 3598test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3599 3600test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3601 3602 3603 MKINSTALLDIRS= 3604 if test -n "$ac_aux_dir"; then 3605 case "$ac_aux_dir" in 3606 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 3607 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 3608 esac 3609 fi 3610 if test -z "$MKINSTALLDIRS"; then 3611 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 3612 fi 3613 3614 3615 3616 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 3617echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 3618 # Check whether --enable-nls or --disable-nls was given. 3619if test "${enable_nls+set}" = set; then 3620 enableval="$enable_nls" 3621 USE_NLS=$enableval 3622else 3623 USE_NLS=yes 3624fi; 3625 echo "$as_me:$LINENO: result: $USE_NLS" >&5 3626echo "${ECHO_T}$USE_NLS" >&6 3627 3628 3629 3630 3631 3632 3633# Prepare PATH_SEPARATOR. 3634# The user is always right. 3635if test "${PATH_SEPARATOR+set}" != set; then 3636 echo "#! /bin/sh" >conf$$.sh 3637 echo "exit 0" >>conf$$.sh 3638 chmod +x conf$$.sh 3639 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3640 PATH_SEPARATOR=';' 3641 else 3642 PATH_SEPARATOR=: 3643 fi 3644 rm -f conf$$.sh 3645fi 3646 3647# Find out how to test for executable files. Don't use a zero-byte file, 3648# as systems may use methods other than mode bits to determine executability. 3649cat >conf$$.file <<_ASEOF 3650#! /bin/sh 3651exit 0 3652_ASEOF 3653chmod +x conf$$.file 3654if test -x conf$$.file >/dev/null 2>&1; then 3655 ac_executable_p="test -x" 3656else 3657 ac_executable_p="test -f" 3658fi 3659rm -f conf$$.file 3660 3661# Extract the first word of "msgfmt", so it can be a program name with args. 3662set dummy msgfmt; ac_word=$2 3663echo "$as_me:$LINENO: checking for $ac_word" >&5 3664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3665if test "${ac_cv_path_MSGFMT+set}" = set; then 3666 echo $ECHO_N "(cached) $ECHO_C" >&6 3667else 3668 case "$MSGFMT" in 3669 [\\/]* | ?:[\\/]*) 3670 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3671 ;; 3672 *) 3673 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3674 for ac_dir in $PATH; do 3675 IFS="$ac_save_IFS" 3676 test -z "$ac_dir" && ac_dir=. 3677 for ac_exec_ext in '' $ac_executable_extensions; do 3678 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3679 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 3680 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3681 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 3682 break 2 3683 fi 3684 fi 3685 done 3686 done 3687 IFS="$ac_save_IFS" 3688 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 3689 ;; 3690esac 3691fi 3692MSGFMT="$ac_cv_path_MSGFMT" 3693if test "$MSGFMT" != ":"; then 3694 echo "$as_me:$LINENO: result: $MSGFMT" >&5 3695echo "${ECHO_T}$MSGFMT" >&6 3696else 3697 echo "$as_me:$LINENO: result: no" >&5 3698echo "${ECHO_T}no" >&6 3699fi 3700 3701 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3702set dummy gmsgfmt; ac_word=$2 3703echo "$as_me:$LINENO: checking for $ac_word" >&5 3704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3705if test "${ac_cv_path_GMSGFMT+set}" = set; then 3706 echo $ECHO_N "(cached) $ECHO_C" >&6 3707else 3708 case $GMSGFMT in 3709 [\\/]* | ?:[\\/]*) 3710 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3711 ;; 3712 *) 3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3714for as_dir in $PATH 3715do 3716 IFS=$as_save_IFS 3717 test -z "$as_dir" && as_dir=. 3718 for ac_exec_ext in '' $ac_executable_extensions; do 3719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3720 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 3721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3722 break 2 3723 fi 3724done 3725done 3726 3727 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3728 ;; 3729esac 3730fi 3731GMSGFMT=$ac_cv_path_GMSGFMT 3732 3733if test -n "$GMSGFMT"; then 3734 echo "$as_me:$LINENO: result: $GMSGFMT" >&5 3735echo "${ECHO_T}$GMSGFMT" >&6 3736else 3737 echo "$as_me:$LINENO: result: no" >&5 3738echo "${ECHO_T}no" >&6 3739fi 3740 3741 3742 3743# Prepare PATH_SEPARATOR. 3744# The user is always right. 3745if test "${PATH_SEPARATOR+set}" != set; then 3746 echo "#! /bin/sh" >conf$$.sh 3747 echo "exit 0" >>conf$$.sh 3748 chmod +x conf$$.sh 3749 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3750 PATH_SEPARATOR=';' 3751 else 3752 PATH_SEPARATOR=: 3753 fi 3754 rm -f conf$$.sh 3755fi 3756 3757# Find out how to test for executable files. Don't use a zero-byte file, 3758# as systems may use methods other than mode bits to determine executability. 3759cat >conf$$.file <<_ASEOF 3760#! /bin/sh 3761exit 0 3762_ASEOF 3763chmod +x conf$$.file 3764if test -x conf$$.file >/dev/null 2>&1; then 3765 ac_executable_p="test -x" 3766else 3767 ac_executable_p="test -f" 3768fi 3769rm -f conf$$.file 3770 3771# Extract the first word of "xgettext", so it can be a program name with args. 3772set dummy xgettext; ac_word=$2 3773echo "$as_me:$LINENO: checking for $ac_word" >&5 3774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3775if test "${ac_cv_path_XGETTEXT+set}" = set; then 3776 echo $ECHO_N "(cached) $ECHO_C" >&6 3777else 3778 case "$XGETTEXT" in 3779 [\\/]* | ?:[\\/]*) 3780 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3781 ;; 3782 *) 3783 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3784 for ac_dir in $PATH; do 3785 IFS="$ac_save_IFS" 3786 test -z "$ac_dir" && ac_dir=. 3787 for ac_exec_ext in '' $ac_executable_extensions; do 3788 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3789 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 3790 (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 3791 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 3792 break 2 3793 fi 3794 fi 3795 done 3796 done 3797 IFS="$ac_save_IFS" 3798 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3799 ;; 3800esac 3801fi 3802XGETTEXT="$ac_cv_path_XGETTEXT" 3803if test "$XGETTEXT" != ":"; then 3804 echo "$as_me:$LINENO: result: $XGETTEXT" >&5 3805echo "${ECHO_T}$XGETTEXT" >&6 3806else 3807 echo "$as_me:$LINENO: result: no" >&5 3808echo "${ECHO_T}no" >&6 3809fi 3810 3811 rm -f messages.po 3812 3813 3814# Prepare PATH_SEPARATOR. 3815# The user is always right. 3816if test "${PATH_SEPARATOR+set}" != set; then 3817 echo "#! /bin/sh" >conf$$.sh 3818 echo "exit 0" >>conf$$.sh 3819 chmod +x conf$$.sh 3820 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3821 PATH_SEPARATOR=';' 3822 else 3823 PATH_SEPARATOR=: 3824 fi 3825 rm -f conf$$.sh 3826fi 3827 3828# Find out how to test for executable files. Don't use a zero-byte file, 3829# as systems may use methods other than mode bits to determine executability. 3830cat >conf$$.file <<_ASEOF 3831#! /bin/sh 3832exit 0 3833_ASEOF 3834chmod +x conf$$.file 3835if test -x conf$$.file >/dev/null 2>&1; then 3836 ac_executable_p="test -x" 3837else 3838 ac_executable_p="test -f" 3839fi 3840rm -f conf$$.file 3841 3842# Extract the first word of "msgmerge", so it can be a program name with args. 3843set dummy msgmerge; ac_word=$2 3844echo "$as_me:$LINENO: checking for $ac_word" >&5 3845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3846if test "${ac_cv_path_MSGMERGE+set}" = set; then 3847 echo $ECHO_N "(cached) $ECHO_C" >&6 3848else 3849 case "$MSGMERGE" in 3850 [\\/]* | ?:[\\/]*) 3851 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 3852 ;; 3853 *) 3854 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3855 for ac_dir in $PATH; do 3856 IFS="$ac_save_IFS" 3857 test -z "$ac_dir" && ac_dir=. 3858 for ac_exec_ext in '' $ac_executable_extensions; do 3859 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3860 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 3861 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 3862 break 2 3863 fi 3864 fi 3865 done 3866 done 3867 IFS="$ac_save_IFS" 3868 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 3869 ;; 3870esac 3871fi 3872MSGMERGE="$ac_cv_path_MSGMERGE" 3873if test "$MSGMERGE" != ":"; then 3874 echo "$as_me:$LINENO: result: $MSGMERGE" >&5 3875echo "${ECHO_T}$MSGMERGE" >&6 3876else 3877 echo "$as_me:$LINENO: result: no" >&5 3878echo "${ECHO_T}no" >&6 3879fi 3880 3881 3882 if test "$GMSGFMT" != ":"; then 3883 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 3884 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3885 : ; 3886 else 3887 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 3888 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 3889echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 3890 GMSGFMT=":" 3891 fi 3892 fi 3893 3894 if test "$XGETTEXT" != ":"; then 3895 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 3896 (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 3897 : ; 3898 else 3899 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 3900echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 3901 XGETTEXT=":" 3902 fi 3903 rm -f messages.po 3904 fi 3905 3906 ac_config_commands="$ac_config_commands default-1" 3907 3908 3909if test -n "$ac_tool_prefix"; then 3910 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3911set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3912echo "$as_me:$LINENO: checking for $ac_word" >&5 3913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3914if test "${ac_cv_prog_RANLIB+set}" = set; then 3915 echo $ECHO_N "(cached) $ECHO_C" >&6 3916else 3917 if test -n "$RANLIB"; then 3918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3919else 3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3921for as_dir in $PATH 3922do 3923 IFS=$as_save_IFS 3924 test -z "$as_dir" && as_dir=. 3925 for ac_exec_ext in '' $ac_executable_extensions; do 3926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3927 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3929 break 2 3930 fi 3931done 3932done 3933 3934fi 3935fi 3936RANLIB=$ac_cv_prog_RANLIB 3937if test -n "$RANLIB"; then 3938 echo "$as_me:$LINENO: result: $RANLIB" >&5 3939echo "${ECHO_T}$RANLIB" >&6 3940else 3941 echo "$as_me:$LINENO: result: no" >&5 3942echo "${ECHO_T}no" >&6 3943fi 3944 3945fi 3946if test -z "$ac_cv_prog_RANLIB"; then 3947 ac_ct_RANLIB=$RANLIB 3948 # Extract the first word of "ranlib", so it can be a program name with args. 3949set dummy ranlib; ac_word=$2 3950echo "$as_me:$LINENO: checking for $ac_word" >&5 3951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3952if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3953 echo $ECHO_N "(cached) $ECHO_C" >&6 3954else 3955 if test -n "$ac_ct_RANLIB"; then 3956 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3957else 3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3959for as_dir in $PATH 3960do 3961 IFS=$as_save_IFS 3962 test -z "$as_dir" && as_dir=. 3963 for ac_exec_ext in '' $ac_executable_extensions; do 3964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3965 ac_cv_prog_ac_ct_RANLIB="ranlib" 3966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3967 break 2 3968 fi 3969done 3970done 3971 3972 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3973fi 3974fi 3975ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3976if test -n "$ac_ct_RANLIB"; then 3977 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3978echo "${ECHO_T}$ac_ct_RANLIB" >&6 3979else 3980 echo "$as_me:$LINENO: result: no" >&5 3981echo "${ECHO_T}no" >&6 3982fi 3983 3984 RANLIB=$ac_ct_RANLIB 3985else 3986 RANLIB="$ac_cv_prog_RANLIB" 3987fi 3988 3989 3990 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 3991echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 3992if test "${ac_cv_lib_cposix_strerror+set}" = set; then 3993 echo $ECHO_N "(cached) $ECHO_C" >&6 3994else 3995 ac_check_lib_save_LIBS=$LIBS 3996LIBS="-lcposix $LIBS" 3997cat >conftest.$ac_ext <<_ACEOF 3998/* confdefs.h. */ 3999_ACEOF 4000cat confdefs.h >>conftest.$ac_ext 4001cat >>conftest.$ac_ext <<_ACEOF 4002/* end confdefs.h. */ 4003 4004/* Override any gcc2 internal prototype to avoid an error. */ 4005#ifdef __cplusplus 4006extern "C" 4007#endif 4008/* We use char because int might match the return type of a gcc2 4009 builtin and then its argument prototype would still apply. */ 4010char strerror (); 4011int 4012main () 4013{ 4014strerror (); 4015 ; 4016 return 0; 4017} 4018_ACEOF 4019rm -f conftest.$ac_objext conftest$ac_exeext 4020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4021 (eval $ac_link) 2>conftest.er1 4022 ac_status=$? 4023 grep -v '^ *+' conftest.er1 >conftest.err 4024 rm -f conftest.er1 4025 cat conftest.err >&5 4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4027 (exit $ac_status); } && 4028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4030 (eval $ac_try) 2>&5 4031 ac_status=$? 4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4033 (exit $ac_status); }; } && 4034 { ac_try='test -s conftest$ac_exeext' 4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4036 (eval $ac_try) 2>&5 4037 ac_status=$? 4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4039 (exit $ac_status); }; }; then 4040 ac_cv_lib_cposix_strerror=yes 4041else 4042 echo "$as_me: failed program was:" >&5 4043sed 's/^/| /' conftest.$ac_ext >&5 4044 4045ac_cv_lib_cposix_strerror=no 4046fi 4047rm -f conftest.err conftest.$ac_objext \ 4048 conftest$ac_exeext conftest.$ac_ext 4049LIBS=$ac_check_lib_save_LIBS 4050fi 4051echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 4052echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 4053if test $ac_cv_lib_cposix_strerror = yes; then 4054 LIBS="$LIBS -lcposix" 4055fi 4056 4057 4058 4059echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4060echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4061if test "${ac_cv_c_const+set}" = set; then 4062 echo $ECHO_N "(cached) $ECHO_C" >&6 4063else 4064 cat >conftest.$ac_ext <<_ACEOF 4065/* confdefs.h. */ 4066_ACEOF 4067cat confdefs.h >>conftest.$ac_ext 4068cat >>conftest.$ac_ext <<_ACEOF 4069/* end confdefs.h. */ 4070 4071int 4072main () 4073{ 4074/* FIXME: Include the comments suggested by Paul. */ 4075#ifndef __cplusplus 4076 /* Ultrix mips cc rejects this. */ 4077 typedef int charset[2]; 4078 const charset x; 4079 /* SunOS 4.1.1 cc rejects this. */ 4080 char const *const *ccp; 4081 char **p; 4082 /* NEC SVR4.0.2 mips cc rejects this. */ 4083 struct point {int x, y;}; 4084 static struct point const zero = {0,0}; 4085 /* AIX XL C 1.02.0.0 rejects this. 4086 It does not let you subtract one const X* pointer from another in 4087 an arm of an if-expression whose if-part is not a constant 4088 expression */ 4089 const char *g = "string"; 4090 ccp = &g + (g ? g-g : 0); 4091 /* HPUX 7.0 cc rejects these. */ 4092 ++ccp; 4093 p = (char**) ccp; 4094 ccp = (char const *const *) p; 4095 { /* SCO 3.2v4 cc rejects this. */ 4096 char *t; 4097 char const *s = 0 ? (char *) 0 : (char const *) 0; 4098 4099 *t++ = 0; 4100 } 4101 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4102 int x[] = {25, 17}; 4103 const int *foo = &x[0]; 4104 ++foo; 4105 } 4106 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4107 typedef const int *iptr; 4108 iptr p = 0; 4109 ++p; 4110 } 4111 { /* AIX XL C 1.02.0.0 rejects this saying 4112 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4113 struct s { int j; const int *ap[3]; }; 4114 struct s *b; b->j = 5; 4115 } 4116 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4117 const int foo = 10; 4118 } 4119#endif 4120 4121 ; 4122 return 0; 4123} 4124_ACEOF 4125rm -f conftest.$ac_objext 4126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4127 (eval $ac_compile) 2>conftest.er1 4128 ac_status=$? 4129 grep -v '^ *+' conftest.er1 >conftest.err 4130 rm -f conftest.er1 4131 cat conftest.err >&5 4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4133 (exit $ac_status); } && 4134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4136 (eval $ac_try) 2>&5 4137 ac_status=$? 4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4139 (exit $ac_status); }; } && 4140 { ac_try='test -s conftest.$ac_objext' 4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4142 (eval $ac_try) 2>&5 4143 ac_status=$? 4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4145 (exit $ac_status); }; }; then 4146 ac_cv_c_const=yes 4147else 4148 echo "$as_me: failed program was:" >&5 4149sed 's/^/| /' conftest.$ac_ext >&5 4150 4151ac_cv_c_const=no 4152fi 4153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4154fi 4155echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4156echo "${ECHO_T}$ac_cv_c_const" >&6 4157if test $ac_cv_c_const = no; then 4158 4159cat >>confdefs.h <<\_ACEOF 4160#define const 4161_ACEOF 4162 4163fi 4164 4165 4166 echo "$as_me:$LINENO: checking for signed" >&5 4167echo $ECHO_N "checking for signed... $ECHO_C" >&6 4168if test "${bh_cv_c_signed+set}" = set; then 4169 echo $ECHO_N "(cached) $ECHO_C" >&6 4170else 4171 cat >conftest.$ac_ext <<_ACEOF 4172/* confdefs.h. */ 4173_ACEOF 4174cat confdefs.h >>conftest.$ac_ext 4175cat >>conftest.$ac_ext <<_ACEOF 4176/* end confdefs.h. */ 4177 4178int 4179main () 4180{ 4181signed char x; 4182 ; 4183 return 0; 4184} 4185_ACEOF 4186rm -f conftest.$ac_objext 4187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4188 (eval $ac_compile) 2>conftest.er1 4189 ac_status=$? 4190 grep -v '^ *+' conftest.er1 >conftest.err 4191 rm -f conftest.er1 4192 cat conftest.err >&5 4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4194 (exit $ac_status); } && 4195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4197 (eval $ac_try) 2>&5 4198 ac_status=$? 4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4200 (exit $ac_status); }; } && 4201 { ac_try='test -s conftest.$ac_objext' 4202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4203 (eval $ac_try) 2>&5 4204 ac_status=$? 4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4206 (exit $ac_status); }; }; then 4207 bh_cv_c_signed=yes 4208else 4209 echo "$as_me: failed program was:" >&5 4210sed 's/^/| /' conftest.$ac_ext >&5 4211 4212bh_cv_c_signed=no 4213fi 4214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4215fi 4216echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 4217echo "${ECHO_T}$bh_cv_c_signed" >&6 4218 if test $bh_cv_c_signed = no; then 4219 4220cat >>confdefs.h <<\_ACEOF 4221#define signed 4222_ACEOF 4223 4224 fi 4225 4226echo "$as_me:$LINENO: checking for inline" >&5 4227echo $ECHO_N "checking for inline... $ECHO_C" >&6 4228if test "${ac_cv_c_inline+set}" = set; then 4229 echo $ECHO_N "(cached) $ECHO_C" >&6 4230else 4231 ac_cv_c_inline=no 4232for ac_kw in inline __inline__ __inline; do 4233 cat >conftest.$ac_ext <<_ACEOF 4234/* confdefs.h. */ 4235_ACEOF 4236cat confdefs.h >>conftest.$ac_ext 4237cat >>conftest.$ac_ext <<_ACEOF 4238/* end confdefs.h. */ 4239#ifndef __cplusplus 4240typedef int foo_t; 4241static $ac_kw foo_t static_foo () {return 0; } 4242$ac_kw foo_t foo () {return 0; } 4243#endif 4244 4245_ACEOF 4246rm -f conftest.$ac_objext 4247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4248 (eval $ac_compile) 2>conftest.er1 4249 ac_status=$? 4250 grep -v '^ *+' conftest.er1 >conftest.err 4251 rm -f conftest.er1 4252 cat conftest.err >&5 4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4254 (exit $ac_status); } && 4255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4257 (eval $ac_try) 2>&5 4258 ac_status=$? 4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4260 (exit $ac_status); }; } && 4261 { ac_try='test -s conftest.$ac_objext' 4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4263 (eval $ac_try) 2>&5 4264 ac_status=$? 4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4266 (exit $ac_status); }; }; then 4267 ac_cv_c_inline=$ac_kw; break 4268else 4269 echo "$as_me: failed program was:" >&5 4270sed 's/^/| /' conftest.$ac_ext >&5 4271 4272fi 4273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4274done 4275 4276fi 4277echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4278echo "${ECHO_T}$ac_cv_c_inline" >&6 4279 4280 4281case $ac_cv_c_inline in 4282 inline | yes) ;; 4283 *) 4284 case $ac_cv_c_inline in 4285 no) ac_val=;; 4286 *) ac_val=$ac_cv_c_inline;; 4287 esac 4288 cat >>confdefs.h <<_ACEOF 4289#ifndef __cplusplus 4290#define inline $ac_val 4291#endif 4292_ACEOF 4293 ;; 4294esac 4295 4296echo "$as_me:$LINENO: checking for off_t" >&5 4297echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4298if test "${ac_cv_type_off_t+set}" = set; then 4299 echo $ECHO_N "(cached) $ECHO_C" >&6 4300else 4301 cat >conftest.$ac_ext <<_ACEOF 4302/* confdefs.h. */ 4303_ACEOF 4304cat confdefs.h >>conftest.$ac_ext 4305cat >>conftest.$ac_ext <<_ACEOF 4306/* end confdefs.h. */ 4307$ac_includes_default 4308int 4309main () 4310{ 4311if ((off_t *) 0) 4312 return 0; 4313if (sizeof (off_t)) 4314 return 0; 4315 ; 4316 return 0; 4317} 4318_ACEOF 4319rm -f conftest.$ac_objext 4320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4321 (eval $ac_compile) 2>conftest.er1 4322 ac_status=$? 4323 grep -v '^ *+' conftest.er1 >conftest.err 4324 rm -f conftest.er1 4325 cat conftest.err >&5 4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4327 (exit $ac_status); } && 4328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4330 (eval $ac_try) 2>&5 4331 ac_status=$? 4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4333 (exit $ac_status); }; } && 4334 { ac_try='test -s conftest.$ac_objext' 4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4336 (eval $ac_try) 2>&5 4337 ac_status=$? 4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4339 (exit $ac_status); }; }; then 4340 ac_cv_type_off_t=yes 4341else 4342 echo "$as_me: failed program was:" >&5 4343sed 's/^/| /' conftest.$ac_ext >&5 4344 4345ac_cv_type_off_t=no 4346fi 4347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4348fi 4349echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4350echo "${ECHO_T}$ac_cv_type_off_t" >&6 4351if test $ac_cv_type_off_t = yes; then 4352 : 4353else 4354 4355cat >>confdefs.h <<_ACEOF 4356#define off_t long 4357_ACEOF 4358 4359fi 4360 4361echo "$as_me:$LINENO: checking for size_t" >&5 4362echo $ECHO_N "checking for size_t... $ECHO_C" >&6 4363if test "${ac_cv_type_size_t+set}" = set; then 4364 echo $ECHO_N "(cached) $ECHO_C" >&6 4365else 4366 cat >conftest.$ac_ext <<_ACEOF 4367/* confdefs.h. */ 4368_ACEOF 4369cat confdefs.h >>conftest.$ac_ext 4370cat >>conftest.$ac_ext <<_ACEOF 4371/* end confdefs.h. */ 4372$ac_includes_default 4373int 4374main () 4375{ 4376if ((size_t *) 0) 4377 return 0; 4378if (sizeof (size_t)) 4379 return 0; 4380 ; 4381 return 0; 4382} 4383_ACEOF 4384rm -f conftest.$ac_objext 4385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4386 (eval $ac_compile) 2>conftest.er1 4387 ac_status=$? 4388 grep -v '^ *+' conftest.er1 >conftest.err 4389 rm -f conftest.er1 4390 cat conftest.err >&5 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4392 (exit $ac_status); } && 4393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4395 (eval $ac_try) 2>&5 4396 ac_status=$? 4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4398 (exit $ac_status); }; } && 4399 { ac_try='test -s conftest.$ac_objext' 4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4401 (eval $ac_try) 2>&5 4402 ac_status=$? 4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4404 (exit $ac_status); }; }; then 4405 ac_cv_type_size_t=yes 4406else 4407 echo "$as_me: failed program was:" >&5 4408sed 's/^/| /' conftest.$ac_ext >&5 4409 4410ac_cv_type_size_t=no 4411fi 4412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4413fi 4414echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 4415echo "${ECHO_T}$ac_cv_type_size_t" >&6 4416if test $ac_cv_type_size_t = yes; then 4417 : 4418else 4419 4420cat >>confdefs.h <<_ACEOF 4421#define size_t unsigned 4422_ACEOF 4423 4424fi 4425 4426 4427 echo "$as_me:$LINENO: checking for long long" >&5 4428echo $ECHO_N "checking for long long... $ECHO_C" >&6 4429if test "${ac_cv_type_long_long+set}" = set; then 4430 echo $ECHO_N "(cached) $ECHO_C" >&6 4431else 4432 cat >conftest.$ac_ext <<_ACEOF 4433/* confdefs.h. */ 4434_ACEOF 4435cat confdefs.h >>conftest.$ac_ext 4436cat >>conftest.$ac_ext <<_ACEOF 4437/* end confdefs.h. */ 4438long long ll = 1LL; int i = 63; 4439int 4440main () 4441{ 4442long long llmax = (long long) -1; 4443 return ll << i | ll >> i | llmax / ll | llmax % ll; 4444 ; 4445 return 0; 4446} 4447_ACEOF 4448rm -f conftest.$ac_objext conftest$ac_exeext 4449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4450 (eval $ac_link) 2>conftest.er1 4451 ac_status=$? 4452 grep -v '^ *+' conftest.er1 >conftest.err 4453 rm -f conftest.er1 4454 cat conftest.err >&5 4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4456 (exit $ac_status); } && 4457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4459 (eval $ac_try) 2>&5 4460 ac_status=$? 4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4462 (exit $ac_status); }; } && 4463 { ac_try='test -s conftest$ac_exeext' 4464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4465 (eval $ac_try) 2>&5 4466 ac_status=$? 4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4468 (exit $ac_status); }; }; then 4469 ac_cv_type_long_long=yes 4470else 4471 echo "$as_me: failed program was:" >&5 4472sed 's/^/| /' conftest.$ac_ext >&5 4473 4474ac_cv_type_long_long=no 4475fi 4476rm -f conftest.err conftest.$ac_objext \ 4477 conftest$ac_exeext conftest.$ac_ext 4478fi 4479echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 4480echo "${ECHO_T}$ac_cv_type_long_long" >&6 4481 if test $ac_cv_type_long_long = yes; then 4482 4483cat >>confdefs.h <<\_ACEOF 4484#define HAVE_LONG_LONG 1 4485_ACEOF 4486 4487 fi 4488 4489 4490 echo "$as_me:$LINENO: checking for long double" >&5 4491echo $ECHO_N "checking for long double... $ECHO_C" >&6 4492if test "${gt_cv_c_long_double+set}" = set; then 4493 echo $ECHO_N "(cached) $ECHO_C" >&6 4494else 4495 if test "$GCC" = yes; then 4496 gt_cv_c_long_double=yes 4497 else 4498 cat >conftest.$ac_ext <<_ACEOF 4499/* confdefs.h. */ 4500_ACEOF 4501cat confdefs.h >>conftest.$ac_ext 4502cat >>conftest.$ac_ext <<_ACEOF 4503/* end confdefs.h. */ 4504 4505 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 4506 long double foo = 0.0; 4507 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 4508 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 4509 4510int 4511main () 4512{ 4513 4514 ; 4515 return 0; 4516} 4517_ACEOF 4518rm -f conftest.$ac_objext 4519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4520 (eval $ac_compile) 2>conftest.er1 4521 ac_status=$? 4522 grep -v '^ *+' conftest.er1 >conftest.err 4523 rm -f conftest.er1 4524 cat conftest.err >&5 4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4526 (exit $ac_status); } && 4527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4529 (eval $ac_try) 2>&5 4530 ac_status=$? 4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4532 (exit $ac_status); }; } && 4533 { ac_try='test -s conftest.$ac_objext' 4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4535 (eval $ac_try) 2>&5 4536 ac_status=$? 4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538 (exit $ac_status); }; }; then 4539 gt_cv_c_long_double=yes 4540else 4541 echo "$as_me: failed program was:" >&5 4542sed 's/^/| /' conftest.$ac_ext >&5 4543 4544gt_cv_c_long_double=no 4545fi 4546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4547 fi 4548fi 4549echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 4550echo "${ECHO_T}$gt_cv_c_long_double" >&6 4551 if test $gt_cv_c_long_double = yes; then 4552 4553cat >>confdefs.h <<\_ACEOF 4554#define HAVE_LONG_DOUBLE 1 4555_ACEOF 4556 4557 fi 4558 4559 4560 echo "$as_me:$LINENO: checking for wchar_t" >&5 4561echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 4562if test "${gt_cv_c_wchar_t+set}" = set; then 4563 echo $ECHO_N "(cached) $ECHO_C" >&6 4564else 4565 cat >conftest.$ac_ext <<_ACEOF 4566/* confdefs.h. */ 4567_ACEOF 4568cat confdefs.h >>conftest.$ac_ext 4569cat >>conftest.$ac_ext <<_ACEOF 4570/* end confdefs.h. */ 4571#include <stddef.h> 4572 wchar_t foo = (wchar_t)'\0'; 4573int 4574main () 4575{ 4576 4577 ; 4578 return 0; 4579} 4580_ACEOF 4581rm -f conftest.$ac_objext 4582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4583 (eval $ac_compile) 2>conftest.er1 4584 ac_status=$? 4585 grep -v '^ *+' conftest.er1 >conftest.err 4586 rm -f conftest.er1 4587 cat conftest.err >&5 4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4589 (exit $ac_status); } && 4590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4592 (eval $ac_try) 2>&5 4593 ac_status=$? 4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4595 (exit $ac_status); }; } && 4596 { ac_try='test -s conftest.$ac_objext' 4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4598 (eval $ac_try) 2>&5 4599 ac_status=$? 4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4601 (exit $ac_status); }; }; then 4602 gt_cv_c_wchar_t=yes 4603else 4604 echo "$as_me: failed program was:" >&5 4605sed 's/^/| /' conftest.$ac_ext >&5 4606 4607gt_cv_c_wchar_t=no 4608fi 4609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4610fi 4611echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 4612echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 4613 if test $gt_cv_c_wchar_t = yes; then 4614 4615cat >>confdefs.h <<\_ACEOF 4616#define HAVE_WCHAR_T 1 4617_ACEOF 4618 4619 fi 4620 4621 4622 echo "$as_me:$LINENO: checking for wint_t" >&5 4623echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 4624if test "${gt_cv_c_wint_t+set}" = set; then 4625 echo $ECHO_N "(cached) $ECHO_C" >&6 4626else 4627 cat >conftest.$ac_ext <<_ACEOF 4628/* confdefs.h. */ 4629_ACEOF 4630cat confdefs.h >>conftest.$ac_ext 4631cat >>conftest.$ac_ext <<_ACEOF 4632/* end confdefs.h. */ 4633#include <wchar.h> 4634 wint_t foo = (wchar_t)'\0'; 4635int 4636main () 4637{ 4638 4639 ; 4640 return 0; 4641} 4642_ACEOF 4643rm -f conftest.$ac_objext 4644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4645 (eval $ac_compile) 2>conftest.er1 4646 ac_status=$? 4647 grep -v '^ *+' conftest.er1 >conftest.err 4648 rm -f conftest.er1 4649 cat conftest.err >&5 4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4651 (exit $ac_status); } && 4652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4654 (eval $ac_try) 2>&5 4655 ac_status=$? 4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4657 (exit $ac_status); }; } && 4658 { ac_try='test -s conftest.$ac_objext' 4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4660 (eval $ac_try) 2>&5 4661 ac_status=$? 4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4663 (exit $ac_status); }; }; then 4664 gt_cv_c_wint_t=yes 4665else 4666 echo "$as_me: failed program was:" >&5 4667sed 's/^/| /' conftest.$ac_ext >&5 4668 4669gt_cv_c_wint_t=no 4670fi 4671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4672fi 4673echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 4674echo "${ECHO_T}$gt_cv_c_wint_t" >&6 4675 if test $gt_cv_c_wint_t = yes; then 4676 4677cat >>confdefs.h <<\_ACEOF 4678#define HAVE_WINT_T 1 4679_ACEOF 4680 4681 fi 4682 4683 4684 echo "$as_me:$LINENO: checking for inttypes.h" >&5 4685echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 4686if test "${jm_ac_cv_header_inttypes_h+set}" = set; then 4687 echo $ECHO_N "(cached) $ECHO_C" >&6 4688else 4689 cat >conftest.$ac_ext <<_ACEOF 4690/* confdefs.h. */ 4691_ACEOF 4692cat confdefs.h >>conftest.$ac_ext 4693cat >>conftest.$ac_ext <<_ACEOF 4694/* end confdefs.h. */ 4695#include <sys/types.h> 4696#include <inttypes.h> 4697int 4698main () 4699{ 4700uintmax_t i = (uintmax_t) -1; 4701 ; 4702 return 0; 4703} 4704_ACEOF 4705rm -f conftest.$ac_objext 4706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4707 (eval $ac_compile) 2>conftest.er1 4708 ac_status=$? 4709 grep -v '^ *+' conftest.er1 >conftest.err 4710 rm -f conftest.er1 4711 cat conftest.err >&5 4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4713 (exit $ac_status); } && 4714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4716 (eval $ac_try) 2>&5 4717 ac_status=$? 4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4719 (exit $ac_status); }; } && 4720 { ac_try='test -s conftest.$ac_objext' 4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4722 (eval $ac_try) 2>&5 4723 ac_status=$? 4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4725 (exit $ac_status); }; }; then 4726 jm_ac_cv_header_inttypes_h=yes 4727else 4728 echo "$as_me: failed program was:" >&5 4729sed 's/^/| /' conftest.$ac_ext >&5 4730 4731jm_ac_cv_header_inttypes_h=no 4732fi 4733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4734fi 4735echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 4736echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6 4737 if test $jm_ac_cv_header_inttypes_h = yes; then 4738 4739cat >>confdefs.h <<_ACEOF 4740#define HAVE_INTTYPES_H_WITH_UINTMAX 1 4741_ACEOF 4742 4743 fi 4744 4745 4746 echo "$as_me:$LINENO: checking for stdint.h" >&5 4747echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 4748if test "${jm_ac_cv_header_stdint_h+set}" = set; then 4749 echo $ECHO_N "(cached) $ECHO_C" >&6 4750else 4751 cat >conftest.$ac_ext <<_ACEOF 4752/* confdefs.h. */ 4753_ACEOF 4754cat confdefs.h >>conftest.$ac_ext 4755cat >>conftest.$ac_ext <<_ACEOF 4756/* end confdefs.h. */ 4757#include <sys/types.h> 4758#include <stdint.h> 4759int 4760main () 4761{ 4762uintmax_t i = (uintmax_t) -1; 4763 ; 4764 return 0; 4765} 4766_ACEOF 4767rm -f conftest.$ac_objext 4768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4769 (eval $ac_compile) 2>conftest.er1 4770 ac_status=$? 4771 grep -v '^ *+' conftest.er1 >conftest.err 4772 rm -f conftest.er1 4773 cat conftest.err >&5 4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4775 (exit $ac_status); } && 4776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4778 (eval $ac_try) 2>&5 4779 ac_status=$? 4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); }; } && 4782 { ac_try='test -s conftest.$ac_objext' 4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4784 (eval $ac_try) 2>&5 4785 ac_status=$? 4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4787 (exit $ac_status); }; }; then 4788 jm_ac_cv_header_stdint_h=yes 4789else 4790 echo "$as_me: failed program was:" >&5 4791sed 's/^/| /' conftest.$ac_ext >&5 4792 4793jm_ac_cv_header_stdint_h=no 4794fi 4795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4796fi 4797echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 4798echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6 4799 if test $jm_ac_cv_header_stdint_h = yes; then 4800 4801cat >>confdefs.h <<_ACEOF 4802#define HAVE_STDINT_H_WITH_UINTMAX 1 4803_ACEOF 4804 4805 fi 4806 4807 4808 4809 4810 echo "$as_me:$LINENO: checking for intmax_t" >&5 4811echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 4812if test "${gt_cv_c_intmax_t+set}" = set; then 4813 echo $ECHO_N "(cached) $ECHO_C" >&6 4814else 4815 cat >conftest.$ac_ext <<_ACEOF 4816/* confdefs.h. */ 4817_ACEOF 4818cat confdefs.h >>conftest.$ac_ext 4819cat >>conftest.$ac_ext <<_ACEOF 4820/* end confdefs.h. */ 4821 4822#include <stddef.h> 4823#include <stdlib.h> 4824#if HAVE_STDINT_H_WITH_UINTMAX 4825#include <stdint.h> 4826#endif 4827#if HAVE_INTTYPES_H_WITH_UINTMAX 4828#include <inttypes.h> 4829#endif 4830 4831int 4832main () 4833{ 4834intmax_t x = -1; 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839rm -f conftest.$ac_objext 4840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4841 (eval $ac_compile) 2>conftest.er1 4842 ac_status=$? 4843 grep -v '^ *+' conftest.er1 >conftest.err 4844 rm -f conftest.er1 4845 cat conftest.err >&5 4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); } && 4848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4850 (eval $ac_try) 2>&5 4851 ac_status=$? 4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4853 (exit $ac_status); }; } && 4854 { ac_try='test -s conftest.$ac_objext' 4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4856 (eval $ac_try) 2>&5 4857 ac_status=$? 4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4859 (exit $ac_status); }; }; then 4860 gt_cv_c_intmax_t=yes 4861else 4862 echo "$as_me: failed program was:" >&5 4863sed 's/^/| /' conftest.$ac_ext >&5 4864 4865gt_cv_c_intmax_t=no 4866fi 4867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4868fi 4869echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 4870echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 4871 if test $gt_cv_c_intmax_t = yes; then 4872 4873cat >>confdefs.h <<\_ACEOF 4874#define HAVE_INTMAX_T 1 4875_ACEOF 4876 4877 fi 4878 4879 4880 4881 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 4882echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 4883if test "${gt_cv_func_printf_posix+set}" = set; then 4884 echo $ECHO_N "(cached) $ECHO_C" >&6 4885else 4886 4887 if test "$cross_compiling" = yes; then 4888 4889 cat >conftest.$ac_ext <<_ACEOF 4890/* confdefs.h. */ 4891_ACEOF 4892cat confdefs.h >>conftest.$ac_ext 4893cat >>conftest.$ac_ext <<_ACEOF 4894/* end confdefs.h. */ 4895 4896#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 4897 notposix 4898#endif 4899 4900_ACEOF 4901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4902 $EGREP "notposix" >/dev/null 2>&1; then 4903 gt_cv_func_printf_posix="guessing no" 4904else 4905 gt_cv_func_printf_posix="guessing yes" 4906fi 4907rm -f conftest* 4908 4909 4910else 4911 cat >conftest.$ac_ext <<_ACEOF 4912/* confdefs.h. */ 4913_ACEOF 4914cat confdefs.h >>conftest.$ac_ext 4915cat >>conftest.$ac_ext <<_ACEOF 4916/* end confdefs.h. */ 4917 4918#include <stdio.h> 4919#include <string.h> 4920/* The string "%2$d %1$d", with dollar characters protected from the shell's 4921 dollar expansion (possibly an autoconf bug). */ 4922static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 4923static char buf[100]; 4924int main () 4925{ 4926 sprintf (buf, format, 33, 55); 4927 return (strcmp (buf, "55 33") != 0); 4928} 4929_ACEOF 4930rm -f conftest$ac_exeext 4931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4932 (eval $ac_link) 2>&5 4933 ac_status=$? 4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4937 (eval $ac_try) 2>&5 4938 ac_status=$? 4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4940 (exit $ac_status); }; }; then 4941 gt_cv_func_printf_posix=yes 4942else 4943 echo "$as_me: program exited with status $ac_status" >&5 4944echo "$as_me: failed program was:" >&5 4945sed 's/^/| /' conftest.$ac_ext >&5 4946 4947( exit $ac_status ) 4948gt_cv_func_printf_posix=no 4949fi 4950rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4951fi 4952 4953fi 4954echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 4955echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 4956 case $gt_cv_func_printf_posix in 4957 *yes) 4958 4959cat >>confdefs.h <<\_ACEOF 4960#define HAVE_POSIX_PRINTF 1 4961_ACEOF 4962 4963 ;; 4964 esac 4965 4966# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4967# for constant arguments. Useless! 4968echo "$as_me:$LINENO: checking for working alloca.h" >&5 4969echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 4970if test "${ac_cv_working_alloca_h+set}" = set; then 4971 echo $ECHO_N "(cached) $ECHO_C" >&6 4972else 4973 cat >conftest.$ac_ext <<_ACEOF 4974/* confdefs.h. */ 4975_ACEOF 4976cat confdefs.h >>conftest.$ac_ext 4977cat >>conftest.$ac_ext <<_ACEOF 4978/* end confdefs.h. */ 4979#include <alloca.h> 4980int 4981main () 4982{ 4983char *p = (char *) alloca (2 * sizeof (int)); 4984 ; 4985 return 0; 4986} 4987_ACEOF 4988rm -f conftest.$ac_objext conftest$ac_exeext 4989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4990 (eval $ac_link) 2>conftest.er1 4991 ac_status=$? 4992 grep -v '^ *+' conftest.er1 >conftest.err 4993 rm -f conftest.er1 4994 cat conftest.err >&5 4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4996 (exit $ac_status); } && 4997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4999 (eval $ac_try) 2>&5 5000 ac_status=$? 5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5002 (exit $ac_status); }; } && 5003 { ac_try='test -s conftest$ac_exeext' 5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5005 (eval $ac_try) 2>&5 5006 ac_status=$? 5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5008 (exit $ac_status); }; }; then 5009 ac_cv_working_alloca_h=yes 5010else 5011 echo "$as_me: failed program was:" >&5 5012sed 's/^/| /' conftest.$ac_ext >&5 5013 5014ac_cv_working_alloca_h=no 5015fi 5016rm -f conftest.err conftest.$ac_objext \ 5017 conftest$ac_exeext conftest.$ac_ext 5018fi 5019echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5020echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5021if test $ac_cv_working_alloca_h = yes; then 5022 5023cat >>confdefs.h <<\_ACEOF 5024#define HAVE_ALLOCA_H 1 5025_ACEOF 5026 5027fi 5028 5029echo "$as_me:$LINENO: checking for alloca" >&5 5030echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5031if test "${ac_cv_func_alloca_works+set}" = set; then 5032 echo $ECHO_N "(cached) $ECHO_C" >&6 5033else 5034 cat >conftest.$ac_ext <<_ACEOF 5035/* confdefs.h. */ 5036_ACEOF 5037cat confdefs.h >>conftest.$ac_ext 5038cat >>conftest.$ac_ext <<_ACEOF 5039/* end confdefs.h. */ 5040#ifdef __GNUC__ 5041# define alloca __builtin_alloca 5042#else 5043# ifdef _MSC_VER 5044# include <malloc.h> 5045# define alloca _alloca 5046# else 5047# if HAVE_ALLOCA_H 5048# include <alloca.h> 5049# else 5050# ifdef _AIX 5051 #pragma alloca 5052# else 5053# ifndef alloca /* predefined by HP cc +Olibcalls */ 5054char *alloca (); 5055# endif 5056# endif 5057# endif 5058# endif 5059#endif 5060 5061int 5062main () 5063{ 5064char *p = (char *) alloca (1); 5065 ; 5066 return 0; 5067} 5068_ACEOF 5069rm -f conftest.$ac_objext conftest$ac_exeext 5070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5071 (eval $ac_link) 2>conftest.er1 5072 ac_status=$? 5073 grep -v '^ *+' conftest.er1 >conftest.err 5074 rm -f conftest.er1 5075 cat conftest.err >&5 5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5077 (exit $ac_status); } && 5078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5080 (eval $ac_try) 2>&5 5081 ac_status=$? 5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5083 (exit $ac_status); }; } && 5084 { ac_try='test -s conftest$ac_exeext' 5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5086 (eval $ac_try) 2>&5 5087 ac_status=$? 5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5089 (exit $ac_status); }; }; then 5090 ac_cv_func_alloca_works=yes 5091else 5092 echo "$as_me: failed program was:" >&5 5093sed 's/^/| /' conftest.$ac_ext >&5 5094 5095ac_cv_func_alloca_works=no 5096fi 5097rm -f conftest.err conftest.$ac_objext \ 5098 conftest$ac_exeext conftest.$ac_ext 5099fi 5100echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5101echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5102 5103if test $ac_cv_func_alloca_works = yes; then 5104 5105cat >>confdefs.h <<\_ACEOF 5106#define HAVE_ALLOCA 1 5107_ACEOF 5108 5109else 5110 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5111# that cause trouble. Some versions do not even contain alloca or 5112# contain a buggy version. If you still want to use their alloca, 5113# use ar to extract alloca.o from them instead of compiling alloca.c. 5114 5115ALLOCA=alloca.$ac_objext 5116 5117cat >>confdefs.h <<\_ACEOF 5118#define C_ALLOCA 1 5119_ACEOF 5120 5121 5122echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5123echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5124if test "${ac_cv_os_cray+set}" = set; then 5125 echo $ECHO_N "(cached) $ECHO_C" >&6 5126else 5127 cat >conftest.$ac_ext <<_ACEOF 5128/* confdefs.h. */ 5129_ACEOF 5130cat confdefs.h >>conftest.$ac_ext 5131cat >>conftest.$ac_ext <<_ACEOF 5132/* end confdefs.h. */ 5133#if defined(CRAY) && ! defined(CRAY2) 5134webecray 5135#else 5136wenotbecray 5137#endif 5138 5139_ACEOF 5140if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5141 $EGREP "webecray" >/dev/null 2>&1; then 5142 ac_cv_os_cray=yes 5143else 5144 ac_cv_os_cray=no 5145fi 5146rm -f conftest* 5147 5148fi 5149echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5150echo "${ECHO_T}$ac_cv_os_cray" >&6 5151if test $ac_cv_os_cray = yes; then 5152 for ac_func in _getb67 GETB67 getb67; do 5153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5154echo "$as_me:$LINENO: checking for $ac_func" >&5 5155echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5156if eval "test \"\${$as_ac_var+set}\" = set"; then 5157 echo $ECHO_N "(cached) $ECHO_C" >&6 5158else 5159 cat >conftest.$ac_ext <<_ACEOF 5160/* confdefs.h. */ 5161_ACEOF 5162cat confdefs.h >>conftest.$ac_ext 5163cat >>conftest.$ac_ext <<_ACEOF 5164/* end confdefs.h. */ 5165/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5166 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5167#define $ac_func innocuous_$ac_func 5168 5169/* System header to define __stub macros and hopefully few prototypes, 5170 which can conflict with char $ac_func (); below. 5171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5172 <limits.h> exists even on freestanding compilers. */ 5173 5174#ifdef __STDC__ 5175# include <limits.h> 5176#else 5177# include <assert.h> 5178#endif 5179 5180#undef $ac_func 5181 5182/* Override any gcc2 internal prototype to avoid an error. */ 5183#ifdef __cplusplus 5184extern "C" 5185{ 5186#endif 5187/* We use char because int might match the return type of a gcc2 5188 builtin and then its argument prototype would still apply. */ 5189char $ac_func (); 5190/* The GNU C library defines this for functions which it implements 5191 to always fail with ENOSYS. Some functions are actually named 5192 something starting with __ and the normal name is an alias. */ 5193#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5194choke me 5195#else 5196char (*f) () = $ac_func; 5197#endif 5198#ifdef __cplusplus 5199} 5200#endif 5201 5202int 5203main () 5204{ 5205return f != $ac_func; 5206 ; 5207 return 0; 5208} 5209_ACEOF 5210rm -f conftest.$ac_objext conftest$ac_exeext 5211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5212 (eval $ac_link) 2>conftest.er1 5213 ac_status=$? 5214 grep -v '^ *+' conftest.er1 >conftest.err 5215 rm -f conftest.er1 5216 cat conftest.err >&5 5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5218 (exit $ac_status); } && 5219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5221 (eval $ac_try) 2>&5 5222 ac_status=$? 5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5224 (exit $ac_status); }; } && 5225 { ac_try='test -s conftest$ac_exeext' 5226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5227 (eval $ac_try) 2>&5 5228 ac_status=$? 5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5230 (exit $ac_status); }; }; then 5231 eval "$as_ac_var=yes" 5232else 5233 echo "$as_me: failed program was:" >&5 5234sed 's/^/| /' conftest.$ac_ext >&5 5235 5236eval "$as_ac_var=no" 5237fi 5238rm -f conftest.err conftest.$ac_objext \ 5239 conftest$ac_exeext conftest.$ac_ext 5240fi 5241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5243if test `eval echo '${'$as_ac_var'}'` = yes; then 5244 5245cat >>confdefs.h <<_ACEOF 5246#define CRAY_STACKSEG_END $ac_func 5247_ACEOF 5248 5249 break 5250fi 5251 5252 done 5253fi 5254 5255echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5256echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5257if test "${ac_cv_c_stack_direction+set}" = set; then 5258 echo $ECHO_N "(cached) $ECHO_C" >&6 5259else 5260 if test "$cross_compiling" = yes; then 5261 ac_cv_c_stack_direction=0 5262else 5263 cat >conftest.$ac_ext <<_ACEOF 5264/* confdefs.h. */ 5265_ACEOF 5266cat confdefs.h >>conftest.$ac_ext 5267cat >>conftest.$ac_ext <<_ACEOF 5268/* end confdefs.h. */ 5269int 5270find_stack_direction () 5271{ 5272 static char *addr = 0; 5273 auto char dummy; 5274 if (addr == 0) 5275 { 5276 addr = &dummy; 5277 return find_stack_direction (); 5278 } 5279 else 5280 return (&dummy > addr) ? 1 : -1; 5281} 5282 5283int 5284main () 5285{ 5286 exit (find_stack_direction () < 0); 5287} 5288_ACEOF 5289rm -f conftest$ac_exeext 5290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5291 (eval $ac_link) 2>&5 5292 ac_status=$? 5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5296 (eval $ac_try) 2>&5 5297 ac_status=$? 5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5299 (exit $ac_status); }; }; then 5300 ac_cv_c_stack_direction=1 5301else 5302 echo "$as_me: program exited with status $ac_status" >&5 5303echo "$as_me: failed program was:" >&5 5304sed 's/^/| /' conftest.$ac_ext >&5 5305 5306( exit $ac_status ) 5307ac_cv_c_stack_direction=-1 5308fi 5309rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5310fi 5311fi 5312echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5313echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5314 5315cat >>confdefs.h <<_ACEOF 5316#define STACK_DIRECTION $ac_cv_c_stack_direction 5317_ACEOF 5318 5319 5320fi 5321 5322 5323 5324for ac_header in stdlib.h unistd.h 5325do 5326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5327if eval "test \"\${$as_ac_Header+set}\" = set"; then 5328 echo "$as_me:$LINENO: checking for $ac_header" >&5 5329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5330if eval "test \"\${$as_ac_Header+set}\" = set"; then 5331 echo $ECHO_N "(cached) $ECHO_C" >&6 5332fi 5333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5335else 5336 # Is the header compilable? 5337echo "$as_me:$LINENO: checking $ac_header usability" >&5 5338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5339cat >conftest.$ac_ext <<_ACEOF 5340/* confdefs.h. */ 5341_ACEOF 5342cat confdefs.h >>conftest.$ac_ext 5343cat >>conftest.$ac_ext <<_ACEOF 5344/* end confdefs.h. */ 5345$ac_includes_default 5346#include <$ac_header> 5347_ACEOF 5348rm -f conftest.$ac_objext 5349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5350 (eval $ac_compile) 2>conftest.er1 5351 ac_status=$? 5352 grep -v '^ *+' conftest.er1 >conftest.err 5353 rm -f conftest.er1 5354 cat conftest.err >&5 5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5356 (exit $ac_status); } && 5357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5359 (eval $ac_try) 2>&5 5360 ac_status=$? 5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5362 (exit $ac_status); }; } && 5363 { ac_try='test -s conftest.$ac_objext' 5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5365 (eval $ac_try) 2>&5 5366 ac_status=$? 5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5368 (exit $ac_status); }; }; then 5369 ac_header_compiler=yes 5370else 5371 echo "$as_me: failed program was:" >&5 5372sed 's/^/| /' conftest.$ac_ext >&5 5373 5374ac_header_compiler=no 5375fi 5376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5377echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5378echo "${ECHO_T}$ac_header_compiler" >&6 5379 5380# Is the header present? 5381echo "$as_me:$LINENO: checking $ac_header presence" >&5 5382echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5383cat >conftest.$ac_ext <<_ACEOF 5384/* confdefs.h. */ 5385_ACEOF 5386cat confdefs.h >>conftest.$ac_ext 5387cat >>conftest.$ac_ext <<_ACEOF 5388/* end confdefs.h. */ 5389#include <$ac_header> 5390_ACEOF 5391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5393 ac_status=$? 5394 grep -v '^ *+' conftest.er1 >conftest.err 5395 rm -f conftest.er1 5396 cat conftest.err >&5 5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5398 (exit $ac_status); } >/dev/null; then 5399 if test -s conftest.err; then 5400 ac_cpp_err=$ac_c_preproc_warn_flag 5401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5402 else 5403 ac_cpp_err= 5404 fi 5405else 5406 ac_cpp_err=yes 5407fi 5408if test -z "$ac_cpp_err"; then 5409 ac_header_preproc=yes 5410else 5411 echo "$as_me: failed program was:" >&5 5412sed 's/^/| /' conftest.$ac_ext >&5 5413 5414 ac_header_preproc=no 5415fi 5416rm -f conftest.err conftest.$ac_ext 5417echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5418echo "${ECHO_T}$ac_header_preproc" >&6 5419 5420# So? What about this header? 5421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5422 yes:no: ) 5423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5424echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5426echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5427 ac_header_preproc=yes 5428 ;; 5429 no:yes:* ) 5430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5433echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5435echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5437echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5441echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5442 ( 5443 cat <<\_ASBOX 5444## ------------------------------------------ ## 5445## Report this to the AC_PACKAGE_NAME lists. ## 5446## ------------------------------------------ ## 5447_ASBOX 5448 ) | 5449 sed "s/^/$as_me: WARNING: /" >&2 5450 ;; 5451esac 5452echo "$as_me:$LINENO: checking for $ac_header" >&5 5453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5454if eval "test \"\${$as_ac_Header+set}\" = set"; then 5455 echo $ECHO_N "(cached) $ECHO_C" >&6 5456else 5457 eval "$as_ac_Header=\$ac_header_preproc" 5458fi 5459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5461 5462fi 5463if test `eval echo '${'$as_ac_Header'}'` = yes; then 5464 cat >>confdefs.h <<_ACEOF 5465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5466_ACEOF 5467 5468fi 5469 5470done 5471 5472 5473for ac_func in getpagesize 5474do 5475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5476echo "$as_me:$LINENO: checking for $ac_func" >&5 5477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5478if eval "test \"\${$as_ac_var+set}\" = set"; then 5479 echo $ECHO_N "(cached) $ECHO_C" >&6 5480else 5481 cat >conftest.$ac_ext <<_ACEOF 5482/* confdefs.h. */ 5483_ACEOF 5484cat confdefs.h >>conftest.$ac_ext 5485cat >>conftest.$ac_ext <<_ACEOF 5486/* end confdefs.h. */ 5487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5488 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5489#define $ac_func innocuous_$ac_func 5490 5491/* System header to define __stub macros and hopefully few prototypes, 5492 which can conflict with char $ac_func (); below. 5493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5494 <limits.h> exists even on freestanding compilers. */ 5495 5496#ifdef __STDC__ 5497# include <limits.h> 5498#else 5499# include <assert.h> 5500#endif 5501 5502#undef $ac_func 5503 5504/* Override any gcc2 internal prototype to avoid an error. */ 5505#ifdef __cplusplus 5506extern "C" 5507{ 5508#endif 5509/* We use char because int might match the return type of a gcc2 5510 builtin and then its argument prototype would still apply. */ 5511char $ac_func (); 5512/* The GNU C library defines this for functions which it implements 5513 to always fail with ENOSYS. Some functions are actually named 5514 something starting with __ and the normal name is an alias. */ 5515#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5516choke me 5517#else 5518char (*f) () = $ac_func; 5519#endif 5520#ifdef __cplusplus 5521} 5522#endif 5523 5524int 5525main () 5526{ 5527return f != $ac_func; 5528 ; 5529 return 0; 5530} 5531_ACEOF 5532rm -f conftest.$ac_objext conftest$ac_exeext 5533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5534 (eval $ac_link) 2>conftest.er1 5535 ac_status=$? 5536 grep -v '^ *+' conftest.er1 >conftest.err 5537 rm -f conftest.er1 5538 cat conftest.err >&5 5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5540 (exit $ac_status); } && 5541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5543 (eval $ac_try) 2>&5 5544 ac_status=$? 5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5546 (exit $ac_status); }; } && 5547 { ac_try='test -s conftest$ac_exeext' 5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5549 (eval $ac_try) 2>&5 5550 ac_status=$? 5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5552 (exit $ac_status); }; }; then 5553 eval "$as_ac_var=yes" 5554else 5555 echo "$as_me: failed program was:" >&5 5556sed 's/^/| /' conftest.$ac_ext >&5 5557 5558eval "$as_ac_var=no" 5559fi 5560rm -f conftest.err conftest.$ac_objext \ 5561 conftest$ac_exeext conftest.$ac_ext 5562fi 5563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5564echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5565if test `eval echo '${'$as_ac_var'}'` = yes; then 5566 cat >>confdefs.h <<_ACEOF 5567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5568_ACEOF 5569 5570fi 5571done 5572 5573echo "$as_me:$LINENO: checking for working mmap" >&5 5574echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 5575if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 5576 echo $ECHO_N "(cached) $ECHO_C" >&6 5577else 5578 if test "$cross_compiling" = yes; then 5579 ac_cv_func_mmap_fixed_mapped=no 5580else 5581 cat >conftest.$ac_ext <<_ACEOF 5582/* confdefs.h. */ 5583_ACEOF 5584cat confdefs.h >>conftest.$ac_ext 5585cat >>conftest.$ac_ext <<_ACEOF 5586/* end confdefs.h. */ 5587$ac_includes_default 5588/* malloc might have been renamed as rpl_malloc. */ 5589#undef malloc 5590 5591/* Thanks to Mike Haertel and Jim Avera for this test. 5592 Here is a matrix of mmap possibilities: 5593 mmap private not fixed 5594 mmap private fixed at somewhere currently unmapped 5595 mmap private fixed at somewhere already mapped 5596 mmap shared not fixed 5597 mmap shared fixed at somewhere currently unmapped 5598 mmap shared fixed at somewhere already mapped 5599 For private mappings, we should verify that changes cannot be read() 5600 back from the file, nor mmap's back from the file at a different 5601 address. (There have been systems where private was not correctly 5602 implemented like the infamous i386 svr4.0, and systems where the 5603 VM page cache was not coherent with the file system buffer cache 5604 like early versions of FreeBSD and possibly contemporary NetBSD.) 5605 For shared mappings, we should conversely verify that changes get 5606 propagated back to all the places they're supposed to be. 5607 5608 Grep wants private fixed already mapped. 5609 The main things grep needs to know about mmap are: 5610 * does it exist and is it safe to write into the mmap'd area 5611 * how to use it (BSD variants) */ 5612 5613#include <fcntl.h> 5614#include <sys/mman.h> 5615 5616#if !STDC_HEADERS && !HAVE_STDLIB_H 5617char *malloc (); 5618#endif 5619 5620/* This mess was copied from the GNU getpagesize.h. */ 5621#if !HAVE_GETPAGESIZE 5622/* Assume that all systems that can run configure have sys/param.h. */ 5623# if !HAVE_SYS_PARAM_H 5624# define HAVE_SYS_PARAM_H 1 5625# endif 5626 5627# ifdef _SC_PAGESIZE 5628# define getpagesize() sysconf(_SC_PAGESIZE) 5629# else /* no _SC_PAGESIZE */ 5630# if HAVE_SYS_PARAM_H 5631# include <sys/param.h> 5632# ifdef EXEC_PAGESIZE 5633# define getpagesize() EXEC_PAGESIZE 5634# else /* no EXEC_PAGESIZE */ 5635# ifdef NBPG 5636# define getpagesize() NBPG * CLSIZE 5637# ifndef CLSIZE 5638# define CLSIZE 1 5639# endif /* no CLSIZE */ 5640# else /* no NBPG */ 5641# ifdef NBPC 5642# define getpagesize() NBPC 5643# else /* no NBPC */ 5644# ifdef PAGESIZE 5645# define getpagesize() PAGESIZE 5646# endif /* PAGESIZE */ 5647# endif /* no NBPC */ 5648# endif /* no NBPG */ 5649# endif /* no EXEC_PAGESIZE */ 5650# else /* no HAVE_SYS_PARAM_H */ 5651# define getpagesize() 8192 /* punt totally */ 5652# endif /* no HAVE_SYS_PARAM_H */ 5653# endif /* no _SC_PAGESIZE */ 5654 5655#endif /* no HAVE_GETPAGESIZE */ 5656 5657int 5658main () 5659{ 5660 char *data, *data2, *data3; 5661 int i, pagesize; 5662 int fd; 5663 5664 pagesize = getpagesize (); 5665 5666 /* First, make a file with some known garbage in it. */ 5667 data = (char *) malloc (pagesize); 5668 if (!data) 5669 exit (1); 5670 for (i = 0; i < pagesize; ++i) 5671 *(data + i) = rand (); 5672 umask (0); 5673 fd = creat ("conftest.mmap", 0600); 5674 if (fd < 0) 5675 exit (1); 5676 if (write (fd, data, pagesize) != pagesize) 5677 exit (1); 5678 close (fd); 5679 5680 /* Next, try to mmap the file at a fixed address which already has 5681 something else allocated at it. If we can, also make sure that 5682 we see the same garbage. */ 5683 fd = open ("conftest.mmap", O_RDWR); 5684 if (fd < 0) 5685 exit (1); 5686 data2 = (char *) malloc (2 * pagesize); 5687 if (!data2) 5688 exit (1); 5689 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 5690 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5691 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5692 exit (1); 5693 for (i = 0; i < pagesize; ++i) 5694 if (*(data + i) != *(data2 + i)) 5695 exit (1); 5696 5697 /* Finally, make sure that changes to the mapped area do not 5698 percolate back to the file as seen by read(). (This is a bug on 5699 some variants of i386 svr4.0.) */ 5700 for (i = 0; i < pagesize; ++i) 5701 *(data2 + i) = *(data2 + i) + 1; 5702 data3 = (char *) malloc (pagesize); 5703 if (!data3) 5704 exit (1); 5705 if (read (fd, data3, pagesize) != pagesize) 5706 exit (1); 5707 for (i = 0; i < pagesize; ++i) 5708 if (*(data + i) != *(data3 + i)) 5709 exit (1); 5710 close (fd); 5711 exit (0); 5712} 5713_ACEOF 5714rm -f conftest$ac_exeext 5715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5716 (eval $ac_link) 2>&5 5717 ac_status=$? 5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5721 (eval $ac_try) 2>&5 5722 ac_status=$? 5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5724 (exit $ac_status); }; }; then 5725 ac_cv_func_mmap_fixed_mapped=yes 5726else 5727 echo "$as_me: program exited with status $ac_status" >&5 5728echo "$as_me: failed program was:" >&5 5729sed 's/^/| /' conftest.$ac_ext >&5 5730 5731( exit $ac_status ) 5732ac_cv_func_mmap_fixed_mapped=no 5733fi 5734rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5735fi 5736fi 5737echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 5738echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 5739if test $ac_cv_func_mmap_fixed_mapped = yes; then 5740 5741cat >>confdefs.h <<\_ACEOF 5742#define HAVE_MMAP 1 5743_ACEOF 5744 5745fi 5746rm -f conftest.mmap 5747 5748 5749 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 5750echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 5751if test "${ac_cv_gnu_library_2_1+set}" = set; then 5752 echo $ECHO_N "(cached) $ECHO_C" >&6 5753else 5754 cat >conftest.$ac_ext <<_ACEOF 5755/* confdefs.h. */ 5756_ACEOF 5757cat confdefs.h >>conftest.$ac_ext 5758cat >>conftest.$ac_ext <<_ACEOF 5759/* end confdefs.h. */ 5760 5761#include <features.h> 5762#ifdef __GNU_LIBRARY__ 5763 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 5764 Lucky GNU user 5765 #endif 5766#endif 5767 5768_ACEOF 5769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5770 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 5771 ac_cv_gnu_library_2_1=yes 5772else 5773 ac_cv_gnu_library_2_1=no 5774fi 5775rm -f conftest* 5776 5777 5778 5779fi 5780echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 5781echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 5782 5783 GLIBC21="$ac_cv_gnu_library_2_1" 5784 5785 5786 5787 5788 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 5789echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 5790if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 5791 echo $ECHO_N "(cached) $ECHO_C" >&6 5792else 5793 5794 if test "$cross_compiling" = yes; then 5795 5796 # Guess based on the CPU. 5797 case "$host_cpu" in 5798 alpha* | i3456786 | m68k | s390*) 5799 gt_cv_int_divbyzero_sigfpe="guessing yes";; 5800 *) 5801 gt_cv_int_divbyzero_sigfpe="guessing no";; 5802 esac 5803 5804else 5805 cat >conftest.$ac_ext <<_ACEOF 5806/* confdefs.h. */ 5807_ACEOF 5808cat confdefs.h >>conftest.$ac_ext 5809cat >>conftest.$ac_ext <<_ACEOF 5810/* end confdefs.h. */ 5811 5812#include <stdlib.h> 5813#include <signal.h> 5814 5815static void 5816#ifdef __cplusplus 5817sigfpe_handler (int sig) 5818#else 5819sigfpe_handler (sig) int sig; 5820#endif 5821{ 5822 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 5823 exit (sig != SIGFPE); 5824} 5825 5826int x = 1; 5827int y = 0; 5828int z; 5829int nan; 5830 5831int main () 5832{ 5833 signal (SIGFPE, sigfpe_handler); 5834/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 5835#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 5836 signal (SIGTRAP, sigfpe_handler); 5837#endif 5838/* Linux/SPARC yields signal SIGILL. */ 5839#if defined (__sparc__) && defined (__linux__) 5840 signal (SIGILL, sigfpe_handler); 5841#endif 5842 5843 z = x / y; 5844 nan = y / y; 5845 exit (1); 5846} 5847 5848_ACEOF 5849rm -f conftest$ac_exeext 5850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5851 (eval $ac_link) 2>&5 5852 ac_status=$? 5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5856 (eval $ac_try) 2>&5 5857 ac_status=$? 5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5859 (exit $ac_status); }; }; then 5860 gt_cv_int_divbyzero_sigfpe=yes 5861else 5862 echo "$as_me: program exited with status $ac_status" >&5 5863echo "$as_me: failed program was:" >&5 5864sed 's/^/| /' conftest.$ac_ext >&5 5865 5866( exit $ac_status ) 5867gt_cv_int_divbyzero_sigfpe=no 5868fi 5869rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5870fi 5871 5872fi 5873echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 5874echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 5875 case "$gt_cv_int_divbyzero_sigfpe" in 5876 *yes) value=1;; 5877 *) value=0;; 5878 esac 5879 5880cat >>confdefs.h <<_ACEOF 5881#define INTDIV0_RAISES_SIGFPE $value 5882_ACEOF 5883 5884 5885 5886 echo "$as_me:$LINENO: checking for unsigned long long" >&5 5887echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 5888if test "${ac_cv_type_unsigned_long_long+set}" = set; then 5889 echo $ECHO_N "(cached) $ECHO_C" >&6 5890else 5891 cat >conftest.$ac_ext <<_ACEOF 5892/* confdefs.h. */ 5893_ACEOF 5894cat confdefs.h >>conftest.$ac_ext 5895cat >>conftest.$ac_ext <<_ACEOF 5896/* end confdefs.h. */ 5897unsigned long long ull = 1ULL; int i = 63; 5898int 5899main () 5900{ 5901unsigned long long ullmax = (unsigned long long) -1; 5902 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 5903 ; 5904 return 0; 5905} 5906_ACEOF 5907rm -f conftest.$ac_objext conftest$ac_exeext 5908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5909 (eval $ac_link) 2>conftest.er1 5910 ac_status=$? 5911 grep -v '^ *+' conftest.er1 >conftest.err 5912 rm -f conftest.er1 5913 cat conftest.err >&5 5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5915 (exit $ac_status); } && 5916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5918 (eval $ac_try) 2>&5 5919 ac_status=$? 5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5921 (exit $ac_status); }; } && 5922 { ac_try='test -s conftest$ac_exeext' 5923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5924 (eval $ac_try) 2>&5 5925 ac_status=$? 5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5927 (exit $ac_status); }; }; then 5928 ac_cv_type_unsigned_long_long=yes 5929else 5930 echo "$as_me: failed program was:" >&5 5931sed 's/^/| /' conftest.$ac_ext >&5 5932 5933ac_cv_type_unsigned_long_long=no 5934fi 5935rm -f conftest.err conftest.$ac_objext \ 5936 conftest$ac_exeext conftest.$ac_ext 5937fi 5938echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 5939echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 5940 if test $ac_cv_type_unsigned_long_long = yes; then 5941 5942cat >>confdefs.h <<\_ACEOF 5943#define HAVE_UNSIGNED_LONG_LONG 1 5944_ACEOF 5945 5946 fi 5947 5948 5949 5950 5951 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 5952 5953 test $ac_cv_type_unsigned_long_long = yes \ 5954 && ac_type='unsigned long long' \ 5955 || ac_type='unsigned long' 5956 5957cat >>confdefs.h <<_ACEOF 5958#define uintmax_t $ac_type 5959_ACEOF 5960 5961 else 5962 5963cat >>confdefs.h <<\_ACEOF 5964#define HAVE_UINTMAX_T 1 5965_ACEOF 5966 5967 fi 5968 5969 5970 echo "$as_me:$LINENO: checking for inttypes.h" >&5 5971echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 5972if test "${gt_cv_header_inttypes_h+set}" = set; then 5973 echo $ECHO_N "(cached) $ECHO_C" >&6 5974else 5975 5976 cat >conftest.$ac_ext <<_ACEOF 5977/* confdefs.h. */ 5978_ACEOF 5979cat confdefs.h >>conftest.$ac_ext 5980cat >>conftest.$ac_ext <<_ACEOF 5981/* end confdefs.h. */ 5982#include <sys/types.h> 5983#include <inttypes.h> 5984int 5985main () 5986{ 5987 5988 ; 5989 return 0; 5990} 5991_ACEOF 5992rm -f conftest.$ac_objext 5993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5994 (eval $ac_compile) 2>conftest.er1 5995 ac_status=$? 5996 grep -v '^ *+' conftest.er1 >conftest.err 5997 rm -f conftest.er1 5998 cat conftest.err >&5 5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6000 (exit $ac_status); } && 6001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6003 (eval $ac_try) 2>&5 6004 ac_status=$? 6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6006 (exit $ac_status); }; } && 6007 { ac_try='test -s conftest.$ac_objext' 6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6009 (eval $ac_try) 2>&5 6010 ac_status=$? 6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6012 (exit $ac_status); }; }; then 6013 gt_cv_header_inttypes_h=yes 6014else 6015 echo "$as_me: failed program was:" >&5 6016sed 's/^/| /' conftest.$ac_ext >&5 6017 6018gt_cv_header_inttypes_h=no 6019fi 6020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6021 6022fi 6023echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 6024echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 6025 if test $gt_cv_header_inttypes_h = yes; then 6026 6027cat >>confdefs.h <<_ACEOF 6028#define HAVE_INTTYPES_H 1 6029_ACEOF 6030 6031 fi 6032 6033 6034 6035 if test $gt_cv_header_inttypes_h = yes; then 6036 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 6037echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 6038if test "${gt_cv_inttypes_pri_broken+set}" = set; then 6039 echo $ECHO_N "(cached) $ECHO_C" >&6 6040else 6041 6042 cat >conftest.$ac_ext <<_ACEOF 6043/* confdefs.h. */ 6044_ACEOF 6045cat confdefs.h >>conftest.$ac_ext 6046cat >>conftest.$ac_ext <<_ACEOF 6047/* end confdefs.h. */ 6048#include <inttypes.h> 6049#ifdef PRId32 6050char *p = PRId32; 6051#endif 6052 6053int 6054main () 6055{ 6056 6057 ; 6058 return 0; 6059} 6060_ACEOF 6061rm -f conftest.$ac_objext 6062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6063 (eval $ac_compile) 2>conftest.er1 6064 ac_status=$? 6065 grep -v '^ *+' conftest.er1 >conftest.err 6066 rm -f conftest.er1 6067 cat conftest.err >&5 6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6069 (exit $ac_status); } && 6070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6072 (eval $ac_try) 2>&5 6073 ac_status=$? 6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6075 (exit $ac_status); }; } && 6076 { ac_try='test -s conftest.$ac_objext' 6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6078 (eval $ac_try) 2>&5 6079 ac_status=$? 6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6081 (exit $ac_status); }; }; then 6082 gt_cv_inttypes_pri_broken=no 6083else 6084 echo "$as_me: failed program was:" >&5 6085sed 's/^/| /' conftest.$ac_ext >&5 6086 6087gt_cv_inttypes_pri_broken=yes 6088fi 6089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6090 6091fi 6092echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 6093echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 6094 fi 6095 if test "$gt_cv_inttypes_pri_broken" = yes; then 6096 6097cat >>confdefs.h <<_ACEOF 6098#define PRI_MACROS_BROKEN 1 6099_ACEOF 6100 6101 fi 6102 6103 6104 6105for ac_header in stdint.h 6106do 6107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6108if eval "test \"\${$as_ac_Header+set}\" = set"; then 6109 echo "$as_me:$LINENO: checking for $ac_header" >&5 6110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6111if eval "test \"\${$as_ac_Header+set}\" = set"; then 6112 echo $ECHO_N "(cached) $ECHO_C" >&6 6113fi 6114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6116else 6117 # Is the header compilable? 6118echo "$as_me:$LINENO: checking $ac_header usability" >&5 6119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6120cat >conftest.$ac_ext <<_ACEOF 6121/* confdefs.h. */ 6122_ACEOF 6123cat confdefs.h >>conftest.$ac_ext 6124cat >>conftest.$ac_ext <<_ACEOF 6125/* end confdefs.h. */ 6126$ac_includes_default 6127#include <$ac_header> 6128_ACEOF 6129rm -f conftest.$ac_objext 6130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6131 (eval $ac_compile) 2>conftest.er1 6132 ac_status=$? 6133 grep -v '^ *+' conftest.er1 >conftest.err 6134 rm -f conftest.er1 6135 cat conftest.err >&5 6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6137 (exit $ac_status); } && 6138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6140 (eval $ac_try) 2>&5 6141 ac_status=$? 6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6143 (exit $ac_status); }; } && 6144 { ac_try='test -s conftest.$ac_objext' 6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6146 (eval $ac_try) 2>&5 6147 ac_status=$? 6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6149 (exit $ac_status); }; }; then 6150 ac_header_compiler=yes 6151else 6152 echo "$as_me: failed program was:" >&5 6153sed 's/^/| /' conftest.$ac_ext >&5 6154 6155ac_header_compiler=no 6156fi 6157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6158echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6159echo "${ECHO_T}$ac_header_compiler" >&6 6160 6161# Is the header present? 6162echo "$as_me:$LINENO: checking $ac_header presence" >&5 6163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6164cat >conftest.$ac_ext <<_ACEOF 6165/* confdefs.h. */ 6166_ACEOF 6167cat confdefs.h >>conftest.$ac_ext 6168cat >>conftest.$ac_ext <<_ACEOF 6169/* end confdefs.h. */ 6170#include <$ac_header> 6171_ACEOF 6172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6174 ac_status=$? 6175 grep -v '^ *+' conftest.er1 >conftest.err 6176 rm -f conftest.er1 6177 cat conftest.err >&5 6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6179 (exit $ac_status); } >/dev/null; then 6180 if test -s conftest.err; then 6181 ac_cpp_err=$ac_c_preproc_warn_flag 6182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6183 else 6184 ac_cpp_err= 6185 fi 6186else 6187 ac_cpp_err=yes 6188fi 6189if test -z "$ac_cpp_err"; then 6190 ac_header_preproc=yes 6191else 6192 echo "$as_me: failed program was:" >&5 6193sed 's/^/| /' conftest.$ac_ext >&5 6194 6195 ac_header_preproc=no 6196fi 6197rm -f conftest.err conftest.$ac_ext 6198echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6199echo "${ECHO_T}$ac_header_preproc" >&6 6200 6201# So? What about this header? 6202case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6203 yes:no: ) 6204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6205echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6207echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6208 ac_header_preproc=yes 6209 ;; 6210 no:yes:* ) 6211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6216echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6218echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6222echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6223 ( 6224 cat <<\_ASBOX 6225## ------------------------------------------ ## 6226## Report this to the AC_PACKAGE_NAME lists. ## 6227## ------------------------------------------ ## 6228_ASBOX 6229 ) | 6230 sed "s/^/$as_me: WARNING: /" >&2 6231 ;; 6232esac 6233echo "$as_me:$LINENO: checking for $ac_header" >&5 6234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6235if eval "test \"\${$as_ac_Header+set}\" = set"; then 6236 echo $ECHO_N "(cached) $ECHO_C" >&6 6237else 6238 eval "$as_ac_Header=\$ac_header_preproc" 6239fi 6240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6242 6243fi 6244if test `eval echo '${'$as_ac_Header'}'` = yes; then 6245 cat >>confdefs.h <<_ACEOF 6246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6247_ACEOF 6248 6249fi 6250 6251done 6252 6253 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 6254echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 6255 result= 6256 cat >conftest.$ac_ext <<_ACEOF 6257/* confdefs.h. */ 6258_ACEOF 6259cat confdefs.h >>conftest.$ac_ext 6260cat >>conftest.$ac_ext <<_ACEOF 6261/* end confdefs.h. */ 6262 6263#include <limits.h> 6264#if HAVE_STDINT_H 6265#include <stdint.h> 6266#endif 6267#ifdef SIZE_MAX 6268Found it 6269#endif 6270 6271_ACEOF 6272if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6273 $EGREP "Found it" >/dev/null 2>&1; then 6274 result=yes 6275fi 6276rm -f conftest* 6277 6278 if test -z "$result"; then 6279 if test "$cross_compiling" = yes; then 6280 # Depending upon the size, compute the lo and hi bounds. 6281cat >conftest.$ac_ext <<_ACEOF 6282/* confdefs.h. */ 6283_ACEOF 6284cat confdefs.h >>conftest.$ac_ext 6285cat >>conftest.$ac_ext <<_ACEOF 6286/* end confdefs.h. */ 6287#include <stddef.h> 6288int 6289main () 6290{ 6291static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; 6292test_array [0] = 0 6293 6294 ; 6295 return 0; 6296} 6297_ACEOF 6298rm -f conftest.$ac_objext 6299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6300 (eval $ac_compile) 2>conftest.er1 6301 ac_status=$? 6302 grep -v '^ *+' conftest.er1 >conftest.err 6303 rm -f conftest.er1 6304 cat conftest.err >&5 6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6306 (exit $ac_status); } && 6307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6309 (eval $ac_try) 2>&5 6310 ac_status=$? 6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6312 (exit $ac_status); }; } && 6313 { ac_try='test -s conftest.$ac_objext' 6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6315 (eval $ac_try) 2>&5 6316 ac_status=$? 6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6318 (exit $ac_status); }; }; then 6319 ac_lo=0 ac_mid=0 6320 while :; do 6321 cat >conftest.$ac_ext <<_ACEOF 6322/* confdefs.h. */ 6323_ACEOF 6324cat confdefs.h >>conftest.$ac_ext 6325cat >>conftest.$ac_ext <<_ACEOF 6326/* end confdefs.h. */ 6327#include <stddef.h> 6328int 6329main () 6330{ 6331static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 6332test_array [0] = 0 6333 6334 ; 6335 return 0; 6336} 6337_ACEOF 6338rm -f conftest.$ac_objext 6339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6340 (eval $ac_compile) 2>conftest.er1 6341 ac_status=$? 6342 grep -v '^ *+' conftest.er1 >conftest.err 6343 rm -f conftest.er1 6344 cat conftest.err >&5 6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6346 (exit $ac_status); } && 6347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6349 (eval $ac_try) 2>&5 6350 ac_status=$? 6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6352 (exit $ac_status); }; } && 6353 { ac_try='test -s conftest.$ac_objext' 6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6355 (eval $ac_try) 2>&5 6356 ac_status=$? 6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6358 (exit $ac_status); }; }; then 6359 ac_hi=$ac_mid; break 6360else 6361 echo "$as_me: failed program was:" >&5 6362sed 's/^/| /' conftest.$ac_ext >&5 6363 6364ac_lo=`expr $ac_mid + 1` 6365 if test $ac_lo -le $ac_mid; then 6366 ac_lo= ac_hi= 6367 break 6368 fi 6369 ac_mid=`expr 2 '*' $ac_mid + 1` 6370fi 6371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6372 done 6373else 6374 echo "$as_me: failed program was:" >&5 6375sed 's/^/| /' conftest.$ac_ext >&5 6376 6377cat >conftest.$ac_ext <<_ACEOF 6378/* confdefs.h. */ 6379_ACEOF 6380cat confdefs.h >>conftest.$ac_ext 6381cat >>conftest.$ac_ext <<_ACEOF 6382/* end confdefs.h. */ 6383#include <stddef.h> 6384int 6385main () 6386{ 6387static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; 6388test_array [0] = 0 6389 6390 ; 6391 return 0; 6392} 6393_ACEOF 6394rm -f conftest.$ac_objext 6395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6396 (eval $ac_compile) 2>conftest.er1 6397 ac_status=$? 6398 grep -v '^ *+' conftest.er1 >conftest.err 6399 rm -f conftest.er1 6400 cat conftest.err >&5 6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6402 (exit $ac_status); } && 6403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6405 (eval $ac_try) 2>&5 6406 ac_status=$? 6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6408 (exit $ac_status); }; } && 6409 { ac_try='test -s conftest.$ac_objext' 6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6411 (eval $ac_try) 2>&5 6412 ac_status=$? 6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6414 (exit $ac_status); }; }; then 6415 ac_hi=-1 ac_mid=-1 6416 while :; do 6417 cat >conftest.$ac_ext <<_ACEOF 6418/* confdefs.h. */ 6419_ACEOF 6420cat confdefs.h >>conftest.$ac_ext 6421cat >>conftest.$ac_ext <<_ACEOF 6422/* end confdefs.h. */ 6423#include <stddef.h> 6424int 6425main () 6426{ 6427static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; 6428test_array [0] = 0 6429 6430 ; 6431 return 0; 6432} 6433_ACEOF 6434rm -f conftest.$ac_objext 6435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6436 (eval $ac_compile) 2>conftest.er1 6437 ac_status=$? 6438 grep -v '^ *+' conftest.er1 >conftest.err 6439 rm -f conftest.er1 6440 cat conftest.err >&5 6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6442 (exit $ac_status); } && 6443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6445 (eval $ac_try) 2>&5 6446 ac_status=$? 6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6448 (exit $ac_status); }; } && 6449 { ac_try='test -s conftest.$ac_objext' 6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6451 (eval $ac_try) 2>&5 6452 ac_status=$? 6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6454 (exit $ac_status); }; }; then 6455 ac_lo=$ac_mid; break 6456else 6457 echo "$as_me: failed program was:" >&5 6458sed 's/^/| /' conftest.$ac_ext >&5 6459 6460ac_hi=`expr '(' $ac_mid ')' - 1` 6461 if test $ac_mid -le $ac_hi; then 6462 ac_lo= ac_hi= 6463 break 6464 fi 6465 ac_mid=`expr 2 '*' $ac_mid` 6466fi 6467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6468 done 6469else 6470 echo "$as_me: failed program was:" >&5 6471sed 's/^/| /' conftest.$ac_ext >&5 6472 6473ac_lo= ac_hi= 6474fi 6475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6476fi 6477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6478# Binary search between lo and hi bounds. 6479while test "x$ac_lo" != "x$ac_hi"; do 6480 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6481 cat >conftest.$ac_ext <<_ACEOF 6482/* confdefs.h. */ 6483_ACEOF 6484cat confdefs.h >>conftest.$ac_ext 6485cat >>conftest.$ac_ext <<_ACEOF 6486/* end confdefs.h. */ 6487#include <stddef.h> 6488int 6489main () 6490{ 6491static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 6492test_array [0] = 0 6493 6494 ; 6495 return 0; 6496} 6497_ACEOF 6498rm -f conftest.$ac_objext 6499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6500 (eval $ac_compile) 2>conftest.er1 6501 ac_status=$? 6502 grep -v '^ *+' conftest.er1 >conftest.err 6503 rm -f conftest.er1 6504 cat conftest.err >&5 6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6506 (exit $ac_status); } && 6507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6509 (eval $ac_try) 2>&5 6510 ac_status=$? 6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6512 (exit $ac_status); }; } && 6513 { ac_try='test -s conftest.$ac_objext' 6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6515 (eval $ac_try) 2>&5 6516 ac_status=$? 6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6518 (exit $ac_status); }; }; then 6519 ac_hi=$ac_mid 6520else 6521 echo "$as_me: failed program was:" >&5 6522sed 's/^/| /' conftest.$ac_ext >&5 6523 6524ac_lo=`expr '(' $ac_mid ')' + 1` 6525fi 6526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6527done 6528case $ac_lo in 6529?*) res_hi=$ac_lo;; 6530'') result=? ;; 6531esac 6532else 6533 if test "$cross_compiling" = yes; then 6534 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 6535echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 6536 { (exit 1); exit 1; }; } 6537else 6538 cat >conftest.$ac_ext <<_ACEOF 6539/* confdefs.h. */ 6540_ACEOF 6541cat confdefs.h >>conftest.$ac_ext 6542cat >>conftest.$ac_ext <<_ACEOF 6543/* end confdefs.h. */ 6544#include <stddef.h> 6545long longval () { return ~(size_t)0 / 10; } 6546unsigned long ulongval () { return ~(size_t)0 / 10; } 6547#include <stdio.h> 6548#include <stdlib.h> 6549int 6550main () 6551{ 6552 6553 FILE *f = fopen ("conftest.val", "w"); 6554 if (! f) 6555 exit (1); 6556 if ((~(size_t)0 / 10) < 0) 6557 { 6558 long i = longval (); 6559 if (i != (~(size_t)0 / 10)) 6560 exit (1); 6561 fprintf (f, "%ld\n", i); 6562 } 6563 else 6564 { 6565 unsigned long i = ulongval (); 6566 if (i != (~(size_t)0 / 10)) 6567 exit (1); 6568 fprintf (f, "%lu\n", i); 6569 } 6570 exit (ferror (f) || fclose (f) != 0); 6571 6572 ; 6573 return 0; 6574} 6575_ACEOF 6576rm -f conftest$ac_exeext 6577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6578 (eval $ac_link) 2>&5 6579 ac_status=$? 6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6583 (eval $ac_try) 2>&5 6584 ac_status=$? 6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6586 (exit $ac_status); }; }; then 6587 res_hi=`cat conftest.val` 6588else 6589 echo "$as_me: program exited with status $ac_status" >&5 6590echo "$as_me: failed program was:" >&5 6591sed 's/^/| /' conftest.$ac_ext >&5 6592 6593( exit $ac_status ) 6594result=? 6595fi 6596rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6597fi 6598fi 6599rm -f conftest.val 6600 if test "$cross_compiling" = yes; then 6601 # Depending upon the size, compute the lo and hi bounds. 6602cat >conftest.$ac_ext <<_ACEOF 6603/* confdefs.h. */ 6604_ACEOF 6605cat confdefs.h >>conftest.$ac_ext 6606cat >>conftest.$ac_ext <<_ACEOF 6607/* end confdefs.h. */ 6608#include <stddef.h> 6609int 6610main () 6611{ 6612static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; 6613test_array [0] = 0 6614 6615 ; 6616 return 0; 6617} 6618_ACEOF 6619rm -f conftest.$ac_objext 6620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6621 (eval $ac_compile) 2>conftest.er1 6622 ac_status=$? 6623 grep -v '^ *+' conftest.er1 >conftest.err 6624 rm -f conftest.er1 6625 cat conftest.err >&5 6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6627 (exit $ac_status); } && 6628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6630 (eval $ac_try) 2>&5 6631 ac_status=$? 6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6633 (exit $ac_status); }; } && 6634 { ac_try='test -s conftest.$ac_objext' 6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6636 (eval $ac_try) 2>&5 6637 ac_status=$? 6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6639 (exit $ac_status); }; }; then 6640 ac_lo=0 ac_mid=0 6641 while :; do 6642 cat >conftest.$ac_ext <<_ACEOF 6643/* confdefs.h. */ 6644_ACEOF 6645cat confdefs.h >>conftest.$ac_ext 6646cat >>conftest.$ac_ext <<_ACEOF 6647/* end confdefs.h. */ 6648#include <stddef.h> 6649int 6650main () 6651{ 6652static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 6653test_array [0] = 0 6654 6655 ; 6656 return 0; 6657} 6658_ACEOF 6659rm -f conftest.$ac_objext 6660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6661 (eval $ac_compile) 2>conftest.er1 6662 ac_status=$? 6663 grep -v '^ *+' conftest.er1 >conftest.err 6664 rm -f conftest.er1 6665 cat conftest.err >&5 6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6667 (exit $ac_status); } && 6668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6670 (eval $ac_try) 2>&5 6671 ac_status=$? 6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6673 (exit $ac_status); }; } && 6674 { ac_try='test -s conftest.$ac_objext' 6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6676 (eval $ac_try) 2>&5 6677 ac_status=$? 6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6679 (exit $ac_status); }; }; then 6680 ac_hi=$ac_mid; break 6681else 6682 echo "$as_me: failed program was:" >&5 6683sed 's/^/| /' conftest.$ac_ext >&5 6684 6685ac_lo=`expr $ac_mid + 1` 6686 if test $ac_lo -le $ac_mid; then 6687 ac_lo= ac_hi= 6688 break 6689 fi 6690 ac_mid=`expr 2 '*' $ac_mid + 1` 6691fi 6692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6693 done 6694else 6695 echo "$as_me: failed program was:" >&5 6696sed 's/^/| /' conftest.$ac_ext >&5 6697 6698cat >conftest.$ac_ext <<_ACEOF 6699/* confdefs.h. */ 6700_ACEOF 6701cat confdefs.h >>conftest.$ac_ext 6702cat >>conftest.$ac_ext <<_ACEOF 6703/* end confdefs.h. */ 6704#include <stddef.h> 6705int 6706main () 6707{ 6708static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; 6709test_array [0] = 0 6710 6711 ; 6712 return 0; 6713} 6714_ACEOF 6715rm -f conftest.$ac_objext 6716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6717 (eval $ac_compile) 2>conftest.er1 6718 ac_status=$? 6719 grep -v '^ *+' conftest.er1 >conftest.err 6720 rm -f conftest.er1 6721 cat conftest.err >&5 6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6723 (exit $ac_status); } && 6724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6726 (eval $ac_try) 2>&5 6727 ac_status=$? 6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6729 (exit $ac_status); }; } && 6730 { ac_try='test -s conftest.$ac_objext' 6731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6732 (eval $ac_try) 2>&5 6733 ac_status=$? 6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6735 (exit $ac_status); }; }; then 6736 ac_hi=-1 ac_mid=-1 6737 while :; do 6738 cat >conftest.$ac_ext <<_ACEOF 6739/* confdefs.h. */ 6740_ACEOF 6741cat confdefs.h >>conftest.$ac_ext 6742cat >>conftest.$ac_ext <<_ACEOF 6743/* end confdefs.h. */ 6744#include <stddef.h> 6745int 6746main () 6747{ 6748static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; 6749test_array [0] = 0 6750 6751 ; 6752 return 0; 6753} 6754_ACEOF 6755rm -f conftest.$ac_objext 6756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6757 (eval $ac_compile) 2>conftest.er1 6758 ac_status=$? 6759 grep -v '^ *+' conftest.er1 >conftest.err 6760 rm -f conftest.er1 6761 cat conftest.err >&5 6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6763 (exit $ac_status); } && 6764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6766 (eval $ac_try) 2>&5 6767 ac_status=$? 6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6769 (exit $ac_status); }; } && 6770 { ac_try='test -s conftest.$ac_objext' 6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6772 (eval $ac_try) 2>&5 6773 ac_status=$? 6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6775 (exit $ac_status); }; }; then 6776 ac_lo=$ac_mid; break 6777else 6778 echo "$as_me: failed program was:" >&5 6779sed 's/^/| /' conftest.$ac_ext >&5 6780 6781ac_hi=`expr '(' $ac_mid ')' - 1` 6782 if test $ac_mid -le $ac_hi; then 6783 ac_lo= ac_hi= 6784 break 6785 fi 6786 ac_mid=`expr 2 '*' $ac_mid` 6787fi 6788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6789 done 6790else 6791 echo "$as_me: failed program was:" >&5 6792sed 's/^/| /' conftest.$ac_ext >&5 6793 6794ac_lo= ac_hi= 6795fi 6796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6797fi 6798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6799# Binary search between lo and hi bounds. 6800while test "x$ac_lo" != "x$ac_hi"; do 6801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6802 cat >conftest.$ac_ext <<_ACEOF 6803/* confdefs.h. */ 6804_ACEOF 6805cat confdefs.h >>conftest.$ac_ext 6806cat >>conftest.$ac_ext <<_ACEOF 6807/* end confdefs.h. */ 6808#include <stddef.h> 6809int 6810main () 6811{ 6812static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 6813test_array [0] = 0 6814 6815 ; 6816 return 0; 6817} 6818_ACEOF 6819rm -f conftest.$ac_objext 6820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6821 (eval $ac_compile) 2>conftest.er1 6822 ac_status=$? 6823 grep -v '^ *+' conftest.er1 >conftest.err 6824 rm -f conftest.er1 6825 cat conftest.err >&5 6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6827 (exit $ac_status); } && 6828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6830 (eval $ac_try) 2>&5 6831 ac_status=$? 6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6833 (exit $ac_status); }; } && 6834 { ac_try='test -s conftest.$ac_objext' 6835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6836 (eval $ac_try) 2>&5 6837 ac_status=$? 6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6839 (exit $ac_status); }; }; then 6840 ac_hi=$ac_mid 6841else 6842 echo "$as_me: failed program was:" >&5 6843sed 's/^/| /' conftest.$ac_ext >&5 6844 6845ac_lo=`expr '(' $ac_mid ')' + 1` 6846fi 6847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6848done 6849case $ac_lo in 6850?*) res_lo=$ac_lo;; 6851'') result=? ;; 6852esac 6853else 6854 if test "$cross_compiling" = yes; then 6855 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 6856echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 6857 { (exit 1); exit 1; }; } 6858else 6859 cat >conftest.$ac_ext <<_ACEOF 6860/* confdefs.h. */ 6861_ACEOF 6862cat confdefs.h >>conftest.$ac_ext 6863cat >>conftest.$ac_ext <<_ACEOF 6864/* end confdefs.h. */ 6865#include <stddef.h> 6866long longval () { return ~(size_t)0 % 10; } 6867unsigned long ulongval () { return ~(size_t)0 % 10; } 6868#include <stdio.h> 6869#include <stdlib.h> 6870int 6871main () 6872{ 6873 6874 FILE *f = fopen ("conftest.val", "w"); 6875 if (! f) 6876 exit (1); 6877 if ((~(size_t)0 % 10) < 0) 6878 { 6879 long i = longval (); 6880 if (i != (~(size_t)0 % 10)) 6881 exit (1); 6882 fprintf (f, "%ld\n", i); 6883 } 6884 else 6885 { 6886 unsigned long i = ulongval (); 6887 if (i != (~(size_t)0 % 10)) 6888 exit (1); 6889 fprintf (f, "%lu\n", i); 6890 } 6891 exit (ferror (f) || fclose (f) != 0); 6892 6893 ; 6894 return 0; 6895} 6896_ACEOF 6897rm -f conftest$ac_exeext 6898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6899 (eval $ac_link) 2>&5 6900 ac_status=$? 6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6904 (eval $ac_try) 2>&5 6905 ac_status=$? 6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6907 (exit $ac_status); }; }; then 6908 res_lo=`cat conftest.val` 6909else 6910 echo "$as_me: program exited with status $ac_status" >&5 6911echo "$as_me: failed program was:" >&5 6912sed 's/^/| /' conftest.$ac_ext >&5 6913 6914( exit $ac_status ) 6915result=? 6916fi 6917rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6918fi 6919fi 6920rm -f conftest.val 6921 if test "$cross_compiling" = yes; then 6922 # Depending upon the size, compute the lo and hi bounds. 6923cat >conftest.$ac_ext <<_ACEOF 6924/* confdefs.h. */ 6925_ACEOF 6926cat confdefs.h >>conftest.$ac_ext 6927cat >>conftest.$ac_ext <<_ACEOF 6928/* end confdefs.h. */ 6929#include <stddef.h> 6930int 6931main () 6932{ 6933static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 6934test_array [0] = 0 6935 6936 ; 6937 return 0; 6938} 6939_ACEOF 6940rm -f conftest.$ac_objext 6941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6942 (eval $ac_compile) 2>conftest.er1 6943 ac_status=$? 6944 grep -v '^ *+' conftest.er1 >conftest.err 6945 rm -f conftest.er1 6946 cat conftest.err >&5 6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6948 (exit $ac_status); } && 6949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6951 (eval $ac_try) 2>&5 6952 ac_status=$? 6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6954 (exit $ac_status); }; } && 6955 { ac_try='test -s conftest.$ac_objext' 6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6957 (eval $ac_try) 2>&5 6958 ac_status=$? 6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6960 (exit $ac_status); }; }; then 6961 ac_lo=0 ac_mid=0 6962 while :; do 6963 cat >conftest.$ac_ext <<_ACEOF 6964/* confdefs.h. */ 6965_ACEOF 6966cat confdefs.h >>conftest.$ac_ext 6967cat >>conftest.$ac_ext <<_ACEOF 6968/* end confdefs.h. */ 6969#include <stddef.h> 6970int 6971main () 6972{ 6973static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 6974test_array [0] = 0 6975 6976 ; 6977 return 0; 6978} 6979_ACEOF 6980rm -f conftest.$ac_objext 6981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6982 (eval $ac_compile) 2>conftest.er1 6983 ac_status=$? 6984 grep -v '^ *+' conftest.er1 >conftest.err 6985 rm -f conftest.er1 6986 cat conftest.err >&5 6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6988 (exit $ac_status); } && 6989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6991 (eval $ac_try) 2>&5 6992 ac_status=$? 6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6994 (exit $ac_status); }; } && 6995 { ac_try='test -s conftest.$ac_objext' 6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6997 (eval $ac_try) 2>&5 6998 ac_status=$? 6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7000 (exit $ac_status); }; }; then 7001 ac_hi=$ac_mid; break 7002else 7003 echo "$as_me: failed program was:" >&5 7004sed 's/^/| /' conftest.$ac_ext >&5 7005 7006ac_lo=`expr $ac_mid + 1` 7007 if test $ac_lo -le $ac_mid; then 7008 ac_lo= ac_hi= 7009 break 7010 fi 7011 ac_mid=`expr 2 '*' $ac_mid + 1` 7012fi 7013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7014 done 7015else 7016 echo "$as_me: failed program was:" >&5 7017sed 's/^/| /' conftest.$ac_ext >&5 7018 7019cat >conftest.$ac_ext <<_ACEOF 7020/* confdefs.h. */ 7021_ACEOF 7022cat confdefs.h >>conftest.$ac_ext 7023cat >>conftest.$ac_ext <<_ACEOF 7024/* end confdefs.h. */ 7025#include <stddef.h> 7026int 7027main () 7028{ 7029static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 7030test_array [0] = 0 7031 7032 ; 7033 return 0; 7034} 7035_ACEOF 7036rm -f conftest.$ac_objext 7037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7038 (eval $ac_compile) 2>conftest.er1 7039 ac_status=$? 7040 grep -v '^ *+' conftest.er1 >conftest.err 7041 rm -f conftest.er1 7042 cat conftest.err >&5 7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7044 (exit $ac_status); } && 7045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7047 (eval $ac_try) 2>&5 7048 ac_status=$? 7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7050 (exit $ac_status); }; } && 7051 { ac_try='test -s conftest.$ac_objext' 7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7053 (eval $ac_try) 2>&5 7054 ac_status=$? 7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7056 (exit $ac_status); }; }; then 7057 ac_hi=-1 ac_mid=-1 7058 while :; do 7059 cat >conftest.$ac_ext <<_ACEOF 7060/* confdefs.h. */ 7061_ACEOF 7062cat confdefs.h >>conftest.$ac_ext 7063cat >>conftest.$ac_ext <<_ACEOF 7064/* end confdefs.h. */ 7065#include <stddef.h> 7066int 7067main () 7068{ 7069static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 7070test_array [0] = 0 7071 7072 ; 7073 return 0; 7074} 7075_ACEOF 7076rm -f conftest.$ac_objext 7077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7078 (eval $ac_compile) 2>conftest.er1 7079 ac_status=$? 7080 grep -v '^ *+' conftest.er1 >conftest.err 7081 rm -f conftest.er1 7082 cat conftest.err >&5 7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7084 (exit $ac_status); } && 7085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7087 (eval $ac_try) 2>&5 7088 ac_status=$? 7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7090 (exit $ac_status); }; } && 7091 { ac_try='test -s conftest.$ac_objext' 7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7093 (eval $ac_try) 2>&5 7094 ac_status=$? 7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7096 (exit $ac_status); }; }; then 7097 ac_lo=$ac_mid; break 7098else 7099 echo "$as_me: failed program was:" >&5 7100sed 's/^/| /' conftest.$ac_ext >&5 7101 7102ac_hi=`expr '(' $ac_mid ')' - 1` 7103 if test $ac_mid -le $ac_hi; then 7104 ac_lo= ac_hi= 7105 break 7106 fi 7107 ac_mid=`expr 2 '*' $ac_mid` 7108fi 7109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7110 done 7111else 7112 echo "$as_me: failed program was:" >&5 7113sed 's/^/| /' conftest.$ac_ext >&5 7114 7115ac_lo= ac_hi= 7116fi 7117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7118fi 7119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7120# Binary search between lo and hi bounds. 7121while test "x$ac_lo" != "x$ac_hi"; do 7122 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7123 cat >conftest.$ac_ext <<_ACEOF 7124/* confdefs.h. */ 7125_ACEOF 7126cat confdefs.h >>conftest.$ac_ext 7127cat >>conftest.$ac_ext <<_ACEOF 7128/* end confdefs.h. */ 7129#include <stddef.h> 7130int 7131main () 7132{ 7133static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 7134test_array [0] = 0 7135 7136 ; 7137 return 0; 7138} 7139_ACEOF 7140rm -f conftest.$ac_objext 7141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7142 (eval $ac_compile) 2>conftest.er1 7143 ac_status=$? 7144 grep -v '^ *+' conftest.er1 >conftest.err 7145 rm -f conftest.er1 7146 cat conftest.err >&5 7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7148 (exit $ac_status); } && 7149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7151 (eval $ac_try) 2>&5 7152 ac_status=$? 7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7154 (exit $ac_status); }; } && 7155 { ac_try='test -s conftest.$ac_objext' 7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7157 (eval $ac_try) 2>&5 7158 ac_status=$? 7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7160 (exit $ac_status); }; }; then 7161 ac_hi=$ac_mid 7162else 7163 echo "$as_me: failed program was:" >&5 7164sed 's/^/| /' conftest.$ac_ext >&5 7165 7166ac_lo=`expr '(' $ac_mid ')' + 1` 7167fi 7168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7169done 7170case $ac_lo in 7171?*) fits_in_uint=$ac_lo;; 7172'') result=? ;; 7173esac 7174else 7175 if test "$cross_compiling" = yes; then 7176 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 7177echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 7178 { (exit 1); exit 1; }; } 7179else 7180 cat >conftest.$ac_ext <<_ACEOF 7181/* confdefs.h. */ 7182_ACEOF 7183cat confdefs.h >>conftest.$ac_ext 7184cat >>conftest.$ac_ext <<_ACEOF 7185/* end confdefs.h. */ 7186#include <stddef.h> 7187long longval () { return sizeof (size_t) <= sizeof (unsigned int); } 7188unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 7189#include <stdio.h> 7190#include <stdlib.h> 7191int 7192main () 7193{ 7194 7195 FILE *f = fopen ("conftest.val", "w"); 7196 if (! f) 7197 exit (1); 7198 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 7199 { 7200 long i = longval (); 7201 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 7202 exit (1); 7203 fprintf (f, "%ld\n", i); 7204 } 7205 else 7206 { 7207 unsigned long i = ulongval (); 7208 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 7209 exit (1); 7210 fprintf (f, "%lu\n", i); 7211 } 7212 exit (ferror (f) || fclose (f) != 0); 7213 7214 ; 7215 return 0; 7216} 7217_ACEOF 7218rm -f conftest$ac_exeext 7219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7220 (eval $ac_link) 2>&5 7221 ac_status=$? 7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7225 (eval $ac_try) 2>&5 7226 ac_status=$? 7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7228 (exit $ac_status); }; }; then 7229 fits_in_uint=`cat conftest.val` 7230else 7231 echo "$as_me: program exited with status $ac_status" >&5 7232echo "$as_me: failed program was:" >&5 7233sed 's/^/| /' conftest.$ac_ext >&5 7234 7235( exit $ac_status ) 7236result=? 7237fi 7238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7239fi 7240fi 7241rm -f conftest.val 7242 if test "$fits_in_uint" = 1; then 7243 cat >conftest.$ac_ext <<_ACEOF 7244/* confdefs.h. */ 7245_ACEOF 7246cat confdefs.h >>conftest.$ac_ext 7247cat >>conftest.$ac_ext <<_ACEOF 7248/* end confdefs.h. */ 7249#include <stddef.h> 7250 extern size_t foo; 7251 extern unsigned long foo; 7252 7253int 7254main () 7255{ 7256 7257 ; 7258 return 0; 7259} 7260_ACEOF 7261rm -f conftest.$ac_objext 7262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7263 (eval $ac_compile) 2>conftest.er1 7264 ac_status=$? 7265 grep -v '^ *+' conftest.er1 >conftest.err 7266 rm -f conftest.er1 7267 cat conftest.err >&5 7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7269 (exit $ac_status); } && 7270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7272 (eval $ac_try) 2>&5 7273 ac_status=$? 7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7275 (exit $ac_status); }; } && 7276 { ac_try='test -s conftest.$ac_objext' 7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7278 (eval $ac_try) 2>&5 7279 ac_status=$? 7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7281 (exit $ac_status); }; }; then 7282 fits_in_uint=0 7283else 7284 echo "$as_me: failed program was:" >&5 7285sed 's/^/| /' conftest.$ac_ext >&5 7286 7287fi 7288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7289 fi 7290 if test -z "$result"; then 7291 if test "$fits_in_uint" = 1; then 7292 result="$res_hi$res_lo"U 7293 else 7294 result="$res_hi$res_lo"UL 7295 fi 7296 else 7297 result='~(size_t)0' 7298 fi 7299 fi 7300 echo "$as_me:$LINENO: result: $result" >&5 7301echo "${ECHO_T}$result" >&6 7302 if test "$result" != yes; then 7303 7304cat >>confdefs.h <<_ACEOF 7305#define SIZE_MAX $result 7306_ACEOF 7307 7308 fi 7309 7310 7311 7312 7313for ac_header in stdint.h 7314do 7315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7316if eval "test \"\${$as_ac_Header+set}\" = set"; then 7317 echo "$as_me:$LINENO: checking for $ac_header" >&5 7318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7319if eval "test \"\${$as_ac_Header+set}\" = set"; then 7320 echo $ECHO_N "(cached) $ECHO_C" >&6 7321fi 7322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7324else 7325 # Is the header compilable? 7326echo "$as_me:$LINENO: checking $ac_header usability" >&5 7327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7328cat >conftest.$ac_ext <<_ACEOF 7329/* confdefs.h. */ 7330_ACEOF 7331cat confdefs.h >>conftest.$ac_ext 7332cat >>conftest.$ac_ext <<_ACEOF 7333/* end confdefs.h. */ 7334$ac_includes_default 7335#include <$ac_header> 7336_ACEOF 7337rm -f conftest.$ac_objext 7338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7339 (eval $ac_compile) 2>conftest.er1 7340 ac_status=$? 7341 grep -v '^ *+' conftest.er1 >conftest.err 7342 rm -f conftest.er1 7343 cat conftest.err >&5 7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7345 (exit $ac_status); } && 7346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7348 (eval $ac_try) 2>&5 7349 ac_status=$? 7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7351 (exit $ac_status); }; } && 7352 { ac_try='test -s conftest.$ac_objext' 7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7354 (eval $ac_try) 2>&5 7355 ac_status=$? 7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7357 (exit $ac_status); }; }; then 7358 ac_header_compiler=yes 7359else 7360 echo "$as_me: failed program was:" >&5 7361sed 's/^/| /' conftest.$ac_ext >&5 7362 7363ac_header_compiler=no 7364fi 7365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7367echo "${ECHO_T}$ac_header_compiler" >&6 7368 7369# Is the header present? 7370echo "$as_me:$LINENO: checking $ac_header presence" >&5 7371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7372cat >conftest.$ac_ext <<_ACEOF 7373/* confdefs.h. */ 7374_ACEOF 7375cat confdefs.h >>conftest.$ac_ext 7376cat >>conftest.$ac_ext <<_ACEOF 7377/* end confdefs.h. */ 7378#include <$ac_header> 7379_ACEOF 7380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7382 ac_status=$? 7383 grep -v '^ *+' conftest.er1 >conftest.err 7384 rm -f conftest.er1 7385 cat conftest.err >&5 7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7387 (exit $ac_status); } >/dev/null; then 7388 if test -s conftest.err; then 7389 ac_cpp_err=$ac_c_preproc_warn_flag 7390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7391 else 7392 ac_cpp_err= 7393 fi 7394else 7395 ac_cpp_err=yes 7396fi 7397if test -z "$ac_cpp_err"; then 7398 ac_header_preproc=yes 7399else 7400 echo "$as_me: failed program was:" >&5 7401sed 's/^/| /' conftest.$ac_ext >&5 7402 7403 ac_header_preproc=no 7404fi 7405rm -f conftest.err conftest.$ac_ext 7406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7407echo "${ECHO_T}$ac_header_preproc" >&6 7408 7409# So? What about this header? 7410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7411 yes:no: ) 7412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7416 ac_header_preproc=yes 7417 ;; 7418 no:yes:* ) 7419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7426echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7431 ( 7432 cat <<\_ASBOX 7433## ------------------------------------------ ## 7434## Report this to the AC_PACKAGE_NAME lists. ## 7435## ------------------------------------------ ## 7436_ASBOX 7437 ) | 7438 sed "s/^/$as_me: WARNING: /" >&2 7439 ;; 7440esac 7441echo "$as_me:$LINENO: checking for $ac_header" >&5 7442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7443if eval "test \"\${$as_ac_Header+set}\" = set"; then 7444 echo $ECHO_N "(cached) $ECHO_C" >&6 7445else 7446 eval "$as_ac_Header=\$ac_header_preproc" 7447fi 7448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7450 7451fi 7452if test `eval echo '${'$as_ac_Header'}'` = yes; then 7453 cat >>confdefs.h <<_ACEOF 7454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7455_ACEOF 7456 7457fi 7458 7459done 7460 7461 7462 7463 if test "X$prefix" = "XNONE"; then 7464 acl_final_prefix="$ac_default_prefix" 7465 else 7466 acl_final_prefix="$prefix" 7467 fi 7468 if test "X$exec_prefix" = "XNONE"; then 7469 acl_final_exec_prefix='${prefix}' 7470 else 7471 acl_final_exec_prefix="$exec_prefix" 7472 fi 7473 acl_save_prefix="$prefix" 7474 prefix="$acl_final_prefix" 7475 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 7476 prefix="$acl_save_prefix" 7477 7478 7479# Check whether --with-gnu-ld or --without-gnu-ld was given. 7480if test "${with_gnu_ld+set}" = set; then 7481 withval="$with_gnu_ld" 7482 test "$withval" = no || with_gnu_ld=yes 7483else 7484 with_gnu_ld=no 7485fi; 7486# Prepare PATH_SEPARATOR. 7487# The user is always right. 7488if test "${PATH_SEPARATOR+set}" != set; then 7489 echo "#! /bin/sh" >conf$$.sh 7490 echo "exit 0" >>conf$$.sh 7491 chmod +x conf$$.sh 7492 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7493 PATH_SEPARATOR=';' 7494 else 7495 PATH_SEPARATOR=: 7496 fi 7497 rm -f conf$$.sh 7498fi 7499ac_prog=ld 7500if test "$GCC" = yes; then 7501 # Check if gcc -print-prog-name=ld gives a path. 7502 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 7503echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 7504 case $host in 7505 *-*-mingw*) 7506 # gcc leaves a trailing carriage return which upsets mingw 7507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7508 *) 7509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7510 esac 7511 case $ac_prog in 7512 # Accept absolute paths. 7513 [\\/]* | [A-Za-z]:[\\/]*) 7514 re_direlt='/[^/][^/]*/\.\./' 7515 # Canonicalize the path of ld 7516 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 7517 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7518 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 7519 done 7520 test -z "$LD" && LD="$ac_prog" 7521 ;; 7522 "") 7523 # If it fails, then pretend we aren't using GCC. 7524 ac_prog=ld 7525 ;; 7526 *) 7527 # If it is relative, then search for the first ld in PATH. 7528 with_gnu_ld=unknown 7529 ;; 7530 esac 7531elif test "$with_gnu_ld" = yes; then 7532 echo "$as_me:$LINENO: checking for GNU ld" >&5 7533echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 7534else 7535 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 7536echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 7537fi 7538if test "${acl_cv_path_LD+set}" = set; then 7539 echo $ECHO_N "(cached) $ECHO_C" >&6 7540else 7541 if test -z "$LD"; then 7542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 7543 for ac_dir in $PATH; do 7544 test -z "$ac_dir" && ac_dir=. 7545 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7546 acl_cv_path_LD="$ac_dir/$ac_prog" 7547 # Check to see if the program is GNU ld. I'd rather use --version, 7548 # but apparently some GNU ld's only accept -v. 7549 # Break only if it was the GNU/non-GNU ld that we prefer. 7550 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 7551 *GNU* | *'with BFD'*) 7552 test "$with_gnu_ld" != no && break ;; 7553 *) 7554 test "$with_gnu_ld" != yes && break ;; 7555 esac 7556 fi 7557 done 7558 IFS="$ac_save_ifs" 7559else 7560 acl_cv_path_LD="$LD" # Let the user override the test with a path. 7561fi 7562fi 7563 7564LD="$acl_cv_path_LD" 7565if test -n "$LD"; then 7566 echo "$as_me:$LINENO: result: $LD" >&5 7567echo "${ECHO_T}$LD" >&6 7568else 7569 echo "$as_me:$LINENO: result: no" >&5 7570echo "${ECHO_T}no" >&6 7571fi 7572test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 7573echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 7574 { (exit 1); exit 1; }; } 7575echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 7576echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 7577if test "${acl_cv_prog_gnu_ld+set}" = set; then 7578 echo $ECHO_N "(cached) $ECHO_C" >&6 7579else 7580 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7581case `$LD -v 2>&1 </dev/null` in 7582*GNU* | *'with BFD'*) 7583 acl_cv_prog_gnu_ld=yes ;; 7584*) 7585 acl_cv_prog_gnu_ld=no ;; 7586esac 7587fi 7588echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 7589echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 7590with_gnu_ld=$acl_cv_prog_gnu_ld 7591 7592 7593 7594 echo "$as_me:$LINENO: checking for shared library run path origin" >&5 7595echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 7596if test "${acl_cv_rpath+set}" = set; then 7597 echo $ECHO_N "(cached) $ECHO_C" >&6 7598else 7599 7600 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 7601 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 7602 . ./conftest.sh 7603 rm -f ./conftest.sh 7604 acl_cv_rpath=done 7605 7606fi 7607echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 7608echo "${ECHO_T}$acl_cv_rpath" >&6 7609 wl="$acl_cv_wl" 7610 libext="$acl_cv_libext" 7611 shlibext="$acl_cv_shlibext" 7612 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 7613 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 7614 hardcode_direct="$acl_cv_hardcode_direct" 7615 hardcode_minus_L="$acl_cv_hardcode_minus_L" 7616 # Check whether --enable-rpath or --disable-rpath was given. 7617if test "${enable_rpath+set}" = set; then 7618 enableval="$enable_rpath" 7619 : 7620else 7621 enable_rpath=yes 7622fi; 7623 7624 7625 7626 7627 7628 7629 7630 use_additional=yes 7631 7632 acl_save_prefix="$prefix" 7633 prefix="$acl_final_prefix" 7634 acl_save_exec_prefix="$exec_prefix" 7635 exec_prefix="$acl_final_exec_prefix" 7636 7637 eval additional_includedir=\"$includedir\" 7638 eval additional_libdir=\"$libdir\" 7639 7640 exec_prefix="$acl_save_exec_prefix" 7641 prefix="$acl_save_prefix" 7642 7643 7644# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 7645if test "${with_libiconv_prefix+set}" = set; then 7646 withval="$with_libiconv_prefix" 7647 7648 if test "X$withval" = "Xno"; then 7649 use_additional=no 7650 else 7651 if test "X$withval" = "X"; then 7652 7653 acl_save_prefix="$prefix" 7654 prefix="$acl_final_prefix" 7655 acl_save_exec_prefix="$exec_prefix" 7656 exec_prefix="$acl_final_exec_prefix" 7657 7658 eval additional_includedir=\"$includedir\" 7659 eval additional_libdir=\"$libdir\" 7660 7661 exec_prefix="$acl_save_exec_prefix" 7662 prefix="$acl_save_prefix" 7663 7664 else 7665 additional_includedir="$withval/include" 7666 additional_libdir="$withval/lib" 7667 fi 7668 fi 7669 7670fi; 7671 LIBICONV= 7672 LTLIBICONV= 7673 INCICONV= 7674 rpathdirs= 7675 ltrpathdirs= 7676 names_already_handled= 7677 names_next_round='iconv ' 7678 while test -n "$names_next_round"; do 7679 names_this_round="$names_next_round" 7680 names_next_round= 7681 for name in $names_this_round; do 7682 already_handled= 7683 for n in $names_already_handled; do 7684 if test "$n" = "$name"; then 7685 already_handled=yes 7686 break 7687 fi 7688 done 7689 if test -z "$already_handled"; then 7690 names_already_handled="$names_already_handled $name" 7691 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7692 eval value=\"\$HAVE_LIB$uppername\" 7693 if test -n "$value"; then 7694 if test "$value" = yes; then 7695 eval value=\"\$LIB$uppername\" 7696 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 7697 eval value=\"\$LTLIB$uppername\" 7698 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 7699 else 7700 : 7701 fi 7702 else 7703 found_dir= 7704 found_la= 7705 found_so= 7706 found_a= 7707 if test $use_additional = yes; then 7708 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 7709 found_dir="$additional_libdir" 7710 found_so="$additional_libdir/lib$name.$shlibext" 7711 if test -f "$additional_libdir/lib$name.la"; then 7712 found_la="$additional_libdir/lib$name.la" 7713 fi 7714 else 7715 if test -f "$additional_libdir/lib$name.$libext"; then 7716 found_dir="$additional_libdir" 7717 found_a="$additional_libdir/lib$name.$libext" 7718 if test -f "$additional_libdir/lib$name.la"; then 7719 found_la="$additional_libdir/lib$name.la" 7720 fi 7721 fi 7722 fi 7723 fi 7724 if test "X$found_dir" = "X"; then 7725 for x in $LDFLAGS $LTLIBICONV; do 7726 7727 acl_save_prefix="$prefix" 7728 prefix="$acl_final_prefix" 7729 acl_save_exec_prefix="$exec_prefix" 7730 exec_prefix="$acl_final_exec_prefix" 7731 eval x=\"$x\" 7732 exec_prefix="$acl_save_exec_prefix" 7733 prefix="$acl_save_prefix" 7734 7735 case "$x" in 7736 -L*) 7737 dir=`echo "X$x" | sed -e 's/^X-L//'` 7738 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 7739 found_dir="$dir" 7740 found_so="$dir/lib$name.$shlibext" 7741 if test -f "$dir/lib$name.la"; then 7742 found_la="$dir/lib$name.la" 7743 fi 7744 else 7745 if test -f "$dir/lib$name.$libext"; then 7746 found_dir="$dir" 7747 found_a="$dir/lib$name.$libext" 7748 if test -f "$dir/lib$name.la"; then 7749 found_la="$dir/lib$name.la" 7750 fi 7751 fi 7752 fi 7753 ;; 7754 esac 7755 if test "X$found_dir" != "X"; then 7756 break 7757 fi 7758 done 7759 fi 7760 if test "X$found_dir" != "X"; then 7761 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7762 if test "X$found_so" != "X"; then 7763 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 7764 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7765 else 7766 haveit= 7767 for x in $ltrpathdirs; do 7768 if test "X$x" = "X$found_dir"; then 7769 haveit=yes 7770 break 7771 fi 7772 done 7773 if test -z "$haveit"; then 7774 ltrpathdirs="$ltrpathdirs $found_dir" 7775 fi 7776 if test "$hardcode_direct" = yes; then 7777 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7778 else 7779 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 7780 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7781 haveit= 7782 for x in $rpathdirs; do 7783 if test "X$x" = "X$found_dir"; then 7784 haveit=yes 7785 break 7786 fi 7787 done 7788 if test -z "$haveit"; then 7789 rpathdirs="$rpathdirs $found_dir" 7790 fi 7791 else 7792 haveit= 7793 for x in $LDFLAGS $LIBICONV; do 7794 7795 acl_save_prefix="$prefix" 7796 prefix="$acl_final_prefix" 7797 acl_save_exec_prefix="$exec_prefix" 7798 exec_prefix="$acl_final_exec_prefix" 7799 eval x=\"$x\" 7800 exec_prefix="$acl_save_exec_prefix" 7801 prefix="$acl_save_prefix" 7802 7803 if test "X$x" = "X-L$found_dir"; then 7804 haveit=yes 7805 break 7806 fi 7807 done 7808 if test -z "$haveit"; then 7809 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7810 fi 7811 if test "$hardcode_minus_L" != no; then 7812 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7813 else 7814 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7815 fi 7816 fi 7817 fi 7818 fi 7819 else 7820 if test "X$found_a" != "X"; then 7821 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 7822 else 7823 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 7824 fi 7825 fi 7826 additional_includedir= 7827 case "$found_dir" in 7828 */lib | */lib/) 7829 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 7830 additional_includedir="$basedir/include" 7831 ;; 7832 esac 7833 if test "X$additional_includedir" != "X"; then 7834 if test "X$additional_includedir" != "X/usr/include"; then 7835 haveit= 7836 if test "X$additional_includedir" = "X/usr/local/include"; then 7837 if test -n "$GCC"; then 7838 case $host_os in 7839 linux*) haveit=yes;; 7840 esac 7841 fi 7842 fi 7843 if test -z "$haveit"; then 7844 for x in $CPPFLAGS $INCICONV; do 7845 7846 acl_save_prefix="$prefix" 7847 prefix="$acl_final_prefix" 7848 acl_save_exec_prefix="$exec_prefix" 7849 exec_prefix="$acl_final_exec_prefix" 7850 eval x=\"$x\" 7851 exec_prefix="$acl_save_exec_prefix" 7852 prefix="$acl_save_prefix" 7853 7854 if test "X$x" = "X-I$additional_includedir"; then 7855 haveit=yes 7856 break 7857 fi 7858 done 7859 if test -z "$haveit"; then 7860 if test -d "$additional_includedir"; then 7861 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 7862 fi 7863 fi 7864 fi 7865 fi 7866 fi 7867 if test -n "$found_la"; then 7868 save_libdir="$libdir" 7869 case "$found_la" in 7870 */* | *\\*) . "$found_la" ;; 7871 *) . "./$found_la" ;; 7872 esac 7873 libdir="$save_libdir" 7874 for dep in $dependency_libs; do 7875 case "$dep" in 7876 -L*) 7877 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7878 if test "X$additional_libdir" != "X/usr/lib"; then 7879 haveit= 7880 if test "X$additional_libdir" = "X/usr/local/lib"; then 7881 if test -n "$GCC"; then 7882 case $host_os in 7883 linux*) haveit=yes;; 7884 esac 7885 fi 7886 fi 7887 if test -z "$haveit"; then 7888 haveit= 7889 for x in $LDFLAGS $LIBICONV; do 7890 7891 acl_save_prefix="$prefix" 7892 prefix="$acl_final_prefix" 7893 acl_save_exec_prefix="$exec_prefix" 7894 exec_prefix="$acl_final_exec_prefix" 7895 eval x=\"$x\" 7896 exec_prefix="$acl_save_exec_prefix" 7897 prefix="$acl_save_prefix" 7898 7899 if test "X$x" = "X-L$additional_libdir"; then 7900 haveit=yes 7901 break 7902 fi 7903 done 7904 if test -z "$haveit"; then 7905 if test -d "$additional_libdir"; then 7906 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 7907 fi 7908 fi 7909 haveit= 7910 for x in $LDFLAGS $LTLIBICONV; do 7911 7912 acl_save_prefix="$prefix" 7913 prefix="$acl_final_prefix" 7914 acl_save_exec_prefix="$exec_prefix" 7915 exec_prefix="$acl_final_exec_prefix" 7916 eval x=\"$x\" 7917 exec_prefix="$acl_save_exec_prefix" 7918 prefix="$acl_save_prefix" 7919 7920 if test "X$x" = "X-L$additional_libdir"; then 7921 haveit=yes 7922 break 7923 fi 7924 done 7925 if test -z "$haveit"; then 7926 if test -d "$additional_libdir"; then 7927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 7928 fi 7929 fi 7930 fi 7931 fi 7932 ;; 7933 -R*) 7934 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7935 if test "$enable_rpath" != no; then 7936 haveit= 7937 for x in $rpathdirs; do 7938 if test "X$x" = "X$dir"; then 7939 haveit=yes 7940 break 7941 fi 7942 done 7943 if test -z "$haveit"; then 7944 rpathdirs="$rpathdirs $dir" 7945 fi 7946 haveit= 7947 for x in $ltrpathdirs; do 7948 if test "X$x" = "X$dir"; then 7949 haveit=yes 7950 break 7951 fi 7952 done 7953 if test -z "$haveit"; then 7954 ltrpathdirs="$ltrpathdirs $dir" 7955 fi 7956 fi 7957 ;; 7958 -l*) 7959 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7960 ;; 7961 *.la) 7962 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7963 ;; 7964 *) 7965 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 7966 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 7967 ;; 7968 esac 7969 done 7970 fi 7971 else 7972 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7973 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 7974 fi 7975 fi 7976 fi 7977 done 7978 done 7979 if test "X$rpathdirs" != "X"; then 7980 if test -n "$hardcode_libdir_separator"; then 7981 alldirs= 7982 for found_dir in $rpathdirs; do 7983 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7984 done 7985 acl_save_libdir="$libdir" 7986 libdir="$alldirs" 7987 eval flag=\"$hardcode_libdir_flag_spec\" 7988 libdir="$acl_save_libdir" 7989 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7990 else 7991 for found_dir in $rpathdirs; do 7992 acl_save_libdir="$libdir" 7993 libdir="$found_dir" 7994 eval flag=\"$hardcode_libdir_flag_spec\" 7995 libdir="$acl_save_libdir" 7996 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 7997 done 7998 fi 7999 fi 8000 if test "X$ltrpathdirs" != "X"; then 8001 for found_dir in $ltrpathdirs; do 8002 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 8003 done 8004 fi 8005 8006 8007 8008 8009 8010 8011 8012 8013 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 8014echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 8015if test "${ac_cv_type_ptrdiff_t+set}" = set; then 8016 echo $ECHO_N "(cached) $ECHO_C" >&6 8017else 8018 cat >conftest.$ac_ext <<_ACEOF 8019/* confdefs.h. */ 8020_ACEOF 8021cat confdefs.h >>conftest.$ac_ext 8022cat >>conftest.$ac_ext <<_ACEOF 8023/* end confdefs.h. */ 8024$ac_includes_default 8025int 8026main () 8027{ 8028if ((ptrdiff_t *) 0) 8029 return 0; 8030if (sizeof (ptrdiff_t)) 8031 return 0; 8032 ; 8033 return 0; 8034} 8035_ACEOF 8036rm -f conftest.$ac_objext 8037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8038 (eval $ac_compile) 2>conftest.er1 8039 ac_status=$? 8040 grep -v '^ *+' conftest.er1 >conftest.err 8041 rm -f conftest.er1 8042 cat conftest.err >&5 8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8044 (exit $ac_status); } && 8045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8047 (eval $ac_try) 2>&5 8048 ac_status=$? 8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8050 (exit $ac_status); }; } && 8051 { ac_try='test -s conftest.$ac_objext' 8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8053 (eval $ac_try) 2>&5 8054 ac_status=$? 8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8056 (exit $ac_status); }; }; then 8057 ac_cv_type_ptrdiff_t=yes 8058else 8059 echo "$as_me: failed program was:" >&5 8060sed 's/^/| /' conftest.$ac_ext >&5 8061 8062ac_cv_type_ptrdiff_t=no 8063fi 8064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8065fi 8066echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 8067echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 8068if test $ac_cv_type_ptrdiff_t = yes; then 8069 : 8070else 8071 8072cat >>confdefs.h <<\_ACEOF 8073#define ptrdiff_t long 8074_ACEOF 8075 8076 8077fi 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 8090stdlib.h string.h unistd.h sys/param.h 8091do 8092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8093if eval "test \"\${$as_ac_Header+set}\" = set"; then 8094 echo "$as_me:$LINENO: checking for $ac_header" >&5 8095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8096if eval "test \"\${$as_ac_Header+set}\" = set"; then 8097 echo $ECHO_N "(cached) $ECHO_C" >&6 8098fi 8099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8101else 8102 # Is the header compilable? 8103echo "$as_me:$LINENO: checking $ac_header usability" >&5 8104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8105cat >conftest.$ac_ext <<_ACEOF 8106/* confdefs.h. */ 8107_ACEOF 8108cat confdefs.h >>conftest.$ac_ext 8109cat >>conftest.$ac_ext <<_ACEOF 8110/* end confdefs.h. */ 8111$ac_includes_default 8112#include <$ac_header> 8113_ACEOF 8114rm -f conftest.$ac_objext 8115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8116 (eval $ac_compile) 2>conftest.er1 8117 ac_status=$? 8118 grep -v '^ *+' conftest.er1 >conftest.err 8119 rm -f conftest.er1 8120 cat conftest.err >&5 8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8122 (exit $ac_status); } && 8123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8125 (eval $ac_try) 2>&5 8126 ac_status=$? 8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8128 (exit $ac_status); }; } && 8129 { ac_try='test -s conftest.$ac_objext' 8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8131 (eval $ac_try) 2>&5 8132 ac_status=$? 8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8134 (exit $ac_status); }; }; then 8135 ac_header_compiler=yes 8136else 8137 echo "$as_me: failed program was:" >&5 8138sed 's/^/| /' conftest.$ac_ext >&5 8139 8140ac_header_compiler=no 8141fi 8142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8144echo "${ECHO_T}$ac_header_compiler" >&6 8145 8146# Is the header present? 8147echo "$as_me:$LINENO: checking $ac_header presence" >&5 8148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8149cat >conftest.$ac_ext <<_ACEOF 8150/* confdefs.h. */ 8151_ACEOF 8152cat confdefs.h >>conftest.$ac_ext 8153cat >>conftest.$ac_ext <<_ACEOF 8154/* end confdefs.h. */ 8155#include <$ac_header> 8156_ACEOF 8157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8159 ac_status=$? 8160 grep -v '^ *+' conftest.er1 >conftest.err 8161 rm -f conftest.er1 8162 cat conftest.err >&5 8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8164 (exit $ac_status); } >/dev/null; then 8165 if test -s conftest.err; then 8166 ac_cpp_err=$ac_c_preproc_warn_flag 8167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8168 else 8169 ac_cpp_err= 8170 fi 8171else 8172 ac_cpp_err=yes 8173fi 8174if test -z "$ac_cpp_err"; then 8175 ac_header_preproc=yes 8176else 8177 echo "$as_me: failed program was:" >&5 8178sed 's/^/| /' conftest.$ac_ext >&5 8179 8180 ac_header_preproc=no 8181fi 8182rm -f conftest.err conftest.$ac_ext 8183echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8184echo "${ECHO_T}$ac_header_preproc" >&6 8185 8186# So? What about this header? 8187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8188 yes:no: ) 8189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8193 ac_header_preproc=yes 8194 ;; 8195 no:yes:* ) 8196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8208 ( 8209 cat <<\_ASBOX 8210## ------------------------------------------ ## 8211## Report this to the AC_PACKAGE_NAME lists. ## 8212## ------------------------------------------ ## 8213_ASBOX 8214 ) | 8215 sed "s/^/$as_me: WARNING: /" >&2 8216 ;; 8217esac 8218echo "$as_me:$LINENO: checking for $ac_header" >&5 8219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8220if eval "test \"\${$as_ac_Header+set}\" = set"; then 8221 echo $ECHO_N "(cached) $ECHO_C" >&6 8222else 8223 eval "$as_ac_Header=\$ac_header_preproc" 8224fi 8225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8227 8228fi 8229if test `eval echo '${'$as_ac_Header'}'` = yes; then 8230 cat >>confdefs.h <<_ACEOF 8231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8232_ACEOF 8233 8234fi 8235 8236done 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 8262mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 8263strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 8264__fsetlocking 8265do 8266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8267echo "$as_me:$LINENO: checking for $ac_func" >&5 8268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8269if eval "test \"\${$as_ac_var+set}\" = set"; then 8270 echo $ECHO_N "(cached) $ECHO_C" >&6 8271else 8272 cat >conftest.$ac_ext <<_ACEOF 8273/* confdefs.h. */ 8274_ACEOF 8275cat confdefs.h >>conftest.$ac_ext 8276cat >>conftest.$ac_ext <<_ACEOF 8277/* end confdefs.h. */ 8278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8279 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8280#define $ac_func innocuous_$ac_func 8281 8282/* System header to define __stub macros and hopefully few prototypes, 8283 which can conflict with char $ac_func (); below. 8284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8285 <limits.h> exists even on freestanding compilers. */ 8286 8287#ifdef __STDC__ 8288# include <limits.h> 8289#else 8290# include <assert.h> 8291#endif 8292 8293#undef $ac_func 8294 8295/* Override any gcc2 internal prototype to avoid an error. */ 8296#ifdef __cplusplus 8297extern "C" 8298{ 8299#endif 8300/* We use char because int might match the return type of a gcc2 8301 builtin and then its argument prototype would still apply. */ 8302char $ac_func (); 8303/* The GNU C library defines this for functions which it implements 8304 to always fail with ENOSYS. Some functions are actually named 8305 something starting with __ and the normal name is an alias. */ 8306#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8307choke me 8308#else 8309char (*f) () = $ac_func; 8310#endif 8311#ifdef __cplusplus 8312} 8313#endif 8314 8315int 8316main () 8317{ 8318return f != $ac_func; 8319 ; 8320 return 0; 8321} 8322_ACEOF 8323rm -f conftest.$ac_objext conftest$ac_exeext 8324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8325 (eval $ac_link) 2>conftest.er1 8326 ac_status=$? 8327 grep -v '^ *+' conftest.er1 >conftest.err 8328 rm -f conftest.er1 8329 cat conftest.err >&5 8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8331 (exit $ac_status); } && 8332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8334 (eval $ac_try) 2>&5 8335 ac_status=$? 8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8337 (exit $ac_status); }; } && 8338 { ac_try='test -s conftest$ac_exeext' 8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8340 (eval $ac_try) 2>&5 8341 ac_status=$? 8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8343 (exit $ac_status); }; }; then 8344 eval "$as_ac_var=yes" 8345else 8346 echo "$as_me: failed program was:" >&5 8347sed 's/^/| /' conftest.$ac_ext >&5 8348 8349eval "$as_ac_var=no" 8350fi 8351rm -f conftest.err conftest.$ac_objext \ 8352 conftest$ac_exeext conftest.$ac_ext 8353fi 8354echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8355echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8356if test `eval echo '${'$as_ac_var'}'` = yes; then 8357 cat >>confdefs.h <<_ACEOF 8358#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8359_ACEOF 8360 8361fi 8362done 8363 8364 8365 8366 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 8367echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 8368if test "${ac_cv_have_decl__snprintf+set}" = set; then 8369 echo $ECHO_N "(cached) $ECHO_C" >&6 8370else 8371 cat >conftest.$ac_ext <<_ACEOF 8372/* confdefs.h. */ 8373_ACEOF 8374cat confdefs.h >>conftest.$ac_ext 8375cat >>conftest.$ac_ext <<_ACEOF 8376/* end confdefs.h. */ 8377#include <stdio.h> 8378int 8379main () 8380{ 8381 8382#ifndef _snprintf 8383 char *p = (char *) _snprintf; 8384#endif 8385 8386 ; 8387 return 0; 8388} 8389_ACEOF 8390rm -f conftest.$ac_objext 8391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8392 (eval $ac_compile) 2>conftest.er1 8393 ac_status=$? 8394 grep -v '^ *+' conftest.er1 >conftest.err 8395 rm -f conftest.er1 8396 cat conftest.err >&5 8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8398 (exit $ac_status); } && 8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8401 (eval $ac_try) 2>&5 8402 ac_status=$? 8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8404 (exit $ac_status); }; } && 8405 { ac_try='test -s conftest.$ac_objext' 8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8407 (eval $ac_try) 2>&5 8408 ac_status=$? 8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8410 (exit $ac_status); }; }; then 8411 ac_cv_have_decl__snprintf=yes 8412else 8413 echo "$as_me: failed program was:" >&5 8414sed 's/^/| /' conftest.$ac_ext >&5 8415 8416ac_cv_have_decl__snprintf=no 8417fi 8418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8419fi 8420echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 8421echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 8422 if test $ac_cv_have_decl__snprintf = yes; then 8423 gt_value=1 8424 else 8425 gt_value=0 8426 fi 8427 8428cat >>confdefs.h <<_ACEOF 8429#define HAVE_DECL__SNPRINTF $gt_value 8430_ACEOF 8431 8432 8433 8434 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 8435echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 8436if test "${ac_cv_have_decl__snwprintf+set}" = set; then 8437 echo $ECHO_N "(cached) $ECHO_C" >&6 8438else 8439 cat >conftest.$ac_ext <<_ACEOF 8440/* confdefs.h. */ 8441_ACEOF 8442cat confdefs.h >>conftest.$ac_ext 8443cat >>conftest.$ac_ext <<_ACEOF 8444/* end confdefs.h. */ 8445#include <stdio.h> 8446int 8447main () 8448{ 8449 8450#ifndef _snwprintf 8451 char *p = (char *) _snwprintf; 8452#endif 8453 8454 ; 8455 return 0; 8456} 8457_ACEOF 8458rm -f conftest.$ac_objext 8459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8460 (eval $ac_compile) 2>conftest.er1 8461 ac_status=$? 8462 grep -v '^ *+' conftest.er1 >conftest.err 8463 rm -f conftest.er1 8464 cat conftest.err >&5 8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8466 (exit $ac_status); } && 8467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8469 (eval $ac_try) 2>&5 8470 ac_status=$? 8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8472 (exit $ac_status); }; } && 8473 { ac_try='test -s conftest.$ac_objext' 8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8475 (eval $ac_try) 2>&5 8476 ac_status=$? 8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8478 (exit $ac_status); }; }; then 8479 ac_cv_have_decl__snwprintf=yes 8480else 8481 echo "$as_me: failed program was:" >&5 8482sed 's/^/| /' conftest.$ac_ext >&5 8483 8484ac_cv_have_decl__snwprintf=no 8485fi 8486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8487fi 8488echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 8489echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 8490 if test $ac_cv_have_decl__snwprintf = yes; then 8491 gt_value=1 8492 else 8493 gt_value=0 8494 fi 8495 8496cat >>confdefs.h <<_ACEOF 8497#define HAVE_DECL__SNWPRINTF $gt_value 8498_ACEOF 8499 8500 8501 8502 8503 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 8504echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 8505if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 8506 echo $ECHO_N "(cached) $ECHO_C" >&6 8507else 8508 cat >conftest.$ac_ext <<_ACEOF 8509/* confdefs.h. */ 8510_ACEOF 8511cat confdefs.h >>conftest.$ac_ext 8512cat >>conftest.$ac_ext <<_ACEOF 8513/* end confdefs.h. */ 8514#include <stdio.h> 8515int 8516main () 8517{ 8518 8519#ifndef feof_unlocked 8520 char *p = (char *) feof_unlocked; 8521#endif 8522 8523 ; 8524 return 0; 8525} 8526_ACEOF 8527rm -f conftest.$ac_objext 8528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8529 (eval $ac_compile) 2>conftest.er1 8530 ac_status=$? 8531 grep -v '^ *+' conftest.er1 >conftest.err 8532 rm -f conftest.er1 8533 cat conftest.err >&5 8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8535 (exit $ac_status); } && 8536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8538 (eval $ac_try) 2>&5 8539 ac_status=$? 8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8541 (exit $ac_status); }; } && 8542 { ac_try='test -s conftest.$ac_objext' 8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8544 (eval $ac_try) 2>&5 8545 ac_status=$? 8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8547 (exit $ac_status); }; }; then 8548 ac_cv_have_decl_feof_unlocked=yes 8549else 8550 echo "$as_me: failed program was:" >&5 8551sed 's/^/| /' conftest.$ac_ext >&5 8552 8553ac_cv_have_decl_feof_unlocked=no 8554fi 8555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8556fi 8557echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 8558echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 8559 if test $ac_cv_have_decl_feof_unlocked = yes; then 8560 gt_value=1 8561 else 8562 gt_value=0 8563 fi 8564 8565cat >>confdefs.h <<_ACEOF 8566#define HAVE_DECL_FEOF_UNLOCKED $gt_value 8567_ACEOF 8568 8569 8570 8571 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 8572echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 8573if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 8574 echo $ECHO_N "(cached) $ECHO_C" >&6 8575else 8576 cat >conftest.$ac_ext <<_ACEOF 8577/* confdefs.h. */ 8578_ACEOF 8579cat confdefs.h >>conftest.$ac_ext 8580cat >>conftest.$ac_ext <<_ACEOF 8581/* end confdefs.h. */ 8582#include <stdio.h> 8583int 8584main () 8585{ 8586 8587#ifndef fgets_unlocked 8588 char *p = (char *) fgets_unlocked; 8589#endif 8590 8591 ; 8592 return 0; 8593} 8594_ACEOF 8595rm -f conftest.$ac_objext 8596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8597 (eval $ac_compile) 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); } && 8604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8606 (eval $ac_try) 2>&5 8607 ac_status=$? 8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8609 (exit $ac_status); }; } && 8610 { ac_try='test -s conftest.$ac_objext' 8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8612 (eval $ac_try) 2>&5 8613 ac_status=$? 8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8615 (exit $ac_status); }; }; then 8616 ac_cv_have_decl_fgets_unlocked=yes 8617else 8618 echo "$as_me: failed program was:" >&5 8619sed 's/^/| /' conftest.$ac_ext >&5 8620 8621ac_cv_have_decl_fgets_unlocked=no 8622fi 8623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8624fi 8625echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 8626echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 8627 if test $ac_cv_have_decl_fgets_unlocked = yes; then 8628 gt_value=1 8629 else 8630 gt_value=0 8631 fi 8632 8633cat >>confdefs.h <<_ACEOF 8634#define HAVE_DECL_FGETS_UNLOCKED $gt_value 8635_ACEOF 8636 8637 8638 8639 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 8640echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 8641if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 8642 echo $ECHO_N "(cached) $ECHO_C" >&6 8643else 8644 cat >conftest.$ac_ext <<_ACEOF 8645/* confdefs.h. */ 8646_ACEOF 8647cat confdefs.h >>conftest.$ac_ext 8648cat >>conftest.$ac_ext <<_ACEOF 8649/* end confdefs.h. */ 8650#include <stdio.h> 8651int 8652main () 8653{ 8654 8655#ifndef getc_unlocked 8656 char *p = (char *) getc_unlocked; 8657#endif 8658 8659 ; 8660 return 0; 8661} 8662_ACEOF 8663rm -f conftest.$ac_objext 8664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8665 (eval $ac_compile) 2>conftest.er1 8666 ac_status=$? 8667 grep -v '^ *+' conftest.er1 >conftest.err 8668 rm -f conftest.er1 8669 cat conftest.err >&5 8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8671 (exit $ac_status); } && 8672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8674 (eval $ac_try) 2>&5 8675 ac_status=$? 8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8677 (exit $ac_status); }; } && 8678 { ac_try='test -s conftest.$ac_objext' 8679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8680 (eval $ac_try) 2>&5 8681 ac_status=$? 8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8683 (exit $ac_status); }; }; then 8684 ac_cv_have_decl_getc_unlocked=yes 8685else 8686 echo "$as_me: failed program was:" >&5 8687sed 's/^/| /' conftest.$ac_ext >&5 8688 8689ac_cv_have_decl_getc_unlocked=no 8690fi 8691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8692fi 8693echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 8694echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 8695 if test $ac_cv_have_decl_getc_unlocked = yes; then 8696 gt_value=1 8697 else 8698 gt_value=0 8699 fi 8700 8701cat >>confdefs.h <<_ACEOF 8702#define HAVE_DECL_GETC_UNLOCKED $gt_value 8703_ACEOF 8704 8705 8706 8707 case $gt_cv_func_printf_posix in 8708 *yes) HAVE_POSIX_PRINTF=1 ;; 8709 *) HAVE_POSIX_PRINTF=0 ;; 8710 esac 8711 8712 if test "$ac_cv_func_asprintf" = yes; then 8713 HAVE_ASPRINTF=1 8714 else 8715 HAVE_ASPRINTF=0 8716 fi 8717 8718 if test "$ac_cv_func_snprintf" = yes; then 8719 HAVE_SNPRINTF=1 8720 else 8721 HAVE_SNPRINTF=0 8722 fi 8723 8724 if test "$ac_cv_func_wprintf" = yes; then 8725 HAVE_WPRINTF=1 8726 else 8727 HAVE_WPRINTF=0 8728 fi 8729 8730 8731 8732 8733 8734 8735 8736 am_save_CPPFLAGS="$CPPFLAGS" 8737 8738 for element in $INCICONV; do 8739 haveit= 8740 for x in $CPPFLAGS; do 8741 8742 acl_save_prefix="$prefix" 8743 prefix="$acl_final_prefix" 8744 acl_save_exec_prefix="$exec_prefix" 8745 exec_prefix="$acl_final_exec_prefix" 8746 eval x=\"$x\" 8747 exec_prefix="$acl_save_exec_prefix" 8748 prefix="$acl_save_prefix" 8749 8750 if test "X$x" = "X$element"; then 8751 haveit=yes 8752 break 8753 fi 8754 done 8755 if test -z "$haveit"; then 8756 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8757 fi 8758 done 8759 8760 8761 echo "$as_me:$LINENO: checking for iconv" >&5 8762echo $ECHO_N "checking for iconv... $ECHO_C" >&6 8763if test "${am_cv_func_iconv+set}" = set; then 8764 echo $ECHO_N "(cached) $ECHO_C" >&6 8765else 8766 8767 am_cv_func_iconv="no, consider installing GNU libiconv" 8768 am_cv_lib_iconv=no 8769 cat >conftest.$ac_ext <<_ACEOF 8770/* confdefs.h. */ 8771_ACEOF 8772cat confdefs.h >>conftest.$ac_ext 8773cat >>conftest.$ac_ext <<_ACEOF 8774/* end confdefs.h. */ 8775#include <stdlib.h> 8776#include <iconv.h> 8777int 8778main () 8779{ 8780iconv_t cd = iconv_open("",""); 8781 iconv(cd,NULL,NULL,NULL,NULL); 8782 iconv_close(cd); 8783 ; 8784 return 0; 8785} 8786_ACEOF 8787rm -f conftest.$ac_objext conftest$ac_exeext 8788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8789 (eval $ac_link) 2>conftest.er1 8790 ac_status=$? 8791 grep -v '^ *+' conftest.er1 >conftest.err 8792 rm -f conftest.er1 8793 cat conftest.err >&5 8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8795 (exit $ac_status); } && 8796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8798 (eval $ac_try) 2>&5 8799 ac_status=$? 8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8801 (exit $ac_status); }; } && 8802 { ac_try='test -s conftest$ac_exeext' 8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8804 (eval $ac_try) 2>&5 8805 ac_status=$? 8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8807 (exit $ac_status); }; }; then 8808 am_cv_func_iconv=yes 8809else 8810 echo "$as_me: failed program was:" >&5 8811sed 's/^/| /' conftest.$ac_ext >&5 8812 8813fi 8814rm -f conftest.err conftest.$ac_objext \ 8815 conftest$ac_exeext conftest.$ac_ext 8816 if test "$am_cv_func_iconv" != yes; then 8817 am_save_LIBS="$LIBS" 8818 LIBS="$LIBS $LIBICONV" 8819 cat >conftest.$ac_ext <<_ACEOF 8820/* confdefs.h. */ 8821_ACEOF 8822cat confdefs.h >>conftest.$ac_ext 8823cat >>conftest.$ac_ext <<_ACEOF 8824/* end confdefs.h. */ 8825#include <stdlib.h> 8826#include <iconv.h> 8827int 8828main () 8829{ 8830iconv_t cd = iconv_open("",""); 8831 iconv(cd,NULL,NULL,NULL,NULL); 8832 iconv_close(cd); 8833 ; 8834 return 0; 8835} 8836_ACEOF 8837rm -f conftest.$ac_objext conftest$ac_exeext 8838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8839 (eval $ac_link) 2>conftest.er1 8840 ac_status=$? 8841 grep -v '^ *+' conftest.er1 >conftest.err 8842 rm -f conftest.er1 8843 cat conftest.err >&5 8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8845 (exit $ac_status); } && 8846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8848 (eval $ac_try) 2>&5 8849 ac_status=$? 8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8851 (exit $ac_status); }; } && 8852 { ac_try='test -s conftest$ac_exeext' 8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8854 (eval $ac_try) 2>&5 8855 ac_status=$? 8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8857 (exit $ac_status); }; }; then 8858 am_cv_lib_iconv=yes 8859 am_cv_func_iconv=yes 8860else 8861 echo "$as_me: failed program was:" >&5 8862sed 's/^/| /' conftest.$ac_ext >&5 8863 8864fi 8865rm -f conftest.err conftest.$ac_objext \ 8866 conftest$ac_exeext conftest.$ac_ext 8867 LIBS="$am_save_LIBS" 8868 fi 8869 8870fi 8871echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 8872echo "${ECHO_T}$am_cv_func_iconv" >&6 8873 if test "$am_cv_func_iconv" = yes; then 8874 8875cat >>confdefs.h <<\_ACEOF 8876#define HAVE_ICONV 1 8877_ACEOF 8878 8879 fi 8880 if test "$am_cv_lib_iconv" = yes; then 8881 echo "$as_me:$LINENO: checking how to link with libiconv" >&5 8882echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 8883 echo "$as_me:$LINENO: result: $LIBICONV" >&5 8884echo "${ECHO_T}$LIBICONV" >&6 8885 else 8886 CPPFLAGS="$am_save_CPPFLAGS" 8887 LIBICONV= 8888 LTLIBICONV= 8889 fi 8890 8891 8892 8893 if test "$am_cv_func_iconv" = yes; then 8894 echo "$as_me:$LINENO: checking for iconv declaration" >&5 8895echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 8896 if test "${am_cv_proto_iconv+set}" = set; then 8897 echo $ECHO_N "(cached) $ECHO_C" >&6 8898else 8899 8900 cat >conftest.$ac_ext <<_ACEOF 8901/* confdefs.h. */ 8902_ACEOF 8903cat confdefs.h >>conftest.$ac_ext 8904cat >>conftest.$ac_ext <<_ACEOF 8905/* end confdefs.h. */ 8906 8907#include <stdlib.h> 8908#include <iconv.h> 8909extern 8910#ifdef __cplusplus 8911"C" 8912#endif 8913#if defined(__STDC__) || defined(__cplusplus) 8914size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 8915#else 8916size_t iconv(); 8917#endif 8918 8919int 8920main () 8921{ 8922 8923 ; 8924 return 0; 8925} 8926_ACEOF 8927rm -f conftest.$ac_objext 8928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8929 (eval $ac_compile) 2>conftest.er1 8930 ac_status=$? 8931 grep -v '^ *+' conftest.er1 >conftest.err 8932 rm -f conftest.er1 8933 cat conftest.err >&5 8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8935 (exit $ac_status); } && 8936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8938 (eval $ac_try) 2>&5 8939 ac_status=$? 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8941 (exit $ac_status); }; } && 8942 { ac_try='test -s conftest.$ac_objext' 8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8944 (eval $ac_try) 2>&5 8945 ac_status=$? 8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8947 (exit $ac_status); }; }; then 8948 am_cv_proto_iconv_arg1="" 8949else 8950 echo "$as_me: failed program was:" >&5 8951sed 's/^/| /' conftest.$ac_ext >&5 8952 8953am_cv_proto_iconv_arg1="const" 8954fi 8955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8956 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);" 8957fi 8958 8959 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 8960 echo "$as_me:$LINENO: result: ${ac_t:- 8961 }$am_cv_proto_iconv" >&5 8962echo "${ECHO_T}${ac_t:- 8963 }$am_cv_proto_iconv" >&6 8964 8965cat >>confdefs.h <<_ACEOF 8966#define ICONV_CONST $am_cv_proto_iconv_arg1 8967_ACEOF 8968 8969 fi 8970 8971 8972 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 8973echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 8974if test "${am_cv_langinfo_codeset+set}" = set; then 8975 echo $ECHO_N "(cached) $ECHO_C" >&6 8976else 8977 cat >conftest.$ac_ext <<_ACEOF 8978/* confdefs.h. */ 8979_ACEOF 8980cat confdefs.h >>conftest.$ac_ext 8981cat >>conftest.$ac_ext <<_ACEOF 8982/* end confdefs.h. */ 8983#include <langinfo.h> 8984int 8985main () 8986{ 8987char* cs = nl_langinfo(CODESET); 8988 ; 8989 return 0; 8990} 8991_ACEOF 8992rm -f conftest.$ac_objext conftest$ac_exeext 8993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8994 (eval $ac_link) 2>conftest.er1 8995 ac_status=$? 8996 grep -v '^ *+' conftest.er1 >conftest.err 8997 rm -f conftest.er1 8998 cat conftest.err >&5 8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9000 (exit $ac_status); } && 9001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9003 (eval $ac_try) 2>&5 9004 ac_status=$? 9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9006 (exit $ac_status); }; } && 9007 { ac_try='test -s conftest$ac_exeext' 9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9009 (eval $ac_try) 2>&5 9010 ac_status=$? 9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9012 (exit $ac_status); }; }; then 9013 am_cv_langinfo_codeset=yes 9014else 9015 echo "$as_me: failed program was:" >&5 9016sed 's/^/| /' conftest.$ac_ext >&5 9017 9018am_cv_langinfo_codeset=no 9019fi 9020rm -f conftest.err conftest.$ac_objext \ 9021 conftest$ac_exeext conftest.$ac_ext 9022 9023fi 9024echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 9025echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 9026 if test $am_cv_langinfo_codeset = yes; then 9027 9028cat >>confdefs.h <<\_ACEOF 9029#define HAVE_LANGINFO_CODESET 1 9030_ACEOF 9031 9032 fi 9033 9034 if test $ac_cv_header_locale_h = yes; then 9035 9036 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 9037echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 9038if test "${am_cv_val_LC_MESSAGES+set}" = set; then 9039 echo $ECHO_N "(cached) $ECHO_C" >&6 9040else 9041 cat >conftest.$ac_ext <<_ACEOF 9042/* confdefs.h. */ 9043_ACEOF 9044cat confdefs.h >>conftest.$ac_ext 9045cat >>conftest.$ac_ext <<_ACEOF 9046/* end confdefs.h. */ 9047#include <locale.h> 9048int 9049main () 9050{ 9051return LC_MESSAGES 9052 ; 9053 return 0; 9054} 9055_ACEOF 9056rm -f conftest.$ac_objext conftest$ac_exeext 9057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9058 (eval $ac_link) 2>conftest.er1 9059 ac_status=$? 9060 grep -v '^ *+' conftest.er1 >conftest.err 9061 rm -f conftest.er1 9062 cat conftest.err >&5 9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9064 (exit $ac_status); } && 9065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9067 (eval $ac_try) 2>&5 9068 ac_status=$? 9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9070 (exit $ac_status); }; } && 9071 { ac_try='test -s conftest$ac_exeext' 9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9073 (eval $ac_try) 2>&5 9074 ac_status=$? 9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9076 (exit $ac_status); }; }; then 9077 am_cv_val_LC_MESSAGES=yes 9078else 9079 echo "$as_me: failed program was:" >&5 9080sed 's/^/| /' conftest.$ac_ext >&5 9081 9082am_cv_val_LC_MESSAGES=no 9083fi 9084rm -f conftest.err conftest.$ac_objext \ 9085 conftest$ac_exeext conftest.$ac_ext 9086fi 9087echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 9088echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 9089 if test $am_cv_val_LC_MESSAGES = yes; then 9090 9091cat >>confdefs.h <<\_ACEOF 9092#define HAVE_LC_MESSAGES 1 9093_ACEOF 9094 9095 fi 9096 9097 fi 9098 9099 for ac_prog in bison 9100do 9101 # Extract the first word of "$ac_prog", so it can be a program name with args. 9102set dummy $ac_prog; ac_word=$2 9103echo "$as_me:$LINENO: checking for $ac_word" >&5 9104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9105if test "${ac_cv_prog_INTLBISON+set}" = set; then 9106 echo $ECHO_N "(cached) $ECHO_C" >&6 9107else 9108 if test -n "$INTLBISON"; then 9109 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 9110else 9111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9112for as_dir in $PATH 9113do 9114 IFS=$as_save_IFS 9115 test -z "$as_dir" && as_dir=. 9116 for ac_exec_ext in '' $ac_executable_extensions; do 9117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9118 ac_cv_prog_INTLBISON="$ac_prog" 9119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9120 break 2 9121 fi 9122done 9123done 9124 9125fi 9126fi 9127INTLBISON=$ac_cv_prog_INTLBISON 9128if test -n "$INTLBISON"; then 9129 echo "$as_me:$LINENO: result: $INTLBISON" >&5 9130echo "${ECHO_T}$INTLBISON" >&6 9131else 9132 echo "$as_me:$LINENO: result: no" >&5 9133echo "${ECHO_T}no" >&6 9134fi 9135 9136 test -n "$INTLBISON" && break 9137done 9138 9139 if test -z "$INTLBISON"; then 9140 ac_verc_fail=yes 9141 else 9142 echo "$as_me:$LINENO: checking version of bison" >&5 9143echo $ECHO_N "checking version of bison... $ECHO_C" >&6 9144 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 9145 case $ac_prog_version in 9146 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 9147 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 9148 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 9149 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 9150 esac 9151 echo "$as_me:$LINENO: result: $ac_prog_version" >&5 9152echo "${ECHO_T}$ac_prog_version" >&6 9153 fi 9154 if test $ac_verc_fail = yes; then 9155 INTLBISON=: 9156 fi 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 echo "$as_me:$LINENO: checking whether NLS is requested" >&5 9174echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 9175 # Check whether --enable-nls or --disable-nls was given. 9176if test "${enable_nls+set}" = set; then 9177 enableval="$enable_nls" 9178 USE_NLS=$enableval 9179else 9180 USE_NLS=yes 9181fi; 9182 echo "$as_me:$LINENO: result: $USE_NLS" >&5 9183echo "${ECHO_T}$USE_NLS" >&6 9184 9185 9186 9187 9188 BUILD_INCLUDED_LIBINTL=no 9189 USE_INCLUDED_LIBINTL=no 9190 9191 LIBINTL= 9192 LTLIBINTL= 9193 POSUB= 9194 9195 if test "$USE_NLS" = "yes"; then 9196 gt_use_preinstalled_gnugettext=no 9197 9198 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 9199echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 9200 9201# Check whether --with-included-gettext or --without-included-gettext was given. 9202if test "${with_included_gettext+set}" = set; then 9203 withval="$with_included_gettext" 9204 nls_cv_force_use_gnu_gettext=$withval 9205else 9206 nls_cv_force_use_gnu_gettext=no 9207fi; 9208 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 9209echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 9210 9211 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 9212 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 9213 9214 9215 9216 9217 9218 9219 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 9220echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 9221if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 9222 echo $ECHO_N "(cached) $ECHO_C" >&6 9223else 9224 cat >conftest.$ac_ext <<_ACEOF 9225/* confdefs.h. */ 9226_ACEOF 9227cat confdefs.h >>conftest.$ac_ext 9228cat >>conftest.$ac_ext <<_ACEOF 9229/* end confdefs.h. */ 9230#include <libintl.h> 9231extern int _nl_msg_cat_cntr; 9232extern int *_nl_domain_bindings; 9233int 9234main () 9235{ 9236bindtextdomain ("", ""); 9237return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 9238 ; 9239 return 0; 9240} 9241_ACEOF 9242rm -f conftest.$ac_objext conftest$ac_exeext 9243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9244 (eval $ac_link) 2>conftest.er1 9245 ac_status=$? 9246 grep -v '^ *+' conftest.er1 >conftest.err 9247 rm -f conftest.er1 9248 cat conftest.err >&5 9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9250 (exit $ac_status); } && 9251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9253 (eval $ac_try) 2>&5 9254 ac_status=$? 9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9256 (exit $ac_status); }; } && 9257 { ac_try='test -s conftest$ac_exeext' 9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9259 (eval $ac_try) 2>&5 9260 ac_status=$? 9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9262 (exit $ac_status); }; }; then 9263 gt_cv_func_gnugettext1_libc=yes 9264else 9265 echo "$as_me: failed program was:" >&5 9266sed 's/^/| /' conftest.$ac_ext >&5 9267 9268gt_cv_func_gnugettext1_libc=no 9269fi 9270rm -f conftest.err conftest.$ac_objext \ 9271 conftest$ac_exeext conftest.$ac_ext 9272fi 9273echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 9274echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 9275 9276 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 9277 9278 9279 9280 use_additional=yes 9281 9282 acl_save_prefix="$prefix" 9283 prefix="$acl_final_prefix" 9284 acl_save_exec_prefix="$exec_prefix" 9285 exec_prefix="$acl_final_exec_prefix" 9286 9287 eval additional_includedir=\"$includedir\" 9288 eval additional_libdir=\"$libdir\" 9289 9290 exec_prefix="$acl_save_exec_prefix" 9291 prefix="$acl_save_prefix" 9292 9293 9294# Check whether --with-libintl-prefix or --without-libintl-prefix was given. 9295if test "${with_libintl_prefix+set}" = set; then 9296 withval="$with_libintl_prefix" 9297 9298 if test "X$withval" = "Xno"; then 9299 use_additional=no 9300 else 9301 if test "X$withval" = "X"; then 9302 9303 acl_save_prefix="$prefix" 9304 prefix="$acl_final_prefix" 9305 acl_save_exec_prefix="$exec_prefix" 9306 exec_prefix="$acl_final_exec_prefix" 9307 9308 eval additional_includedir=\"$includedir\" 9309 eval additional_libdir=\"$libdir\" 9310 9311 exec_prefix="$acl_save_exec_prefix" 9312 prefix="$acl_save_prefix" 9313 9314 else 9315 additional_includedir="$withval/include" 9316 additional_libdir="$withval/lib" 9317 fi 9318 fi 9319 9320fi; 9321 LIBINTL= 9322 LTLIBINTL= 9323 INCINTL= 9324 rpathdirs= 9325 ltrpathdirs= 9326 names_already_handled= 9327 names_next_round='intl ' 9328 while test -n "$names_next_round"; do 9329 names_this_round="$names_next_round" 9330 names_next_round= 9331 for name in $names_this_round; do 9332 already_handled= 9333 for n in $names_already_handled; do 9334 if test "$n" = "$name"; then 9335 already_handled=yes 9336 break 9337 fi 9338 done 9339 if test -z "$already_handled"; then 9340 names_already_handled="$names_already_handled $name" 9341 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 9342 eval value=\"\$HAVE_LIB$uppername\" 9343 if test -n "$value"; then 9344 if test "$value" = yes; then 9345 eval value=\"\$LIB$uppername\" 9346 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 9347 eval value=\"\$LTLIB$uppername\" 9348 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 9349 else 9350 : 9351 fi 9352 else 9353 found_dir= 9354 found_la= 9355 found_so= 9356 found_a= 9357 if test $use_additional = yes; then 9358 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 9359 found_dir="$additional_libdir" 9360 found_so="$additional_libdir/lib$name.$shlibext" 9361 if test -f "$additional_libdir/lib$name.la"; then 9362 found_la="$additional_libdir/lib$name.la" 9363 fi 9364 else 9365 if test -f "$additional_libdir/lib$name.$libext"; then 9366 found_dir="$additional_libdir" 9367 found_a="$additional_libdir/lib$name.$libext" 9368 if test -f "$additional_libdir/lib$name.la"; then 9369 found_la="$additional_libdir/lib$name.la" 9370 fi 9371 fi 9372 fi 9373 fi 9374 if test "X$found_dir" = "X"; then 9375 for x in $LDFLAGS $LTLIBINTL; do 9376 9377 acl_save_prefix="$prefix" 9378 prefix="$acl_final_prefix" 9379 acl_save_exec_prefix="$exec_prefix" 9380 exec_prefix="$acl_final_exec_prefix" 9381 eval x=\"$x\" 9382 exec_prefix="$acl_save_exec_prefix" 9383 prefix="$acl_save_prefix" 9384 9385 case "$x" in 9386 -L*) 9387 dir=`echo "X$x" | sed -e 's/^X-L//'` 9388 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 9389 found_dir="$dir" 9390 found_so="$dir/lib$name.$shlibext" 9391 if test -f "$dir/lib$name.la"; then 9392 found_la="$dir/lib$name.la" 9393 fi 9394 else 9395 if test -f "$dir/lib$name.$libext"; then 9396 found_dir="$dir" 9397 found_a="$dir/lib$name.$libext" 9398 if test -f "$dir/lib$name.la"; then 9399 found_la="$dir/lib$name.la" 9400 fi 9401 fi 9402 fi 9403 ;; 9404 esac 9405 if test "X$found_dir" != "X"; then 9406 break 9407 fi 9408 done 9409 fi 9410 if test "X$found_dir" != "X"; then 9411 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 9412 if test "X$found_so" != "X"; then 9413 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 9414 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9415 else 9416 haveit= 9417 for x in $ltrpathdirs; do 9418 if test "X$x" = "X$found_dir"; then 9419 haveit=yes 9420 break 9421 fi 9422 done 9423 if test -z "$haveit"; then 9424 ltrpathdirs="$ltrpathdirs $found_dir" 9425 fi 9426 if test "$hardcode_direct" = yes; then 9427 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9428 else 9429 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 9430 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9431 haveit= 9432 for x in $rpathdirs; do 9433 if test "X$x" = "X$found_dir"; then 9434 haveit=yes 9435 break 9436 fi 9437 done 9438 if test -z "$haveit"; then 9439 rpathdirs="$rpathdirs $found_dir" 9440 fi 9441 else 9442 haveit= 9443 for x in $LDFLAGS $LIBINTL; do 9444 9445 acl_save_prefix="$prefix" 9446 prefix="$acl_final_prefix" 9447 acl_save_exec_prefix="$exec_prefix" 9448 exec_prefix="$acl_final_exec_prefix" 9449 eval x=\"$x\" 9450 exec_prefix="$acl_save_exec_prefix" 9451 prefix="$acl_save_prefix" 9452 9453 if test "X$x" = "X-L$found_dir"; then 9454 haveit=yes 9455 break 9456 fi 9457 done 9458 if test -z "$haveit"; then 9459 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 9460 fi 9461 if test "$hardcode_minus_L" != no; then 9462 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9463 else 9464 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 9465 fi 9466 fi 9467 fi 9468 fi 9469 else 9470 if test "X$found_a" != "X"; then 9471 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 9472 else 9473 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 9474 fi 9475 fi 9476 additional_includedir= 9477 case "$found_dir" in 9478 */lib | */lib/) 9479 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 9480 additional_includedir="$basedir/include" 9481 ;; 9482 esac 9483 if test "X$additional_includedir" != "X"; then 9484 if test "X$additional_includedir" != "X/usr/include"; then 9485 haveit= 9486 if test "X$additional_includedir" = "X/usr/local/include"; then 9487 if test -n "$GCC"; then 9488 case $host_os in 9489 linux*) haveit=yes;; 9490 esac 9491 fi 9492 fi 9493 if test -z "$haveit"; then 9494 for x in $CPPFLAGS $INCINTL; do 9495 9496 acl_save_prefix="$prefix" 9497 prefix="$acl_final_prefix" 9498 acl_save_exec_prefix="$exec_prefix" 9499 exec_prefix="$acl_final_exec_prefix" 9500 eval x=\"$x\" 9501 exec_prefix="$acl_save_exec_prefix" 9502 prefix="$acl_save_prefix" 9503 9504 if test "X$x" = "X-I$additional_includedir"; then 9505 haveit=yes 9506 break 9507 fi 9508 done 9509 if test -z "$haveit"; then 9510 if test -d "$additional_includedir"; then 9511 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 9512 fi 9513 fi 9514 fi 9515 fi 9516 fi 9517 if test -n "$found_la"; then 9518 save_libdir="$libdir" 9519 case "$found_la" in 9520 */* | *\\*) . "$found_la" ;; 9521 *) . "./$found_la" ;; 9522 esac 9523 libdir="$save_libdir" 9524 for dep in $dependency_libs; do 9525 case "$dep" in 9526 -L*) 9527 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9528 if test "X$additional_libdir" != "X/usr/lib"; then 9529 haveit= 9530 if test "X$additional_libdir" = "X/usr/local/lib"; then 9531 if test -n "$GCC"; then 9532 case $host_os in 9533 linux*) haveit=yes;; 9534 esac 9535 fi 9536 fi 9537 if test -z "$haveit"; then 9538 haveit= 9539 for x in $LDFLAGS $LIBINTL; do 9540 9541 acl_save_prefix="$prefix" 9542 prefix="$acl_final_prefix" 9543 acl_save_exec_prefix="$exec_prefix" 9544 exec_prefix="$acl_final_exec_prefix" 9545 eval x=\"$x\" 9546 exec_prefix="$acl_save_exec_prefix" 9547 prefix="$acl_save_prefix" 9548 9549 if test "X$x" = "X-L$additional_libdir"; then 9550 haveit=yes 9551 break 9552 fi 9553 done 9554 if test -z "$haveit"; then 9555 if test -d "$additional_libdir"; then 9556 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 9557 fi 9558 fi 9559 haveit= 9560 for x in $LDFLAGS $LTLIBINTL; do 9561 9562 acl_save_prefix="$prefix" 9563 prefix="$acl_final_prefix" 9564 acl_save_exec_prefix="$exec_prefix" 9565 exec_prefix="$acl_final_exec_prefix" 9566 eval x=\"$x\" 9567 exec_prefix="$acl_save_exec_prefix" 9568 prefix="$acl_save_prefix" 9569 9570 if test "X$x" = "X-L$additional_libdir"; then 9571 haveit=yes 9572 break 9573 fi 9574 done 9575 if test -z "$haveit"; then 9576 if test -d "$additional_libdir"; then 9577 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 9578 fi 9579 fi 9580 fi 9581 fi 9582 ;; 9583 -R*) 9584 dir=`echo "X$dep" | sed -e 's/^X-R//'` 9585 if test "$enable_rpath" != no; then 9586 haveit= 9587 for x in $rpathdirs; do 9588 if test "X$x" = "X$dir"; then 9589 haveit=yes 9590 break 9591 fi 9592 done 9593 if test -z "$haveit"; then 9594 rpathdirs="$rpathdirs $dir" 9595 fi 9596 haveit= 9597 for x in $ltrpathdirs; do 9598 if test "X$x" = "X$dir"; then 9599 haveit=yes 9600 break 9601 fi 9602 done 9603 if test -z "$haveit"; then 9604 ltrpathdirs="$ltrpathdirs $dir" 9605 fi 9606 fi 9607 ;; 9608 -l*) 9609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 9610 ;; 9611 *.la) 9612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 9613 ;; 9614 *) 9615 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 9616 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 9617 ;; 9618 esac 9619 done 9620 fi 9621 else 9622 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 9623 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 9624 fi 9625 fi 9626 fi 9627 done 9628 done 9629 if test "X$rpathdirs" != "X"; then 9630 if test -n "$hardcode_libdir_separator"; then 9631 alldirs= 9632 for found_dir in $rpathdirs; do 9633 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 9634 done 9635 acl_save_libdir="$libdir" 9636 libdir="$alldirs" 9637 eval flag=\"$hardcode_libdir_flag_spec\" 9638 libdir="$acl_save_libdir" 9639 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 9640 else 9641 for found_dir in $rpathdirs; do 9642 acl_save_libdir="$libdir" 9643 libdir="$found_dir" 9644 eval flag=\"$hardcode_libdir_flag_spec\" 9645 libdir="$acl_save_libdir" 9646 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 9647 done 9648 fi 9649 fi 9650 if test "X$ltrpathdirs" != "X"; then 9651 for found_dir in $ltrpathdirs; do 9652 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 9653 done 9654 fi 9655 9656 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 9657echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 9658if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 9659 echo $ECHO_N "(cached) $ECHO_C" >&6 9660else 9661 gt_save_CPPFLAGS="$CPPFLAGS" 9662 CPPFLAGS="$CPPFLAGS $INCINTL" 9663 gt_save_LIBS="$LIBS" 9664 LIBS="$LIBS $LIBINTL" 9665 cat >conftest.$ac_ext <<_ACEOF 9666/* confdefs.h. */ 9667_ACEOF 9668cat confdefs.h >>conftest.$ac_ext 9669cat >>conftest.$ac_ext <<_ACEOF 9670/* end confdefs.h. */ 9671#include <libintl.h> 9672extern int _nl_msg_cat_cntr; 9673extern 9674#ifdef __cplusplus 9675"C" 9676#endif 9677const char *_nl_expand_alias (); 9678int 9679main () 9680{ 9681bindtextdomain ("", ""); 9682return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 9683 ; 9684 return 0; 9685} 9686_ACEOF 9687rm -f conftest.$ac_objext conftest$ac_exeext 9688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9689 (eval $ac_link) 2>conftest.er1 9690 ac_status=$? 9691 grep -v '^ *+' conftest.er1 >conftest.err 9692 rm -f conftest.er1 9693 cat conftest.err >&5 9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9695 (exit $ac_status); } && 9696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9698 (eval $ac_try) 2>&5 9699 ac_status=$? 9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9701 (exit $ac_status); }; } && 9702 { ac_try='test -s conftest$ac_exeext' 9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9704 (eval $ac_try) 2>&5 9705 ac_status=$? 9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9707 (exit $ac_status); }; }; then 9708 gt_cv_func_gnugettext1_libintl=yes 9709else 9710 echo "$as_me: failed program was:" >&5 9711sed 's/^/| /' conftest.$ac_ext >&5 9712 9713gt_cv_func_gnugettext1_libintl=no 9714fi 9715rm -f conftest.err conftest.$ac_objext \ 9716 conftest$ac_exeext conftest.$ac_ext 9717 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 9718 LIBS="$LIBS $LIBICONV" 9719 cat >conftest.$ac_ext <<_ACEOF 9720/* confdefs.h. */ 9721_ACEOF 9722cat confdefs.h >>conftest.$ac_ext 9723cat >>conftest.$ac_ext <<_ACEOF 9724/* end confdefs.h. */ 9725#include <libintl.h> 9726extern int _nl_msg_cat_cntr; 9727extern 9728#ifdef __cplusplus 9729"C" 9730#endif 9731const char *_nl_expand_alias (); 9732int 9733main () 9734{ 9735bindtextdomain ("", ""); 9736return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 9737 ; 9738 return 0; 9739} 9740_ACEOF 9741rm -f conftest.$ac_objext conftest$ac_exeext 9742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9743 (eval $ac_link) 2>conftest.er1 9744 ac_status=$? 9745 grep -v '^ *+' conftest.er1 >conftest.err 9746 rm -f conftest.er1 9747 cat conftest.err >&5 9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9749 (exit $ac_status); } && 9750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9752 (eval $ac_try) 2>&5 9753 ac_status=$? 9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9755 (exit $ac_status); }; } && 9756 { ac_try='test -s conftest$ac_exeext' 9757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9758 (eval $ac_try) 2>&5 9759 ac_status=$? 9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9761 (exit $ac_status); }; }; then 9762 LIBINTL="$LIBINTL $LIBICONV" 9763 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 9764 gt_cv_func_gnugettext1_libintl=yes 9765 9766else 9767 echo "$as_me: failed program was:" >&5 9768sed 's/^/| /' conftest.$ac_ext >&5 9769 9770fi 9771rm -f conftest.err conftest.$ac_objext \ 9772 conftest$ac_exeext conftest.$ac_ext 9773 fi 9774 CPPFLAGS="$gt_save_CPPFLAGS" 9775 LIBS="$gt_save_LIBS" 9776fi 9777echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 9778echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 9779 fi 9780 9781 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 9782 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 9783 && test "$PACKAGE" != gettext-runtime \ 9784 && test "$PACKAGE" != gettext-tools; }; then 9785 gt_use_preinstalled_gnugettext=yes 9786 else 9787 LIBINTL= 9788 LTLIBINTL= 9789 INCINTL= 9790 fi 9791 9792 9793 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 9794 nls_cv_use_gnu_gettext=yes 9795 fi 9796 fi 9797 9798 if test "$nls_cv_use_gnu_gettext" = "yes"; then 9799 BUILD_INCLUDED_LIBINTL=yes 9800 USE_INCLUDED_LIBINTL=yes 9801 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 9802 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 9803 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 9804 fi 9805 9806 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 9807 || test "$nls_cv_use_gnu_gettext" = "yes"; then 9808 CATOBJEXT=.gmo 9809 fi 9810 9811 9812 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 9813 || test "$nls_cv_use_gnu_gettext" = "yes"; then 9814 9815cat >>confdefs.h <<\_ACEOF 9816#define ENABLE_NLS 1 9817_ACEOF 9818 9819 else 9820 USE_NLS=no 9821 fi 9822 fi 9823 9824 echo "$as_me:$LINENO: checking whether to use NLS" >&5 9825echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 9826 echo "$as_me:$LINENO: result: $USE_NLS" >&5 9827echo "${ECHO_T}$USE_NLS" >&6 9828 if test "$USE_NLS" = "yes"; then 9829 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 9830echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 9831 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 9832 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 9833 gt_source="external libintl" 9834 else 9835 gt_source="libc" 9836 fi 9837 else 9838 gt_source="included intl directory" 9839 fi 9840 echo "$as_me:$LINENO: result: $gt_source" >&5 9841echo "${ECHO_T}$gt_source" >&6 9842 fi 9843 9844 if test "$USE_NLS" = "yes"; then 9845 9846 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 9847 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 9848 echo "$as_me:$LINENO: checking how to link with libintl" >&5 9849echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 9850 echo "$as_me:$LINENO: result: $LIBINTL" >&5 9851echo "${ECHO_T}$LIBINTL" >&6 9852 9853 for element in $INCINTL; do 9854 haveit= 9855 for x in $CPPFLAGS; do 9856 9857 acl_save_prefix="$prefix" 9858 prefix="$acl_final_prefix" 9859 acl_save_exec_prefix="$exec_prefix" 9860 exec_prefix="$acl_final_exec_prefix" 9861 eval x=\"$x\" 9862 exec_prefix="$acl_save_exec_prefix" 9863 prefix="$acl_save_prefix" 9864 9865 if test "X$x" = "X$element"; then 9866 haveit=yes 9867 break 9868 fi 9869 done 9870 if test -z "$haveit"; then 9871 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9872 fi 9873 done 9874 9875 fi 9876 9877 9878cat >>confdefs.h <<\_ACEOF 9879#define HAVE_GETTEXT 1 9880_ACEOF 9881 9882 9883cat >>confdefs.h <<\_ACEOF 9884#define HAVE_DCGETTEXT 1 9885_ACEOF 9886 9887 fi 9888 9889 POSUB=po 9890 fi 9891 9892 9893 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 9894 BUILD_INCLUDED_LIBINTL=yes 9895 fi 9896 9897 9898 9899 9900 9901 nls_cv_header_intl= 9902 nls_cv_header_libgt= 9903 9904 DATADIRNAME=share 9905 9906 9907 INSTOBJEXT=.mo 9908 9909 9910 GENCAT=gencat 9911 9912 9913 if test "$USE_INCLUDED_LIBINTL" = yes; then 9914 INTLOBJS="\$(GETTOBJS)" 9915 fi 9916 9917 9918 INTL_LIBTOOL_SUFFIX_PREFIX= 9919 9920 9921 9922 INTLLIBS="$LIBINTL" 9923 9924 9925 9926 9927 9928 9929 9930echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9931echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 9932set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 9933if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 9934 echo $ECHO_N "(cached) $ECHO_C" >&6 9935else 9936 cat >conftest.make <<\_ACEOF 9937all: 9938 @echo 'ac_maketemp="$(MAKE)"' 9939_ACEOF 9940# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9941eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 9942if test -n "$ac_maketemp"; then 9943 eval ac_cv_prog_make_${ac_make}_set=yes 9944else 9945 eval ac_cv_prog_make_${ac_make}_set=no 9946fi 9947rm -f conftest.make 9948fi 9949if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 9950 echo "$as_me:$LINENO: result: yes" >&5 9951echo "${ECHO_T}yes" >&6 9952 SET_MAKE= 9953else 9954 echo "$as_me:$LINENO: result: no" >&5 9955echo "${ECHO_T}no" >&6 9956 SET_MAKE="MAKE=${MAKE-make}" 9957fi 9958 9959# Extract the first word of "ln", so it can be a program name with args. 9960set dummy ln; ac_word=$2 9961echo "$as_me:$LINENO: checking for $ac_word" >&5 9962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 9963if test "${ac_cv_path_LN+set}" = set; then 9964 echo $ECHO_N "(cached) $ECHO_C" >&6 9965else 9966 case $LN in 9967 [\\/]* | ?:[\\/]*) 9968 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9969 ;; 9970 *) 9971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9972for as_dir in $PATH 9973do 9974 IFS=$as_save_IFS 9975 test -z "$as_dir" && as_dir=. 9976 for ac_exec_ext in '' $ac_executable_extensions; do 9977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9978 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9980 break 2 9981 fi 9982done 9983done 9984 9985 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 9986 ;; 9987esac 9988fi 9989LN=$ac_cv_path_LN 9990 9991if test -n "$LN"; then 9992 echo "$as_me:$LINENO: result: $LN" >&5 9993echo "${ECHO_T}$LN" >&6 9994else 9995 echo "$as_me:$LINENO: result: no" >&5 9996echo "${ECHO_T}no" >&6 9997fi 9998 9999echo "$as_me:$LINENO: checking whether ln -s works" >&5 10000echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 10001LN_S=$as_ln_s 10002if test "$LN_S" = "ln -s"; then 10003 echo "$as_me:$LINENO: result: yes" >&5 10004echo "${ECHO_T}yes" >&6 10005else 10006 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 10007echo "${ECHO_T}no, using $LN_S" >&6 10008fi 10009 10010# Extract the first word of "mv", so it can be a program name with args. 10011set dummy mv; ac_word=$2 10012echo "$as_me:$LINENO: checking for $ac_word" >&5 10013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10014if test "${ac_cv_path_MV+set}" = set; then 10015 echo $ECHO_N "(cached) $ECHO_C" >&6 10016else 10017 case $MV in 10018 [\\/]* | ?:[\\/]*) 10019 ac_cv_path_MV="$MV" # Let the user override the test with a path. 10020 ;; 10021 *) 10022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10023for as_dir in $PATH 10024do 10025 IFS=$as_save_IFS 10026 test -z "$as_dir" && as_dir=. 10027 for ac_exec_ext in '' $ac_executable_extensions; do 10028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10029 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 10030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10031 break 2 10032 fi 10033done 10034done 10035 10036 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 10037 ;; 10038esac 10039fi 10040MV=$ac_cv_path_MV 10041 10042if test -n "$MV"; then 10043 echo "$as_me:$LINENO: result: $MV" >&5 10044echo "${ECHO_T}$MV" >&6 10045else 10046 echo "$as_me:$LINENO: result: no" >&5 10047echo "${ECHO_T}no" >&6 10048fi 10049 10050# Extract the first word of "cp", so it can be a program name with args. 10051set dummy cp; ac_word=$2 10052echo "$as_me:$LINENO: checking for $ac_word" >&5 10053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10054if test "${ac_cv_path_CP+set}" = set; then 10055 echo $ECHO_N "(cached) $ECHO_C" >&6 10056else 10057 case $CP in 10058 [\\/]* | ?:[\\/]*) 10059 ac_cv_path_CP="$CP" # Let the user override the test with a path. 10060 ;; 10061 *) 10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10063for as_dir in $PATH 10064do 10065 IFS=$as_save_IFS 10066 test -z "$as_dir" && as_dir=. 10067 for ac_exec_ext in '' $ac_executable_extensions; do 10068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10069 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 10070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10071 break 2 10072 fi 10073done 10074done 10075 10076 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 10077 ;; 10078esac 10079fi 10080CP=$ac_cv_path_CP 10081 10082if test -n "$CP"; then 10083 echo "$as_me:$LINENO: result: $CP" >&5 10084echo "${ECHO_T}$CP" >&6 10085else 10086 echo "$as_me:$LINENO: result: no" >&5 10087echo "${ECHO_T}no" >&6 10088fi 10089 10090# Extract the first word of "rm", so it can be a program name with args. 10091set dummy rm; ac_word=$2 10092echo "$as_me:$LINENO: checking for $ac_word" >&5 10093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10094if test "${ac_cv_path_RM+set}" = set; then 10095 echo $ECHO_N "(cached) $ECHO_C" >&6 10096else 10097 case $RM in 10098 [\\/]* | ?:[\\/]*) 10099 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10100 ;; 10101 *) 10102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10103for as_dir in $PATH 10104do 10105 IFS=$as_save_IFS 10106 test -z "$as_dir" && as_dir=. 10107 for ac_exec_ext in '' $ac_executable_extensions; do 10108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10109 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10111 break 2 10112 fi 10113done 10114done 10115 10116 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 10117 ;; 10118esac 10119fi 10120RM=$ac_cv_path_RM 10121 10122if test -n "$RM"; then 10123 echo "$as_me:$LINENO: result: $RM" >&5 10124echo "${ECHO_T}$RM" >&6 10125else 10126 echo "$as_me:$LINENO: result: no" >&5 10127echo "${ECHO_T}no" >&6 10128fi 10129 10130# Extract the first word of "chmod", so it can be a program name with args. 10131set dummy chmod; ac_word=$2 10132echo "$as_me:$LINENO: checking for $ac_word" >&5 10133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10134if test "${ac_cv_path_CHMOD+set}" = set; then 10135 echo $ECHO_N "(cached) $ECHO_C" >&6 10136else 10137 case $CHMOD in 10138 [\\/]* | ?:[\\/]*) 10139 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 10140 ;; 10141 *) 10142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10143for as_dir in $PATH 10144do 10145 IFS=$as_save_IFS 10146 test -z "$as_dir" && as_dir=. 10147 for ac_exec_ext in '' $ac_executable_extensions; do 10148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10149 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 10150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10151 break 2 10152 fi 10153done 10154done 10155 10156 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" 10157 ;; 10158esac 10159fi 10160CHMOD=$ac_cv_path_CHMOD 10161 10162if test -n "$CHMOD"; then 10163 echo "$as_me:$LINENO: result: $CHMOD" >&5 10164echo "${ECHO_T}$CHMOD" >&6 10165else 10166 echo "$as_me:$LINENO: result: no" >&5 10167echo "${ECHO_T}no" >&6 10168fi 10169 10170for ac_prog in gawk mawk nawk awk 10171do 10172 # Extract the first word of "$ac_prog", so it can be a program name with args. 10173set dummy $ac_prog; ac_word=$2 10174echo "$as_me:$LINENO: checking for $ac_word" >&5 10175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10176if test "${ac_cv_prog_AWK+set}" = set; then 10177 echo $ECHO_N "(cached) $ECHO_C" >&6 10178else 10179 if test -n "$AWK"; then 10180 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10181else 10182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10183for as_dir in $PATH 10184do 10185 IFS=$as_save_IFS 10186 test -z "$as_dir" && as_dir=. 10187 for ac_exec_ext in '' $ac_executable_extensions; do 10188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10189 ac_cv_prog_AWK="$ac_prog" 10190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10191 break 2 10192 fi 10193done 10194done 10195 10196fi 10197fi 10198AWK=$ac_cv_prog_AWK 10199if test -n "$AWK"; then 10200 echo "$as_me:$LINENO: result: $AWK" >&5 10201echo "${ECHO_T}$AWK" >&6 10202else 10203 echo "$as_me:$LINENO: result: no" >&5 10204echo "${ECHO_T}no" >&6 10205fi 10206 10207 test -n "$AWK" && break 10208done 10209 10210echo "$as_me:$LINENO: checking for egrep" >&5 10211echo $ECHO_N "checking for egrep... $ECHO_C" >&6 10212if test "${ac_cv_prog_egrep+set}" = set; then 10213 echo $ECHO_N "(cached) $ECHO_C" >&6 10214else 10215 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 10216 then ac_cv_prog_egrep='grep -E' 10217 else ac_cv_prog_egrep='egrep' 10218 fi 10219fi 10220echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 10221echo "${ECHO_T}$ac_cv_prog_egrep" >&6 10222 EGREP=$ac_cv_prog_egrep 10223 10224 10225# Extract the first word of "sed", so it can be a program name with args. 10226set dummy sed; ac_word=$2 10227echo "$as_me:$LINENO: checking for $ac_word" >&5 10228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10229if test "${ac_cv_path_SED+set}" = set; then 10230 echo $ECHO_N "(cached) $ECHO_C" >&6 10231else 10232 case $SED in 10233 [\\/]* | ?:[\\/]*) 10234 ac_cv_path_SED="$SED" # Let the user override the test with a path. 10235 ;; 10236 *) 10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10238for as_dir in $PATH 10239do 10240 IFS=$as_save_IFS 10241 test -z "$as_dir" && as_dir=. 10242 for ac_exec_ext in '' $ac_executable_extensions; do 10243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10244 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 10245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10246 break 2 10247 fi 10248done 10249done 10250 10251 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 10252 ;; 10253esac 10254fi 10255SED=$ac_cv_path_SED 10256 10257if test -n "$SED"; then 10258 echo "$as_me:$LINENO: result: $SED" >&5 10259echo "${ECHO_T}$SED" >&6 10260else 10261 echo "$as_me:$LINENO: result: no" >&5 10262echo "${ECHO_T}no" >&6 10263fi 10264 10265# Extract the first word of "perl", so it can be a program name with args. 10266set dummy perl; ac_word=$2 10267echo "$as_me:$LINENO: checking for $ac_word" >&5 10268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10269if test "${ac_cv_path_PERL+set}" = set; then 10270 echo $ECHO_N "(cached) $ECHO_C" >&6 10271else 10272 case $PERL in 10273 [\\/]* | ?:[\\/]*) 10274 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 10275 ;; 10276 *) 10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10278for as_dir in $PATH 10279do 10280 IFS=$as_save_IFS 10281 test -z "$as_dir" && as_dir=. 10282 for ac_exec_ext in '' $ac_executable_extensions; do 10283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10284 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 10285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10286 break 2 10287 fi 10288done 10289done 10290 10291 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" 10292 ;; 10293esac 10294fi 10295PERL=$ac_cv_path_PERL 10296 10297if test -n "$PERL"; then 10298 echo "$as_me:$LINENO: result: $PERL" >&5 10299echo "${ECHO_T}$PERL" >&6 10300else 10301 echo "$as_me:$LINENO: result: no" >&5 10302echo "${ECHO_T}no" >&6 10303fi 10304 10305# Extract the first word of "ldconfig", so it can be a program name with args. 10306set dummy ldconfig; ac_word=$2 10307echo "$as_me:$LINENO: checking for $ac_word" >&5 10308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10309if test "${ac_cv_path_LDCONFIG+set}" = set; then 10310 echo $ECHO_N "(cached) $ECHO_C" >&6 10311else 10312 case $LDCONFIG in 10313 [\\/]* | ?:[\\/]*) 10314 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 10315 ;; 10316 *) 10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10318for as_dir in $PATH 10319do 10320 IFS=$as_save_IFS 10321 test -z "$as_dir" && as_dir=. 10322 for ac_exec_ext in '' $ac_executable_extensions; do 10323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10324 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" 10325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10326 break 2 10327 fi 10328done 10329done 10330 10331 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" 10332 ;; 10333esac 10334fi 10335LDCONFIG=$ac_cv_path_LDCONFIG 10336 10337if test -n "$LDCONFIG"; then 10338 echo "$as_me:$LINENO: result: $LDCONFIG" >&5 10339echo "${ECHO_T}$LDCONFIG" >&6 10340else 10341 echo "$as_me:$LINENO: result: no" >&5 10342echo "${ECHO_T}no" >&6 10343fi 10344 10345if test -n "$ac_tool_prefix"; then 10346 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 10347set dummy ${ac_tool_prefix}ar; ac_word=$2 10348echo "$as_me:$LINENO: checking for $ac_word" >&5 10349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10350if test "${ac_cv_prog_AR+set}" = set; then 10351 echo $ECHO_N "(cached) $ECHO_C" >&6 10352else 10353 if test -n "$AR"; then 10354 ac_cv_prog_AR="$AR" # Let the user override the test. 10355else 10356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10357for as_dir in $PATH 10358do 10359 IFS=$as_save_IFS 10360 test -z "$as_dir" && as_dir=. 10361 for ac_exec_ext in '' $ac_executable_extensions; do 10362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10363 ac_cv_prog_AR="${ac_tool_prefix}ar" 10364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10365 break 2 10366 fi 10367done 10368done 10369 10370fi 10371fi 10372AR=$ac_cv_prog_AR 10373if test -n "$AR"; then 10374 echo "$as_me:$LINENO: result: $AR" >&5 10375echo "${ECHO_T}$AR" >&6 10376else 10377 echo "$as_me:$LINENO: result: no" >&5 10378echo "${ECHO_T}no" >&6 10379fi 10380 10381fi 10382if test -z "$ac_cv_prog_AR"; then 10383 ac_ct_AR=$AR 10384 # Extract the first word of "ar", so it can be a program name with args. 10385set dummy ar; ac_word=$2 10386echo "$as_me:$LINENO: checking for $ac_word" >&5 10387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10388if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 10389 echo $ECHO_N "(cached) $ECHO_C" >&6 10390else 10391 if test -n "$ac_ct_AR"; then 10392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10393else 10394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10395for as_dir in $PATH 10396do 10397 IFS=$as_save_IFS 10398 test -z "$as_dir" && as_dir=. 10399 for ac_exec_ext in '' $ac_executable_extensions; do 10400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10401 ac_cv_prog_ac_ct_AR="ar" 10402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10403 break 2 10404 fi 10405done 10406done 10407 10408 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" 10409fi 10410fi 10411ac_ct_AR=$ac_cv_prog_ac_ct_AR 10412if test -n "$ac_ct_AR"; then 10413 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 10414echo "${ECHO_T}$ac_ct_AR" >&6 10415else 10416 echo "$as_me:$LINENO: result: no" >&5 10417echo "${ECHO_T}no" >&6 10418fi 10419 10420 AR=$ac_ct_AR 10421else 10422 AR="$ac_cv_prog_AR" 10423fi 10424 10425if test -n "$ac_tool_prefix"; then 10426 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10427set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10428echo "$as_me:$LINENO: checking for $ac_word" >&5 10429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10430if test "${ac_cv_prog_RANLIB+set}" = set; then 10431 echo $ECHO_N "(cached) $ECHO_C" >&6 10432else 10433 if test -n "$RANLIB"; then 10434 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10435else 10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10437for as_dir in $PATH 10438do 10439 IFS=$as_save_IFS 10440 test -z "$as_dir" && as_dir=. 10441 for ac_exec_ext in '' $ac_executable_extensions; do 10442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10443 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10445 break 2 10446 fi 10447done 10448done 10449 10450fi 10451fi 10452RANLIB=$ac_cv_prog_RANLIB 10453if test -n "$RANLIB"; then 10454 echo "$as_me:$LINENO: result: $RANLIB" >&5 10455echo "${ECHO_T}$RANLIB" >&6 10456else 10457 echo "$as_me:$LINENO: result: no" >&5 10458echo "${ECHO_T}no" >&6 10459fi 10460 10461fi 10462if test -z "$ac_cv_prog_RANLIB"; then 10463 ac_ct_RANLIB=$RANLIB 10464 # Extract the first word of "ranlib", so it can be a program name with args. 10465set dummy ranlib; ac_word=$2 10466echo "$as_me:$LINENO: checking for $ac_word" >&5 10467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10468if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 10469 echo $ECHO_N "(cached) $ECHO_C" >&6 10470else 10471 if test -n "$ac_ct_RANLIB"; then 10472 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10473else 10474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10475for as_dir in $PATH 10476do 10477 IFS=$as_save_IFS 10478 test -z "$as_dir" && as_dir=. 10479 for ac_exec_ext in '' $ac_executable_extensions; do 10480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10481 ac_cv_prog_ac_ct_RANLIB="ranlib" 10482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10483 break 2 10484 fi 10485done 10486done 10487 10488 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 10489fi 10490fi 10491ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10492if test -n "$ac_ct_RANLIB"; then 10493 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 10494echo "${ECHO_T}$ac_ct_RANLIB" >&6 10495else 10496 echo "$as_me:$LINENO: result: no" >&5 10497echo "${ECHO_T}no" >&6 10498fi 10499 10500 RANLIB=$ac_ct_RANLIB 10501else 10502 RANLIB="$ac_cv_prog_RANLIB" 10503fi 10504 10505if test -n "$ac_tool_prefix"; then 10506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10507set dummy ${ac_tool_prefix}strip; ac_word=$2 10508echo "$as_me:$LINENO: checking for $ac_word" >&5 10509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10510if test "${ac_cv_prog_STRIP+set}" = set; then 10511 echo $ECHO_N "(cached) $ECHO_C" >&6 10512else 10513 if test -n "$STRIP"; then 10514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10515else 10516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10517for as_dir in $PATH 10518do 10519 IFS=$as_save_IFS 10520 test -z "$as_dir" && as_dir=. 10521 for ac_exec_ext in '' $ac_executable_extensions; do 10522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10523 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10525 break 2 10526 fi 10527done 10528done 10529 10530fi 10531fi 10532STRIP=$ac_cv_prog_STRIP 10533if test -n "$STRIP"; then 10534 echo "$as_me:$LINENO: result: $STRIP" >&5 10535echo "${ECHO_T}$STRIP" >&6 10536else 10537 echo "$as_me:$LINENO: result: no" >&5 10538echo "${ECHO_T}no" >&6 10539fi 10540 10541fi 10542if test -z "$ac_cv_prog_STRIP"; then 10543 ac_ct_STRIP=$STRIP 10544 # Extract the first word of "strip", so it can be a program name with args. 10545set dummy strip; ac_word=$2 10546echo "$as_me:$LINENO: checking for $ac_word" >&5 10547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10548if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 10549 echo $ECHO_N "(cached) $ECHO_C" >&6 10550else 10551 if test -n "$ac_ct_STRIP"; then 10552 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10553else 10554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10555for as_dir in $PATH 10556do 10557 IFS=$as_save_IFS 10558 test -z "$as_dir" && as_dir=. 10559 for ac_exec_ext in '' $ac_executable_extensions; do 10560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10561 ac_cv_prog_ac_ct_STRIP="strip" 10562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10563 break 2 10564 fi 10565done 10566done 10567 10568 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 10569fi 10570fi 10571ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10572if test -n "$ac_ct_STRIP"; then 10573 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 10574echo "${ECHO_T}$ac_ct_STRIP" >&6 10575else 10576 echo "$as_me:$LINENO: result: no" >&5 10577echo "${ECHO_T}no" >&6 10578fi 10579 10580 STRIP=$ac_ct_STRIP 10581else 10582 STRIP="$ac_cv_prog_STRIP" 10583fi 10584 10585# Find a good install program. We prefer a C program (faster), 10586# so one script is as good as another. But avoid the broken or 10587# incompatible versions: 10588# SysV /etc/install, /usr/sbin/install 10589# SunOS /usr/etc/install 10590# IRIX /sbin/install 10591# AIX /bin/install 10592# AmigaOS /C/install, which installs bootblocks on floppy discs 10593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 10594# AFS /usr/afsws/bin/install, which mishandles nonexistent args 10595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 10596# OS/2's system install, which has a completely different semantic 10597# ./install, which can be erroneously created by make from ./install.sh. 10598echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 10599echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 10600if test -z "$INSTALL"; then 10601if test "${ac_cv_path_install+set}" = set; then 10602 echo $ECHO_N "(cached) $ECHO_C" >&6 10603else 10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10605for as_dir in $PATH 10606do 10607 IFS=$as_save_IFS 10608 test -z "$as_dir" && as_dir=. 10609 # Account for people who put trailing slashes in PATH elements. 10610case $as_dir/ in 10611 ./ | .// | /cC/* | \ 10612 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 10613 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 10614 /usr/ucb/* ) ;; 10615 *) 10616 # OSF1 and SCO ODT 3.0 have their own names for install. 10617 # Don't use installbsd from OSF since it installs stuff as root 10618 # by default. 10619 for ac_prog in ginstall scoinst install; do 10620 for ac_exec_ext in '' $ac_executable_extensions; do 10621 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 10622 if test $ac_prog = install && 10623 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10624 # AIX install. It has an incompatible calling convention. 10625 : 10626 elif test $ac_prog = install && 10627 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10628 # program-specific install script used by HP pwplus--don't use. 10629 : 10630 else 10631 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 10632 break 3 10633 fi 10634 fi 10635 done 10636 done 10637 ;; 10638esac 10639done 10640 10641 10642fi 10643 if test "${ac_cv_path_install+set}" = set; then 10644 INSTALL=$ac_cv_path_install 10645 else 10646 # As a last resort, use the slow shell script. We don't cache a 10647 # path for INSTALL within a source directory, because that will 10648 # break other packages using the cache if that directory is 10649 # removed, or if the path is relative. 10650 INSTALL=$ac_install_sh 10651 fi 10652fi 10653echo "$as_me:$LINENO: result: $INSTALL" >&5 10654echo "${ECHO_T}$INSTALL" >&6 10655 10656# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 10657# It thinks the first close brace ends the variable substitution. 10658test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 10659 10660test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 10661 10662test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 10663 10664# See if we need a separate native compiler. 10665if test $cross_compiling = no; then 10666 BUILD_CC="$CC" 10667 10668else 10669 for ac_prog in gcc cc 10670do 10671 # Extract the first word of "$ac_prog", so it can be a program name with args. 10672set dummy $ac_prog; ac_word=$2 10673echo "$as_me:$LINENO: checking for $ac_word" >&5 10674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10675if test "${ac_cv_prog_BUILD_CC+set}" = set; then 10676 echo $ECHO_N "(cached) $ECHO_C" >&6 10677else 10678 if test -n "$BUILD_CC"; then 10679 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 10680else 10681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10682for as_dir in $PATH 10683do 10684 IFS=$as_save_IFS 10685 test -z "$as_dir" && as_dir=. 10686 for ac_exec_ext in '' $ac_executable_extensions; do 10687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10688 ac_cv_prog_BUILD_CC="$ac_prog" 10689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10690 break 2 10691 fi 10692done 10693done 10694 10695fi 10696fi 10697BUILD_CC=$ac_cv_prog_BUILD_CC 10698if test -n "$BUILD_CC"; then 10699 echo "$as_me:$LINENO: result: $BUILD_CC" >&5 10700echo "${ECHO_T}$BUILD_CC" >&6 10701else 10702 echo "$as_me:$LINENO: result: no" >&5 10703echo "${ECHO_T}no" >&6 10704fi 10705 10706 test -n "$BUILD_CC" && break 10707done 10708 10709fi 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h 10740do 10741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10742if eval "test \"\${$as_ac_Header+set}\" = set"; then 10743 echo "$as_me:$LINENO: checking for $ac_header" >&5 10744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10745if eval "test \"\${$as_ac_Header+set}\" = set"; then 10746 echo $ECHO_N "(cached) $ECHO_C" >&6 10747fi 10748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10750else 10751 # Is the header compilable? 10752echo "$as_me:$LINENO: checking $ac_header usability" >&5 10753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10754cat >conftest.$ac_ext <<_ACEOF 10755/* confdefs.h. */ 10756_ACEOF 10757cat confdefs.h >>conftest.$ac_ext 10758cat >>conftest.$ac_ext <<_ACEOF 10759/* end confdefs.h. */ 10760$ac_includes_default 10761#include <$ac_header> 10762_ACEOF 10763rm -f conftest.$ac_objext 10764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10765 (eval $ac_compile) 2>conftest.er1 10766 ac_status=$? 10767 grep -v '^ *+' conftest.er1 >conftest.err 10768 rm -f conftest.er1 10769 cat conftest.err >&5 10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10771 (exit $ac_status); } && 10772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10774 (eval $ac_try) 2>&5 10775 ac_status=$? 10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10777 (exit $ac_status); }; } && 10778 { ac_try='test -s conftest.$ac_objext' 10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10780 (eval $ac_try) 2>&5 10781 ac_status=$? 10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10783 (exit $ac_status); }; }; then 10784 ac_header_compiler=yes 10785else 10786 echo "$as_me: failed program was:" >&5 10787sed 's/^/| /' conftest.$ac_ext >&5 10788 10789ac_header_compiler=no 10790fi 10791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10792echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10793echo "${ECHO_T}$ac_header_compiler" >&6 10794 10795# Is the header present? 10796echo "$as_me:$LINENO: checking $ac_header presence" >&5 10797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10798cat >conftest.$ac_ext <<_ACEOF 10799/* confdefs.h. */ 10800_ACEOF 10801cat confdefs.h >>conftest.$ac_ext 10802cat >>conftest.$ac_ext <<_ACEOF 10803/* end confdefs.h. */ 10804#include <$ac_header> 10805_ACEOF 10806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10808 ac_status=$? 10809 grep -v '^ *+' conftest.er1 >conftest.err 10810 rm -f conftest.er1 10811 cat conftest.err >&5 10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10813 (exit $ac_status); } >/dev/null; then 10814 if test -s conftest.err; then 10815 ac_cpp_err=$ac_c_preproc_warn_flag 10816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10817 else 10818 ac_cpp_err= 10819 fi 10820else 10821 ac_cpp_err=yes 10822fi 10823if test -z "$ac_cpp_err"; then 10824 ac_header_preproc=yes 10825else 10826 echo "$as_me: failed program was:" >&5 10827sed 's/^/| /' conftest.$ac_ext >&5 10828 10829 ac_header_preproc=no 10830fi 10831rm -f conftest.err conftest.$ac_ext 10832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10833echo "${ECHO_T}$ac_header_preproc" >&6 10834 10835# So? What about this header? 10836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10837 yes:no: ) 10838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10839echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10841echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10842 ac_header_preproc=yes 10843 ;; 10844 no:yes:* ) 10845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10846echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10848echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10850echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10852echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10854echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10856echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10857 ( 10858 cat <<\_ASBOX 10859## ------------------------------------------ ## 10860## Report this to the AC_PACKAGE_NAME lists. ## 10861## ------------------------------------------ ## 10862_ASBOX 10863 ) | 10864 sed "s/^/$as_me: WARNING: /" >&2 10865 ;; 10866esac 10867echo "$as_me:$LINENO: checking for $ac_header" >&5 10868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10869if eval "test \"\${$as_ac_Header+set}\" = set"; then 10870 echo $ECHO_N "(cached) $ECHO_C" >&6 10871else 10872 eval "$as_ac_Header=\$ac_header_preproc" 10873fi 10874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10876 10877fi 10878if test `eval echo '${'$as_ac_Header'}'` = yes; then 10879 cat >>confdefs.h <<_ACEOF 10880#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10881_ACEOF 10882 10883fi 10884 10885done 10886 10887 10888 10889for ac_header in sys/disk.h sys/mount.h 10890do 10891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10892echo "$as_me:$LINENO: checking for $ac_header" >&5 10893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10894if eval "test \"\${$as_ac_Header+set}\" = set"; then 10895 echo $ECHO_N "(cached) $ECHO_C" >&6 10896else 10897 cat >conftest.$ac_ext <<_ACEOF 10898/* confdefs.h. */ 10899_ACEOF 10900cat confdefs.h >>conftest.$ac_ext 10901cat >>conftest.$ac_ext <<_ACEOF 10902/* end confdefs.h. */ 10903 10904#if HAVE_SYS_QUEUE_H 10905#include <sys/queue.h> 10906#endif 10907 10908 10909#include <$ac_header> 10910_ACEOF 10911rm -f conftest.$ac_objext 10912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10913 (eval $ac_compile) 2>conftest.er1 10914 ac_status=$? 10915 grep -v '^ *+' conftest.er1 >conftest.err 10916 rm -f conftest.er1 10917 cat conftest.err >&5 10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10919 (exit $ac_status); } && 10920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10922 (eval $ac_try) 2>&5 10923 ac_status=$? 10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10925 (exit $ac_status); }; } && 10926 { ac_try='test -s conftest.$ac_objext' 10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10928 (eval $ac_try) 2>&5 10929 ac_status=$? 10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10931 (exit $ac_status); }; }; then 10932 eval "$as_ac_Header=yes" 10933else 10934 echo "$as_me: failed program was:" >&5 10935sed 's/^/| /' conftest.$ac_ext >&5 10936 10937eval "$as_ac_Header=no" 10938fi 10939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10940fi 10941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10943if test `eval echo '${'$as_ac_Header'}'` = yes; then 10944 cat >>confdefs.h <<_ACEOF 10945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10946_ACEOF 10947 10948fi 10949 10950done 10951 10952 10953for ac_header in net/if.h 10954do 10955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10956echo "$as_me:$LINENO: checking for $ac_header" >&5 10957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10958if eval "test \"\${$as_ac_Header+set}\" = set"; then 10959 echo $ECHO_N "(cached) $ECHO_C" >&6 10960else 10961 cat >conftest.$ac_ext <<_ACEOF 10962/* confdefs.h. */ 10963_ACEOF 10964cat confdefs.h >>conftest.$ac_ext 10965cat >>conftest.$ac_ext <<_ACEOF 10966/* end confdefs.h. */ 10967 10968#if HAVE_SYS_TYPES_H 10969#include <sys/types.h> 10970#endif 10971#if HAVE_SYS_SOCKET 10972#include <sys/socket.h> 10973#endif 10974 10975 10976#include <$ac_header> 10977_ACEOF 10978rm -f conftest.$ac_objext 10979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10980 (eval $ac_compile) 2>conftest.er1 10981 ac_status=$? 10982 grep -v '^ *+' conftest.er1 >conftest.err 10983 rm -f conftest.er1 10984 cat conftest.err >&5 10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10986 (exit $ac_status); } && 10987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10989 (eval $ac_try) 2>&5 10990 ac_status=$? 10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10992 (exit $ac_status); }; } && 10993 { ac_try='test -s conftest.$ac_objext' 10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10995 (eval $ac_try) 2>&5 10996 ac_status=$? 10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10998 (exit $ac_status); }; }; then 10999 eval "$as_ac_Header=yes" 11000else 11001 echo "$as_me: failed program was:" >&5 11002sed 's/^/| /' conftest.$ac_ext >&5 11003 11004eval "$as_ac_Header=no" 11005fi 11006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11007fi 11008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11010if test `eval echo '${'$as_ac_Header'}'` = yes; then 11011 cat >>confdefs.h <<_ACEOF 11012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11013_ACEOF 11014 11015fi 11016 11017done 11018 11019 11020for ac_func in vprintf 11021do 11022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11023echo "$as_me:$LINENO: checking for $ac_func" >&5 11024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11025if eval "test \"\${$as_ac_var+set}\" = set"; then 11026 echo $ECHO_N "(cached) $ECHO_C" >&6 11027else 11028 cat >conftest.$ac_ext <<_ACEOF 11029/* confdefs.h. */ 11030_ACEOF 11031cat confdefs.h >>conftest.$ac_ext 11032cat >>conftest.$ac_ext <<_ACEOF 11033/* end confdefs.h. */ 11034/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11035 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11036#define $ac_func innocuous_$ac_func 11037 11038/* System header to define __stub macros and hopefully few prototypes, 11039 which can conflict with char $ac_func (); below. 11040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11041 <limits.h> exists even on freestanding compilers. */ 11042 11043#ifdef __STDC__ 11044# include <limits.h> 11045#else 11046# include <assert.h> 11047#endif 11048 11049#undef $ac_func 11050 11051/* Override any gcc2 internal prototype to avoid an error. */ 11052#ifdef __cplusplus 11053extern "C" 11054{ 11055#endif 11056/* We use char because int might match the return type of a gcc2 11057 builtin and then its argument prototype would still apply. */ 11058char $ac_func (); 11059/* The GNU C library defines this for functions which it implements 11060 to always fail with ENOSYS. Some functions are actually named 11061 something starting with __ and the normal name is an alias. */ 11062#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11063choke me 11064#else 11065char (*f) () = $ac_func; 11066#endif 11067#ifdef __cplusplus 11068} 11069#endif 11070 11071int 11072main () 11073{ 11074return f != $ac_func; 11075 ; 11076 return 0; 11077} 11078_ACEOF 11079rm -f conftest.$ac_objext conftest$ac_exeext 11080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11081 (eval $ac_link) 2>conftest.er1 11082 ac_status=$? 11083 grep -v '^ *+' conftest.er1 >conftest.err 11084 rm -f conftest.er1 11085 cat conftest.err >&5 11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11087 (exit $ac_status); } && 11088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11090 (eval $ac_try) 2>&5 11091 ac_status=$? 11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11093 (exit $ac_status); }; } && 11094 { ac_try='test -s conftest$ac_exeext' 11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11096 (eval $ac_try) 2>&5 11097 ac_status=$? 11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11099 (exit $ac_status); }; }; then 11100 eval "$as_ac_var=yes" 11101else 11102 echo "$as_me: failed program was:" >&5 11103sed 's/^/| /' conftest.$ac_ext >&5 11104 11105eval "$as_ac_var=no" 11106fi 11107rm -f conftest.err conftest.$ac_objext \ 11108 conftest$ac_exeext conftest.$ac_ext 11109fi 11110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11111echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11112if test `eval echo '${'$as_ac_var'}'` = yes; then 11113 cat >>confdefs.h <<_ACEOF 11114#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11115_ACEOF 11116 11117echo "$as_me:$LINENO: checking for _doprnt" >&5 11118echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 11119if test "${ac_cv_func__doprnt+set}" = set; then 11120 echo $ECHO_N "(cached) $ECHO_C" >&6 11121else 11122 cat >conftest.$ac_ext <<_ACEOF 11123/* confdefs.h. */ 11124_ACEOF 11125cat confdefs.h >>conftest.$ac_ext 11126cat >>conftest.$ac_ext <<_ACEOF 11127/* end confdefs.h. */ 11128/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 11129 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11130#define _doprnt innocuous__doprnt 11131 11132/* System header to define __stub macros and hopefully few prototypes, 11133 which can conflict with char _doprnt (); below. 11134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11135 <limits.h> exists even on freestanding compilers. */ 11136 11137#ifdef __STDC__ 11138# include <limits.h> 11139#else 11140# include <assert.h> 11141#endif 11142 11143#undef _doprnt 11144 11145/* Override any gcc2 internal prototype to avoid an error. */ 11146#ifdef __cplusplus 11147extern "C" 11148{ 11149#endif 11150/* We use char because int might match the return type of a gcc2 11151 builtin and then its argument prototype would still apply. */ 11152char _doprnt (); 11153/* The GNU C library defines this for functions which it implements 11154 to always fail with ENOSYS. Some functions are actually named 11155 something starting with __ and the normal name is an alias. */ 11156#if defined (__stub__doprnt) || defined (__stub____doprnt) 11157choke me 11158#else 11159char (*f) () = _doprnt; 11160#endif 11161#ifdef __cplusplus 11162} 11163#endif 11164 11165int 11166main () 11167{ 11168return f != _doprnt; 11169 ; 11170 return 0; 11171} 11172_ACEOF 11173rm -f conftest.$ac_objext conftest$ac_exeext 11174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11175 (eval $ac_link) 2>conftest.er1 11176 ac_status=$? 11177 grep -v '^ *+' conftest.er1 >conftest.err 11178 rm -f conftest.er1 11179 cat conftest.err >&5 11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11181 (exit $ac_status); } && 11182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11184 (eval $ac_try) 2>&5 11185 ac_status=$? 11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11187 (exit $ac_status); }; } && 11188 { ac_try='test -s conftest$ac_exeext' 11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11190 (eval $ac_try) 2>&5 11191 ac_status=$? 11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11193 (exit $ac_status); }; }; then 11194 ac_cv_func__doprnt=yes 11195else 11196 echo "$as_me: failed program was:" >&5 11197sed 's/^/| /' conftest.$ac_ext >&5 11198 11199ac_cv_func__doprnt=no 11200fi 11201rm -f conftest.err conftest.$ac_objext \ 11202 conftest$ac_exeext conftest.$ac_ext 11203fi 11204echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 11205echo "${ECHO_T}$ac_cv_func__doprnt" >&6 11206if test $ac_cv_func__doprnt = yes; then 11207 11208cat >>confdefs.h <<\_ACEOF 11209#define HAVE_DOPRNT 1 11210_ACEOF 11211 11212fi 11213 11214fi 11215done 11216 11217 11218echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 11219echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6 11220if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then 11221 echo $ECHO_N "(cached) $ECHO_C" >&6 11222else 11223 cat >conftest.$ac_ext <<_ACEOF 11224/* confdefs.h. */ 11225_ACEOF 11226cat confdefs.h >>conftest.$ac_ext 11227cat >>conftest.$ac_ext <<_ACEOF 11228/* end confdefs.h. */ 11229#include <dirent.h> 11230 11231int 11232main () 11233{ 11234static struct dirent ac_aggr; 11235if (ac_aggr.d_reclen) 11236return 0; 11237 ; 11238 return 0; 11239} 11240_ACEOF 11241rm -f conftest.$ac_objext 11242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11243 (eval $ac_compile) 2>conftest.er1 11244 ac_status=$? 11245 grep -v '^ *+' conftest.er1 >conftest.err 11246 rm -f conftest.er1 11247 cat conftest.err >&5 11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11249 (exit $ac_status); } && 11250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 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); }; } && 11256 { ac_try='test -s conftest.$ac_objext' 11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11258 (eval $ac_try) 2>&5 11259 ac_status=$? 11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11261 (exit $ac_status); }; }; then 11262 ac_cv_member_struct_dirent_d_reclen=yes 11263else 11264 echo "$as_me: failed program was:" >&5 11265sed 's/^/| /' conftest.$ac_ext >&5 11266 11267cat >conftest.$ac_ext <<_ACEOF 11268/* confdefs.h. */ 11269_ACEOF 11270cat confdefs.h >>conftest.$ac_ext 11271cat >>conftest.$ac_ext <<_ACEOF 11272/* end confdefs.h. */ 11273#include <dirent.h> 11274 11275int 11276main () 11277{ 11278static struct dirent ac_aggr; 11279if (sizeof ac_aggr.d_reclen) 11280return 0; 11281 ; 11282 return 0; 11283} 11284_ACEOF 11285rm -f conftest.$ac_objext 11286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11287 (eval $ac_compile) 2>conftest.er1 11288 ac_status=$? 11289 grep -v '^ *+' conftest.er1 >conftest.err 11290 rm -f conftest.er1 11291 cat conftest.err >&5 11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11293 (exit $ac_status); } && 11294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11296 (eval $ac_try) 2>&5 11297 ac_status=$? 11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11299 (exit $ac_status); }; } && 11300 { ac_try='test -s conftest.$ac_objext' 11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11302 (eval $ac_try) 2>&5 11303 ac_status=$? 11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11305 (exit $ac_status); }; }; then 11306 ac_cv_member_struct_dirent_d_reclen=yes 11307else 11308 echo "$as_me: failed program was:" >&5 11309sed 's/^/| /' conftest.$ac_ext >&5 11310 11311ac_cv_member_struct_dirent_d_reclen=no 11312fi 11313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11314fi 11315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11316fi 11317echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 11318echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6 11319if test $ac_cv_member_struct_dirent_d_reclen = yes; then 11320 cat >>confdefs.h <<\_ACEOF 11321#define HAVE_RECLEN_DIRENT 1 11322_ACEOF 11323 11324fi 11325 11326echo "$as_me:$LINENO: checking for ssize_t" >&5 11327echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 11328if test "${ac_cv_type_ssize_t+set}" = set; then 11329 echo $ECHO_N "(cached) $ECHO_C" >&6 11330else 11331 cat >conftest.$ac_ext <<_ACEOF 11332/* confdefs.h. */ 11333_ACEOF 11334cat confdefs.h >>conftest.$ac_ext 11335cat >>conftest.$ac_ext <<_ACEOF 11336/* end confdefs.h. */ 11337#include <sys/types.h> 11338 11339int 11340main () 11341{ 11342if ((ssize_t *) 0) 11343 return 0; 11344if (sizeof (ssize_t)) 11345 return 0; 11346 ; 11347 return 0; 11348} 11349_ACEOF 11350rm -f conftest.$ac_objext 11351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11352 (eval $ac_compile) 2>conftest.er1 11353 ac_status=$? 11354 grep -v '^ *+' conftest.er1 >conftest.err 11355 rm -f conftest.er1 11356 cat conftest.err >&5 11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11358 (exit $ac_status); } && 11359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11361 (eval $ac_try) 2>&5 11362 ac_status=$? 11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11364 (exit $ac_status); }; } && 11365 { ac_try='test -s conftest.$ac_objext' 11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11367 (eval $ac_try) 2>&5 11368 ac_status=$? 11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11370 (exit $ac_status); }; }; then 11371 ac_cv_type_ssize_t=yes 11372else 11373 echo "$as_me: failed program was:" >&5 11374sed 's/^/| /' conftest.$ac_ext >&5 11375 11376ac_cv_type_ssize_t=no 11377fi 11378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11379fi 11380echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 11381echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 11382if test $ac_cv_type_ssize_t = yes; then 11383 cat >>confdefs.h <<\_ACEOF 11384#define HAVE_TYPE_SSIZE_T 1 11385_ACEOF 11386 11387fi 11388 11389echo "$as_me:$LINENO: checking whether llseek is declared" >&5 11390echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6 11391if test "${ac_cv_have_decl_llseek+set}" = set; then 11392 echo $ECHO_N "(cached) $ECHO_C" >&6 11393else 11394 cat >conftest.$ac_ext <<_ACEOF 11395/* confdefs.h. */ 11396_ACEOF 11397cat confdefs.h >>conftest.$ac_ext 11398cat >>conftest.$ac_ext <<_ACEOF 11399/* end confdefs.h. */ 11400#include <unistd.h> 11401 11402int 11403main () 11404{ 11405#ifndef llseek 11406 char *p = (char *) llseek; 11407#endif 11408 11409 ; 11410 return 0; 11411} 11412_ACEOF 11413rm -f conftest.$ac_objext 11414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11415 (eval $ac_compile) 2>conftest.er1 11416 ac_status=$? 11417 grep -v '^ *+' conftest.er1 >conftest.err 11418 rm -f conftest.er1 11419 cat conftest.err >&5 11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11421 (exit $ac_status); } && 11422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11424 (eval $ac_try) 2>&5 11425 ac_status=$? 11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11427 (exit $ac_status); }; } && 11428 { ac_try='test -s conftest.$ac_objext' 11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11430 (eval $ac_try) 2>&5 11431 ac_status=$? 11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11433 (exit $ac_status); }; }; then 11434 ac_cv_have_decl_llseek=yes 11435else 11436 echo "$as_me: failed program was:" >&5 11437sed 's/^/| /' conftest.$ac_ext >&5 11438 11439ac_cv_have_decl_llseek=no 11440fi 11441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11442fi 11443echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 11444echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6 11445if test $ac_cv_have_decl_llseek = yes; then 11446 cat >>confdefs.h <<\_ACEOF 11447#define HAVE_LLSEEK_PROTOTYPE 1 11448_ACEOF 11449 11450fi 11451 11452echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 11453echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6 11454if test "${ac_cv_have_decl_lseek64+set}" = set; then 11455 echo $ECHO_N "(cached) $ECHO_C" >&6 11456else 11457 cat >conftest.$ac_ext <<_ACEOF 11458/* confdefs.h. */ 11459_ACEOF 11460cat confdefs.h >>conftest.$ac_ext 11461cat >>conftest.$ac_ext <<_ACEOF 11462/* end confdefs.h. */ 11463#define _LARGEFILE_SOURCE 11464 #define _LARGEFILE64_SOURCE 11465 #include <unistd.h> 11466 11467int 11468main () 11469{ 11470#ifndef lseek64 11471 char *p = (char *) lseek64; 11472#endif 11473 11474 ; 11475 return 0; 11476} 11477_ACEOF 11478rm -f conftest.$ac_objext 11479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11480 (eval $ac_compile) 2>conftest.er1 11481 ac_status=$? 11482 grep -v '^ *+' conftest.er1 >conftest.err 11483 rm -f conftest.er1 11484 cat conftest.err >&5 11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11486 (exit $ac_status); } && 11487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11489 (eval $ac_try) 2>&5 11490 ac_status=$? 11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11492 (exit $ac_status); }; } && 11493 { ac_try='test -s conftest.$ac_objext' 11494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11495 (eval $ac_try) 2>&5 11496 ac_status=$? 11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11498 (exit $ac_status); }; }; then 11499 ac_cv_have_decl_lseek64=yes 11500else 11501 echo "$as_me: failed program was:" >&5 11502sed 's/^/| /' conftest.$ac_ext >&5 11503 11504ac_cv_have_decl_lseek64=no 11505fi 11506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11507fi 11508echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 11509echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6 11510if test $ac_cv_have_decl_lseek64 = yes; then 11511 cat >>confdefs.h <<\_ACEOF 11512#define HAVE_LSEEK64_PROTOTYPE 1 11513_ACEOF 11514 11515fi 11516 11517if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then 11518 # if cross-compiling, with no cached values, just assume something common. 11519 ac_cv_sizeof_short=2 11520 ac_cv_sizeof_int=4 11521 ac_cv_sizeof_long=4 11522 ac_cv_sizeof_long_long=8 11523 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 11524echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;} 11525fi 11526echo "$as_me:$LINENO: checking for short" >&5 11527echo $ECHO_N "checking for short... $ECHO_C" >&6 11528if test "${ac_cv_type_short+set}" = set; then 11529 echo $ECHO_N "(cached) $ECHO_C" >&6 11530else 11531 cat >conftest.$ac_ext <<_ACEOF 11532/* confdefs.h. */ 11533_ACEOF 11534cat confdefs.h >>conftest.$ac_ext 11535cat >>conftest.$ac_ext <<_ACEOF 11536/* end confdefs.h. */ 11537$ac_includes_default 11538int 11539main () 11540{ 11541if ((short *) 0) 11542 return 0; 11543if (sizeof (short)) 11544 return 0; 11545 ; 11546 return 0; 11547} 11548_ACEOF 11549rm -f conftest.$ac_objext 11550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11551 (eval $ac_compile) 2>conftest.er1 11552 ac_status=$? 11553 grep -v '^ *+' conftest.er1 >conftest.err 11554 rm -f conftest.er1 11555 cat conftest.err >&5 11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11557 (exit $ac_status); } && 11558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11560 (eval $ac_try) 2>&5 11561 ac_status=$? 11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11563 (exit $ac_status); }; } && 11564 { ac_try='test -s conftest.$ac_objext' 11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11566 (eval $ac_try) 2>&5 11567 ac_status=$? 11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11569 (exit $ac_status); }; }; then 11570 ac_cv_type_short=yes 11571else 11572 echo "$as_me: failed program was:" >&5 11573sed 's/^/| /' conftest.$ac_ext >&5 11574 11575ac_cv_type_short=no 11576fi 11577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11578fi 11579echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 11580echo "${ECHO_T}$ac_cv_type_short" >&6 11581 11582echo "$as_me:$LINENO: checking size of short" >&5 11583echo $ECHO_N "checking size of short... $ECHO_C" >&6 11584if test "${ac_cv_sizeof_short+set}" = set; then 11585 echo $ECHO_N "(cached) $ECHO_C" >&6 11586else 11587 if test "$ac_cv_type_short" = yes; then 11588 # The cast to unsigned long works around a bug in the HP C Compiler 11589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11591 # This bug is HP SR number 8606223364. 11592 if test "$cross_compiling" = yes; then 11593 # Depending upon the size, compute the lo and hi bounds. 11594cat >conftest.$ac_ext <<_ACEOF 11595/* confdefs.h. */ 11596_ACEOF 11597cat confdefs.h >>conftest.$ac_ext 11598cat >>conftest.$ac_ext <<_ACEOF 11599/* end confdefs.h. */ 11600$ac_includes_default 11601int 11602main () 11603{ 11604static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 11605test_array [0] = 0 11606 11607 ; 11608 return 0; 11609} 11610_ACEOF 11611rm -f conftest.$ac_objext 11612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11613 (eval $ac_compile) 2>conftest.er1 11614 ac_status=$? 11615 grep -v '^ *+' conftest.er1 >conftest.err 11616 rm -f conftest.er1 11617 cat conftest.err >&5 11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11619 (exit $ac_status); } && 11620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11622 (eval $ac_try) 2>&5 11623 ac_status=$? 11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11625 (exit $ac_status); }; } && 11626 { ac_try='test -s conftest.$ac_objext' 11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11628 (eval $ac_try) 2>&5 11629 ac_status=$? 11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11631 (exit $ac_status); }; }; then 11632 ac_lo=0 ac_mid=0 11633 while :; do 11634 cat >conftest.$ac_ext <<_ACEOF 11635/* confdefs.h. */ 11636_ACEOF 11637cat confdefs.h >>conftest.$ac_ext 11638cat >>conftest.$ac_ext <<_ACEOF 11639/* end confdefs.h. */ 11640$ac_includes_default 11641int 11642main () 11643{ 11644static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 11645test_array [0] = 0 11646 11647 ; 11648 return 0; 11649} 11650_ACEOF 11651rm -f conftest.$ac_objext 11652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11653 (eval $ac_compile) 2>conftest.er1 11654 ac_status=$? 11655 grep -v '^ *+' conftest.er1 >conftest.err 11656 rm -f conftest.er1 11657 cat conftest.err >&5 11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11659 (exit $ac_status); } && 11660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11662 (eval $ac_try) 2>&5 11663 ac_status=$? 11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11665 (exit $ac_status); }; } && 11666 { ac_try='test -s conftest.$ac_objext' 11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11668 (eval $ac_try) 2>&5 11669 ac_status=$? 11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11671 (exit $ac_status); }; }; then 11672 ac_hi=$ac_mid; break 11673else 11674 echo "$as_me: failed program was:" >&5 11675sed 's/^/| /' conftest.$ac_ext >&5 11676 11677ac_lo=`expr $ac_mid + 1` 11678 if test $ac_lo -le $ac_mid; then 11679 ac_lo= ac_hi= 11680 break 11681 fi 11682 ac_mid=`expr 2 '*' $ac_mid + 1` 11683fi 11684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11685 done 11686else 11687 echo "$as_me: failed program was:" >&5 11688sed 's/^/| /' conftest.$ac_ext >&5 11689 11690cat >conftest.$ac_ext <<_ACEOF 11691/* confdefs.h. */ 11692_ACEOF 11693cat confdefs.h >>conftest.$ac_ext 11694cat >>conftest.$ac_ext <<_ACEOF 11695/* end confdefs.h. */ 11696$ac_includes_default 11697int 11698main () 11699{ 11700static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 11701test_array [0] = 0 11702 11703 ; 11704 return 0; 11705} 11706_ACEOF 11707rm -f conftest.$ac_objext 11708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11709 (eval $ac_compile) 2>conftest.er1 11710 ac_status=$? 11711 grep -v '^ *+' conftest.er1 >conftest.err 11712 rm -f conftest.er1 11713 cat conftest.err >&5 11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11715 (exit $ac_status); } && 11716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11718 (eval $ac_try) 2>&5 11719 ac_status=$? 11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11721 (exit $ac_status); }; } && 11722 { ac_try='test -s conftest.$ac_objext' 11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11724 (eval $ac_try) 2>&5 11725 ac_status=$? 11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11727 (exit $ac_status); }; }; then 11728 ac_hi=-1 ac_mid=-1 11729 while :; do 11730 cat >conftest.$ac_ext <<_ACEOF 11731/* confdefs.h. */ 11732_ACEOF 11733cat confdefs.h >>conftest.$ac_ext 11734cat >>conftest.$ac_ext <<_ACEOF 11735/* end confdefs.h. */ 11736$ac_includes_default 11737int 11738main () 11739{ 11740static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 11741test_array [0] = 0 11742 11743 ; 11744 return 0; 11745} 11746_ACEOF 11747rm -f conftest.$ac_objext 11748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11749 (eval $ac_compile) 2>conftest.er1 11750 ac_status=$? 11751 grep -v '^ *+' conftest.er1 >conftest.err 11752 rm -f conftest.er1 11753 cat conftest.err >&5 11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11755 (exit $ac_status); } && 11756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11758 (eval $ac_try) 2>&5 11759 ac_status=$? 11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11761 (exit $ac_status); }; } && 11762 { ac_try='test -s conftest.$ac_objext' 11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11764 (eval $ac_try) 2>&5 11765 ac_status=$? 11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11767 (exit $ac_status); }; }; then 11768 ac_lo=$ac_mid; break 11769else 11770 echo "$as_me: failed program was:" >&5 11771sed 's/^/| /' conftest.$ac_ext >&5 11772 11773ac_hi=`expr '(' $ac_mid ')' - 1` 11774 if test $ac_mid -le $ac_hi; then 11775 ac_lo= ac_hi= 11776 break 11777 fi 11778 ac_mid=`expr 2 '*' $ac_mid` 11779fi 11780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11781 done 11782else 11783 echo "$as_me: failed program was:" >&5 11784sed 's/^/| /' conftest.$ac_ext >&5 11785 11786ac_lo= ac_hi= 11787fi 11788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11789fi 11790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11791# Binary search between lo and hi bounds. 11792while test "x$ac_lo" != "x$ac_hi"; do 11793 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11794 cat >conftest.$ac_ext <<_ACEOF 11795/* confdefs.h. */ 11796_ACEOF 11797cat confdefs.h >>conftest.$ac_ext 11798cat >>conftest.$ac_ext <<_ACEOF 11799/* end confdefs.h. */ 11800$ac_includes_default 11801int 11802main () 11803{ 11804static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 11805test_array [0] = 0 11806 11807 ; 11808 return 0; 11809} 11810_ACEOF 11811rm -f conftest.$ac_objext 11812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11813 (eval $ac_compile) 2>conftest.er1 11814 ac_status=$? 11815 grep -v '^ *+' conftest.er1 >conftest.err 11816 rm -f conftest.er1 11817 cat conftest.err >&5 11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11819 (exit $ac_status); } && 11820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11822 (eval $ac_try) 2>&5 11823 ac_status=$? 11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11825 (exit $ac_status); }; } && 11826 { ac_try='test -s conftest.$ac_objext' 11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11828 (eval $ac_try) 2>&5 11829 ac_status=$? 11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11831 (exit $ac_status); }; }; then 11832 ac_hi=$ac_mid 11833else 11834 echo "$as_me: failed program was:" >&5 11835sed 's/^/| /' conftest.$ac_ext >&5 11836 11837ac_lo=`expr '(' $ac_mid ')' + 1` 11838fi 11839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11840done 11841case $ac_lo in 11842?*) ac_cv_sizeof_short=$ac_lo;; 11843'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 11844See \`config.log' for more details." >&5 11845echo "$as_me: error: cannot compute sizeof (short), 77 11846See \`config.log' for more details." >&2;} 11847 { (exit 1); exit 1; }; } ;; 11848esac 11849else 11850 if test "$cross_compiling" = yes; then 11851 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 11852echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 11853 { (exit 1); exit 1; }; } 11854else 11855 cat >conftest.$ac_ext <<_ACEOF 11856/* confdefs.h. */ 11857_ACEOF 11858cat confdefs.h >>conftest.$ac_ext 11859cat >>conftest.$ac_ext <<_ACEOF 11860/* end confdefs.h. */ 11861$ac_includes_default 11862long longval () { return (long) (sizeof (short)); } 11863unsigned long ulongval () { return (long) (sizeof (short)); } 11864#include <stdio.h> 11865#include <stdlib.h> 11866int 11867main () 11868{ 11869 11870 FILE *f = fopen ("conftest.val", "w"); 11871 if (! f) 11872 exit (1); 11873 if (((long) (sizeof (short))) < 0) 11874 { 11875 long i = longval (); 11876 if (i != ((long) (sizeof (short)))) 11877 exit (1); 11878 fprintf (f, "%ld\n", i); 11879 } 11880 else 11881 { 11882 unsigned long i = ulongval (); 11883 if (i != ((long) (sizeof (short)))) 11884 exit (1); 11885 fprintf (f, "%lu\n", i); 11886 } 11887 exit (ferror (f) || fclose (f) != 0); 11888 11889 ; 11890 return 0; 11891} 11892_ACEOF 11893rm -f conftest$ac_exeext 11894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11895 (eval $ac_link) 2>&5 11896 ac_status=$? 11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11900 (eval $ac_try) 2>&5 11901 ac_status=$? 11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11903 (exit $ac_status); }; }; then 11904 ac_cv_sizeof_short=`cat conftest.val` 11905else 11906 echo "$as_me: program exited with status $ac_status" >&5 11907echo "$as_me: failed program was:" >&5 11908sed 's/^/| /' conftest.$ac_ext >&5 11909 11910( exit $ac_status ) 11911{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 11912See \`config.log' for more details." >&5 11913echo "$as_me: error: cannot compute sizeof (short), 77 11914See \`config.log' for more details." >&2;} 11915 { (exit 1); exit 1; }; } 11916fi 11917rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11918fi 11919fi 11920rm -f conftest.val 11921else 11922 ac_cv_sizeof_short=0 11923fi 11924fi 11925echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 11926echo "${ECHO_T}$ac_cv_sizeof_short" >&6 11927cat >>confdefs.h <<_ACEOF 11928#define SIZEOF_SHORT $ac_cv_sizeof_short 11929_ACEOF 11930 11931 11932echo "$as_me:$LINENO: checking for int" >&5 11933echo $ECHO_N "checking for int... $ECHO_C" >&6 11934if test "${ac_cv_type_int+set}" = set; then 11935 echo $ECHO_N "(cached) $ECHO_C" >&6 11936else 11937 cat >conftest.$ac_ext <<_ACEOF 11938/* confdefs.h. */ 11939_ACEOF 11940cat confdefs.h >>conftest.$ac_ext 11941cat >>conftest.$ac_ext <<_ACEOF 11942/* end confdefs.h. */ 11943$ac_includes_default 11944int 11945main () 11946{ 11947if ((int *) 0) 11948 return 0; 11949if (sizeof (int)) 11950 return 0; 11951 ; 11952 return 0; 11953} 11954_ACEOF 11955rm -f conftest.$ac_objext 11956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11957 (eval $ac_compile) 2>conftest.er1 11958 ac_status=$? 11959 grep -v '^ *+' conftest.er1 >conftest.err 11960 rm -f conftest.er1 11961 cat conftest.err >&5 11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11963 (exit $ac_status); } && 11964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11966 (eval $ac_try) 2>&5 11967 ac_status=$? 11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11969 (exit $ac_status); }; } && 11970 { ac_try='test -s conftest.$ac_objext' 11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11972 (eval $ac_try) 2>&5 11973 ac_status=$? 11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11975 (exit $ac_status); }; }; then 11976 ac_cv_type_int=yes 11977else 11978 echo "$as_me: failed program was:" >&5 11979sed 's/^/| /' conftest.$ac_ext >&5 11980 11981ac_cv_type_int=no 11982fi 11983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11984fi 11985echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 11986echo "${ECHO_T}$ac_cv_type_int" >&6 11987 11988echo "$as_me:$LINENO: checking size of int" >&5 11989echo $ECHO_N "checking size of int... $ECHO_C" >&6 11990if test "${ac_cv_sizeof_int+set}" = set; then 11991 echo $ECHO_N "(cached) $ECHO_C" >&6 11992else 11993 if test "$ac_cv_type_int" = yes; then 11994 # The cast to unsigned long works around a bug in the HP C Compiler 11995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11997 # This bug is HP SR number 8606223364. 11998 if test "$cross_compiling" = yes; then 11999 # Depending upon the size, compute the lo and hi bounds. 12000cat >conftest.$ac_ext <<_ACEOF 12001/* confdefs.h. */ 12002_ACEOF 12003cat confdefs.h >>conftest.$ac_ext 12004cat >>conftest.$ac_ext <<_ACEOF 12005/* end confdefs.h. */ 12006$ac_includes_default 12007int 12008main () 12009{ 12010static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 12011test_array [0] = 0 12012 12013 ; 12014 return 0; 12015} 12016_ACEOF 12017rm -f conftest.$ac_objext 12018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12019 (eval $ac_compile) 2>conftest.er1 12020 ac_status=$? 12021 grep -v '^ *+' conftest.er1 >conftest.err 12022 rm -f conftest.er1 12023 cat conftest.err >&5 12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12025 (exit $ac_status); } && 12026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12028 (eval $ac_try) 2>&5 12029 ac_status=$? 12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12031 (exit $ac_status); }; } && 12032 { ac_try='test -s conftest.$ac_objext' 12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12034 (eval $ac_try) 2>&5 12035 ac_status=$? 12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12037 (exit $ac_status); }; }; then 12038 ac_lo=0 ac_mid=0 12039 while :; do 12040 cat >conftest.$ac_ext <<_ACEOF 12041/* confdefs.h. */ 12042_ACEOF 12043cat confdefs.h >>conftest.$ac_ext 12044cat >>conftest.$ac_ext <<_ACEOF 12045/* end confdefs.h. */ 12046$ac_includes_default 12047int 12048main () 12049{ 12050static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 12051test_array [0] = 0 12052 12053 ; 12054 return 0; 12055} 12056_ACEOF 12057rm -f conftest.$ac_objext 12058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12059 (eval $ac_compile) 2>conftest.er1 12060 ac_status=$? 12061 grep -v '^ *+' conftest.er1 >conftest.err 12062 rm -f conftest.er1 12063 cat conftest.err >&5 12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12065 (exit $ac_status); } && 12066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12068 (eval $ac_try) 2>&5 12069 ac_status=$? 12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12071 (exit $ac_status); }; } && 12072 { ac_try='test -s conftest.$ac_objext' 12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12074 (eval $ac_try) 2>&5 12075 ac_status=$? 12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12077 (exit $ac_status); }; }; then 12078 ac_hi=$ac_mid; break 12079else 12080 echo "$as_me: failed program was:" >&5 12081sed 's/^/| /' conftest.$ac_ext >&5 12082 12083ac_lo=`expr $ac_mid + 1` 12084 if test $ac_lo -le $ac_mid; then 12085 ac_lo= ac_hi= 12086 break 12087 fi 12088 ac_mid=`expr 2 '*' $ac_mid + 1` 12089fi 12090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12091 done 12092else 12093 echo "$as_me: failed program was:" >&5 12094sed 's/^/| /' conftest.$ac_ext >&5 12095 12096cat >conftest.$ac_ext <<_ACEOF 12097/* confdefs.h. */ 12098_ACEOF 12099cat confdefs.h >>conftest.$ac_ext 12100cat >>conftest.$ac_ext <<_ACEOF 12101/* end confdefs.h. */ 12102$ac_includes_default 12103int 12104main () 12105{ 12106static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 12107test_array [0] = 0 12108 12109 ; 12110 return 0; 12111} 12112_ACEOF 12113rm -f conftest.$ac_objext 12114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12115 (eval $ac_compile) 2>conftest.er1 12116 ac_status=$? 12117 grep -v '^ *+' conftest.er1 >conftest.err 12118 rm -f conftest.er1 12119 cat conftest.err >&5 12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12121 (exit $ac_status); } && 12122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12124 (eval $ac_try) 2>&5 12125 ac_status=$? 12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12127 (exit $ac_status); }; } && 12128 { ac_try='test -s conftest.$ac_objext' 12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12130 (eval $ac_try) 2>&5 12131 ac_status=$? 12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12133 (exit $ac_status); }; }; then 12134 ac_hi=-1 ac_mid=-1 12135 while :; do 12136 cat >conftest.$ac_ext <<_ACEOF 12137/* confdefs.h. */ 12138_ACEOF 12139cat confdefs.h >>conftest.$ac_ext 12140cat >>conftest.$ac_ext <<_ACEOF 12141/* end confdefs.h. */ 12142$ac_includes_default 12143int 12144main () 12145{ 12146static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 12147test_array [0] = 0 12148 12149 ; 12150 return 0; 12151} 12152_ACEOF 12153rm -f conftest.$ac_objext 12154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12155 (eval $ac_compile) 2>conftest.er1 12156 ac_status=$? 12157 grep -v '^ *+' conftest.er1 >conftest.err 12158 rm -f conftest.er1 12159 cat conftest.err >&5 12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12161 (exit $ac_status); } && 12162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12164 (eval $ac_try) 2>&5 12165 ac_status=$? 12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12167 (exit $ac_status); }; } && 12168 { ac_try='test -s conftest.$ac_objext' 12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12170 (eval $ac_try) 2>&5 12171 ac_status=$? 12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12173 (exit $ac_status); }; }; then 12174 ac_lo=$ac_mid; break 12175else 12176 echo "$as_me: failed program was:" >&5 12177sed 's/^/| /' conftest.$ac_ext >&5 12178 12179ac_hi=`expr '(' $ac_mid ')' - 1` 12180 if test $ac_mid -le $ac_hi; then 12181 ac_lo= ac_hi= 12182 break 12183 fi 12184 ac_mid=`expr 2 '*' $ac_mid` 12185fi 12186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12187 done 12188else 12189 echo "$as_me: failed program was:" >&5 12190sed 's/^/| /' conftest.$ac_ext >&5 12191 12192ac_lo= ac_hi= 12193fi 12194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12195fi 12196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12197# Binary search between lo and hi bounds. 12198while test "x$ac_lo" != "x$ac_hi"; do 12199 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12200 cat >conftest.$ac_ext <<_ACEOF 12201/* confdefs.h. */ 12202_ACEOF 12203cat confdefs.h >>conftest.$ac_ext 12204cat >>conftest.$ac_ext <<_ACEOF 12205/* end confdefs.h. */ 12206$ac_includes_default 12207int 12208main () 12209{ 12210static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 12211test_array [0] = 0 12212 12213 ; 12214 return 0; 12215} 12216_ACEOF 12217rm -f conftest.$ac_objext 12218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12219 (eval $ac_compile) 2>conftest.er1 12220 ac_status=$? 12221 grep -v '^ *+' conftest.er1 >conftest.err 12222 rm -f conftest.er1 12223 cat conftest.err >&5 12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12225 (exit $ac_status); } && 12226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12228 (eval $ac_try) 2>&5 12229 ac_status=$? 12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12231 (exit $ac_status); }; } && 12232 { ac_try='test -s conftest.$ac_objext' 12233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12234 (eval $ac_try) 2>&5 12235 ac_status=$? 12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12237 (exit $ac_status); }; }; then 12238 ac_hi=$ac_mid 12239else 12240 echo "$as_me: failed program was:" >&5 12241sed 's/^/| /' conftest.$ac_ext >&5 12242 12243ac_lo=`expr '(' $ac_mid ')' + 1` 12244fi 12245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12246done 12247case $ac_lo in 12248?*) ac_cv_sizeof_int=$ac_lo;; 12249'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 12250See \`config.log' for more details." >&5 12251echo "$as_me: error: cannot compute sizeof (int), 77 12252See \`config.log' for more details." >&2;} 12253 { (exit 1); exit 1; }; } ;; 12254esac 12255else 12256 if test "$cross_compiling" = yes; then 12257 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 12258echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 12259 { (exit 1); exit 1; }; } 12260else 12261 cat >conftest.$ac_ext <<_ACEOF 12262/* confdefs.h. */ 12263_ACEOF 12264cat confdefs.h >>conftest.$ac_ext 12265cat >>conftest.$ac_ext <<_ACEOF 12266/* end confdefs.h. */ 12267$ac_includes_default 12268long longval () { return (long) (sizeof (int)); } 12269unsigned long ulongval () { return (long) (sizeof (int)); } 12270#include <stdio.h> 12271#include <stdlib.h> 12272int 12273main () 12274{ 12275 12276 FILE *f = fopen ("conftest.val", "w"); 12277 if (! f) 12278 exit (1); 12279 if (((long) (sizeof (int))) < 0) 12280 { 12281 long i = longval (); 12282 if (i != ((long) (sizeof (int)))) 12283 exit (1); 12284 fprintf (f, "%ld\n", i); 12285 } 12286 else 12287 { 12288 unsigned long i = ulongval (); 12289 if (i != ((long) (sizeof (int)))) 12290 exit (1); 12291 fprintf (f, "%lu\n", i); 12292 } 12293 exit (ferror (f) || fclose (f) != 0); 12294 12295 ; 12296 return 0; 12297} 12298_ACEOF 12299rm -f conftest$ac_exeext 12300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12301 (eval $ac_link) 2>&5 12302 ac_status=$? 12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12306 (eval $ac_try) 2>&5 12307 ac_status=$? 12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12309 (exit $ac_status); }; }; then 12310 ac_cv_sizeof_int=`cat conftest.val` 12311else 12312 echo "$as_me: program exited with status $ac_status" >&5 12313echo "$as_me: failed program was:" >&5 12314sed 's/^/| /' conftest.$ac_ext >&5 12315 12316( exit $ac_status ) 12317{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 12318See \`config.log' for more details." >&5 12319echo "$as_me: error: cannot compute sizeof (int), 77 12320See \`config.log' for more details." >&2;} 12321 { (exit 1); exit 1; }; } 12322fi 12323rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12324fi 12325fi 12326rm -f conftest.val 12327else 12328 ac_cv_sizeof_int=0 12329fi 12330fi 12331echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 12332echo "${ECHO_T}$ac_cv_sizeof_int" >&6 12333cat >>confdefs.h <<_ACEOF 12334#define SIZEOF_INT $ac_cv_sizeof_int 12335_ACEOF 12336 12337 12338echo "$as_me:$LINENO: checking for long" >&5 12339echo $ECHO_N "checking for long... $ECHO_C" >&6 12340if test "${ac_cv_type_long+set}" = set; then 12341 echo $ECHO_N "(cached) $ECHO_C" >&6 12342else 12343 cat >conftest.$ac_ext <<_ACEOF 12344/* confdefs.h. */ 12345_ACEOF 12346cat confdefs.h >>conftest.$ac_ext 12347cat >>conftest.$ac_ext <<_ACEOF 12348/* end confdefs.h. */ 12349$ac_includes_default 12350int 12351main () 12352{ 12353if ((long *) 0) 12354 return 0; 12355if (sizeof (long)) 12356 return 0; 12357 ; 12358 return 0; 12359} 12360_ACEOF 12361rm -f conftest.$ac_objext 12362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12363 (eval $ac_compile) 2>conftest.er1 12364 ac_status=$? 12365 grep -v '^ *+' conftest.er1 >conftest.err 12366 rm -f conftest.er1 12367 cat conftest.err >&5 12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12369 (exit $ac_status); } && 12370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12372 (eval $ac_try) 2>&5 12373 ac_status=$? 12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12375 (exit $ac_status); }; } && 12376 { ac_try='test -s conftest.$ac_objext' 12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12378 (eval $ac_try) 2>&5 12379 ac_status=$? 12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12381 (exit $ac_status); }; }; then 12382 ac_cv_type_long=yes 12383else 12384 echo "$as_me: failed program was:" >&5 12385sed 's/^/| /' conftest.$ac_ext >&5 12386 12387ac_cv_type_long=no 12388fi 12389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12390fi 12391echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 12392echo "${ECHO_T}$ac_cv_type_long" >&6 12393 12394echo "$as_me:$LINENO: checking size of long" >&5 12395echo $ECHO_N "checking size of long... $ECHO_C" >&6 12396if test "${ac_cv_sizeof_long+set}" = set; then 12397 echo $ECHO_N "(cached) $ECHO_C" >&6 12398else 12399 if test "$ac_cv_type_long" = yes; then 12400 # The cast to unsigned long works around a bug in the HP C Compiler 12401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12403 # This bug is HP SR number 8606223364. 12404 if test "$cross_compiling" = yes; then 12405 # Depending upon the size, compute the lo and hi bounds. 12406cat >conftest.$ac_ext <<_ACEOF 12407/* confdefs.h. */ 12408_ACEOF 12409cat confdefs.h >>conftest.$ac_ext 12410cat >>conftest.$ac_ext <<_ACEOF 12411/* end confdefs.h. */ 12412$ac_includes_default 12413int 12414main () 12415{ 12416static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 12417test_array [0] = 0 12418 12419 ; 12420 return 0; 12421} 12422_ACEOF 12423rm -f conftest.$ac_objext 12424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12425 (eval $ac_compile) 2>conftest.er1 12426 ac_status=$? 12427 grep -v '^ *+' conftest.er1 >conftest.err 12428 rm -f conftest.er1 12429 cat conftest.err >&5 12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12431 (exit $ac_status); } && 12432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12434 (eval $ac_try) 2>&5 12435 ac_status=$? 12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12437 (exit $ac_status); }; } && 12438 { ac_try='test -s conftest.$ac_objext' 12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12440 (eval $ac_try) 2>&5 12441 ac_status=$? 12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12443 (exit $ac_status); }; }; then 12444 ac_lo=0 ac_mid=0 12445 while :; do 12446 cat >conftest.$ac_ext <<_ACEOF 12447/* confdefs.h. */ 12448_ACEOF 12449cat confdefs.h >>conftest.$ac_ext 12450cat >>conftest.$ac_ext <<_ACEOF 12451/* end confdefs.h. */ 12452$ac_includes_default 12453int 12454main () 12455{ 12456static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 12457test_array [0] = 0 12458 12459 ; 12460 return 0; 12461} 12462_ACEOF 12463rm -f conftest.$ac_objext 12464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12465 (eval $ac_compile) 2>conftest.er1 12466 ac_status=$? 12467 grep -v '^ *+' conftest.er1 >conftest.err 12468 rm -f conftest.er1 12469 cat conftest.err >&5 12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12471 (exit $ac_status); } && 12472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12474 (eval $ac_try) 2>&5 12475 ac_status=$? 12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12477 (exit $ac_status); }; } && 12478 { ac_try='test -s conftest.$ac_objext' 12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12480 (eval $ac_try) 2>&5 12481 ac_status=$? 12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12483 (exit $ac_status); }; }; then 12484 ac_hi=$ac_mid; break 12485else 12486 echo "$as_me: failed program was:" >&5 12487sed 's/^/| /' conftest.$ac_ext >&5 12488 12489ac_lo=`expr $ac_mid + 1` 12490 if test $ac_lo -le $ac_mid; then 12491 ac_lo= ac_hi= 12492 break 12493 fi 12494 ac_mid=`expr 2 '*' $ac_mid + 1` 12495fi 12496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12497 done 12498else 12499 echo "$as_me: failed program was:" >&5 12500sed 's/^/| /' conftest.$ac_ext >&5 12501 12502cat >conftest.$ac_ext <<_ACEOF 12503/* confdefs.h. */ 12504_ACEOF 12505cat confdefs.h >>conftest.$ac_ext 12506cat >>conftest.$ac_ext <<_ACEOF 12507/* end confdefs.h. */ 12508$ac_includes_default 12509int 12510main () 12511{ 12512static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 12513test_array [0] = 0 12514 12515 ; 12516 return 0; 12517} 12518_ACEOF 12519rm -f conftest.$ac_objext 12520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12521 (eval $ac_compile) 2>conftest.er1 12522 ac_status=$? 12523 grep -v '^ *+' conftest.er1 >conftest.err 12524 rm -f conftest.er1 12525 cat conftest.err >&5 12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12527 (exit $ac_status); } && 12528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12530 (eval $ac_try) 2>&5 12531 ac_status=$? 12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12533 (exit $ac_status); }; } && 12534 { ac_try='test -s conftest.$ac_objext' 12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12536 (eval $ac_try) 2>&5 12537 ac_status=$? 12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12539 (exit $ac_status); }; }; then 12540 ac_hi=-1 ac_mid=-1 12541 while :; do 12542 cat >conftest.$ac_ext <<_ACEOF 12543/* confdefs.h. */ 12544_ACEOF 12545cat confdefs.h >>conftest.$ac_ext 12546cat >>conftest.$ac_ext <<_ACEOF 12547/* end confdefs.h. */ 12548$ac_includes_default 12549int 12550main () 12551{ 12552static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 12553test_array [0] = 0 12554 12555 ; 12556 return 0; 12557} 12558_ACEOF 12559rm -f conftest.$ac_objext 12560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12561 (eval $ac_compile) 2>conftest.er1 12562 ac_status=$? 12563 grep -v '^ *+' conftest.er1 >conftest.err 12564 rm -f conftest.er1 12565 cat conftest.err >&5 12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12567 (exit $ac_status); } && 12568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12570 (eval $ac_try) 2>&5 12571 ac_status=$? 12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12573 (exit $ac_status); }; } && 12574 { ac_try='test -s conftest.$ac_objext' 12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12576 (eval $ac_try) 2>&5 12577 ac_status=$? 12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12579 (exit $ac_status); }; }; then 12580 ac_lo=$ac_mid; break 12581else 12582 echo "$as_me: failed program was:" >&5 12583sed 's/^/| /' conftest.$ac_ext >&5 12584 12585ac_hi=`expr '(' $ac_mid ')' - 1` 12586 if test $ac_mid -le $ac_hi; then 12587 ac_lo= ac_hi= 12588 break 12589 fi 12590 ac_mid=`expr 2 '*' $ac_mid` 12591fi 12592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12593 done 12594else 12595 echo "$as_me: failed program was:" >&5 12596sed 's/^/| /' conftest.$ac_ext >&5 12597 12598ac_lo= ac_hi= 12599fi 12600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12601fi 12602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12603# Binary search between lo and hi bounds. 12604while test "x$ac_lo" != "x$ac_hi"; do 12605 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12606 cat >conftest.$ac_ext <<_ACEOF 12607/* confdefs.h. */ 12608_ACEOF 12609cat confdefs.h >>conftest.$ac_ext 12610cat >>conftest.$ac_ext <<_ACEOF 12611/* end confdefs.h. */ 12612$ac_includes_default 12613int 12614main () 12615{ 12616static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 12617test_array [0] = 0 12618 12619 ; 12620 return 0; 12621} 12622_ACEOF 12623rm -f conftest.$ac_objext 12624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12625 (eval $ac_compile) 2>conftest.er1 12626 ac_status=$? 12627 grep -v '^ *+' conftest.er1 >conftest.err 12628 rm -f conftest.er1 12629 cat conftest.err >&5 12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12631 (exit $ac_status); } && 12632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12634 (eval $ac_try) 2>&5 12635 ac_status=$? 12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12637 (exit $ac_status); }; } && 12638 { ac_try='test -s conftest.$ac_objext' 12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12640 (eval $ac_try) 2>&5 12641 ac_status=$? 12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12643 (exit $ac_status); }; }; then 12644 ac_hi=$ac_mid 12645else 12646 echo "$as_me: failed program was:" >&5 12647sed 's/^/| /' conftest.$ac_ext >&5 12648 12649ac_lo=`expr '(' $ac_mid ')' + 1` 12650fi 12651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12652done 12653case $ac_lo in 12654?*) ac_cv_sizeof_long=$ac_lo;; 12655'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 12656See \`config.log' for more details." >&5 12657echo "$as_me: error: cannot compute sizeof (long), 77 12658See \`config.log' for more details." >&2;} 12659 { (exit 1); exit 1; }; } ;; 12660esac 12661else 12662 if test "$cross_compiling" = yes; then 12663 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 12664echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 12665 { (exit 1); exit 1; }; } 12666else 12667 cat >conftest.$ac_ext <<_ACEOF 12668/* confdefs.h. */ 12669_ACEOF 12670cat confdefs.h >>conftest.$ac_ext 12671cat >>conftest.$ac_ext <<_ACEOF 12672/* end confdefs.h. */ 12673$ac_includes_default 12674long longval () { return (long) (sizeof (long)); } 12675unsigned long ulongval () { return (long) (sizeof (long)); } 12676#include <stdio.h> 12677#include <stdlib.h> 12678int 12679main () 12680{ 12681 12682 FILE *f = fopen ("conftest.val", "w"); 12683 if (! f) 12684 exit (1); 12685 if (((long) (sizeof (long))) < 0) 12686 { 12687 long i = longval (); 12688 if (i != ((long) (sizeof (long)))) 12689 exit (1); 12690 fprintf (f, "%ld\n", i); 12691 } 12692 else 12693 { 12694 unsigned long i = ulongval (); 12695 if (i != ((long) (sizeof (long)))) 12696 exit (1); 12697 fprintf (f, "%lu\n", i); 12698 } 12699 exit (ferror (f) || fclose (f) != 0); 12700 12701 ; 12702 return 0; 12703} 12704_ACEOF 12705rm -f conftest$ac_exeext 12706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12707 (eval $ac_link) 2>&5 12708 ac_status=$? 12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12712 (eval $ac_try) 2>&5 12713 ac_status=$? 12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12715 (exit $ac_status); }; }; then 12716 ac_cv_sizeof_long=`cat conftest.val` 12717else 12718 echo "$as_me: program exited with status $ac_status" >&5 12719echo "$as_me: failed program was:" >&5 12720sed 's/^/| /' conftest.$ac_ext >&5 12721 12722( exit $ac_status ) 12723{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 12724See \`config.log' for more details." >&5 12725echo "$as_me: error: cannot compute sizeof (long), 77 12726See \`config.log' for more details." >&2;} 12727 { (exit 1); exit 1; }; } 12728fi 12729rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12730fi 12731fi 12732rm -f conftest.val 12733else 12734 ac_cv_sizeof_long=0 12735fi 12736fi 12737echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 12738echo "${ECHO_T}$ac_cv_sizeof_long" >&6 12739cat >>confdefs.h <<_ACEOF 12740#define SIZEOF_LONG $ac_cv_sizeof_long 12741_ACEOF 12742 12743 12744echo "$as_me:$LINENO: checking for long long" >&5 12745echo $ECHO_N "checking for long long... $ECHO_C" >&6 12746if test "${ac_cv_type_long_long+set}" = set; then 12747 echo $ECHO_N "(cached) $ECHO_C" >&6 12748else 12749 cat >conftest.$ac_ext <<_ACEOF 12750/* confdefs.h. */ 12751_ACEOF 12752cat confdefs.h >>conftest.$ac_ext 12753cat >>conftest.$ac_ext <<_ACEOF 12754/* end confdefs.h. */ 12755$ac_includes_default 12756int 12757main () 12758{ 12759if ((long long *) 0) 12760 return 0; 12761if (sizeof (long long)) 12762 return 0; 12763 ; 12764 return 0; 12765} 12766_ACEOF 12767rm -f conftest.$ac_objext 12768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12769 (eval $ac_compile) 2>conftest.er1 12770 ac_status=$? 12771 grep -v '^ *+' conftest.er1 >conftest.err 12772 rm -f conftest.er1 12773 cat conftest.err >&5 12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12775 (exit $ac_status); } && 12776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12778 (eval $ac_try) 2>&5 12779 ac_status=$? 12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12781 (exit $ac_status); }; } && 12782 { ac_try='test -s conftest.$ac_objext' 12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12784 (eval $ac_try) 2>&5 12785 ac_status=$? 12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12787 (exit $ac_status); }; }; then 12788 ac_cv_type_long_long=yes 12789else 12790 echo "$as_me: failed program was:" >&5 12791sed 's/^/| /' conftest.$ac_ext >&5 12792 12793ac_cv_type_long_long=no 12794fi 12795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12796fi 12797echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 12798echo "${ECHO_T}$ac_cv_type_long_long" >&6 12799 12800echo "$as_me:$LINENO: checking size of long long" >&5 12801echo $ECHO_N "checking size of long long... $ECHO_C" >&6 12802if test "${ac_cv_sizeof_long_long+set}" = set; then 12803 echo $ECHO_N "(cached) $ECHO_C" >&6 12804else 12805 if test "$ac_cv_type_long_long" = yes; then 12806 # The cast to unsigned long works around a bug in the HP C Compiler 12807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12809 # This bug is HP SR number 8606223364. 12810 if test "$cross_compiling" = yes; then 12811 # Depending upon the size, compute the lo and hi bounds. 12812cat >conftest.$ac_ext <<_ACEOF 12813/* confdefs.h. */ 12814_ACEOF 12815cat confdefs.h >>conftest.$ac_ext 12816cat >>conftest.$ac_ext <<_ACEOF 12817/* end confdefs.h. */ 12818$ac_includes_default 12819int 12820main () 12821{ 12822static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; 12823test_array [0] = 0 12824 12825 ; 12826 return 0; 12827} 12828_ACEOF 12829rm -f conftest.$ac_objext 12830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12831 (eval $ac_compile) 2>conftest.er1 12832 ac_status=$? 12833 grep -v '^ *+' conftest.er1 >conftest.err 12834 rm -f conftest.er1 12835 cat conftest.err >&5 12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12837 (exit $ac_status); } && 12838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12840 (eval $ac_try) 2>&5 12841 ac_status=$? 12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12843 (exit $ac_status); }; } && 12844 { ac_try='test -s conftest.$ac_objext' 12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12846 (eval $ac_try) 2>&5 12847 ac_status=$? 12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12849 (exit $ac_status); }; }; then 12850 ac_lo=0 ac_mid=0 12851 while :; do 12852 cat >conftest.$ac_ext <<_ACEOF 12853/* confdefs.h. */ 12854_ACEOF 12855cat confdefs.h >>conftest.$ac_ext 12856cat >>conftest.$ac_ext <<_ACEOF 12857/* end confdefs.h. */ 12858$ac_includes_default 12859int 12860main () 12861{ 12862static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 12863test_array [0] = 0 12864 12865 ; 12866 return 0; 12867} 12868_ACEOF 12869rm -f conftest.$ac_objext 12870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12871 (eval $ac_compile) 2>conftest.er1 12872 ac_status=$? 12873 grep -v '^ *+' conftest.er1 >conftest.err 12874 rm -f conftest.er1 12875 cat conftest.err >&5 12876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12877 (exit $ac_status); } && 12878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12880 (eval $ac_try) 2>&5 12881 ac_status=$? 12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12883 (exit $ac_status); }; } && 12884 { ac_try='test -s conftest.$ac_objext' 12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12886 (eval $ac_try) 2>&5 12887 ac_status=$? 12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12889 (exit $ac_status); }; }; then 12890 ac_hi=$ac_mid; break 12891else 12892 echo "$as_me: failed program was:" >&5 12893sed 's/^/| /' conftest.$ac_ext >&5 12894 12895ac_lo=`expr $ac_mid + 1` 12896 if test $ac_lo -le $ac_mid; then 12897 ac_lo= ac_hi= 12898 break 12899 fi 12900 ac_mid=`expr 2 '*' $ac_mid + 1` 12901fi 12902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12903 done 12904else 12905 echo "$as_me: failed program was:" >&5 12906sed 's/^/| /' conftest.$ac_ext >&5 12907 12908cat >conftest.$ac_ext <<_ACEOF 12909/* confdefs.h. */ 12910_ACEOF 12911cat confdefs.h >>conftest.$ac_ext 12912cat >>conftest.$ac_ext <<_ACEOF 12913/* end confdefs.h. */ 12914$ac_includes_default 12915int 12916main () 12917{ 12918static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; 12919test_array [0] = 0 12920 12921 ; 12922 return 0; 12923} 12924_ACEOF 12925rm -f conftest.$ac_objext 12926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12927 (eval $ac_compile) 2>conftest.er1 12928 ac_status=$? 12929 grep -v '^ *+' conftest.er1 >conftest.err 12930 rm -f conftest.er1 12931 cat conftest.err >&5 12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12933 (exit $ac_status); } && 12934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12936 (eval $ac_try) 2>&5 12937 ac_status=$? 12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12939 (exit $ac_status); }; } && 12940 { ac_try='test -s conftest.$ac_objext' 12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12942 (eval $ac_try) 2>&5 12943 ac_status=$? 12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12945 (exit $ac_status); }; }; then 12946 ac_hi=-1 ac_mid=-1 12947 while :; do 12948 cat >conftest.$ac_ext <<_ACEOF 12949/* confdefs.h. */ 12950_ACEOF 12951cat confdefs.h >>conftest.$ac_ext 12952cat >>conftest.$ac_ext <<_ACEOF 12953/* end confdefs.h. */ 12954$ac_includes_default 12955int 12956main () 12957{ 12958static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; 12959test_array [0] = 0 12960 12961 ; 12962 return 0; 12963} 12964_ACEOF 12965rm -f conftest.$ac_objext 12966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12967 (eval $ac_compile) 2>conftest.er1 12968 ac_status=$? 12969 grep -v '^ *+' conftest.er1 >conftest.err 12970 rm -f conftest.er1 12971 cat conftest.err >&5 12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12973 (exit $ac_status); } && 12974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12976 (eval $ac_try) 2>&5 12977 ac_status=$? 12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12979 (exit $ac_status); }; } && 12980 { ac_try='test -s conftest.$ac_objext' 12981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12982 (eval $ac_try) 2>&5 12983 ac_status=$? 12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12985 (exit $ac_status); }; }; then 12986 ac_lo=$ac_mid; break 12987else 12988 echo "$as_me: failed program was:" >&5 12989sed 's/^/| /' conftest.$ac_ext >&5 12990 12991ac_hi=`expr '(' $ac_mid ')' - 1` 12992 if test $ac_mid -le $ac_hi; then 12993 ac_lo= ac_hi= 12994 break 12995 fi 12996 ac_mid=`expr 2 '*' $ac_mid` 12997fi 12998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12999 done 13000else 13001 echo "$as_me: failed program was:" >&5 13002sed 's/^/| /' conftest.$ac_ext >&5 13003 13004ac_lo= ac_hi= 13005fi 13006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13007fi 13008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13009# Binary search between lo and hi bounds. 13010while test "x$ac_lo" != "x$ac_hi"; do 13011 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13012 cat >conftest.$ac_ext <<_ACEOF 13013/* confdefs.h. */ 13014_ACEOF 13015cat confdefs.h >>conftest.$ac_ext 13016cat >>conftest.$ac_ext <<_ACEOF 13017/* end confdefs.h. */ 13018$ac_includes_default 13019int 13020main () 13021{ 13022static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; 13023test_array [0] = 0 13024 13025 ; 13026 return 0; 13027} 13028_ACEOF 13029rm -f conftest.$ac_objext 13030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13031 (eval $ac_compile) 2>conftest.er1 13032 ac_status=$? 13033 grep -v '^ *+' conftest.er1 >conftest.err 13034 rm -f conftest.er1 13035 cat conftest.err >&5 13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13037 (exit $ac_status); } && 13038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13040 (eval $ac_try) 2>&5 13041 ac_status=$? 13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13043 (exit $ac_status); }; } && 13044 { ac_try='test -s conftest.$ac_objext' 13045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13046 (eval $ac_try) 2>&5 13047 ac_status=$? 13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13049 (exit $ac_status); }; }; then 13050 ac_hi=$ac_mid 13051else 13052 echo "$as_me: failed program was:" >&5 13053sed 's/^/| /' conftest.$ac_ext >&5 13054 13055ac_lo=`expr '(' $ac_mid ')' + 1` 13056fi 13057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13058done 13059case $ac_lo in 13060?*) ac_cv_sizeof_long_long=$ac_lo;; 13061'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 13062See \`config.log' for more details." >&5 13063echo "$as_me: error: cannot compute sizeof (long long), 77 13064See \`config.log' for more details." >&2;} 13065 { (exit 1); exit 1; }; } ;; 13066esac 13067else 13068 if test "$cross_compiling" = yes; then 13069 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 13070echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 13071 { (exit 1); exit 1; }; } 13072else 13073 cat >conftest.$ac_ext <<_ACEOF 13074/* confdefs.h. */ 13075_ACEOF 13076cat confdefs.h >>conftest.$ac_ext 13077cat >>conftest.$ac_ext <<_ACEOF 13078/* end confdefs.h. */ 13079$ac_includes_default 13080long longval () { return (long) (sizeof (long long)); } 13081unsigned long ulongval () { return (long) (sizeof (long long)); } 13082#include <stdio.h> 13083#include <stdlib.h> 13084int 13085main () 13086{ 13087 13088 FILE *f = fopen ("conftest.val", "w"); 13089 if (! f) 13090 exit (1); 13091 if (((long) (sizeof (long long))) < 0) 13092 { 13093 long i = longval (); 13094 if (i != ((long) (sizeof (long long)))) 13095 exit (1); 13096 fprintf (f, "%ld\n", i); 13097 } 13098 else 13099 { 13100 unsigned long i = ulongval (); 13101 if (i != ((long) (sizeof (long long)))) 13102 exit (1); 13103 fprintf (f, "%lu\n", i); 13104 } 13105 exit (ferror (f) || fclose (f) != 0); 13106 13107 ; 13108 return 0; 13109} 13110_ACEOF 13111rm -f conftest$ac_exeext 13112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13113 (eval $ac_link) 2>&5 13114 ac_status=$? 13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13118 (eval $ac_try) 2>&5 13119 ac_status=$? 13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13121 (exit $ac_status); }; }; then 13122 ac_cv_sizeof_long_long=`cat conftest.val` 13123else 13124 echo "$as_me: program exited with status $ac_status" >&5 13125echo "$as_me: failed program was:" >&5 13126sed 's/^/| /' conftest.$ac_ext >&5 13127 13128( exit $ac_status ) 13129{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 13130See \`config.log' for more details." >&5 13131echo "$as_me: error: cannot compute sizeof (long long), 77 13132See \`config.log' for more details." >&2;} 13133 { (exit 1); exit 1; }; } 13134fi 13135rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13136fi 13137fi 13138rm -f conftest.val 13139else 13140 ac_cv_sizeof_long_long=0 13141fi 13142fi 13143echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 13144echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 13145cat >>confdefs.h <<_ACEOF 13146#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 13147_ACEOF 13148 13149 13150SIZEOF_SHORT=$ac_cv_sizeof_short 13151SIZEOF_INT=$ac_cv_sizeof_int 13152SIZEOF_LONG=$ac_cv_sizeof_long 13153SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long 13154 13155 13156 13157 13158echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 13159echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 13160if test "${ac_cv_c_bigendian+set}" = set; then 13161 echo $ECHO_N "(cached) $ECHO_C" >&6 13162else 13163 # See if sys/param.h defines the BYTE_ORDER macro. 13164cat >conftest.$ac_ext <<_ACEOF 13165/* confdefs.h. */ 13166_ACEOF 13167cat confdefs.h >>conftest.$ac_ext 13168cat >>conftest.$ac_ext <<_ACEOF 13169/* end confdefs.h. */ 13170#include <sys/types.h> 13171#include <sys/param.h> 13172 13173int 13174main () 13175{ 13176#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 13177 bogus endian macros 13178#endif 13179 13180 ; 13181 return 0; 13182} 13183_ACEOF 13184rm -f conftest.$ac_objext 13185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13186 (eval $ac_compile) 2>conftest.er1 13187 ac_status=$? 13188 grep -v '^ *+' conftest.er1 >conftest.err 13189 rm -f conftest.er1 13190 cat conftest.err >&5 13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13192 (exit $ac_status); } && 13193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13195 (eval $ac_try) 2>&5 13196 ac_status=$? 13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13198 (exit $ac_status); }; } && 13199 { ac_try='test -s conftest.$ac_objext' 13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13201 (eval $ac_try) 2>&5 13202 ac_status=$? 13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13204 (exit $ac_status); }; }; then 13205 # It does; now see whether it defined to BIG_ENDIAN or not. 13206cat >conftest.$ac_ext <<_ACEOF 13207/* confdefs.h. */ 13208_ACEOF 13209cat confdefs.h >>conftest.$ac_ext 13210cat >>conftest.$ac_ext <<_ACEOF 13211/* end confdefs.h. */ 13212#include <sys/types.h> 13213#include <sys/param.h> 13214 13215int 13216main () 13217{ 13218#if BYTE_ORDER != BIG_ENDIAN 13219 not big endian 13220#endif 13221 13222 ; 13223 return 0; 13224} 13225_ACEOF 13226rm -f conftest.$ac_objext 13227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13228 (eval $ac_compile) 2>conftest.er1 13229 ac_status=$? 13230 grep -v '^ *+' conftest.er1 >conftest.err 13231 rm -f conftest.er1 13232 cat conftest.err >&5 13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13234 (exit $ac_status); } && 13235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13237 (eval $ac_try) 2>&5 13238 ac_status=$? 13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13240 (exit $ac_status); }; } && 13241 { ac_try='test -s conftest.$ac_objext' 13242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13243 (eval $ac_try) 2>&5 13244 ac_status=$? 13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13246 (exit $ac_status); }; }; then 13247 ac_cv_c_bigendian=yes 13248else 13249 echo "$as_me: failed program was:" >&5 13250sed 's/^/| /' conftest.$ac_ext >&5 13251 13252ac_cv_c_bigendian=no 13253fi 13254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13255else 13256 echo "$as_me: failed program was:" >&5 13257sed 's/^/| /' conftest.$ac_ext >&5 13258 13259# It does not; compile a test program. 13260if test "$cross_compiling" = yes; then 13261 # try to guess the endianness by grepping values into an object file 13262 ac_cv_c_bigendian=unknown 13263 cat >conftest.$ac_ext <<_ACEOF 13264/* confdefs.h. */ 13265_ACEOF 13266cat confdefs.h >>conftest.$ac_ext 13267cat >>conftest.$ac_ext <<_ACEOF 13268/* end confdefs.h. */ 13269short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13270short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13271void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 13272short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13273short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13274void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 13275int 13276main () 13277{ 13278 _ascii (); _ebcdic (); 13279 ; 13280 return 0; 13281} 13282_ACEOF 13283rm -f conftest.$ac_objext 13284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13285 (eval $ac_compile) 2>conftest.er1 13286 ac_status=$? 13287 grep -v '^ *+' conftest.er1 >conftest.err 13288 rm -f conftest.er1 13289 cat conftest.err >&5 13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13291 (exit $ac_status); } && 13292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13294 (eval $ac_try) 2>&5 13295 ac_status=$? 13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13297 (exit $ac_status); }; } && 13298 { ac_try='test -s conftest.$ac_objext' 13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13300 (eval $ac_try) 2>&5 13301 ac_status=$? 13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13303 (exit $ac_status); }; }; then 13304 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 13305 ac_cv_c_bigendian=yes 13306fi 13307if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13308 if test "$ac_cv_c_bigendian" = unknown; then 13309 ac_cv_c_bigendian=no 13310 else 13311 # finding both strings is unlikely to happen, but who knows? 13312 ac_cv_c_bigendian=unknown 13313 fi 13314fi 13315else 13316 echo "$as_me: failed program was:" >&5 13317sed 's/^/| /' conftest.$ac_ext >&5 13318 13319fi 13320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13321else 13322 cat >conftest.$ac_ext <<_ACEOF 13323/* confdefs.h. */ 13324_ACEOF 13325cat confdefs.h >>conftest.$ac_ext 13326cat >>conftest.$ac_ext <<_ACEOF 13327/* end confdefs.h. */ 13328int 13329main () 13330{ 13331 /* Are we little or big endian? From Harbison&Steele. */ 13332 union 13333 { 13334 long l; 13335 char c[sizeof (long)]; 13336 } u; 13337 u.l = 1; 13338 exit (u.c[sizeof (long) - 1] == 1); 13339} 13340_ACEOF 13341rm -f conftest$ac_exeext 13342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13343 (eval $ac_link) 2>&5 13344 ac_status=$? 13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13348 (eval $ac_try) 2>&5 13349 ac_status=$? 13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13351 (exit $ac_status); }; }; then 13352 ac_cv_c_bigendian=no 13353else 13354 echo "$as_me: program exited with status $ac_status" >&5 13355echo "$as_me: failed program was:" >&5 13356sed 's/^/| /' conftest.$ac_ext >&5 13357 13358( exit $ac_status ) 13359ac_cv_c_bigendian=yes 13360fi 13361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13362fi 13363fi 13364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13365fi 13366echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 13367echo "${ECHO_T}$ac_cv_c_bigendian" >&6 13368case $ac_cv_c_bigendian in 13369 yes) 13370 13371cat >>confdefs.h <<\_ACEOF 13372#define WORDS_BIGENDIAN 1 13373_ACEOF 13374 ;; 13375 no) 13376 ;; 13377 *) 13378 { { echo "$as_me:$LINENO: error: unknown endianness 13379presetting ac_cv_c_bigendian=no (or yes) will help" >&5 13380echo "$as_me: error: unknown endianness 13381presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 13382 { (exit 1); exit 1; }; } ;; 13383esac 13384 13385 13386for ac_header in inttypes.h 13387do 13388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13389if eval "test \"\${$as_ac_Header+set}\" = set"; then 13390 echo "$as_me:$LINENO: checking for $ac_header" >&5 13391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13392if eval "test \"\${$as_ac_Header+set}\" = set"; then 13393 echo $ECHO_N "(cached) $ECHO_C" >&6 13394fi 13395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13397else 13398 # Is the header compilable? 13399echo "$as_me:$LINENO: checking $ac_header usability" >&5 13400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13401cat >conftest.$ac_ext <<_ACEOF 13402/* confdefs.h. */ 13403_ACEOF 13404cat confdefs.h >>conftest.$ac_ext 13405cat >>conftest.$ac_ext <<_ACEOF 13406/* end confdefs.h. */ 13407$ac_includes_default 13408#include <$ac_header> 13409_ACEOF 13410rm -f conftest.$ac_objext 13411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13412 (eval $ac_compile) 2>conftest.er1 13413 ac_status=$? 13414 grep -v '^ *+' conftest.er1 >conftest.err 13415 rm -f conftest.er1 13416 cat conftest.err >&5 13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13418 (exit $ac_status); } && 13419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13421 (eval $ac_try) 2>&5 13422 ac_status=$? 13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13424 (exit $ac_status); }; } && 13425 { ac_try='test -s conftest.$ac_objext' 13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13427 (eval $ac_try) 2>&5 13428 ac_status=$? 13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13430 (exit $ac_status); }; }; then 13431 ac_header_compiler=yes 13432else 13433 echo "$as_me: failed program was:" >&5 13434sed 's/^/| /' conftest.$ac_ext >&5 13435 13436ac_header_compiler=no 13437fi 13438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13440echo "${ECHO_T}$ac_header_compiler" >&6 13441 13442# Is the header present? 13443echo "$as_me:$LINENO: checking $ac_header presence" >&5 13444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13445cat >conftest.$ac_ext <<_ACEOF 13446/* confdefs.h. */ 13447_ACEOF 13448cat confdefs.h >>conftest.$ac_ext 13449cat >>conftest.$ac_ext <<_ACEOF 13450/* end confdefs.h. */ 13451#include <$ac_header> 13452_ACEOF 13453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13455 ac_status=$? 13456 grep -v '^ *+' conftest.er1 >conftest.err 13457 rm -f conftest.er1 13458 cat conftest.err >&5 13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13460 (exit $ac_status); } >/dev/null; then 13461 if test -s conftest.err; then 13462 ac_cpp_err=$ac_c_preproc_warn_flag 13463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13464 else 13465 ac_cpp_err= 13466 fi 13467else 13468 ac_cpp_err=yes 13469fi 13470if test -z "$ac_cpp_err"; then 13471 ac_header_preproc=yes 13472else 13473 echo "$as_me: failed program was:" >&5 13474sed 's/^/| /' conftest.$ac_ext >&5 13475 13476 ac_header_preproc=no 13477fi 13478rm -f conftest.err conftest.$ac_ext 13479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13480echo "${ECHO_T}$ac_header_preproc" >&6 13481 13482# So? What about this header? 13483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13484 yes:no: ) 13485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13489 ac_header_preproc=yes 13490 ;; 13491 no:yes:* ) 13492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13504 ( 13505 cat <<\_ASBOX 13506## ------------------------------------------ ## 13507## Report this to the AC_PACKAGE_NAME lists. ## 13508## ------------------------------------------ ## 13509_ASBOX 13510 ) | 13511 sed "s/^/$as_me: WARNING: /" >&2 13512 ;; 13513esac 13514echo "$as_me:$LINENO: checking for $ac_header" >&5 13515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13516if eval "test \"\${$as_ac_Header+set}\" = set"; then 13517 echo $ECHO_N "(cached) $ECHO_C" >&6 13518else 13519 eval "$as_ac_Header=\$ac_header_preproc" 13520fi 13521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13523 13524fi 13525if test `eval echo '${'$as_ac_Header'}'` = yes; then 13526 cat >>confdefs.h <<_ACEOF 13527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13528_ACEOF 13529 13530fi 13531 13532done 13533 13534echo "$as_me:$LINENO: checking for intptr_t" >&5 13535echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 13536if test "${ac_cv_type_intptr_t+set}" = set; then 13537 echo $ECHO_N "(cached) $ECHO_C" >&6 13538else 13539 cat >conftest.$ac_ext <<_ACEOF 13540/* confdefs.h. */ 13541_ACEOF 13542cat confdefs.h >>conftest.$ac_ext 13543cat >>conftest.$ac_ext <<_ACEOF 13544/* end confdefs.h. */ 13545$ac_includes_default 13546int 13547main () 13548{ 13549if ((intptr_t *) 0) 13550 return 0; 13551if (sizeof (intptr_t)) 13552 return 0; 13553 ; 13554 return 0; 13555} 13556_ACEOF 13557rm -f conftest.$ac_objext 13558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13559 (eval $ac_compile) 2>conftest.er1 13560 ac_status=$? 13561 grep -v '^ *+' conftest.er1 >conftest.err 13562 rm -f conftest.er1 13563 cat conftest.err >&5 13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13565 (exit $ac_status); } && 13566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13568 (eval $ac_try) 2>&5 13569 ac_status=$? 13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13571 (exit $ac_status); }; } && 13572 { ac_try='test -s conftest.$ac_objext' 13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13574 (eval $ac_try) 2>&5 13575 ac_status=$? 13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13577 (exit $ac_status); }; }; then 13578 ac_cv_type_intptr_t=yes 13579else 13580 echo "$as_me: failed program was:" >&5 13581sed 's/^/| /' conftest.$ac_ext >&5 13582 13583ac_cv_type_intptr_t=no 13584fi 13585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13586fi 13587echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 13588echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 13589if test $ac_cv_type_intptr_t = yes; then 13590 13591cat >>confdefs.h <<_ACEOF 13592#define HAVE_INTPTR_T 1 13593_ACEOF 13594 13595 13596fi 13597 13598echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 13599echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6 13600if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then 13601 echo $ECHO_N "(cached) $ECHO_C" >&6 13602else 13603 cat >conftest.$ac_ext <<_ACEOF 13604/* confdefs.h. */ 13605_ACEOF 13606cat confdefs.h >>conftest.$ac_ext 13607cat >>conftest.$ac_ext <<_ACEOF 13608/* end confdefs.h. */ 13609#include <sys/stat.h> 13610int 13611main () 13612{ 13613struct stat stat; stat.st_flags = 0; 13614 ; 13615 return 0; 13616} 13617_ACEOF 13618rm -f conftest.$ac_objext 13619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13620 (eval $ac_compile) 2>conftest.er1 13621 ac_status=$? 13622 grep -v '^ *+' conftest.er1 >conftest.err 13623 rm -f conftest.er1 13624 cat conftest.err >&5 13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13626 (exit $ac_status); } && 13627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13629 (eval $ac_try) 2>&5 13630 ac_status=$? 13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13632 (exit $ac_status); }; } && 13633 { ac_try='test -s conftest.$ac_objext' 13634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13635 (eval $ac_try) 2>&5 13636 ac_status=$? 13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13638 (exit $ac_status); }; }; then 13639 e2fsprogs_cv_struct_st_flags=yes 13640else 13641 echo "$as_me: failed program was:" >&5 13642sed 's/^/| /' conftest.$ac_ext >&5 13643 13644e2fsprogs_cv_struct_st_flags=no 13645fi 13646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13647fi 13648 13649echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 13650echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6 13651if test "$e2fsprogs_cv_struct_st_flags" = yes; then 13652 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 13653echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6 13654 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then 13655 echo $ECHO_N "(cached) $ECHO_C" >&6 13656else 13657 cat >conftest.$ac_ext <<_ACEOF 13658/* confdefs.h. */ 13659_ACEOF 13660cat confdefs.h >>conftest.$ac_ext 13661cat >>conftest.$ac_ext <<_ACEOF 13662/* end confdefs.h. */ 13663#include <sys/stat.h> 13664int 13665main () 13666{ 13667struct stat stat; stat.st_flags |= UF_IMMUTABLE; 13668 ; 13669 return 0; 13670} 13671_ACEOF 13672rm -f conftest.$ac_objext 13673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13674 (eval $ac_compile) 2>conftest.er1 13675 ac_status=$? 13676 grep -v '^ *+' conftest.er1 >conftest.err 13677 rm -f conftest.er1 13678 cat conftest.err >&5 13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13680 (exit $ac_status); } && 13681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13683 (eval $ac_try) 2>&5 13684 ac_status=$? 13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13686 (exit $ac_status); }; } && 13687 { ac_try='test -s conftest.$ac_objext' 13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13689 (eval $ac_try) 2>&5 13690 ac_status=$? 13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13692 (exit $ac_status); }; }; then 13693 e2fsprogs_cv_struct_st_flags_immut=yes 13694else 13695 echo "$as_me: failed program was:" >&5 13696sed 's/^/| /' conftest.$ac_ext >&5 13697 13698e2fsprogs_cv_struct_st_flags_immut=no 13699fi 13700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13701fi 13702 13703 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 13704echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6 13705 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then 13706 cat >>confdefs.h <<\_ACEOF 13707#define HAVE_STAT_FLAGS 1 13708_ACEOF 13709 13710 fi 13711fi 13712echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 13713echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6 13714if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then 13715 echo $ECHO_N "(cached) $ECHO_C" >&6 13716else 13717 cat >conftest.$ac_ext <<_ACEOF 13718/* confdefs.h. */ 13719_ACEOF 13720cat confdefs.h >>conftest.$ac_ext 13721cat >>conftest.$ac_ext <<_ACEOF 13722/* end confdefs.h. */ 13723#include <sys/types.h> 13724 #include <sys/socket.h> 13725 13726int 13727main () 13728{ 13729static struct sockaddr ac_aggr; 13730if (ac_aggr.sa_len) 13731return 0; 13732 ; 13733 return 0; 13734} 13735_ACEOF 13736rm -f conftest.$ac_objext 13737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13738 (eval $ac_compile) 2>conftest.er1 13739 ac_status=$? 13740 grep -v '^ *+' conftest.er1 >conftest.err 13741 rm -f conftest.er1 13742 cat conftest.err >&5 13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13744 (exit $ac_status); } && 13745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13747 (eval $ac_try) 2>&5 13748 ac_status=$? 13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13750 (exit $ac_status); }; } && 13751 { ac_try='test -s conftest.$ac_objext' 13752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13753 (eval $ac_try) 2>&5 13754 ac_status=$? 13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13756 (exit $ac_status); }; }; then 13757 ac_cv_member_struct_sockaddr_sa_len=yes 13758else 13759 echo "$as_me: failed program was:" >&5 13760sed 's/^/| /' conftest.$ac_ext >&5 13761 13762cat >conftest.$ac_ext <<_ACEOF 13763/* confdefs.h. */ 13764_ACEOF 13765cat confdefs.h >>conftest.$ac_ext 13766cat >>conftest.$ac_ext <<_ACEOF 13767/* end confdefs.h. */ 13768#include <sys/types.h> 13769 #include <sys/socket.h> 13770 13771int 13772main () 13773{ 13774static struct sockaddr ac_aggr; 13775if (sizeof ac_aggr.sa_len) 13776return 0; 13777 ; 13778 return 0; 13779} 13780_ACEOF 13781rm -f conftest.$ac_objext 13782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13783 (eval $ac_compile) 2>conftest.er1 13784 ac_status=$? 13785 grep -v '^ *+' conftest.er1 >conftest.err 13786 rm -f conftest.er1 13787 cat conftest.err >&5 13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13789 (exit $ac_status); } && 13790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13792 (eval $ac_try) 2>&5 13793 ac_status=$? 13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13795 (exit $ac_status); }; } && 13796 { ac_try='test -s conftest.$ac_objext' 13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13798 (eval $ac_try) 2>&5 13799 ac_status=$? 13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13801 (exit $ac_status); }; }; then 13802 ac_cv_member_struct_sockaddr_sa_len=yes 13803else 13804 echo "$as_me: failed program was:" >&5 13805sed 's/^/| /' conftest.$ac_ext >&5 13806 13807ac_cv_member_struct_sockaddr_sa_len=no 13808fi 13809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13810fi 13811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13812fi 13813echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 13814echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6 13815if test $ac_cv_member_struct_sockaddr_sa_len = yes; then 13816 13817cat >>confdefs.h <<_ACEOF 13818#define HAVE_SA_LEN 1 13819_ACEOF 13820 13821fi 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc 13843do 13844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13845echo "$as_me:$LINENO: checking for $ac_func" >&5 13846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13847if eval "test \"\${$as_ac_var+set}\" = set"; then 13848 echo $ECHO_N "(cached) $ECHO_C" >&6 13849else 13850 cat >conftest.$ac_ext <<_ACEOF 13851/* confdefs.h. */ 13852_ACEOF 13853cat confdefs.h >>conftest.$ac_ext 13854cat >>conftest.$ac_ext <<_ACEOF 13855/* end confdefs.h. */ 13856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13857 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13858#define $ac_func innocuous_$ac_func 13859 13860/* System header to define __stub macros and hopefully few prototypes, 13861 which can conflict with char $ac_func (); below. 13862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13863 <limits.h> exists even on freestanding compilers. */ 13864 13865#ifdef __STDC__ 13866# include <limits.h> 13867#else 13868# include <assert.h> 13869#endif 13870 13871#undef $ac_func 13872 13873/* Override any gcc2 internal prototype to avoid an error. */ 13874#ifdef __cplusplus 13875extern "C" 13876{ 13877#endif 13878/* We use char because int might match the return type of a gcc2 13879 builtin and then its argument prototype would still apply. */ 13880char $ac_func (); 13881/* The GNU C library defines this for functions which it implements 13882 to always fail with ENOSYS. Some functions are actually named 13883 something starting with __ and the normal name is an alias. */ 13884#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13885choke me 13886#else 13887char (*f) () = $ac_func; 13888#endif 13889#ifdef __cplusplus 13890} 13891#endif 13892 13893int 13894main () 13895{ 13896return f != $ac_func; 13897 ; 13898 return 0; 13899} 13900_ACEOF 13901rm -f conftest.$ac_objext conftest$ac_exeext 13902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13903 (eval $ac_link) 2>conftest.er1 13904 ac_status=$? 13905 grep -v '^ *+' conftest.er1 >conftest.err 13906 rm -f conftest.er1 13907 cat conftest.err >&5 13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13909 (exit $ac_status); } && 13910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13912 (eval $ac_try) 2>&5 13913 ac_status=$? 13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13915 (exit $ac_status); }; } && 13916 { ac_try='test -s conftest$ac_exeext' 13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13918 (eval $ac_try) 2>&5 13919 ac_status=$? 13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13921 (exit $ac_status); }; }; then 13922 eval "$as_ac_var=yes" 13923else 13924 echo "$as_me: failed program was:" >&5 13925sed 's/^/| /' conftest.$ac_ext >&5 13926 13927eval "$as_ac_var=no" 13928fi 13929rm -f conftest.err conftest.$ac_objext \ 13930 conftest$ac_exeext conftest.$ac_ext 13931fi 13932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13933echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13934if test `eval echo '${'$as_ac_var'}'` = yes; then 13935 cat >>confdefs.h <<_ACEOF 13936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13937_ACEOF 13938 13939fi 13940done 13941 13942SOCKET_LIB='' 13943echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 13944echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 13945if test "${ac_cv_lib_socket_socket+set}" = set; then 13946 echo $ECHO_N "(cached) $ECHO_C" >&6 13947else 13948 ac_check_lib_save_LIBS=$LIBS 13949LIBS="-lsocket $LIBS" 13950cat >conftest.$ac_ext <<_ACEOF 13951/* confdefs.h. */ 13952_ACEOF 13953cat confdefs.h >>conftest.$ac_ext 13954cat >>conftest.$ac_ext <<_ACEOF 13955/* end confdefs.h. */ 13956 13957/* Override any gcc2 internal prototype to avoid an error. */ 13958#ifdef __cplusplus 13959extern "C" 13960#endif 13961/* We use char because int might match the return type of a gcc2 13962 builtin and then its argument prototype would still apply. */ 13963char socket (); 13964int 13965main () 13966{ 13967socket (); 13968 ; 13969 return 0; 13970} 13971_ACEOF 13972rm -f conftest.$ac_objext conftest$ac_exeext 13973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13974 (eval $ac_link) 2>conftest.er1 13975 ac_status=$? 13976 grep -v '^ *+' conftest.er1 >conftest.err 13977 rm -f conftest.er1 13978 cat conftest.err >&5 13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13980 (exit $ac_status); } && 13981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13983 (eval $ac_try) 2>&5 13984 ac_status=$? 13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13986 (exit $ac_status); }; } && 13987 { ac_try='test -s conftest$ac_exeext' 13988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13989 (eval $ac_try) 2>&5 13990 ac_status=$? 13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13992 (exit $ac_status); }; }; then 13993 ac_cv_lib_socket_socket=yes 13994else 13995 echo "$as_me: failed program was:" >&5 13996sed 's/^/| /' conftest.$ac_ext >&5 13997 13998ac_cv_lib_socket_socket=no 13999fi 14000rm -f conftest.err conftest.$ac_objext \ 14001 conftest$ac_exeext conftest.$ac_ext 14002LIBS=$ac_check_lib_save_LIBS 14003fi 14004echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 14005echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 14006if test $ac_cv_lib_socket_socket = yes; then 14007 SOCKET_LIB=-lsocket 14008fi 14009 14010 14011DLOPEN_LIB='' 14012echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14013echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 14014if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14015 echo $ECHO_N "(cached) $ECHO_C" >&6 14016else 14017 ac_check_lib_save_LIBS=$LIBS 14018LIBS="-ldl $LIBS" 14019cat >conftest.$ac_ext <<_ACEOF 14020/* confdefs.h. */ 14021_ACEOF 14022cat confdefs.h >>conftest.$ac_ext 14023cat >>conftest.$ac_ext <<_ACEOF 14024/* end confdefs.h. */ 14025 14026/* Override any gcc2 internal prototype to avoid an error. */ 14027#ifdef __cplusplus 14028extern "C" 14029#endif 14030/* We use char because int might match the return type of a gcc2 14031 builtin and then its argument prototype would still apply. */ 14032char dlopen (); 14033int 14034main () 14035{ 14036dlopen (); 14037 ; 14038 return 0; 14039} 14040_ACEOF 14041rm -f conftest.$ac_objext conftest$ac_exeext 14042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14043 (eval $ac_link) 2>conftest.er1 14044 ac_status=$? 14045 grep -v '^ *+' conftest.er1 >conftest.err 14046 rm -f conftest.er1 14047 cat conftest.err >&5 14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14049 (exit $ac_status); } && 14050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14052 (eval $ac_try) 2>&5 14053 ac_status=$? 14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14055 (exit $ac_status); }; } && 14056 { ac_try='test -s conftest$ac_exeext' 14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14058 (eval $ac_try) 2>&5 14059 ac_status=$? 14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14061 (exit $ac_status); }; }; then 14062 ac_cv_lib_dl_dlopen=yes 14063else 14064 echo "$as_me: failed program was:" >&5 14065sed 's/^/| /' conftest.$ac_ext >&5 14066 14067ac_cv_lib_dl_dlopen=no 14068fi 14069rm -f conftest.err conftest.$ac_objext \ 14070 conftest$ac_exeext conftest.$ac_ext 14071LIBS=$ac_check_lib_save_LIBS 14072fi 14073echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14074echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 14075if test $ac_cv_lib_dl_dlopen = yes; then 14076 DLOPEN_LIB=-ldl 14077cat >>confdefs.h <<\_ACEOF 14078#define HAVE_DLOPEN 1 14079_ACEOF 14080 14081fi 14082 14083 14084echo "$as_me:$LINENO: checking for optreset" >&5 14085echo $ECHO_N "checking for optreset... $ECHO_C" >&6 14086if test "${ac_cv_have_optreset+set}" = set; then 14087 echo $ECHO_N "(cached) $ECHO_C" >&6 14088else 14089 cat >conftest.$ac_ext <<_ACEOF 14090/* confdefs.h. */ 14091_ACEOF 14092cat confdefs.h >>conftest.$ac_ext 14093cat >>conftest.$ac_ext <<_ACEOF 14094/* end confdefs.h. */ 14095#include <unistd.h> 14096 14097_ACEOF 14098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14099 $EGREP "optreset" >/dev/null 2>&1; then 14100 ac_cv_have_optreset=yes 14101else 14102 ac_cv_have_optreset=no 14103fi 14104rm -f conftest* 14105 14106fi 14107echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 14108echo "${ECHO_T}$ac_cv_have_optreset" >&6 14109if test $ac_cv_have_optreset = yes; then 14110 cat >>confdefs.h <<\_ACEOF 14111#define HAVE_OPTRESET 1 14112_ACEOF 14113 14114fi 14115case "$host_os" in 14116linux*) 14117 cat >>confdefs.h <<\_ACEOF 14118#define HAVE_EXT2_IOCTLS 1 14119_ACEOF 14120 14121 ;; 14122esac 14123LINUX_CMT="#" 14124CYGWIN_CMT="#" 14125UNIX_CMT= 14126case "$host_os" in 14127linux*) 14128 LINUX_CMT= 14129 ;; 14130cygwin) 14131 CYGWIN_CMT= 14132 UNIX_CMT="#" 14133 ;; 14134esac 14135 14136 14137 14138case "$host_os" in 14139linux* | gnu* | k*bsd*-gnu) 14140 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then 14141 root_prefix=""; 14142 echo "On $host_os systems, root_prefix defaults to ''" 14143 fi 14144 ;; 14145esac 14146case "$host_os" in 14147linux* | gnu* | k*bsd*-gnu) 14148 if test "$prefix" = NONE ; then 14149 prefix="/usr"; 14150 echo "On $host_os systems, prefix defaults to /usr" 14151 if test "$mandir" = '${prefix}/man' ; then 14152 echo "...and mandir defaults to /usr/share/man" 14153 mandir=/usr/share/man 14154 fi 14155 fi 14156;; 14157esac 14158if test "$root_prefix" = NONE ; then 14159 if test "$prefix" = NONE ; then 14160 root_prefix="$ac_default_prefix" 14161 else 14162 root_prefix="$prefix" 14163 fi 14164 root_bindir=$bindir 14165 root_sbindir=$sbindir 14166 root_libdir=$libdir 14167 root_sysconfdir=$sysconfdir 14168else 14169 root_bindir='${root_prefix}/bin' 14170 root_sbindir='${root_prefix}/sbin' 14171 root_libdir='${root_prefix}/lib' 14172 root_sysconfdir='${root_prefix}/etc' 14173fi 14174 14175 14176 14177 14178 14179echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 14180echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6 14181if test "${ac_cv_e2fsprogs_use_static+set}" = set; then 14182 echo $ECHO_N "(cached) $ECHO_C" >&6 14183else 14184 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" 14185cat >conftest.$ac_ext <<_ACEOF 14186/* confdefs.h. */ 14187_ACEOF 14188cat confdefs.h >>conftest.$ac_ext 14189cat >>conftest.$ac_ext <<_ACEOF 14190/* end confdefs.h. */ 14191#include <stdio.h> 14192int 14193main () 14194{ 14195fflush(stdout); 14196 ; 14197 return 0; 14198} 14199_ACEOF 14200rm -f conftest.$ac_objext conftest$ac_exeext 14201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14202 (eval $ac_link) 2>conftest.er1 14203 ac_status=$? 14204 grep -v '^ *+' conftest.er1 >conftest.err 14205 rm -f conftest.er1 14206 cat conftest.err >&5 14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14208 (exit $ac_status); } && 14209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14211 (eval $ac_try) 2>&5 14212 ac_status=$? 14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14214 (exit $ac_status); }; } && 14215 { ac_try='test -s conftest$ac_exeext' 14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14217 (eval $ac_try) 2>&5 14218 ac_status=$? 14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14220 (exit $ac_status); }; }; then 14221 ac_cv_e2fsprogs_use_static=yes 14222else 14223 echo "$as_me: failed program was:" >&5 14224sed 's/^/| /' conftest.$ac_ext >&5 14225 14226ac_cv_e2fsprogs_use_static=no 14227fi 14228rm -f conftest.err conftest.$ac_objext \ 14229 conftest$ac_exeext conftest.$ac_ext 14230LDFLAGS=$SAVE_LDFLAGS 14231fi 14232 14233case "$host_os" in 14234solaris2.*) 14235 ac_cv_e2fsprogs_use_static=no 14236;; 14237esac 14238echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 14239echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6 14240LDFLAG_STATIC= 14241if test $ac_cv_e2fsprogs_use_static = yes; then 14242 LDFLAG_STATIC=-static 14243fi 14244 14245case "$host_os" in 14246darwin*) 14247 echo "Using Apple Darwin / GNU libintl workaround" 14248 cat >>confdefs.h <<\_ACEOF 14249#define _INTL_REDIRECT_MACROS 1 14250_ACEOF 14251 14252 ;; 14253esac 14254SS_DIR=`cd ${srcdir}/lib/ss; pwd` 14255ET_DIR=`cd ${srcdir}/lib/et; pwd` 14256 14257 14258if test "$cross_compiling" = yes ; then 14259 DO_TEST_SUITE= 14260else 14261 DO_TEST_SUITE=check 14262fi 14263 14264INTL_FLAGS= 14265if test "$USE_INCLUDED_LIBINTL" = "yes" ; then 14266 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' 14267fi 14268 14269test -d lib || mkdir lib 14270test -d include || mkdir include 14271test -d include/linux || mkdir include/linux 14272test -d include/asm || mkdir include/asm 14273for i in MCONFIG Makefile e2fsprogs.spec \ 14274 util/Makefile util/subst.conf util/gen-tarball \ 14275 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \ 14276 lib/uuid/Makefile lib/uuid/uuid_types.h \ 14277 lib/blkid/Makefile lib/blkid/blkid_types.h \ 14278 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ 14279 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ 14280 misc/Makefile ext2ed/Makefile e2fsck/Makefile \ 14281 debugfs/Makefile tests/Makefile tests/progs/Makefile \ 14282 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do 14283 if test -d `dirname ${srcdir}/$i` ; then 14284 outlist="$outlist $i" 14285 fi 14286done 14287 ac_config_files="$ac_config_files $outlist" 14288cat >confcache <<\_ACEOF 14289# This file is a shell script that caches the results of configure 14290# tests run on this system so they can be shared between configure 14291# scripts and configure runs, see configure's option --config-cache. 14292# It is not useful on other systems. If it contains results you don't 14293# want to keep, you may remove or edit it. 14294# 14295# config.status only pays attention to the cache file if you give it 14296# the --recheck option to rerun configure. 14297# 14298# `ac_cv_env_foo' variables (set or unset) will be overridden when 14299# loading this file, other *unset* `ac_cv_foo' will be assigned the 14300# following values. 14301 14302_ACEOF 14303 14304# The following way of writing the cache mishandles newlines in values, 14305# but we know of no workaround that is simple, portable, and efficient. 14306# So, don't put newlines in cache variables' values. 14307# Ultrix sh set writes to stderr and can't be redirected directly, 14308# and sets the high bit in the cache file unless we assign to the vars. 14309{ 14310 (set) 2>&1 | 14311 case `(ac_space=' '; set | grep ac_space) 2>&1` in 14312 *ac_space=\ *) 14313 # `set' does not quote correctly, so add quotes (double-quote 14314 # substitution turns \\\\ into \\, and sed turns \\ into \). 14315 sed -n \ 14316 "s/'/'\\\\''/g; 14317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14318 ;; 14319 *) 14320 # `set' quotes correctly as required by POSIX, so do not add quotes. 14321 sed -n \ 14322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 14323 ;; 14324 esac; 14325} | 14326 sed ' 14327 t clear 14328 : clear 14329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14330 t end 14331 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14332 : end' >>confcache 14333if diff $cache_file confcache >/dev/null 2>&1; then :; else 14334 if test -w $cache_file; then 14335 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 14336 cat confcache >$cache_file 14337 else 14338 echo "not updating unwritable cache $cache_file" 14339 fi 14340fi 14341rm -f confcache 14342 14343test "x$prefix" = xNONE && prefix=$ac_default_prefix 14344# Let make expand exec_prefix. 14345test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14346 14347# VPATH may cause trouble with some makes, so we remove $(srcdir), 14348# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14349# trailing colons and then remove the whole line if VPATH becomes empty 14350# (actually we leave an empty line to preserve line numbers). 14351if test "x$srcdir" = x.; then 14352 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14353s/:*\$(srcdir):*/:/; 14354s/:*\${srcdir}:*/:/; 14355s/:*@srcdir@:*/:/; 14356s/^\([^=]*=[ ]*\):*/\1/; 14357s/:*$//; 14358s/^[^=]*=[ ]*$//; 14359}' 14360fi 14361 14362# Transform confdefs.h into DEFS. 14363# Protect against shell expansion while executing Makefile rules. 14364# Protect against Makefile macro expansion. 14365# 14366# If the first sed substitution is executed (which looks for macros that 14367# take arguments), then we branch to the quote section. Otherwise, 14368# look for a macro that doesn't take arguments. 14369cat >confdef2opt.sed <<\_ACEOF 14370t clear 14371: clear 14372s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 14373t quote 14374s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 14375t quote 14376d 14377: quote 14378s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 14379s,\[,\\&,g 14380s,\],\\&,g 14381s,\$,$$,g 14382p 14383_ACEOF 14384# We use echo to avoid assuming a particular line-breaking character. 14385# The extra dot is to prevent the shell from consuming trailing 14386# line-breaks from the sub-command output. A line-break within 14387# single-quotes doesn't work because, if this script is created in a 14388# platform that uses two characters for line-breaks (e.g., DOS), tr 14389# would break. 14390ac_LF_and_DOT=`echo; echo .` 14391DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 14392rm -f confdef2opt.sed 14393 14394 14395ac_libobjs= 14396ac_ltlibobjs= 14397for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14398 # 1. Remove the extension, and $U if already installed. 14399 ac_i=`echo "$ac_i" | 14400 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 14401 # 2. Add them. 14402 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 14403 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 14404done 14405LIBOBJS=$ac_libobjs 14406 14407LTLIBOBJS=$ac_ltlibobjs 14408 14409 14410 14411: ${CONFIG_STATUS=./config.status} 14412ac_clean_files_save=$ac_clean_files 14413ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14414{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 14415echo "$as_me: creating $CONFIG_STATUS" >&6;} 14416cat >$CONFIG_STATUS <<_ACEOF 14417#! $SHELL 14418# Generated by $as_me. 14419# Run this file to recreate the current configuration. 14420# Compiler output produced by configure, useful for debugging 14421# configure, is in config.log if it exists. 14422 14423debug=false 14424ac_cs_recheck=false 14425ac_cs_silent=false 14426SHELL=\${CONFIG_SHELL-$SHELL} 14427_ACEOF 14428 14429cat >>$CONFIG_STATUS <<\_ACEOF 14430## --------------------- ## 14431## M4sh Initialization. ## 14432## --------------------- ## 14433 14434# Be Bourne compatible 14435if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14436 emulate sh 14437 NULLCMD=: 14438 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 14439 # is contrary to our usage. Disable this feature. 14440 alias -g '${1+"$@"}'='"$@"' 14441elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 14442 set -o posix 14443fi 14444DUALCASE=1; export DUALCASE # for MKS sh 14445 14446# Support unset when possible. 14447if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 14448 as_unset=unset 14449else 14450 as_unset=false 14451fi 14452 14453 14454# Work around bugs in pre-3.0 UWIN ksh. 14455$as_unset ENV MAIL MAILPATH 14456PS1='$ ' 14457PS2='> ' 14458PS4='+ ' 14459 14460# NLS nuisances. 14461for as_var in \ 14462 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 14463 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 14464 LC_TELEPHONE LC_TIME 14465do 14466 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 14467 eval $as_var=C; export $as_var 14468 else 14469 $as_unset $as_var 14470 fi 14471done 14472 14473# Required to use basename. 14474if expr a : '\(a\)' >/dev/null 2>&1; then 14475 as_expr=expr 14476else 14477 as_expr=false 14478fi 14479 14480if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 14481 as_basename=basename 14482else 14483 as_basename=false 14484fi 14485 14486 14487# Name of the executable. 14488as_me=`$as_basename "$0" || 14489$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14490 X"$0" : 'X\(//\)$' \| \ 14491 X"$0" : 'X\(/\)$' \| \ 14492 . : '\(.\)' 2>/dev/null || 14493echo X/"$0" | 14494 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 14495 /^X\/\(\/\/\)$/{ s//\1/; q; } 14496 /^X\/\(\/\).*/{ s//\1/; q; } 14497 s/.*/./; q'` 14498 14499 14500# PATH needs CR, and LINENO needs CR and PATH. 14501# Avoid depending upon Character Ranges. 14502as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14503as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14504as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14505as_cr_digits='0123456789' 14506as_cr_alnum=$as_cr_Letters$as_cr_digits 14507 14508# The user is always right. 14509if test "${PATH_SEPARATOR+set}" != set; then 14510 echo "#! /bin/sh" >conf$$.sh 14511 echo "exit 0" >>conf$$.sh 14512 chmod +x conf$$.sh 14513 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 14514 PATH_SEPARATOR=';' 14515 else 14516 PATH_SEPARATOR=: 14517 fi 14518 rm -f conf$$.sh 14519fi 14520 14521 14522 as_lineno_1=$LINENO 14523 as_lineno_2=$LINENO 14524 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14525 test "x$as_lineno_1" != "x$as_lineno_2" && 14526 test "x$as_lineno_3" = "x$as_lineno_2" || { 14527 # Find who we are. Look in the path if we contain no path at all 14528 # relative or not. 14529 case $0 in 14530 *[\\/]* ) as_myself=$0 ;; 14531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14532for as_dir in $PATH 14533do 14534 IFS=$as_save_IFS 14535 test -z "$as_dir" && as_dir=. 14536 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14537done 14538 14539 ;; 14540 esac 14541 # We did not find ourselves, most probably we were run as `sh COMMAND' 14542 # in which case we are not to be found in the path. 14543 if test "x$as_myself" = x; then 14544 as_myself=$0 14545 fi 14546 if test ! -f "$as_myself"; then 14547 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 14548echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 14549 { (exit 1); exit 1; }; } 14550 fi 14551 case $CONFIG_SHELL in 14552 '') 14553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14554for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 14555do 14556 IFS=$as_save_IFS 14557 test -z "$as_dir" && as_dir=. 14558 for as_base in sh bash ksh sh5; do 14559 case $as_dir in 14560 /*) 14561 if ("$as_dir/$as_base" -c ' 14562 as_lineno_1=$LINENO 14563 as_lineno_2=$LINENO 14564 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14565 test "x$as_lineno_1" != "x$as_lineno_2" && 14566 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 14567 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 14568 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 14569 CONFIG_SHELL=$as_dir/$as_base 14570 export CONFIG_SHELL 14571 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 14572 fi;; 14573 esac 14574 done 14575done 14576;; 14577 esac 14578 14579 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14580 # uniformly replaced by the line number. The first 'sed' inserts a 14581 # line-number line before each line; the second 'sed' does the real 14582 # work. The second script uses 'N' to pair each line-number line 14583 # with the numbered line, and appends trailing '-' during 14584 # substitution so that $LINENO is not a special case at line end. 14585 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14586 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 14587 sed '=' <$as_myself | 14588 sed ' 14589 N 14590 s,$,-, 14591 : loop 14592 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 14593 t loop 14594 s,-$,, 14595 s,^['$as_cr_digits']*\n,, 14596 ' >$as_me.lineno && 14597 chmod +x $as_me.lineno || 14598 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 14599echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 14600 { (exit 1); exit 1; }; } 14601 14602 # Don't try to exec as it changes $[0], causing all sort of problems 14603 # (the dirname of $[0] is not the place where we might find the 14604 # original and so on. Autoconf is especially sensible to this). 14605 . ./$as_me.lineno 14606 # Exit status is that of the last command. 14607 exit 14608} 14609 14610 14611case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 14612 *c*,-n*) ECHO_N= ECHO_C=' 14613' ECHO_T=' ' ;; 14614 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 14615 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 14616esac 14617 14618if expr a : '\(a\)' >/dev/null 2>&1; then 14619 as_expr=expr 14620else 14621 as_expr=false 14622fi 14623 14624rm -f conf$$ conf$$.exe conf$$.file 14625echo >conf$$.file 14626if ln -s conf$$.file conf$$ 2>/dev/null; then 14627 # We could just check for DJGPP; but this test a) works b) is more generic 14628 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 14629 if test -f conf$$.exe; then 14630 # Don't use ln at all; we don't have any links 14631 as_ln_s='cp -p' 14632 else 14633 as_ln_s='ln -s' 14634 fi 14635elif ln conf$$.file conf$$ 2>/dev/null; then 14636 as_ln_s=ln 14637else 14638 as_ln_s='cp -p' 14639fi 14640rm -f conf$$ conf$$.exe conf$$.file 14641 14642if mkdir -p . 2>/dev/null; then 14643 as_mkdir_p=: 14644else 14645 test -d ./-p && rmdir ./-p 14646 as_mkdir_p=false 14647fi 14648 14649as_executable_p="test -f" 14650 14651# Sed expression to map a string onto a valid CPP name. 14652as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14653 14654# Sed expression to map a string onto a valid variable name. 14655as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14656 14657 14658# IFS 14659# We need space, tab and new line, in precisely that order. 14660as_nl=' 14661' 14662IFS=" $as_nl" 14663 14664# CDPATH. 14665$as_unset CDPATH 14666 14667exec 6>&1 14668 14669# Open the log real soon, to keep \$[0] and so on meaningful, and to 14670# report actual input values of CONFIG_FILES etc. instead of their 14671# values after options handling. Logging --version etc. is OK. 14672exec 5>>config.log 14673{ 14674 echo 14675 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14676## Running $as_me. ## 14677_ASBOX 14678} >&5 14679cat >&5 <<_CSEOF 14680 14681This file was extended by $as_me, which was 14682generated by GNU Autoconf 2.59. Invocation command line was 14683 14684 CONFIG_FILES = $CONFIG_FILES 14685 CONFIG_HEADERS = $CONFIG_HEADERS 14686 CONFIG_LINKS = $CONFIG_LINKS 14687 CONFIG_COMMANDS = $CONFIG_COMMANDS 14688 $ $0 $@ 14689 14690_CSEOF 14691echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 14692echo >&5 14693_ACEOF 14694 14695# Files that config.status was made for. 14696if test -n "$ac_config_files"; then 14697 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 14698fi 14699 14700if test -n "$ac_config_headers"; then 14701 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 14702fi 14703 14704if test -n "$ac_config_links"; then 14705 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 14706fi 14707 14708if test -n "$ac_config_commands"; then 14709 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 14710fi 14711 14712cat >>$CONFIG_STATUS <<\_ACEOF 14713 14714ac_cs_usage="\ 14715\`$as_me' instantiates files from templates according to the 14716current configuration. 14717 14718Usage: $0 [OPTIONS] [FILE]... 14719 14720 -h, --help print this help, then exit 14721 -V, --version print version number, then exit 14722 -q, --quiet do not print progress messages 14723 -d, --debug don't remove temporary files 14724 --recheck update $as_me by reconfiguring in the same conditions 14725 --file=FILE[:TEMPLATE] 14726 instantiate the configuration file FILE 14727 14728Configuration files: 14729$config_files 14730 14731Configuration commands: 14732$config_commands 14733 14734Report bugs to <bug-autoconf@gnu.org>." 14735_ACEOF 14736 14737cat >>$CONFIG_STATUS <<_ACEOF 14738ac_cs_version="\\ 14739config.status 14740configured by $0, generated by GNU Autoconf 2.59, 14741 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 14742 14743Copyright (C) 2003 Free Software Foundation, Inc. 14744This config.status script is free software; the Free Software Foundation 14745gives unlimited permission to copy, distribute and modify it." 14746srcdir=$srcdir 14747INSTALL="$INSTALL" 14748_ACEOF 14749 14750cat >>$CONFIG_STATUS <<\_ACEOF 14751# If no file are specified by the user, then we need to provide default 14752# value. By we need to know if files were specified by the user. 14753ac_need_defaults=: 14754while test $# != 0 14755do 14756 case $1 in 14757 --*=*) 14758 ac_option=`expr "x$1" : 'x\([^=]*\)='` 14759 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 14760 ac_shift=: 14761 ;; 14762 -*) 14763 ac_option=$1 14764 ac_optarg=$2 14765 ac_shift=shift 14766 ;; 14767 *) # This is not an option, so the user has probably given explicit 14768 # arguments. 14769 ac_option=$1 14770 ac_need_defaults=false;; 14771 esac 14772 14773 case $ac_option in 14774 # Handling of the options. 14775_ACEOF 14776cat >>$CONFIG_STATUS <<\_ACEOF 14777 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14778 ac_cs_recheck=: ;; 14779 --version | --vers* | -V ) 14780 echo "$ac_cs_version"; exit 0 ;; 14781 --he | --h) 14782 # Conflict between --help and --header 14783 { { echo "$as_me:$LINENO: error: ambiguous option: $1 14784Try \`$0 --help' for more information." >&5 14785echo "$as_me: error: ambiguous option: $1 14786Try \`$0 --help' for more information." >&2;} 14787 { (exit 1); exit 1; }; };; 14788 --help | --hel | -h ) 14789 echo "$ac_cs_usage"; exit 0 ;; 14790 --debug | --d* | -d ) 14791 debug=: ;; 14792 --file | --fil | --fi | --f ) 14793 $ac_shift 14794 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14795 ac_need_defaults=false;; 14796 --header | --heade | --head | --hea ) 14797 $ac_shift 14798 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 14799 ac_need_defaults=false;; 14800 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14801 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14802 ac_cs_silent=: ;; 14803 14804 # This is an error. 14805 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 14806Try \`$0 --help' for more information." >&5 14807echo "$as_me: error: unrecognized option: $1 14808Try \`$0 --help' for more information." >&2;} 14809 { (exit 1); exit 1; }; } ;; 14810 14811 *) ac_config_targets="$ac_config_targets $1" ;; 14812 14813 esac 14814 shift 14815done 14816 14817ac_configure_extra_args= 14818 14819if $ac_cs_silent; then 14820 exec 6>/dev/null 14821 ac_configure_extra_args="$ac_configure_extra_args --silent" 14822fi 14823 14824_ACEOF 14825cat >>$CONFIG_STATUS <<_ACEOF 14826if \$ac_cs_recheck; then 14827 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14828 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14829fi 14830 14831_ACEOF 14832 14833cat >>$CONFIG_STATUS <<_ACEOF 14834# 14835# INIT-COMMANDS section. 14836# 14837 14838# Capture the value of obsolete ALL_LINGUAS because we need it to compute 14839 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 14840 # from automake. 14841 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 14842 # Capture the value of LINGUAS because we need it to compute CATALOGS. 14843 LINGUAS="${LINGUAS-%UNSET%}" 14844 14845 14846_ACEOF 14847 14848 14849 14850cat >>$CONFIG_STATUS <<\_ACEOF 14851for ac_config_target in $ac_config_targets 14852do 14853 case "$ac_config_target" in 14854 # Handling of arguments. 14855 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;; 14856 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14857 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14858echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14859 { (exit 1); exit 1; }; };; 14860 esac 14861done 14862 14863# If the user did not use the arguments to specify the items to instantiate, 14864# then the envvar interface is used. Set only those that are not. 14865# We use the long form for the default assignment because of an extremely 14866# bizarre bug on SunOS 4.1.3. 14867if $ac_need_defaults; then 14868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14870fi 14871 14872# Have a temporary directory for convenience. Make it in the build tree 14873# simply because there is no reason to put it here, and in addition, 14874# creating and moving files from /tmp can sometimes cause problems. 14875# Create a temporary directory, and hook for its removal unless debugging. 14876$debug || 14877{ 14878 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 14879 trap '{ (exit 1); exit 1; }' 1 2 13 15 14880} 14881 14882# Create a (secure) tmp directory for tmp files. 14883 14884{ 14885 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 14886 test -n "$tmp" && test -d "$tmp" 14887} || 14888{ 14889 tmp=./confstat$$-$RANDOM 14890 (umask 077 && mkdir $tmp) 14891} || 14892{ 14893 echo "$me: cannot create a temporary directory in ." >&2 14894 { (exit 1); exit 1; } 14895} 14896 14897_ACEOF 14898 14899cat >>$CONFIG_STATUS <<_ACEOF 14900 14901# 14902# CONFIG_FILES section. 14903# 14904 14905# No need to generate the scripts if there are no CONFIG_FILES. 14906# This happens for instance when ./config.status config.h 14907if test -n "\$CONFIG_FILES"; then 14908 # Protect against being on the right side of a sed subst in config.status. 14909 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 14910 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 14911s,@SHELL@,$SHELL,;t t 14912s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 14913s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 14914s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 14915s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 14916s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 14917s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 14918s,@exec_prefix@,$exec_prefix,;t t 14919s,@prefix@,$prefix,;t t 14920s,@program_transform_name@,$program_transform_name,;t t 14921s,@bindir@,$bindir,;t t 14922s,@sbindir@,$sbindir,;t t 14923s,@libexecdir@,$libexecdir,;t t 14924s,@datadir@,$datadir,;t t 14925s,@sysconfdir@,$sysconfdir,;t t 14926s,@sharedstatedir@,$sharedstatedir,;t t 14927s,@localstatedir@,$localstatedir,;t t 14928s,@libdir@,$libdir,;t t 14929s,@includedir@,$includedir,;t t 14930s,@oldincludedir@,$oldincludedir,;t t 14931s,@infodir@,$infodir,;t t 14932s,@mandir@,$mandir,;t t 14933s,@build_alias@,$build_alias,;t t 14934s,@host_alias@,$host_alias,;t t 14935s,@target_alias@,$target_alias,;t t 14936s,@DEFS@,$DEFS,;t t 14937s,@ECHO_C@,$ECHO_C,;t t 14938s,@ECHO_N@,$ECHO_N,;t t 14939s,@ECHO_T@,$ECHO_T,;t t 14940s,@LIBS@,$LIBS,;t t 14941s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t 14942s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t 14943s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t 14944s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t 14945s,@build@,$build,;t t 14946s,@build_cpu@,$build_cpu,;t t 14947s,@build_vendor@,$build_vendor,;t t 14948s,@build_os@,$build_os,;t t 14949s,@host@,$host,;t t 14950s,@host_cpu@,$host_cpu,;t t 14951s,@host_vendor@,$host_vendor,;t t 14952s,@host_os@,$host_os,;t t 14953s,@CC@,$CC,;t t 14954s,@CFLAGS@,$CFLAGS,;t t 14955s,@LDFLAGS@,$LDFLAGS,;t t 14956s,@CPPFLAGS@,$CPPFLAGS,;t t 14957s,@ac_ct_CC@,$ac_ct_CC,;t t 14958s,@EXEEXT@,$EXEEXT,;t t 14959s,@OBJEXT@,$OBJEXT,;t t 14960s,@LD@,$LD,;t t 14961s,@CPP@,$CPP,;t t 14962s,@EGREP@,$EGREP,;t t 14963s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t 14964s,@MAINTAINER_CMT@,$MAINTAINER_CMT,;t t 14965s,@HTREE_CMT@,$HTREE_CMT,;t t 14966s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t 14967s,@ELF_CMT@,$ELF_CMT,;t t 14968s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t 14969s,@PROFILE_CMT@,$PROFILE_CMT,;t t 14970s,@CHECKER_CMT@,$CHECKER_CMT,;t t 14971s,@LIB_EXT@,$LIB_EXT,;t t 14972s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t 14973s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t 14974s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t 14975s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t 14976s,@IMAGER_CMT@,$IMAGER_CMT,;t t 14977s,@RESIZER_CMT@,$RESIZER_CMT,;t t 14978s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t 14979s,@FSCK_PROG@,$FSCK_PROG,;t t 14980s,@FSCK_MAN@,$FSCK_MAN,;t t 14981s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t 14982s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t 14983s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t 14984s,@PACKAGE@,$PACKAGE,;t t 14985s,@VERSION@,$VERSION,;t t 14986s,@SET_MAKE@,$SET_MAKE,;t t 14987s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14988s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14989s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14990s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 14991s,@USE_NLS@,$USE_NLS,;t t 14992s,@MSGFMT@,$MSGFMT,;t t 14993s,@GMSGFMT@,$GMSGFMT,;t t 14994s,@XGETTEXT@,$XGETTEXT,;t t 14995s,@MSGMERGE@,$MSGMERGE,;t t 14996s,@RANLIB@,$RANLIB,;t t 14997s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 14998s,@ALLOCA@,$ALLOCA,;t t 14999s,@GLIBC21@,$GLIBC21,;t t 15000s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t 15001s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t 15002s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t 15003s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t 15004s,@LIBICONV@,$LIBICONV,;t t 15005s,@LTLIBICONV@,$LTLIBICONV,;t t 15006s,@INTLBISON@,$INTLBISON,;t t 15007s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 15008s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 15009s,@CATOBJEXT@,$CATOBJEXT,;t t 15010s,@DATADIRNAME@,$DATADIRNAME,;t t 15011s,@INSTOBJEXT@,$INSTOBJEXT,;t t 15012s,@GENCAT@,$GENCAT,;t t 15013s,@INTLOBJS@,$INTLOBJS,;t t 15014s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 15015s,@INTLLIBS@,$INTLLIBS,;t t 15016s,@LIBINTL@,$LIBINTL,;t t 15017s,@LTLIBINTL@,$LTLIBINTL,;t t 15018s,@POSUB@,$POSUB,;t t 15019s,@BINARY_TYPE@,$BINARY_TYPE,;t t 15020s,@LN@,$LN,;t t 15021s,@LN_S@,$LN_S,;t t 15022s,@MV@,$MV,;t t 15023s,@CP@,$CP,;t t 15024s,@RM@,$RM,;t t 15025s,@CHMOD@,$CHMOD,;t t 15026s,@AWK@,$AWK,;t t 15027s,@SED@,$SED,;t t 15028s,@PERL@,$PERL,;t t 15029s,@LDCONFIG@,$LDCONFIG,;t t 15030s,@AR@,$AR,;t t 15031s,@ac_ct_AR@,$ac_ct_AR,;t t 15032s,@STRIP@,$STRIP,;t t 15033s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 15034s,@BUILD_CC@,$BUILD_CC,;t t 15035s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t 15036s,@SIZEOF_INT@,$SIZEOF_INT,;t t 15037s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t 15038s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t 15039s,@SOCKET_LIB@,$SOCKET_LIB,;t t 15040s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t 15041s,@LINUX_CMT@,$LINUX_CMT,;t t 15042s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t 15043s,@UNIX_CMT@,$UNIX_CMT,;t t 15044s,@root_prefix@,$root_prefix,;t t 15045s,@root_bindir@,$root_bindir,;t t 15046s,@root_sbindir@,$root_sbindir,;t t 15047s,@root_libdir@,$root_libdir,;t t 15048s,@root_sysconfdir@,$root_sysconfdir,;t t 15049s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t 15050s,@SS_DIR@,$SS_DIR,;t t 15051s,@ET_DIR@,$ET_DIR,;t t 15052s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t 15053s,@INTL_FLAGS@,$INTL_FLAGS,;t t 15054s,@LIBOBJS@,$LIBOBJS,;t t 15055s,@LTLIBOBJS@,$LTLIBOBJS,;t t 15056/@MCONFIG@/r $MCONFIG 15057s,@MCONFIG@,,;t t 15058/@MAKEFILE_ELF@/r $MAKEFILE_ELF 15059s,@MAKEFILE_ELF@,,;t t 15060/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB 15061s,@MAKEFILE_BSDLIB@,,;t t 15062/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE 15063s,@MAKEFILE_PROFILE@,,;t t 15064/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER 15065s,@MAKEFILE_CHECKER@,,;t t 15066/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY 15067s,@MAKEFILE_LIBRARY@,,;t t 15068CEOF 15069 15070_ACEOF 15071 15072 cat >>$CONFIG_STATUS <<\_ACEOF 15073 # Split the substitutions into bite-sized pieces for seds with 15074 # small command number limits, like on Digital OSF/1 and HP-UX. 15075 ac_max_sed_lines=48 15076 ac_sed_frag=1 # Number of current file. 15077 ac_beg=1 # First line for current file. 15078 ac_end=$ac_max_sed_lines # Line after last line for current file. 15079 ac_more_lines=: 15080 ac_sed_cmds= 15081 while $ac_more_lines; do 15082 if test $ac_beg -gt 1; then 15083 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 15084 else 15085 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 15086 fi 15087 if test ! -s $tmp/subs.frag; then 15088 ac_more_lines=false 15089 else 15090 # The purpose of the label and of the branching condition is to 15091 # speed up the sed processing (if there are no `@' at all, there 15092 # is no need to browse any of the substitutions). 15093 # These are the two extra sed commands mentioned above. 15094 (echo ':t 15095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 15096 if test -z "$ac_sed_cmds"; then 15097 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 15098 else 15099 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 15100 fi 15101 ac_sed_frag=`expr $ac_sed_frag + 1` 15102 ac_beg=$ac_end 15103 ac_end=`expr $ac_end + $ac_max_sed_lines` 15104 fi 15105 done 15106 if test -z "$ac_sed_cmds"; then 15107 ac_sed_cmds=cat 15108 fi 15109fi # test -n "$CONFIG_FILES" 15110 15111_ACEOF 15112cat >>$CONFIG_STATUS <<\_ACEOF 15113for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 15114 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 15115 case $ac_file in 15116 - | *:- | *:-:* ) # input from stdin 15117 cat >$tmp/stdin 15118 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15119 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15120 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 15121 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 15122 * ) ac_file_in=$ac_file.in ;; 15123 esac 15124 15125 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 15126 ac_dir=`(dirname "$ac_file") 2>/dev/null || 15127$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15128 X"$ac_file" : 'X\(//\)[^/]' \| \ 15129 X"$ac_file" : 'X\(//\)$' \| \ 15130 X"$ac_file" : 'X\(/\)' \| \ 15131 . : '\(.\)' 2>/dev/null || 15132echo X"$ac_file" | 15133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15134 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15135 /^X\(\/\/\)$/{ s//\1/; q; } 15136 /^X\(\/\).*/{ s//\1/; q; } 15137 s/.*/./; q'` 15138 { if $as_mkdir_p; then 15139 mkdir -p "$ac_dir" 15140 else 15141 as_dir="$ac_dir" 15142 as_dirs= 15143 while test ! -d "$as_dir"; do 15144 as_dirs="$as_dir $as_dirs" 15145 as_dir=`(dirname "$as_dir") 2>/dev/null || 15146$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15147 X"$as_dir" : 'X\(//\)[^/]' \| \ 15148 X"$as_dir" : 'X\(//\)$' \| \ 15149 X"$as_dir" : 'X\(/\)' \| \ 15150 . : '\(.\)' 2>/dev/null || 15151echo X"$as_dir" | 15152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15153 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15154 /^X\(\/\/\)$/{ s//\1/; q; } 15155 /^X\(\/\).*/{ s//\1/; q; } 15156 s/.*/./; q'` 15157 done 15158 test ! -n "$as_dirs" || mkdir $as_dirs 15159 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15160echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15161 { (exit 1); exit 1; }; }; } 15162 15163 ac_builddir=. 15164 15165if test "$ac_dir" != .; then 15166 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 15167 # A "../" for each directory in $ac_dir_suffix. 15168 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 15169else 15170 ac_dir_suffix= ac_top_builddir= 15171fi 15172 15173case $srcdir in 15174 .) # No --srcdir option. We are building in place. 15175 ac_srcdir=. 15176 if test -z "$ac_top_builddir"; then 15177 ac_top_srcdir=. 15178 else 15179 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 15180 fi ;; 15181 [\\/]* | ?:[\\/]* ) # Absolute path. 15182 ac_srcdir=$srcdir$ac_dir_suffix; 15183 ac_top_srcdir=$srcdir ;; 15184 *) # Relative path. 15185 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 15186 ac_top_srcdir=$ac_top_builddir$srcdir ;; 15187esac 15188 15189# Do not use `cd foo && pwd` to compute absolute paths, because 15190# the directories may not exist. 15191case `pwd` in 15192.) ac_abs_builddir="$ac_dir";; 15193*) 15194 case "$ac_dir" in 15195 .) ac_abs_builddir=`pwd`;; 15196 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 15197 *) ac_abs_builddir=`pwd`/"$ac_dir";; 15198 esac;; 15199esac 15200case $ac_abs_builddir in 15201.) ac_abs_top_builddir=${ac_top_builddir}.;; 15202*) 15203 case ${ac_top_builddir}. in 15204 .) ac_abs_top_builddir=$ac_abs_builddir;; 15205 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 15206 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 15207 esac;; 15208esac 15209case $ac_abs_builddir in 15210.) ac_abs_srcdir=$ac_srcdir;; 15211*) 15212 case $ac_srcdir in 15213 .) ac_abs_srcdir=$ac_abs_builddir;; 15214 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 15215 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 15216 esac;; 15217esac 15218case $ac_abs_builddir in 15219.) ac_abs_top_srcdir=$ac_top_srcdir;; 15220*) 15221 case $ac_top_srcdir in 15222 .) ac_abs_top_srcdir=$ac_abs_builddir;; 15223 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 15224 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 15225 esac;; 15226esac 15227 15228 15229 case $INSTALL in 15230 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15231 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 15232 esac 15233 15234 # Let's still pretend it is `configure' which instantiates (i.e., don't 15235 # use $as_me), people would be surprised to read: 15236 # /* config.h. Generated by config.status. */ 15237 if test x"$ac_file" = x-; then 15238 configure_input= 15239 else 15240 configure_input="$ac_file. " 15241 fi 15242 configure_input=$configure_input"Generated from `echo $ac_file_in | 15243 sed 's,.*/,,'` by configure." 15244 15245 # First look for the input files in the build tree, otherwise in the 15246 # src tree. 15247 ac_file_inputs=`IFS=: 15248 for f in $ac_file_in; do 15249 case $f in 15250 -) echo $tmp/stdin ;; 15251 [\\/$]*) 15252 # Absolute (can't be DOS-style, as IFS=:) 15253 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 15254echo "$as_me: error: cannot find input file: $f" >&2;} 15255 { (exit 1); exit 1; }; } 15256 echo "$f";; 15257 *) # Relative 15258 if test -f "$f"; then 15259 # Build tree 15260 echo "$f" 15261 elif test -f "$srcdir/$f"; then 15262 # Source tree 15263 echo "$srcdir/$f" 15264 else 15265 # /dev/null tree 15266 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 15267echo "$as_me: error: cannot find input file: $f" >&2;} 15268 { (exit 1); exit 1; }; } 15269 fi;; 15270 esac 15271 done` || { (exit 1); exit 1; } 15272 15273 if test x"$ac_file" != x-; then 15274 { echo "$as_me:$LINENO: creating $ac_file" >&5 15275echo "$as_me: creating $ac_file" >&6;} 15276 rm -f "$ac_file" 15277 fi 15278_ACEOF 15279cat >>$CONFIG_STATUS <<_ACEOF 15280 sed "$ac_vpsub 15281$extrasub 15282_ACEOF 15283cat >>$CONFIG_STATUS <<\_ACEOF 15284:t 15285/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15286s,@configure_input@,$configure_input,;t t 15287s,@srcdir@,$ac_srcdir,;t t 15288s,@abs_srcdir@,$ac_abs_srcdir,;t t 15289s,@top_srcdir@,$ac_top_srcdir,;t t 15290s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 15291s,@builddir@,$ac_builddir,;t t 15292s,@abs_builddir@,$ac_abs_builddir,;t t 15293s,@top_builddir@,$ac_top_builddir,;t t 15294s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 15295s,@INSTALL@,$ac_INSTALL,;t t 15296" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 15297 rm -f $tmp/stdin 15298 if test x"$ac_file" != x-; then 15299 mv $tmp/out $ac_file 15300 else 15301 cat $tmp/out 15302 rm -f $tmp/out 15303 fi 15304 15305done 15306_ACEOF 15307cat >>$CONFIG_STATUS <<\_ACEOF 15308 15309# 15310# CONFIG_COMMANDS section. 15311# 15312for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 15313 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 15314 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 15315 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 15316$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15317 X"$ac_dest" : 'X\(//\)[^/]' \| \ 15318 X"$ac_dest" : 'X\(//\)$' \| \ 15319 X"$ac_dest" : 'X\(/\)' \| \ 15320 . : '\(.\)' 2>/dev/null || 15321echo X"$ac_dest" | 15322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15323 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15324 /^X\(\/\/\)$/{ s//\1/; q; } 15325 /^X\(\/\).*/{ s//\1/; q; } 15326 s/.*/./; q'` 15327 { if $as_mkdir_p; then 15328 mkdir -p "$ac_dir" 15329 else 15330 as_dir="$ac_dir" 15331 as_dirs= 15332 while test ! -d "$as_dir"; do 15333 as_dirs="$as_dir $as_dirs" 15334 as_dir=`(dirname "$as_dir") 2>/dev/null || 15335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15336 X"$as_dir" : 'X\(//\)[^/]' \| \ 15337 X"$as_dir" : 'X\(//\)$' \| \ 15338 X"$as_dir" : 'X\(/\)' \| \ 15339 . : '\(.\)' 2>/dev/null || 15340echo X"$as_dir" | 15341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15342 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15343 /^X\(\/\/\)$/{ s//\1/; q; } 15344 /^X\(\/\).*/{ s//\1/; q; } 15345 s/.*/./; q'` 15346 done 15347 test ! -n "$as_dirs" || mkdir $as_dirs 15348 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15349echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15350 { (exit 1); exit 1; }; }; } 15351 15352 ac_builddir=. 15353 15354if test "$ac_dir" != .; then 15355 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 15356 # A "../" for each directory in $ac_dir_suffix. 15357 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 15358else 15359 ac_dir_suffix= ac_top_builddir= 15360fi 15361 15362case $srcdir in 15363 .) # No --srcdir option. We are building in place. 15364 ac_srcdir=. 15365 if test -z "$ac_top_builddir"; then 15366 ac_top_srcdir=. 15367 else 15368 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 15369 fi ;; 15370 [\\/]* | ?:[\\/]* ) # Absolute path. 15371 ac_srcdir=$srcdir$ac_dir_suffix; 15372 ac_top_srcdir=$srcdir ;; 15373 *) # Relative path. 15374 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 15375 ac_top_srcdir=$ac_top_builddir$srcdir ;; 15376esac 15377 15378# Do not use `cd foo && pwd` to compute absolute paths, because 15379# the directories may not exist. 15380case `pwd` in 15381.) ac_abs_builddir="$ac_dir";; 15382*) 15383 case "$ac_dir" in 15384 .) ac_abs_builddir=`pwd`;; 15385 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 15386 *) ac_abs_builddir=`pwd`/"$ac_dir";; 15387 esac;; 15388esac 15389case $ac_abs_builddir in 15390.) ac_abs_top_builddir=${ac_top_builddir}.;; 15391*) 15392 case ${ac_top_builddir}. in 15393 .) ac_abs_top_builddir=$ac_abs_builddir;; 15394 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 15395 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 15396 esac;; 15397esac 15398case $ac_abs_builddir in 15399.) ac_abs_srcdir=$ac_srcdir;; 15400*) 15401 case $ac_srcdir in 15402 .) ac_abs_srcdir=$ac_abs_builddir;; 15403 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 15404 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 15405 esac;; 15406esac 15407case $ac_abs_builddir in 15408.) ac_abs_top_srcdir=$ac_top_srcdir;; 15409*) 15410 case $ac_top_srcdir in 15411 .) ac_abs_top_srcdir=$ac_abs_builddir;; 15412 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 15413 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 15414 esac;; 15415esac 15416 15417 15418 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 15419echo "$as_me: executing $ac_dest commands" >&6;} 15420 case $ac_dest in 15421 default-1 ) 15422 for ac_file in $CONFIG_FILES; do 15423 # Support "outfile[:infile[:infile...]]" 15424 case "$ac_file" in 15425 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 15426 esac 15427 # PO directories have a Makefile.in generated from Makefile.in.in. 15428 case "$ac_file" in */Makefile.in) 15429 # Adjust a relative srcdir. 15430 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 15431 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 15432 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 15433 # In autoconf-2.13 it is called $ac_given_srcdir. 15434 # In autoconf-2.50 it is called $srcdir. 15435 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 15436 case "$ac_given_srcdir" in 15437 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 15438 /*) top_srcdir="$ac_given_srcdir" ;; 15439 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 15440 esac 15441 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 15442 rm -f "$ac_dir/POTFILES" 15443 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 15444 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 15445 POMAKEFILEDEPS="POTFILES.in" 15446 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 15447 # on $ac_dir but don't depend on user-specified configuration 15448 # parameters. 15449 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 15450 # The LINGUAS file contains the set of available languages. 15451 if test -n "$OBSOLETE_ALL_LINGUAS"; then 15452 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 15453 fi 15454 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 15455 # Hide the ALL_LINGUAS assigment from automake. 15456 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 15457 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 15458 else 15459 # The set of available languages was given in configure.in. 15460 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 15461 fi 15462 # Compute POFILES 15463 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 15464 # Compute UPDATEPOFILES 15465 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 15466 # Compute DUMMYPOFILES 15467 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 15468 # Compute GMOFILES 15469 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 15470 case "$ac_given_srcdir" in 15471 .) srcdirpre= ;; 15472 *) srcdirpre='$(srcdir)/' ;; 15473 esac 15474 POFILES= 15475 UPDATEPOFILES= 15476 DUMMYPOFILES= 15477 GMOFILES= 15478 for lang in $ALL_LINGUAS; do 15479 POFILES="$POFILES $srcdirpre$lang.po" 15480 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 15481 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 15482 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 15483 done 15484 # CATALOGS depends on both $ac_dir and the user's LINGUAS 15485 # environment variable. 15486 INST_LINGUAS= 15487 if test -n "$ALL_LINGUAS"; then 15488 for presentlang in $ALL_LINGUAS; do 15489 useit=no 15490 if test "%UNSET%" != "$LINGUAS"; then 15491 desiredlanguages="$LINGUAS" 15492 else 15493 desiredlanguages="$ALL_LINGUAS" 15494 fi 15495 for desiredlang in $desiredlanguages; do 15496 # Use the presentlang catalog if desiredlang is 15497 # a. equal to presentlang, or 15498 # b. a variant of presentlang (because in this case, 15499 # presentlang can be used as a fallback for messages 15500 # which are not translated in the desiredlang catalog). 15501 case "$desiredlang" in 15502 "$presentlang"*) useit=yes;; 15503 esac 15504 done 15505 if test $useit = yes; then 15506 INST_LINGUAS="$INST_LINGUAS $presentlang" 15507 fi 15508 done 15509 fi 15510 CATALOGS= 15511 if test -n "$INST_LINGUAS"; then 15512 for lang in $INST_LINGUAS; do 15513 CATALOGS="$CATALOGS $lang.gmo" 15514 done 15515 fi 15516 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 15517 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 15518 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 15519 if test -f "$f"; then 15520 case "$f" in 15521 *.orig | *.bak | *~) ;; 15522 *) cat "$f" >> "$ac_dir/Makefile" ;; 15523 esac 15524 fi 15525 done 15526 fi 15527 ;; 15528 esac 15529 done ;; 15530 esac 15531done 15532_ACEOF 15533 15534cat >>$CONFIG_STATUS <<\_ACEOF 15535 15536{ (exit 0); exit 0; } 15537_ACEOF 15538chmod +x $CONFIG_STATUS 15539ac_clean_files=$ac_clean_files_save 15540 15541 15542# configure is writing to config.log, and then calls config.status. 15543# config.status does its own redirection, appending to config.log. 15544# Unfortunately, on DOS this fails, as config.log is still kept open 15545# by configure, so config.status won't be able to write to it; its 15546# output is simply discarded. So we exec the FD to /dev/null, 15547# effectively closing config.log, so it can be properly (re)opened and 15548# appended to by config.status. When coming back to configure, we 15549# need to make the FD available again. 15550if test "$no_create" != yes; then 15551 ac_cs_success=: 15552 ac_config_status_args= 15553 test "$silent" = yes && 15554 ac_config_status_args="$ac_config_status_args --quiet" 15555 exec 5>/dev/null 15556 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15557 exec 5>>config.log 15558 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15559 # would make configure fail if this is the last instruction. 15560 $ac_cs_success || { (exit 1); exit 1; } 15561fi 15562 15563