configure revision dc9345a0bddcbbe2dbdc6df3afdb97a9bb470f55
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME= 574PACKAGE_TARNAME= 575PACKAGE_VERSION= 576PACKAGE_STRING= 577PACKAGE_BUGREPORT= 578 579ac_unique_file="version.h" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='SHELL 617PATH_SEPARATOR 618PACKAGE_NAME 619PACKAGE_TARNAME 620PACKAGE_VERSION 621PACKAGE_STRING 622PACKAGE_BUGREPORT 623exec_prefix 624prefix 625program_transform_name 626bindir 627sbindir 628libexecdir 629datarootdir 630datadir 631sysconfdir 632sharedstatedir 633localstatedir 634includedir 635oldincludedir 636docdir 637infodir 638htmldir 639dvidir 640pdfdir 641psdir 642libdir 643localedir 644mandir 645DEFS 646ECHO_C 647ECHO_N 648ECHO_T 649LIBS 650build_alias 651host_alias 652target_alias 653E2FSPROGS_YEAR 654E2FSPROGS_MONTH 655E2FSPROGS_DAY 656E2FSPROGS_VERSION 657E2FSPROGS_PKGVER 658build 659build_cpu 660build_vendor 661build_os 662host 663host_cpu 664host_vendor 665host_os 666CC 667CFLAGS 668LDFLAGS 669CPPFLAGS 670ac_ct_CC 671EXEEXT 672OBJEXT 673CPP 674LD 675GREP 676EGREP 677LINUX_INCLUDE 678MAINTAINER_CMT 679HTREE_CMT 680ELF_CMT 681BSDLIB_CMT 682PROFILE_CMT 683CHECKER_CMT 684LIB_EXT 685STATIC_LIB_EXT 686PROFILED_LIB_EXT 687DEBUGFS_CMT 688IMAGER_CMT 689RESIZER_CMT 690FSCK_PROG 691FSCK_MAN 692E2INITRD_PROG 693E2INITRD_MAN 694PKG_CONFIG 695DEVMAPPER_REQ 696DEVMAPPER_PC_LIBS 697DEVMAPPER_LIBS 698STATIC_DEVMAPPER_LIBS 699STATIC_BLKID_DEVMAPPER_LIBS 700UUIDD_CMT 701GETTEXT_PACKAGE 702PACKAGE 703VERSION 704SET_MAKE 705INSTALL_PROGRAM 706INSTALL_SCRIPT 707INSTALL_DATA 708MKINSTALLDIRS 709USE_NLS 710MSGFMT 711GMSGFMT 712XGETTEXT 713MSGMERGE 714RANLIB 715ALLOCA 716GLIBC21 717HAVE_POSIX_PRINTF 718HAVE_ASPRINTF 719HAVE_SNPRINTF 720HAVE_WPRINTF 721LIBICONV 722LTLIBICONV 723INTLBISON 724BUILD_INCLUDED_LIBINTL 725USE_INCLUDED_LIBINTL 726CATOBJEXT 727DATADIRNAME 728INSTOBJEXT 729GENCAT 730INTLOBJS 731INTL_LIBTOOL_SUFFIX_PREFIX 732INTLLIBS 733LIBINTL 734LTLIBINTL 735POSUB 736BINARY_TYPE 737LN 738LN_S 739MV 740CP 741RM 742CHMOD 743AWK 744SED 745PERL 746LDCONFIG 747AR 748STRIP 749MAKEINFO 750BUILD_CC 751SIZEOF_SHORT 752SIZEOF_INT 753SIZEOF_LONG 754SIZEOF_LONG_LONG 755SOCKET_LIB 756DLOPEN_LIB 757UNI_DIFF_OPTS 758LINUX_CMT 759CYGWIN_CMT 760UNIX_CMT 761root_prefix 762root_bindir 763root_sbindir 764root_libdir 765root_sysconfdir 766LDFLAG_STATIC 767SS_DIR 768ET_DIR 769DO_TEST_SUITE 770INTL_FLAGS 771BUILD_CFLAGS 772BUILD_LDFLAGS 773LIBOBJS 774LTLIBOBJS' 775ac_subst_files='MCONFIG 776MAKEFILE_ELF 777MAKEFILE_BSDLIB 778MAKEFILE_PROFILE 779MAKEFILE_CHECKER 780MAKEFILE_LIBRARY 781ASM_TYPES_HEADER 782PUBLIC_CONFIG_HEADER' 783 ac_precious_vars='build_alias 784host_alias 785target_alias 786CC 787CFLAGS 788LDFLAGS 789LIBS 790CPPFLAGS 791CPP 792PKG_CONFIG' 793 794 795# Initialize some variables set by options. 796ac_init_help= 797ac_init_version=false 798# The variables have the same names as the options, with 799# dashes changed to underlines. 800cache_file=/dev/null 801exec_prefix=NONE 802no_create= 803no_recursion= 804prefix=NONE 805program_prefix=NONE 806program_suffix=NONE 807program_transform_name=s,x,x, 808silent= 809site= 810srcdir= 811verbose= 812x_includes=NONE 813x_libraries=NONE 814 815# Installation directory options. 816# These are left unexpanded so users can "make install exec_prefix=/foo" 817# and all the variables that are supposed to be based on exec_prefix 818# by default will actually change. 819# Use braces instead of parens because sh, perl, etc. also accept them. 820# (The list follows the same order as the GNU Coding Standards.) 821bindir='${exec_prefix}/bin' 822sbindir='${exec_prefix}/sbin' 823libexecdir='${exec_prefix}/libexec' 824datarootdir='${prefix}/share' 825datadir='${datarootdir}' 826sysconfdir='${prefix}/etc' 827sharedstatedir='${prefix}/com' 828localstatedir='${prefix}/var' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *) ac_optarg=yes ;; 855 esac 856 857 # Accept the important Cygnus configure options, so we can diagnose typos. 858 859 case $ac_dashdash$ac_option in 860 --) 861 ac_dashdash=yes ;; 862 863 -bindir | --bindir | --bindi | --bind | --bin | --bi) 864 ac_prev=bindir ;; 865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 866 bindir=$ac_optarg ;; 867 868 -build | --build | --buil | --bui | --bu) 869 ac_prev=build_alias ;; 870 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 871 build_alias=$ac_optarg ;; 872 873 -cache-file | --cache-file | --cache-fil | --cache-fi \ 874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 875 ac_prev=cache_file ;; 876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 878 cache_file=$ac_optarg ;; 879 880 --config-cache | -C) 881 cache_file=config.cache ;; 882 883 -datadir | --datadir | --datadi | --datad) 884 ac_prev=datadir ;; 885 -datadir=* | --datadir=* | --datadi=* | --datad=*) 886 datadir=$ac_optarg ;; 887 888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 889 | --dataroo | --dataro | --datar) 890 ac_prev=datarootdir ;; 891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 893 datarootdir=$ac_optarg ;; 894 895 -disable-* | --disable-*) 896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 897 # Reject names that are not valid shell variable names. 898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 900 { (exit 1); exit 1; }; } 901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 902 eval enable_$ac_feature=no ;; 903 904 -docdir | --docdir | --docdi | --doc | --do) 905 ac_prev=docdir ;; 906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 907 docdir=$ac_optarg ;; 908 909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 910 ac_prev=dvidir ;; 911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 912 dvidir=$ac_optarg ;; 913 914 -enable-* | --enable-*) 915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 919 { (exit 1); exit 1; }; } 920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 921 eval enable_$ac_feature=\$ac_optarg ;; 922 923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 925 | --exec | --exe | --ex) 926 ac_prev=exec_prefix ;; 927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 929 | --exec=* | --exe=* | --ex=*) 930 exec_prefix=$ac_optarg ;; 931 932 -gas | --gas | --ga | --g) 933 # Obsolete; use --with-gas. 934 with_gas=yes ;; 935 936 -help | --help | --hel | --he | -h) 937 ac_init_help=long ;; 938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 939 ac_init_help=recursive ;; 940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 941 ac_init_help=short ;; 942 943 -host | --host | --hos | --ho) 944 ac_prev=host_alias ;; 945 -host=* | --host=* | --hos=* | --ho=*) 946 host_alias=$ac_optarg ;; 947 948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 949 ac_prev=htmldir ;; 950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 951 | --ht=*) 952 htmldir=$ac_optarg ;; 953 954 -includedir | --includedir | --includedi | --included | --include \ 955 | --includ | --inclu | --incl | --inc) 956 ac_prev=includedir ;; 957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 958 | --includ=* | --inclu=* | --incl=* | --inc=*) 959 includedir=$ac_optarg ;; 960 961 -infodir | --infodir | --infodi | --infod | --info | --inf) 962 ac_prev=infodir ;; 963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 964 infodir=$ac_optarg ;; 965 966 -libdir | --libdir | --libdi | --libd) 967 ac_prev=libdir ;; 968 -libdir=* | --libdir=* | --libdi=* | --libd=*) 969 libdir=$ac_optarg ;; 970 971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 972 | --libexe | --libex | --libe) 973 ac_prev=libexecdir ;; 974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 975 | --libexe=* | --libex=* | --libe=*) 976 libexecdir=$ac_optarg ;; 977 978 -localedir | --localedir | --localedi | --localed | --locale) 979 ac_prev=localedir ;; 980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 981 localedir=$ac_optarg ;; 982 983 -localstatedir | --localstatedir | --localstatedi | --localstated \ 984 | --localstate | --localstat | --localsta | --localst | --locals) 985 ac_prev=localstatedir ;; 986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 988 localstatedir=$ac_optarg ;; 989 990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 991 ac_prev=mandir ;; 992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 993 mandir=$ac_optarg ;; 994 995 -nfp | --nfp | --nf) 996 # Obsolete; use --without-fp. 997 with_fp=no ;; 998 999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1000 | --no-cr | --no-c | -n) 1001 no_create=yes ;; 1002 1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1005 no_recursion=yes ;; 1006 1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1009 | --oldin | --oldi | --old | --ol | --o) 1010 ac_prev=oldincludedir ;; 1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1014 oldincludedir=$ac_optarg ;; 1015 1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1017 ac_prev=prefix ;; 1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1019 prefix=$ac_optarg ;; 1020 1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1022 | --program-pre | --program-pr | --program-p) 1023 ac_prev=program_prefix ;; 1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1026 program_prefix=$ac_optarg ;; 1027 1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1029 | --program-suf | --program-su | --program-s) 1030 ac_prev=program_suffix ;; 1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1033 program_suffix=$ac_optarg ;; 1034 1035 -program-transform-name | --program-transform-name \ 1036 | --program-transform-nam | --program-transform-na \ 1037 | --program-transform-n | --program-transform- \ 1038 | --program-transform | --program-transfor \ 1039 | --program-transfo | --program-transf \ 1040 | --program-trans | --program-tran \ 1041 | --progr-tra | --program-tr | --program-t) 1042 ac_prev=program_transform_name ;; 1043 -program-transform-name=* | --program-transform-name=* \ 1044 | --program-transform-nam=* | --program-transform-na=* \ 1045 | --program-transform-n=* | --program-transform-=* \ 1046 | --program-transform=* | --program-transfor=* \ 1047 | --program-transfo=* | --program-transf=* \ 1048 | --program-trans=* | --program-tran=* \ 1049 | --progr-tra=* | --program-tr=* | --program-t=*) 1050 program_transform_name=$ac_optarg ;; 1051 1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1053 ac_prev=pdfdir ;; 1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1055 pdfdir=$ac_optarg ;; 1056 1057 -psdir | --psdir | --psdi | --psd | --ps) 1058 ac_prev=psdir ;; 1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1060 psdir=$ac_optarg ;; 1061 1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1063 | -silent | --silent | --silen | --sile | --sil) 1064 silent=yes ;; 1065 1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1067 ac_prev=sbindir ;; 1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1069 | --sbi=* | --sb=*) 1070 sbindir=$ac_optarg ;; 1071 1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1074 | --sharedst | --shareds | --shared | --share | --shar \ 1075 | --sha | --sh) 1076 ac_prev=sharedstatedir ;; 1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1080 | --sha=* | --sh=*) 1081 sharedstatedir=$ac_optarg ;; 1082 1083 -site | --site | --sit) 1084 ac_prev=site ;; 1085 -site=* | --site=* | --sit=*) 1086 site=$ac_optarg ;; 1087 1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1089 ac_prev=srcdir ;; 1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1091 srcdir=$ac_optarg ;; 1092 1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1094 | --syscon | --sysco | --sysc | --sys | --sy) 1095 ac_prev=sysconfdir ;; 1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1098 sysconfdir=$ac_optarg ;; 1099 1100 -target | --target | --targe | --targ | --tar | --ta | --t) 1101 ac_prev=target_alias ;; 1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1103 target_alias=$ac_optarg ;; 1104 1105 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1106 verbose=yes ;; 1107 1108 -version | --version | --versio | --versi | --vers | -V) 1109 ac_init_version=: ;; 1110 1111 -with-* | --with-*) 1112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1113 # Reject names that are not valid shell variable names. 1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1115 { echo "$as_me: error: invalid package name: $ac_package" >&2 1116 { (exit 1); exit 1; }; } 1117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1118 eval with_$ac_package=\$ac_optarg ;; 1119 1120 -without-* | --without-*) 1121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1122 # Reject names that are not valid shell variable names. 1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1124 { echo "$as_me: error: invalid package name: $ac_package" >&2 1125 { (exit 1); exit 1; }; } 1126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1127 eval with_$ac_package=no ;; 1128 1129 --x) 1130 # Obsolete; use --with-x. 1131 with_x=yes ;; 1132 1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1134 | --x-incl | --x-inc | --x-in | --x-i) 1135 ac_prev=x_includes ;; 1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1138 x_includes=$ac_optarg ;; 1139 1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1142 ac_prev=x_libraries ;; 1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1145 x_libraries=$ac_optarg ;; 1146 1147 -*) { echo "$as_me: error: unrecognized option: $ac_option 1148Try \`$0 --help' for more information." >&2 1149 { (exit 1); exit 1; }; } 1150 ;; 1151 1152 *=*) 1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1154 # Reject names that are not valid shell variable names. 1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1157 { (exit 1); exit 1; }; } 1158 eval $ac_envvar=\$ac_optarg 1159 export $ac_envvar ;; 1160 1161 *) 1162 # FIXME: should be removed in autoconf 3.0. 1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1167 ;; 1168 1169 esac 1170done 1171 1172if test -n "$ac_prev"; then 1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1174 { echo "$as_me: error: missing argument to $ac_option" >&2 1175 { (exit 1); exit 1; }; } 1176fi 1177 1178# Be sure to have absolute directory names. 1179for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1180 datadir sysconfdir sharedstatedir localstatedir includedir \ 1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1182 libdir localedir mandir 1183do 1184 eval ac_val=\$$ac_var 1185 case $ac_val in 1186 [\\/$]* | ?:[\\/]* ) continue;; 1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1188 esac 1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1190 { (exit 1); exit 1; }; } 1191done 1192 1193# There might be people who depend on the old broken behavior: `$host' 1194# used to hold the argument of --host etc. 1195# FIXME: To remove some day. 1196build=$build_alias 1197host=$host_alias 1198target=$target_alias 1199 1200# FIXME: To remove some day. 1201if test "x$host_alias" != x; then 1202 if test "x$build_alias" = x; then 1203 cross_compiling=maybe 1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1205 If a cross compiler is detected then cross compile mode will be used." >&2 1206 elif test "x$build_alias" != "x$host_alias"; then 1207 cross_compiling=yes 1208 fi 1209fi 1210 1211ac_tool_prefix= 1212test -n "$host_alias" && ac_tool_prefix=$host_alias- 1213 1214test "$silent" = yes && exec 6>/dev/null 1215 1216 1217ac_pwd=`pwd` && test -n "$ac_pwd" && 1218ac_ls_di=`ls -di .` && 1219ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1220 { echo "$as_me: error: Working directory cannot be determined" >&2 1221 { (exit 1); exit 1; }; } 1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1223 { echo "$as_me: error: pwd does not report name of working directory" >&2 1224 { (exit 1); exit 1; }; } 1225 1226 1227# Find the source files, if location was not specified. 1228if test -z "$srcdir"; then 1229 ac_srcdir_defaulted=yes 1230 # Try the directory containing this script, then the parent directory. 1231 ac_confdir=`$as_dirname -- "$0" || 1232$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1233 X"$0" : 'X\(//\)[^/]' \| \ 1234 X"$0" : 'X\(//\)$' \| \ 1235 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1236echo X"$0" | 1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\/\)[^/].*/{ 1242 s//\1/ 1243 q 1244 } 1245 /^X\(\/\/\)$/{ 1246 s//\1/ 1247 q 1248 } 1249 /^X\(\/\).*/{ 1250 s//\1/ 1251 q 1252 } 1253 s/.*/./; q'` 1254 srcdir=$ac_confdir 1255 if test ! -r "$srcdir/$ac_unique_file"; then 1256 srcdir=.. 1257 fi 1258else 1259 ac_srcdir_defaulted=no 1260fi 1261if test ! -r "$srcdir/$ac_unique_file"; then 1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1264 { (exit 1); exit 1; }; } 1265fi 1266ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1267ac_abs_confdir=`( 1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1269 { (exit 1); exit 1; }; } 1270 pwd)` 1271# When building in place, set srcdir=. 1272if test "$ac_abs_confdir" = "$ac_pwd"; then 1273 srcdir=. 1274fi 1275# Remove unnecessary trailing slashes from srcdir. 1276# Double slashes in file names in object file debugging info 1277# mess up M-x gdb in Emacs. 1278case $srcdir in 1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1280esac 1281for ac_var in $ac_precious_vars; do 1282 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1283 eval ac_env_${ac_var}_value=\$${ac_var} 1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1285 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1286done 1287 1288# 1289# Report the --help message. 1290# 1291if test "$ac_init_help" = "long"; then 1292 # Omit some internal or obsolete options to make the list less imposing. 1293 # This message is too long to be a string in the A/UX 3.1 sh. 1294 cat <<_ACEOF 1295\`configure' configures this package to adapt to many kinds of systems. 1296 1297Usage: $0 [OPTION]... [VAR=VALUE]... 1298 1299To assign environment variables (e.g., CC, CFLAGS...), specify them as 1300VAR=VALUE. See below for descriptions of some of the useful variables. 1301 1302Defaults for the options are specified in brackets. 1303 1304Configuration: 1305 -h, --help display this help and exit 1306 --help=short display options specific to this package 1307 --help=recursive display the short help of all the included packages 1308 -V, --version display version information and exit 1309 -q, --quiet, --silent do not print \`checking...' messages 1310 --cache-file=FILE cache test results in FILE [disabled] 1311 -C, --config-cache alias for \`--cache-file=config.cache' 1312 -n, --no-create do not create output files 1313 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1314 1315Installation directories: 1316 --prefix=PREFIX install architecture-independent files in PREFIX 1317 [$ac_default_prefix] 1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1319 [PREFIX] 1320 1321By default, \`make install' will install all the files in 1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1323an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1324for instance \`--prefix=\$HOME'. 1325 1326For better control, use the options below. 1327 1328Fine tuning of the installation directories: 1329 --bindir=DIR user executables [EPREFIX/bin] 1330 --sbindir=DIR system admin executables [EPREFIX/sbin] 1331 --libexecdir=DIR program executables [EPREFIX/libexec] 1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1335 --libdir=DIR object code libraries [EPREFIX/lib] 1336 --includedir=DIR C header files [PREFIX/include] 1337 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1340 --infodir=DIR info documentation [DATAROOTDIR/info] 1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1342 --mandir=DIR man documentation [DATAROOTDIR/man] 1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1344 --htmldir=DIR html documentation [DOCDIR] 1345 --dvidir=DIR dvi documentation [DOCDIR] 1346 --pdfdir=DIR pdf documentation [DOCDIR] 1347 --psdir=DIR ps documentation [DOCDIR] 1348_ACEOF 1349 1350 cat <<\_ACEOF 1351 1352System types: 1353 --build=BUILD configure for building on BUILD [guessed] 1354 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1355_ACEOF 1356fi 1357 1358if test -n "$ac_init_help"; then 1359 1360 cat <<\_ACEOF 1361 1362Optional Features: 1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1365 --enable-maintainer-mode enable makefile rules useful for maintainers 1366 --enable-compression enable EXPERIMENTAL compression support 1367 --enable-htree enable EXPERIMENTAL htree directory support 1368 --enable-elf-shlibs select ELF shared libraries 1369 --enable-bsd-shlibs select BSD shared libraries 1370 --enable-profile build profiling libraries 1371 --enable-checker build checker libraries 1372 --enable-jbd-debug enable journal debugging 1373 --enable-blkid-debug enable blkid debugging 1374 --enable-testio-debug enable the use of the test I/O manager for debugging 1375 --disable-debugfs disable support of debugfs program 1376 --disable-imager disable support of e2image program 1377 --disable-resizer disable support of e2resize program 1378 --enable-fsck build fsck wrapper program 1379 --enable-e2initrd-helper build e2initrd-helper program 1380 --enable-blkid-devmapper build with device-mapper support 1381 --disable-tls disable use of thread local support 1382 --disable-uuidd disable building the uuid daemon 1383 --disable-nls do not use Native Language Support 1384 --disable-rpath do not hardcode runtime library paths 1385 1386Optional Packages: 1387 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1388 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1389 --with-diet-libc use diet libc 1390 --with-cc=COMPILER select compiler to use 1391 --with-linker=LINKER select linker to use 1392 --with-ccopts=CCOPTS select compiler command line options 1393 --with-ldopts=LDOPTS select linker command line options 1394 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root 1395 --with-gnu-ld assume the C compiler uses GNU ld default=no 1396 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1397 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1398 --with-included-gettext use the GNU gettext library included here 1399 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1400 --without-libintl-prefix don't search for libintl in includedir and libdir 1401 1402Some influential environment variables: 1403 CC C compiler command 1404 CFLAGS C compiler flags 1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1406 nonstandard directory <lib dir> 1407 LIBS libraries to pass to the linker, e.g. -l<library> 1408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1409 you have headers in a nonstandard directory <include dir> 1410 CPP C preprocessor 1411 PKG_CONFIG path to pkg-config utility 1412 1413Use these variables to override the choices made by `configure' or to help 1414it to find libraries and programs with nonstandard names/locations. 1415 1416_ACEOF 1417ac_status=$? 1418fi 1419 1420if test "$ac_init_help" = "recursive"; then 1421 # If there are subdirs, report their specific --help. 1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1423 test -d "$ac_dir" || continue 1424 ac_builddir=. 1425 1426case "$ac_dir" in 1427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1428*) 1429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1430 # A ".." for each directory in $ac_dir_suffix. 1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1432 case $ac_top_builddir_sub in 1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1435 esac ;; 1436esac 1437ac_abs_top_builddir=$ac_pwd 1438ac_abs_builddir=$ac_pwd$ac_dir_suffix 1439# for backward compatibility: 1440ac_top_builddir=$ac_top_build_prefix 1441 1442case $srcdir in 1443 .) # We are building in place. 1444 ac_srcdir=. 1445 ac_top_srcdir=$ac_top_builddir_sub 1446 ac_abs_top_srcdir=$ac_pwd ;; 1447 [\\/]* | ?:[\\/]* ) # Absolute name. 1448 ac_srcdir=$srcdir$ac_dir_suffix; 1449 ac_top_srcdir=$srcdir 1450 ac_abs_top_srcdir=$srcdir ;; 1451 *) # Relative name. 1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1453 ac_top_srcdir=$ac_top_build_prefix$srcdir 1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1455esac 1456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1457 1458 cd "$ac_dir" || { ac_status=$?; continue; } 1459 # Check for guested configure. 1460 if test -f "$ac_srcdir/configure.gnu"; then 1461 echo && 1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1463 elif test -f "$ac_srcdir/configure"; then 1464 echo && 1465 $SHELL "$ac_srcdir/configure" --help=recursive 1466 else 1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1468 fi || ac_status=$? 1469 cd "$ac_pwd" || { ac_status=$?; break; } 1470 done 1471fi 1472 1473test -n "$ac_init_help" && exit $ac_status 1474if $ac_init_version; then 1475 cat <<\_ACEOF 1476configure 1477generated by GNU Autoconf 2.61 1478 1479Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1481This configure script is free software; the Free Software Foundation 1482gives unlimited permission to copy, distribute and modify it. 1483_ACEOF 1484 exit 1485fi 1486cat >config.log <<_ACEOF 1487This file contains any messages produced by compilers while 1488running configure, to aid debugging if configure makes a mistake. 1489 1490It was created by $as_me, which was 1491generated by GNU Autoconf 2.61. Invocation command line was 1492 1493 $ $0 $@ 1494 1495_ACEOF 1496exec 5>>config.log 1497{ 1498cat <<_ASUNAME 1499## --------- ## 1500## Platform. ## 1501## --------- ## 1502 1503hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1504uname -m = `(uname -m) 2>/dev/null || echo unknown` 1505uname -r = `(uname -r) 2>/dev/null || echo unknown` 1506uname -s = `(uname -s) 2>/dev/null || echo unknown` 1507uname -v = `(uname -v) 2>/dev/null || echo unknown` 1508 1509/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1510/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1511 1512/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1513/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1514/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1515/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1516/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1517/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1518/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1519 1520_ASUNAME 1521 1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1523for as_dir in $PATH 1524do 1525 IFS=$as_save_IFS 1526 test -z "$as_dir" && as_dir=. 1527 echo "PATH: $as_dir" 1528done 1529IFS=$as_save_IFS 1530 1531} >&5 1532 1533cat >&5 <<_ACEOF 1534 1535 1536## ----------- ## 1537## Core tests. ## 1538## ----------- ## 1539 1540_ACEOF 1541 1542 1543# Keep a trace of the command line. 1544# Strip out --no-create and --no-recursion so they do not pile up. 1545# Strip out --silent because we don't want to record it for future runs. 1546# Also quote any args containing shell meta-characters. 1547# Make two passes to allow for proper duplicate-argument suppression. 1548ac_configure_args= 1549ac_configure_args0= 1550ac_configure_args1= 1551ac_must_keep_next=false 1552for ac_pass in 1 2 1553do 1554 for ac_arg 1555 do 1556 case $ac_arg in 1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1559 | -silent | --silent | --silen | --sile | --sil) 1560 continue ;; 1561 *\'*) 1562 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1563 esac 1564 case $ac_pass in 1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1566 2) 1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1568 if test $ac_must_keep_next = true; then 1569 ac_must_keep_next=false # Got value, back to normal. 1570 else 1571 case $ac_arg in 1572 *=* | --config-cache | -C | -disable-* | --disable-* \ 1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1575 | -with-* | --with-* | -without-* | --without-* | --x) 1576 case "$ac_configure_args0 " in 1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1578 esac 1579 ;; 1580 -* ) ac_must_keep_next=true ;; 1581 esac 1582 fi 1583 ac_configure_args="$ac_configure_args '$ac_arg'" 1584 ;; 1585 esac 1586 done 1587done 1588$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1589$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1590 1591# When interrupted or exit'd, cleanup temporary files, and complete 1592# config.log. We remove comments because anyway the quotes in there 1593# would cause problems or look ugly. 1594# WARNING: Use '\'' to represent an apostrophe within the trap. 1595# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1596trap 'exit_status=$? 1597 # Save into config.log some information that might help in debugging. 1598 { 1599 echo 1600 1601 cat <<\_ASBOX 1602## ---------------- ## 1603## Cache variables. ## 1604## ---------------- ## 1605_ASBOX 1606 echo 1607 # The following way of writing the cache mishandles newlines in values, 1608( 1609 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1610 eval ac_val=\$$ac_var 1611 case $ac_val in #( 1612 *${as_nl}*) 1613 case $ac_var in #( 1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1615echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1616 esac 1617 case $ac_var in #( 1618 _ | IFS | as_nl) ;; #( 1619 *) $as_unset $ac_var ;; 1620 esac ;; 1621 esac 1622 done 1623 (set) 2>&1 | 1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1625 *${as_nl}ac_space=\ *) 1626 sed -n \ 1627 "s/'\''/'\''\\\\'\'''\''/g; 1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1629 ;; #( 1630 *) 1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1632 ;; 1633 esac | 1634 sort 1635) 1636 echo 1637 1638 cat <<\_ASBOX 1639## ----------------- ## 1640## Output variables. ## 1641## ----------------- ## 1642_ASBOX 1643 echo 1644 for ac_var in $ac_subst_vars 1645 do 1646 eval ac_val=\$$ac_var 1647 case $ac_val in 1648 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1649 esac 1650 echo "$ac_var='\''$ac_val'\''" 1651 done | sort 1652 echo 1653 1654 if test -n "$ac_subst_files"; then 1655 cat <<\_ASBOX 1656## ------------------- ## 1657## File substitutions. ## 1658## ------------------- ## 1659_ASBOX 1660 echo 1661 for ac_var in $ac_subst_files 1662 do 1663 eval ac_val=\$$ac_var 1664 case $ac_val in 1665 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1666 esac 1667 echo "$ac_var='\''$ac_val'\''" 1668 done | sort 1669 echo 1670 fi 1671 1672 if test -s confdefs.h; then 1673 cat <<\_ASBOX 1674## ----------- ## 1675## confdefs.h. ## 1676## ----------- ## 1677_ASBOX 1678 echo 1679 cat confdefs.h 1680 echo 1681 fi 1682 test "$ac_signal" != 0 && 1683 echo "$as_me: caught signal $ac_signal" 1684 echo "$as_me: exit $exit_status" 1685 } >&5 1686 rm -f core *.core core.conftest.* && 1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1688 exit $exit_status 1689' 0 1690for ac_signal in 1 2 13 15; do 1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1692done 1693ac_signal=0 1694 1695# confdefs.h avoids OS command line length limits that DEFS can exceed. 1696rm -f -r conftest* confdefs.h 1697 1698# Predefined preprocessor variables. 1699 1700cat >>confdefs.h <<_ACEOF 1701#define PACKAGE_NAME "$PACKAGE_NAME" 1702_ACEOF 1703 1704 1705cat >>confdefs.h <<_ACEOF 1706#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1707_ACEOF 1708 1709 1710cat >>confdefs.h <<_ACEOF 1711#define PACKAGE_VERSION "$PACKAGE_VERSION" 1712_ACEOF 1713 1714 1715cat >>confdefs.h <<_ACEOF 1716#define PACKAGE_STRING "$PACKAGE_STRING" 1717_ACEOF 1718 1719 1720cat >>confdefs.h <<_ACEOF 1721#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1722_ACEOF 1723 1724 1725# Let the site file select an alternate cache file if it wants to. 1726# Prefer explicitly selected file to automatically selected ones. 1727if test -n "$CONFIG_SITE"; then 1728 set x "$CONFIG_SITE" 1729elif test "x$prefix" != xNONE; then 1730 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1731else 1732 set x "$ac_default_prefix/share/config.site" \ 1733 "$ac_default_prefix/etc/config.site" 1734fi 1735shift 1736for ac_site_file 1737do 1738 if test -r "$ac_site_file"; then 1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1740echo "$as_me: loading site script $ac_site_file" >&6;} 1741 sed 's/^/| /' "$ac_site_file" >&5 1742 . "$ac_site_file" 1743 fi 1744done 1745 1746if test -r "$cache_file"; then 1747 # Some versions of bash will fail to source /dev/null (special 1748 # files actually), so we avoid doing that. 1749 if test -f "$cache_file"; then 1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1751echo "$as_me: loading cache $cache_file" >&6;} 1752 case $cache_file in 1753 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1754 *) . "./$cache_file";; 1755 esac 1756 fi 1757else 1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1759echo "$as_me: creating cache $cache_file" >&6;} 1760 >$cache_file 1761fi 1762 1763# Check that the precious variables saved in the cache have kept the same 1764# value. 1765ac_cache_corrupted=false 1766for ac_var in $ac_precious_vars; do 1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1768 eval ac_new_set=\$ac_env_${ac_var}_set 1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1770 eval ac_new_val=\$ac_env_${ac_var}_value 1771 case $ac_old_set,$ac_new_set in 1772 set,) 1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1774echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1775 ac_cache_corrupted=: ;; 1776 ,set) 1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1778echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1779 ac_cache_corrupted=: ;; 1780 ,);; 1781 *) 1782 if test "x$ac_old_val" != "x$ac_new_val"; then 1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1784echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1785 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1786echo "$as_me: former value: $ac_old_val" >&2;} 1787 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1788echo "$as_me: current value: $ac_new_val" >&2;} 1789 ac_cache_corrupted=: 1790 fi;; 1791 esac 1792 # Pass precious variables to config.status. 1793 if test "$ac_new_set" = set; then 1794 case $ac_new_val in 1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1796 *) ac_arg=$ac_var=$ac_new_val ;; 1797 esac 1798 case " $ac_configure_args " in 1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1801 esac 1802 fi 1803done 1804if $ac_cache_corrupted; then 1805 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1806echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1807 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1808echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1809 { (exit 1); exit 1; }; } 1810fi 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828ac_ext=c 1829ac_cpp='$CPP $CPPFLAGS' 1830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1832ac_compiler_gnu=$ac_cv_c_compiler_gnu 1833 1834 1835 1836ac_aux_dir= 1837for ac_dir in config "$srcdir"/config; do 1838 if test -f "$ac_dir/install-sh"; then 1839 ac_aux_dir=$ac_dir 1840 ac_install_sh="$ac_aux_dir/install-sh -c" 1841 break 1842 elif test -f "$ac_dir/install.sh"; then 1843 ac_aux_dir=$ac_dir 1844 ac_install_sh="$ac_aux_dir/install.sh -c" 1845 break 1846 elif test -f "$ac_dir/shtool"; then 1847 ac_aux_dir=$ac_dir 1848 ac_install_sh="$ac_aux_dir/shtool install -c" 1849 break 1850 fi 1851done 1852if test -z "$ac_aux_dir"; then 1853 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 1854echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 1855 { (exit 1); exit 1; }; } 1856fi 1857 1858# These three variables are undocumented and unsupported, 1859# and are intended to be withdrawn in a future Autoconf release. 1860# They can cause serious problems if a builder's source tree is in a directory 1861# whose full name contains unusual characters. 1862ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1863ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1864ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1865 1866 1867MCONFIG=./MCONFIG 1868 1869BINARY_TYPE=bin 1870E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ 1871 | awk '{print $3}' | tr \" " " | awk '{print $1}'` 1872DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ 1873 | tr \" " "` 1874E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` 1875MONTH=`echo $DATE | awk -F- '{print $2}'` 1876YEAR=`echo $DATE | awk -F- '{print $3}'` 1877 1878if expr $YEAR ">" 1900 > /dev/null ; then 1879 E2FSPROGS_YEAR=$YEAR 1880elif expr $YEAR ">" 90 >/dev/null ; then 1881 E2FSPROGS_YEAR=19$YEAR 1882else 1883 E2FSPROGS_YEAR=20$YEAR 1884fi 1885 1886case $MONTH in 1887Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; 1888Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; 1889Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; 1890Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; 1891May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; 1892Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; 1893Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; 1894Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; 1895Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; 1896Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; 1897Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; 1898Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; 1899*) echo "Unknown month $MONTH??" ;; 1900esac 1901 1902base_ver=`echo $E2FSPROGS_VERSION | \ 1903 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` 1904 1905date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} 1906 1907case $E2FSPROGS_VERSION in 1908*-WIP|pre-*) 1909 pre_vers=`echo $base_ver 0.01 - p | dc` 1910 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec" 1911 ;; 1912*) 1913 E2FSPROGS_PKGVER="$base_ver" 1914 ;; 1915esac 1916 1917unset DATE MONTH YEAR base_ver pre_vers date_spec 1918echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" 1919echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" 1920 1921 1922 1923 1924 1925# Make sure we can run config.sub. 1926$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1927 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1928echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1929 { (exit 1); exit 1; }; } 1930 1931{ echo "$as_me:$LINENO: checking build system type" >&5 1932echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1933if test "${ac_cv_build+set}" = set; then 1934 echo $ECHO_N "(cached) $ECHO_C" >&6 1935else 1936 ac_build_alias=$build_alias 1937test "x$ac_build_alias" = x && 1938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1939test "x$ac_build_alias" = x && 1940 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1941echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1942 { (exit 1); exit 1; }; } 1943ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1944 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1945echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1946 { (exit 1); exit 1; }; } 1947 1948fi 1949{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1950echo "${ECHO_T}$ac_cv_build" >&6; } 1951case $ac_cv_build in 1952*-*-*) ;; 1953*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1954echo "$as_me: error: invalid value of canonical build" >&2;} 1955 { (exit 1); exit 1; }; };; 1956esac 1957build=$ac_cv_build 1958ac_save_IFS=$IFS; IFS='-' 1959set x $ac_cv_build 1960shift 1961build_cpu=$1 1962build_vendor=$2 1963shift; shift 1964# Remember, the first character of IFS is used to create $*, 1965# except with old shells: 1966build_os=$* 1967IFS=$ac_save_IFS 1968case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1969 1970 1971{ echo "$as_me:$LINENO: checking host system type" >&5 1972echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1973if test "${ac_cv_host+set}" = set; then 1974 echo $ECHO_N "(cached) $ECHO_C" >&6 1975else 1976 if test "x$host_alias" = x; then 1977 ac_cv_host=$ac_cv_build 1978else 1979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1980 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1981echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1982 { (exit 1); exit 1; }; } 1983fi 1984 1985fi 1986{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1987echo "${ECHO_T}$ac_cv_host" >&6; } 1988case $ac_cv_host in 1989*-*-*) ;; 1990*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1991echo "$as_me: error: invalid value of canonical host" >&2;} 1992 { (exit 1); exit 1; }; };; 1993esac 1994host=$ac_cv_host 1995ac_save_IFS=$IFS; IFS='-' 1996set x $ac_cv_host 1997shift 1998host_cpu=$1 1999host_vendor=$2 2000shift; shift 2001# Remember, the first character of IFS is used to create $*, 2002# except with old shells: 2003host_os=$* 2004IFS=$ac_save_IFS 2005case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2006 2007 2008 2009# Check whether --with-diet-libc was given. 2010if test "${with_diet_libc+set}" = set; then 2011 withval=$with_diet_libc; CC="diet cc -nostdinc" 2012{ echo "$as_me:$LINENO: result: CC=$CC" >&5 2013echo "${ECHO_T}CC=$CC" >&6; } 2014fi 2015 2016# Check whether --with-cc was given. 2017if test "${with_cc+set}" = set; then 2018 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 2019echo "${ECHO_T}CC=$withval" >&6; } 2020CC=$withval 2021else 2022 if test -z "$CC" ; then CC=cc; fi 2023{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 2024echo "${ECHO_T}CC defaults to $CC" >&6; } 2025fi 2026export CC 2027 2028ac_ext=c 2029ac_cpp='$CPP $CPPFLAGS' 2030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2032ac_compiler_gnu=$ac_cv_c_compiler_gnu 2033if test -n "$ac_tool_prefix"; then 2034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2035set dummy ${ac_tool_prefix}gcc; ac_word=$2 2036{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2038if test "${ac_cv_prog_CC+set}" = set; then 2039 echo $ECHO_N "(cached) $ECHO_C" >&6 2040else 2041 if test -n "$CC"; then 2042 ac_cv_prog_CC="$CC" # Let the user override the test. 2043else 2044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2045for as_dir in $PATH 2046do 2047 IFS=$as_save_IFS 2048 test -z "$as_dir" && as_dir=. 2049 for ac_exec_ext in '' $ac_executable_extensions; do 2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2051 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2053 break 2 2054 fi 2055done 2056done 2057IFS=$as_save_IFS 2058 2059fi 2060fi 2061CC=$ac_cv_prog_CC 2062if test -n "$CC"; then 2063 { echo "$as_me:$LINENO: result: $CC" >&5 2064echo "${ECHO_T}$CC" >&6; } 2065else 2066 { echo "$as_me:$LINENO: result: no" >&5 2067echo "${ECHO_T}no" >&6; } 2068fi 2069 2070 2071fi 2072if test -z "$ac_cv_prog_CC"; then 2073 ac_ct_CC=$CC 2074 # Extract the first word of "gcc", so it can be a program name with args. 2075set dummy gcc; ac_word=$2 2076{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2078if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2079 echo $ECHO_N "(cached) $ECHO_C" >&6 2080else 2081 if test -n "$ac_ct_CC"; then 2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2083else 2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2085for as_dir in $PATH 2086do 2087 IFS=$as_save_IFS 2088 test -z "$as_dir" && as_dir=. 2089 for ac_exec_ext in '' $ac_executable_extensions; do 2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2091 ac_cv_prog_ac_ct_CC="gcc" 2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2093 break 2 2094 fi 2095done 2096done 2097IFS=$as_save_IFS 2098 2099fi 2100fi 2101ac_ct_CC=$ac_cv_prog_ac_ct_CC 2102if test -n "$ac_ct_CC"; then 2103 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2104echo "${ECHO_T}$ac_ct_CC" >&6; } 2105else 2106 { echo "$as_me:$LINENO: result: no" >&5 2107echo "${ECHO_T}no" >&6; } 2108fi 2109 2110 if test "x$ac_ct_CC" = x; then 2111 CC="" 2112 else 2113 case $cross_compiling:$ac_tool_warned in 2114yes:) 2115{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2116whose name does not start with the host triplet. If you think this 2117configuration is useful to you, please write to autoconf@gnu.org." >&5 2118echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2119whose name does not start with the host triplet. If you think this 2120configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2121ac_tool_warned=yes ;; 2122esac 2123 CC=$ac_ct_CC 2124 fi 2125else 2126 CC="$ac_cv_prog_CC" 2127fi 2128 2129if test -z "$CC"; then 2130 if test -n "$ac_tool_prefix"; then 2131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2132set dummy ${ac_tool_prefix}cc; ac_word=$2 2133{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2135if test "${ac_cv_prog_CC+set}" = set; then 2136 echo $ECHO_N "(cached) $ECHO_C" >&6 2137else 2138 if test -n "$CC"; then 2139 ac_cv_prog_CC="$CC" # Let the user override the test. 2140else 2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2142for as_dir in $PATH 2143do 2144 IFS=$as_save_IFS 2145 test -z "$as_dir" && as_dir=. 2146 for ac_exec_ext in '' $ac_executable_extensions; do 2147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2148 ac_cv_prog_CC="${ac_tool_prefix}cc" 2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2150 break 2 2151 fi 2152done 2153done 2154IFS=$as_save_IFS 2155 2156fi 2157fi 2158CC=$ac_cv_prog_CC 2159if test -n "$CC"; then 2160 { echo "$as_me:$LINENO: result: $CC" >&5 2161echo "${ECHO_T}$CC" >&6; } 2162else 2163 { echo "$as_me:$LINENO: result: no" >&5 2164echo "${ECHO_T}no" >&6; } 2165fi 2166 2167 2168 fi 2169fi 2170if test -z "$CC"; then 2171 # Extract the first word of "cc", so it can be a program name with args. 2172set dummy cc; ac_word=$2 2173{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2175if test "${ac_cv_prog_CC+set}" = set; then 2176 echo $ECHO_N "(cached) $ECHO_C" >&6 2177else 2178 if test -n "$CC"; then 2179 ac_cv_prog_CC="$CC" # Let the user override the test. 2180else 2181 ac_prog_rejected=no 2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2183for as_dir in $PATH 2184do 2185 IFS=$as_save_IFS 2186 test -z "$as_dir" && as_dir=. 2187 for ac_exec_ext in '' $ac_executable_extensions; do 2188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2190 ac_prog_rejected=yes 2191 continue 2192 fi 2193 ac_cv_prog_CC="cc" 2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2195 break 2 2196 fi 2197done 2198done 2199IFS=$as_save_IFS 2200 2201if test $ac_prog_rejected = yes; then 2202 # We found a bogon in the path, so make sure we never use it. 2203 set dummy $ac_cv_prog_CC 2204 shift 2205 if test $# != 0; then 2206 # We chose a different compiler from the bogus one. 2207 # However, it has the same basename, so the bogon will be chosen 2208 # first if we set CC to just the basename; use the full file name. 2209 shift 2210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2211 fi 2212fi 2213fi 2214fi 2215CC=$ac_cv_prog_CC 2216if test -n "$CC"; then 2217 { echo "$as_me:$LINENO: result: $CC" >&5 2218echo "${ECHO_T}$CC" >&6; } 2219else 2220 { echo "$as_me:$LINENO: result: no" >&5 2221echo "${ECHO_T}no" >&6; } 2222fi 2223 2224 2225fi 2226if test -z "$CC"; then 2227 if test -n "$ac_tool_prefix"; then 2228 for ac_prog in cl.exe 2229 do 2230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2231set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2232{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2234if test "${ac_cv_prog_CC+set}" = set; then 2235 echo $ECHO_N "(cached) $ECHO_C" >&6 2236else 2237 if test -n "$CC"; then 2238 ac_cv_prog_CC="$CC" # Let the user override the test. 2239else 2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2241for as_dir in $PATH 2242do 2243 IFS=$as_save_IFS 2244 test -z "$as_dir" && as_dir=. 2245 for ac_exec_ext in '' $ac_executable_extensions; do 2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2249 break 2 2250 fi 2251done 2252done 2253IFS=$as_save_IFS 2254 2255fi 2256fi 2257CC=$ac_cv_prog_CC 2258if test -n "$CC"; then 2259 { echo "$as_me:$LINENO: result: $CC" >&5 2260echo "${ECHO_T}$CC" >&6; } 2261else 2262 { echo "$as_me:$LINENO: result: no" >&5 2263echo "${ECHO_T}no" >&6; } 2264fi 2265 2266 2267 test -n "$CC" && break 2268 done 2269fi 2270if test -z "$CC"; then 2271 ac_ct_CC=$CC 2272 for ac_prog in cl.exe 2273do 2274 # Extract the first word of "$ac_prog", so it can be a program name with args. 2275set dummy $ac_prog; ac_word=$2 2276{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2278if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2279 echo $ECHO_N "(cached) $ECHO_C" >&6 2280else 2281 if test -n "$ac_ct_CC"; then 2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2283else 2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2285for as_dir in $PATH 2286do 2287 IFS=$as_save_IFS 2288 test -z "$as_dir" && as_dir=. 2289 for ac_exec_ext in '' $ac_executable_extensions; do 2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2291 ac_cv_prog_ac_ct_CC="$ac_prog" 2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2293 break 2 2294 fi 2295done 2296done 2297IFS=$as_save_IFS 2298 2299fi 2300fi 2301ac_ct_CC=$ac_cv_prog_ac_ct_CC 2302if test -n "$ac_ct_CC"; then 2303 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2304echo "${ECHO_T}$ac_ct_CC" >&6; } 2305else 2306 { echo "$as_me:$LINENO: result: no" >&5 2307echo "${ECHO_T}no" >&6; } 2308fi 2309 2310 2311 test -n "$ac_ct_CC" && break 2312done 2313 2314 if test "x$ac_ct_CC" = x; then 2315 CC="" 2316 else 2317 case $cross_compiling:$ac_tool_warned in 2318yes:) 2319{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2320whose name does not start with the host triplet. If you think this 2321configuration is useful to you, please write to autoconf@gnu.org." >&5 2322echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2323whose name does not start with the host triplet. If you think this 2324configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2325ac_tool_warned=yes ;; 2326esac 2327 CC=$ac_ct_CC 2328 fi 2329fi 2330 2331fi 2332 2333 2334test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2335See \`config.log' for more details." >&5 2336echo "$as_me: error: no acceptable C compiler found in \$PATH 2337See \`config.log' for more details." >&2;} 2338 { (exit 1); exit 1; }; } 2339 2340# Provide some information about the compiler. 2341echo "$as_me:$LINENO: checking for C compiler version" >&5 2342ac_compiler=`set X $ac_compile; echo $2` 2343{ (ac_try="$ac_compiler --version >&5" 2344case "(($ac_try" in 2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2346 *) ac_try_echo=$ac_try;; 2347esac 2348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2349 (eval "$ac_compiler --version >&5") 2>&5 2350 ac_status=$? 2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2352 (exit $ac_status); } 2353{ (ac_try="$ac_compiler -v >&5" 2354case "(($ac_try" in 2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2356 *) ac_try_echo=$ac_try;; 2357esac 2358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2359 (eval "$ac_compiler -v >&5") 2>&5 2360 ac_status=$? 2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2362 (exit $ac_status); } 2363{ (ac_try="$ac_compiler -V >&5" 2364case "(($ac_try" in 2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2366 *) ac_try_echo=$ac_try;; 2367esac 2368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2369 (eval "$ac_compiler -V >&5") 2>&5 2370 ac_status=$? 2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2372 (exit $ac_status); } 2373 2374cat >conftest.$ac_ext <<_ACEOF 2375/* confdefs.h. */ 2376_ACEOF 2377cat confdefs.h >>conftest.$ac_ext 2378cat >>conftest.$ac_ext <<_ACEOF 2379/* end confdefs.h. */ 2380 2381int 2382main () 2383{ 2384 2385 ; 2386 return 0; 2387} 2388_ACEOF 2389ac_clean_files_save=$ac_clean_files 2390ac_clean_files="$ac_clean_files a.out a.exe b.out" 2391# Try to create an executable without -o first, disregard a.out. 2392# It will help us diagnose broken compilers, and finding out an intuition 2393# of exeext. 2394{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2395echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2396ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2397# 2398# List of possible output files, starting from the most likely. 2399# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2400# only as a last resort. b.out is created by i960 compilers. 2401ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2402# 2403# The IRIX 6 linker writes into existing files which may not be 2404# executable, retaining their permissions. Remove them first so a 2405# subsequent execution test works. 2406ac_rmfiles= 2407for ac_file in $ac_files 2408do 2409 case $ac_file in 2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2411 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2412 esac 2413done 2414rm -f $ac_rmfiles 2415 2416if { (ac_try="$ac_link_default" 2417case "(($ac_try" in 2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2419 *) ac_try_echo=$ac_try;; 2420esac 2421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2422 (eval "$ac_link_default") 2>&5 2423 ac_status=$? 2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2425 (exit $ac_status); }; then 2426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2427# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2428# in a Makefile. We should not override ac_cv_exeext if it was cached, 2429# so that the user can short-circuit this test for compilers unknown to 2430# Autoconf. 2431for ac_file in $ac_files '' 2432do 2433 test -f "$ac_file" || continue 2434 case $ac_file in 2435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2436 ;; 2437 [ab].out ) 2438 # We found the default executable, but exeext='' is most 2439 # certainly right. 2440 break;; 2441 *.* ) 2442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2443 then :; else 2444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2445 fi 2446 # We set ac_cv_exeext here because the later test for it is not 2447 # safe: cross compilers may not add the suffix if given an `-o' 2448 # argument, so we may need to know it at that point already. 2449 # Even if this section looks crufty: it has the advantage of 2450 # actually working. 2451 break;; 2452 * ) 2453 break;; 2454 esac 2455done 2456test "$ac_cv_exeext" = no && ac_cv_exeext= 2457 2458else 2459 ac_file='' 2460fi 2461 2462{ echo "$as_me:$LINENO: result: $ac_file" >&5 2463echo "${ECHO_T}$ac_file" >&6; } 2464if test -z "$ac_file"; then 2465 echo "$as_me: failed program was:" >&5 2466sed 's/^/| /' conftest.$ac_ext >&5 2467 2468{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2469See \`config.log' for more details." >&5 2470echo "$as_me: error: C compiler cannot create executables 2471See \`config.log' for more details." >&2;} 2472 { (exit 77); exit 77; }; } 2473fi 2474 2475ac_exeext=$ac_cv_exeext 2476 2477# Check that the compiler produces executables we can run. If not, either 2478# the compiler is broken, or we cross compile. 2479{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2480echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2481# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2482# If not cross compiling, check that we can run a simple program. 2483if test "$cross_compiling" != yes; then 2484 if { ac_try='./$ac_file' 2485 { (case "(($ac_try" in 2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2487 *) ac_try_echo=$ac_try;; 2488esac 2489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2490 (eval "$ac_try") 2>&5 2491 ac_status=$? 2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2493 (exit $ac_status); }; }; then 2494 cross_compiling=no 2495 else 2496 if test "$cross_compiling" = maybe; then 2497 cross_compiling=yes 2498 else 2499 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2500If you meant to cross compile, use \`--host'. 2501See \`config.log' for more details." >&5 2502echo "$as_me: error: cannot run C compiled programs. 2503If you meant to cross compile, use \`--host'. 2504See \`config.log' for more details." >&2;} 2505 { (exit 1); exit 1; }; } 2506 fi 2507 fi 2508fi 2509{ echo "$as_me:$LINENO: result: yes" >&5 2510echo "${ECHO_T}yes" >&6; } 2511 2512rm -f a.out a.exe conftest$ac_cv_exeext b.out 2513ac_clean_files=$ac_clean_files_save 2514# Check that the compiler produces executables we can run. If not, either 2515# the compiler is broken, or we cross compile. 2516{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2517echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2518{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2519echo "${ECHO_T}$cross_compiling" >&6; } 2520 2521{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2522echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2523if { (ac_try="$ac_link" 2524case "(($ac_try" in 2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2526 *) ac_try_echo=$ac_try;; 2527esac 2528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2529 (eval "$ac_link") 2>&5 2530 ac_status=$? 2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2532 (exit $ac_status); }; then 2533 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2534# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2535# work properly (i.e., refer to `conftest.exe'), while it won't with 2536# `rm'. 2537for ac_file in conftest.exe conftest conftest.*; do 2538 test -f "$ac_file" || continue 2539 case $ac_file in 2540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2542 break;; 2543 * ) break;; 2544 esac 2545done 2546else 2547 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2548See \`config.log' for more details." >&5 2549echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2550See \`config.log' for more details." >&2;} 2551 { (exit 1); exit 1; }; } 2552fi 2553 2554rm -f conftest$ac_cv_exeext 2555{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2556echo "${ECHO_T}$ac_cv_exeext" >&6; } 2557 2558rm -f conftest.$ac_ext 2559EXEEXT=$ac_cv_exeext 2560ac_exeext=$EXEEXT 2561{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2562echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2563if test "${ac_cv_objext+set}" = set; then 2564 echo $ECHO_N "(cached) $ECHO_C" >&6 2565else 2566 cat >conftest.$ac_ext <<_ACEOF 2567/* confdefs.h. */ 2568_ACEOF 2569cat confdefs.h >>conftest.$ac_ext 2570cat >>conftest.$ac_ext <<_ACEOF 2571/* end confdefs.h. */ 2572 2573int 2574main () 2575{ 2576 2577 ; 2578 return 0; 2579} 2580_ACEOF 2581rm -f conftest.o conftest.obj 2582if { (ac_try="$ac_compile" 2583case "(($ac_try" in 2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2585 *) ac_try_echo=$ac_try;; 2586esac 2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2588 (eval "$ac_compile") 2>&5 2589 ac_status=$? 2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2591 (exit $ac_status); }; then 2592 for ac_file in conftest.o conftest.obj conftest.*; do 2593 test -f "$ac_file" || continue; 2594 case $ac_file in 2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2597 break;; 2598 esac 2599done 2600else 2601 echo "$as_me: failed program was:" >&5 2602sed 's/^/| /' conftest.$ac_ext >&5 2603 2604{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2605See \`config.log' for more details." >&5 2606echo "$as_me: error: cannot compute suffix of object files: cannot compile 2607See \`config.log' for more details." >&2;} 2608 { (exit 1); exit 1; }; } 2609fi 2610 2611rm -f conftest.$ac_cv_objext conftest.$ac_ext 2612fi 2613{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2614echo "${ECHO_T}$ac_cv_objext" >&6; } 2615OBJEXT=$ac_cv_objext 2616ac_objext=$OBJEXT 2617{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2618echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2619if test "${ac_cv_c_compiler_gnu+set}" = set; then 2620 echo $ECHO_N "(cached) $ECHO_C" >&6 2621else 2622 cat >conftest.$ac_ext <<_ACEOF 2623/* confdefs.h. */ 2624_ACEOF 2625cat confdefs.h >>conftest.$ac_ext 2626cat >>conftest.$ac_ext <<_ACEOF 2627/* end confdefs.h. */ 2628 2629int 2630main () 2631{ 2632#ifndef __GNUC__ 2633 choke me 2634#endif 2635 2636 ; 2637 return 0; 2638} 2639_ACEOF 2640rm -f conftest.$ac_objext 2641if { (ac_try="$ac_compile" 2642case "(($ac_try" in 2643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2644 *) ac_try_echo=$ac_try;; 2645esac 2646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2647 (eval "$ac_compile") 2>conftest.er1 2648 ac_status=$? 2649 grep -v '^ *+' conftest.er1 >conftest.err 2650 rm -f conftest.er1 2651 cat conftest.err >&5 2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2653 (exit $ac_status); } && { 2654 test -z "$ac_c_werror_flag" || 2655 test ! -s conftest.err 2656 } && test -s conftest.$ac_objext; then 2657 ac_compiler_gnu=yes 2658else 2659 echo "$as_me: failed program was:" >&5 2660sed 's/^/| /' conftest.$ac_ext >&5 2661 2662 ac_compiler_gnu=no 2663fi 2664 2665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2666ac_cv_c_compiler_gnu=$ac_compiler_gnu 2667 2668fi 2669{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2670echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2671GCC=`test $ac_compiler_gnu = yes && echo yes` 2672ac_test_CFLAGS=${CFLAGS+set} 2673ac_save_CFLAGS=$CFLAGS 2674{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2675echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2676if test "${ac_cv_prog_cc_g+set}" = set; then 2677 echo $ECHO_N "(cached) $ECHO_C" >&6 2678else 2679 ac_save_c_werror_flag=$ac_c_werror_flag 2680 ac_c_werror_flag=yes 2681 ac_cv_prog_cc_g=no 2682 CFLAGS="-g" 2683 cat >conftest.$ac_ext <<_ACEOF 2684/* confdefs.h. */ 2685_ACEOF 2686cat confdefs.h >>conftest.$ac_ext 2687cat >>conftest.$ac_ext <<_ACEOF 2688/* end confdefs.h. */ 2689 2690int 2691main () 2692{ 2693 2694 ; 2695 return 0; 2696} 2697_ACEOF 2698rm -f conftest.$ac_objext 2699if { (ac_try="$ac_compile" 2700case "(($ac_try" in 2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2702 *) ac_try_echo=$ac_try;; 2703esac 2704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2705 (eval "$ac_compile") 2>conftest.er1 2706 ac_status=$? 2707 grep -v '^ *+' conftest.er1 >conftest.err 2708 rm -f conftest.er1 2709 cat conftest.err >&5 2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2711 (exit $ac_status); } && { 2712 test -z "$ac_c_werror_flag" || 2713 test ! -s conftest.err 2714 } && test -s conftest.$ac_objext; then 2715 ac_cv_prog_cc_g=yes 2716else 2717 echo "$as_me: failed program was:" >&5 2718sed 's/^/| /' conftest.$ac_ext >&5 2719 2720 CFLAGS="" 2721 cat >conftest.$ac_ext <<_ACEOF 2722/* confdefs.h. */ 2723_ACEOF 2724cat confdefs.h >>conftest.$ac_ext 2725cat >>conftest.$ac_ext <<_ACEOF 2726/* end confdefs.h. */ 2727 2728int 2729main () 2730{ 2731 2732 ; 2733 return 0; 2734} 2735_ACEOF 2736rm -f conftest.$ac_objext 2737if { (ac_try="$ac_compile" 2738case "(($ac_try" in 2739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2740 *) ac_try_echo=$ac_try;; 2741esac 2742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2743 (eval "$ac_compile") 2>conftest.er1 2744 ac_status=$? 2745 grep -v '^ *+' conftest.er1 >conftest.err 2746 rm -f conftest.er1 2747 cat conftest.err >&5 2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2749 (exit $ac_status); } && { 2750 test -z "$ac_c_werror_flag" || 2751 test ! -s conftest.err 2752 } && test -s conftest.$ac_objext; then 2753 : 2754else 2755 echo "$as_me: failed program was:" >&5 2756sed 's/^/| /' conftest.$ac_ext >&5 2757 2758 ac_c_werror_flag=$ac_save_c_werror_flag 2759 CFLAGS="-g" 2760 cat >conftest.$ac_ext <<_ACEOF 2761/* confdefs.h. */ 2762_ACEOF 2763cat confdefs.h >>conftest.$ac_ext 2764cat >>conftest.$ac_ext <<_ACEOF 2765/* end confdefs.h. */ 2766 2767int 2768main () 2769{ 2770 2771 ; 2772 return 0; 2773} 2774_ACEOF 2775rm -f conftest.$ac_objext 2776if { (ac_try="$ac_compile" 2777case "(($ac_try" in 2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2779 *) ac_try_echo=$ac_try;; 2780esac 2781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2782 (eval "$ac_compile") 2>conftest.er1 2783 ac_status=$? 2784 grep -v '^ *+' conftest.er1 >conftest.err 2785 rm -f conftest.er1 2786 cat conftest.err >&5 2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2788 (exit $ac_status); } && { 2789 test -z "$ac_c_werror_flag" || 2790 test ! -s conftest.err 2791 } && test -s conftest.$ac_objext; then 2792 ac_cv_prog_cc_g=yes 2793else 2794 echo "$as_me: failed program was:" >&5 2795sed 's/^/| /' conftest.$ac_ext >&5 2796 2797 2798fi 2799 2800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2801fi 2802 2803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2804fi 2805 2806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2807 ac_c_werror_flag=$ac_save_c_werror_flag 2808fi 2809{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2810echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2811if test "$ac_test_CFLAGS" = set; then 2812 CFLAGS=$ac_save_CFLAGS 2813elif test $ac_cv_prog_cc_g = yes; then 2814 if test "$GCC" = yes; then 2815 CFLAGS="-g -O2" 2816 else 2817 CFLAGS="-g" 2818 fi 2819else 2820 if test "$GCC" = yes; then 2821 CFLAGS="-O2" 2822 else 2823 CFLAGS= 2824 fi 2825fi 2826{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2827echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2828if test "${ac_cv_prog_cc_c89+set}" = set; then 2829 echo $ECHO_N "(cached) $ECHO_C" >&6 2830else 2831 ac_cv_prog_cc_c89=no 2832ac_save_CC=$CC 2833cat >conftest.$ac_ext <<_ACEOF 2834/* confdefs.h. */ 2835_ACEOF 2836cat confdefs.h >>conftest.$ac_ext 2837cat >>conftest.$ac_ext <<_ACEOF 2838/* end confdefs.h. */ 2839#include <stdarg.h> 2840#include <stdio.h> 2841#include <sys/types.h> 2842#include <sys/stat.h> 2843/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2844struct buf { int x; }; 2845FILE * (*rcsopen) (struct buf *, struct stat *, int); 2846static char *e (p, i) 2847 char **p; 2848 int i; 2849{ 2850 return p[i]; 2851} 2852static char *f (char * (*g) (char **, int), char **p, ...) 2853{ 2854 char *s; 2855 va_list v; 2856 va_start (v,p); 2857 s = g (p, va_arg (v,int)); 2858 va_end (v); 2859 return s; 2860} 2861 2862/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2863 function prototypes and stuff, but not '\xHH' hex character constants. 2864 These don't provoke an error unfortunately, instead are silently treated 2865 as 'x'. The following induces an error, until -std is added to get 2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2867 array size at least. It's necessary to write '\x00'==0 to get something 2868 that's true only with -std. */ 2869int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2870 2871/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2872 inside strings and character constants. */ 2873#define FOO(x) 'x' 2874int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2875 2876int test (int i, double x); 2877struct s1 {int (*f) (int a);}; 2878struct s2 {int (*f) (double a);}; 2879int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2880int argc; 2881char **argv; 2882int 2883main () 2884{ 2885return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2886 ; 2887 return 0; 2888} 2889_ACEOF 2890for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2892do 2893 CC="$ac_save_CC $ac_arg" 2894 rm -f conftest.$ac_objext 2895if { (ac_try="$ac_compile" 2896case "(($ac_try" in 2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2898 *) ac_try_echo=$ac_try;; 2899esac 2900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2901 (eval "$ac_compile") 2>conftest.er1 2902 ac_status=$? 2903 grep -v '^ *+' conftest.er1 >conftest.err 2904 rm -f conftest.er1 2905 cat conftest.err >&5 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2907 (exit $ac_status); } && { 2908 test -z "$ac_c_werror_flag" || 2909 test ! -s conftest.err 2910 } && test -s conftest.$ac_objext; then 2911 ac_cv_prog_cc_c89=$ac_arg 2912else 2913 echo "$as_me: failed program was:" >&5 2914sed 's/^/| /' conftest.$ac_ext >&5 2915 2916 2917fi 2918 2919rm -f core conftest.err conftest.$ac_objext 2920 test "x$ac_cv_prog_cc_c89" != "xno" && break 2921done 2922rm -f conftest.$ac_ext 2923CC=$ac_save_CC 2924 2925fi 2926# AC_CACHE_VAL 2927case "x$ac_cv_prog_cc_c89" in 2928 x) 2929 { echo "$as_me:$LINENO: result: none needed" >&5 2930echo "${ECHO_T}none needed" >&6; } ;; 2931 xno) 2932 { echo "$as_me:$LINENO: result: unsupported" >&5 2933echo "${ECHO_T}unsupported" >&6; } ;; 2934 *) 2935 CC="$CC $ac_cv_prog_cc_c89" 2936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2937echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2938esac 2939 2940 2941ac_ext=c 2942ac_cpp='$CPP $CPPFLAGS' 2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2945ac_compiler_gnu=$ac_cv_c_compiler_gnu 2946 2947ac_ext=c 2948ac_cpp='$CPP $CPPFLAGS' 2949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2951ac_compiler_gnu=$ac_cv_c_compiler_gnu 2952{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2953echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 2954# On Suns, sometimes $CPP names a directory. 2955if test -n "$CPP" && test -d "$CPP"; then 2956 CPP= 2957fi 2958if test -z "$CPP"; then 2959 if test "${ac_cv_prog_CPP+set}" = set; then 2960 echo $ECHO_N "(cached) $ECHO_C" >&6 2961else 2962 # Double quotes because CPP needs to be expanded 2963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2964 do 2965 ac_preproc_ok=false 2966for ac_c_preproc_warn_flag in '' yes 2967do 2968 # Use a header file that comes with gcc, so configuring glibc 2969 # with a fresh cross-compiler works. 2970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2971 # <limits.h> exists even on freestanding compilers. 2972 # On the NeXT, cc -E runs the code through the compiler's parser, 2973 # not just through cpp. "Syntax error" is here to catch this case. 2974 cat >conftest.$ac_ext <<_ACEOF 2975/* confdefs.h. */ 2976_ACEOF 2977cat confdefs.h >>conftest.$ac_ext 2978cat >>conftest.$ac_ext <<_ACEOF 2979/* end confdefs.h. */ 2980#ifdef __STDC__ 2981# include <limits.h> 2982#else 2983# include <assert.h> 2984#endif 2985 Syntax error 2986_ACEOF 2987if { (ac_try="$ac_cpp conftest.$ac_ext" 2988case "(($ac_try" in 2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2990 *) ac_try_echo=$ac_try;; 2991esac 2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2994 ac_status=$? 2995 grep -v '^ *+' conftest.er1 >conftest.err 2996 rm -f conftest.er1 2997 cat conftest.err >&5 2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2999 (exit $ac_status); } >/dev/null && { 3000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3001 test ! -s conftest.err 3002 }; then 3003 : 3004else 3005 echo "$as_me: failed program was:" >&5 3006sed 's/^/| /' conftest.$ac_ext >&5 3007 3008 # Broken: fails on valid input. 3009continue 3010fi 3011 3012rm -f conftest.err conftest.$ac_ext 3013 3014 # OK, works on sane cases. Now check whether nonexistent headers 3015 # can be detected and how. 3016 cat >conftest.$ac_ext <<_ACEOF 3017/* confdefs.h. */ 3018_ACEOF 3019cat confdefs.h >>conftest.$ac_ext 3020cat >>conftest.$ac_ext <<_ACEOF 3021/* end confdefs.h. */ 3022#include <ac_nonexistent.h> 3023_ACEOF 3024if { (ac_try="$ac_cpp conftest.$ac_ext" 3025case "(($ac_try" in 3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3027 *) ac_try_echo=$ac_try;; 3028esac 3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3031 ac_status=$? 3032 grep -v '^ *+' conftest.er1 >conftest.err 3033 rm -f conftest.er1 3034 cat conftest.err >&5 3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3036 (exit $ac_status); } >/dev/null && { 3037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3038 test ! -s conftest.err 3039 }; then 3040 # Broken: success on invalid input. 3041continue 3042else 3043 echo "$as_me: failed program was:" >&5 3044sed 's/^/| /' conftest.$ac_ext >&5 3045 3046 # Passes both tests. 3047ac_preproc_ok=: 3048break 3049fi 3050 3051rm -f conftest.err conftest.$ac_ext 3052 3053done 3054# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3055rm -f conftest.err conftest.$ac_ext 3056if $ac_preproc_ok; then 3057 break 3058fi 3059 3060 done 3061 ac_cv_prog_CPP=$CPP 3062 3063fi 3064 CPP=$ac_cv_prog_CPP 3065else 3066 ac_cv_prog_CPP=$CPP 3067fi 3068{ echo "$as_me:$LINENO: result: $CPP" >&5 3069echo "${ECHO_T}$CPP" >&6; } 3070ac_preproc_ok=false 3071for ac_c_preproc_warn_flag in '' yes 3072do 3073 # Use a header file that comes with gcc, so configuring glibc 3074 # with a fresh cross-compiler works. 3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3076 # <limits.h> exists even on freestanding compilers. 3077 # On the NeXT, cc -E runs the code through the compiler's parser, 3078 # not just through cpp. "Syntax error" is here to catch this case. 3079 cat >conftest.$ac_ext <<_ACEOF 3080/* confdefs.h. */ 3081_ACEOF 3082cat confdefs.h >>conftest.$ac_ext 3083cat >>conftest.$ac_ext <<_ACEOF 3084/* end confdefs.h. */ 3085#ifdef __STDC__ 3086# include <limits.h> 3087#else 3088# include <assert.h> 3089#endif 3090 Syntax error 3091_ACEOF 3092if { (ac_try="$ac_cpp conftest.$ac_ext" 3093case "(($ac_try" in 3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3095 *) ac_try_echo=$ac_try;; 3096esac 3097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3099 ac_status=$? 3100 grep -v '^ *+' conftest.er1 >conftest.err 3101 rm -f conftest.er1 3102 cat conftest.err >&5 3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3104 (exit $ac_status); } >/dev/null && { 3105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3106 test ! -s conftest.err 3107 }; then 3108 : 3109else 3110 echo "$as_me: failed program was:" >&5 3111sed 's/^/| /' conftest.$ac_ext >&5 3112 3113 # Broken: fails on valid input. 3114continue 3115fi 3116 3117rm -f conftest.err conftest.$ac_ext 3118 3119 # OK, works on sane cases. Now check whether nonexistent headers 3120 # can be detected and how. 3121 cat >conftest.$ac_ext <<_ACEOF 3122/* confdefs.h. */ 3123_ACEOF 3124cat confdefs.h >>conftest.$ac_ext 3125cat >>conftest.$ac_ext <<_ACEOF 3126/* end confdefs.h. */ 3127#include <ac_nonexistent.h> 3128_ACEOF 3129if { (ac_try="$ac_cpp conftest.$ac_ext" 3130case "(($ac_try" in 3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3132 *) ac_try_echo=$ac_try;; 3133esac 3134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3136 ac_status=$? 3137 grep -v '^ *+' conftest.er1 >conftest.err 3138 rm -f conftest.er1 3139 cat conftest.err >&5 3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3141 (exit $ac_status); } >/dev/null && { 3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3143 test ! -s conftest.err 3144 }; then 3145 # Broken: success on invalid input. 3146continue 3147else 3148 echo "$as_me: failed program was:" >&5 3149sed 's/^/| /' conftest.$ac_ext >&5 3150 3151 # Passes both tests. 3152ac_preproc_ok=: 3153break 3154fi 3155 3156rm -f conftest.err conftest.$ac_ext 3157 3158done 3159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3160rm -f conftest.err conftest.$ac_ext 3161if $ac_preproc_ok; then 3162 : 3163else 3164 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3165See \`config.log' for more details." >&5 3166echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3167See \`config.log' for more details." >&2;} 3168 { (exit 1); exit 1; }; } 3169fi 3170 3171ac_ext=c 3172ac_cpp='$CPP $CPPFLAGS' 3173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3175ac_compiler_gnu=$ac_cv_c_compiler_gnu 3176 3177 3178# Check whether --with-linker was given. 3179if test "${with_linker+set}" = set; then 3180 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 3181echo "${ECHO_T}LD=$withval" >&6; } 3182LD=$withval 3183else 3184 if test -z "$LD" ; then LD=$CC; fi 3185{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 3186echo "${ECHO_T}LD defaults to $LD" >&6; } 3187fi 3188export LD 3189 3190 3191# Check whether --with-ccopts was given. 3192if test "${with_ccopts+set}" = set; then 3193 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 3194echo "${ECHO_T}CCOPTS is $withval" >&6; } 3195CFLAGS=$withval 3196fi 3197 3198 3199{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3200echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3201if test "${ac_cv_path_GREP+set}" = set; then 3202 echo $ECHO_N "(cached) $ECHO_C" >&6 3203else 3204 # Extract the first word of "grep ggrep" to use in msg output 3205if test -z "$GREP"; then 3206set dummy grep ggrep; ac_prog_name=$2 3207if test "${ac_cv_path_GREP+set}" = set; then 3208 echo $ECHO_N "(cached) $ECHO_C" >&6 3209else 3210 ac_path_GREP_found=false 3211# Loop through the user's path and test for each of PROGNAME-LIST 3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3214do 3215 IFS=$as_save_IFS 3216 test -z "$as_dir" && as_dir=. 3217 for ac_prog in grep ggrep; do 3218 for ac_exec_ext in '' $ac_executable_extensions; do 3219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3221 # Check for GNU ac_path_GREP and select it if it is found. 3222 # Check for GNU $ac_path_GREP 3223case `"$ac_path_GREP" --version 2>&1` in 3224*GNU*) 3225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3226*) 3227 ac_count=0 3228 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3229 while : 3230 do 3231 cat "conftest.in" "conftest.in" >"conftest.tmp" 3232 mv "conftest.tmp" "conftest.in" 3233 cp "conftest.in" "conftest.nl" 3234 echo 'GREP' >> "conftest.nl" 3235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3237 ac_count=`expr $ac_count + 1` 3238 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3239 # Best one so far, save it but keep looking for a better one 3240 ac_cv_path_GREP="$ac_path_GREP" 3241 ac_path_GREP_max=$ac_count 3242 fi 3243 # 10*(2^10) chars as input seems more than enough 3244 test $ac_count -gt 10 && break 3245 done 3246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3247esac 3248 3249 3250 $ac_path_GREP_found && break 3 3251 done 3252done 3253 3254done 3255IFS=$as_save_IFS 3256 3257 3258fi 3259 3260GREP="$ac_cv_path_GREP" 3261if test -z "$GREP"; then 3262 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3263echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3264 { (exit 1); exit 1; }; } 3265fi 3266 3267else 3268 ac_cv_path_GREP=$GREP 3269fi 3270 3271 3272fi 3273{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3274echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3275 GREP="$ac_cv_path_GREP" 3276 3277 3278{ echo "$as_me:$LINENO: checking for egrep" >&5 3279echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3280if test "${ac_cv_path_EGREP+set}" = set; then 3281 echo $ECHO_N "(cached) $ECHO_C" >&6 3282else 3283 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3284 then ac_cv_path_EGREP="$GREP -E" 3285 else 3286 # Extract the first word of "egrep" to use in msg output 3287if test -z "$EGREP"; then 3288set dummy egrep; ac_prog_name=$2 3289if test "${ac_cv_path_EGREP+set}" = set; then 3290 echo $ECHO_N "(cached) $ECHO_C" >&6 3291else 3292 ac_path_EGREP_found=false 3293# Loop through the user's path and test for each of PROGNAME-LIST 3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3296do 3297 IFS=$as_save_IFS 3298 test -z "$as_dir" && as_dir=. 3299 for ac_prog in egrep; do 3300 for ac_exec_ext in '' $ac_executable_extensions; do 3301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3303 # Check for GNU ac_path_EGREP and select it if it is found. 3304 # Check for GNU $ac_path_EGREP 3305case `"$ac_path_EGREP" --version 2>&1` in 3306*GNU*) 3307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3308*) 3309 ac_count=0 3310 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3311 while : 3312 do 3313 cat "conftest.in" "conftest.in" >"conftest.tmp" 3314 mv "conftest.tmp" "conftest.in" 3315 cp "conftest.in" "conftest.nl" 3316 echo 'EGREP' >> "conftest.nl" 3317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3319 ac_count=`expr $ac_count + 1` 3320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3321 # Best one so far, save it but keep looking for a better one 3322 ac_cv_path_EGREP="$ac_path_EGREP" 3323 ac_path_EGREP_max=$ac_count 3324 fi 3325 # 10*(2^10) chars as input seems more than enough 3326 test $ac_count -gt 10 && break 3327 done 3328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3329esac 3330 3331 3332 $ac_path_EGREP_found && break 3 3333 done 3334done 3335 3336done 3337IFS=$as_save_IFS 3338 3339 3340fi 3341 3342EGREP="$ac_cv_path_EGREP" 3343if test -z "$EGREP"; then 3344 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3345echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3346 { (exit 1); exit 1; }; } 3347fi 3348 3349else 3350 ac_cv_path_EGREP=$EGREP 3351fi 3352 3353 3354 fi 3355fi 3356{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3357echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3358 EGREP="$ac_cv_path_EGREP" 3359 3360 3361{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3362echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3363if test "${ac_cv_header_stdc+set}" = set; then 3364 echo $ECHO_N "(cached) $ECHO_C" >&6 3365else 3366 cat >conftest.$ac_ext <<_ACEOF 3367/* confdefs.h. */ 3368_ACEOF 3369cat confdefs.h >>conftest.$ac_ext 3370cat >>conftest.$ac_ext <<_ACEOF 3371/* end confdefs.h. */ 3372#include <stdlib.h> 3373#include <stdarg.h> 3374#include <string.h> 3375#include <float.h> 3376 3377int 3378main () 3379{ 3380 3381 ; 3382 return 0; 3383} 3384_ACEOF 3385rm -f conftest.$ac_objext 3386if { (ac_try="$ac_compile" 3387case "(($ac_try" in 3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3389 *) ac_try_echo=$ac_try;; 3390esac 3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3392 (eval "$ac_compile") 2>conftest.er1 3393 ac_status=$? 3394 grep -v '^ *+' conftest.er1 >conftest.err 3395 rm -f conftest.er1 3396 cat conftest.err >&5 3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3398 (exit $ac_status); } && { 3399 test -z "$ac_c_werror_flag" || 3400 test ! -s conftest.err 3401 } && test -s conftest.$ac_objext; then 3402 ac_cv_header_stdc=yes 3403else 3404 echo "$as_me: failed program was:" >&5 3405sed 's/^/| /' conftest.$ac_ext >&5 3406 3407 ac_cv_header_stdc=no 3408fi 3409 3410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3411 3412if test $ac_cv_header_stdc = yes; then 3413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3414 cat >conftest.$ac_ext <<_ACEOF 3415/* confdefs.h. */ 3416_ACEOF 3417cat confdefs.h >>conftest.$ac_ext 3418cat >>conftest.$ac_ext <<_ACEOF 3419/* end confdefs.h. */ 3420#include <string.h> 3421 3422_ACEOF 3423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3424 $EGREP "memchr" >/dev/null 2>&1; then 3425 : 3426else 3427 ac_cv_header_stdc=no 3428fi 3429rm -f conftest* 3430 3431fi 3432 3433if test $ac_cv_header_stdc = yes; then 3434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3435 cat >conftest.$ac_ext <<_ACEOF 3436/* confdefs.h. */ 3437_ACEOF 3438cat confdefs.h >>conftest.$ac_ext 3439cat >>conftest.$ac_ext <<_ACEOF 3440/* end confdefs.h. */ 3441#include <stdlib.h> 3442 3443_ACEOF 3444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3445 $EGREP "free" >/dev/null 2>&1; then 3446 : 3447else 3448 ac_cv_header_stdc=no 3449fi 3450rm -f conftest* 3451 3452fi 3453 3454if test $ac_cv_header_stdc = yes; then 3455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3456 if test "$cross_compiling" = yes; then 3457 : 3458else 3459 cat >conftest.$ac_ext <<_ACEOF 3460/* confdefs.h. */ 3461_ACEOF 3462cat confdefs.h >>conftest.$ac_ext 3463cat >>conftest.$ac_ext <<_ACEOF 3464/* end confdefs.h. */ 3465#include <ctype.h> 3466#include <stdlib.h> 3467#if ((' ' & 0x0FF) == 0x020) 3468# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3469# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3470#else 3471# define ISLOWER(c) \ 3472 (('a' <= (c) && (c) <= 'i') \ 3473 || ('j' <= (c) && (c) <= 'r') \ 3474 || ('s' <= (c) && (c) <= 'z')) 3475# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3476#endif 3477 3478#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3479int 3480main () 3481{ 3482 int i; 3483 for (i = 0; i < 256; i++) 3484 if (XOR (islower (i), ISLOWER (i)) 3485 || toupper (i) != TOUPPER (i)) 3486 return 2; 3487 return 0; 3488} 3489_ACEOF 3490rm -f conftest$ac_exeext 3491if { (ac_try="$ac_link" 3492case "(($ac_try" in 3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3494 *) ac_try_echo=$ac_try;; 3495esac 3496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3497 (eval "$ac_link") 2>&5 3498 ac_status=$? 3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3501 { (case "(($ac_try" in 3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3503 *) ac_try_echo=$ac_try;; 3504esac 3505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3506 (eval "$ac_try") 2>&5 3507 ac_status=$? 3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3509 (exit $ac_status); }; }; then 3510 : 3511else 3512 echo "$as_me: program exited with status $ac_status" >&5 3513echo "$as_me: failed program was:" >&5 3514sed 's/^/| /' conftest.$ac_ext >&5 3515 3516( exit $ac_status ) 3517ac_cv_header_stdc=no 3518fi 3519rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3520fi 3521 3522 3523fi 3524fi 3525{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3526echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3527if test $ac_cv_header_stdc = yes; then 3528 3529cat >>confdefs.h <<\_ACEOF 3530#define STDC_HEADERS 1 3531_ACEOF 3532 3533fi 3534 3535# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3546 inttypes.h stdint.h unistd.h 3547do 3548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3549{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3552 echo $ECHO_N "(cached) $ECHO_C" >&6 3553else 3554 cat >conftest.$ac_ext <<_ACEOF 3555/* confdefs.h. */ 3556_ACEOF 3557cat confdefs.h >>conftest.$ac_ext 3558cat >>conftest.$ac_ext <<_ACEOF 3559/* end confdefs.h. */ 3560$ac_includes_default 3561 3562#include <$ac_header> 3563_ACEOF 3564rm -f conftest.$ac_objext 3565if { (ac_try="$ac_compile" 3566case "(($ac_try" in 3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3568 *) ac_try_echo=$ac_try;; 3569esac 3570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3571 (eval "$ac_compile") 2>conftest.er1 3572 ac_status=$? 3573 grep -v '^ *+' conftest.er1 >conftest.err 3574 rm -f conftest.er1 3575 cat conftest.err >&5 3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3577 (exit $ac_status); } && { 3578 test -z "$ac_c_werror_flag" || 3579 test ! -s conftest.err 3580 } && test -s conftest.$ac_objext; then 3581 eval "$as_ac_Header=yes" 3582else 3583 echo "$as_me: failed program was:" >&5 3584sed 's/^/| /' conftest.$ac_ext >&5 3585 3586 eval "$as_ac_Header=no" 3587fi 3588 3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3590fi 3591ac_res=`eval echo '${'$as_ac_Header'}'` 3592 { echo "$as_me:$LINENO: result: $ac_res" >&5 3593echo "${ECHO_T}$ac_res" >&6; } 3594if test `eval echo '${'$as_ac_Header'}'` = yes; then 3595 cat >>confdefs.h <<_ACEOF 3596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3597_ACEOF 3598 3599fi 3600 3601done 3602 3603 3604if test "${ac_cv_header_linux_fs_h+set}" = set; then 3605 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 3606echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } 3607if test "${ac_cv_header_linux_fs_h+set}" = set; then 3608 echo $ECHO_N "(cached) $ECHO_C" >&6 3609fi 3610{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 3611echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } 3612else 3613 # Is the header compilable? 3614{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 3615echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } 3616cat >conftest.$ac_ext <<_ACEOF 3617/* confdefs.h. */ 3618_ACEOF 3619cat confdefs.h >>conftest.$ac_ext 3620cat >>conftest.$ac_ext <<_ACEOF 3621/* end confdefs.h. */ 3622$ac_includes_default 3623#include <linux/fs.h> 3624_ACEOF 3625rm -f conftest.$ac_objext 3626if { (ac_try="$ac_compile" 3627case "(($ac_try" in 3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3629 *) ac_try_echo=$ac_try;; 3630esac 3631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3632 (eval "$ac_compile") 2>conftest.er1 3633 ac_status=$? 3634 grep -v '^ *+' conftest.er1 >conftest.err 3635 rm -f conftest.er1 3636 cat conftest.err >&5 3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3638 (exit $ac_status); } && { 3639 test -z "$ac_c_werror_flag" || 3640 test ! -s conftest.err 3641 } && test -s conftest.$ac_objext; then 3642 ac_header_compiler=yes 3643else 3644 echo "$as_me: failed program was:" >&5 3645sed 's/^/| /' conftest.$ac_ext >&5 3646 3647 ac_header_compiler=no 3648fi 3649 3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3651{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3652echo "${ECHO_T}$ac_header_compiler" >&6; } 3653 3654# Is the header present? 3655{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 3656echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } 3657cat >conftest.$ac_ext <<_ACEOF 3658/* confdefs.h. */ 3659_ACEOF 3660cat confdefs.h >>conftest.$ac_ext 3661cat >>conftest.$ac_ext <<_ACEOF 3662/* end confdefs.h. */ 3663#include <linux/fs.h> 3664_ACEOF 3665if { (ac_try="$ac_cpp conftest.$ac_ext" 3666case "(($ac_try" in 3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3668 *) ac_try_echo=$ac_try;; 3669esac 3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3672 ac_status=$? 3673 grep -v '^ *+' conftest.er1 >conftest.err 3674 rm -f conftest.er1 3675 cat conftest.err >&5 3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3677 (exit $ac_status); } >/dev/null && { 3678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3679 test ! -s conftest.err 3680 }; then 3681 ac_header_preproc=yes 3682else 3683 echo "$as_me: failed program was:" >&5 3684sed 's/^/| /' conftest.$ac_ext >&5 3685 3686 ac_header_preproc=no 3687fi 3688 3689rm -f conftest.err conftest.$ac_ext 3690{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3691echo "${ECHO_T}$ac_header_preproc" >&6; } 3692 3693# So? What about this header? 3694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3695 yes:no: ) 3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 3697echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 3699echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} 3700 ac_header_preproc=yes 3701 ;; 3702 no:yes:* ) 3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 3704echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} 3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 3706echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} 3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 3708echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} 3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 3710echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} 3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 3712echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} 3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 3714echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} 3715 3716 ;; 3717esac 3718{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5 3719echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } 3720if test "${ac_cv_header_linux_fs_h+set}" = set; then 3721 echo $ECHO_N "(cached) $ECHO_C" >&6 3722else 3723 ac_cv_header_linux_fs_h=$ac_header_preproc 3724fi 3725{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 3726echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } 3727 3728fi 3729if test $ac_cv_header_linux_fs_h = yes; then 3730 linux_headers=yes 3731else 3732 linux_headers=no 3733fi 3734 3735 3736if test "$linux_headers" != yes; then 3737 LINUX_INCLUDE='-I$(top_builddir)/include' 3738fi 3739 3740{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 3741echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } 3742if test "$GCC" = yes 3743then 3744 case "$host_cpu" in 3745 alpha) addcflags="-mieee" ;; 3746 esac 3747fi 3748if test "x$addcflags" != x 3749then 3750 { echo "$as_me:$LINENO: result: $addcflags" >&5 3751echo "${ECHO_T}$addcflags" >&6; } 3752 CFLAGS="$addcflags $CFLAGS" 3753else 3754 { echo "$as_me:$LINENO: result: (none)" >&5 3755echo "${ECHO_T}(none)" >&6; } 3756fi 3757LIB_EXT=.a 3758STATIC_LIB_EXT=.a 3759PROFILE_LIB_EXT=.a 3760 3761# Check whether --with-ldopts was given. 3762if test "${with_ldopts+set}" = set; then 3763 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 3764echo "${ECHO_T}LDFLAGS is $withval" >&6; } 3765LDFLAGS=$withval 3766else 3767 LDFLAGS= 3768fi 3769 3770 3771# Check whether --with-root-prefix was given. 3772if test "${with_root_prefix+set}" = set; then 3773 withval=$with_root_prefix; root_prefix=$withval 3774else 3775 root_prefix=NONE 3776fi 3777# Check whether --enable-maintainer-mode was given. 3778if test "${enable_maintainer_mode+set}" = set; then 3779 enableval=$enable_maintainer_mode; if test "$enableval" = "no" 3780then 3781 MAINTAINER_CMT=# 3782 echo "Disabling maintainer mode" 3783else 3784 MAINTAINER_CMT= 3785 echo "Enabling maintainer mode" 3786fi 3787 3788else 3789 MAINTAINER_CMT=# 3790echo "Disabling maintainer mode by default" 3791 3792fi 3793 3794 3795# Check whether --enable-compression was given. 3796if test "${enable_compression+set}" = set; then 3797 enableval=$enable_compression; if test "$enableval" = "no" 3798then 3799 echo "Disabling compression support" 3800else 3801 cat >>confdefs.h <<\_ACEOF 3802#define ENABLE_COMPRESSION 1 3803_ACEOF 3804 3805 echo "Enabling compression support" 3806 echo "WARNING: Compression support is experimental" 3807fi 3808 3809else 3810 echo "Disabling compression support by default" 3811 3812fi 3813 3814# Check whether --enable-htree was given. 3815if test "${enable_htree+set}" = set; then 3816 enableval=$enable_htree; if test "$enableval" = "no" 3817then 3818 HTREE_CMT=# 3819 echo "Disabling htree directory support" 3820else 3821 HTREE_CMT= 3822 cat >>confdefs.h <<\_ACEOF 3823#define ENABLE_HTREE 1 3824_ACEOF 3825 3826 echo "Enabling htree directory support" 3827fi 3828 3829else 3830 HTREE_CMT= 3831cat >>confdefs.h <<\_ACEOF 3832#define ENABLE_HTREE 1 3833_ACEOF 3834 3835echo "Enabling htree directory support by default" 3836 3837fi 3838 3839 3840E2_PKG_CONFIG_STATIC=--static 3841# Check whether --enable-elf-shlibs was given. 3842if test "${enable_elf_shlibs+set}" = set; then 3843 enableval=$enable_elf_shlibs; if test "$enableval" = "no" 3844then 3845 ELF_CMT=# 3846 MAKEFILE_ELF=/dev/null 3847 echo "Disabling ELF shared libraries" 3848else 3849 E2_PKG_CONFIG_STATIC= 3850 ELF_CMT= 3851 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib 3852 case "$host_os" in 3853 solaris2.*) 3854 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib 3855 ;; 3856 esac 3857 BINARY_TYPE=elfbin 3858 LIB_EXT=.so 3859 echo "Enabling ELF shared libraries" 3860fi 3861 3862else 3863 MAKEFILE_ELF=/dev/null 3864ELF_CMT=# 3865echo "Disabling ELF shared libraries by default" 3866 3867fi 3868 3869 3870 3871# Check whether --enable-bsd-shlibs was given. 3872if test "${enable_bsd_shlibs+set}" = set; then 3873 enableval=$enable_bsd_shlibs; if test "$enableval" = "no" 3874then 3875 BSDLIB_CMT=# 3876 MAKEFILE_BSDLIB=/dev/null 3877 echo "Disabling BSD shared libraries" 3878else 3879 E2_PKG_CONFIG_STATIC= 3880 BSDLIB_CMT= 3881 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib 3882 LIB_EXT=.so 3883 case "$host_os" in 3884 darwin*) 3885 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib 3886 LIB_EXT=.dylib 3887 ;; 3888 esac 3889 echo "Enabling BSD shared libraries" 3890fi 3891 3892else 3893 MAKEFILE_BSDLIB=/dev/null 3894BSDLIB_CMT=# 3895echo "Disabling BSD shared libraries by default" 3896 3897fi 3898 3899 3900 3901# Check whether --enable-profile was given. 3902if test "${enable_profile+set}" = set; then 3903 enableval=$enable_profile; if test "$enableval" = "no" 3904then 3905 PROFILE_CMT=# 3906 MAKEFILE_PROFILE=/dev/null 3907 echo "Disabling profiling libraries" 3908else 3909 PROFILE_CMT= 3910 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile 3911 PROFILED_LIB_EXT=_p.a 3912 echo "Building profiling libraries" 3913fi 3914 3915else 3916 PROFILE_CMT=# 3917MAKEFILE_PROFILE=/dev/null 3918echo "Disabling profiling libraries by default" 3919 3920fi 3921 3922 3923 3924# Check whether --enable-checker was given. 3925if test "${enable_checker+set}" = set; then 3926 enableval=$enable_checker; if test "$enableval" = "no" 3927then 3928 CHECKER_CMT=# 3929 MAKEFILE_CHECKER=/dev/null 3930 echo "Disabling checker libraries" 3931else 3932 CHECKER_CMT= 3933 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker 3934 echo "Building checker libraries" 3935fi 3936 3937else 3938 CHECKER_CMT=# 3939MAKEFILE_CHECKER=/dev/null 3940echo "Disabling checker libraries by default" 3941 3942fi 3943 3944 3945 3946 3947 3948 3949# Check whether --enable-jbd-debug was given. 3950if test "${enable_jbd_debug+set}" = set; then 3951 enableval=$enable_jbd_debug; if test "$enableval" = "no" 3952then 3953 echo "Disabling journal debugging" 3954else 3955 cat >>confdefs.h <<\_ACEOF 3956#define CONFIG_JBD_DEBUG 1 3957_ACEOF 3958 3959 echo "Enabling journal debugging" 3960fi 3961 3962else 3963 echo "Disabling journal debugging by default" 3964 3965fi 3966 3967# Check whether --enable-blkid-debug was given. 3968if test "${enable_blkid_debug+set}" = set; then 3969 enableval=$enable_blkid_debug; if test "$enableval" = "no" 3970then 3971 echo "Disabling blkid debugging" 3972else 3973 cat >>confdefs.h <<\_ACEOF 3974#define CONFIG_BLKID_DEBUG 1 3975_ACEOF 3976 3977 echo "Enabling blkid debugging" 3978fi 3979 3980else 3981 echo "Disabling blkid debugging by default" 3982 3983fi 3984 3985# Check whether --enable-testio-debug was given. 3986if test "${enable_testio_debug+set}" = set; then 3987 enableval=$enable_testio_debug; if test "$enableval" = "no" 3988then 3989 echo "Disabling testio debugging" 3990else 3991 cat >>confdefs.h <<\_ACEOF 3992#define CONFIG_TESTIO_DEBUG 1 3993_ACEOF 3994 3995 echo "Enabling testio debugging" 3996fi 3997 3998else 3999 echo "Disabling testio debugging by default" 4000 4001fi 4002 4003# Check whether --enable-debugfs was given. 4004if test "${enable_debugfs+set}" = set; then 4005 enableval=$enable_debugfs; if test "$enableval" = "no" 4006then 4007 echo "Disabling debugfs support" 4008 DEBUGFS_CMT="#" 4009else 4010 DEBUGFS_CMT= 4011 echo "Enabling debugfs support" 4012fi 4013 4014else 4015 echo "Enabling debugfs support by default" 4016DEBUGFS_CMT= 4017 4018fi 4019 4020 4021# Check whether --enable-imager was given. 4022if test "${enable_imager+set}" = set; then 4023 enableval=$enable_imager; if test "$enableval" = "no" 4024then 4025 echo "Disabling e2image support" 4026 IMAGER_CMT="#" 4027else 4028 IMAGER_CMT= 4029 echo "Enabling e2image support" 4030fi 4031 4032else 4033 echo "Enabling e2image support by default" 4034IMAGER_CMT= 4035 4036fi 4037 4038 4039# Check whether --enable-resizer was given. 4040if test "${enable_resizer+set}" = set; then 4041 enableval=$enable_resizer; if test "$enableval" = "no" 4042then 4043 echo "Disabling e2resize support" 4044 RESIZER_CMT="#" 4045else 4046 RESIZER_CMT= 4047 echo "Enabling e2resize support" 4048fi 4049 4050else 4051 echo "Enabling e2resize support by default" 4052RESIZER_CMT= 4053 4054fi 4055 4056 4057# Check whether --enable-fsck was given. 4058if test "${enable_fsck+set}" = set; then 4059 enableval=$enable_fsck; if test "$enableval" = "no" 4060then 4061 FSCK_PROG='' FSCK_MAN='' 4062 echo "Not building fsck wrapper" 4063else 4064 FSCK_PROG=fsck FSCK_MAN=fsck.8 4065 echo "Building fsck wrapper" 4066fi 4067 4068else 4069 case "$host_os" in 4070 gnu*) 4071 FSCK_PROG='' FSCK_MAN='' 4072 echo "Not building fsck wrapper by default" 4073 ;; 4074 *) 4075 FSCK_PROG=fsck FSCK_MAN=fsck.8 4076 echo "Building fsck wrapper by default" 4077esac 4078 4079fi 4080 4081 4082 4083# Check whether --enable-e2initrd-helper was given. 4084if test "${enable_e2initrd_helper+set}" = set; then 4085 enableval=$enable_e2initrd_helper; if test "$enableval" = "no" 4086then 4087 E2INITRD_PROG='' E2INITRD_MAN='' 4088 echo "Not building e2initrd helper" 4089else 4090 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 4091 echo "Building e2initrd helper" 4092fi 4093 4094else 4095 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 4096echo "Building e2initrd helper by default" 4097 4098fi 4099 4100 4101 4102STATIC_BLKID_DEVMAPPER_LIBS='' 4103# Check whether --enable-blkid-devmapper was given. 4104if test "${enable_blkid_devmapper+set}" = set; then 4105 enableval=$enable_blkid_devmapper; if test "$enableval" = "no" 4106then 4107 echo "Disabling device-mapper support" 4108 DEVMAPPER_REQ='' 4109 DEVMAPPER_LIBS='' 4110 STATIC_DEVMAPPER_LIBS='' 4111else 4112 cat >>confdefs.h <<\_ACEOF 4113#define HAVE_DEVMAPPER 1 4114_ACEOF 4115 4116 echo "Enabling device-mapper support" 4117 4118 4119 4120if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4121 if test -n "$ac_tool_prefix"; then 4122 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4123set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4124{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4126if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4127 echo $ECHO_N "(cached) $ECHO_C" >&6 4128else 4129 case $PKG_CONFIG in 4130 [\\/]* | ?:[\\/]*) 4131 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4132 ;; 4133 *) 4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4135for as_dir in $PATH 4136do 4137 IFS=$as_save_IFS 4138 test -z "$as_dir" && as_dir=. 4139 for ac_exec_ext in '' $ac_executable_extensions; do 4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4141 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4143 break 2 4144 fi 4145done 4146done 4147IFS=$as_save_IFS 4148 4149 ;; 4150esac 4151fi 4152PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4153if test -n "$PKG_CONFIG"; then 4154 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4155echo "${ECHO_T}$PKG_CONFIG" >&6; } 4156else 4157 { echo "$as_me:$LINENO: result: no" >&5 4158echo "${ECHO_T}no" >&6; } 4159fi 4160 4161 4162fi 4163if test -z "$ac_cv_path_PKG_CONFIG"; then 4164 ac_pt_PKG_CONFIG=$PKG_CONFIG 4165 # Extract the first word of "pkg-config", so it can be a program name with args. 4166set dummy pkg-config; ac_word=$2 4167{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4169if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 4170 echo $ECHO_N "(cached) $ECHO_C" >&6 4171else 4172 case $ac_pt_PKG_CONFIG in 4173 [\\/]* | ?:[\\/]*) 4174 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4175 ;; 4176 *) 4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4178for as_dir in $PATH 4179do 4180 IFS=$as_save_IFS 4181 test -z "$as_dir" && as_dir=. 4182 for ac_exec_ext in '' $ac_executable_extensions; do 4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4184 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4186 break 2 4187 fi 4188done 4189done 4190IFS=$as_save_IFS 4191 4192 ;; 4193esac 4194fi 4195ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4196if test -n "$ac_pt_PKG_CONFIG"; then 4197 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 4198echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 4199else 4200 { echo "$as_me:$LINENO: result: no" >&5 4201echo "${ECHO_T}no" >&6; } 4202fi 4203 4204 if test "x$ac_pt_PKG_CONFIG" = x; then 4205 PKG_CONFIG="" 4206 else 4207 case $cross_compiling:$ac_tool_warned in 4208yes:) 4209{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4210whose name does not start with the host triplet. If you think this 4211configuration is useful to you, please write to autoconf@gnu.org." >&5 4212echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4213whose name does not start with the host triplet. If you think this 4214configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4215ac_tool_warned=yes ;; 4216esac 4217 PKG_CONFIG=$ac_pt_PKG_CONFIG 4218 fi 4219else 4220 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4221fi 4222 4223fi 4224if test -n "$PKG_CONFIG"; then 4225 _pkg_min_version=0.9.0 4226 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 4227echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 4228 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4229 { echo "$as_me:$LINENO: result: yes" >&5 4230echo "${ECHO_T}yes" >&6; } 4231 else 4232 { echo "$as_me:$LINENO: result: no" >&5 4233echo "${ECHO_T}no" >&6; } 4234 PKG_CONFIG="" 4235 fi 4236 4237fi 4238 4239 if test -z "$PKG_CONFIG"; then 4240 echo "pkg-config not installed; please install it." 4241 exit 1; 4242 fi 4243 4244 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5 4245echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; } 4246if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then 4247 echo $ECHO_N "(cached) $ECHO_C" >&6 4248else 4249 ac_check_lib_save_LIBS=$LIBS 4250LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS" 4251cat >conftest.$ac_ext <<_ACEOF 4252/* confdefs.h. */ 4253_ACEOF 4254cat confdefs.h >>conftest.$ac_ext 4255cat >>conftest.$ac_ext <<_ACEOF 4256/* end confdefs.h. */ 4257 4258/* Override any GCC internal prototype to avoid an error. 4259 Use char because int might match the return type of a GCC 4260 builtin and then its argument prototype would still apply. */ 4261#ifdef __cplusplus 4262extern "C" 4263#endif 4264char dm_tree_create (); 4265int 4266main () 4267{ 4268return dm_tree_create (); 4269 ; 4270 return 0; 4271} 4272_ACEOF 4273rm -f conftest.$ac_objext conftest$ac_exeext 4274if { (ac_try="$ac_link" 4275case "(($ac_try" in 4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4277 *) ac_try_echo=$ac_try;; 4278esac 4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4280 (eval "$ac_link") 2>conftest.er1 4281 ac_status=$? 4282 grep -v '^ *+' conftest.er1 >conftest.err 4283 rm -f conftest.er1 4284 cat conftest.err >&5 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); } && { 4287 test -z "$ac_c_werror_flag" || 4288 test ! -s conftest.err 4289 } && test -s conftest$ac_exeext && 4290 $as_test_x conftest$ac_exeext; then 4291 ac_cv_lib_devmapper_dm_tree_create=yes 4292else 4293 echo "$as_me: failed program was:" >&5 4294sed 's/^/| /' conftest.$ac_ext >&5 4295 4296 ac_cv_lib_devmapper_dm_tree_create=no 4297fi 4298 4299rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4300 conftest$ac_exeext conftest.$ac_ext 4301LIBS=$ac_check_lib_save_LIBS 4302fi 4303{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5 4304echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; } 4305if test $ac_cv_lib_devmapper_dm_tree_create = yes; then 4306 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`; 4307 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`; 4308 DEVMAPPER_REQ="devmapper"; 4309 DEVMAPPER_PC_LIBS="-ldevmapper" 4310else 4311 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5 4312echo "$as_me: error: device-mapper library not found" >&2;} 4313 { (exit 1); exit 1; }; } 4314fi 4315 4316 # work around stupid devmapper.pc bug in Debian 4317 case "$STATIC_DEVMAPPER_LIBS" in 4318 *pthread*) 4319 ;; 4320 *) 4321 echo "Working around Debian bug #390243..." 4322 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS" 4323 ;; 4324 esac 4325 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then 4326 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS" 4327 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS" 4328 fi 4329fi 4330 4331else 4332 echo "Disabling device-mapper support by default" 4333 4334fi 4335 4336 4337 4338 4339 4340 4341# Check whether --enable-tls was given. 4342if test "${enable_tls+set}" = set; then 4343 enableval=$enable_tls; if test "$enableval" = "no" 4344then 4345 try_tls="" 4346 echo "Disabling thread local support" 4347else 4348 try_tls="yes" 4349 echo "Enabling thread local support" 4350fi 4351 4352else 4353 try_tls="yes" 4354echo "Try using thread local support by default" 4355 4356fi 4357 4358if test "$try_tls" = "yes" 4359then 4360 4361 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 4362echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } 4363 if test "${ac_cv_tls+set}" = set; then 4364 echo $ECHO_N "(cached) $ECHO_C" >&6 4365else 4366 4367 ax_tls_keywords="__thread __declspec(thread) none" 4368 for ax_tls_keyword in $ax_tls_keywords; do 4369 case $ax_tls_keyword in 4370 none) ac_cv_tls=none ; break ;; 4371 *) 4372 cat >conftest.$ac_ext <<_ACEOF 4373/* confdefs.h. */ 4374_ACEOF 4375cat confdefs.h >>conftest.$ac_ext 4376cat >>conftest.$ac_ext <<_ACEOF 4377/* end confdefs.h. */ 4378#include <stdlib.h> 4379 static void 4380 foo(void) { 4381 static $ax_tls_keyword int bar; 4382 exit(1); 4383 } 4384int 4385main () 4386{ 4387 4388 ; 4389 return 0; 4390} 4391_ACEOF 4392rm -f conftest.$ac_objext 4393if { (ac_try="$ac_compile" 4394case "(($ac_try" in 4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4396 *) ac_try_echo=$ac_try;; 4397esac 4398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4399 (eval "$ac_compile") 2>conftest.er1 4400 ac_status=$? 4401 grep -v '^ *+' conftest.er1 >conftest.err 4402 rm -f conftest.er1 4403 cat conftest.err >&5 4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4405 (exit $ac_status); } && { 4406 test -z "$ac_c_werror_flag" || 4407 test ! -s conftest.err 4408 } && test -s conftest.$ac_objext; then 4409 ac_cv_tls=$ax_tls_keyword ; break 4410else 4411 echo "$as_me: failed program was:" >&5 4412sed 's/^/| /' conftest.$ac_ext >&5 4413 4414 ac_cv_tls=none 4415 4416fi 4417 4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4419 esac 4420 done 4421 4422fi 4423 4424 4425 if test "$ac_cv_tls" != "none"; then 4426 4427cat >>confdefs.h <<_ACEOF 4428#define TLS $ac_cv_tls 4429_ACEOF 4430 4431 fi 4432 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 4433echo "${ECHO_T}$ac_cv_tls" >&6; } 4434 4435fi 4436# Check whether --enable-uuidd was given. 4437if test "${enable_uuidd+set}" = set; then 4438 enableval=$enable_uuidd; if test "$enableval" = "no" 4439then 4440 echo "Not building uuidd" 4441 UUIDD_CMT="#" 4442else 4443 cat >>confdefs.h <<\_ACEOF 4444#define USE_UUIDD 1 4445_ACEOF 4446 4447 UUIDD_CMT="" 4448 echo "Building uuidd" 4449fi 4450 4451else 4452 cat >>confdefs.h <<\_ACEOF 4453#define USE_UUIDD 1 4454_ACEOF 4455 4456UUIDD_CMT="" 4457echo "Building uuidd by default" 4458 4459fi 4460 4461 4462MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library 4463 4464GETTEXT_PACKAGE=e2fsprogs 4465PACKAGE=e2fsprogs 4466VERSION="$E2FSPROGS_VERSION" 4467VERSION=0.14.1 4468cat >>confdefs.h <<_ACEOF 4469#define PACKAGE "$PACKAGE" 4470_ACEOF 4471 4472cat >>confdefs.h <<_ACEOF 4473#define VERSION "$VERSION" 4474_ACEOF 4475 4476 4477 4478 4479 4480{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4481echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 4482set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4483if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4484 echo $ECHO_N "(cached) $ECHO_C" >&6 4485else 4486 cat >conftest.make <<\_ACEOF 4487SHELL = /bin/sh 4488all: 4489 @echo '@@@%%%=$(MAKE)=@@@%%%' 4490_ACEOF 4491# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4492case `${MAKE-make} -f conftest.make 2>/dev/null` in 4493 *@@@%%%=?*=@@@%%%*) 4494 eval ac_cv_prog_make_${ac_make}_set=yes;; 4495 *) 4496 eval ac_cv_prog_make_${ac_make}_set=no;; 4497esac 4498rm -f conftest.make 4499fi 4500if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4501 { echo "$as_me:$LINENO: result: yes" >&5 4502echo "${ECHO_T}yes" >&6; } 4503 SET_MAKE= 4504else 4505 { echo "$as_me:$LINENO: result: no" >&5 4506echo "${ECHO_T}no" >&6; } 4507 SET_MAKE="MAKE=${MAKE-make}" 4508fi 4509 4510# Find a good install program. We prefer a C program (faster), 4511# so one script is as good as another. But avoid the broken or 4512# incompatible versions: 4513# SysV /etc/install, /usr/sbin/install 4514# SunOS /usr/etc/install 4515# IRIX /sbin/install 4516# AIX /bin/install 4517# AmigaOS /C/install, which installs bootblocks on floppy discs 4518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4519# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4521# OS/2's system install, which has a completely different semantic 4522# ./install, which can be erroneously created by make from ./install.sh. 4523{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4524echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4525if test -z "$INSTALL"; then 4526if test "${ac_cv_path_install+set}" = set; then 4527 echo $ECHO_N "(cached) $ECHO_C" >&6 4528else 4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4530for as_dir in $PATH 4531do 4532 IFS=$as_save_IFS 4533 test -z "$as_dir" && as_dir=. 4534 # Account for people who put trailing slashes in PATH elements. 4535case $as_dir/ in 4536 ./ | .// | /cC/* | \ 4537 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4538 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4539 /usr/ucb/* ) ;; 4540 *) 4541 # OSF1 and SCO ODT 3.0 have their own names for install. 4542 # Don't use installbsd from OSF since it installs stuff as root 4543 # by default. 4544 for ac_prog in ginstall scoinst install; do 4545 for ac_exec_ext in '' $ac_executable_extensions; do 4546 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4547 if test $ac_prog = install && 4548 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4549 # AIX install. It has an incompatible calling convention. 4550 : 4551 elif test $ac_prog = install && 4552 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4553 # program-specific install script used by HP pwplus--don't use. 4554 : 4555 else 4556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4557 break 3 4558 fi 4559 fi 4560 done 4561 done 4562 ;; 4563esac 4564done 4565IFS=$as_save_IFS 4566 4567 4568fi 4569 if test "${ac_cv_path_install+set}" = set; then 4570 INSTALL=$ac_cv_path_install 4571 else 4572 # As a last resort, use the slow shell script. Don't cache a 4573 # value for INSTALL within a source directory, because that will 4574 # break other packages using the cache if that directory is 4575 # removed, or if the value is a relative name. 4576 INSTALL=$ac_install_sh 4577 fi 4578fi 4579{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4580echo "${ECHO_T}$INSTALL" >&6; } 4581 4582# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4583# It thinks the first close brace ends the variable substitution. 4584test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4585 4586test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4587 4588test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4589 4590 4591 MKINSTALLDIRS= 4592 if test -n "$ac_aux_dir"; then 4593 case "$ac_aux_dir" in 4594 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 4595 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 4596 esac 4597 fi 4598 if test -z "$MKINSTALLDIRS"; then 4599 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 4600 fi 4601 4602 4603 4604 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 4605echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 4606 # Check whether --enable-nls was given. 4607if test "${enable_nls+set}" = set; then 4608 enableval=$enable_nls; USE_NLS=$enableval 4609else 4610 USE_NLS=yes 4611fi 4612 4613 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 4614echo "${ECHO_T}$USE_NLS" >&6; } 4615 4616 4617 4618 4619 4620 4621# Prepare PATH_SEPARATOR. 4622# The user is always right. 4623if test "${PATH_SEPARATOR+set}" != set; then 4624 echo "#! /bin/sh" >conf$$.sh 4625 echo "exit 0" >>conf$$.sh 4626 chmod +x conf$$.sh 4627 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4628 PATH_SEPARATOR=';' 4629 else 4630 PATH_SEPARATOR=: 4631 fi 4632 rm -f conf$$.sh 4633fi 4634 4635# Find out how to test for executable files. Don't use a zero-byte file, 4636# as systems may use methods other than mode bits to determine executability. 4637cat >conf$$.file <<_ASEOF 4638#! /bin/sh 4639exit 0 4640_ASEOF 4641chmod +x conf$$.file 4642if test -x conf$$.file >/dev/null 2>&1; then 4643 ac_executable_p="test -x" 4644else 4645 ac_executable_p="test -f" 4646fi 4647rm -f conf$$.file 4648 4649# Extract the first word of "msgfmt", so it can be a program name with args. 4650set dummy msgfmt; ac_word=$2 4651{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4653if test "${ac_cv_path_MSGFMT+set}" = set; then 4654 echo $ECHO_N "(cached) $ECHO_C" >&6 4655else 4656 case "$MSGFMT" in 4657 [\\/]* | ?:[\\/]*) 4658 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4659 ;; 4660 *) 4661 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4662 for ac_dir in $PATH; do 4663 IFS="$ac_save_IFS" 4664 test -z "$ac_dir" && ac_dir=. 4665 for ac_exec_ext in '' $ac_executable_extensions; do 4666 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4667 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 4668 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4669 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 4670 break 2 4671 fi 4672 fi 4673 done 4674 done 4675 IFS="$ac_save_IFS" 4676 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 4677 ;; 4678esac 4679fi 4680MSGFMT="$ac_cv_path_MSGFMT" 4681if test "$MSGFMT" != ":"; then 4682 { echo "$as_me:$LINENO: result: $MSGFMT" >&5 4683echo "${ECHO_T}$MSGFMT" >&6; } 4684else 4685 { echo "$as_me:$LINENO: result: no" >&5 4686echo "${ECHO_T}no" >&6; } 4687fi 4688 4689 # Extract the first word of "gmsgfmt", so it can be a program name with args. 4690set dummy gmsgfmt; ac_word=$2 4691{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4693if test "${ac_cv_path_GMSGFMT+set}" = set; then 4694 echo $ECHO_N "(cached) $ECHO_C" >&6 4695else 4696 case $GMSGFMT in 4697 [\\/]* | ?:[\\/]*) 4698 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4699 ;; 4700 *) 4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4702for as_dir in $PATH 4703do 4704 IFS=$as_save_IFS 4705 test -z "$as_dir" && as_dir=. 4706 for ac_exec_ext in '' $ac_executable_extensions; do 4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4708 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4710 break 2 4711 fi 4712done 4713done 4714IFS=$as_save_IFS 4715 4716 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4717 ;; 4718esac 4719fi 4720GMSGFMT=$ac_cv_path_GMSGFMT 4721if test -n "$GMSGFMT"; then 4722 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 4723echo "${ECHO_T}$GMSGFMT" >&6; } 4724else 4725 { echo "$as_me:$LINENO: result: no" >&5 4726echo "${ECHO_T}no" >&6; } 4727fi 4728 4729 4730 4731 4732# Prepare PATH_SEPARATOR. 4733# The user is always right. 4734if test "${PATH_SEPARATOR+set}" != set; then 4735 echo "#! /bin/sh" >conf$$.sh 4736 echo "exit 0" >>conf$$.sh 4737 chmod +x conf$$.sh 4738 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4739 PATH_SEPARATOR=';' 4740 else 4741 PATH_SEPARATOR=: 4742 fi 4743 rm -f conf$$.sh 4744fi 4745 4746# Find out how to test for executable files. Don't use a zero-byte file, 4747# as systems may use methods other than mode bits to determine executability. 4748cat >conf$$.file <<_ASEOF 4749#! /bin/sh 4750exit 0 4751_ASEOF 4752chmod +x conf$$.file 4753if test -x conf$$.file >/dev/null 2>&1; then 4754 ac_executable_p="test -x" 4755else 4756 ac_executable_p="test -f" 4757fi 4758rm -f conf$$.file 4759 4760# Extract the first word of "xgettext", so it can be a program name with args. 4761set dummy xgettext; ac_word=$2 4762{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4764if test "${ac_cv_path_XGETTEXT+set}" = set; then 4765 echo $ECHO_N "(cached) $ECHO_C" >&6 4766else 4767 case "$XGETTEXT" in 4768 [\\/]* | ?:[\\/]*) 4769 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4770 ;; 4771 *) 4772 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4773 for ac_dir in $PATH; do 4774 IFS="$ac_save_IFS" 4775 test -z "$ac_dir" && ac_dir=. 4776 for ac_exec_ext in '' $ac_executable_extensions; do 4777 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4778 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4779 (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 4780 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 4781 break 2 4782 fi 4783 fi 4784 done 4785 done 4786 IFS="$ac_save_IFS" 4787 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4788 ;; 4789esac 4790fi 4791XGETTEXT="$ac_cv_path_XGETTEXT" 4792if test "$XGETTEXT" != ":"; then 4793 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 4794echo "${ECHO_T}$XGETTEXT" >&6; } 4795else 4796 { echo "$as_me:$LINENO: result: no" >&5 4797echo "${ECHO_T}no" >&6; } 4798fi 4799 4800 rm -f messages.po 4801 4802 4803# Prepare PATH_SEPARATOR. 4804# The user is always right. 4805if test "${PATH_SEPARATOR+set}" != set; then 4806 echo "#! /bin/sh" >conf$$.sh 4807 echo "exit 0" >>conf$$.sh 4808 chmod +x conf$$.sh 4809 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4810 PATH_SEPARATOR=';' 4811 else 4812 PATH_SEPARATOR=: 4813 fi 4814 rm -f conf$$.sh 4815fi 4816 4817# Find out how to test for executable files. Don't use a zero-byte file, 4818# as systems may use methods other than mode bits to determine executability. 4819cat >conf$$.file <<_ASEOF 4820#! /bin/sh 4821exit 0 4822_ASEOF 4823chmod +x conf$$.file 4824if test -x conf$$.file >/dev/null 2>&1; then 4825 ac_executable_p="test -x" 4826else 4827 ac_executable_p="test -f" 4828fi 4829rm -f conf$$.file 4830 4831# Extract the first word of "msgmerge", so it can be a program name with args. 4832set dummy msgmerge; ac_word=$2 4833{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4835if test "${ac_cv_path_MSGMERGE+set}" = set; then 4836 echo $ECHO_N "(cached) $ECHO_C" >&6 4837else 4838 case "$MSGMERGE" in 4839 [\\/]* | ?:[\\/]*) 4840 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4841 ;; 4842 *) 4843 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4844 for ac_dir in $PATH; do 4845 IFS="$ac_save_IFS" 4846 test -z "$ac_dir" && ac_dir=. 4847 for ac_exec_ext in '' $ac_executable_extensions; do 4848 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4849 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 4850 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 4851 break 2 4852 fi 4853 fi 4854 done 4855 done 4856 IFS="$ac_save_IFS" 4857 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 4858 ;; 4859esac 4860fi 4861MSGMERGE="$ac_cv_path_MSGMERGE" 4862if test "$MSGMERGE" != ":"; then 4863 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 4864echo "${ECHO_T}$MSGMERGE" >&6; } 4865else 4866 { echo "$as_me:$LINENO: result: no" >&5 4867echo "${ECHO_T}no" >&6; } 4868fi 4869 4870 4871 if test "$GMSGFMT" != ":"; then 4872 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 4873 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4874 : ; 4875 else 4876 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 4877 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 4878echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 4879 GMSGFMT=":" 4880 fi 4881 fi 4882 4883 if test "$XGETTEXT" != ":"; then 4884 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4885 (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 4886 : ; 4887 else 4888 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 4889echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } 4890 XGETTEXT=":" 4891 fi 4892 rm -f messages.po 4893 fi 4894 4895 ac_config_commands="$ac_config_commands default-1" 4896 4897 4898if test -n "$ac_tool_prefix"; then 4899 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4900set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4901{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4903if test "${ac_cv_prog_RANLIB+set}" = set; then 4904 echo $ECHO_N "(cached) $ECHO_C" >&6 4905else 4906 if test -n "$RANLIB"; then 4907 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4908else 4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4910for as_dir in $PATH 4911do 4912 IFS=$as_save_IFS 4913 test -z "$as_dir" && as_dir=. 4914 for ac_exec_ext in '' $ac_executable_extensions; do 4915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4916 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4918 break 2 4919 fi 4920done 4921done 4922IFS=$as_save_IFS 4923 4924fi 4925fi 4926RANLIB=$ac_cv_prog_RANLIB 4927if test -n "$RANLIB"; then 4928 { echo "$as_me:$LINENO: result: $RANLIB" >&5 4929echo "${ECHO_T}$RANLIB" >&6; } 4930else 4931 { echo "$as_me:$LINENO: result: no" >&5 4932echo "${ECHO_T}no" >&6; } 4933fi 4934 4935 4936fi 4937if test -z "$ac_cv_prog_RANLIB"; then 4938 ac_ct_RANLIB=$RANLIB 4939 # Extract the first word of "ranlib", so it can be a program name with args. 4940set dummy ranlib; ac_word=$2 4941{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4943if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4944 echo $ECHO_N "(cached) $ECHO_C" >&6 4945else 4946 if test -n "$ac_ct_RANLIB"; then 4947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4948else 4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4950for as_dir in $PATH 4951do 4952 IFS=$as_save_IFS 4953 test -z "$as_dir" && as_dir=. 4954 for ac_exec_ext in '' $ac_executable_extensions; do 4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4956 ac_cv_prog_ac_ct_RANLIB="ranlib" 4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4958 break 2 4959 fi 4960done 4961done 4962IFS=$as_save_IFS 4963 4964fi 4965fi 4966ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4967if test -n "$ac_ct_RANLIB"; then 4968 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4969echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 4970else 4971 { echo "$as_me:$LINENO: result: no" >&5 4972echo "${ECHO_T}no" >&6; } 4973fi 4974 4975 if test "x$ac_ct_RANLIB" = x; then 4976 RANLIB=":" 4977 else 4978 case $cross_compiling:$ac_tool_warned in 4979yes:) 4980{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4981whose name does not start with the host triplet. If you think this 4982configuration is useful to you, please write to autoconf@gnu.org." >&5 4983echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4984whose name does not start with the host triplet. If you think this 4985configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4986ac_tool_warned=yes ;; 4987esac 4988 RANLIB=$ac_ct_RANLIB 4989 fi 4990else 4991 RANLIB="$ac_cv_prog_RANLIB" 4992fi 4993 4994 4995 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 4996echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } 4997if test "${ac_cv_lib_cposix_strerror+set}" = set; then 4998 echo $ECHO_N "(cached) $ECHO_C" >&6 4999else 5000 ac_check_lib_save_LIBS=$LIBS 5001LIBS="-lcposix $LIBS" 5002cat >conftest.$ac_ext <<_ACEOF 5003/* confdefs.h. */ 5004_ACEOF 5005cat confdefs.h >>conftest.$ac_ext 5006cat >>conftest.$ac_ext <<_ACEOF 5007/* end confdefs.h. */ 5008 5009/* Override any GCC internal prototype to avoid an error. 5010 Use char because int might match the return type of a GCC 5011 builtin and then its argument prototype would still apply. */ 5012#ifdef __cplusplus 5013extern "C" 5014#endif 5015char strerror (); 5016int 5017main () 5018{ 5019return strerror (); 5020 ; 5021 return 0; 5022} 5023_ACEOF 5024rm -f conftest.$ac_objext conftest$ac_exeext 5025if { (ac_try="$ac_link" 5026case "(($ac_try" in 5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5028 *) ac_try_echo=$ac_try;; 5029esac 5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5031 (eval "$ac_link") 2>conftest.er1 5032 ac_status=$? 5033 grep -v '^ *+' conftest.er1 >conftest.err 5034 rm -f conftest.er1 5035 cat conftest.err >&5 5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5037 (exit $ac_status); } && { 5038 test -z "$ac_c_werror_flag" || 5039 test ! -s conftest.err 5040 } && test -s conftest$ac_exeext && 5041 $as_test_x conftest$ac_exeext; then 5042 ac_cv_lib_cposix_strerror=yes 5043else 5044 echo "$as_me: failed program was:" >&5 5045sed 's/^/| /' conftest.$ac_ext >&5 5046 5047 ac_cv_lib_cposix_strerror=no 5048fi 5049 5050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5051 conftest$ac_exeext conftest.$ac_ext 5052LIBS=$ac_check_lib_save_LIBS 5053fi 5054{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 5055echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } 5056if test $ac_cv_lib_cposix_strerror = yes; then 5057 LIBS="$LIBS -lcposix" 5058fi 5059 5060 5061 5062{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5063echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 5064if test "${ac_cv_c_const+set}" = set; then 5065 echo $ECHO_N "(cached) $ECHO_C" >&6 5066else 5067 cat >conftest.$ac_ext <<_ACEOF 5068/* confdefs.h. */ 5069_ACEOF 5070cat confdefs.h >>conftest.$ac_ext 5071cat >>conftest.$ac_ext <<_ACEOF 5072/* end confdefs.h. */ 5073 5074int 5075main () 5076{ 5077/* FIXME: Include the comments suggested by Paul. */ 5078#ifndef __cplusplus 5079 /* Ultrix mips cc rejects this. */ 5080 typedef int charset[2]; 5081 const charset cs; 5082 /* SunOS 4.1.1 cc rejects this. */ 5083 char const *const *pcpcc; 5084 char **ppc; 5085 /* NEC SVR4.0.2 mips cc rejects this. */ 5086 struct point {int x, y;}; 5087 static struct point const zero = {0,0}; 5088 /* AIX XL C 1.02.0.0 rejects this. 5089 It does not let you subtract one const X* pointer from another in 5090 an arm of an if-expression whose if-part is not a constant 5091 expression */ 5092 const char *g = "string"; 5093 pcpcc = &g + (g ? g-g : 0); 5094 /* HPUX 7.0 cc rejects these. */ 5095 ++pcpcc; 5096 ppc = (char**) pcpcc; 5097 pcpcc = (char const *const *) ppc; 5098 { /* SCO 3.2v4 cc rejects this. */ 5099 char *t; 5100 char const *s = 0 ? (char *) 0 : (char const *) 0; 5101 5102 *t++ = 0; 5103 if (s) return 0; 5104 } 5105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5106 int x[] = {25, 17}; 5107 const int *foo = &x[0]; 5108 ++foo; 5109 } 5110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5111 typedef const int *iptr; 5112 iptr p = 0; 5113 ++p; 5114 } 5115 { /* AIX XL C 1.02.0.0 rejects this saying 5116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5117 struct s { int j; const int *ap[3]; }; 5118 struct s *b; b->j = 5; 5119 } 5120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5121 const int foo = 10; 5122 if (!foo) return 0; 5123 } 5124 return !cs[0] && !zero.x; 5125#endif 5126 5127 ; 5128 return 0; 5129} 5130_ACEOF 5131rm -f conftest.$ac_objext 5132if { (ac_try="$ac_compile" 5133case "(($ac_try" in 5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5135 *) ac_try_echo=$ac_try;; 5136esac 5137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5138 (eval "$ac_compile") 2>conftest.er1 5139 ac_status=$? 5140 grep -v '^ *+' conftest.er1 >conftest.err 5141 rm -f conftest.er1 5142 cat conftest.err >&5 5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5144 (exit $ac_status); } && { 5145 test -z "$ac_c_werror_flag" || 5146 test ! -s conftest.err 5147 } && test -s conftest.$ac_objext; then 5148 ac_cv_c_const=yes 5149else 5150 echo "$as_me: failed program was:" >&5 5151sed 's/^/| /' conftest.$ac_ext >&5 5152 5153 ac_cv_c_const=no 5154fi 5155 5156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5157fi 5158{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5159echo "${ECHO_T}$ac_cv_c_const" >&6; } 5160if test $ac_cv_c_const = no; then 5161 5162cat >>confdefs.h <<\_ACEOF 5163#define const 5164_ACEOF 5165 5166fi 5167 5168 5169 { echo "$as_me:$LINENO: checking for signed" >&5 5170echo $ECHO_N "checking for signed... $ECHO_C" >&6; } 5171if test "${bh_cv_c_signed+set}" = set; then 5172 echo $ECHO_N "(cached) $ECHO_C" >&6 5173else 5174 cat >conftest.$ac_ext <<_ACEOF 5175/* confdefs.h. */ 5176_ACEOF 5177cat confdefs.h >>conftest.$ac_ext 5178cat >>conftest.$ac_ext <<_ACEOF 5179/* end confdefs.h. */ 5180 5181int 5182main () 5183{ 5184signed char x; 5185 ; 5186 return 0; 5187} 5188_ACEOF 5189rm -f conftest.$ac_objext 5190if { (ac_try="$ac_compile" 5191case "(($ac_try" in 5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5193 *) ac_try_echo=$ac_try;; 5194esac 5195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5196 (eval "$ac_compile") 2>conftest.er1 5197 ac_status=$? 5198 grep -v '^ *+' conftest.er1 >conftest.err 5199 rm -f conftest.er1 5200 cat conftest.err >&5 5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5202 (exit $ac_status); } && { 5203 test -z "$ac_c_werror_flag" || 5204 test ! -s conftest.err 5205 } && test -s conftest.$ac_objext; then 5206 bh_cv_c_signed=yes 5207else 5208 echo "$as_me: failed program was:" >&5 5209sed 's/^/| /' conftest.$ac_ext >&5 5210 5211 bh_cv_c_signed=no 5212fi 5213 5214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5215fi 5216{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 5217echo "${ECHO_T}$bh_cv_c_signed" >&6; } 5218 if test $bh_cv_c_signed = no; then 5219 5220cat >>confdefs.h <<\_ACEOF 5221#define signed 5222_ACEOF 5223 5224 fi 5225 5226{ echo "$as_me:$LINENO: checking for inline" >&5 5227echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 5228if test "${ac_cv_c_inline+set}" = set; then 5229 echo $ECHO_N "(cached) $ECHO_C" >&6 5230else 5231 ac_cv_c_inline=no 5232for ac_kw in inline __inline__ __inline; do 5233 cat >conftest.$ac_ext <<_ACEOF 5234/* confdefs.h. */ 5235_ACEOF 5236cat confdefs.h >>conftest.$ac_ext 5237cat >>conftest.$ac_ext <<_ACEOF 5238/* end confdefs.h. */ 5239#ifndef __cplusplus 5240typedef int foo_t; 5241static $ac_kw foo_t static_foo () {return 0; } 5242$ac_kw foo_t foo () {return 0; } 5243#endif 5244 5245_ACEOF 5246rm -f conftest.$ac_objext 5247if { (ac_try="$ac_compile" 5248case "(($ac_try" in 5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5250 *) ac_try_echo=$ac_try;; 5251esac 5252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5253 (eval "$ac_compile") 2>conftest.er1 5254 ac_status=$? 5255 grep -v '^ *+' conftest.er1 >conftest.err 5256 rm -f conftest.er1 5257 cat conftest.err >&5 5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5259 (exit $ac_status); } && { 5260 test -z "$ac_c_werror_flag" || 5261 test ! -s conftest.err 5262 } && test -s conftest.$ac_objext; then 5263 ac_cv_c_inline=$ac_kw 5264else 5265 echo "$as_me: failed program was:" >&5 5266sed 's/^/| /' conftest.$ac_ext >&5 5267 5268 5269fi 5270 5271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5272 test "$ac_cv_c_inline" != no && break 5273done 5274 5275fi 5276{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 5277echo "${ECHO_T}$ac_cv_c_inline" >&6; } 5278 5279 5280case $ac_cv_c_inline in 5281 inline | yes) ;; 5282 *) 5283 case $ac_cv_c_inline in 5284 no) ac_val=;; 5285 *) ac_val=$ac_cv_c_inline;; 5286 esac 5287 cat >>confdefs.h <<_ACEOF 5288#ifndef __cplusplus 5289#define inline $ac_val 5290#endif 5291_ACEOF 5292 ;; 5293esac 5294 5295{ echo "$as_me:$LINENO: checking for off_t" >&5 5296echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } 5297if test "${ac_cv_type_off_t+set}" = set; then 5298 echo $ECHO_N "(cached) $ECHO_C" >&6 5299else 5300 cat >conftest.$ac_ext <<_ACEOF 5301/* confdefs.h. */ 5302_ACEOF 5303cat confdefs.h >>conftest.$ac_ext 5304cat >>conftest.$ac_ext <<_ACEOF 5305/* end confdefs.h. */ 5306$ac_includes_default 5307typedef off_t ac__type_new_; 5308int 5309main () 5310{ 5311if ((ac__type_new_ *) 0) 5312 return 0; 5313if (sizeof (ac__type_new_)) 5314 return 0; 5315 ; 5316 return 0; 5317} 5318_ACEOF 5319rm -f conftest.$ac_objext 5320if { (ac_try="$ac_compile" 5321case "(($ac_try" in 5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5323 *) ac_try_echo=$ac_try;; 5324esac 5325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5326 (eval "$ac_compile") 2>conftest.er1 5327 ac_status=$? 5328 grep -v '^ *+' conftest.er1 >conftest.err 5329 rm -f conftest.er1 5330 cat conftest.err >&5 5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5332 (exit $ac_status); } && { 5333 test -z "$ac_c_werror_flag" || 5334 test ! -s conftest.err 5335 } && test -s conftest.$ac_objext; then 5336 ac_cv_type_off_t=yes 5337else 5338 echo "$as_me: failed program was:" >&5 5339sed 's/^/| /' conftest.$ac_ext >&5 5340 5341 ac_cv_type_off_t=no 5342fi 5343 5344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5345fi 5346{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 5347echo "${ECHO_T}$ac_cv_type_off_t" >&6; } 5348if test $ac_cv_type_off_t = yes; then 5349 : 5350else 5351 5352cat >>confdefs.h <<_ACEOF 5353#define off_t long int 5354_ACEOF 5355 5356fi 5357 5358{ echo "$as_me:$LINENO: checking for size_t" >&5 5359echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 5360if test "${ac_cv_type_size_t+set}" = set; then 5361 echo $ECHO_N "(cached) $ECHO_C" >&6 5362else 5363 cat >conftest.$ac_ext <<_ACEOF 5364/* confdefs.h. */ 5365_ACEOF 5366cat confdefs.h >>conftest.$ac_ext 5367cat >>conftest.$ac_ext <<_ACEOF 5368/* end confdefs.h. */ 5369$ac_includes_default 5370typedef size_t ac__type_new_; 5371int 5372main () 5373{ 5374if ((ac__type_new_ *) 0) 5375 return 0; 5376if (sizeof (ac__type_new_)) 5377 return 0; 5378 ; 5379 return 0; 5380} 5381_ACEOF 5382rm -f conftest.$ac_objext 5383if { (ac_try="$ac_compile" 5384case "(($ac_try" in 5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5386 *) ac_try_echo=$ac_try;; 5387esac 5388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5389 (eval "$ac_compile") 2>conftest.er1 5390 ac_status=$? 5391 grep -v '^ *+' conftest.er1 >conftest.err 5392 rm -f conftest.er1 5393 cat conftest.err >&5 5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); } && { 5396 test -z "$ac_c_werror_flag" || 5397 test ! -s conftest.err 5398 } && test -s conftest.$ac_objext; then 5399 ac_cv_type_size_t=yes 5400else 5401 echo "$as_me: failed program was:" >&5 5402sed 's/^/| /' conftest.$ac_ext >&5 5403 5404 ac_cv_type_size_t=no 5405fi 5406 5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5408fi 5409{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5410echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 5411if test $ac_cv_type_size_t = yes; then 5412 : 5413else 5414 5415cat >>confdefs.h <<_ACEOF 5416#define size_t unsigned int 5417_ACEOF 5418 5419fi 5420 5421 5422 { echo "$as_me:$LINENO: checking for long long" >&5 5423echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 5424if test "${ac_cv_type_long_long+set}" = set; then 5425 echo $ECHO_N "(cached) $ECHO_C" >&6 5426else 5427 cat >conftest.$ac_ext <<_ACEOF 5428/* confdefs.h. */ 5429_ACEOF 5430cat confdefs.h >>conftest.$ac_ext 5431cat >>conftest.$ac_ext <<_ACEOF 5432/* end confdefs.h. */ 5433long long ll = 1LL; int i = 63; 5434int 5435main () 5436{ 5437long long llmax = (long long) -1; 5438 return ll << i | ll >> i | llmax / ll | llmax % ll; 5439 ; 5440 return 0; 5441} 5442_ACEOF 5443rm -f conftest.$ac_objext conftest$ac_exeext 5444if { (ac_try="$ac_link" 5445case "(($ac_try" in 5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5447 *) ac_try_echo=$ac_try;; 5448esac 5449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5450 (eval "$ac_link") 2>conftest.er1 5451 ac_status=$? 5452 grep -v '^ *+' conftest.er1 >conftest.err 5453 rm -f conftest.er1 5454 cat conftest.err >&5 5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5456 (exit $ac_status); } && { 5457 test -z "$ac_c_werror_flag" || 5458 test ! -s conftest.err 5459 } && test -s conftest$ac_exeext && 5460 $as_test_x conftest$ac_exeext; then 5461 ac_cv_type_long_long=yes 5462else 5463 echo "$as_me: failed program was:" >&5 5464sed 's/^/| /' conftest.$ac_ext >&5 5465 5466 ac_cv_type_long_long=no 5467fi 5468 5469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5470 conftest$ac_exeext conftest.$ac_ext 5471fi 5472{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5473echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 5474 if test $ac_cv_type_long_long = yes; then 5475 5476cat >>confdefs.h <<\_ACEOF 5477#define HAVE_LONG_LONG 1 5478_ACEOF 5479 5480 fi 5481 5482 5483 { echo "$as_me:$LINENO: checking for long double" >&5 5484echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 5485if test "${gt_cv_c_long_double+set}" = set; then 5486 echo $ECHO_N "(cached) $ECHO_C" >&6 5487else 5488 if test "$GCC" = yes; then 5489 gt_cv_c_long_double=yes 5490 else 5491 cat >conftest.$ac_ext <<_ACEOF 5492/* confdefs.h. */ 5493_ACEOF 5494cat confdefs.h >>conftest.$ac_ext 5495cat >>conftest.$ac_ext <<_ACEOF 5496/* end confdefs.h. */ 5497 5498 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 5499 long double foo = 0.0; 5500 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 5501 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 5502 5503int 5504main () 5505{ 5506 5507 ; 5508 return 0; 5509} 5510_ACEOF 5511rm -f conftest.$ac_objext 5512if { (ac_try="$ac_compile" 5513case "(($ac_try" in 5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5515 *) ac_try_echo=$ac_try;; 5516esac 5517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5518 (eval "$ac_compile") 2>conftest.er1 5519 ac_status=$? 5520 grep -v '^ *+' conftest.er1 >conftest.err 5521 rm -f conftest.er1 5522 cat conftest.err >&5 5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5524 (exit $ac_status); } && { 5525 test -z "$ac_c_werror_flag" || 5526 test ! -s conftest.err 5527 } && test -s conftest.$ac_objext; then 5528 gt_cv_c_long_double=yes 5529else 5530 echo "$as_me: failed program was:" >&5 5531sed 's/^/| /' conftest.$ac_ext >&5 5532 5533 gt_cv_c_long_double=no 5534fi 5535 5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5537 fi 5538fi 5539{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 5540echo "${ECHO_T}$gt_cv_c_long_double" >&6; } 5541 if test $gt_cv_c_long_double = yes; then 5542 5543cat >>confdefs.h <<\_ACEOF 5544#define HAVE_LONG_DOUBLE 1 5545_ACEOF 5546 5547 fi 5548 5549 5550 { echo "$as_me:$LINENO: checking for wchar_t" >&5 5551echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } 5552if test "${gt_cv_c_wchar_t+set}" = set; then 5553 echo $ECHO_N "(cached) $ECHO_C" >&6 5554else 5555 cat >conftest.$ac_ext <<_ACEOF 5556/* confdefs.h. */ 5557_ACEOF 5558cat confdefs.h >>conftest.$ac_ext 5559cat >>conftest.$ac_ext <<_ACEOF 5560/* end confdefs.h. */ 5561#include <stddef.h> 5562 wchar_t foo = (wchar_t)'\0'; 5563int 5564main () 5565{ 5566 5567 ; 5568 return 0; 5569} 5570_ACEOF 5571rm -f conftest.$ac_objext 5572if { (ac_try="$ac_compile" 5573case "(($ac_try" in 5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5575 *) ac_try_echo=$ac_try;; 5576esac 5577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5578 (eval "$ac_compile") 2>conftest.er1 5579 ac_status=$? 5580 grep -v '^ *+' conftest.er1 >conftest.err 5581 rm -f conftest.er1 5582 cat conftest.err >&5 5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5584 (exit $ac_status); } && { 5585 test -z "$ac_c_werror_flag" || 5586 test ! -s conftest.err 5587 } && test -s conftest.$ac_objext; then 5588 gt_cv_c_wchar_t=yes 5589else 5590 echo "$as_me: failed program was:" >&5 5591sed 's/^/| /' conftest.$ac_ext >&5 5592 5593 gt_cv_c_wchar_t=no 5594fi 5595 5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5597fi 5598{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 5599echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } 5600 if test $gt_cv_c_wchar_t = yes; then 5601 5602cat >>confdefs.h <<\_ACEOF 5603#define HAVE_WCHAR_T 1 5604_ACEOF 5605 5606 fi 5607 5608 5609 { echo "$as_me:$LINENO: checking for wint_t" >&5 5610echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } 5611if test "${gt_cv_c_wint_t+set}" = set; then 5612 echo $ECHO_N "(cached) $ECHO_C" >&6 5613else 5614 cat >conftest.$ac_ext <<_ACEOF 5615/* confdefs.h. */ 5616_ACEOF 5617cat confdefs.h >>conftest.$ac_ext 5618cat >>conftest.$ac_ext <<_ACEOF 5619/* end confdefs.h. */ 5620#include <wchar.h> 5621 wint_t foo = (wchar_t)'\0'; 5622int 5623main () 5624{ 5625 5626 ; 5627 return 0; 5628} 5629_ACEOF 5630rm -f conftest.$ac_objext 5631if { (ac_try="$ac_compile" 5632case "(($ac_try" in 5633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5634 *) ac_try_echo=$ac_try;; 5635esac 5636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5637 (eval "$ac_compile") 2>conftest.er1 5638 ac_status=$? 5639 grep -v '^ *+' conftest.er1 >conftest.err 5640 rm -f conftest.er1 5641 cat conftest.err >&5 5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5643 (exit $ac_status); } && { 5644 test -z "$ac_c_werror_flag" || 5645 test ! -s conftest.err 5646 } && test -s conftest.$ac_objext; then 5647 gt_cv_c_wint_t=yes 5648else 5649 echo "$as_me: failed program was:" >&5 5650sed 's/^/| /' conftest.$ac_ext >&5 5651 5652 gt_cv_c_wint_t=no 5653fi 5654 5655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5656fi 5657{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 5658echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } 5659 if test $gt_cv_c_wint_t = yes; then 5660 5661cat >>confdefs.h <<\_ACEOF 5662#define HAVE_WINT_T 1 5663_ACEOF 5664 5665 fi 5666 5667 5668 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 5669echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 5670if test "${jm_ac_cv_header_inttypes_h+set}" = set; then 5671 echo $ECHO_N "(cached) $ECHO_C" >&6 5672else 5673 cat >conftest.$ac_ext <<_ACEOF 5674/* confdefs.h. */ 5675_ACEOF 5676cat confdefs.h >>conftest.$ac_ext 5677cat >>conftest.$ac_ext <<_ACEOF 5678/* end confdefs.h. */ 5679#include <sys/types.h> 5680#include <inttypes.h> 5681int 5682main () 5683{ 5684uintmax_t i = (uintmax_t) -1; 5685 ; 5686 return 0; 5687} 5688_ACEOF 5689rm -f conftest.$ac_objext 5690if { (ac_try="$ac_compile" 5691case "(($ac_try" in 5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5693 *) ac_try_echo=$ac_try;; 5694esac 5695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5696 (eval "$ac_compile") 2>conftest.er1 5697 ac_status=$? 5698 grep -v '^ *+' conftest.er1 >conftest.err 5699 rm -f conftest.er1 5700 cat conftest.err >&5 5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5702 (exit $ac_status); } && { 5703 test -z "$ac_c_werror_flag" || 5704 test ! -s conftest.err 5705 } && test -s conftest.$ac_objext; then 5706 jm_ac_cv_header_inttypes_h=yes 5707else 5708 echo "$as_me: failed program was:" >&5 5709sed 's/^/| /' conftest.$ac_ext >&5 5710 5711 jm_ac_cv_header_inttypes_h=no 5712fi 5713 5714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5715fi 5716{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 5717echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } 5718 if test $jm_ac_cv_header_inttypes_h = yes; then 5719 5720cat >>confdefs.h <<_ACEOF 5721#define HAVE_INTTYPES_H_WITH_UINTMAX 1 5722_ACEOF 5723 5724 fi 5725 5726 5727 { echo "$as_me:$LINENO: checking for stdint.h" >&5 5728echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 5729if test "${jm_ac_cv_header_stdint_h+set}" = set; then 5730 echo $ECHO_N "(cached) $ECHO_C" >&6 5731else 5732 cat >conftest.$ac_ext <<_ACEOF 5733/* confdefs.h. */ 5734_ACEOF 5735cat confdefs.h >>conftest.$ac_ext 5736cat >>conftest.$ac_ext <<_ACEOF 5737/* end confdefs.h. */ 5738#include <sys/types.h> 5739#include <stdint.h> 5740int 5741main () 5742{ 5743uintmax_t i = (uintmax_t) -1; 5744 ; 5745 return 0; 5746} 5747_ACEOF 5748rm -f conftest.$ac_objext 5749if { (ac_try="$ac_compile" 5750case "(($ac_try" in 5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5752 *) ac_try_echo=$ac_try;; 5753esac 5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5755 (eval "$ac_compile") 2>conftest.er1 5756 ac_status=$? 5757 grep -v '^ *+' conftest.er1 >conftest.err 5758 rm -f conftest.er1 5759 cat conftest.err >&5 5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5761 (exit $ac_status); } && { 5762 test -z "$ac_c_werror_flag" || 5763 test ! -s conftest.err 5764 } && test -s conftest.$ac_objext; then 5765 jm_ac_cv_header_stdint_h=yes 5766else 5767 echo "$as_me: failed program was:" >&5 5768sed 's/^/| /' conftest.$ac_ext >&5 5769 5770 jm_ac_cv_header_stdint_h=no 5771fi 5772 5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5774fi 5775{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 5776echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } 5777 if test $jm_ac_cv_header_stdint_h = yes; then 5778 5779cat >>confdefs.h <<_ACEOF 5780#define HAVE_STDINT_H_WITH_UINTMAX 1 5781_ACEOF 5782 5783 fi 5784 5785 5786 5787 5788 { echo "$as_me:$LINENO: checking for intmax_t" >&5 5789echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } 5790if test "${gt_cv_c_intmax_t+set}" = set; then 5791 echo $ECHO_N "(cached) $ECHO_C" >&6 5792else 5793 cat >conftest.$ac_ext <<_ACEOF 5794/* confdefs.h. */ 5795_ACEOF 5796cat confdefs.h >>conftest.$ac_ext 5797cat >>conftest.$ac_ext <<_ACEOF 5798/* end confdefs.h. */ 5799 5800#include <stddef.h> 5801#include <stdlib.h> 5802#if HAVE_STDINT_H_WITH_UINTMAX 5803#include <stdint.h> 5804#endif 5805#if HAVE_INTTYPES_H_WITH_UINTMAX 5806#include <inttypes.h> 5807#endif 5808 5809int 5810main () 5811{ 5812intmax_t x = -1; 5813 ; 5814 return 0; 5815} 5816_ACEOF 5817rm -f conftest.$ac_objext 5818if { (ac_try="$ac_compile" 5819case "(($ac_try" in 5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5821 *) ac_try_echo=$ac_try;; 5822esac 5823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5824 (eval "$ac_compile") 2>conftest.er1 5825 ac_status=$? 5826 grep -v '^ *+' conftest.er1 >conftest.err 5827 rm -f conftest.er1 5828 cat conftest.err >&5 5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5830 (exit $ac_status); } && { 5831 test -z "$ac_c_werror_flag" || 5832 test ! -s conftest.err 5833 } && test -s conftest.$ac_objext; then 5834 gt_cv_c_intmax_t=yes 5835else 5836 echo "$as_me: failed program was:" >&5 5837sed 's/^/| /' conftest.$ac_ext >&5 5838 5839 gt_cv_c_intmax_t=no 5840fi 5841 5842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5843fi 5844{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 5845echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } 5846 if test $gt_cv_c_intmax_t = yes; then 5847 5848cat >>confdefs.h <<\_ACEOF 5849#define HAVE_INTMAX_T 1 5850_ACEOF 5851 5852 fi 5853 5854 5855 5856 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 5857echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } 5858if test "${gt_cv_func_printf_posix+set}" = set; then 5859 echo $ECHO_N "(cached) $ECHO_C" >&6 5860else 5861 5862 if test "$cross_compiling" = yes; then 5863 5864 cat >conftest.$ac_ext <<_ACEOF 5865/* confdefs.h. */ 5866_ACEOF 5867cat confdefs.h >>conftest.$ac_ext 5868cat >>conftest.$ac_ext <<_ACEOF 5869/* end confdefs.h. */ 5870 5871#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 5872 notposix 5873#endif 5874 5875_ACEOF 5876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5877 $EGREP "notposix" >/dev/null 2>&1; then 5878 gt_cv_func_printf_posix="guessing no" 5879else 5880 gt_cv_func_printf_posix="guessing yes" 5881fi 5882rm -f conftest* 5883 5884 5885else 5886 cat >conftest.$ac_ext <<_ACEOF 5887/* confdefs.h. */ 5888_ACEOF 5889cat confdefs.h >>conftest.$ac_ext 5890cat >>conftest.$ac_ext <<_ACEOF 5891/* end confdefs.h. */ 5892 5893#include <stdio.h> 5894#include <string.h> 5895/* The string "%2$d %1$d", with dollar characters protected from the shell's 5896 dollar expansion (possibly an autoconf bug). */ 5897static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 5898static char buf[100]; 5899int main () 5900{ 5901 sprintf (buf, format, 33, 55); 5902 return (strcmp (buf, "55 33") != 0); 5903} 5904_ACEOF 5905rm -f conftest$ac_exeext 5906if { (ac_try="$ac_link" 5907case "(($ac_try" in 5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5909 *) ac_try_echo=$ac_try;; 5910esac 5911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5912 (eval "$ac_link") 2>&5 5913 ac_status=$? 5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5915 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5916 { (case "(($ac_try" in 5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5918 *) ac_try_echo=$ac_try;; 5919esac 5920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5921 (eval "$ac_try") 2>&5 5922 ac_status=$? 5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); }; }; then 5925 gt_cv_func_printf_posix=yes 5926else 5927 echo "$as_me: program exited with status $ac_status" >&5 5928echo "$as_me: failed program was:" >&5 5929sed 's/^/| /' conftest.$ac_ext >&5 5930 5931( exit $ac_status ) 5932gt_cv_func_printf_posix=no 5933fi 5934rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5935fi 5936 5937 5938 5939fi 5940{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 5941echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } 5942 case $gt_cv_func_printf_posix in 5943 *yes) 5944 5945cat >>confdefs.h <<\_ACEOF 5946#define HAVE_POSIX_PRINTF 1 5947_ACEOF 5948 5949 ;; 5950 esac 5951 5952# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5953# for constant arguments. Useless! 5954{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 5955echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 5956if test "${ac_cv_working_alloca_h+set}" = set; then 5957 echo $ECHO_N "(cached) $ECHO_C" >&6 5958else 5959 cat >conftest.$ac_ext <<_ACEOF 5960/* confdefs.h. */ 5961_ACEOF 5962cat confdefs.h >>conftest.$ac_ext 5963cat >>conftest.$ac_ext <<_ACEOF 5964/* end confdefs.h. */ 5965#include <alloca.h> 5966int 5967main () 5968{ 5969char *p = (char *) alloca (2 * sizeof (int)); 5970 if (p) return 0; 5971 ; 5972 return 0; 5973} 5974_ACEOF 5975rm -f conftest.$ac_objext conftest$ac_exeext 5976if { (ac_try="$ac_link" 5977case "(($ac_try" in 5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5979 *) ac_try_echo=$ac_try;; 5980esac 5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5982 (eval "$ac_link") 2>conftest.er1 5983 ac_status=$? 5984 grep -v '^ *+' conftest.er1 >conftest.err 5985 rm -f conftest.er1 5986 cat conftest.err >&5 5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5988 (exit $ac_status); } && { 5989 test -z "$ac_c_werror_flag" || 5990 test ! -s conftest.err 5991 } && test -s conftest$ac_exeext && 5992 $as_test_x conftest$ac_exeext; then 5993 ac_cv_working_alloca_h=yes 5994else 5995 echo "$as_me: failed program was:" >&5 5996sed 's/^/| /' conftest.$ac_ext >&5 5997 5998 ac_cv_working_alloca_h=no 5999fi 6000 6001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6002 conftest$ac_exeext conftest.$ac_ext 6003fi 6004{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 6005echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 6006if test $ac_cv_working_alloca_h = yes; then 6007 6008cat >>confdefs.h <<\_ACEOF 6009#define HAVE_ALLOCA_H 1 6010_ACEOF 6011 6012fi 6013 6014{ echo "$as_me:$LINENO: checking for alloca" >&5 6015echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 6016if test "${ac_cv_func_alloca_works+set}" = set; then 6017 echo $ECHO_N "(cached) $ECHO_C" >&6 6018else 6019 cat >conftest.$ac_ext <<_ACEOF 6020/* confdefs.h. */ 6021_ACEOF 6022cat confdefs.h >>conftest.$ac_ext 6023cat >>conftest.$ac_ext <<_ACEOF 6024/* end confdefs.h. */ 6025#ifdef __GNUC__ 6026# define alloca __builtin_alloca 6027#else 6028# ifdef _MSC_VER 6029# include <malloc.h> 6030# define alloca _alloca 6031# else 6032# ifdef HAVE_ALLOCA_H 6033# include <alloca.h> 6034# else 6035# ifdef _AIX 6036 #pragma alloca 6037# else 6038# ifndef alloca /* predefined by HP cc +Olibcalls */ 6039char *alloca (); 6040# endif 6041# endif 6042# endif 6043# endif 6044#endif 6045 6046int 6047main () 6048{ 6049char *p = (char *) alloca (1); 6050 if (p) return 0; 6051 ; 6052 return 0; 6053} 6054_ACEOF 6055rm -f conftest.$ac_objext conftest$ac_exeext 6056if { (ac_try="$ac_link" 6057case "(($ac_try" in 6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6059 *) ac_try_echo=$ac_try;; 6060esac 6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6062 (eval "$ac_link") 2>conftest.er1 6063 ac_status=$? 6064 grep -v '^ *+' conftest.er1 >conftest.err 6065 rm -f conftest.er1 6066 cat conftest.err >&5 6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6068 (exit $ac_status); } && { 6069 test -z "$ac_c_werror_flag" || 6070 test ! -s conftest.err 6071 } && test -s conftest$ac_exeext && 6072 $as_test_x conftest$ac_exeext; then 6073 ac_cv_func_alloca_works=yes 6074else 6075 echo "$as_me: failed program was:" >&5 6076sed 's/^/| /' conftest.$ac_ext >&5 6077 6078 ac_cv_func_alloca_works=no 6079fi 6080 6081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6082 conftest$ac_exeext conftest.$ac_ext 6083fi 6084{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 6085echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 6086 6087if test $ac_cv_func_alloca_works = yes; then 6088 6089cat >>confdefs.h <<\_ACEOF 6090#define HAVE_ALLOCA 1 6091_ACEOF 6092 6093else 6094 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6095# that cause trouble. Some versions do not even contain alloca or 6096# contain a buggy version. If you still want to use their alloca, 6097# use ar to extract alloca.o from them instead of compiling alloca.c. 6098 6099ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 6100 6101cat >>confdefs.h <<\_ACEOF 6102#define C_ALLOCA 1 6103_ACEOF 6104 6105 6106{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 6107echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 6108if test "${ac_cv_os_cray+set}" = set; then 6109 echo $ECHO_N "(cached) $ECHO_C" >&6 6110else 6111 cat >conftest.$ac_ext <<_ACEOF 6112/* confdefs.h. */ 6113_ACEOF 6114cat confdefs.h >>conftest.$ac_ext 6115cat >>conftest.$ac_ext <<_ACEOF 6116/* end confdefs.h. */ 6117#if defined CRAY && ! defined CRAY2 6118webecray 6119#else 6120wenotbecray 6121#endif 6122 6123_ACEOF 6124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6125 $EGREP "webecray" >/dev/null 2>&1; then 6126 ac_cv_os_cray=yes 6127else 6128 ac_cv_os_cray=no 6129fi 6130rm -f conftest* 6131 6132fi 6133{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 6134echo "${ECHO_T}$ac_cv_os_cray" >&6; } 6135if test $ac_cv_os_cray = yes; then 6136 for ac_func in _getb67 GETB67 getb67; do 6137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6138{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6140if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6141 echo $ECHO_N "(cached) $ECHO_C" >&6 6142else 6143 cat >conftest.$ac_ext <<_ACEOF 6144/* confdefs.h. */ 6145_ACEOF 6146cat confdefs.h >>conftest.$ac_ext 6147cat >>conftest.$ac_ext <<_ACEOF 6148/* end confdefs.h. */ 6149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6150 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6151#define $ac_func innocuous_$ac_func 6152 6153/* System header to define __stub macros and hopefully few prototypes, 6154 which can conflict with char $ac_func (); below. 6155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6156 <limits.h> exists even on freestanding compilers. */ 6157 6158#ifdef __STDC__ 6159# include <limits.h> 6160#else 6161# include <assert.h> 6162#endif 6163 6164#undef $ac_func 6165 6166/* Override any GCC internal prototype to avoid an error. 6167 Use char because int might match the return type of a GCC 6168 builtin and then its argument prototype would still apply. */ 6169#ifdef __cplusplus 6170extern "C" 6171#endif 6172char $ac_func (); 6173/* The GNU C library defines this for functions which it implements 6174 to always fail with ENOSYS. Some functions are actually named 6175 something starting with __ and the normal name is an alias. */ 6176#if defined __stub_$ac_func || defined __stub___$ac_func 6177choke me 6178#endif 6179 6180int 6181main () 6182{ 6183return $ac_func (); 6184 ; 6185 return 0; 6186} 6187_ACEOF 6188rm -f conftest.$ac_objext conftest$ac_exeext 6189if { (ac_try="$ac_link" 6190case "(($ac_try" in 6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6192 *) ac_try_echo=$ac_try;; 6193esac 6194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6195 (eval "$ac_link") 2>conftest.er1 6196 ac_status=$? 6197 grep -v '^ *+' conftest.er1 >conftest.err 6198 rm -f conftest.er1 6199 cat conftest.err >&5 6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6201 (exit $ac_status); } && { 6202 test -z "$ac_c_werror_flag" || 6203 test ! -s conftest.err 6204 } && test -s conftest$ac_exeext && 6205 $as_test_x conftest$ac_exeext; then 6206 eval "$as_ac_var=yes" 6207else 6208 echo "$as_me: failed program was:" >&5 6209sed 's/^/| /' conftest.$ac_ext >&5 6210 6211 eval "$as_ac_var=no" 6212fi 6213 6214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6215 conftest$ac_exeext conftest.$ac_ext 6216fi 6217ac_res=`eval echo '${'$as_ac_var'}'` 6218 { echo "$as_me:$LINENO: result: $ac_res" >&5 6219echo "${ECHO_T}$ac_res" >&6; } 6220if test `eval echo '${'$as_ac_var'}'` = yes; then 6221 6222cat >>confdefs.h <<_ACEOF 6223#define CRAY_STACKSEG_END $ac_func 6224_ACEOF 6225 6226 break 6227fi 6228 6229 done 6230fi 6231 6232{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 6233echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 6234if test "${ac_cv_c_stack_direction+set}" = set; then 6235 echo $ECHO_N "(cached) $ECHO_C" >&6 6236else 6237 if test "$cross_compiling" = yes; then 6238 ac_cv_c_stack_direction=0 6239else 6240 cat >conftest.$ac_ext <<_ACEOF 6241/* confdefs.h. */ 6242_ACEOF 6243cat confdefs.h >>conftest.$ac_ext 6244cat >>conftest.$ac_ext <<_ACEOF 6245/* end confdefs.h. */ 6246$ac_includes_default 6247int 6248find_stack_direction () 6249{ 6250 static char *addr = 0; 6251 auto char dummy; 6252 if (addr == 0) 6253 { 6254 addr = &dummy; 6255 return find_stack_direction (); 6256 } 6257 else 6258 return (&dummy > addr) ? 1 : -1; 6259} 6260 6261int 6262main () 6263{ 6264 return find_stack_direction () < 0; 6265} 6266_ACEOF 6267rm -f conftest$ac_exeext 6268if { (ac_try="$ac_link" 6269case "(($ac_try" in 6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6271 *) ac_try_echo=$ac_try;; 6272esac 6273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6274 (eval "$ac_link") 2>&5 6275 ac_status=$? 6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6278 { (case "(($ac_try" in 6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6280 *) ac_try_echo=$ac_try;; 6281esac 6282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6283 (eval "$ac_try") 2>&5 6284 ac_status=$? 6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6286 (exit $ac_status); }; }; then 6287 ac_cv_c_stack_direction=1 6288else 6289 echo "$as_me: program exited with status $ac_status" >&5 6290echo "$as_me: failed program was:" >&5 6291sed 's/^/| /' conftest.$ac_ext >&5 6292 6293( exit $ac_status ) 6294ac_cv_c_stack_direction=-1 6295fi 6296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6297fi 6298 6299 6300fi 6301{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 6302echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 6303 6304cat >>confdefs.h <<_ACEOF 6305#define STACK_DIRECTION $ac_cv_c_stack_direction 6306_ACEOF 6307 6308 6309fi 6310 6311 6312 6313for ac_header in stdlib.h unistd.h 6314do 6315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6317 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6320 echo $ECHO_N "(cached) $ECHO_C" >&6 6321fi 6322ac_res=`eval echo '${'$as_ac_Header'}'` 6323 { echo "$as_me:$LINENO: result: $ac_res" >&5 6324echo "${ECHO_T}$ac_res" >&6; } 6325else 6326 # Is the header compilable? 6327{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6329cat >conftest.$ac_ext <<_ACEOF 6330/* confdefs.h. */ 6331_ACEOF 6332cat confdefs.h >>conftest.$ac_ext 6333cat >>conftest.$ac_ext <<_ACEOF 6334/* end confdefs.h. */ 6335$ac_includes_default 6336#include <$ac_header> 6337_ACEOF 6338rm -f conftest.$ac_objext 6339if { (ac_try="$ac_compile" 6340case "(($ac_try" in 6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6342 *) ac_try_echo=$ac_try;; 6343esac 6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6345 (eval "$ac_compile") 2>conftest.er1 6346 ac_status=$? 6347 grep -v '^ *+' conftest.er1 >conftest.err 6348 rm -f conftest.er1 6349 cat conftest.err >&5 6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6351 (exit $ac_status); } && { 6352 test -z "$ac_c_werror_flag" || 6353 test ! -s conftest.err 6354 } && test -s conftest.$ac_objext; then 6355 ac_header_compiler=yes 6356else 6357 echo "$as_me: failed program was:" >&5 6358sed 's/^/| /' conftest.$ac_ext >&5 6359 6360 ac_header_compiler=no 6361fi 6362 6363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6364{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6365echo "${ECHO_T}$ac_header_compiler" >&6; } 6366 6367# Is the header present? 6368{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6370cat >conftest.$ac_ext <<_ACEOF 6371/* confdefs.h. */ 6372_ACEOF 6373cat confdefs.h >>conftest.$ac_ext 6374cat >>conftest.$ac_ext <<_ACEOF 6375/* end confdefs.h. */ 6376#include <$ac_header> 6377_ACEOF 6378if { (ac_try="$ac_cpp conftest.$ac_ext" 6379case "(($ac_try" in 6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6381 *) ac_try_echo=$ac_try;; 6382esac 6383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6385 ac_status=$? 6386 grep -v '^ *+' conftest.er1 >conftest.err 6387 rm -f conftest.er1 6388 cat conftest.err >&5 6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6390 (exit $ac_status); } >/dev/null && { 6391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6392 test ! -s conftest.err 6393 }; then 6394 ac_header_preproc=yes 6395else 6396 echo "$as_me: failed program was:" >&5 6397sed 's/^/| /' conftest.$ac_ext >&5 6398 6399 ac_header_preproc=no 6400fi 6401 6402rm -f conftest.err conftest.$ac_ext 6403{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6404echo "${ECHO_T}$ac_header_preproc" >&6; } 6405 6406# So? What about this header? 6407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6408 yes:no: ) 6409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6410echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6412echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6413 ac_header_preproc=yes 6414 ;; 6415 no:yes:* ) 6416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6417echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6419echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6421echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6423echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6425echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6427echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6428 6429 ;; 6430esac 6431{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6434 echo $ECHO_N "(cached) $ECHO_C" >&6 6435else 6436 eval "$as_ac_Header=\$ac_header_preproc" 6437fi 6438ac_res=`eval echo '${'$as_ac_Header'}'` 6439 { echo "$as_me:$LINENO: result: $ac_res" >&5 6440echo "${ECHO_T}$ac_res" >&6; } 6441 6442fi 6443if test `eval echo '${'$as_ac_Header'}'` = yes; then 6444 cat >>confdefs.h <<_ACEOF 6445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6446_ACEOF 6447 6448fi 6449 6450done 6451 6452 6453for ac_func in getpagesize 6454do 6455as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6456{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6457echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6458if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6459 echo $ECHO_N "(cached) $ECHO_C" >&6 6460else 6461 cat >conftest.$ac_ext <<_ACEOF 6462/* confdefs.h. */ 6463_ACEOF 6464cat confdefs.h >>conftest.$ac_ext 6465cat >>conftest.$ac_ext <<_ACEOF 6466/* end confdefs.h. */ 6467/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6468 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6469#define $ac_func innocuous_$ac_func 6470 6471/* System header to define __stub macros and hopefully few prototypes, 6472 which can conflict with char $ac_func (); below. 6473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6474 <limits.h> exists even on freestanding compilers. */ 6475 6476#ifdef __STDC__ 6477# include <limits.h> 6478#else 6479# include <assert.h> 6480#endif 6481 6482#undef $ac_func 6483 6484/* Override any GCC internal prototype to avoid an error. 6485 Use char because int might match the return type of a GCC 6486 builtin and then its argument prototype would still apply. */ 6487#ifdef __cplusplus 6488extern "C" 6489#endif 6490char $ac_func (); 6491/* The GNU C library defines this for functions which it implements 6492 to always fail with ENOSYS. Some functions are actually named 6493 something starting with __ and the normal name is an alias. */ 6494#if defined __stub_$ac_func || defined __stub___$ac_func 6495choke me 6496#endif 6497 6498int 6499main () 6500{ 6501return $ac_func (); 6502 ; 6503 return 0; 6504} 6505_ACEOF 6506rm -f conftest.$ac_objext conftest$ac_exeext 6507if { (ac_try="$ac_link" 6508case "(($ac_try" in 6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6510 *) ac_try_echo=$ac_try;; 6511esac 6512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6513 (eval "$ac_link") 2>conftest.er1 6514 ac_status=$? 6515 grep -v '^ *+' conftest.er1 >conftest.err 6516 rm -f conftest.er1 6517 cat conftest.err >&5 6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6519 (exit $ac_status); } && { 6520 test -z "$ac_c_werror_flag" || 6521 test ! -s conftest.err 6522 } && test -s conftest$ac_exeext && 6523 $as_test_x conftest$ac_exeext; then 6524 eval "$as_ac_var=yes" 6525else 6526 echo "$as_me: failed program was:" >&5 6527sed 's/^/| /' conftest.$ac_ext >&5 6528 6529 eval "$as_ac_var=no" 6530fi 6531 6532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6533 conftest$ac_exeext conftest.$ac_ext 6534fi 6535ac_res=`eval echo '${'$as_ac_var'}'` 6536 { echo "$as_me:$LINENO: result: $ac_res" >&5 6537echo "${ECHO_T}$ac_res" >&6; } 6538if test `eval echo '${'$as_ac_var'}'` = yes; then 6539 cat >>confdefs.h <<_ACEOF 6540#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6541_ACEOF 6542 6543fi 6544done 6545 6546{ echo "$as_me:$LINENO: checking for working mmap" >&5 6547echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 6548if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 6549 echo $ECHO_N "(cached) $ECHO_C" >&6 6550else 6551 if test "$cross_compiling" = yes; then 6552 ac_cv_func_mmap_fixed_mapped=no 6553else 6554 cat >conftest.$ac_ext <<_ACEOF 6555/* confdefs.h. */ 6556_ACEOF 6557cat confdefs.h >>conftest.$ac_ext 6558cat >>conftest.$ac_ext <<_ACEOF 6559/* end confdefs.h. */ 6560$ac_includes_default 6561/* malloc might have been renamed as rpl_malloc. */ 6562#undef malloc 6563 6564/* Thanks to Mike Haertel and Jim Avera for this test. 6565 Here is a matrix of mmap possibilities: 6566 mmap private not fixed 6567 mmap private fixed at somewhere currently unmapped 6568 mmap private fixed at somewhere already mapped 6569 mmap shared not fixed 6570 mmap shared fixed at somewhere currently unmapped 6571 mmap shared fixed at somewhere already mapped 6572 For private mappings, we should verify that changes cannot be read() 6573 back from the file, nor mmap's back from the file at a different 6574 address. (There have been systems where private was not correctly 6575 implemented like the infamous i386 svr4.0, and systems where the 6576 VM page cache was not coherent with the file system buffer cache 6577 like early versions of FreeBSD and possibly contemporary NetBSD.) 6578 For shared mappings, we should conversely verify that changes get 6579 propagated back to all the places they're supposed to be. 6580 6581 Grep wants private fixed already mapped. 6582 The main things grep needs to know about mmap are: 6583 * does it exist and is it safe to write into the mmap'd area 6584 * how to use it (BSD variants) */ 6585 6586#include <fcntl.h> 6587#include <sys/mman.h> 6588 6589#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 6590char *malloc (); 6591#endif 6592 6593/* This mess was copied from the GNU getpagesize.h. */ 6594#ifndef HAVE_GETPAGESIZE 6595/* Assume that all systems that can run configure have sys/param.h. */ 6596# ifndef HAVE_SYS_PARAM_H 6597# define HAVE_SYS_PARAM_H 1 6598# endif 6599 6600# ifdef _SC_PAGESIZE 6601# define getpagesize() sysconf(_SC_PAGESIZE) 6602# else /* no _SC_PAGESIZE */ 6603# ifdef HAVE_SYS_PARAM_H 6604# include <sys/param.h> 6605# ifdef EXEC_PAGESIZE 6606# define getpagesize() EXEC_PAGESIZE 6607# else /* no EXEC_PAGESIZE */ 6608# ifdef NBPG 6609# define getpagesize() NBPG * CLSIZE 6610# ifndef CLSIZE 6611# define CLSIZE 1 6612# endif /* no CLSIZE */ 6613# else /* no NBPG */ 6614# ifdef NBPC 6615# define getpagesize() NBPC 6616# else /* no NBPC */ 6617# ifdef PAGESIZE 6618# define getpagesize() PAGESIZE 6619# endif /* PAGESIZE */ 6620# endif /* no NBPC */ 6621# endif /* no NBPG */ 6622# endif /* no EXEC_PAGESIZE */ 6623# else /* no HAVE_SYS_PARAM_H */ 6624# define getpagesize() 8192 /* punt totally */ 6625# endif /* no HAVE_SYS_PARAM_H */ 6626# endif /* no _SC_PAGESIZE */ 6627 6628#endif /* no HAVE_GETPAGESIZE */ 6629 6630int 6631main () 6632{ 6633 char *data, *data2, *data3; 6634 int i, pagesize; 6635 int fd; 6636 6637 pagesize = getpagesize (); 6638 6639 /* First, make a file with some known garbage in it. */ 6640 data = (char *) malloc (pagesize); 6641 if (!data) 6642 return 1; 6643 for (i = 0; i < pagesize; ++i) 6644 *(data + i) = rand (); 6645 umask (0); 6646 fd = creat ("conftest.mmap", 0600); 6647 if (fd < 0) 6648 return 1; 6649 if (write (fd, data, pagesize) != pagesize) 6650 return 1; 6651 close (fd); 6652 6653 /* Next, try to mmap the file at a fixed address which already has 6654 something else allocated at it. If we can, also make sure that 6655 we see the same garbage. */ 6656 fd = open ("conftest.mmap", O_RDWR); 6657 if (fd < 0) 6658 return 1; 6659 data2 = (char *) malloc (2 * pagesize); 6660 if (!data2) 6661 return 1; 6662 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 6663 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 6664 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 6665 return 1; 6666 for (i = 0; i < pagesize; ++i) 6667 if (*(data + i) != *(data2 + i)) 6668 return 1; 6669 6670 /* Finally, make sure that changes to the mapped area do not 6671 percolate back to the file as seen by read(). (This is a bug on 6672 some variants of i386 svr4.0.) */ 6673 for (i = 0; i < pagesize; ++i) 6674 *(data2 + i) = *(data2 + i) + 1; 6675 data3 = (char *) malloc (pagesize); 6676 if (!data3) 6677 return 1; 6678 if (read (fd, data3, pagesize) != pagesize) 6679 return 1; 6680 for (i = 0; i < pagesize; ++i) 6681 if (*(data + i) != *(data3 + i)) 6682 return 1; 6683 close (fd); 6684 return 0; 6685} 6686_ACEOF 6687rm -f conftest$ac_exeext 6688if { (ac_try="$ac_link" 6689case "(($ac_try" in 6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6691 *) ac_try_echo=$ac_try;; 6692esac 6693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6694 (eval "$ac_link") 2>&5 6695 ac_status=$? 6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6698 { (case "(($ac_try" in 6699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6700 *) ac_try_echo=$ac_try;; 6701esac 6702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6703 (eval "$ac_try") 2>&5 6704 ac_status=$? 6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6706 (exit $ac_status); }; }; then 6707 ac_cv_func_mmap_fixed_mapped=yes 6708else 6709 echo "$as_me: program exited with status $ac_status" >&5 6710echo "$as_me: failed program was:" >&5 6711sed 's/^/| /' conftest.$ac_ext >&5 6712 6713( exit $ac_status ) 6714ac_cv_func_mmap_fixed_mapped=no 6715fi 6716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6717fi 6718 6719 6720fi 6721{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 6722echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 6723if test $ac_cv_func_mmap_fixed_mapped = yes; then 6724 6725cat >>confdefs.h <<\_ACEOF 6726#define HAVE_MMAP 1 6727_ACEOF 6728 6729fi 6730rm -f conftest.mmap 6731 6732 6733 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 6734echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } 6735if test "${ac_cv_gnu_library_2_1+set}" = set; then 6736 echo $ECHO_N "(cached) $ECHO_C" >&6 6737else 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 6745#include <features.h> 6746#ifdef __GNU_LIBRARY__ 6747 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 6748 Lucky GNU user 6749 #endif 6750#endif 6751 6752_ACEOF 6753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6754 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 6755 ac_cv_gnu_library_2_1=yes 6756else 6757 ac_cv_gnu_library_2_1=no 6758fi 6759rm -f conftest* 6760 6761 6762 6763fi 6764{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 6765echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } 6766 6767 GLIBC21="$ac_cv_gnu_library_2_1" 6768 6769 6770 6771 6772 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 6773echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } 6774if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 6775 echo $ECHO_N "(cached) $ECHO_C" >&6 6776else 6777 6778 if test "$cross_compiling" = yes; then 6779 6780 # Guess based on the CPU. 6781 case "$host_cpu" in 6782 alpha* | i3456786 | m68k | s390*) 6783 gt_cv_int_divbyzero_sigfpe="guessing yes";; 6784 *) 6785 gt_cv_int_divbyzero_sigfpe="guessing no";; 6786 esac 6787 6788else 6789 cat >conftest.$ac_ext <<_ACEOF 6790/* confdefs.h. */ 6791_ACEOF 6792cat confdefs.h >>conftest.$ac_ext 6793cat >>conftest.$ac_ext <<_ACEOF 6794/* end confdefs.h. */ 6795 6796#include <stdlib.h> 6797#include <signal.h> 6798 6799static void 6800#ifdef __cplusplus 6801sigfpe_handler (int sig) 6802#else 6803sigfpe_handler (sig) int sig; 6804#endif 6805{ 6806 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 6807 exit (sig != SIGFPE); 6808} 6809 6810int x = 1; 6811int y = 0; 6812int z; 6813int nan; 6814 6815int main () 6816{ 6817 signal (SIGFPE, sigfpe_handler); 6818/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 6819#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 6820 signal (SIGTRAP, sigfpe_handler); 6821#endif 6822/* Linux/SPARC yields signal SIGILL. */ 6823#if defined (__sparc__) && defined (__linux__) 6824 signal (SIGILL, sigfpe_handler); 6825#endif 6826 6827 z = x / y; 6828 nan = y / y; 6829 exit (1); 6830} 6831 6832_ACEOF 6833rm -f conftest$ac_exeext 6834if { (ac_try="$ac_link" 6835case "(($ac_try" in 6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6837 *) ac_try_echo=$ac_try;; 6838esac 6839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6840 (eval "$ac_link") 2>&5 6841 ac_status=$? 6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6844 { (case "(($ac_try" in 6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6846 *) ac_try_echo=$ac_try;; 6847esac 6848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6849 (eval "$ac_try") 2>&5 6850 ac_status=$? 6851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6852 (exit $ac_status); }; }; then 6853 gt_cv_int_divbyzero_sigfpe=yes 6854else 6855 echo "$as_me: program exited with status $ac_status" >&5 6856echo "$as_me: failed program was:" >&5 6857sed 's/^/| /' conftest.$ac_ext >&5 6858 6859( exit $ac_status ) 6860gt_cv_int_divbyzero_sigfpe=no 6861fi 6862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6863fi 6864 6865 6866 6867fi 6868{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 6869echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } 6870 case "$gt_cv_int_divbyzero_sigfpe" in 6871 *yes) value=1;; 6872 *) value=0;; 6873 esac 6874 6875cat >>confdefs.h <<_ACEOF 6876#define INTDIV0_RAISES_SIGFPE $value 6877_ACEOF 6878 6879 6880 6881 { echo "$as_me:$LINENO: checking for unsigned long long" >&5 6882echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } 6883if test "${ac_cv_type_unsigned_long_long+set}" = set; then 6884 echo $ECHO_N "(cached) $ECHO_C" >&6 6885else 6886 cat >conftest.$ac_ext <<_ACEOF 6887/* confdefs.h. */ 6888_ACEOF 6889cat confdefs.h >>conftest.$ac_ext 6890cat >>conftest.$ac_ext <<_ACEOF 6891/* end confdefs.h. */ 6892unsigned long long ull = 1ULL; int i = 63; 6893int 6894main () 6895{ 6896unsigned long long ullmax = (unsigned long long) -1; 6897 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 6898 ; 6899 return 0; 6900} 6901_ACEOF 6902rm -f conftest.$ac_objext conftest$ac_exeext 6903if { (ac_try="$ac_link" 6904case "(($ac_try" in 6905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6906 *) ac_try_echo=$ac_try;; 6907esac 6908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6909 (eval "$ac_link") 2>conftest.er1 6910 ac_status=$? 6911 grep -v '^ *+' conftest.er1 >conftest.err 6912 rm -f conftest.er1 6913 cat conftest.err >&5 6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6915 (exit $ac_status); } && { 6916 test -z "$ac_c_werror_flag" || 6917 test ! -s conftest.err 6918 } && test -s conftest$ac_exeext && 6919 $as_test_x conftest$ac_exeext; then 6920 ac_cv_type_unsigned_long_long=yes 6921else 6922 echo "$as_me: failed program was:" >&5 6923sed 's/^/| /' conftest.$ac_ext >&5 6924 6925 ac_cv_type_unsigned_long_long=no 6926fi 6927 6928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6929 conftest$ac_exeext conftest.$ac_ext 6930fi 6931{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 6932echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } 6933 if test $ac_cv_type_unsigned_long_long = yes; then 6934 6935cat >>confdefs.h <<\_ACEOF 6936#define HAVE_UNSIGNED_LONG_LONG 1 6937_ACEOF 6938 6939 fi 6940 6941 6942 6943 6944 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 6945 6946 test $ac_cv_type_unsigned_long_long = yes \ 6947 && ac_type='unsigned long long' \ 6948 || ac_type='unsigned long' 6949 6950cat >>confdefs.h <<_ACEOF 6951#define uintmax_t $ac_type 6952_ACEOF 6953 6954 else 6955 6956cat >>confdefs.h <<\_ACEOF 6957#define HAVE_UINTMAX_T 1 6958_ACEOF 6959 6960 fi 6961 6962 6963 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 6964echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 6965if test "${gt_cv_header_inttypes_h+set}" = set; then 6966 echo $ECHO_N "(cached) $ECHO_C" >&6 6967else 6968 6969 cat >conftest.$ac_ext <<_ACEOF 6970/* confdefs.h. */ 6971_ACEOF 6972cat confdefs.h >>conftest.$ac_ext 6973cat >>conftest.$ac_ext <<_ACEOF 6974/* end confdefs.h. */ 6975#include <sys/types.h> 6976#include <inttypes.h> 6977int 6978main () 6979{ 6980 6981 ; 6982 return 0; 6983} 6984_ACEOF 6985rm -f conftest.$ac_objext 6986if { (ac_try="$ac_compile" 6987case "(($ac_try" in 6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6989 *) ac_try_echo=$ac_try;; 6990esac 6991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6992 (eval "$ac_compile") 2>conftest.er1 6993 ac_status=$? 6994 grep -v '^ *+' conftest.er1 >conftest.err 6995 rm -f conftest.er1 6996 cat conftest.err >&5 6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6998 (exit $ac_status); } && { 6999 test -z "$ac_c_werror_flag" || 7000 test ! -s conftest.err 7001 } && test -s conftest.$ac_objext; then 7002 gt_cv_header_inttypes_h=yes 7003else 7004 echo "$as_me: failed program was:" >&5 7005sed 's/^/| /' conftest.$ac_ext >&5 7006 7007 gt_cv_header_inttypes_h=no 7008fi 7009 7010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7011 7012fi 7013{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 7014echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } 7015 if test $gt_cv_header_inttypes_h = yes; then 7016 7017cat >>confdefs.h <<_ACEOF 7018#define HAVE_INTTYPES_H 1 7019_ACEOF 7020 7021 fi 7022 7023 7024 7025 if test $gt_cv_header_inttypes_h = yes; then 7026 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 7027echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } 7028if test "${gt_cv_inttypes_pri_broken+set}" = set; then 7029 echo $ECHO_N "(cached) $ECHO_C" >&6 7030else 7031 7032 cat >conftest.$ac_ext <<_ACEOF 7033/* confdefs.h. */ 7034_ACEOF 7035cat confdefs.h >>conftest.$ac_ext 7036cat >>conftest.$ac_ext <<_ACEOF 7037/* end confdefs.h. */ 7038#include <inttypes.h> 7039#ifdef PRId32 7040char *p = PRId32; 7041#endif 7042 7043int 7044main () 7045{ 7046 7047 ; 7048 return 0; 7049} 7050_ACEOF 7051rm -f conftest.$ac_objext 7052if { (ac_try="$ac_compile" 7053case "(($ac_try" in 7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7055 *) ac_try_echo=$ac_try;; 7056esac 7057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7058 (eval "$ac_compile") 2>conftest.er1 7059 ac_status=$? 7060 grep -v '^ *+' conftest.er1 >conftest.err 7061 rm -f conftest.er1 7062 cat conftest.err >&5 7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7064 (exit $ac_status); } && { 7065 test -z "$ac_c_werror_flag" || 7066 test ! -s conftest.err 7067 } && test -s conftest.$ac_objext; then 7068 gt_cv_inttypes_pri_broken=no 7069else 7070 echo "$as_me: failed program was:" >&5 7071sed 's/^/| /' conftest.$ac_ext >&5 7072 7073 gt_cv_inttypes_pri_broken=yes 7074fi 7075 7076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7077 7078fi 7079{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 7080echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } 7081 fi 7082 if test "$gt_cv_inttypes_pri_broken" = yes; then 7083 7084cat >>confdefs.h <<_ACEOF 7085#define PRI_MACROS_BROKEN 1 7086_ACEOF 7087 7088 fi 7089 7090 7091 7092for ac_header in stdint.h 7093do 7094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7096 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7099 echo $ECHO_N "(cached) $ECHO_C" >&6 7100fi 7101ac_res=`eval echo '${'$as_ac_Header'}'` 7102 { echo "$as_me:$LINENO: result: $ac_res" >&5 7103echo "${ECHO_T}$ac_res" >&6; } 7104else 7105 # Is the header compilable? 7106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7108cat >conftest.$ac_ext <<_ACEOF 7109/* confdefs.h. */ 7110_ACEOF 7111cat confdefs.h >>conftest.$ac_ext 7112cat >>conftest.$ac_ext <<_ACEOF 7113/* end confdefs.h. */ 7114$ac_includes_default 7115#include <$ac_header> 7116_ACEOF 7117rm -f conftest.$ac_objext 7118if { (ac_try="$ac_compile" 7119case "(($ac_try" in 7120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7121 *) ac_try_echo=$ac_try;; 7122esac 7123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7124 (eval "$ac_compile") 2>conftest.er1 7125 ac_status=$? 7126 grep -v '^ *+' conftest.er1 >conftest.err 7127 rm -f conftest.er1 7128 cat conftest.err >&5 7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7130 (exit $ac_status); } && { 7131 test -z "$ac_c_werror_flag" || 7132 test ! -s conftest.err 7133 } && test -s conftest.$ac_objext; then 7134 ac_header_compiler=yes 7135else 7136 echo "$as_me: failed program was:" >&5 7137sed 's/^/| /' conftest.$ac_ext >&5 7138 7139 ac_header_compiler=no 7140fi 7141 7142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7143{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7144echo "${ECHO_T}$ac_header_compiler" >&6; } 7145 7146# Is the header present? 7147{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7149cat >conftest.$ac_ext <<_ACEOF 7150/* confdefs.h. */ 7151_ACEOF 7152cat confdefs.h >>conftest.$ac_ext 7153cat >>conftest.$ac_ext <<_ACEOF 7154/* end confdefs.h. */ 7155#include <$ac_header> 7156_ACEOF 7157if { (ac_try="$ac_cpp conftest.$ac_ext" 7158case "(($ac_try" in 7159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7160 *) ac_try_echo=$ac_try;; 7161esac 7162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7164 ac_status=$? 7165 grep -v '^ *+' conftest.er1 >conftest.err 7166 rm -f conftest.er1 7167 cat conftest.err >&5 7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7169 (exit $ac_status); } >/dev/null && { 7170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7171 test ! -s conftest.err 7172 }; then 7173 ac_header_preproc=yes 7174else 7175 echo "$as_me: failed program was:" >&5 7176sed 's/^/| /' conftest.$ac_ext >&5 7177 7178 ac_header_preproc=no 7179fi 7180 7181rm -f conftest.err conftest.$ac_ext 7182{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7183echo "${ECHO_T}$ac_header_preproc" >&6; } 7184 7185# So? What about this header? 7186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7187 yes:no: ) 7188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7192 ac_header_preproc=yes 7193 ;; 7194 no:yes:* ) 7195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7202echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7207 7208 ;; 7209esac 7210{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7213 echo $ECHO_N "(cached) $ECHO_C" >&6 7214else 7215 eval "$as_ac_Header=\$ac_header_preproc" 7216fi 7217ac_res=`eval echo '${'$as_ac_Header'}'` 7218 { echo "$as_me:$LINENO: result: $ac_res" >&5 7219echo "${ECHO_T}$ac_res" >&6; } 7220 7221fi 7222if test `eval echo '${'$as_ac_Header'}'` = yes; then 7223 cat >>confdefs.h <<_ACEOF 7224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7225_ACEOF 7226 7227fi 7228 7229done 7230 7231 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 7232echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } 7233 result= 7234 cat >conftest.$ac_ext <<_ACEOF 7235/* confdefs.h. */ 7236_ACEOF 7237cat confdefs.h >>conftest.$ac_ext 7238cat >>conftest.$ac_ext <<_ACEOF 7239/* end confdefs.h. */ 7240 7241#include <limits.h> 7242#if HAVE_STDINT_H 7243#include <stdint.h> 7244#endif 7245#ifdef SIZE_MAX 7246Found it 7247#endif 7248 7249_ACEOF 7250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7251 $EGREP "Found it" >/dev/null 2>&1; then 7252 result=yes 7253fi 7254rm -f conftest* 7255 7256 if test -z "$result"; then 7257 if test "$cross_compiling" = yes; then 7258 # Depending upon the size, compute the lo and hi bounds. 7259cat >conftest.$ac_ext <<_ACEOF 7260/* confdefs.h. */ 7261_ACEOF 7262cat confdefs.h >>conftest.$ac_ext 7263cat >>conftest.$ac_ext <<_ACEOF 7264/* end confdefs.h. */ 7265#include <stddef.h> 7266int 7267main () 7268{ 7269static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; 7270test_array [0] = 0 7271 7272 ; 7273 return 0; 7274} 7275_ACEOF 7276rm -f conftest.$ac_objext 7277if { (ac_try="$ac_compile" 7278case "(($ac_try" in 7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7280 *) ac_try_echo=$ac_try;; 7281esac 7282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7283 (eval "$ac_compile") 2>conftest.er1 7284 ac_status=$? 7285 grep -v '^ *+' conftest.er1 >conftest.err 7286 rm -f conftest.er1 7287 cat conftest.err >&5 7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7289 (exit $ac_status); } && { 7290 test -z "$ac_c_werror_flag" || 7291 test ! -s conftest.err 7292 } && test -s conftest.$ac_objext; then 7293 ac_lo=0 ac_mid=0 7294 while :; do 7295 cat >conftest.$ac_ext <<_ACEOF 7296/* confdefs.h. */ 7297_ACEOF 7298cat confdefs.h >>conftest.$ac_ext 7299cat >>conftest.$ac_ext <<_ACEOF 7300/* end confdefs.h. */ 7301#include <stddef.h> 7302int 7303main () 7304{ 7305static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 7306test_array [0] = 0 7307 7308 ; 7309 return 0; 7310} 7311_ACEOF 7312rm -f conftest.$ac_objext 7313if { (ac_try="$ac_compile" 7314case "(($ac_try" in 7315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7316 *) ac_try_echo=$ac_try;; 7317esac 7318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7319 (eval "$ac_compile") 2>conftest.er1 7320 ac_status=$? 7321 grep -v '^ *+' conftest.er1 >conftest.err 7322 rm -f conftest.er1 7323 cat conftest.err >&5 7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7325 (exit $ac_status); } && { 7326 test -z "$ac_c_werror_flag" || 7327 test ! -s conftest.err 7328 } && test -s conftest.$ac_objext; then 7329 ac_hi=$ac_mid; break 7330else 7331 echo "$as_me: failed program was:" >&5 7332sed 's/^/| /' conftest.$ac_ext >&5 7333 7334 ac_lo=`expr $ac_mid + 1` 7335 if test $ac_lo -le $ac_mid; then 7336 ac_lo= ac_hi= 7337 break 7338 fi 7339 ac_mid=`expr 2 '*' $ac_mid + 1` 7340fi 7341 7342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7343 done 7344else 7345 echo "$as_me: failed program was:" >&5 7346sed 's/^/| /' conftest.$ac_ext >&5 7347 7348 cat >conftest.$ac_ext <<_ACEOF 7349/* confdefs.h. */ 7350_ACEOF 7351cat confdefs.h >>conftest.$ac_ext 7352cat >>conftest.$ac_ext <<_ACEOF 7353/* end confdefs.h. */ 7354#include <stddef.h> 7355int 7356main () 7357{ 7358static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; 7359test_array [0] = 0 7360 7361 ; 7362 return 0; 7363} 7364_ACEOF 7365rm -f conftest.$ac_objext 7366if { (ac_try="$ac_compile" 7367case "(($ac_try" in 7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7369 *) ac_try_echo=$ac_try;; 7370esac 7371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7372 (eval "$ac_compile") 2>conftest.er1 7373 ac_status=$? 7374 grep -v '^ *+' conftest.er1 >conftest.err 7375 rm -f conftest.er1 7376 cat conftest.err >&5 7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7378 (exit $ac_status); } && { 7379 test -z "$ac_c_werror_flag" || 7380 test ! -s conftest.err 7381 } && test -s conftest.$ac_objext; then 7382 ac_hi=-1 ac_mid=-1 7383 while :; do 7384 cat >conftest.$ac_ext <<_ACEOF 7385/* confdefs.h. */ 7386_ACEOF 7387cat confdefs.h >>conftest.$ac_ext 7388cat >>conftest.$ac_ext <<_ACEOF 7389/* end confdefs.h. */ 7390#include <stddef.h> 7391int 7392main () 7393{ 7394static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; 7395test_array [0] = 0 7396 7397 ; 7398 return 0; 7399} 7400_ACEOF 7401rm -f conftest.$ac_objext 7402if { (ac_try="$ac_compile" 7403case "(($ac_try" in 7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7405 *) ac_try_echo=$ac_try;; 7406esac 7407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7408 (eval "$ac_compile") 2>conftest.er1 7409 ac_status=$? 7410 grep -v '^ *+' conftest.er1 >conftest.err 7411 rm -f conftest.er1 7412 cat conftest.err >&5 7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7414 (exit $ac_status); } && { 7415 test -z "$ac_c_werror_flag" || 7416 test ! -s conftest.err 7417 } && test -s conftest.$ac_objext; then 7418 ac_lo=$ac_mid; break 7419else 7420 echo "$as_me: failed program was:" >&5 7421sed 's/^/| /' conftest.$ac_ext >&5 7422 7423 ac_hi=`expr '(' $ac_mid ')' - 1` 7424 if test $ac_mid -le $ac_hi; then 7425 ac_lo= ac_hi= 7426 break 7427 fi 7428 ac_mid=`expr 2 '*' $ac_mid` 7429fi 7430 7431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7432 done 7433else 7434 echo "$as_me: failed program was:" >&5 7435sed 's/^/| /' conftest.$ac_ext >&5 7436 7437 ac_lo= ac_hi= 7438fi 7439 7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7441fi 7442 7443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7444# Binary search between lo and hi bounds. 7445while test "x$ac_lo" != "x$ac_hi"; do 7446 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7447 cat >conftest.$ac_ext <<_ACEOF 7448/* confdefs.h. */ 7449_ACEOF 7450cat confdefs.h >>conftest.$ac_ext 7451cat >>conftest.$ac_ext <<_ACEOF 7452/* end confdefs.h. */ 7453#include <stddef.h> 7454int 7455main () 7456{ 7457static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 7458test_array [0] = 0 7459 7460 ; 7461 return 0; 7462} 7463_ACEOF 7464rm -f conftest.$ac_objext 7465if { (ac_try="$ac_compile" 7466case "(($ac_try" in 7467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7468 *) ac_try_echo=$ac_try;; 7469esac 7470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7471 (eval "$ac_compile") 2>conftest.er1 7472 ac_status=$? 7473 grep -v '^ *+' conftest.er1 >conftest.err 7474 rm -f conftest.er1 7475 cat conftest.err >&5 7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7477 (exit $ac_status); } && { 7478 test -z "$ac_c_werror_flag" || 7479 test ! -s conftest.err 7480 } && test -s conftest.$ac_objext; then 7481 ac_hi=$ac_mid 7482else 7483 echo "$as_me: failed program was:" >&5 7484sed 's/^/| /' conftest.$ac_ext >&5 7485 7486 ac_lo=`expr '(' $ac_mid ')' + 1` 7487fi 7488 7489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7490done 7491case $ac_lo in 7492?*) res_hi=$ac_lo;; 7493'') result=? ;; 7494esac 7495else 7496 cat >conftest.$ac_ext <<_ACEOF 7497/* confdefs.h. */ 7498_ACEOF 7499cat confdefs.h >>conftest.$ac_ext 7500cat >>conftest.$ac_ext <<_ACEOF 7501/* end confdefs.h. */ 7502#include <stddef.h> 7503static long int longval () { return ~(size_t)0 / 10; } 7504static unsigned long int ulongval () { return ~(size_t)0 / 10; } 7505#include <stdio.h> 7506#include <stdlib.h> 7507int 7508main () 7509{ 7510 7511 FILE *f = fopen ("conftest.val", "w"); 7512 if (! f) 7513 return 1; 7514 if ((~(size_t)0 / 10) < 0) 7515 { 7516 long int i = longval (); 7517 if (i != (~(size_t)0 / 10)) 7518 return 1; 7519 fprintf (f, "%ld\n", i); 7520 } 7521 else 7522 { 7523 unsigned long int i = ulongval (); 7524 if (i != (~(size_t)0 / 10)) 7525 return 1; 7526 fprintf (f, "%lu\n", i); 7527 } 7528 return ferror (f) || fclose (f) != 0; 7529 7530 ; 7531 return 0; 7532} 7533_ACEOF 7534rm -f conftest$ac_exeext 7535if { (ac_try="$ac_link" 7536case "(($ac_try" in 7537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7538 *) ac_try_echo=$ac_try;; 7539esac 7540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7541 (eval "$ac_link") 2>&5 7542 ac_status=$? 7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7545 { (case "(($ac_try" in 7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7547 *) ac_try_echo=$ac_try;; 7548esac 7549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7550 (eval "$ac_try") 2>&5 7551 ac_status=$? 7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7553 (exit $ac_status); }; }; then 7554 res_hi=`cat conftest.val` 7555else 7556 echo "$as_me: program exited with status $ac_status" >&5 7557echo "$as_me: failed program was:" >&5 7558sed 's/^/| /' conftest.$ac_ext >&5 7559 7560( exit $ac_status ) 7561result=? 7562fi 7563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7564fi 7565rm -f conftest.val 7566 7567 if test "$cross_compiling" = yes; then 7568 # Depending upon the size, compute the lo and hi bounds. 7569cat >conftest.$ac_ext <<_ACEOF 7570/* confdefs.h. */ 7571_ACEOF 7572cat confdefs.h >>conftest.$ac_ext 7573cat >>conftest.$ac_ext <<_ACEOF 7574/* end confdefs.h. */ 7575#include <stddef.h> 7576int 7577main () 7578{ 7579static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; 7580test_array [0] = 0 7581 7582 ; 7583 return 0; 7584} 7585_ACEOF 7586rm -f conftest.$ac_objext 7587if { (ac_try="$ac_compile" 7588case "(($ac_try" in 7589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7590 *) ac_try_echo=$ac_try;; 7591esac 7592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7593 (eval "$ac_compile") 2>conftest.er1 7594 ac_status=$? 7595 grep -v '^ *+' conftest.er1 >conftest.err 7596 rm -f conftest.er1 7597 cat conftest.err >&5 7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7599 (exit $ac_status); } && { 7600 test -z "$ac_c_werror_flag" || 7601 test ! -s conftest.err 7602 } && test -s conftest.$ac_objext; then 7603 ac_lo=0 ac_mid=0 7604 while :; do 7605 cat >conftest.$ac_ext <<_ACEOF 7606/* confdefs.h. */ 7607_ACEOF 7608cat confdefs.h >>conftest.$ac_ext 7609cat >>conftest.$ac_ext <<_ACEOF 7610/* end confdefs.h. */ 7611#include <stddef.h> 7612int 7613main () 7614{ 7615static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 7616test_array [0] = 0 7617 7618 ; 7619 return 0; 7620} 7621_ACEOF 7622rm -f conftest.$ac_objext 7623if { (ac_try="$ac_compile" 7624case "(($ac_try" in 7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7626 *) ac_try_echo=$ac_try;; 7627esac 7628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7629 (eval "$ac_compile") 2>conftest.er1 7630 ac_status=$? 7631 grep -v '^ *+' conftest.er1 >conftest.err 7632 rm -f conftest.er1 7633 cat conftest.err >&5 7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7635 (exit $ac_status); } && { 7636 test -z "$ac_c_werror_flag" || 7637 test ! -s conftest.err 7638 } && test -s conftest.$ac_objext; then 7639 ac_hi=$ac_mid; break 7640else 7641 echo "$as_me: failed program was:" >&5 7642sed 's/^/| /' conftest.$ac_ext >&5 7643 7644 ac_lo=`expr $ac_mid + 1` 7645 if test $ac_lo -le $ac_mid; then 7646 ac_lo= ac_hi= 7647 break 7648 fi 7649 ac_mid=`expr 2 '*' $ac_mid + 1` 7650fi 7651 7652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7653 done 7654else 7655 echo "$as_me: failed program was:" >&5 7656sed 's/^/| /' conftest.$ac_ext >&5 7657 7658 cat >conftest.$ac_ext <<_ACEOF 7659/* confdefs.h. */ 7660_ACEOF 7661cat confdefs.h >>conftest.$ac_ext 7662cat >>conftest.$ac_ext <<_ACEOF 7663/* end confdefs.h. */ 7664#include <stddef.h> 7665int 7666main () 7667{ 7668static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; 7669test_array [0] = 0 7670 7671 ; 7672 return 0; 7673} 7674_ACEOF 7675rm -f conftest.$ac_objext 7676if { (ac_try="$ac_compile" 7677case "(($ac_try" in 7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7679 *) ac_try_echo=$ac_try;; 7680esac 7681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7682 (eval "$ac_compile") 2>conftest.er1 7683 ac_status=$? 7684 grep -v '^ *+' conftest.er1 >conftest.err 7685 rm -f conftest.er1 7686 cat conftest.err >&5 7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7688 (exit $ac_status); } && { 7689 test -z "$ac_c_werror_flag" || 7690 test ! -s conftest.err 7691 } && test -s conftest.$ac_objext; then 7692 ac_hi=-1 ac_mid=-1 7693 while :; do 7694 cat >conftest.$ac_ext <<_ACEOF 7695/* confdefs.h. */ 7696_ACEOF 7697cat confdefs.h >>conftest.$ac_ext 7698cat >>conftest.$ac_ext <<_ACEOF 7699/* end confdefs.h. */ 7700#include <stddef.h> 7701int 7702main () 7703{ 7704static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; 7705test_array [0] = 0 7706 7707 ; 7708 return 0; 7709} 7710_ACEOF 7711rm -f conftest.$ac_objext 7712if { (ac_try="$ac_compile" 7713case "(($ac_try" in 7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7715 *) ac_try_echo=$ac_try;; 7716esac 7717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7718 (eval "$ac_compile") 2>conftest.er1 7719 ac_status=$? 7720 grep -v '^ *+' conftest.er1 >conftest.err 7721 rm -f conftest.er1 7722 cat conftest.err >&5 7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7724 (exit $ac_status); } && { 7725 test -z "$ac_c_werror_flag" || 7726 test ! -s conftest.err 7727 } && test -s conftest.$ac_objext; then 7728 ac_lo=$ac_mid; break 7729else 7730 echo "$as_me: failed program was:" >&5 7731sed 's/^/| /' conftest.$ac_ext >&5 7732 7733 ac_hi=`expr '(' $ac_mid ')' - 1` 7734 if test $ac_mid -le $ac_hi; then 7735 ac_lo= ac_hi= 7736 break 7737 fi 7738 ac_mid=`expr 2 '*' $ac_mid` 7739fi 7740 7741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7742 done 7743else 7744 echo "$as_me: failed program was:" >&5 7745sed 's/^/| /' conftest.$ac_ext >&5 7746 7747 ac_lo= ac_hi= 7748fi 7749 7750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7751fi 7752 7753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7754# Binary search between lo and hi bounds. 7755while test "x$ac_lo" != "x$ac_hi"; do 7756 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7757 cat >conftest.$ac_ext <<_ACEOF 7758/* confdefs.h. */ 7759_ACEOF 7760cat confdefs.h >>conftest.$ac_ext 7761cat >>conftest.$ac_ext <<_ACEOF 7762/* end confdefs.h. */ 7763#include <stddef.h> 7764int 7765main () 7766{ 7767static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 7768test_array [0] = 0 7769 7770 ; 7771 return 0; 7772} 7773_ACEOF 7774rm -f conftest.$ac_objext 7775if { (ac_try="$ac_compile" 7776case "(($ac_try" in 7777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7778 *) ac_try_echo=$ac_try;; 7779esac 7780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7781 (eval "$ac_compile") 2>conftest.er1 7782 ac_status=$? 7783 grep -v '^ *+' conftest.er1 >conftest.err 7784 rm -f conftest.er1 7785 cat conftest.err >&5 7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7787 (exit $ac_status); } && { 7788 test -z "$ac_c_werror_flag" || 7789 test ! -s conftest.err 7790 } && test -s conftest.$ac_objext; then 7791 ac_hi=$ac_mid 7792else 7793 echo "$as_me: failed program was:" >&5 7794sed 's/^/| /' conftest.$ac_ext >&5 7795 7796 ac_lo=`expr '(' $ac_mid ')' + 1` 7797fi 7798 7799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7800done 7801case $ac_lo in 7802?*) res_lo=$ac_lo;; 7803'') result=? ;; 7804esac 7805else 7806 cat >conftest.$ac_ext <<_ACEOF 7807/* confdefs.h. */ 7808_ACEOF 7809cat confdefs.h >>conftest.$ac_ext 7810cat >>conftest.$ac_ext <<_ACEOF 7811/* end confdefs.h. */ 7812#include <stddef.h> 7813static long int longval () { return ~(size_t)0 % 10; } 7814static unsigned long int ulongval () { return ~(size_t)0 % 10; } 7815#include <stdio.h> 7816#include <stdlib.h> 7817int 7818main () 7819{ 7820 7821 FILE *f = fopen ("conftest.val", "w"); 7822 if (! f) 7823 return 1; 7824 if ((~(size_t)0 % 10) < 0) 7825 { 7826 long int i = longval (); 7827 if (i != (~(size_t)0 % 10)) 7828 return 1; 7829 fprintf (f, "%ld\n", i); 7830 } 7831 else 7832 { 7833 unsigned long int i = ulongval (); 7834 if (i != (~(size_t)0 % 10)) 7835 return 1; 7836 fprintf (f, "%lu\n", i); 7837 } 7838 return ferror (f) || fclose (f) != 0; 7839 7840 ; 7841 return 0; 7842} 7843_ACEOF 7844rm -f conftest$ac_exeext 7845if { (ac_try="$ac_link" 7846case "(($ac_try" in 7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7848 *) ac_try_echo=$ac_try;; 7849esac 7850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7851 (eval "$ac_link") 2>&5 7852 ac_status=$? 7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7855 { (case "(($ac_try" in 7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7857 *) ac_try_echo=$ac_try;; 7858esac 7859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7860 (eval "$ac_try") 2>&5 7861 ac_status=$? 7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7863 (exit $ac_status); }; }; then 7864 res_lo=`cat conftest.val` 7865else 7866 echo "$as_me: program exited with status $ac_status" >&5 7867echo "$as_me: failed program was:" >&5 7868sed 's/^/| /' conftest.$ac_ext >&5 7869 7870( exit $ac_status ) 7871result=? 7872fi 7873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7874fi 7875rm -f conftest.val 7876 7877 if test "$cross_compiling" = yes; then 7878 # Depending upon the size, compute the lo and hi bounds. 7879cat >conftest.$ac_ext <<_ACEOF 7880/* confdefs.h. */ 7881_ACEOF 7882cat confdefs.h >>conftest.$ac_ext 7883cat >>conftest.$ac_ext <<_ACEOF 7884/* end confdefs.h. */ 7885#include <stddef.h> 7886int 7887main () 7888{ 7889static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 7890test_array [0] = 0 7891 7892 ; 7893 return 0; 7894} 7895_ACEOF 7896rm -f conftest.$ac_objext 7897if { (ac_try="$ac_compile" 7898case "(($ac_try" in 7899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7900 *) ac_try_echo=$ac_try;; 7901esac 7902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7903 (eval "$ac_compile") 2>conftest.er1 7904 ac_status=$? 7905 grep -v '^ *+' conftest.er1 >conftest.err 7906 rm -f conftest.er1 7907 cat conftest.err >&5 7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7909 (exit $ac_status); } && { 7910 test -z "$ac_c_werror_flag" || 7911 test ! -s conftest.err 7912 } && test -s conftest.$ac_objext; then 7913 ac_lo=0 ac_mid=0 7914 while :; do 7915 cat >conftest.$ac_ext <<_ACEOF 7916/* confdefs.h. */ 7917_ACEOF 7918cat confdefs.h >>conftest.$ac_ext 7919cat >>conftest.$ac_ext <<_ACEOF 7920/* end confdefs.h. */ 7921#include <stddef.h> 7922int 7923main () 7924{ 7925static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 7926test_array [0] = 0 7927 7928 ; 7929 return 0; 7930} 7931_ACEOF 7932rm -f conftest.$ac_objext 7933if { (ac_try="$ac_compile" 7934case "(($ac_try" in 7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7936 *) ac_try_echo=$ac_try;; 7937esac 7938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7939 (eval "$ac_compile") 2>conftest.er1 7940 ac_status=$? 7941 grep -v '^ *+' conftest.er1 >conftest.err 7942 rm -f conftest.er1 7943 cat conftest.err >&5 7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7945 (exit $ac_status); } && { 7946 test -z "$ac_c_werror_flag" || 7947 test ! -s conftest.err 7948 } && test -s conftest.$ac_objext; then 7949 ac_hi=$ac_mid; break 7950else 7951 echo "$as_me: failed program was:" >&5 7952sed 's/^/| /' conftest.$ac_ext >&5 7953 7954 ac_lo=`expr $ac_mid + 1` 7955 if test $ac_lo -le $ac_mid; then 7956 ac_lo= ac_hi= 7957 break 7958 fi 7959 ac_mid=`expr 2 '*' $ac_mid + 1` 7960fi 7961 7962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7963 done 7964else 7965 echo "$as_me: failed program was:" >&5 7966sed 's/^/| /' conftest.$ac_ext >&5 7967 7968 cat >conftest.$ac_ext <<_ACEOF 7969/* confdefs.h. */ 7970_ACEOF 7971cat confdefs.h >>conftest.$ac_ext 7972cat >>conftest.$ac_ext <<_ACEOF 7973/* end confdefs.h. */ 7974#include <stddef.h> 7975int 7976main () 7977{ 7978static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 7979test_array [0] = 0 7980 7981 ; 7982 return 0; 7983} 7984_ACEOF 7985rm -f conftest.$ac_objext 7986if { (ac_try="$ac_compile" 7987case "(($ac_try" in 7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7989 *) ac_try_echo=$ac_try;; 7990esac 7991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7992 (eval "$ac_compile") 2>conftest.er1 7993 ac_status=$? 7994 grep -v '^ *+' conftest.er1 >conftest.err 7995 rm -f conftest.er1 7996 cat conftest.err >&5 7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7998 (exit $ac_status); } && { 7999 test -z "$ac_c_werror_flag" || 8000 test ! -s conftest.err 8001 } && test -s conftest.$ac_objext; then 8002 ac_hi=-1 ac_mid=-1 8003 while :; do 8004 cat >conftest.$ac_ext <<_ACEOF 8005/* confdefs.h. */ 8006_ACEOF 8007cat confdefs.h >>conftest.$ac_ext 8008cat >>conftest.$ac_ext <<_ACEOF 8009/* end confdefs.h. */ 8010#include <stddef.h> 8011int 8012main () 8013{ 8014static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 8015test_array [0] = 0 8016 8017 ; 8018 return 0; 8019} 8020_ACEOF 8021rm -f conftest.$ac_objext 8022if { (ac_try="$ac_compile" 8023case "(($ac_try" in 8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8025 *) ac_try_echo=$ac_try;; 8026esac 8027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8028 (eval "$ac_compile") 2>conftest.er1 8029 ac_status=$? 8030 grep -v '^ *+' conftest.er1 >conftest.err 8031 rm -f conftest.er1 8032 cat conftest.err >&5 8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8034 (exit $ac_status); } && { 8035 test -z "$ac_c_werror_flag" || 8036 test ! -s conftest.err 8037 } && test -s conftest.$ac_objext; then 8038 ac_lo=$ac_mid; break 8039else 8040 echo "$as_me: failed program was:" >&5 8041sed 's/^/| /' conftest.$ac_ext >&5 8042 8043 ac_hi=`expr '(' $ac_mid ')' - 1` 8044 if test $ac_mid -le $ac_hi; then 8045 ac_lo= ac_hi= 8046 break 8047 fi 8048 ac_mid=`expr 2 '*' $ac_mid` 8049fi 8050 8051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8052 done 8053else 8054 echo "$as_me: failed program was:" >&5 8055sed 's/^/| /' conftest.$ac_ext >&5 8056 8057 ac_lo= ac_hi= 8058fi 8059 8060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8061fi 8062 8063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8064# Binary search between lo and hi bounds. 8065while test "x$ac_lo" != "x$ac_hi"; do 8066 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8067 cat >conftest.$ac_ext <<_ACEOF 8068/* confdefs.h. */ 8069_ACEOF 8070cat confdefs.h >>conftest.$ac_ext 8071cat >>conftest.$ac_ext <<_ACEOF 8072/* end confdefs.h. */ 8073#include <stddef.h> 8074int 8075main () 8076{ 8077static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 8078test_array [0] = 0 8079 8080 ; 8081 return 0; 8082} 8083_ACEOF 8084rm -f conftest.$ac_objext 8085if { (ac_try="$ac_compile" 8086case "(($ac_try" in 8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8088 *) ac_try_echo=$ac_try;; 8089esac 8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8091 (eval "$ac_compile") 2>conftest.er1 8092 ac_status=$? 8093 grep -v '^ *+' conftest.er1 >conftest.err 8094 rm -f conftest.er1 8095 cat conftest.err >&5 8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8097 (exit $ac_status); } && { 8098 test -z "$ac_c_werror_flag" || 8099 test ! -s conftest.err 8100 } && test -s conftest.$ac_objext; then 8101 ac_hi=$ac_mid 8102else 8103 echo "$as_me: failed program was:" >&5 8104sed 's/^/| /' conftest.$ac_ext >&5 8105 8106 ac_lo=`expr '(' $ac_mid ')' + 1` 8107fi 8108 8109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8110done 8111case $ac_lo in 8112?*) fits_in_uint=$ac_lo;; 8113'') result=? ;; 8114esac 8115else 8116 cat >conftest.$ac_ext <<_ACEOF 8117/* confdefs.h. */ 8118_ACEOF 8119cat confdefs.h >>conftest.$ac_ext 8120cat >>conftest.$ac_ext <<_ACEOF 8121/* end confdefs.h. */ 8122#include <stddef.h> 8123static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } 8124static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 8125#include <stdio.h> 8126#include <stdlib.h> 8127int 8128main () 8129{ 8130 8131 FILE *f = fopen ("conftest.val", "w"); 8132 if (! f) 8133 return 1; 8134 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 8135 { 8136 long int i = longval (); 8137 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 8138 return 1; 8139 fprintf (f, "%ld\n", i); 8140 } 8141 else 8142 { 8143 unsigned long int i = ulongval (); 8144 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 8145 return 1; 8146 fprintf (f, "%lu\n", i); 8147 } 8148 return ferror (f) || fclose (f) != 0; 8149 8150 ; 8151 return 0; 8152} 8153_ACEOF 8154rm -f conftest$ac_exeext 8155if { (ac_try="$ac_link" 8156case "(($ac_try" in 8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8158 *) ac_try_echo=$ac_try;; 8159esac 8160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8161 (eval "$ac_link") 2>&5 8162 ac_status=$? 8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8165 { (case "(($ac_try" in 8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8167 *) ac_try_echo=$ac_try;; 8168esac 8169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8170 (eval "$ac_try") 2>&5 8171 ac_status=$? 8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8173 (exit $ac_status); }; }; then 8174 fits_in_uint=`cat conftest.val` 8175else 8176 echo "$as_me: program exited with status $ac_status" >&5 8177echo "$as_me: failed program was:" >&5 8178sed 's/^/| /' conftest.$ac_ext >&5 8179 8180( exit $ac_status ) 8181result=? 8182fi 8183rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8184fi 8185rm -f conftest.val 8186 8187 if test "$fits_in_uint" = 1; then 8188 cat >conftest.$ac_ext <<_ACEOF 8189/* confdefs.h. */ 8190_ACEOF 8191cat confdefs.h >>conftest.$ac_ext 8192cat >>conftest.$ac_ext <<_ACEOF 8193/* end confdefs.h. */ 8194#include <stddef.h> 8195 extern size_t foo; 8196 extern unsigned long foo; 8197 8198int 8199main () 8200{ 8201 8202 ; 8203 return 0; 8204} 8205_ACEOF 8206rm -f conftest.$ac_objext 8207if { (ac_try="$ac_compile" 8208case "(($ac_try" in 8209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8210 *) ac_try_echo=$ac_try;; 8211esac 8212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8213 (eval "$ac_compile") 2>conftest.er1 8214 ac_status=$? 8215 grep -v '^ *+' conftest.er1 >conftest.err 8216 rm -f conftest.er1 8217 cat conftest.err >&5 8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8219 (exit $ac_status); } && { 8220 test -z "$ac_c_werror_flag" || 8221 test ! -s conftest.err 8222 } && test -s conftest.$ac_objext; then 8223 fits_in_uint=0 8224else 8225 echo "$as_me: failed program was:" >&5 8226sed 's/^/| /' conftest.$ac_ext >&5 8227 8228 8229fi 8230 8231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8232 fi 8233 if test -z "$result"; then 8234 if test "$fits_in_uint" = 1; then 8235 result="$res_hi$res_lo"U 8236 else 8237 result="$res_hi$res_lo"UL 8238 fi 8239 else 8240 result='~(size_t)0' 8241 fi 8242 fi 8243 { echo "$as_me:$LINENO: result: $result" >&5 8244echo "${ECHO_T}$result" >&6; } 8245 if test "$result" != yes; then 8246 8247cat >>confdefs.h <<_ACEOF 8248#define SIZE_MAX $result 8249_ACEOF 8250 8251 fi 8252 8253 8254 8255 8256for ac_header in stdint.h 8257do 8258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8260 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8262if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8263 echo $ECHO_N "(cached) $ECHO_C" >&6 8264fi 8265ac_res=`eval echo '${'$as_ac_Header'}'` 8266 { echo "$as_me:$LINENO: result: $ac_res" >&5 8267echo "${ECHO_T}$ac_res" >&6; } 8268else 8269 # Is the header compilable? 8270{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8271echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8272cat >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$ac_includes_default 8279#include <$ac_header> 8280_ACEOF 8281rm -f conftest.$ac_objext 8282if { (ac_try="$ac_compile" 8283case "(($ac_try" in 8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8285 *) ac_try_echo=$ac_try;; 8286esac 8287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8288 (eval "$ac_compile") 2>conftest.er1 8289 ac_status=$? 8290 grep -v '^ *+' conftest.er1 >conftest.err 8291 rm -f conftest.er1 8292 cat conftest.err >&5 8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8294 (exit $ac_status); } && { 8295 test -z "$ac_c_werror_flag" || 8296 test ! -s conftest.err 8297 } && test -s conftest.$ac_objext; then 8298 ac_header_compiler=yes 8299else 8300 echo "$as_me: failed program was:" >&5 8301sed 's/^/| /' conftest.$ac_ext >&5 8302 8303 ac_header_compiler=no 8304fi 8305 8306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8307{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8308echo "${ECHO_T}$ac_header_compiler" >&6; } 8309 8310# Is the header present? 8311{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8313cat >conftest.$ac_ext <<_ACEOF 8314/* confdefs.h. */ 8315_ACEOF 8316cat confdefs.h >>conftest.$ac_ext 8317cat >>conftest.$ac_ext <<_ACEOF 8318/* end confdefs.h. */ 8319#include <$ac_header> 8320_ACEOF 8321if { (ac_try="$ac_cpp conftest.$ac_ext" 8322case "(($ac_try" in 8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8324 *) ac_try_echo=$ac_try;; 8325esac 8326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8328 ac_status=$? 8329 grep -v '^ *+' conftest.er1 >conftest.err 8330 rm -f conftest.er1 8331 cat conftest.err >&5 8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8333 (exit $ac_status); } >/dev/null && { 8334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8335 test ! -s conftest.err 8336 }; then 8337 ac_header_preproc=yes 8338else 8339 echo "$as_me: failed program was:" >&5 8340sed 's/^/| /' conftest.$ac_ext >&5 8341 8342 ac_header_preproc=no 8343fi 8344 8345rm -f conftest.err conftest.$ac_ext 8346{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8347echo "${ECHO_T}$ac_header_preproc" >&6; } 8348 8349# So? What about this header? 8350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8351 yes:no: ) 8352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8356 ac_header_preproc=yes 8357 ;; 8358 no:yes:* ) 8359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8362echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8366echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8371 8372 ;; 8373esac 8374{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8377 echo $ECHO_N "(cached) $ECHO_C" >&6 8378else 8379 eval "$as_ac_Header=\$ac_header_preproc" 8380fi 8381ac_res=`eval echo '${'$as_ac_Header'}'` 8382 { echo "$as_me:$LINENO: result: $ac_res" >&5 8383echo "${ECHO_T}$ac_res" >&6; } 8384 8385fi 8386if test `eval echo '${'$as_ac_Header'}'` = yes; then 8387 cat >>confdefs.h <<_ACEOF 8388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8389_ACEOF 8390 8391fi 8392 8393done 8394 8395 8396 8397 if test "X$prefix" = "XNONE"; then 8398 acl_final_prefix="$ac_default_prefix" 8399 else 8400 acl_final_prefix="$prefix" 8401 fi 8402 if test "X$exec_prefix" = "XNONE"; then 8403 acl_final_exec_prefix='${prefix}' 8404 else 8405 acl_final_exec_prefix="$exec_prefix" 8406 fi 8407 acl_save_prefix="$prefix" 8408 prefix="$acl_final_prefix" 8409 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 8410 prefix="$acl_save_prefix" 8411 8412 8413# Check whether --with-gnu-ld was given. 8414if test "${with_gnu_ld+set}" = set; then 8415 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8416else 8417 with_gnu_ld=no 8418fi 8419 8420# Prepare PATH_SEPARATOR. 8421# The user is always right. 8422if test "${PATH_SEPARATOR+set}" != set; then 8423 echo "#! /bin/sh" >conf$$.sh 8424 echo "exit 0" >>conf$$.sh 8425 chmod +x conf$$.sh 8426 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8427 PATH_SEPARATOR=';' 8428 else 8429 PATH_SEPARATOR=: 8430 fi 8431 rm -f conf$$.sh 8432fi 8433ac_prog=ld 8434if test "$GCC" = yes; then 8435 # Check if gcc -print-prog-name=ld gives a path. 8436 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 8437echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } 8438 case $host in 8439 *-*-mingw*) 8440 # gcc leaves a trailing carriage return which upsets mingw 8441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8442 *) 8443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8444 esac 8445 case $ac_prog in 8446 # Accept absolute paths. 8447 [\\/]* | [A-Za-z]:[\\/]*) 8448 re_direlt='/[^/][^/]*/\.\./' 8449 # Canonicalize the path of ld 8450 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 8451 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 8452 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 8453 done 8454 test -z "$LD" && LD="$ac_prog" 8455 ;; 8456 "") 8457 # If it fails, then pretend we aren't using GCC. 8458 ac_prog=ld 8459 ;; 8460 *) 8461 # If it is relative, then search for the first ld in PATH. 8462 with_gnu_ld=unknown 8463 ;; 8464 esac 8465elif test "$with_gnu_ld" = yes; then 8466 { echo "$as_me:$LINENO: checking for GNU ld" >&5 8467echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 8468else 8469 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 8470echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 8471fi 8472if test "${acl_cv_path_LD+set}" = set; then 8473 echo $ECHO_N "(cached) $ECHO_C" >&6 8474else 8475 if test -z "$LD"; then 8476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 8477 for ac_dir in $PATH; do 8478 test -z "$ac_dir" && ac_dir=. 8479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8480 acl_cv_path_LD="$ac_dir/$ac_prog" 8481 # Check to see if the program is GNU ld. I'd rather use --version, 8482 # but apparently some GNU ld's only accept -v. 8483 # Break only if it was the GNU/non-GNU ld that we prefer. 8484 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 8485 *GNU* | *'with BFD'*) 8486 test "$with_gnu_ld" != no && break ;; 8487 *) 8488 test "$with_gnu_ld" != yes && break ;; 8489 esac 8490 fi 8491 done 8492 IFS="$ac_save_ifs" 8493else 8494 acl_cv_path_LD="$LD" # Let the user override the test with a path. 8495fi 8496fi 8497 8498LD="$acl_cv_path_LD" 8499if test -n "$LD"; then 8500 { echo "$as_me:$LINENO: result: $LD" >&5 8501echo "${ECHO_T}$LD" >&6; } 8502else 8503 { echo "$as_me:$LINENO: result: no" >&5 8504echo "${ECHO_T}no" >&6; } 8505fi 8506test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 8507echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 8508 { (exit 1); exit 1; }; } 8509{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 8510echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 8511if test "${acl_cv_prog_gnu_ld+set}" = set; then 8512 echo $ECHO_N "(cached) $ECHO_C" >&6 8513else 8514 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 8515case `$LD -v 2>&1 </dev/null` in 8516*GNU* | *'with BFD'*) 8517 acl_cv_prog_gnu_ld=yes ;; 8518*) 8519 acl_cv_prog_gnu_ld=no ;; 8520esac 8521fi 8522{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 8523echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } 8524with_gnu_ld=$acl_cv_prog_gnu_ld 8525 8526 8527 8528 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 8529echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } 8530if test "${acl_cv_rpath+set}" = set; then 8531 echo $ECHO_N "(cached) $ECHO_C" >&6 8532else 8533 8534 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 8535 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 8536 . ./conftest.sh 8537 rm -f ./conftest.sh 8538 acl_cv_rpath=done 8539 8540fi 8541{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 8542echo "${ECHO_T}$acl_cv_rpath" >&6; } 8543 wl="$acl_cv_wl" 8544 libext="$acl_cv_libext" 8545 shlibext="$acl_cv_shlibext" 8546 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 8547 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 8548 hardcode_direct="$acl_cv_hardcode_direct" 8549 hardcode_minus_L="$acl_cv_hardcode_minus_L" 8550 # Check whether --enable-rpath was given. 8551if test "${enable_rpath+set}" = set; then 8552 enableval=$enable_rpath; : 8553else 8554 enable_rpath=yes 8555fi 8556 8557 8558 8559 8560 8561 8562 8563 8564 use_additional=yes 8565 8566 acl_save_prefix="$prefix" 8567 prefix="$acl_final_prefix" 8568 acl_save_exec_prefix="$exec_prefix" 8569 exec_prefix="$acl_final_exec_prefix" 8570 8571 eval additional_includedir=\"$includedir\" 8572 eval additional_libdir=\"$libdir\" 8573 8574 exec_prefix="$acl_save_exec_prefix" 8575 prefix="$acl_save_prefix" 8576 8577 8578# Check whether --with-libiconv-prefix was given. 8579if test "${with_libiconv_prefix+set}" = set; then 8580 withval=$with_libiconv_prefix; 8581 if test "X$withval" = "Xno"; then 8582 use_additional=no 8583 else 8584 if test "X$withval" = "X"; then 8585 8586 acl_save_prefix="$prefix" 8587 prefix="$acl_final_prefix" 8588 acl_save_exec_prefix="$exec_prefix" 8589 exec_prefix="$acl_final_exec_prefix" 8590 8591 eval additional_includedir=\"$includedir\" 8592 eval additional_libdir=\"$libdir\" 8593 8594 exec_prefix="$acl_save_exec_prefix" 8595 prefix="$acl_save_prefix" 8596 8597 else 8598 additional_includedir="$withval/include" 8599 additional_libdir="$withval/lib" 8600 fi 8601 fi 8602 8603fi 8604 8605 LIBICONV= 8606 LTLIBICONV= 8607 INCICONV= 8608 rpathdirs= 8609 ltrpathdirs= 8610 names_already_handled= 8611 names_next_round='iconv ' 8612 while test -n "$names_next_round"; do 8613 names_this_round="$names_next_round" 8614 names_next_round= 8615 for name in $names_this_round; do 8616 already_handled= 8617 for n in $names_already_handled; do 8618 if test "$n" = "$name"; then 8619 already_handled=yes 8620 break 8621 fi 8622 done 8623 if test -z "$already_handled"; then 8624 names_already_handled="$names_already_handled $name" 8625 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 8626 eval value=\"\$HAVE_LIB$uppername\" 8627 if test -n "$value"; then 8628 if test "$value" = yes; then 8629 eval value=\"\$LIB$uppername\" 8630 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 8631 eval value=\"\$LTLIB$uppername\" 8632 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 8633 else 8634 : 8635 fi 8636 else 8637 found_dir= 8638 found_la= 8639 found_so= 8640 found_a= 8641 if test $use_additional = yes; then 8642 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 8643 found_dir="$additional_libdir" 8644 found_so="$additional_libdir/lib$name.$shlibext" 8645 if test -f "$additional_libdir/lib$name.la"; then 8646 found_la="$additional_libdir/lib$name.la" 8647 fi 8648 else 8649 if test -f "$additional_libdir/lib$name.$libext"; then 8650 found_dir="$additional_libdir" 8651 found_a="$additional_libdir/lib$name.$libext" 8652 if test -f "$additional_libdir/lib$name.la"; then 8653 found_la="$additional_libdir/lib$name.la" 8654 fi 8655 fi 8656 fi 8657 fi 8658 if test "X$found_dir" = "X"; then 8659 for x in $LDFLAGS $LTLIBICONV; do 8660 8661 acl_save_prefix="$prefix" 8662 prefix="$acl_final_prefix" 8663 acl_save_exec_prefix="$exec_prefix" 8664 exec_prefix="$acl_final_exec_prefix" 8665 eval x=\"$x\" 8666 exec_prefix="$acl_save_exec_prefix" 8667 prefix="$acl_save_prefix" 8668 8669 case "$x" in 8670 -L*) 8671 dir=`echo "X$x" | sed -e 's/^X-L//'` 8672 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 8673 found_dir="$dir" 8674 found_so="$dir/lib$name.$shlibext" 8675 if test -f "$dir/lib$name.la"; then 8676 found_la="$dir/lib$name.la" 8677 fi 8678 else 8679 if test -f "$dir/lib$name.$libext"; then 8680 found_dir="$dir" 8681 found_a="$dir/lib$name.$libext" 8682 if test -f "$dir/lib$name.la"; then 8683 found_la="$dir/lib$name.la" 8684 fi 8685 fi 8686 fi 8687 ;; 8688 esac 8689 if test "X$found_dir" != "X"; then 8690 break 8691 fi 8692 done 8693 fi 8694 if test "X$found_dir" != "X"; then 8695 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 8696 if test "X$found_so" != "X"; then 8697 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 8698 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8699 else 8700 haveit= 8701 for x in $ltrpathdirs; do 8702 if test "X$x" = "X$found_dir"; then 8703 haveit=yes 8704 break 8705 fi 8706 done 8707 if test -z "$haveit"; then 8708 ltrpathdirs="$ltrpathdirs $found_dir" 8709 fi 8710 if test "$hardcode_direct" = yes; then 8711 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8712 else 8713 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 8714 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8715 haveit= 8716 for x in $rpathdirs; do 8717 if test "X$x" = "X$found_dir"; then 8718 haveit=yes 8719 break 8720 fi 8721 done 8722 if test -z "$haveit"; then 8723 rpathdirs="$rpathdirs $found_dir" 8724 fi 8725 else 8726 haveit= 8727 for x in $LDFLAGS $LIBICONV; do 8728 8729 acl_save_prefix="$prefix" 8730 prefix="$acl_final_prefix" 8731 acl_save_exec_prefix="$exec_prefix" 8732 exec_prefix="$acl_final_exec_prefix" 8733 eval x=\"$x\" 8734 exec_prefix="$acl_save_exec_prefix" 8735 prefix="$acl_save_prefix" 8736 8737 if test "X$x" = "X-L$found_dir"; then 8738 haveit=yes 8739 break 8740 fi 8741 done 8742 if test -z "$haveit"; then 8743 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 8744 fi 8745 if test "$hardcode_minus_L" != no; then 8746 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8747 else 8748 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8749 fi 8750 fi 8751 fi 8752 fi 8753 else 8754 if test "X$found_a" != "X"; then 8755 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 8756 else 8757 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 8758 fi 8759 fi 8760 additional_includedir= 8761 case "$found_dir" in 8762 */lib | */lib/) 8763 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 8764 additional_includedir="$basedir/include" 8765 ;; 8766 esac 8767 if test "X$additional_includedir" != "X"; then 8768 if test "X$additional_includedir" != "X/usr/include"; then 8769 haveit= 8770 if test "X$additional_includedir" = "X/usr/local/include"; then 8771 if test -n "$GCC"; then 8772 case $host_os in 8773 linux*) haveit=yes;; 8774 esac 8775 fi 8776 fi 8777 if test -z "$haveit"; then 8778 for x in $CPPFLAGS $INCICONV; do 8779 8780 acl_save_prefix="$prefix" 8781 prefix="$acl_final_prefix" 8782 acl_save_exec_prefix="$exec_prefix" 8783 exec_prefix="$acl_final_exec_prefix" 8784 eval x=\"$x\" 8785 exec_prefix="$acl_save_exec_prefix" 8786 prefix="$acl_save_prefix" 8787 8788 if test "X$x" = "X-I$additional_includedir"; then 8789 haveit=yes 8790 break 8791 fi 8792 done 8793 if test -z "$haveit"; then 8794 if test -d "$additional_includedir"; then 8795 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 8796 fi 8797 fi 8798 fi 8799 fi 8800 fi 8801 if test -n "$found_la"; then 8802 save_libdir="$libdir" 8803 case "$found_la" in 8804 */* | *\\*) . "$found_la" ;; 8805 *) . "./$found_la" ;; 8806 esac 8807 libdir="$save_libdir" 8808 for dep in $dependency_libs; do 8809 case "$dep" in 8810 -L*) 8811 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8812 if test "X$additional_libdir" != "X/usr/lib"; then 8813 haveit= 8814 if test "X$additional_libdir" = "X/usr/local/lib"; then 8815 if test -n "$GCC"; then 8816 case $host_os in 8817 linux*) haveit=yes;; 8818 esac 8819 fi 8820 fi 8821 if test -z "$haveit"; then 8822 haveit= 8823 for x in $LDFLAGS $LIBICONV; do 8824 8825 acl_save_prefix="$prefix" 8826 prefix="$acl_final_prefix" 8827 acl_save_exec_prefix="$exec_prefix" 8828 exec_prefix="$acl_final_exec_prefix" 8829 eval x=\"$x\" 8830 exec_prefix="$acl_save_exec_prefix" 8831 prefix="$acl_save_prefix" 8832 8833 if test "X$x" = "X-L$additional_libdir"; then 8834 haveit=yes 8835 break 8836 fi 8837 done 8838 if test -z "$haveit"; then 8839 if test -d "$additional_libdir"; then 8840 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 8841 fi 8842 fi 8843 haveit= 8844 for x in $LDFLAGS $LTLIBICONV; do 8845 8846 acl_save_prefix="$prefix" 8847 prefix="$acl_final_prefix" 8848 acl_save_exec_prefix="$exec_prefix" 8849 exec_prefix="$acl_final_exec_prefix" 8850 eval x=\"$x\" 8851 exec_prefix="$acl_save_exec_prefix" 8852 prefix="$acl_save_prefix" 8853 8854 if test "X$x" = "X-L$additional_libdir"; then 8855 haveit=yes 8856 break 8857 fi 8858 done 8859 if test -z "$haveit"; then 8860 if test -d "$additional_libdir"; then 8861 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 8862 fi 8863 fi 8864 fi 8865 fi 8866 ;; 8867 -R*) 8868 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8869 if test "$enable_rpath" != no; then 8870 haveit= 8871 for x in $rpathdirs; do 8872 if test "X$x" = "X$dir"; then 8873 haveit=yes 8874 break 8875 fi 8876 done 8877 if test -z "$haveit"; then 8878 rpathdirs="$rpathdirs $dir" 8879 fi 8880 haveit= 8881 for x in $ltrpathdirs; do 8882 if test "X$x" = "X$dir"; then 8883 haveit=yes 8884 break 8885 fi 8886 done 8887 if test -z "$haveit"; then 8888 ltrpathdirs="$ltrpathdirs $dir" 8889 fi 8890 fi 8891 ;; 8892 -l*) 8893 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8894 ;; 8895 *.la) 8896 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8897 ;; 8898 *) 8899 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 8900 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 8901 ;; 8902 esac 8903 done 8904 fi 8905 else 8906 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8907 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 8908 fi 8909 fi 8910 fi 8911 done 8912 done 8913 if test "X$rpathdirs" != "X"; then 8914 if test -n "$hardcode_libdir_separator"; then 8915 alldirs= 8916 for found_dir in $rpathdirs; do 8917 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 8918 done 8919 acl_save_libdir="$libdir" 8920 libdir="$alldirs" 8921 eval flag=\"$hardcode_libdir_flag_spec\" 8922 libdir="$acl_save_libdir" 8923 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8924 else 8925 for found_dir in $rpathdirs; do 8926 acl_save_libdir="$libdir" 8927 libdir="$found_dir" 8928 eval flag=\"$hardcode_libdir_flag_spec\" 8929 libdir="$acl_save_libdir" 8930 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8931 done 8932 fi 8933 fi 8934 if test "X$ltrpathdirs" != "X"; then 8935 for found_dir in $ltrpathdirs; do 8936 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 8937 done 8938 fi 8939 8940 8941 8942 8943 8944 8945 8946 8947 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 8948echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } 8949if test "${ac_cv_type_ptrdiff_t+set}" = set; then 8950 echo $ECHO_N "(cached) $ECHO_C" >&6 8951else 8952 cat >conftest.$ac_ext <<_ACEOF 8953/* confdefs.h. */ 8954_ACEOF 8955cat confdefs.h >>conftest.$ac_ext 8956cat >>conftest.$ac_ext <<_ACEOF 8957/* end confdefs.h. */ 8958$ac_includes_default 8959typedef ptrdiff_t ac__type_new_; 8960int 8961main () 8962{ 8963if ((ac__type_new_ *) 0) 8964 return 0; 8965if (sizeof (ac__type_new_)) 8966 return 0; 8967 ; 8968 return 0; 8969} 8970_ACEOF 8971rm -f conftest.$ac_objext 8972if { (ac_try="$ac_compile" 8973case "(($ac_try" in 8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8975 *) ac_try_echo=$ac_try;; 8976esac 8977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8978 (eval "$ac_compile") 2>conftest.er1 8979 ac_status=$? 8980 grep -v '^ *+' conftest.er1 >conftest.err 8981 rm -f conftest.er1 8982 cat conftest.err >&5 8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8984 (exit $ac_status); } && { 8985 test -z "$ac_c_werror_flag" || 8986 test ! -s conftest.err 8987 } && test -s conftest.$ac_objext; then 8988 ac_cv_type_ptrdiff_t=yes 8989else 8990 echo "$as_me: failed program was:" >&5 8991sed 's/^/| /' conftest.$ac_ext >&5 8992 8993 ac_cv_type_ptrdiff_t=no 8994fi 8995 8996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8997fi 8998{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 8999echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } 9000if test $ac_cv_type_ptrdiff_t = yes; then 9001 : 9002else 9003 9004cat >>confdefs.h <<\_ACEOF 9005#define ptrdiff_t long 9006_ACEOF 9007 9008 9009fi 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 9022stdlib.h string.h unistd.h sys/param.h 9023do 9024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9026 { echo "$as_me:$LINENO: checking for $ac_header" >&5 9027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9029 echo $ECHO_N "(cached) $ECHO_C" >&6 9030fi 9031ac_res=`eval echo '${'$as_ac_Header'}'` 9032 { echo "$as_me:$LINENO: result: $ac_res" >&5 9033echo "${ECHO_T}$ac_res" >&6; } 9034else 9035 # Is the header compilable? 9036{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 9037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 9038cat >conftest.$ac_ext <<_ACEOF 9039/* confdefs.h. */ 9040_ACEOF 9041cat confdefs.h >>conftest.$ac_ext 9042cat >>conftest.$ac_ext <<_ACEOF 9043/* end confdefs.h. */ 9044$ac_includes_default 9045#include <$ac_header> 9046_ACEOF 9047rm -f conftest.$ac_objext 9048if { (ac_try="$ac_compile" 9049case "(($ac_try" in 9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9051 *) ac_try_echo=$ac_try;; 9052esac 9053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9054 (eval "$ac_compile") 2>conftest.er1 9055 ac_status=$? 9056 grep -v '^ *+' conftest.er1 >conftest.err 9057 rm -f conftest.er1 9058 cat conftest.err >&5 9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9060 (exit $ac_status); } && { 9061 test -z "$ac_c_werror_flag" || 9062 test ! -s conftest.err 9063 } && test -s conftest.$ac_objext; then 9064 ac_header_compiler=yes 9065else 9066 echo "$as_me: failed program was:" >&5 9067sed 's/^/| /' conftest.$ac_ext >&5 9068 9069 ac_header_compiler=no 9070fi 9071 9072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9073{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9074echo "${ECHO_T}$ac_header_compiler" >&6; } 9075 9076# Is the header present? 9077{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 9078echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 9079cat >conftest.$ac_ext <<_ACEOF 9080/* confdefs.h. */ 9081_ACEOF 9082cat confdefs.h >>conftest.$ac_ext 9083cat >>conftest.$ac_ext <<_ACEOF 9084/* end confdefs.h. */ 9085#include <$ac_header> 9086_ACEOF 9087if { (ac_try="$ac_cpp conftest.$ac_ext" 9088case "(($ac_try" in 9089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9090 *) ac_try_echo=$ac_try;; 9091esac 9092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9094 ac_status=$? 9095 grep -v '^ *+' conftest.er1 >conftest.err 9096 rm -f conftest.er1 9097 cat conftest.err >&5 9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9099 (exit $ac_status); } >/dev/null && { 9100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 9101 test ! -s conftest.err 9102 }; then 9103 ac_header_preproc=yes 9104else 9105 echo "$as_me: failed program was:" >&5 9106sed 's/^/| /' conftest.$ac_ext >&5 9107 9108 ac_header_preproc=no 9109fi 9110 9111rm -f conftest.err conftest.$ac_ext 9112{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9113echo "${ECHO_T}$ac_header_preproc" >&6; } 9114 9115# So? What about this header? 9116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9117 yes:no: ) 9118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9119echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9121echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9122 ac_header_preproc=yes 9123 ;; 9124 no:yes:* ) 9125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9126echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9128echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9130echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9132echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9134echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9136echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9137 9138 ;; 9139esac 9140{ echo "$as_me:$LINENO: checking for $ac_header" >&5 9141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9143 echo $ECHO_N "(cached) $ECHO_C" >&6 9144else 9145 eval "$as_ac_Header=\$ac_header_preproc" 9146fi 9147ac_res=`eval echo '${'$as_ac_Header'}'` 9148 { echo "$as_me:$LINENO: result: $ac_res" >&5 9149echo "${ECHO_T}$ac_res" >&6; } 9150 9151fi 9152if test `eval echo '${'$as_ac_Header'}'` = yes; then 9153 cat >>confdefs.h <<_ACEOF 9154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9155_ACEOF 9156 9157fi 9158 9159done 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 9185mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 9186strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 9187__fsetlocking 9188do 9189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9190{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9192if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9193 echo $ECHO_N "(cached) $ECHO_C" >&6 9194else 9195 cat >conftest.$ac_ext <<_ACEOF 9196/* confdefs.h. */ 9197_ACEOF 9198cat confdefs.h >>conftest.$ac_ext 9199cat >>conftest.$ac_ext <<_ACEOF 9200/* end confdefs.h. */ 9201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9202 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9203#define $ac_func innocuous_$ac_func 9204 9205/* System header to define __stub macros and hopefully few prototypes, 9206 which can conflict with char $ac_func (); below. 9207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9208 <limits.h> exists even on freestanding compilers. */ 9209 9210#ifdef __STDC__ 9211# include <limits.h> 9212#else 9213# include <assert.h> 9214#endif 9215 9216#undef $ac_func 9217 9218/* Override any GCC internal prototype to avoid an error. 9219 Use char because int might match the return type of a GCC 9220 builtin and then its argument prototype would still apply. */ 9221#ifdef __cplusplus 9222extern "C" 9223#endif 9224char $ac_func (); 9225/* The GNU C library defines this for functions which it implements 9226 to always fail with ENOSYS. Some functions are actually named 9227 something starting with __ and the normal name is an alias. */ 9228#if defined __stub_$ac_func || defined __stub___$ac_func 9229choke me 9230#endif 9231 9232int 9233main () 9234{ 9235return $ac_func (); 9236 ; 9237 return 0; 9238} 9239_ACEOF 9240rm -f conftest.$ac_objext conftest$ac_exeext 9241if { (ac_try="$ac_link" 9242case "(($ac_try" in 9243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9244 *) ac_try_echo=$ac_try;; 9245esac 9246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9247 (eval "$ac_link") 2>conftest.er1 9248 ac_status=$? 9249 grep -v '^ *+' conftest.er1 >conftest.err 9250 rm -f conftest.er1 9251 cat conftest.err >&5 9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9253 (exit $ac_status); } && { 9254 test -z "$ac_c_werror_flag" || 9255 test ! -s conftest.err 9256 } && test -s conftest$ac_exeext && 9257 $as_test_x conftest$ac_exeext; then 9258 eval "$as_ac_var=yes" 9259else 9260 echo "$as_me: failed program was:" >&5 9261sed 's/^/| /' conftest.$ac_ext >&5 9262 9263 eval "$as_ac_var=no" 9264fi 9265 9266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9267 conftest$ac_exeext conftest.$ac_ext 9268fi 9269ac_res=`eval echo '${'$as_ac_var'}'` 9270 { echo "$as_me:$LINENO: result: $ac_res" >&5 9271echo "${ECHO_T}$ac_res" >&6; } 9272if test `eval echo '${'$as_ac_var'}'` = yes; then 9273 cat >>confdefs.h <<_ACEOF 9274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9275_ACEOF 9276 9277fi 9278done 9279 9280 9281 9282 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 9283echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } 9284if test "${ac_cv_have_decl__snprintf+set}" = set; then 9285 echo $ECHO_N "(cached) $ECHO_C" >&6 9286else 9287 cat >conftest.$ac_ext <<_ACEOF 9288/* confdefs.h. */ 9289_ACEOF 9290cat confdefs.h >>conftest.$ac_ext 9291cat >>conftest.$ac_ext <<_ACEOF 9292/* end confdefs.h. */ 9293#include <stdio.h> 9294int 9295main () 9296{ 9297 9298#ifndef _snprintf 9299 char *p = (char *) _snprintf; 9300#endif 9301 9302 ; 9303 return 0; 9304} 9305_ACEOF 9306rm -f conftest.$ac_objext 9307if { (ac_try="$ac_compile" 9308case "(($ac_try" in 9309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9310 *) ac_try_echo=$ac_try;; 9311esac 9312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9313 (eval "$ac_compile") 2>conftest.er1 9314 ac_status=$? 9315 grep -v '^ *+' conftest.er1 >conftest.err 9316 rm -f conftest.er1 9317 cat conftest.err >&5 9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9319 (exit $ac_status); } && { 9320 test -z "$ac_c_werror_flag" || 9321 test ! -s conftest.err 9322 } && test -s conftest.$ac_objext; then 9323 ac_cv_have_decl__snprintf=yes 9324else 9325 echo "$as_me: failed program was:" >&5 9326sed 's/^/| /' conftest.$ac_ext >&5 9327 9328 ac_cv_have_decl__snprintf=no 9329fi 9330 9331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9332fi 9333{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 9334echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } 9335 if test $ac_cv_have_decl__snprintf = yes; then 9336 gt_value=1 9337 else 9338 gt_value=0 9339 fi 9340 9341cat >>confdefs.h <<_ACEOF 9342#define HAVE_DECL__SNPRINTF $gt_value 9343_ACEOF 9344 9345 9346 9347 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 9348echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } 9349if test "${ac_cv_have_decl__snwprintf+set}" = set; then 9350 echo $ECHO_N "(cached) $ECHO_C" >&6 9351else 9352 cat >conftest.$ac_ext <<_ACEOF 9353/* confdefs.h. */ 9354_ACEOF 9355cat confdefs.h >>conftest.$ac_ext 9356cat >>conftest.$ac_ext <<_ACEOF 9357/* end confdefs.h. */ 9358#include <stdio.h> 9359int 9360main () 9361{ 9362 9363#ifndef _snwprintf 9364 char *p = (char *) _snwprintf; 9365#endif 9366 9367 ; 9368 return 0; 9369} 9370_ACEOF 9371rm -f conftest.$ac_objext 9372if { (ac_try="$ac_compile" 9373case "(($ac_try" in 9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9375 *) ac_try_echo=$ac_try;; 9376esac 9377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9378 (eval "$ac_compile") 2>conftest.er1 9379 ac_status=$? 9380 grep -v '^ *+' conftest.er1 >conftest.err 9381 rm -f conftest.er1 9382 cat conftest.err >&5 9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9384 (exit $ac_status); } && { 9385 test -z "$ac_c_werror_flag" || 9386 test ! -s conftest.err 9387 } && test -s conftest.$ac_objext; then 9388 ac_cv_have_decl__snwprintf=yes 9389else 9390 echo "$as_me: failed program was:" >&5 9391sed 's/^/| /' conftest.$ac_ext >&5 9392 9393 ac_cv_have_decl__snwprintf=no 9394fi 9395 9396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9397fi 9398{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 9399echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } 9400 if test $ac_cv_have_decl__snwprintf = yes; then 9401 gt_value=1 9402 else 9403 gt_value=0 9404 fi 9405 9406cat >>confdefs.h <<_ACEOF 9407#define HAVE_DECL__SNWPRINTF $gt_value 9408_ACEOF 9409 9410 9411 9412 9413 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 9414echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } 9415if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 9416 echo $ECHO_N "(cached) $ECHO_C" >&6 9417else 9418 cat >conftest.$ac_ext <<_ACEOF 9419/* confdefs.h. */ 9420_ACEOF 9421cat confdefs.h >>conftest.$ac_ext 9422cat >>conftest.$ac_ext <<_ACEOF 9423/* end confdefs.h. */ 9424#include <stdio.h> 9425int 9426main () 9427{ 9428 9429#ifndef feof_unlocked 9430 char *p = (char *) feof_unlocked; 9431#endif 9432 9433 ; 9434 return 0; 9435} 9436_ACEOF 9437rm -f conftest.$ac_objext 9438if { (ac_try="$ac_compile" 9439case "(($ac_try" in 9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9441 *) ac_try_echo=$ac_try;; 9442esac 9443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9444 (eval "$ac_compile") 2>conftest.er1 9445 ac_status=$? 9446 grep -v '^ *+' conftest.er1 >conftest.err 9447 rm -f conftest.er1 9448 cat conftest.err >&5 9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9450 (exit $ac_status); } && { 9451 test -z "$ac_c_werror_flag" || 9452 test ! -s conftest.err 9453 } && test -s conftest.$ac_objext; then 9454 ac_cv_have_decl_feof_unlocked=yes 9455else 9456 echo "$as_me: failed program was:" >&5 9457sed 's/^/| /' conftest.$ac_ext >&5 9458 9459 ac_cv_have_decl_feof_unlocked=no 9460fi 9461 9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9463fi 9464{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 9465echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } 9466 if test $ac_cv_have_decl_feof_unlocked = yes; then 9467 gt_value=1 9468 else 9469 gt_value=0 9470 fi 9471 9472cat >>confdefs.h <<_ACEOF 9473#define HAVE_DECL_FEOF_UNLOCKED $gt_value 9474_ACEOF 9475 9476 9477 9478 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 9479echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } 9480if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 9481 echo $ECHO_N "(cached) $ECHO_C" >&6 9482else 9483 cat >conftest.$ac_ext <<_ACEOF 9484/* confdefs.h. */ 9485_ACEOF 9486cat confdefs.h >>conftest.$ac_ext 9487cat >>conftest.$ac_ext <<_ACEOF 9488/* end confdefs.h. */ 9489#include <stdio.h> 9490int 9491main () 9492{ 9493 9494#ifndef fgets_unlocked 9495 char *p = (char *) fgets_unlocked; 9496#endif 9497 9498 ; 9499 return 0; 9500} 9501_ACEOF 9502rm -f conftest.$ac_objext 9503if { (ac_try="$ac_compile" 9504case "(($ac_try" in 9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9506 *) ac_try_echo=$ac_try;; 9507esac 9508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9509 (eval "$ac_compile") 2>conftest.er1 9510 ac_status=$? 9511 grep -v '^ *+' conftest.er1 >conftest.err 9512 rm -f conftest.er1 9513 cat conftest.err >&5 9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9515 (exit $ac_status); } && { 9516 test -z "$ac_c_werror_flag" || 9517 test ! -s conftest.err 9518 } && test -s conftest.$ac_objext; then 9519 ac_cv_have_decl_fgets_unlocked=yes 9520else 9521 echo "$as_me: failed program was:" >&5 9522sed 's/^/| /' conftest.$ac_ext >&5 9523 9524 ac_cv_have_decl_fgets_unlocked=no 9525fi 9526 9527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9528fi 9529{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 9530echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } 9531 if test $ac_cv_have_decl_fgets_unlocked = yes; then 9532 gt_value=1 9533 else 9534 gt_value=0 9535 fi 9536 9537cat >>confdefs.h <<_ACEOF 9538#define HAVE_DECL_FGETS_UNLOCKED $gt_value 9539_ACEOF 9540 9541 9542 9543 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 9544echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } 9545if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 9546 echo $ECHO_N "(cached) $ECHO_C" >&6 9547else 9548 cat >conftest.$ac_ext <<_ACEOF 9549/* confdefs.h. */ 9550_ACEOF 9551cat confdefs.h >>conftest.$ac_ext 9552cat >>conftest.$ac_ext <<_ACEOF 9553/* end confdefs.h. */ 9554#include <stdio.h> 9555int 9556main () 9557{ 9558 9559#ifndef getc_unlocked 9560 char *p = (char *) getc_unlocked; 9561#endif 9562 9563 ; 9564 return 0; 9565} 9566_ACEOF 9567rm -f conftest.$ac_objext 9568if { (ac_try="$ac_compile" 9569case "(($ac_try" in 9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9571 *) ac_try_echo=$ac_try;; 9572esac 9573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9574 (eval "$ac_compile") 2>conftest.er1 9575 ac_status=$? 9576 grep -v '^ *+' conftest.er1 >conftest.err 9577 rm -f conftest.er1 9578 cat conftest.err >&5 9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9580 (exit $ac_status); } && { 9581 test -z "$ac_c_werror_flag" || 9582 test ! -s conftest.err 9583 } && test -s conftest.$ac_objext; then 9584 ac_cv_have_decl_getc_unlocked=yes 9585else 9586 echo "$as_me: failed program was:" >&5 9587sed 's/^/| /' conftest.$ac_ext >&5 9588 9589 ac_cv_have_decl_getc_unlocked=no 9590fi 9591 9592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9593fi 9594{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 9595echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } 9596 if test $ac_cv_have_decl_getc_unlocked = yes; then 9597 gt_value=1 9598 else 9599 gt_value=0 9600 fi 9601 9602cat >>confdefs.h <<_ACEOF 9603#define HAVE_DECL_GETC_UNLOCKED $gt_value 9604_ACEOF 9605 9606 9607 9608 case $gt_cv_func_printf_posix in 9609 *yes) HAVE_POSIX_PRINTF=1 ;; 9610 *) HAVE_POSIX_PRINTF=0 ;; 9611 esac 9612 9613 if test "$ac_cv_func_asprintf" = yes; then 9614 HAVE_ASPRINTF=1 9615 else 9616 HAVE_ASPRINTF=0 9617 fi 9618 9619 if test "$ac_cv_func_snprintf" = yes; then 9620 HAVE_SNPRINTF=1 9621 else 9622 HAVE_SNPRINTF=0 9623 fi 9624 9625 if test "$ac_cv_func_wprintf" = yes; then 9626 HAVE_WPRINTF=1 9627 else 9628 HAVE_WPRINTF=0 9629 fi 9630 9631 9632 9633 9634 9635 9636 9637 am_save_CPPFLAGS="$CPPFLAGS" 9638 9639 for element in $INCICONV; do 9640 haveit= 9641 for x in $CPPFLAGS; do 9642 9643 acl_save_prefix="$prefix" 9644 prefix="$acl_final_prefix" 9645 acl_save_exec_prefix="$exec_prefix" 9646 exec_prefix="$acl_final_exec_prefix" 9647 eval x=\"$x\" 9648 exec_prefix="$acl_save_exec_prefix" 9649 prefix="$acl_save_prefix" 9650 9651 if test "X$x" = "X$element"; then 9652 haveit=yes 9653 break 9654 fi 9655 done 9656 if test -z "$haveit"; then 9657 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9658 fi 9659 done 9660 9661 9662 { echo "$as_me:$LINENO: checking for iconv" >&5 9663echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } 9664if test "${am_cv_func_iconv+set}" = set; then 9665 echo $ECHO_N "(cached) $ECHO_C" >&6 9666else 9667 9668 am_cv_func_iconv="no, consider installing GNU libiconv" 9669 am_cv_lib_iconv=no 9670 cat >conftest.$ac_ext <<_ACEOF 9671/* confdefs.h. */ 9672_ACEOF 9673cat confdefs.h >>conftest.$ac_ext 9674cat >>conftest.$ac_ext <<_ACEOF 9675/* end confdefs.h. */ 9676#include <stdlib.h> 9677#include <iconv.h> 9678int 9679main () 9680{ 9681iconv_t cd = iconv_open("",""); 9682 iconv(cd,NULL,NULL,NULL,NULL); 9683 iconv_close(cd); 9684 ; 9685 return 0; 9686} 9687_ACEOF 9688rm -f conftest.$ac_objext conftest$ac_exeext 9689if { (ac_try="$ac_link" 9690case "(($ac_try" in 9691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9692 *) ac_try_echo=$ac_try;; 9693esac 9694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9695 (eval "$ac_link") 2>conftest.er1 9696 ac_status=$? 9697 grep -v '^ *+' conftest.er1 >conftest.err 9698 rm -f conftest.er1 9699 cat conftest.err >&5 9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9701 (exit $ac_status); } && { 9702 test -z "$ac_c_werror_flag" || 9703 test ! -s conftest.err 9704 } && test -s conftest$ac_exeext && 9705 $as_test_x conftest$ac_exeext; then 9706 am_cv_func_iconv=yes 9707else 9708 echo "$as_me: failed program was:" >&5 9709sed 's/^/| /' conftest.$ac_ext >&5 9710 9711 9712fi 9713 9714rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9715 conftest$ac_exeext conftest.$ac_ext 9716 if test "$am_cv_func_iconv" != yes; then 9717 am_save_LIBS="$LIBS" 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 <stdlib.h> 9726#include <iconv.h> 9727int 9728main () 9729{ 9730iconv_t cd = iconv_open("",""); 9731 iconv(cd,NULL,NULL,NULL,NULL); 9732 iconv_close(cd); 9733 ; 9734 return 0; 9735} 9736_ACEOF 9737rm -f conftest.$ac_objext conftest$ac_exeext 9738if { (ac_try="$ac_link" 9739case "(($ac_try" in 9740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9741 *) ac_try_echo=$ac_try;; 9742esac 9743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9744 (eval "$ac_link") 2>conftest.er1 9745 ac_status=$? 9746 grep -v '^ *+' conftest.er1 >conftest.err 9747 rm -f conftest.er1 9748 cat conftest.err >&5 9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9750 (exit $ac_status); } && { 9751 test -z "$ac_c_werror_flag" || 9752 test ! -s conftest.err 9753 } && test -s conftest$ac_exeext && 9754 $as_test_x conftest$ac_exeext; then 9755 am_cv_lib_iconv=yes 9756 am_cv_func_iconv=yes 9757else 9758 echo "$as_me: failed program was:" >&5 9759sed 's/^/| /' conftest.$ac_ext >&5 9760 9761 9762fi 9763 9764rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9765 conftest$ac_exeext conftest.$ac_ext 9766 LIBS="$am_save_LIBS" 9767 fi 9768 9769fi 9770{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 9771echo "${ECHO_T}$am_cv_func_iconv" >&6; } 9772 if test "$am_cv_func_iconv" = yes; then 9773 9774cat >>confdefs.h <<\_ACEOF 9775#define HAVE_ICONV 1 9776_ACEOF 9777 9778 fi 9779 if test "$am_cv_lib_iconv" = yes; then 9780 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 9781echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } 9782 { echo "$as_me:$LINENO: result: $LIBICONV" >&5 9783echo "${ECHO_T}$LIBICONV" >&6; } 9784 else 9785 CPPFLAGS="$am_save_CPPFLAGS" 9786 LIBICONV= 9787 LTLIBICONV= 9788 fi 9789 9790 9791 9792 if test "$am_cv_func_iconv" = yes; then 9793 { echo "$as_me:$LINENO: checking for iconv declaration" >&5 9794echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } 9795 if test "${am_cv_proto_iconv+set}" = set; then 9796 echo $ECHO_N "(cached) $ECHO_C" >&6 9797else 9798 9799 cat >conftest.$ac_ext <<_ACEOF 9800/* confdefs.h. */ 9801_ACEOF 9802cat confdefs.h >>conftest.$ac_ext 9803cat >>conftest.$ac_ext <<_ACEOF 9804/* end confdefs.h. */ 9805 9806#include <stdlib.h> 9807#include <iconv.h> 9808extern 9809#ifdef __cplusplus 9810"C" 9811#endif 9812#if defined(__STDC__) || defined(__cplusplus) 9813size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 9814#else 9815size_t iconv(); 9816#endif 9817 9818int 9819main () 9820{ 9821 9822 ; 9823 return 0; 9824} 9825_ACEOF 9826rm -f conftest.$ac_objext 9827if { (ac_try="$ac_compile" 9828case "(($ac_try" in 9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9830 *) ac_try_echo=$ac_try;; 9831esac 9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9833 (eval "$ac_compile") 2>conftest.er1 9834 ac_status=$? 9835 grep -v '^ *+' conftest.er1 >conftest.err 9836 rm -f conftest.er1 9837 cat conftest.err >&5 9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9839 (exit $ac_status); } && { 9840 test -z "$ac_c_werror_flag" || 9841 test ! -s conftest.err 9842 } && test -s conftest.$ac_objext; then 9843 am_cv_proto_iconv_arg1="" 9844else 9845 echo "$as_me: failed program was:" >&5 9846sed 's/^/| /' conftest.$ac_ext >&5 9847 9848 am_cv_proto_iconv_arg1="const" 9849fi 9850 9851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9852 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);" 9853fi 9854 9855 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 9856 { echo "$as_me:$LINENO: result: ${ac_t:- 9857 }$am_cv_proto_iconv" >&5 9858echo "${ECHO_T}${ac_t:- 9859 }$am_cv_proto_iconv" >&6; } 9860 9861cat >>confdefs.h <<_ACEOF 9862#define ICONV_CONST $am_cv_proto_iconv_arg1 9863_ACEOF 9864 9865 fi 9866 9867 9868 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 9869echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } 9870if test "${am_cv_langinfo_codeset+set}" = set; then 9871 echo $ECHO_N "(cached) $ECHO_C" >&6 9872else 9873 cat >conftest.$ac_ext <<_ACEOF 9874/* confdefs.h. */ 9875_ACEOF 9876cat confdefs.h >>conftest.$ac_ext 9877cat >>conftest.$ac_ext <<_ACEOF 9878/* end confdefs.h. */ 9879#include <langinfo.h> 9880int 9881main () 9882{ 9883char* cs = nl_langinfo(CODESET); 9884 ; 9885 return 0; 9886} 9887_ACEOF 9888rm -f conftest.$ac_objext conftest$ac_exeext 9889if { (ac_try="$ac_link" 9890case "(($ac_try" in 9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9892 *) ac_try_echo=$ac_try;; 9893esac 9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9895 (eval "$ac_link") 2>conftest.er1 9896 ac_status=$? 9897 grep -v '^ *+' conftest.er1 >conftest.err 9898 rm -f conftest.er1 9899 cat conftest.err >&5 9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9901 (exit $ac_status); } && { 9902 test -z "$ac_c_werror_flag" || 9903 test ! -s conftest.err 9904 } && test -s conftest$ac_exeext && 9905 $as_test_x conftest$ac_exeext; then 9906 am_cv_langinfo_codeset=yes 9907else 9908 echo "$as_me: failed program was:" >&5 9909sed 's/^/| /' conftest.$ac_ext >&5 9910 9911 am_cv_langinfo_codeset=no 9912fi 9913 9914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9915 conftest$ac_exeext conftest.$ac_ext 9916 9917fi 9918{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 9919echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } 9920 if test $am_cv_langinfo_codeset = yes; then 9921 9922cat >>confdefs.h <<\_ACEOF 9923#define HAVE_LANGINFO_CODESET 1 9924_ACEOF 9925 9926 fi 9927 9928 if test $ac_cv_header_locale_h = yes; then 9929 9930 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 9931echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } 9932if test "${am_cv_val_LC_MESSAGES+set}" = set; then 9933 echo $ECHO_N "(cached) $ECHO_C" >&6 9934else 9935 cat >conftest.$ac_ext <<_ACEOF 9936/* confdefs.h. */ 9937_ACEOF 9938cat confdefs.h >>conftest.$ac_ext 9939cat >>conftest.$ac_ext <<_ACEOF 9940/* end confdefs.h. */ 9941#include <locale.h> 9942int 9943main () 9944{ 9945return LC_MESSAGES 9946 ; 9947 return 0; 9948} 9949_ACEOF 9950rm -f conftest.$ac_objext conftest$ac_exeext 9951if { (ac_try="$ac_link" 9952case "(($ac_try" in 9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9954 *) ac_try_echo=$ac_try;; 9955esac 9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9957 (eval "$ac_link") 2>conftest.er1 9958 ac_status=$? 9959 grep -v '^ *+' conftest.er1 >conftest.err 9960 rm -f conftest.er1 9961 cat conftest.err >&5 9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9963 (exit $ac_status); } && { 9964 test -z "$ac_c_werror_flag" || 9965 test ! -s conftest.err 9966 } && test -s conftest$ac_exeext && 9967 $as_test_x conftest$ac_exeext; then 9968 am_cv_val_LC_MESSAGES=yes 9969else 9970 echo "$as_me: failed program was:" >&5 9971sed 's/^/| /' conftest.$ac_ext >&5 9972 9973 am_cv_val_LC_MESSAGES=no 9974fi 9975 9976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9977 conftest$ac_exeext conftest.$ac_ext 9978fi 9979{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 9980echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } 9981 if test $am_cv_val_LC_MESSAGES = yes; then 9982 9983cat >>confdefs.h <<\_ACEOF 9984#define HAVE_LC_MESSAGES 1 9985_ACEOF 9986 9987 fi 9988 9989 fi 9990 9991 for ac_prog in bison 9992do 9993 # Extract the first word of "$ac_prog", so it can be a program name with args. 9994set dummy $ac_prog; ac_word=$2 9995{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9997if test "${ac_cv_prog_INTLBISON+set}" = set; then 9998 echo $ECHO_N "(cached) $ECHO_C" >&6 9999else 10000 if test -n "$INTLBISON"; then 10001 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 10002else 10003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10004for as_dir in $PATH 10005do 10006 IFS=$as_save_IFS 10007 test -z "$as_dir" && as_dir=. 10008 for ac_exec_ext in '' $ac_executable_extensions; do 10009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10010 ac_cv_prog_INTLBISON="$ac_prog" 10011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10012 break 2 10013 fi 10014done 10015done 10016IFS=$as_save_IFS 10017 10018fi 10019fi 10020INTLBISON=$ac_cv_prog_INTLBISON 10021if test -n "$INTLBISON"; then 10022 { echo "$as_me:$LINENO: result: $INTLBISON" >&5 10023echo "${ECHO_T}$INTLBISON" >&6; } 10024else 10025 { echo "$as_me:$LINENO: result: no" >&5 10026echo "${ECHO_T}no" >&6; } 10027fi 10028 10029 10030 test -n "$INTLBISON" && break 10031done 10032 10033 if test -z "$INTLBISON"; then 10034 ac_verc_fail=yes 10035 else 10036 { echo "$as_me:$LINENO: checking version of bison" >&5 10037echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } 10038 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 10039 case $ac_prog_version in 10040 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 10041 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 10042 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 10043 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 10044 esac 10045 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 10046echo "${ECHO_T}$ac_prog_version" >&6; } 10047 fi 10048 if test $ac_verc_fail = yes; then 10049 INTLBISON=: 10050 fi 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 10068echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 10069 # Check whether --enable-nls was given. 10070if test "${enable_nls+set}" = set; then 10071 enableval=$enable_nls; USE_NLS=$enableval 10072else 10073 USE_NLS=yes 10074fi 10075 10076 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 10077echo "${ECHO_T}$USE_NLS" >&6; } 10078 10079 10080 10081 10082 BUILD_INCLUDED_LIBINTL=no 10083 USE_INCLUDED_LIBINTL=no 10084 10085 LIBINTL= 10086 LTLIBINTL= 10087 POSUB= 10088 10089 if test "$USE_NLS" = "yes"; then 10090 gt_use_preinstalled_gnugettext=no 10091 10092 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 10093echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } 10094 10095# Check whether --with-included-gettext was given. 10096if test "${with_included_gettext+set}" = set; then 10097 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 10098else 10099 nls_cv_force_use_gnu_gettext=no 10100fi 10101 10102 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 10103echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } 10104 10105 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 10106 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 10107 10108 10109 10110 10111 10112 10113 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 10114echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 10115if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 10116 echo $ECHO_N "(cached) $ECHO_C" >&6 10117else 10118 cat >conftest.$ac_ext <<_ACEOF 10119/* confdefs.h. */ 10120_ACEOF 10121cat confdefs.h >>conftest.$ac_ext 10122cat >>conftest.$ac_ext <<_ACEOF 10123/* end confdefs.h. */ 10124#include <libintl.h> 10125extern int _nl_msg_cat_cntr; 10126extern int *_nl_domain_bindings; 10127int 10128main () 10129{ 10130bindtextdomain ("", ""); 10131return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 10132 ; 10133 return 0; 10134} 10135_ACEOF 10136rm -f conftest.$ac_objext conftest$ac_exeext 10137if { (ac_try="$ac_link" 10138case "(($ac_try" in 10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10140 *) ac_try_echo=$ac_try;; 10141esac 10142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10143 (eval "$ac_link") 2>conftest.er1 10144 ac_status=$? 10145 grep -v '^ *+' conftest.er1 >conftest.err 10146 rm -f conftest.er1 10147 cat conftest.err >&5 10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10149 (exit $ac_status); } && { 10150 test -z "$ac_c_werror_flag" || 10151 test ! -s conftest.err 10152 } && test -s conftest$ac_exeext && 10153 $as_test_x conftest$ac_exeext; then 10154 gt_cv_func_gnugettext1_libc=yes 10155else 10156 echo "$as_me: failed program was:" >&5 10157sed 's/^/| /' conftest.$ac_ext >&5 10158 10159 gt_cv_func_gnugettext1_libc=no 10160fi 10161 10162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10163 conftest$ac_exeext conftest.$ac_ext 10164fi 10165{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 10166echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } 10167 10168 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 10169 10170 10171 10172 use_additional=yes 10173 10174 acl_save_prefix="$prefix" 10175 prefix="$acl_final_prefix" 10176 acl_save_exec_prefix="$exec_prefix" 10177 exec_prefix="$acl_final_exec_prefix" 10178 10179 eval additional_includedir=\"$includedir\" 10180 eval additional_libdir=\"$libdir\" 10181 10182 exec_prefix="$acl_save_exec_prefix" 10183 prefix="$acl_save_prefix" 10184 10185 10186# Check whether --with-libintl-prefix was given. 10187if test "${with_libintl_prefix+set}" = set; then 10188 withval=$with_libintl_prefix; 10189 if test "X$withval" = "Xno"; then 10190 use_additional=no 10191 else 10192 if test "X$withval" = "X"; then 10193 10194 acl_save_prefix="$prefix" 10195 prefix="$acl_final_prefix" 10196 acl_save_exec_prefix="$exec_prefix" 10197 exec_prefix="$acl_final_exec_prefix" 10198 10199 eval additional_includedir=\"$includedir\" 10200 eval additional_libdir=\"$libdir\" 10201 10202 exec_prefix="$acl_save_exec_prefix" 10203 prefix="$acl_save_prefix" 10204 10205 else 10206 additional_includedir="$withval/include" 10207 additional_libdir="$withval/lib" 10208 fi 10209 fi 10210 10211fi 10212 10213 LIBINTL= 10214 LTLIBINTL= 10215 INCINTL= 10216 rpathdirs= 10217 ltrpathdirs= 10218 names_already_handled= 10219 names_next_round='intl ' 10220 while test -n "$names_next_round"; do 10221 names_this_round="$names_next_round" 10222 names_next_round= 10223 for name in $names_this_round; do 10224 already_handled= 10225 for n in $names_already_handled; do 10226 if test "$n" = "$name"; then 10227 already_handled=yes 10228 break 10229 fi 10230 done 10231 if test -z "$already_handled"; then 10232 names_already_handled="$names_already_handled $name" 10233 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10234 eval value=\"\$HAVE_LIB$uppername\" 10235 if test -n "$value"; then 10236 if test "$value" = yes; then 10237 eval value=\"\$LIB$uppername\" 10238 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 10239 eval value=\"\$LTLIB$uppername\" 10240 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 10241 else 10242 : 10243 fi 10244 else 10245 found_dir= 10246 found_la= 10247 found_so= 10248 found_a= 10249 if test $use_additional = yes; then 10250 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 10251 found_dir="$additional_libdir" 10252 found_so="$additional_libdir/lib$name.$shlibext" 10253 if test -f "$additional_libdir/lib$name.la"; then 10254 found_la="$additional_libdir/lib$name.la" 10255 fi 10256 else 10257 if test -f "$additional_libdir/lib$name.$libext"; then 10258 found_dir="$additional_libdir" 10259 found_a="$additional_libdir/lib$name.$libext" 10260 if test -f "$additional_libdir/lib$name.la"; then 10261 found_la="$additional_libdir/lib$name.la" 10262 fi 10263 fi 10264 fi 10265 fi 10266 if test "X$found_dir" = "X"; then 10267 for x in $LDFLAGS $LTLIBINTL; do 10268 10269 acl_save_prefix="$prefix" 10270 prefix="$acl_final_prefix" 10271 acl_save_exec_prefix="$exec_prefix" 10272 exec_prefix="$acl_final_exec_prefix" 10273 eval x=\"$x\" 10274 exec_prefix="$acl_save_exec_prefix" 10275 prefix="$acl_save_prefix" 10276 10277 case "$x" in 10278 -L*) 10279 dir=`echo "X$x" | sed -e 's/^X-L//'` 10280 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 10281 found_dir="$dir" 10282 found_so="$dir/lib$name.$shlibext" 10283 if test -f "$dir/lib$name.la"; then 10284 found_la="$dir/lib$name.la" 10285 fi 10286 else 10287 if test -f "$dir/lib$name.$libext"; then 10288 found_dir="$dir" 10289 found_a="$dir/lib$name.$libext" 10290 if test -f "$dir/lib$name.la"; then 10291 found_la="$dir/lib$name.la" 10292 fi 10293 fi 10294 fi 10295 ;; 10296 esac 10297 if test "X$found_dir" != "X"; then 10298 break 10299 fi 10300 done 10301 fi 10302 if test "X$found_dir" != "X"; then 10303 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 10304 if test "X$found_so" != "X"; then 10305 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 10306 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10307 else 10308 haveit= 10309 for x in $ltrpathdirs; do 10310 if test "X$x" = "X$found_dir"; then 10311 haveit=yes 10312 break 10313 fi 10314 done 10315 if test -z "$haveit"; then 10316 ltrpathdirs="$ltrpathdirs $found_dir" 10317 fi 10318 if test "$hardcode_direct" = yes; then 10319 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10320 else 10321 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 10322 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10323 haveit= 10324 for x in $rpathdirs; do 10325 if test "X$x" = "X$found_dir"; then 10326 haveit=yes 10327 break 10328 fi 10329 done 10330 if test -z "$haveit"; then 10331 rpathdirs="$rpathdirs $found_dir" 10332 fi 10333 else 10334 haveit= 10335 for x in $LDFLAGS $LIBINTL; do 10336 10337 acl_save_prefix="$prefix" 10338 prefix="$acl_final_prefix" 10339 acl_save_exec_prefix="$exec_prefix" 10340 exec_prefix="$acl_final_exec_prefix" 10341 eval x=\"$x\" 10342 exec_prefix="$acl_save_exec_prefix" 10343 prefix="$acl_save_prefix" 10344 10345 if test "X$x" = "X-L$found_dir"; then 10346 haveit=yes 10347 break 10348 fi 10349 done 10350 if test -z "$haveit"; then 10351 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 10352 fi 10353 if test "$hardcode_minus_L" != no; then 10354 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10355 else 10356 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10357 fi 10358 fi 10359 fi 10360 fi 10361 else 10362 if test "X$found_a" != "X"; then 10363 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 10364 else 10365 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 10366 fi 10367 fi 10368 additional_includedir= 10369 case "$found_dir" in 10370 */lib | */lib/) 10371 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10372 additional_includedir="$basedir/include" 10373 ;; 10374 esac 10375 if test "X$additional_includedir" != "X"; then 10376 if test "X$additional_includedir" != "X/usr/include"; then 10377 haveit= 10378 if test "X$additional_includedir" = "X/usr/local/include"; then 10379 if test -n "$GCC"; then 10380 case $host_os in 10381 linux*) haveit=yes;; 10382 esac 10383 fi 10384 fi 10385 if test -z "$haveit"; then 10386 for x in $CPPFLAGS $INCINTL; do 10387 10388 acl_save_prefix="$prefix" 10389 prefix="$acl_final_prefix" 10390 acl_save_exec_prefix="$exec_prefix" 10391 exec_prefix="$acl_final_exec_prefix" 10392 eval x=\"$x\" 10393 exec_prefix="$acl_save_exec_prefix" 10394 prefix="$acl_save_prefix" 10395 10396 if test "X$x" = "X-I$additional_includedir"; then 10397 haveit=yes 10398 break 10399 fi 10400 done 10401 if test -z "$haveit"; then 10402 if test -d "$additional_includedir"; then 10403 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 10404 fi 10405 fi 10406 fi 10407 fi 10408 fi 10409 if test -n "$found_la"; then 10410 save_libdir="$libdir" 10411 case "$found_la" in 10412 */* | *\\*) . "$found_la" ;; 10413 *) . "./$found_la" ;; 10414 esac 10415 libdir="$save_libdir" 10416 for dep in $dependency_libs; do 10417 case "$dep" in 10418 -L*) 10419 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10420 if test "X$additional_libdir" != "X/usr/lib"; then 10421 haveit= 10422 if test "X$additional_libdir" = "X/usr/local/lib"; then 10423 if test -n "$GCC"; then 10424 case $host_os in 10425 linux*) haveit=yes;; 10426 esac 10427 fi 10428 fi 10429 if test -z "$haveit"; then 10430 haveit= 10431 for x in $LDFLAGS $LIBINTL; do 10432 10433 acl_save_prefix="$prefix" 10434 prefix="$acl_final_prefix" 10435 acl_save_exec_prefix="$exec_prefix" 10436 exec_prefix="$acl_final_exec_prefix" 10437 eval x=\"$x\" 10438 exec_prefix="$acl_save_exec_prefix" 10439 prefix="$acl_save_prefix" 10440 10441 if test "X$x" = "X-L$additional_libdir"; then 10442 haveit=yes 10443 break 10444 fi 10445 done 10446 if test -z "$haveit"; then 10447 if test -d "$additional_libdir"; then 10448 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 10449 fi 10450 fi 10451 haveit= 10452 for x in $LDFLAGS $LTLIBINTL; do 10453 10454 acl_save_prefix="$prefix" 10455 prefix="$acl_final_prefix" 10456 acl_save_exec_prefix="$exec_prefix" 10457 exec_prefix="$acl_final_exec_prefix" 10458 eval x=\"$x\" 10459 exec_prefix="$acl_save_exec_prefix" 10460 prefix="$acl_save_prefix" 10461 10462 if test "X$x" = "X-L$additional_libdir"; then 10463 haveit=yes 10464 break 10465 fi 10466 done 10467 if test -z "$haveit"; then 10468 if test -d "$additional_libdir"; then 10469 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 10470 fi 10471 fi 10472 fi 10473 fi 10474 ;; 10475 -R*) 10476 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10477 if test "$enable_rpath" != no; then 10478 haveit= 10479 for x in $rpathdirs; do 10480 if test "X$x" = "X$dir"; then 10481 haveit=yes 10482 break 10483 fi 10484 done 10485 if test -z "$haveit"; then 10486 rpathdirs="$rpathdirs $dir" 10487 fi 10488 haveit= 10489 for x in $ltrpathdirs; do 10490 if test "X$x" = "X$dir"; then 10491 haveit=yes 10492 break 10493 fi 10494 done 10495 if test -z "$haveit"; then 10496 ltrpathdirs="$ltrpathdirs $dir" 10497 fi 10498 fi 10499 ;; 10500 -l*) 10501 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10502 ;; 10503 *.la) 10504 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10505 ;; 10506 *) 10507 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 10508 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 10509 ;; 10510 esac 10511 done 10512 fi 10513 else 10514 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10515 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 10516 fi 10517 fi 10518 fi 10519 done 10520 done 10521 if test "X$rpathdirs" != "X"; then 10522 if test -n "$hardcode_libdir_separator"; then 10523 alldirs= 10524 for found_dir in $rpathdirs; do 10525 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 10526 done 10527 acl_save_libdir="$libdir" 10528 libdir="$alldirs" 10529 eval flag=\"$hardcode_libdir_flag_spec\" 10530 libdir="$acl_save_libdir" 10531 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10532 else 10533 for found_dir in $rpathdirs; do 10534 acl_save_libdir="$libdir" 10535 libdir="$found_dir" 10536 eval flag=\"$hardcode_libdir_flag_spec\" 10537 libdir="$acl_save_libdir" 10538 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10539 done 10540 fi 10541 fi 10542 if test "X$ltrpathdirs" != "X"; then 10543 for found_dir in $ltrpathdirs; do 10544 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 10545 done 10546 fi 10547 10548 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 10549echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 10550if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 10551 echo $ECHO_N "(cached) $ECHO_C" >&6 10552else 10553 gt_save_CPPFLAGS="$CPPFLAGS" 10554 CPPFLAGS="$CPPFLAGS $INCINTL" 10555 gt_save_LIBS="$LIBS" 10556 LIBS="$LIBS $LIBINTL" 10557 cat >conftest.$ac_ext <<_ACEOF 10558/* confdefs.h. */ 10559_ACEOF 10560cat confdefs.h >>conftest.$ac_ext 10561cat >>conftest.$ac_ext <<_ACEOF 10562/* end confdefs.h. */ 10563#include <libintl.h> 10564extern int _nl_msg_cat_cntr; 10565extern 10566#ifdef __cplusplus 10567"C" 10568#endif 10569const char *_nl_expand_alias (); 10570int 10571main () 10572{ 10573bindtextdomain ("", ""); 10574return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 10575 ; 10576 return 0; 10577} 10578_ACEOF 10579rm -f conftest.$ac_objext conftest$ac_exeext 10580if { (ac_try="$ac_link" 10581case "(($ac_try" in 10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10583 *) ac_try_echo=$ac_try;; 10584esac 10585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10586 (eval "$ac_link") 2>conftest.er1 10587 ac_status=$? 10588 grep -v '^ *+' conftest.er1 >conftest.err 10589 rm -f conftest.er1 10590 cat conftest.err >&5 10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10592 (exit $ac_status); } && { 10593 test -z "$ac_c_werror_flag" || 10594 test ! -s conftest.err 10595 } && test -s conftest$ac_exeext && 10596 $as_test_x conftest$ac_exeext; then 10597 gt_cv_func_gnugettext1_libintl=yes 10598else 10599 echo "$as_me: failed program was:" >&5 10600sed 's/^/| /' conftest.$ac_ext >&5 10601 10602 gt_cv_func_gnugettext1_libintl=no 10603fi 10604 10605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10606 conftest$ac_exeext conftest.$ac_ext 10607 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 10608 LIBS="$LIBS $LIBICONV" 10609 cat >conftest.$ac_ext <<_ACEOF 10610/* confdefs.h. */ 10611_ACEOF 10612cat confdefs.h >>conftest.$ac_ext 10613cat >>conftest.$ac_ext <<_ACEOF 10614/* end confdefs.h. */ 10615#include <libintl.h> 10616extern int _nl_msg_cat_cntr; 10617extern 10618#ifdef __cplusplus 10619"C" 10620#endif 10621const char *_nl_expand_alias (); 10622int 10623main () 10624{ 10625bindtextdomain ("", ""); 10626return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 10627 ; 10628 return 0; 10629} 10630_ACEOF 10631rm -f conftest.$ac_objext conftest$ac_exeext 10632if { (ac_try="$ac_link" 10633case "(($ac_try" in 10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10635 *) ac_try_echo=$ac_try;; 10636esac 10637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10638 (eval "$ac_link") 2>conftest.er1 10639 ac_status=$? 10640 grep -v '^ *+' conftest.er1 >conftest.err 10641 rm -f conftest.er1 10642 cat conftest.err >&5 10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10644 (exit $ac_status); } && { 10645 test -z "$ac_c_werror_flag" || 10646 test ! -s conftest.err 10647 } && test -s conftest$ac_exeext && 10648 $as_test_x conftest$ac_exeext; then 10649 LIBINTL="$LIBINTL $LIBICONV" 10650 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 10651 gt_cv_func_gnugettext1_libintl=yes 10652 10653else 10654 echo "$as_me: failed program was:" >&5 10655sed 's/^/| /' conftest.$ac_ext >&5 10656 10657 10658fi 10659 10660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10661 conftest$ac_exeext conftest.$ac_ext 10662 fi 10663 CPPFLAGS="$gt_save_CPPFLAGS" 10664 LIBS="$gt_save_LIBS" 10665fi 10666{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 10667echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } 10668 fi 10669 10670 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 10671 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 10672 && test "$PACKAGE" != gettext-runtime \ 10673 && test "$PACKAGE" != gettext-tools; }; then 10674 gt_use_preinstalled_gnugettext=yes 10675 else 10676 LIBINTL= 10677 LTLIBINTL= 10678 INCINTL= 10679 fi 10680 10681 10682 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 10683 nls_cv_use_gnu_gettext=yes 10684 fi 10685 fi 10686 10687 if test "$nls_cv_use_gnu_gettext" = "yes"; then 10688 BUILD_INCLUDED_LIBINTL=yes 10689 USE_INCLUDED_LIBINTL=yes 10690 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 10691 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 10692 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 10693 fi 10694 10695 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10696 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10697 CATOBJEXT=.gmo 10698 fi 10699 10700 10701 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10702 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10703 10704cat >>confdefs.h <<\_ACEOF 10705#define ENABLE_NLS 1 10706_ACEOF 10707 10708 else 10709 USE_NLS=no 10710 fi 10711 fi 10712 10713 { echo "$as_me:$LINENO: checking whether to use NLS" >&5 10714echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } 10715 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 10716echo "${ECHO_T}$USE_NLS" >&6; } 10717 if test "$USE_NLS" = "yes"; then 10718 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 10719echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 10720 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10721 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 10722 gt_source="external libintl" 10723 else 10724 gt_source="libc" 10725 fi 10726 else 10727 gt_source="included intl directory" 10728 fi 10729 { echo "$as_me:$LINENO: result: $gt_source" >&5 10730echo "${ECHO_T}$gt_source" >&6; } 10731 fi 10732 10733 if test "$USE_NLS" = "yes"; then 10734 10735 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10736 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 10737 { echo "$as_me:$LINENO: checking how to link with libintl" >&5 10738echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } 10739 { echo "$as_me:$LINENO: result: $LIBINTL" >&5 10740echo "${ECHO_T}$LIBINTL" >&6; } 10741 10742 for element in $INCINTL; do 10743 haveit= 10744 for x in $CPPFLAGS; do 10745 10746 acl_save_prefix="$prefix" 10747 prefix="$acl_final_prefix" 10748 acl_save_exec_prefix="$exec_prefix" 10749 exec_prefix="$acl_final_exec_prefix" 10750 eval x=\"$x\" 10751 exec_prefix="$acl_save_exec_prefix" 10752 prefix="$acl_save_prefix" 10753 10754 if test "X$x" = "X$element"; then 10755 haveit=yes 10756 break 10757 fi 10758 done 10759 if test -z "$haveit"; then 10760 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10761 fi 10762 done 10763 10764 fi 10765 10766 10767cat >>confdefs.h <<\_ACEOF 10768#define HAVE_GETTEXT 1 10769_ACEOF 10770 10771 10772cat >>confdefs.h <<\_ACEOF 10773#define HAVE_DCGETTEXT 1 10774_ACEOF 10775 10776 fi 10777 10778 POSUB=po 10779 fi 10780 10781 10782 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 10783 BUILD_INCLUDED_LIBINTL=yes 10784 fi 10785 10786 10787 10788 10789 10790 nls_cv_header_intl= 10791 nls_cv_header_libgt= 10792 10793 DATADIRNAME=share 10794 10795 10796 INSTOBJEXT=.mo 10797 10798 10799 GENCAT=gencat 10800 10801 10802 if test "$USE_INCLUDED_LIBINTL" = yes; then 10803 INTLOBJS="\$(GETTOBJS)" 10804 fi 10805 10806 10807 INTL_LIBTOOL_SUFFIX_PREFIX= 10808 10809 10810 10811 INTLLIBS="$LIBINTL" 10812 10813 10814 10815 10816 10817 10818 10819{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10820echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 10821set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10822if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 10823 echo $ECHO_N "(cached) $ECHO_C" >&6 10824else 10825 cat >conftest.make <<\_ACEOF 10826SHELL = /bin/sh 10827all: 10828 @echo '@@@%%%=$(MAKE)=@@@%%%' 10829_ACEOF 10830# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 10831case `${MAKE-make} -f conftest.make 2>/dev/null` in 10832 *@@@%%%=?*=@@@%%%*) 10833 eval ac_cv_prog_make_${ac_make}_set=yes;; 10834 *) 10835 eval ac_cv_prog_make_${ac_make}_set=no;; 10836esac 10837rm -f conftest.make 10838fi 10839if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10840 { echo "$as_me:$LINENO: result: yes" >&5 10841echo "${ECHO_T}yes" >&6; } 10842 SET_MAKE= 10843else 10844 { echo "$as_me:$LINENO: result: no" >&5 10845echo "${ECHO_T}no" >&6; } 10846 SET_MAKE="MAKE=${MAKE-make}" 10847fi 10848 10849# Extract the first word of "ln", so it can be a program name with args. 10850set dummy ln; ac_word=$2 10851{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10853if test "${ac_cv_path_LN+set}" = set; then 10854 echo $ECHO_N "(cached) $ECHO_C" >&6 10855else 10856 case $LN in 10857 [\\/]* | ?:[\\/]*) 10858 ac_cv_path_LN="$LN" # Let the user override the test with a path. 10859 ;; 10860 *) 10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10862for as_dir in $PATH 10863do 10864 IFS=$as_save_IFS 10865 test -z "$as_dir" && as_dir=. 10866 for ac_exec_ext in '' $ac_executable_extensions; do 10867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10868 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 10869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10870 break 2 10871 fi 10872done 10873done 10874IFS=$as_save_IFS 10875 10876 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 10877 ;; 10878esac 10879fi 10880LN=$ac_cv_path_LN 10881if test -n "$LN"; then 10882 { echo "$as_me:$LINENO: result: $LN" >&5 10883echo "${ECHO_T}$LN" >&6; } 10884else 10885 { echo "$as_me:$LINENO: result: no" >&5 10886echo "${ECHO_T}no" >&6; } 10887fi 10888 10889 10890{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 10891echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 10892LN_S=$as_ln_s 10893if test "$LN_S" = "ln -s"; then 10894 { echo "$as_me:$LINENO: result: yes" >&5 10895echo "${ECHO_T}yes" >&6; } 10896else 10897 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 10898echo "${ECHO_T}no, using $LN_S" >&6; } 10899fi 10900 10901# Extract the first word of "mv", so it can be a program name with args. 10902set dummy mv; ac_word=$2 10903{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10905if test "${ac_cv_path_MV+set}" = set; then 10906 echo $ECHO_N "(cached) $ECHO_C" >&6 10907else 10908 case $MV in 10909 [\\/]* | ?:[\\/]*) 10910 ac_cv_path_MV="$MV" # Let the user override the test with a path. 10911 ;; 10912 *) 10913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10914for as_dir in $PATH 10915do 10916 IFS=$as_save_IFS 10917 test -z "$as_dir" && as_dir=. 10918 for ac_exec_ext in '' $ac_executable_extensions; do 10919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10920 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 10921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10922 break 2 10923 fi 10924done 10925done 10926IFS=$as_save_IFS 10927 10928 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 10929 ;; 10930esac 10931fi 10932MV=$ac_cv_path_MV 10933if test -n "$MV"; then 10934 { echo "$as_me:$LINENO: result: $MV" >&5 10935echo "${ECHO_T}$MV" >&6; } 10936else 10937 { echo "$as_me:$LINENO: result: no" >&5 10938echo "${ECHO_T}no" >&6; } 10939fi 10940 10941 10942# Extract the first word of "cp", so it can be a program name with args. 10943set dummy cp; ac_word=$2 10944{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10946if test "${ac_cv_path_CP+set}" = set; then 10947 echo $ECHO_N "(cached) $ECHO_C" >&6 10948else 10949 case $CP in 10950 [\\/]* | ?:[\\/]*) 10951 ac_cv_path_CP="$CP" # Let the user override the test with a path. 10952 ;; 10953 *) 10954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10955for as_dir in $PATH 10956do 10957 IFS=$as_save_IFS 10958 test -z "$as_dir" && as_dir=. 10959 for ac_exec_ext in '' $ac_executable_extensions; do 10960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10961 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 10962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10963 break 2 10964 fi 10965done 10966done 10967IFS=$as_save_IFS 10968 10969 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 10970 ;; 10971esac 10972fi 10973CP=$ac_cv_path_CP 10974if test -n "$CP"; then 10975 { echo "$as_me:$LINENO: result: $CP" >&5 10976echo "${ECHO_T}$CP" >&6; } 10977else 10978 { echo "$as_me:$LINENO: result: no" >&5 10979echo "${ECHO_T}no" >&6; } 10980fi 10981 10982 10983# Extract the first word of "rm", so it can be a program name with args. 10984set dummy rm; ac_word=$2 10985{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10987if test "${ac_cv_path_RM+set}" = set; then 10988 echo $ECHO_N "(cached) $ECHO_C" >&6 10989else 10990 case $RM in 10991 [\\/]* | ?:[\\/]*) 10992 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10993 ;; 10994 *) 10995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10996for as_dir in $PATH 10997do 10998 IFS=$as_save_IFS 10999 test -z "$as_dir" && as_dir=. 11000 for ac_exec_ext in '' $ac_executable_extensions; do 11001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11002 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 11003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11004 break 2 11005 fi 11006done 11007done 11008IFS=$as_save_IFS 11009 11010 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 11011 ;; 11012esac 11013fi 11014RM=$ac_cv_path_RM 11015if test -n "$RM"; then 11016 { echo "$as_me:$LINENO: result: $RM" >&5 11017echo "${ECHO_T}$RM" >&6; } 11018else 11019 { echo "$as_me:$LINENO: result: no" >&5 11020echo "${ECHO_T}no" >&6; } 11021fi 11022 11023 11024# Extract the first word of "chmod", so it can be a program name with args. 11025set dummy chmod; ac_word=$2 11026{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11028if test "${ac_cv_path_CHMOD+set}" = set; then 11029 echo $ECHO_N "(cached) $ECHO_C" >&6 11030else 11031 case $CHMOD in 11032 [\\/]* | ?:[\\/]*) 11033 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 11034 ;; 11035 *) 11036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11037for as_dir in $PATH 11038do 11039 IFS=$as_save_IFS 11040 test -z "$as_dir" && as_dir=. 11041 for ac_exec_ext in '' $ac_executable_extensions; do 11042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11043 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 11044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11045 break 2 11046 fi 11047done 11048done 11049IFS=$as_save_IFS 11050 11051 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" 11052 ;; 11053esac 11054fi 11055CHMOD=$ac_cv_path_CHMOD 11056if test -n "$CHMOD"; then 11057 { echo "$as_me:$LINENO: result: $CHMOD" >&5 11058echo "${ECHO_T}$CHMOD" >&6; } 11059else 11060 { echo "$as_me:$LINENO: result: no" >&5 11061echo "${ECHO_T}no" >&6; } 11062fi 11063 11064 11065for ac_prog in gawk mawk nawk awk 11066do 11067 # Extract the first word of "$ac_prog", so it can be a program name with args. 11068set dummy $ac_prog; ac_word=$2 11069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11071if test "${ac_cv_prog_AWK+set}" = set; then 11072 echo $ECHO_N "(cached) $ECHO_C" >&6 11073else 11074 if test -n "$AWK"; then 11075 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11076else 11077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11078for as_dir in $PATH 11079do 11080 IFS=$as_save_IFS 11081 test -z "$as_dir" && as_dir=. 11082 for ac_exec_ext in '' $ac_executable_extensions; do 11083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11084 ac_cv_prog_AWK="$ac_prog" 11085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11086 break 2 11087 fi 11088done 11089done 11090IFS=$as_save_IFS 11091 11092fi 11093fi 11094AWK=$ac_cv_prog_AWK 11095if test -n "$AWK"; then 11096 { echo "$as_me:$LINENO: result: $AWK" >&5 11097echo "${ECHO_T}$AWK" >&6; } 11098else 11099 { echo "$as_me:$LINENO: result: no" >&5 11100echo "${ECHO_T}no" >&6; } 11101fi 11102 11103 11104 test -n "$AWK" && break 11105done 11106 11107{ echo "$as_me:$LINENO: checking for egrep" >&5 11108echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 11109if test "${ac_cv_path_EGREP+set}" = set; then 11110 echo $ECHO_N "(cached) $ECHO_C" >&6 11111else 11112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11113 then ac_cv_path_EGREP="$GREP -E" 11114 else 11115 # Extract the first word of "egrep" to use in msg output 11116if test -z "$EGREP"; then 11117set dummy egrep; ac_prog_name=$2 11118if test "${ac_cv_path_EGREP+set}" = set; then 11119 echo $ECHO_N "(cached) $ECHO_C" >&6 11120else 11121 ac_path_EGREP_found=false 11122# Loop through the user's path and test for each of PROGNAME-LIST 11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11124for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11125do 11126 IFS=$as_save_IFS 11127 test -z "$as_dir" && as_dir=. 11128 for ac_prog in egrep; do 11129 for ac_exec_ext in '' $ac_executable_extensions; do 11130 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11131 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 11132 # Check for GNU ac_path_EGREP and select it if it is found. 11133 # Check for GNU $ac_path_EGREP 11134case `"$ac_path_EGREP" --version 2>&1` in 11135*GNU*) 11136 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11137*) 11138 ac_count=0 11139 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 11140 while : 11141 do 11142 cat "conftest.in" "conftest.in" >"conftest.tmp" 11143 mv "conftest.tmp" "conftest.in" 11144 cp "conftest.in" "conftest.nl" 11145 echo 'EGREP' >> "conftest.nl" 11146 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11148 ac_count=`expr $ac_count + 1` 11149 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11150 # Best one so far, save it but keep looking for a better one 11151 ac_cv_path_EGREP="$ac_path_EGREP" 11152 ac_path_EGREP_max=$ac_count 11153 fi 11154 # 10*(2^10) chars as input seems more than enough 11155 test $ac_count -gt 10 && break 11156 done 11157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11158esac 11159 11160 11161 $ac_path_EGREP_found && break 3 11162 done 11163done 11164 11165done 11166IFS=$as_save_IFS 11167 11168 11169fi 11170 11171EGREP="$ac_cv_path_EGREP" 11172if test -z "$EGREP"; then 11173 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 11174echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 11175 { (exit 1); exit 1; }; } 11176fi 11177 11178else 11179 ac_cv_path_EGREP=$EGREP 11180fi 11181 11182 11183 fi 11184fi 11185{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 11186echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 11187 EGREP="$ac_cv_path_EGREP" 11188 11189 11190# Extract the first word of "sed", so it can be a program name with args. 11191set dummy sed; ac_word=$2 11192{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11194if test "${ac_cv_path_SED+set}" = set; then 11195 echo $ECHO_N "(cached) $ECHO_C" >&6 11196else 11197 case $SED in 11198 [\\/]* | ?:[\\/]*) 11199 ac_cv_path_SED="$SED" # Let the user override the test with a path. 11200 ;; 11201 *) 11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11203for as_dir in $PATH 11204do 11205 IFS=$as_save_IFS 11206 test -z "$as_dir" && as_dir=. 11207 for ac_exec_ext in '' $ac_executable_extensions; do 11208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11209 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 11210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11211 break 2 11212 fi 11213done 11214done 11215IFS=$as_save_IFS 11216 11217 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 11218 ;; 11219esac 11220fi 11221SED=$ac_cv_path_SED 11222if test -n "$SED"; then 11223 { echo "$as_me:$LINENO: result: $SED" >&5 11224echo "${ECHO_T}$SED" >&6; } 11225else 11226 { echo "$as_me:$LINENO: result: no" >&5 11227echo "${ECHO_T}no" >&6; } 11228fi 11229 11230 11231# Extract the first word of "perl", so it can be a program name with args. 11232set dummy perl; ac_word=$2 11233{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11235if test "${ac_cv_path_PERL+set}" = set; then 11236 echo $ECHO_N "(cached) $ECHO_C" >&6 11237else 11238 case $PERL in 11239 [\\/]* | ?:[\\/]*) 11240 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 11241 ;; 11242 *) 11243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11244for as_dir in $PATH 11245do 11246 IFS=$as_save_IFS 11247 test -z "$as_dir" && as_dir=. 11248 for ac_exec_ext in '' $ac_executable_extensions; do 11249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11250 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 11251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11252 break 2 11253 fi 11254done 11255done 11256IFS=$as_save_IFS 11257 11258 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" 11259 ;; 11260esac 11261fi 11262PERL=$ac_cv_path_PERL 11263if test -n "$PERL"; then 11264 { echo "$as_me:$LINENO: result: $PERL" >&5 11265echo "${ECHO_T}$PERL" >&6; } 11266else 11267 { echo "$as_me:$LINENO: result: no" >&5 11268echo "${ECHO_T}no" >&6; } 11269fi 11270 11271 11272# Extract the first word of "ldconfig", so it can be a program name with args. 11273set dummy ldconfig; ac_word=$2 11274{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11276if test "${ac_cv_path_LDCONFIG+set}" = set; then 11277 echo $ECHO_N "(cached) $ECHO_C" >&6 11278else 11279 case $LDCONFIG in 11280 [\\/]* | ?:[\\/]*) 11281 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 11282 ;; 11283 *) 11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11285for as_dir in $PATH 11286do 11287 IFS=$as_save_IFS 11288 test -z "$as_dir" && as_dir=. 11289 for ac_exec_ext in '' $ac_executable_extensions; do 11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11291 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" 11292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11293 break 2 11294 fi 11295done 11296done 11297IFS=$as_save_IFS 11298 11299 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" 11300 ;; 11301esac 11302fi 11303LDCONFIG=$ac_cv_path_LDCONFIG 11304if test -n "$LDCONFIG"; then 11305 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 11306echo "${ECHO_T}$LDCONFIG" >&6; } 11307else 11308 { echo "$as_me:$LINENO: result: no" >&5 11309echo "${ECHO_T}no" >&6; } 11310fi 11311 11312 11313if test -n "$ac_tool_prefix"; then 11314 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 11315set dummy ${ac_tool_prefix}ar; ac_word=$2 11316{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11318if test "${ac_cv_prog_AR+set}" = set; then 11319 echo $ECHO_N "(cached) $ECHO_C" >&6 11320else 11321 if test -n "$AR"; then 11322 ac_cv_prog_AR="$AR" # Let the user override the test. 11323else 11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11325for as_dir in $PATH 11326do 11327 IFS=$as_save_IFS 11328 test -z "$as_dir" && as_dir=. 11329 for ac_exec_ext in '' $ac_executable_extensions; do 11330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11331 ac_cv_prog_AR="${ac_tool_prefix}ar" 11332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11333 break 2 11334 fi 11335done 11336done 11337IFS=$as_save_IFS 11338 11339fi 11340fi 11341AR=$ac_cv_prog_AR 11342if test -n "$AR"; then 11343 { echo "$as_me:$LINENO: result: $AR" >&5 11344echo "${ECHO_T}$AR" >&6; } 11345else 11346 { echo "$as_me:$LINENO: result: no" >&5 11347echo "${ECHO_T}no" >&6; } 11348fi 11349 11350 11351fi 11352if test -z "$ac_cv_prog_AR"; then 11353 ac_ct_AR=$AR 11354 # Extract the first word of "ar", so it can be a program name with args. 11355set dummy ar; ac_word=$2 11356{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11358if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 11359 echo $ECHO_N "(cached) $ECHO_C" >&6 11360else 11361 if test -n "$ac_ct_AR"; then 11362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 11363else 11364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11365for as_dir in $PATH 11366do 11367 IFS=$as_save_IFS 11368 test -z "$as_dir" && as_dir=. 11369 for ac_exec_ext in '' $ac_executable_extensions; do 11370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11371 ac_cv_prog_ac_ct_AR="ar" 11372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11373 break 2 11374 fi 11375done 11376done 11377IFS=$as_save_IFS 11378 11379fi 11380fi 11381ac_ct_AR=$ac_cv_prog_ac_ct_AR 11382if test -n "$ac_ct_AR"; then 11383 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 11384echo "${ECHO_T}$ac_ct_AR" >&6; } 11385else 11386 { echo "$as_me:$LINENO: result: no" >&5 11387echo "${ECHO_T}no" >&6; } 11388fi 11389 11390 if test "x$ac_ct_AR" = x; then 11391 AR="ar" 11392 else 11393 case $cross_compiling:$ac_tool_warned in 11394yes:) 11395{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11396whose name does not start with the host triplet. If you think this 11397configuration is useful to you, please write to autoconf@gnu.org." >&5 11398echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11399whose name does not start with the host triplet. If you think this 11400configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11401ac_tool_warned=yes ;; 11402esac 11403 AR=$ac_ct_AR 11404 fi 11405else 11406 AR="$ac_cv_prog_AR" 11407fi 11408 11409if test -n "$ac_tool_prefix"; then 11410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11411set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11412{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11414if test "${ac_cv_prog_RANLIB+set}" = set; then 11415 echo $ECHO_N "(cached) $ECHO_C" >&6 11416else 11417 if test -n "$RANLIB"; then 11418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11419else 11420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11421for as_dir in $PATH 11422do 11423 IFS=$as_save_IFS 11424 test -z "$as_dir" && as_dir=. 11425 for ac_exec_ext in '' $ac_executable_extensions; do 11426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11429 break 2 11430 fi 11431done 11432done 11433IFS=$as_save_IFS 11434 11435fi 11436fi 11437RANLIB=$ac_cv_prog_RANLIB 11438if test -n "$RANLIB"; then 11439 { echo "$as_me:$LINENO: result: $RANLIB" >&5 11440echo "${ECHO_T}$RANLIB" >&6; } 11441else 11442 { echo "$as_me:$LINENO: result: no" >&5 11443echo "${ECHO_T}no" >&6; } 11444fi 11445 11446 11447fi 11448if test -z "$ac_cv_prog_RANLIB"; then 11449 ac_ct_RANLIB=$RANLIB 11450 # Extract the first word of "ranlib", so it can be a program name with args. 11451set dummy ranlib; ac_word=$2 11452{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11454if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 11455 echo $ECHO_N "(cached) $ECHO_C" >&6 11456else 11457 if test -n "$ac_ct_RANLIB"; then 11458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11459else 11460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11461for as_dir in $PATH 11462do 11463 IFS=$as_save_IFS 11464 test -z "$as_dir" && as_dir=. 11465 for ac_exec_ext in '' $ac_executable_extensions; do 11466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11467 ac_cv_prog_ac_ct_RANLIB="ranlib" 11468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11469 break 2 11470 fi 11471done 11472done 11473IFS=$as_save_IFS 11474 11475fi 11476fi 11477ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11478if test -n "$ac_ct_RANLIB"; then 11479 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 11480echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 11481else 11482 { echo "$as_me:$LINENO: result: no" >&5 11483echo "${ECHO_T}no" >&6; } 11484fi 11485 11486 if test "x$ac_ct_RANLIB" = x; then 11487 RANLIB=":" 11488 else 11489 case $cross_compiling:$ac_tool_warned in 11490yes:) 11491{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11492whose name does not start with the host triplet. If you think this 11493configuration is useful to you, please write to autoconf@gnu.org." >&5 11494echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11495whose name does not start with the host triplet. If you think this 11496configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11497ac_tool_warned=yes ;; 11498esac 11499 RANLIB=$ac_ct_RANLIB 11500 fi 11501else 11502 RANLIB="$ac_cv_prog_RANLIB" 11503fi 11504 11505if test -n "$ac_tool_prefix"; then 11506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11507set dummy ${ac_tool_prefix}strip; ac_word=$2 11508{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11510if test "${ac_cv_prog_STRIP+set}" = set; then 11511 echo $ECHO_N "(cached) $ECHO_C" >&6 11512else 11513 if test -n "$STRIP"; then 11514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11515else 11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11517for as_dir in $PATH 11518do 11519 IFS=$as_save_IFS 11520 test -z "$as_dir" && as_dir=. 11521 for ac_exec_ext in '' $ac_executable_extensions; do 11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11523 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11525 break 2 11526 fi 11527done 11528done 11529IFS=$as_save_IFS 11530 11531fi 11532fi 11533STRIP=$ac_cv_prog_STRIP 11534if test -n "$STRIP"; then 11535 { echo "$as_me:$LINENO: result: $STRIP" >&5 11536echo "${ECHO_T}$STRIP" >&6; } 11537else 11538 { echo "$as_me:$LINENO: result: no" >&5 11539echo "${ECHO_T}no" >&6; } 11540fi 11541 11542 11543fi 11544if test -z "$ac_cv_prog_STRIP"; then 11545 ac_ct_STRIP=$STRIP 11546 # Extract the first word of "strip", so it can be a program name with args. 11547set dummy strip; ac_word=$2 11548{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11550if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 11551 echo $ECHO_N "(cached) $ECHO_C" >&6 11552else 11553 if test -n "$ac_ct_STRIP"; then 11554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11555else 11556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11557for as_dir in $PATH 11558do 11559 IFS=$as_save_IFS 11560 test -z "$as_dir" && as_dir=. 11561 for ac_exec_ext in '' $ac_executable_extensions; do 11562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11563 ac_cv_prog_ac_ct_STRIP="strip" 11564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11565 break 2 11566 fi 11567done 11568done 11569IFS=$as_save_IFS 11570 11571fi 11572fi 11573ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11574if test -n "$ac_ct_STRIP"; then 11575 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 11576echo "${ECHO_T}$ac_ct_STRIP" >&6; } 11577else 11578 { echo "$as_me:$LINENO: result: no" >&5 11579echo "${ECHO_T}no" >&6; } 11580fi 11581 11582 if test "x$ac_ct_STRIP" = x; then 11583 STRIP=":" 11584 else 11585 case $cross_compiling:$ac_tool_warned in 11586yes:) 11587{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11588whose name does not start with the host triplet. If you think this 11589configuration is useful to you, please write to autoconf@gnu.org." >&5 11590echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11591whose name does not start with the host triplet. If you think this 11592configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11593ac_tool_warned=yes ;; 11594esac 11595 STRIP=$ac_ct_STRIP 11596 fi 11597else 11598 STRIP="$ac_cv_prog_STRIP" 11599fi 11600 11601# Extract the first word of "makeinfo", so it can be a program name with args. 11602set dummy makeinfo; ac_word=$2 11603{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11605if test "${ac_cv_prog_MAKEINFO+set}" = set; then 11606 echo $ECHO_N "(cached) $ECHO_C" >&6 11607else 11608 if test -n "$MAKEINFO"; then 11609 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 11610else 11611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11612for as_dir in $PATH 11613do 11614 IFS=$as_save_IFS 11615 test -z "$as_dir" && as_dir=. 11616 for ac_exec_ext in '' $ac_executable_extensions; do 11617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11618 ac_cv_prog_MAKEINFO="makeinfo" 11619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11620 break 2 11621 fi 11622done 11623done 11624IFS=$as_save_IFS 11625 11626fi 11627fi 11628MAKEINFO=$ac_cv_prog_MAKEINFO 11629if test -n "$MAKEINFO"; then 11630 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 11631echo "${ECHO_T}$MAKEINFO" >&6; } 11632else 11633 { echo "$as_me:$LINENO: result: no" >&5 11634echo "${ECHO_T}no" >&6; } 11635fi 11636 11637 11638if test "_$MAKEINFO" = "_"; then 11639 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" 11640else 11641 case "$MAKEINFO" in 11642 */missing.*) 11643 { echo "$as_me:$LINENO: WARNING: 11644*** Makeinfo is missing. Info documentation will not be built." >&5 11645echo "$as_me: WARNING: 11646*** Makeinfo is missing. Info documentation will not be built." >&2;} 11647 ;; 11648 *) 11649 ;; 11650 esac 11651fi 11652 11653# Find a good install program. We prefer a C program (faster), 11654# so one script is as good as another. But avoid the broken or 11655# incompatible versions: 11656# SysV /etc/install, /usr/sbin/install 11657# SunOS /usr/etc/install 11658# IRIX /sbin/install 11659# AIX /bin/install 11660# AmigaOS /C/install, which installs bootblocks on floppy discs 11661# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11662# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11663# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11664# OS/2's system install, which has a completely different semantic 11665# ./install, which can be erroneously created by make from ./install.sh. 11666{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 11667echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 11668if test -z "$INSTALL"; then 11669if test "${ac_cv_path_install+set}" = set; then 11670 echo $ECHO_N "(cached) $ECHO_C" >&6 11671else 11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11673for as_dir in $PATH 11674do 11675 IFS=$as_save_IFS 11676 test -z "$as_dir" && as_dir=. 11677 # Account for people who put trailing slashes in PATH elements. 11678case $as_dir/ in 11679 ./ | .// | /cC/* | \ 11680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11681 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 11682 /usr/ucb/* ) ;; 11683 *) 11684 # OSF1 and SCO ODT 3.0 have their own names for install. 11685 # Don't use installbsd from OSF since it installs stuff as root 11686 # by default. 11687 for ac_prog in ginstall scoinst install; do 11688 for ac_exec_ext in '' $ac_executable_extensions; do 11689 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 11690 if test $ac_prog = install && 11691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11692 # AIX install. It has an incompatible calling convention. 11693 : 11694 elif test $ac_prog = install && 11695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11696 # program-specific install script used by HP pwplus--don't use. 11697 : 11698 else 11699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11700 break 3 11701 fi 11702 fi 11703 done 11704 done 11705 ;; 11706esac 11707done 11708IFS=$as_save_IFS 11709 11710 11711fi 11712 if test "${ac_cv_path_install+set}" = set; then 11713 INSTALL=$ac_cv_path_install 11714 else 11715 # As a last resort, use the slow shell script. Don't cache a 11716 # value for INSTALL within a source directory, because that will 11717 # break other packages using the cache if that directory is 11718 # removed, or if the value is a relative name. 11719 INSTALL=$ac_install_sh 11720 fi 11721fi 11722{ echo "$as_me:$LINENO: result: $INSTALL" >&5 11723echo "${ECHO_T}$INSTALL" >&6; } 11724 11725# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11726# It thinks the first close brace ends the variable substitution. 11727test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11728 11729test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11730 11731test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11732 11733# See if we need a separate native compiler. 11734if test $cross_compiling = no; then 11735 BUILD_CC="$CC" 11736 11737else 11738 for ac_prog in gcc cc 11739do 11740 # Extract the first word of "$ac_prog", so it can be a program name with args. 11741set dummy $ac_prog; ac_word=$2 11742{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11744if test "${ac_cv_prog_BUILD_CC+set}" = set; then 11745 echo $ECHO_N "(cached) $ECHO_C" >&6 11746else 11747 if test -n "$BUILD_CC"; then 11748 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 11749else 11750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11751for as_dir in $PATH 11752do 11753 IFS=$as_save_IFS 11754 test -z "$as_dir" && as_dir=. 11755 for ac_exec_ext in '' $ac_executable_extensions; do 11756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11757 ac_cv_prog_BUILD_CC="$ac_prog" 11758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11759 break 2 11760 fi 11761done 11762done 11763IFS=$as_save_IFS 11764 11765fi 11766fi 11767BUILD_CC=$ac_cv_prog_BUILD_CC 11768if test -n "$BUILD_CC"; then 11769 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 11770echo "${ECHO_T}$BUILD_CC" >&6; } 11771else 11772 { echo "$as_me:$LINENO: result: no" >&5 11773echo "${ECHO_T}no" >&6; } 11774fi 11775 11776 11777 test -n "$BUILD_CC" && break 11778done 11779 11780fi 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h 11817do 11818as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11820 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11822if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11823 echo $ECHO_N "(cached) $ECHO_C" >&6 11824fi 11825ac_res=`eval echo '${'$as_ac_Header'}'` 11826 { echo "$as_me:$LINENO: result: $ac_res" >&5 11827echo "${ECHO_T}$ac_res" >&6; } 11828else 11829 # Is the header compilable? 11830{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11831echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11832cat >conftest.$ac_ext <<_ACEOF 11833/* confdefs.h. */ 11834_ACEOF 11835cat confdefs.h >>conftest.$ac_ext 11836cat >>conftest.$ac_ext <<_ACEOF 11837/* end confdefs.h. */ 11838$ac_includes_default 11839#include <$ac_header> 11840_ACEOF 11841rm -f conftest.$ac_objext 11842if { (ac_try="$ac_compile" 11843case "(($ac_try" in 11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11845 *) ac_try_echo=$ac_try;; 11846esac 11847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11848 (eval "$ac_compile") 2>conftest.er1 11849 ac_status=$? 11850 grep -v '^ *+' conftest.er1 >conftest.err 11851 rm -f conftest.er1 11852 cat conftest.err >&5 11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11854 (exit $ac_status); } && { 11855 test -z "$ac_c_werror_flag" || 11856 test ! -s conftest.err 11857 } && test -s conftest.$ac_objext; then 11858 ac_header_compiler=yes 11859else 11860 echo "$as_me: failed program was:" >&5 11861sed 's/^/| /' conftest.$ac_ext >&5 11862 11863 ac_header_compiler=no 11864fi 11865 11866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11867{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11868echo "${ECHO_T}$ac_header_compiler" >&6; } 11869 11870# Is the header present? 11871{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11872echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11873cat >conftest.$ac_ext <<_ACEOF 11874/* confdefs.h. */ 11875_ACEOF 11876cat confdefs.h >>conftest.$ac_ext 11877cat >>conftest.$ac_ext <<_ACEOF 11878/* end confdefs.h. */ 11879#include <$ac_header> 11880_ACEOF 11881if { (ac_try="$ac_cpp conftest.$ac_ext" 11882case "(($ac_try" in 11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11884 *) ac_try_echo=$ac_try;; 11885esac 11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11888 ac_status=$? 11889 grep -v '^ *+' conftest.er1 >conftest.err 11890 rm -f conftest.er1 11891 cat conftest.err >&5 11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11893 (exit $ac_status); } >/dev/null && { 11894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11895 test ! -s conftest.err 11896 }; then 11897 ac_header_preproc=yes 11898else 11899 echo "$as_me: failed program was:" >&5 11900sed 's/^/| /' conftest.$ac_ext >&5 11901 11902 ac_header_preproc=no 11903fi 11904 11905rm -f conftest.err conftest.$ac_ext 11906{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11907echo "${ECHO_T}$ac_header_preproc" >&6; } 11908 11909# So? What about this header? 11910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11911 yes:no: ) 11912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11916 ac_header_preproc=yes 11917 ;; 11918 no:yes:* ) 11919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11926echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11931 11932 ;; 11933esac 11934{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11936if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11937 echo $ECHO_N "(cached) $ECHO_C" >&6 11938else 11939 eval "$as_ac_Header=\$ac_header_preproc" 11940fi 11941ac_res=`eval echo '${'$as_ac_Header'}'` 11942 { echo "$as_me:$LINENO: result: $ac_res" >&5 11943echo "${ECHO_T}$ac_res" >&6; } 11944 11945fi 11946if test `eval echo '${'$as_ac_Header'}'` = yes; then 11947 cat >>confdefs.h <<_ACEOF 11948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11949_ACEOF 11950 11951fi 11952 11953done 11954 11955 11956 11957for ac_header in sys/disk.h sys/mount.h 11958do 11959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11960{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11963 echo $ECHO_N "(cached) $ECHO_C" >&6 11964else 11965 cat >conftest.$ac_ext <<_ACEOF 11966/* confdefs.h. */ 11967_ACEOF 11968cat confdefs.h >>conftest.$ac_ext 11969cat >>conftest.$ac_ext <<_ACEOF 11970/* end confdefs.h. */ 11971 11972#if HAVE_SYS_QUEUE_H 11973#include <sys/queue.h> 11974#endif 11975 11976 11977#include <$ac_header> 11978_ACEOF 11979rm -f conftest.$ac_objext 11980if { (ac_try="$ac_compile" 11981case "(($ac_try" in 11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11983 *) ac_try_echo=$ac_try;; 11984esac 11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11986 (eval "$ac_compile") 2>conftest.er1 11987 ac_status=$? 11988 grep -v '^ *+' conftest.er1 >conftest.err 11989 rm -f conftest.er1 11990 cat conftest.err >&5 11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11992 (exit $ac_status); } && { 11993 test -z "$ac_c_werror_flag" || 11994 test ! -s conftest.err 11995 } && test -s conftest.$ac_objext; then 11996 eval "$as_ac_Header=yes" 11997else 11998 echo "$as_me: failed program was:" >&5 11999sed 's/^/| /' conftest.$ac_ext >&5 12000 12001 eval "$as_ac_Header=no" 12002fi 12003 12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12005fi 12006ac_res=`eval echo '${'$as_ac_Header'}'` 12007 { echo "$as_me:$LINENO: result: $ac_res" >&5 12008echo "${ECHO_T}$ac_res" >&6; } 12009if test `eval echo '${'$as_ac_Header'}'` = yes; then 12010 cat >>confdefs.h <<_ACEOF 12011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12012_ACEOF 12013 12014fi 12015 12016done 12017 12018 12019for ac_header in net/if.h 12020do 12021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12022{ echo "$as_me:$LINENO: checking for $ac_header" >&5 12023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12025 echo $ECHO_N "(cached) $ECHO_C" >&6 12026else 12027 cat >conftest.$ac_ext <<_ACEOF 12028/* confdefs.h. */ 12029_ACEOF 12030cat confdefs.h >>conftest.$ac_ext 12031cat >>conftest.$ac_ext <<_ACEOF 12032/* end confdefs.h. */ 12033 12034#if HAVE_SYS_TYPES_H 12035#include <sys/types.h> 12036#endif 12037#if HAVE_SYS_SOCKET 12038#include <sys/socket.h> 12039#endif 12040 12041 12042#include <$ac_header> 12043_ACEOF 12044rm -f conftest.$ac_objext 12045if { (ac_try="$ac_compile" 12046case "(($ac_try" in 12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12048 *) ac_try_echo=$ac_try;; 12049esac 12050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12051 (eval "$ac_compile") 2>conftest.er1 12052 ac_status=$? 12053 grep -v '^ *+' conftest.er1 >conftest.err 12054 rm -f conftest.er1 12055 cat conftest.err >&5 12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12057 (exit $ac_status); } && { 12058 test -z "$ac_c_werror_flag" || 12059 test ! -s conftest.err 12060 } && test -s conftest.$ac_objext; then 12061 eval "$as_ac_Header=yes" 12062else 12063 echo "$as_me: failed program was:" >&5 12064sed 's/^/| /' conftest.$ac_ext >&5 12065 12066 eval "$as_ac_Header=no" 12067fi 12068 12069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12070fi 12071ac_res=`eval echo '${'$as_ac_Header'}'` 12072 { echo "$as_me:$LINENO: result: $ac_res" >&5 12073echo "${ECHO_T}$ac_res" >&6; } 12074if test `eval echo '${'$as_ac_Header'}'` = yes; then 12075 cat >>confdefs.h <<_ACEOF 12076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12077_ACEOF 12078 12079fi 12080 12081done 12082 12083 12084for ac_func in vprintf 12085do 12086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12087{ echo "$as_me:$LINENO: checking for $ac_func" >&5 12088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 12089if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12090 echo $ECHO_N "(cached) $ECHO_C" >&6 12091else 12092 cat >conftest.$ac_ext <<_ACEOF 12093/* confdefs.h. */ 12094_ACEOF 12095cat confdefs.h >>conftest.$ac_ext 12096cat >>conftest.$ac_ext <<_ACEOF 12097/* end confdefs.h. */ 12098/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12099 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12100#define $ac_func innocuous_$ac_func 12101 12102/* System header to define __stub macros and hopefully few prototypes, 12103 which can conflict with char $ac_func (); below. 12104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12105 <limits.h> exists even on freestanding compilers. */ 12106 12107#ifdef __STDC__ 12108# include <limits.h> 12109#else 12110# include <assert.h> 12111#endif 12112 12113#undef $ac_func 12114 12115/* Override any GCC internal prototype to avoid an error. 12116 Use char because int might match the return type of a GCC 12117 builtin and then its argument prototype would still apply. */ 12118#ifdef __cplusplus 12119extern "C" 12120#endif 12121char $ac_func (); 12122/* The GNU C library defines this for functions which it implements 12123 to always fail with ENOSYS. Some functions are actually named 12124 something starting with __ and the normal name is an alias. */ 12125#if defined __stub_$ac_func || defined __stub___$ac_func 12126choke me 12127#endif 12128 12129int 12130main () 12131{ 12132return $ac_func (); 12133 ; 12134 return 0; 12135} 12136_ACEOF 12137rm -f conftest.$ac_objext conftest$ac_exeext 12138if { (ac_try="$ac_link" 12139case "(($ac_try" in 12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12141 *) ac_try_echo=$ac_try;; 12142esac 12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12144 (eval "$ac_link") 2>conftest.er1 12145 ac_status=$? 12146 grep -v '^ *+' conftest.er1 >conftest.err 12147 rm -f conftest.er1 12148 cat conftest.err >&5 12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12150 (exit $ac_status); } && { 12151 test -z "$ac_c_werror_flag" || 12152 test ! -s conftest.err 12153 } && test -s conftest$ac_exeext && 12154 $as_test_x conftest$ac_exeext; then 12155 eval "$as_ac_var=yes" 12156else 12157 echo "$as_me: failed program was:" >&5 12158sed 's/^/| /' conftest.$ac_ext >&5 12159 12160 eval "$as_ac_var=no" 12161fi 12162 12163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12164 conftest$ac_exeext conftest.$ac_ext 12165fi 12166ac_res=`eval echo '${'$as_ac_var'}'` 12167 { echo "$as_me:$LINENO: result: $ac_res" >&5 12168echo "${ECHO_T}$ac_res" >&6; } 12169if test `eval echo '${'$as_ac_var'}'` = yes; then 12170 cat >>confdefs.h <<_ACEOF 12171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12172_ACEOF 12173 12174{ echo "$as_me:$LINENO: checking for _doprnt" >&5 12175echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 12176if test "${ac_cv_func__doprnt+set}" = set; then 12177 echo $ECHO_N "(cached) $ECHO_C" >&6 12178else 12179 cat >conftest.$ac_ext <<_ACEOF 12180/* confdefs.h. */ 12181_ACEOF 12182cat confdefs.h >>conftest.$ac_ext 12183cat >>conftest.$ac_ext <<_ACEOF 12184/* end confdefs.h. */ 12185/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 12186 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12187#define _doprnt innocuous__doprnt 12188 12189/* System header to define __stub macros and hopefully few prototypes, 12190 which can conflict with char _doprnt (); below. 12191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12192 <limits.h> exists even on freestanding compilers. */ 12193 12194#ifdef __STDC__ 12195# include <limits.h> 12196#else 12197# include <assert.h> 12198#endif 12199 12200#undef _doprnt 12201 12202/* Override any GCC internal prototype to avoid an error. 12203 Use char because int might match the return type of a GCC 12204 builtin and then its argument prototype would still apply. */ 12205#ifdef __cplusplus 12206extern "C" 12207#endif 12208char _doprnt (); 12209/* The GNU C library defines this for functions which it implements 12210 to always fail with ENOSYS. Some functions are actually named 12211 something starting with __ and the normal name is an alias. */ 12212#if defined __stub__doprnt || defined __stub____doprnt 12213choke me 12214#endif 12215 12216int 12217main () 12218{ 12219return _doprnt (); 12220 ; 12221 return 0; 12222} 12223_ACEOF 12224rm -f conftest.$ac_objext conftest$ac_exeext 12225if { (ac_try="$ac_link" 12226case "(($ac_try" in 12227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12228 *) ac_try_echo=$ac_try;; 12229esac 12230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12231 (eval "$ac_link") 2>conftest.er1 12232 ac_status=$? 12233 grep -v '^ *+' conftest.er1 >conftest.err 12234 rm -f conftest.er1 12235 cat conftest.err >&5 12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12237 (exit $ac_status); } && { 12238 test -z "$ac_c_werror_flag" || 12239 test ! -s conftest.err 12240 } && test -s conftest$ac_exeext && 12241 $as_test_x conftest$ac_exeext; then 12242 ac_cv_func__doprnt=yes 12243else 12244 echo "$as_me: failed program was:" >&5 12245sed 's/^/| /' conftest.$ac_ext >&5 12246 12247 ac_cv_func__doprnt=no 12248fi 12249 12250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12251 conftest$ac_exeext conftest.$ac_ext 12252fi 12253{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 12254echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 12255if test $ac_cv_func__doprnt = yes; then 12256 12257cat >>confdefs.h <<\_ACEOF 12258#define HAVE_DOPRNT 1 12259_ACEOF 12260 12261fi 12262 12263fi 12264done 12265 12266 12267{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 12268echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; } 12269if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then 12270 echo $ECHO_N "(cached) $ECHO_C" >&6 12271else 12272 cat >conftest.$ac_ext <<_ACEOF 12273/* confdefs.h. */ 12274_ACEOF 12275cat confdefs.h >>conftest.$ac_ext 12276cat >>conftest.$ac_ext <<_ACEOF 12277/* end confdefs.h. */ 12278#include <dirent.h> 12279 12280int 12281main () 12282{ 12283static struct dirent ac_aggr; 12284if (ac_aggr.d_reclen) 12285return 0; 12286 ; 12287 return 0; 12288} 12289_ACEOF 12290rm -f conftest.$ac_objext 12291if { (ac_try="$ac_compile" 12292case "(($ac_try" in 12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12294 *) ac_try_echo=$ac_try;; 12295esac 12296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12297 (eval "$ac_compile") 2>conftest.er1 12298 ac_status=$? 12299 grep -v '^ *+' conftest.er1 >conftest.err 12300 rm -f conftest.er1 12301 cat conftest.err >&5 12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12303 (exit $ac_status); } && { 12304 test -z "$ac_c_werror_flag" || 12305 test ! -s conftest.err 12306 } && test -s conftest.$ac_objext; then 12307 ac_cv_member_struct_dirent_d_reclen=yes 12308else 12309 echo "$as_me: failed program was:" >&5 12310sed 's/^/| /' conftest.$ac_ext >&5 12311 12312 cat >conftest.$ac_ext <<_ACEOF 12313/* confdefs.h. */ 12314_ACEOF 12315cat confdefs.h >>conftest.$ac_ext 12316cat >>conftest.$ac_ext <<_ACEOF 12317/* end confdefs.h. */ 12318#include <dirent.h> 12319 12320int 12321main () 12322{ 12323static struct dirent ac_aggr; 12324if (sizeof ac_aggr.d_reclen) 12325return 0; 12326 ; 12327 return 0; 12328} 12329_ACEOF 12330rm -f conftest.$ac_objext 12331if { (ac_try="$ac_compile" 12332case "(($ac_try" in 12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12334 *) ac_try_echo=$ac_try;; 12335esac 12336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12337 (eval "$ac_compile") 2>conftest.er1 12338 ac_status=$? 12339 grep -v '^ *+' conftest.er1 >conftest.err 12340 rm -f conftest.er1 12341 cat conftest.err >&5 12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12343 (exit $ac_status); } && { 12344 test -z "$ac_c_werror_flag" || 12345 test ! -s conftest.err 12346 } && test -s conftest.$ac_objext; then 12347 ac_cv_member_struct_dirent_d_reclen=yes 12348else 12349 echo "$as_me: failed program was:" >&5 12350sed 's/^/| /' conftest.$ac_ext >&5 12351 12352 ac_cv_member_struct_dirent_d_reclen=no 12353fi 12354 12355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12356fi 12357 12358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12359fi 12360{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 12361echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } 12362if test $ac_cv_member_struct_dirent_d_reclen = yes; then 12363 cat >>confdefs.h <<\_ACEOF 12364#define HAVE_RECLEN_DIRENT 1 12365_ACEOF 12366 12367fi 12368 12369{ echo "$as_me:$LINENO: checking for ssize_t" >&5 12370echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 12371if test "${ac_cv_type_ssize_t+set}" = set; then 12372 echo $ECHO_N "(cached) $ECHO_C" >&6 12373else 12374 cat >conftest.$ac_ext <<_ACEOF 12375/* confdefs.h. */ 12376_ACEOF 12377cat confdefs.h >>conftest.$ac_ext 12378cat >>conftest.$ac_ext <<_ACEOF 12379/* end confdefs.h. */ 12380#include <sys/types.h> 12381 12382typedef ssize_t ac__type_new_; 12383int 12384main () 12385{ 12386if ((ac__type_new_ *) 0) 12387 return 0; 12388if (sizeof (ac__type_new_)) 12389 return 0; 12390 ; 12391 return 0; 12392} 12393_ACEOF 12394rm -f conftest.$ac_objext 12395if { (ac_try="$ac_compile" 12396case "(($ac_try" in 12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12398 *) ac_try_echo=$ac_try;; 12399esac 12400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12401 (eval "$ac_compile") 2>conftest.er1 12402 ac_status=$? 12403 grep -v '^ *+' conftest.er1 >conftest.err 12404 rm -f conftest.er1 12405 cat conftest.err >&5 12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12407 (exit $ac_status); } && { 12408 test -z "$ac_c_werror_flag" || 12409 test ! -s conftest.err 12410 } && test -s conftest.$ac_objext; then 12411 ac_cv_type_ssize_t=yes 12412else 12413 echo "$as_me: failed program was:" >&5 12414sed 's/^/| /' conftest.$ac_ext >&5 12415 12416 ac_cv_type_ssize_t=no 12417fi 12418 12419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12420fi 12421{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 12422echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } 12423if test $ac_cv_type_ssize_t = yes; then 12424 cat >>confdefs.h <<\_ACEOF 12425#define HAVE_TYPE_SSIZE_T 1 12426_ACEOF 12427 12428fi 12429 12430{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5 12431echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } 12432if test "${ac_cv_have_decl_llseek+set}" = set; then 12433 echo $ECHO_N "(cached) $ECHO_C" >&6 12434else 12435 cat >conftest.$ac_ext <<_ACEOF 12436/* confdefs.h. */ 12437_ACEOF 12438cat confdefs.h >>conftest.$ac_ext 12439cat >>conftest.$ac_ext <<_ACEOF 12440/* end confdefs.h. */ 12441#include <unistd.h> 12442 12443int 12444main () 12445{ 12446#ifndef llseek 12447 (void) llseek; 12448#endif 12449 12450 ; 12451 return 0; 12452} 12453_ACEOF 12454rm -f conftest.$ac_objext 12455if { (ac_try="$ac_compile" 12456case "(($ac_try" in 12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12458 *) ac_try_echo=$ac_try;; 12459esac 12460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12461 (eval "$ac_compile") 2>conftest.er1 12462 ac_status=$? 12463 grep -v '^ *+' conftest.er1 >conftest.err 12464 rm -f conftest.er1 12465 cat conftest.err >&5 12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12467 (exit $ac_status); } && { 12468 test -z "$ac_c_werror_flag" || 12469 test ! -s conftest.err 12470 } && test -s conftest.$ac_objext; then 12471 ac_cv_have_decl_llseek=yes 12472else 12473 echo "$as_me: failed program was:" >&5 12474sed 's/^/| /' conftest.$ac_ext >&5 12475 12476 ac_cv_have_decl_llseek=no 12477fi 12478 12479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12480fi 12481{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 12482echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } 12483if test $ac_cv_have_decl_llseek = yes; then 12484 cat >>confdefs.h <<\_ACEOF 12485#define HAVE_LLSEEK_PROTOTYPE 1 12486_ACEOF 12487 12488fi 12489 12490{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 12491echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } 12492if test "${ac_cv_have_decl_lseek64+set}" = set; then 12493 echo $ECHO_N "(cached) $ECHO_C" >&6 12494else 12495 cat >conftest.$ac_ext <<_ACEOF 12496/* confdefs.h. */ 12497_ACEOF 12498cat confdefs.h >>conftest.$ac_ext 12499cat >>conftest.$ac_ext <<_ACEOF 12500/* end confdefs.h. */ 12501#define _LARGEFILE_SOURCE 12502 #define _LARGEFILE64_SOURCE 12503 #include <unistd.h> 12504 12505int 12506main () 12507{ 12508#ifndef lseek64 12509 (void) lseek64; 12510#endif 12511 12512 ; 12513 return 0; 12514} 12515_ACEOF 12516rm -f conftest.$ac_objext 12517if { (ac_try="$ac_compile" 12518case "(($ac_try" in 12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12520 *) ac_try_echo=$ac_try;; 12521esac 12522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12523 (eval "$ac_compile") 2>conftest.er1 12524 ac_status=$? 12525 grep -v '^ *+' conftest.er1 >conftest.err 12526 rm -f conftest.er1 12527 cat conftest.err >&5 12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12529 (exit $ac_status); } && { 12530 test -z "$ac_c_werror_flag" || 12531 test ! -s conftest.err 12532 } && test -s conftest.$ac_objext; then 12533 ac_cv_have_decl_lseek64=yes 12534else 12535 echo "$as_me: failed program was:" >&5 12536sed 's/^/| /' conftest.$ac_ext >&5 12537 12538 ac_cv_have_decl_lseek64=no 12539fi 12540 12541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12542fi 12543{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 12544echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } 12545if test $ac_cv_have_decl_lseek64 = yes; then 12546 cat >>confdefs.h <<\_ACEOF 12547#define HAVE_LSEEK64_PROTOTYPE 1 12548_ACEOF 12549 12550fi 12551 12552{ echo "$as_me:$LINENO: checking for short" >&5 12553echo $ECHO_N "checking for short... $ECHO_C" >&6; } 12554if test "${ac_cv_type_short+set}" = set; then 12555 echo $ECHO_N "(cached) $ECHO_C" >&6 12556else 12557 cat >conftest.$ac_ext <<_ACEOF 12558/* confdefs.h. */ 12559_ACEOF 12560cat confdefs.h >>conftest.$ac_ext 12561cat >>conftest.$ac_ext <<_ACEOF 12562/* end confdefs.h. */ 12563$ac_includes_default 12564typedef short ac__type_new_; 12565int 12566main () 12567{ 12568if ((ac__type_new_ *) 0) 12569 return 0; 12570if (sizeof (ac__type_new_)) 12571 return 0; 12572 ; 12573 return 0; 12574} 12575_ACEOF 12576rm -f conftest.$ac_objext 12577if { (ac_try="$ac_compile" 12578case "(($ac_try" in 12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12580 *) ac_try_echo=$ac_try;; 12581esac 12582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12583 (eval "$ac_compile") 2>conftest.er1 12584 ac_status=$? 12585 grep -v '^ *+' conftest.er1 >conftest.err 12586 rm -f conftest.er1 12587 cat conftest.err >&5 12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12589 (exit $ac_status); } && { 12590 test -z "$ac_c_werror_flag" || 12591 test ! -s conftest.err 12592 } && test -s conftest.$ac_objext; then 12593 ac_cv_type_short=yes 12594else 12595 echo "$as_me: failed program was:" >&5 12596sed 's/^/| /' conftest.$ac_ext >&5 12597 12598 ac_cv_type_short=no 12599fi 12600 12601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12602fi 12603{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 12604echo "${ECHO_T}$ac_cv_type_short" >&6; } 12605 12606# The cast to long int works around a bug in the HP C Compiler 12607# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12608# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12609# This bug is HP SR number 8606223364. 12610{ echo "$as_me:$LINENO: checking size of short" >&5 12611echo $ECHO_N "checking size of short... $ECHO_C" >&6; } 12612if test "${ac_cv_sizeof_short+set}" = set; then 12613 echo $ECHO_N "(cached) $ECHO_C" >&6 12614else 12615 if test "$cross_compiling" = yes; then 12616 # Depending upon the size, compute the lo and hi bounds. 12617cat >conftest.$ac_ext <<_ACEOF 12618/* confdefs.h. */ 12619_ACEOF 12620cat confdefs.h >>conftest.$ac_ext 12621cat >>conftest.$ac_ext <<_ACEOF 12622/* end confdefs.h. */ 12623$ac_includes_default 12624 typedef short ac__type_sizeof_; 12625int 12626main () 12627{ 12628static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12629test_array [0] = 0 12630 12631 ; 12632 return 0; 12633} 12634_ACEOF 12635rm -f conftest.$ac_objext 12636if { (ac_try="$ac_compile" 12637case "(($ac_try" in 12638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12639 *) ac_try_echo=$ac_try;; 12640esac 12641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12642 (eval "$ac_compile") 2>conftest.er1 12643 ac_status=$? 12644 grep -v '^ *+' conftest.er1 >conftest.err 12645 rm -f conftest.er1 12646 cat conftest.err >&5 12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12648 (exit $ac_status); } && { 12649 test -z "$ac_c_werror_flag" || 12650 test ! -s conftest.err 12651 } && test -s conftest.$ac_objext; then 12652 ac_lo=0 ac_mid=0 12653 while :; do 12654 cat >conftest.$ac_ext <<_ACEOF 12655/* confdefs.h. */ 12656_ACEOF 12657cat confdefs.h >>conftest.$ac_ext 12658cat >>conftest.$ac_ext <<_ACEOF 12659/* end confdefs.h. */ 12660$ac_includes_default 12661 typedef short ac__type_sizeof_; 12662int 12663main () 12664{ 12665static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12666test_array [0] = 0 12667 12668 ; 12669 return 0; 12670} 12671_ACEOF 12672rm -f conftest.$ac_objext 12673if { (ac_try="$ac_compile" 12674case "(($ac_try" in 12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12676 *) ac_try_echo=$ac_try;; 12677esac 12678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12679 (eval "$ac_compile") 2>conftest.er1 12680 ac_status=$? 12681 grep -v '^ *+' conftest.er1 >conftest.err 12682 rm -f conftest.er1 12683 cat conftest.err >&5 12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12685 (exit $ac_status); } && { 12686 test -z "$ac_c_werror_flag" || 12687 test ! -s conftest.err 12688 } && test -s conftest.$ac_objext; then 12689 ac_hi=$ac_mid; break 12690else 12691 echo "$as_me: failed program was:" >&5 12692sed 's/^/| /' conftest.$ac_ext >&5 12693 12694 ac_lo=`expr $ac_mid + 1` 12695 if test $ac_lo -le $ac_mid; then 12696 ac_lo= ac_hi= 12697 break 12698 fi 12699 ac_mid=`expr 2 '*' $ac_mid + 1` 12700fi 12701 12702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12703 done 12704else 12705 echo "$as_me: failed program was:" >&5 12706sed 's/^/| /' conftest.$ac_ext >&5 12707 12708 cat >conftest.$ac_ext <<_ACEOF 12709/* confdefs.h. */ 12710_ACEOF 12711cat confdefs.h >>conftest.$ac_ext 12712cat >>conftest.$ac_ext <<_ACEOF 12713/* end confdefs.h. */ 12714$ac_includes_default 12715 typedef short ac__type_sizeof_; 12716int 12717main () 12718{ 12719static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 12720test_array [0] = 0 12721 12722 ; 12723 return 0; 12724} 12725_ACEOF 12726rm -f conftest.$ac_objext 12727if { (ac_try="$ac_compile" 12728case "(($ac_try" in 12729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12730 *) ac_try_echo=$ac_try;; 12731esac 12732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12733 (eval "$ac_compile") 2>conftest.er1 12734 ac_status=$? 12735 grep -v '^ *+' conftest.er1 >conftest.err 12736 rm -f conftest.er1 12737 cat conftest.err >&5 12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12739 (exit $ac_status); } && { 12740 test -z "$ac_c_werror_flag" || 12741 test ! -s conftest.err 12742 } && test -s conftest.$ac_objext; then 12743 ac_hi=-1 ac_mid=-1 12744 while :; do 12745 cat >conftest.$ac_ext <<_ACEOF 12746/* confdefs.h. */ 12747_ACEOF 12748cat confdefs.h >>conftest.$ac_ext 12749cat >>conftest.$ac_ext <<_ACEOF 12750/* end confdefs.h. */ 12751$ac_includes_default 12752 typedef short ac__type_sizeof_; 12753int 12754main () 12755{ 12756static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 12757test_array [0] = 0 12758 12759 ; 12760 return 0; 12761} 12762_ACEOF 12763rm -f conftest.$ac_objext 12764if { (ac_try="$ac_compile" 12765case "(($ac_try" in 12766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12767 *) ac_try_echo=$ac_try;; 12768esac 12769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12770 (eval "$ac_compile") 2>conftest.er1 12771 ac_status=$? 12772 grep -v '^ *+' conftest.er1 >conftest.err 12773 rm -f conftest.er1 12774 cat conftest.err >&5 12775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12776 (exit $ac_status); } && { 12777 test -z "$ac_c_werror_flag" || 12778 test ! -s conftest.err 12779 } && test -s conftest.$ac_objext; then 12780 ac_lo=$ac_mid; break 12781else 12782 echo "$as_me: failed program was:" >&5 12783sed 's/^/| /' conftest.$ac_ext >&5 12784 12785 ac_hi=`expr '(' $ac_mid ')' - 1` 12786 if test $ac_mid -le $ac_hi; then 12787 ac_lo= ac_hi= 12788 break 12789 fi 12790 ac_mid=`expr 2 '*' $ac_mid` 12791fi 12792 12793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12794 done 12795else 12796 echo "$as_me: failed program was:" >&5 12797sed 's/^/| /' conftest.$ac_ext >&5 12798 12799 ac_lo= ac_hi= 12800fi 12801 12802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12803fi 12804 12805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12806# Binary search between lo and hi bounds. 12807while test "x$ac_lo" != "x$ac_hi"; do 12808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12809 cat >conftest.$ac_ext <<_ACEOF 12810/* confdefs.h. */ 12811_ACEOF 12812cat confdefs.h >>conftest.$ac_ext 12813cat >>conftest.$ac_ext <<_ACEOF 12814/* end confdefs.h. */ 12815$ac_includes_default 12816 typedef short ac__type_sizeof_; 12817int 12818main () 12819{ 12820static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12821test_array [0] = 0 12822 12823 ; 12824 return 0; 12825} 12826_ACEOF 12827rm -f conftest.$ac_objext 12828if { (ac_try="$ac_compile" 12829case "(($ac_try" in 12830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12831 *) ac_try_echo=$ac_try;; 12832esac 12833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12834 (eval "$ac_compile") 2>conftest.er1 12835 ac_status=$? 12836 grep -v '^ *+' conftest.er1 >conftest.err 12837 rm -f conftest.er1 12838 cat conftest.err >&5 12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12840 (exit $ac_status); } && { 12841 test -z "$ac_c_werror_flag" || 12842 test ! -s conftest.err 12843 } && test -s conftest.$ac_objext; then 12844 ac_hi=$ac_mid 12845else 12846 echo "$as_me: failed program was:" >&5 12847sed 's/^/| /' conftest.$ac_ext >&5 12848 12849 ac_lo=`expr '(' $ac_mid ')' + 1` 12850fi 12851 12852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12853done 12854case $ac_lo in 12855?*) ac_cv_sizeof_short=$ac_lo;; 12856'') if test "$ac_cv_type_short" = yes; then 12857 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 12858See \`config.log' for more details." >&5 12859echo "$as_me: error: cannot compute sizeof (short) 12860See \`config.log' for more details." >&2;} 12861 { (exit 77); exit 77; }; } 12862 else 12863 ac_cv_sizeof_short=0 12864 fi ;; 12865esac 12866else 12867 cat >conftest.$ac_ext <<_ACEOF 12868/* confdefs.h. */ 12869_ACEOF 12870cat confdefs.h >>conftest.$ac_ext 12871cat >>conftest.$ac_ext <<_ACEOF 12872/* end confdefs.h. */ 12873$ac_includes_default 12874 typedef short ac__type_sizeof_; 12875static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 12876static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 12877#include <stdio.h> 12878#include <stdlib.h> 12879int 12880main () 12881{ 12882 12883 FILE *f = fopen ("conftest.val", "w"); 12884 if (! f) 12885 return 1; 12886 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 12887 { 12888 long int i = longval (); 12889 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12890 return 1; 12891 fprintf (f, "%ld\n", i); 12892 } 12893 else 12894 { 12895 unsigned long int i = ulongval (); 12896 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12897 return 1; 12898 fprintf (f, "%lu\n", i); 12899 } 12900 return ferror (f) || fclose (f) != 0; 12901 12902 ; 12903 return 0; 12904} 12905_ACEOF 12906rm -f conftest$ac_exeext 12907if { (ac_try="$ac_link" 12908case "(($ac_try" in 12909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12910 *) ac_try_echo=$ac_try;; 12911esac 12912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12913 (eval "$ac_link") 2>&5 12914 ac_status=$? 12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12917 { (case "(($ac_try" in 12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12919 *) ac_try_echo=$ac_try;; 12920esac 12921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12922 (eval "$ac_try") 2>&5 12923 ac_status=$? 12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12925 (exit $ac_status); }; }; then 12926 ac_cv_sizeof_short=`cat conftest.val` 12927else 12928 echo "$as_me: program exited with status $ac_status" >&5 12929echo "$as_me: failed program was:" >&5 12930sed 's/^/| /' conftest.$ac_ext >&5 12931 12932( exit $ac_status ) 12933if test "$ac_cv_type_short" = yes; then 12934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 12935See \`config.log' for more details." >&5 12936echo "$as_me: error: cannot compute sizeof (short) 12937See \`config.log' for more details." >&2;} 12938 { (exit 77); exit 77; }; } 12939 else 12940 ac_cv_sizeof_short=0 12941 fi 12942fi 12943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12944fi 12945rm -f conftest.val 12946fi 12947{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 12948echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 12949 12950 12951 12952cat >>confdefs.h <<_ACEOF 12953#define SIZEOF_SHORT $ac_cv_sizeof_short 12954_ACEOF 12955 12956 12957{ echo "$as_me:$LINENO: checking for int" >&5 12958echo $ECHO_N "checking for int... $ECHO_C" >&6; } 12959if test "${ac_cv_type_int+set}" = set; then 12960 echo $ECHO_N "(cached) $ECHO_C" >&6 12961else 12962 cat >conftest.$ac_ext <<_ACEOF 12963/* confdefs.h. */ 12964_ACEOF 12965cat confdefs.h >>conftest.$ac_ext 12966cat >>conftest.$ac_ext <<_ACEOF 12967/* end confdefs.h. */ 12968$ac_includes_default 12969typedef int ac__type_new_; 12970int 12971main () 12972{ 12973if ((ac__type_new_ *) 0) 12974 return 0; 12975if (sizeof (ac__type_new_)) 12976 return 0; 12977 ; 12978 return 0; 12979} 12980_ACEOF 12981rm -f conftest.$ac_objext 12982if { (ac_try="$ac_compile" 12983case "(($ac_try" in 12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12985 *) ac_try_echo=$ac_try;; 12986esac 12987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12988 (eval "$ac_compile") 2>conftest.er1 12989 ac_status=$? 12990 grep -v '^ *+' conftest.er1 >conftest.err 12991 rm -f conftest.er1 12992 cat conftest.err >&5 12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12994 (exit $ac_status); } && { 12995 test -z "$ac_c_werror_flag" || 12996 test ! -s conftest.err 12997 } && test -s conftest.$ac_objext; then 12998 ac_cv_type_int=yes 12999else 13000 echo "$as_me: failed program was:" >&5 13001sed 's/^/| /' conftest.$ac_ext >&5 13002 13003 ac_cv_type_int=no 13004fi 13005 13006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13007fi 13008{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 13009echo "${ECHO_T}$ac_cv_type_int" >&6; } 13010 13011# The cast to long int works around a bug in the HP C Compiler 13012# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13013# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13014# This bug is HP SR number 8606223364. 13015{ echo "$as_me:$LINENO: checking size of int" >&5 13016echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 13017if test "${ac_cv_sizeof_int+set}" = set; then 13018 echo $ECHO_N "(cached) $ECHO_C" >&6 13019else 13020 if test "$cross_compiling" = yes; then 13021 # Depending upon the size, compute the lo and hi bounds. 13022cat >conftest.$ac_ext <<_ACEOF 13023/* confdefs.h. */ 13024_ACEOF 13025cat confdefs.h >>conftest.$ac_ext 13026cat >>conftest.$ac_ext <<_ACEOF 13027/* end confdefs.h. */ 13028$ac_includes_default 13029 typedef int ac__type_sizeof_; 13030int 13031main () 13032{ 13033static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 13034test_array [0] = 0 13035 13036 ; 13037 return 0; 13038} 13039_ACEOF 13040rm -f conftest.$ac_objext 13041if { (ac_try="$ac_compile" 13042case "(($ac_try" in 13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13044 *) ac_try_echo=$ac_try;; 13045esac 13046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13047 (eval "$ac_compile") 2>conftest.er1 13048 ac_status=$? 13049 grep -v '^ *+' conftest.er1 >conftest.err 13050 rm -f conftest.er1 13051 cat conftest.err >&5 13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13053 (exit $ac_status); } && { 13054 test -z "$ac_c_werror_flag" || 13055 test ! -s conftest.err 13056 } && test -s conftest.$ac_objext; then 13057 ac_lo=0 ac_mid=0 13058 while :; do 13059 cat >conftest.$ac_ext <<_ACEOF 13060/* confdefs.h. */ 13061_ACEOF 13062cat confdefs.h >>conftest.$ac_ext 13063cat >>conftest.$ac_ext <<_ACEOF 13064/* end confdefs.h. */ 13065$ac_includes_default 13066 typedef int ac__type_sizeof_; 13067int 13068main () 13069{ 13070static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13071test_array [0] = 0 13072 13073 ; 13074 return 0; 13075} 13076_ACEOF 13077rm -f conftest.$ac_objext 13078if { (ac_try="$ac_compile" 13079case "(($ac_try" in 13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13081 *) ac_try_echo=$ac_try;; 13082esac 13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13084 (eval "$ac_compile") 2>conftest.er1 13085 ac_status=$? 13086 grep -v '^ *+' conftest.er1 >conftest.err 13087 rm -f conftest.er1 13088 cat conftest.err >&5 13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13090 (exit $ac_status); } && { 13091 test -z "$ac_c_werror_flag" || 13092 test ! -s conftest.err 13093 } && test -s conftest.$ac_objext; then 13094 ac_hi=$ac_mid; break 13095else 13096 echo "$as_me: failed program was:" >&5 13097sed 's/^/| /' conftest.$ac_ext >&5 13098 13099 ac_lo=`expr $ac_mid + 1` 13100 if test $ac_lo -le $ac_mid; then 13101 ac_lo= ac_hi= 13102 break 13103 fi 13104 ac_mid=`expr 2 '*' $ac_mid + 1` 13105fi 13106 13107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13108 done 13109else 13110 echo "$as_me: failed program was:" >&5 13111sed 's/^/| /' conftest.$ac_ext >&5 13112 13113 cat >conftest.$ac_ext <<_ACEOF 13114/* confdefs.h. */ 13115_ACEOF 13116cat confdefs.h >>conftest.$ac_ext 13117cat >>conftest.$ac_ext <<_ACEOF 13118/* end confdefs.h. */ 13119$ac_includes_default 13120 typedef int ac__type_sizeof_; 13121int 13122main () 13123{ 13124static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 13125test_array [0] = 0 13126 13127 ; 13128 return 0; 13129} 13130_ACEOF 13131rm -f conftest.$ac_objext 13132if { (ac_try="$ac_compile" 13133case "(($ac_try" in 13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13135 *) ac_try_echo=$ac_try;; 13136esac 13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13138 (eval "$ac_compile") 2>conftest.er1 13139 ac_status=$? 13140 grep -v '^ *+' conftest.er1 >conftest.err 13141 rm -f conftest.er1 13142 cat conftest.err >&5 13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13144 (exit $ac_status); } && { 13145 test -z "$ac_c_werror_flag" || 13146 test ! -s conftest.err 13147 } && test -s conftest.$ac_objext; then 13148 ac_hi=-1 ac_mid=-1 13149 while :; do 13150 cat >conftest.$ac_ext <<_ACEOF 13151/* confdefs.h. */ 13152_ACEOF 13153cat confdefs.h >>conftest.$ac_ext 13154cat >>conftest.$ac_ext <<_ACEOF 13155/* end confdefs.h. */ 13156$ac_includes_default 13157 typedef int ac__type_sizeof_; 13158int 13159main () 13160{ 13161static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 13162test_array [0] = 0 13163 13164 ; 13165 return 0; 13166} 13167_ACEOF 13168rm -f conftest.$ac_objext 13169if { (ac_try="$ac_compile" 13170case "(($ac_try" in 13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13172 *) ac_try_echo=$ac_try;; 13173esac 13174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13175 (eval "$ac_compile") 2>conftest.er1 13176 ac_status=$? 13177 grep -v '^ *+' conftest.er1 >conftest.err 13178 rm -f conftest.er1 13179 cat conftest.err >&5 13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13181 (exit $ac_status); } && { 13182 test -z "$ac_c_werror_flag" || 13183 test ! -s conftest.err 13184 } && test -s conftest.$ac_objext; then 13185 ac_lo=$ac_mid; break 13186else 13187 echo "$as_me: failed program was:" >&5 13188sed 's/^/| /' conftest.$ac_ext >&5 13189 13190 ac_hi=`expr '(' $ac_mid ')' - 1` 13191 if test $ac_mid -le $ac_hi; then 13192 ac_lo= ac_hi= 13193 break 13194 fi 13195 ac_mid=`expr 2 '*' $ac_mid` 13196fi 13197 13198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13199 done 13200else 13201 echo "$as_me: failed program was:" >&5 13202sed 's/^/| /' conftest.$ac_ext >&5 13203 13204 ac_lo= ac_hi= 13205fi 13206 13207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13208fi 13209 13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13211# Binary search between lo and hi bounds. 13212while test "x$ac_lo" != "x$ac_hi"; do 13213 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13214 cat >conftest.$ac_ext <<_ACEOF 13215/* confdefs.h. */ 13216_ACEOF 13217cat confdefs.h >>conftest.$ac_ext 13218cat >>conftest.$ac_ext <<_ACEOF 13219/* end confdefs.h. */ 13220$ac_includes_default 13221 typedef int ac__type_sizeof_; 13222int 13223main () 13224{ 13225static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13226test_array [0] = 0 13227 13228 ; 13229 return 0; 13230} 13231_ACEOF 13232rm -f conftest.$ac_objext 13233if { (ac_try="$ac_compile" 13234case "(($ac_try" in 13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13236 *) ac_try_echo=$ac_try;; 13237esac 13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13239 (eval "$ac_compile") 2>conftest.er1 13240 ac_status=$? 13241 grep -v '^ *+' conftest.er1 >conftest.err 13242 rm -f conftest.er1 13243 cat conftest.err >&5 13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13245 (exit $ac_status); } && { 13246 test -z "$ac_c_werror_flag" || 13247 test ! -s conftest.err 13248 } && test -s conftest.$ac_objext; then 13249 ac_hi=$ac_mid 13250else 13251 echo "$as_me: failed program was:" >&5 13252sed 's/^/| /' conftest.$ac_ext >&5 13253 13254 ac_lo=`expr '(' $ac_mid ')' + 1` 13255fi 13256 13257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13258done 13259case $ac_lo in 13260?*) ac_cv_sizeof_int=$ac_lo;; 13261'') if test "$ac_cv_type_int" = yes; then 13262 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 13263See \`config.log' for more details." >&5 13264echo "$as_me: error: cannot compute sizeof (int) 13265See \`config.log' for more details." >&2;} 13266 { (exit 77); exit 77; }; } 13267 else 13268 ac_cv_sizeof_int=0 13269 fi ;; 13270esac 13271else 13272 cat >conftest.$ac_ext <<_ACEOF 13273/* confdefs.h. */ 13274_ACEOF 13275cat confdefs.h >>conftest.$ac_ext 13276cat >>conftest.$ac_ext <<_ACEOF 13277/* end confdefs.h. */ 13278$ac_includes_default 13279 typedef int ac__type_sizeof_; 13280static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 13281static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 13282#include <stdio.h> 13283#include <stdlib.h> 13284int 13285main () 13286{ 13287 13288 FILE *f = fopen ("conftest.val", "w"); 13289 if (! f) 13290 return 1; 13291 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 13292 { 13293 long int i = longval (); 13294 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13295 return 1; 13296 fprintf (f, "%ld\n", i); 13297 } 13298 else 13299 { 13300 unsigned long int i = ulongval (); 13301 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13302 return 1; 13303 fprintf (f, "%lu\n", i); 13304 } 13305 return ferror (f) || fclose (f) != 0; 13306 13307 ; 13308 return 0; 13309} 13310_ACEOF 13311rm -f conftest$ac_exeext 13312if { (ac_try="$ac_link" 13313case "(($ac_try" in 13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13315 *) ac_try_echo=$ac_try;; 13316esac 13317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13318 (eval "$ac_link") 2>&5 13319 ac_status=$? 13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13322 { (case "(($ac_try" in 13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13324 *) ac_try_echo=$ac_try;; 13325esac 13326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13327 (eval "$ac_try") 2>&5 13328 ac_status=$? 13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13330 (exit $ac_status); }; }; then 13331 ac_cv_sizeof_int=`cat conftest.val` 13332else 13333 echo "$as_me: program exited with status $ac_status" >&5 13334echo "$as_me: failed program was:" >&5 13335sed 's/^/| /' conftest.$ac_ext >&5 13336 13337( exit $ac_status ) 13338if test "$ac_cv_type_int" = yes; then 13339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 13340See \`config.log' for more details." >&5 13341echo "$as_me: error: cannot compute sizeof (int) 13342See \`config.log' for more details." >&2;} 13343 { (exit 77); exit 77; }; } 13344 else 13345 ac_cv_sizeof_int=0 13346 fi 13347fi 13348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13349fi 13350rm -f conftest.val 13351fi 13352{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 13353echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 13354 13355 13356 13357cat >>confdefs.h <<_ACEOF 13358#define SIZEOF_INT $ac_cv_sizeof_int 13359_ACEOF 13360 13361 13362{ echo "$as_me:$LINENO: checking for long" >&5 13363echo $ECHO_N "checking for long... $ECHO_C" >&6; } 13364if test "${ac_cv_type_long+set}" = set; then 13365 echo $ECHO_N "(cached) $ECHO_C" >&6 13366else 13367 cat >conftest.$ac_ext <<_ACEOF 13368/* confdefs.h. */ 13369_ACEOF 13370cat confdefs.h >>conftest.$ac_ext 13371cat >>conftest.$ac_ext <<_ACEOF 13372/* end confdefs.h. */ 13373$ac_includes_default 13374typedef long ac__type_new_; 13375int 13376main () 13377{ 13378if ((ac__type_new_ *) 0) 13379 return 0; 13380if (sizeof (ac__type_new_)) 13381 return 0; 13382 ; 13383 return 0; 13384} 13385_ACEOF 13386rm -f conftest.$ac_objext 13387if { (ac_try="$ac_compile" 13388case "(($ac_try" in 13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13390 *) ac_try_echo=$ac_try;; 13391esac 13392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13393 (eval "$ac_compile") 2>conftest.er1 13394 ac_status=$? 13395 grep -v '^ *+' conftest.er1 >conftest.err 13396 rm -f conftest.er1 13397 cat conftest.err >&5 13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13399 (exit $ac_status); } && { 13400 test -z "$ac_c_werror_flag" || 13401 test ! -s conftest.err 13402 } && test -s conftest.$ac_objext; then 13403 ac_cv_type_long=yes 13404else 13405 echo "$as_me: failed program was:" >&5 13406sed 's/^/| /' conftest.$ac_ext >&5 13407 13408 ac_cv_type_long=no 13409fi 13410 13411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13412fi 13413{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 13414echo "${ECHO_T}$ac_cv_type_long" >&6; } 13415 13416# The cast to long int works around a bug in the HP C Compiler 13417# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13418# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13419# This bug is HP SR number 8606223364. 13420{ echo "$as_me:$LINENO: checking size of long" >&5 13421echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 13422if test "${ac_cv_sizeof_long+set}" = set; then 13423 echo $ECHO_N "(cached) $ECHO_C" >&6 13424else 13425 if test "$cross_compiling" = yes; then 13426 # Depending upon the size, compute the lo and hi bounds. 13427cat >conftest.$ac_ext <<_ACEOF 13428/* confdefs.h. */ 13429_ACEOF 13430cat confdefs.h >>conftest.$ac_ext 13431cat >>conftest.$ac_ext <<_ACEOF 13432/* end confdefs.h. */ 13433$ac_includes_default 13434 typedef long ac__type_sizeof_; 13435int 13436main () 13437{ 13438static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 13439test_array [0] = 0 13440 13441 ; 13442 return 0; 13443} 13444_ACEOF 13445rm -f conftest.$ac_objext 13446if { (ac_try="$ac_compile" 13447case "(($ac_try" in 13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13449 *) ac_try_echo=$ac_try;; 13450esac 13451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13452 (eval "$ac_compile") 2>conftest.er1 13453 ac_status=$? 13454 grep -v '^ *+' conftest.er1 >conftest.err 13455 rm -f conftest.er1 13456 cat conftest.err >&5 13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13458 (exit $ac_status); } && { 13459 test -z "$ac_c_werror_flag" || 13460 test ! -s conftest.err 13461 } && test -s conftest.$ac_objext; then 13462 ac_lo=0 ac_mid=0 13463 while :; do 13464 cat >conftest.$ac_ext <<_ACEOF 13465/* confdefs.h. */ 13466_ACEOF 13467cat confdefs.h >>conftest.$ac_ext 13468cat >>conftest.$ac_ext <<_ACEOF 13469/* end confdefs.h. */ 13470$ac_includes_default 13471 typedef long ac__type_sizeof_; 13472int 13473main () 13474{ 13475static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13476test_array [0] = 0 13477 13478 ; 13479 return 0; 13480} 13481_ACEOF 13482rm -f conftest.$ac_objext 13483if { (ac_try="$ac_compile" 13484case "(($ac_try" in 13485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13486 *) ac_try_echo=$ac_try;; 13487esac 13488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13489 (eval "$ac_compile") 2>conftest.er1 13490 ac_status=$? 13491 grep -v '^ *+' conftest.er1 >conftest.err 13492 rm -f conftest.er1 13493 cat conftest.err >&5 13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13495 (exit $ac_status); } && { 13496 test -z "$ac_c_werror_flag" || 13497 test ! -s conftest.err 13498 } && test -s conftest.$ac_objext; then 13499 ac_hi=$ac_mid; break 13500else 13501 echo "$as_me: failed program was:" >&5 13502sed 's/^/| /' conftest.$ac_ext >&5 13503 13504 ac_lo=`expr $ac_mid + 1` 13505 if test $ac_lo -le $ac_mid; then 13506 ac_lo= ac_hi= 13507 break 13508 fi 13509 ac_mid=`expr 2 '*' $ac_mid + 1` 13510fi 13511 13512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13513 done 13514else 13515 echo "$as_me: failed program was:" >&5 13516sed 's/^/| /' conftest.$ac_ext >&5 13517 13518 cat >conftest.$ac_ext <<_ACEOF 13519/* confdefs.h. */ 13520_ACEOF 13521cat confdefs.h >>conftest.$ac_ext 13522cat >>conftest.$ac_ext <<_ACEOF 13523/* end confdefs.h. */ 13524$ac_includes_default 13525 typedef long ac__type_sizeof_; 13526int 13527main () 13528{ 13529static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 13530test_array [0] = 0 13531 13532 ; 13533 return 0; 13534} 13535_ACEOF 13536rm -f conftest.$ac_objext 13537if { (ac_try="$ac_compile" 13538case "(($ac_try" in 13539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13540 *) ac_try_echo=$ac_try;; 13541esac 13542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13543 (eval "$ac_compile") 2>conftest.er1 13544 ac_status=$? 13545 grep -v '^ *+' conftest.er1 >conftest.err 13546 rm -f conftest.er1 13547 cat conftest.err >&5 13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13549 (exit $ac_status); } && { 13550 test -z "$ac_c_werror_flag" || 13551 test ! -s conftest.err 13552 } && test -s conftest.$ac_objext; then 13553 ac_hi=-1 ac_mid=-1 13554 while :; do 13555 cat >conftest.$ac_ext <<_ACEOF 13556/* confdefs.h. */ 13557_ACEOF 13558cat confdefs.h >>conftest.$ac_ext 13559cat >>conftest.$ac_ext <<_ACEOF 13560/* end confdefs.h. */ 13561$ac_includes_default 13562 typedef long ac__type_sizeof_; 13563int 13564main () 13565{ 13566static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 13567test_array [0] = 0 13568 13569 ; 13570 return 0; 13571} 13572_ACEOF 13573rm -f conftest.$ac_objext 13574if { (ac_try="$ac_compile" 13575case "(($ac_try" in 13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13577 *) ac_try_echo=$ac_try;; 13578esac 13579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13580 (eval "$ac_compile") 2>conftest.er1 13581 ac_status=$? 13582 grep -v '^ *+' conftest.er1 >conftest.err 13583 rm -f conftest.er1 13584 cat conftest.err >&5 13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13586 (exit $ac_status); } && { 13587 test -z "$ac_c_werror_flag" || 13588 test ! -s conftest.err 13589 } && test -s conftest.$ac_objext; then 13590 ac_lo=$ac_mid; break 13591else 13592 echo "$as_me: failed program was:" >&5 13593sed 's/^/| /' conftest.$ac_ext >&5 13594 13595 ac_hi=`expr '(' $ac_mid ')' - 1` 13596 if test $ac_mid -le $ac_hi; then 13597 ac_lo= ac_hi= 13598 break 13599 fi 13600 ac_mid=`expr 2 '*' $ac_mid` 13601fi 13602 13603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13604 done 13605else 13606 echo "$as_me: failed program was:" >&5 13607sed 's/^/| /' conftest.$ac_ext >&5 13608 13609 ac_lo= ac_hi= 13610fi 13611 13612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13613fi 13614 13615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13616# Binary search between lo and hi bounds. 13617while test "x$ac_lo" != "x$ac_hi"; do 13618 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13619 cat >conftest.$ac_ext <<_ACEOF 13620/* confdefs.h. */ 13621_ACEOF 13622cat confdefs.h >>conftest.$ac_ext 13623cat >>conftest.$ac_ext <<_ACEOF 13624/* end confdefs.h. */ 13625$ac_includes_default 13626 typedef long ac__type_sizeof_; 13627int 13628main () 13629{ 13630static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13631test_array [0] = 0 13632 13633 ; 13634 return 0; 13635} 13636_ACEOF 13637rm -f conftest.$ac_objext 13638if { (ac_try="$ac_compile" 13639case "(($ac_try" in 13640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13641 *) ac_try_echo=$ac_try;; 13642esac 13643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13644 (eval "$ac_compile") 2>conftest.er1 13645 ac_status=$? 13646 grep -v '^ *+' conftest.er1 >conftest.err 13647 rm -f conftest.er1 13648 cat conftest.err >&5 13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13650 (exit $ac_status); } && { 13651 test -z "$ac_c_werror_flag" || 13652 test ! -s conftest.err 13653 } && test -s conftest.$ac_objext; then 13654 ac_hi=$ac_mid 13655else 13656 echo "$as_me: failed program was:" >&5 13657sed 's/^/| /' conftest.$ac_ext >&5 13658 13659 ac_lo=`expr '(' $ac_mid ')' + 1` 13660fi 13661 13662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13663done 13664case $ac_lo in 13665?*) ac_cv_sizeof_long=$ac_lo;; 13666'') if test "$ac_cv_type_long" = yes; then 13667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 13668See \`config.log' for more details." >&5 13669echo "$as_me: error: cannot compute sizeof (long) 13670See \`config.log' for more details." >&2;} 13671 { (exit 77); exit 77; }; } 13672 else 13673 ac_cv_sizeof_long=0 13674 fi ;; 13675esac 13676else 13677 cat >conftest.$ac_ext <<_ACEOF 13678/* confdefs.h. */ 13679_ACEOF 13680cat confdefs.h >>conftest.$ac_ext 13681cat >>conftest.$ac_ext <<_ACEOF 13682/* end confdefs.h. */ 13683$ac_includes_default 13684 typedef long ac__type_sizeof_; 13685static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 13686static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 13687#include <stdio.h> 13688#include <stdlib.h> 13689int 13690main () 13691{ 13692 13693 FILE *f = fopen ("conftest.val", "w"); 13694 if (! f) 13695 return 1; 13696 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 13697 { 13698 long int i = longval (); 13699 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13700 return 1; 13701 fprintf (f, "%ld\n", i); 13702 } 13703 else 13704 { 13705 unsigned long int i = ulongval (); 13706 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13707 return 1; 13708 fprintf (f, "%lu\n", i); 13709 } 13710 return ferror (f) || fclose (f) != 0; 13711 13712 ; 13713 return 0; 13714} 13715_ACEOF 13716rm -f conftest$ac_exeext 13717if { (ac_try="$ac_link" 13718case "(($ac_try" in 13719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13720 *) ac_try_echo=$ac_try;; 13721esac 13722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13723 (eval "$ac_link") 2>&5 13724 ac_status=$? 13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13727 { (case "(($ac_try" in 13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13729 *) ac_try_echo=$ac_try;; 13730esac 13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13732 (eval "$ac_try") 2>&5 13733 ac_status=$? 13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13735 (exit $ac_status); }; }; then 13736 ac_cv_sizeof_long=`cat conftest.val` 13737else 13738 echo "$as_me: program exited with status $ac_status" >&5 13739echo "$as_me: failed program was:" >&5 13740sed 's/^/| /' conftest.$ac_ext >&5 13741 13742( exit $ac_status ) 13743if test "$ac_cv_type_long" = yes; then 13744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 13745See \`config.log' for more details." >&5 13746echo "$as_me: error: cannot compute sizeof (long) 13747See \`config.log' for more details." >&2;} 13748 { (exit 77); exit 77; }; } 13749 else 13750 ac_cv_sizeof_long=0 13751 fi 13752fi 13753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13754fi 13755rm -f conftest.val 13756fi 13757{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 13758echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 13759 13760 13761 13762cat >>confdefs.h <<_ACEOF 13763#define SIZEOF_LONG $ac_cv_sizeof_long 13764_ACEOF 13765 13766 13767{ echo "$as_me:$LINENO: checking for long long" >&5 13768echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 13769if test "${ac_cv_type_long_long+set}" = set; then 13770 echo $ECHO_N "(cached) $ECHO_C" >&6 13771else 13772 cat >conftest.$ac_ext <<_ACEOF 13773/* confdefs.h. */ 13774_ACEOF 13775cat confdefs.h >>conftest.$ac_ext 13776cat >>conftest.$ac_ext <<_ACEOF 13777/* end confdefs.h. */ 13778$ac_includes_default 13779typedef long long ac__type_new_; 13780int 13781main () 13782{ 13783if ((ac__type_new_ *) 0) 13784 return 0; 13785if (sizeof (ac__type_new_)) 13786 return 0; 13787 ; 13788 return 0; 13789} 13790_ACEOF 13791rm -f conftest.$ac_objext 13792if { (ac_try="$ac_compile" 13793case "(($ac_try" in 13794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13795 *) ac_try_echo=$ac_try;; 13796esac 13797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13798 (eval "$ac_compile") 2>conftest.er1 13799 ac_status=$? 13800 grep -v '^ *+' conftest.er1 >conftest.err 13801 rm -f conftest.er1 13802 cat conftest.err >&5 13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13804 (exit $ac_status); } && { 13805 test -z "$ac_c_werror_flag" || 13806 test ! -s conftest.err 13807 } && test -s conftest.$ac_objext; then 13808 ac_cv_type_long_long=yes 13809else 13810 echo "$as_me: failed program was:" >&5 13811sed 's/^/| /' conftest.$ac_ext >&5 13812 13813 ac_cv_type_long_long=no 13814fi 13815 13816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13817fi 13818{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 13819echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 13820 13821# The cast to long int works around a bug in the HP C Compiler 13822# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13823# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13824# This bug is HP SR number 8606223364. 13825{ echo "$as_me:$LINENO: checking size of long long" >&5 13826echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } 13827if test "${ac_cv_sizeof_long_long+set}" = set; then 13828 echo $ECHO_N "(cached) $ECHO_C" >&6 13829else 13830 if test "$cross_compiling" = yes; then 13831 # Depending upon the size, compute the lo and hi bounds. 13832cat >conftest.$ac_ext <<_ACEOF 13833/* confdefs.h. */ 13834_ACEOF 13835cat confdefs.h >>conftest.$ac_ext 13836cat >>conftest.$ac_ext <<_ACEOF 13837/* end confdefs.h. */ 13838$ac_includes_default 13839 typedef long long ac__type_sizeof_; 13840int 13841main () 13842{ 13843static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 13844test_array [0] = 0 13845 13846 ; 13847 return 0; 13848} 13849_ACEOF 13850rm -f conftest.$ac_objext 13851if { (ac_try="$ac_compile" 13852case "(($ac_try" in 13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13854 *) ac_try_echo=$ac_try;; 13855esac 13856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13857 (eval "$ac_compile") 2>conftest.er1 13858 ac_status=$? 13859 grep -v '^ *+' conftest.er1 >conftest.err 13860 rm -f conftest.er1 13861 cat conftest.err >&5 13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13863 (exit $ac_status); } && { 13864 test -z "$ac_c_werror_flag" || 13865 test ! -s conftest.err 13866 } && test -s conftest.$ac_objext; then 13867 ac_lo=0 ac_mid=0 13868 while :; do 13869 cat >conftest.$ac_ext <<_ACEOF 13870/* confdefs.h. */ 13871_ACEOF 13872cat confdefs.h >>conftest.$ac_ext 13873cat >>conftest.$ac_ext <<_ACEOF 13874/* end confdefs.h. */ 13875$ac_includes_default 13876 typedef long long ac__type_sizeof_; 13877int 13878main () 13879{ 13880static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13881test_array [0] = 0 13882 13883 ; 13884 return 0; 13885} 13886_ACEOF 13887rm -f conftest.$ac_objext 13888if { (ac_try="$ac_compile" 13889case "(($ac_try" in 13890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13891 *) ac_try_echo=$ac_try;; 13892esac 13893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13894 (eval "$ac_compile") 2>conftest.er1 13895 ac_status=$? 13896 grep -v '^ *+' conftest.er1 >conftest.err 13897 rm -f conftest.er1 13898 cat conftest.err >&5 13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13900 (exit $ac_status); } && { 13901 test -z "$ac_c_werror_flag" || 13902 test ! -s conftest.err 13903 } && test -s conftest.$ac_objext; then 13904 ac_hi=$ac_mid; break 13905else 13906 echo "$as_me: failed program was:" >&5 13907sed 's/^/| /' conftest.$ac_ext >&5 13908 13909 ac_lo=`expr $ac_mid + 1` 13910 if test $ac_lo -le $ac_mid; then 13911 ac_lo= ac_hi= 13912 break 13913 fi 13914 ac_mid=`expr 2 '*' $ac_mid + 1` 13915fi 13916 13917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13918 done 13919else 13920 echo "$as_me: failed program was:" >&5 13921sed 's/^/| /' conftest.$ac_ext >&5 13922 13923 cat >conftest.$ac_ext <<_ACEOF 13924/* confdefs.h. */ 13925_ACEOF 13926cat confdefs.h >>conftest.$ac_ext 13927cat >>conftest.$ac_ext <<_ACEOF 13928/* end confdefs.h. */ 13929$ac_includes_default 13930 typedef long long ac__type_sizeof_; 13931int 13932main () 13933{ 13934static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 13935test_array [0] = 0 13936 13937 ; 13938 return 0; 13939} 13940_ACEOF 13941rm -f conftest.$ac_objext 13942if { (ac_try="$ac_compile" 13943case "(($ac_try" in 13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13945 *) ac_try_echo=$ac_try;; 13946esac 13947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13948 (eval "$ac_compile") 2>conftest.er1 13949 ac_status=$? 13950 grep -v '^ *+' conftest.er1 >conftest.err 13951 rm -f conftest.er1 13952 cat conftest.err >&5 13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13954 (exit $ac_status); } && { 13955 test -z "$ac_c_werror_flag" || 13956 test ! -s conftest.err 13957 } && test -s conftest.$ac_objext; then 13958 ac_hi=-1 ac_mid=-1 13959 while :; do 13960 cat >conftest.$ac_ext <<_ACEOF 13961/* confdefs.h. */ 13962_ACEOF 13963cat confdefs.h >>conftest.$ac_ext 13964cat >>conftest.$ac_ext <<_ACEOF 13965/* end confdefs.h. */ 13966$ac_includes_default 13967 typedef long long ac__type_sizeof_; 13968int 13969main () 13970{ 13971static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 13972test_array [0] = 0 13973 13974 ; 13975 return 0; 13976} 13977_ACEOF 13978rm -f conftest.$ac_objext 13979if { (ac_try="$ac_compile" 13980case "(($ac_try" in 13981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13982 *) ac_try_echo=$ac_try;; 13983esac 13984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13985 (eval "$ac_compile") 2>conftest.er1 13986 ac_status=$? 13987 grep -v '^ *+' conftest.er1 >conftest.err 13988 rm -f conftest.er1 13989 cat conftest.err >&5 13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13991 (exit $ac_status); } && { 13992 test -z "$ac_c_werror_flag" || 13993 test ! -s conftest.err 13994 } && test -s conftest.$ac_objext; then 13995 ac_lo=$ac_mid; break 13996else 13997 echo "$as_me: failed program was:" >&5 13998sed 's/^/| /' conftest.$ac_ext >&5 13999 14000 ac_hi=`expr '(' $ac_mid ')' - 1` 14001 if test $ac_mid -le $ac_hi; then 14002 ac_lo= ac_hi= 14003 break 14004 fi 14005 ac_mid=`expr 2 '*' $ac_mid` 14006fi 14007 14008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14009 done 14010else 14011 echo "$as_me: failed program was:" >&5 14012sed 's/^/| /' conftest.$ac_ext >&5 14013 14014 ac_lo= ac_hi= 14015fi 14016 14017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14018fi 14019 14020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14021# Binary search between lo and hi bounds. 14022while test "x$ac_lo" != "x$ac_hi"; do 14023 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14024 cat >conftest.$ac_ext <<_ACEOF 14025/* confdefs.h. */ 14026_ACEOF 14027cat confdefs.h >>conftest.$ac_ext 14028cat >>conftest.$ac_ext <<_ACEOF 14029/* end confdefs.h. */ 14030$ac_includes_default 14031 typedef long long ac__type_sizeof_; 14032int 14033main () 14034{ 14035static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 14036test_array [0] = 0 14037 14038 ; 14039 return 0; 14040} 14041_ACEOF 14042rm -f conftest.$ac_objext 14043if { (ac_try="$ac_compile" 14044case "(($ac_try" in 14045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14046 *) ac_try_echo=$ac_try;; 14047esac 14048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14049 (eval "$ac_compile") 2>conftest.er1 14050 ac_status=$? 14051 grep -v '^ *+' conftest.er1 >conftest.err 14052 rm -f conftest.er1 14053 cat conftest.err >&5 14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14055 (exit $ac_status); } && { 14056 test -z "$ac_c_werror_flag" || 14057 test ! -s conftest.err 14058 } && test -s conftest.$ac_objext; then 14059 ac_hi=$ac_mid 14060else 14061 echo "$as_me: failed program was:" >&5 14062sed 's/^/| /' conftest.$ac_ext >&5 14063 14064 ac_lo=`expr '(' $ac_mid ')' + 1` 14065fi 14066 14067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14068done 14069case $ac_lo in 14070?*) ac_cv_sizeof_long_long=$ac_lo;; 14071'') if test "$ac_cv_type_long_long" = yes; then 14072 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 14073See \`config.log' for more details." >&5 14074echo "$as_me: error: cannot compute sizeof (long long) 14075See \`config.log' for more details." >&2;} 14076 { (exit 77); exit 77; }; } 14077 else 14078 ac_cv_sizeof_long_long=0 14079 fi ;; 14080esac 14081else 14082 cat >conftest.$ac_ext <<_ACEOF 14083/* confdefs.h. */ 14084_ACEOF 14085cat confdefs.h >>conftest.$ac_ext 14086cat >>conftest.$ac_ext <<_ACEOF 14087/* end confdefs.h. */ 14088$ac_includes_default 14089 typedef long long ac__type_sizeof_; 14090static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 14091static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 14092#include <stdio.h> 14093#include <stdlib.h> 14094int 14095main () 14096{ 14097 14098 FILE *f = fopen ("conftest.val", "w"); 14099 if (! f) 14100 return 1; 14101 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 14102 { 14103 long int i = longval (); 14104 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 14105 return 1; 14106 fprintf (f, "%ld\n", i); 14107 } 14108 else 14109 { 14110 unsigned long int i = ulongval (); 14111 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 14112 return 1; 14113 fprintf (f, "%lu\n", i); 14114 } 14115 return ferror (f) || fclose (f) != 0; 14116 14117 ; 14118 return 0; 14119} 14120_ACEOF 14121rm -f conftest$ac_exeext 14122if { (ac_try="$ac_link" 14123case "(($ac_try" in 14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14125 *) ac_try_echo=$ac_try;; 14126esac 14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14128 (eval "$ac_link") 2>&5 14129 ac_status=$? 14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14132 { (case "(($ac_try" in 14133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14134 *) ac_try_echo=$ac_try;; 14135esac 14136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14137 (eval "$ac_try") 2>&5 14138 ac_status=$? 14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14140 (exit $ac_status); }; }; then 14141 ac_cv_sizeof_long_long=`cat conftest.val` 14142else 14143 echo "$as_me: program exited with status $ac_status" >&5 14144echo "$as_me: failed program was:" >&5 14145sed 's/^/| /' conftest.$ac_ext >&5 14146 14147( exit $ac_status ) 14148if test "$ac_cv_type_long_long" = yes; then 14149 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 14150See \`config.log' for more details." >&5 14151echo "$as_me: error: cannot compute sizeof (long long) 14152See \`config.log' for more details." >&2;} 14153 { (exit 77); exit 77; }; } 14154 else 14155 ac_cv_sizeof_long_long=0 14156 fi 14157fi 14158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14159fi 14160rm -f conftest.val 14161fi 14162{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 14163echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } 14164 14165 14166 14167cat >>confdefs.h <<_ACEOF 14168#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 14169_ACEOF 14170 14171 14172SIZEOF_SHORT=$ac_cv_sizeof_short 14173SIZEOF_INT=$ac_cv_sizeof_int 14174SIZEOF_LONG=$ac_cv_sizeof_long 14175SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long 14176 14177 14178 14179 14180{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 14181echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 14182if test "${ac_cv_c_bigendian+set}" = set; then 14183 echo $ECHO_N "(cached) $ECHO_C" >&6 14184else 14185 # See if sys/param.h defines the BYTE_ORDER macro. 14186cat >conftest.$ac_ext <<_ACEOF 14187/* confdefs.h. */ 14188_ACEOF 14189cat confdefs.h >>conftest.$ac_ext 14190cat >>conftest.$ac_ext <<_ACEOF 14191/* end confdefs.h. */ 14192#include <sys/types.h> 14193#include <sys/param.h> 14194 14195int 14196main () 14197{ 14198#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 14199 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 14200 bogus endian macros 14201#endif 14202 14203 ; 14204 return 0; 14205} 14206_ACEOF 14207rm -f conftest.$ac_objext 14208if { (ac_try="$ac_compile" 14209case "(($ac_try" in 14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14211 *) ac_try_echo=$ac_try;; 14212esac 14213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14214 (eval "$ac_compile") 2>conftest.er1 14215 ac_status=$? 14216 grep -v '^ *+' conftest.er1 >conftest.err 14217 rm -f conftest.er1 14218 cat conftest.err >&5 14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14220 (exit $ac_status); } && { 14221 test -z "$ac_c_werror_flag" || 14222 test ! -s conftest.err 14223 } && test -s conftest.$ac_objext; then 14224 # It does; now see whether it defined to BIG_ENDIAN or not. 14225cat >conftest.$ac_ext <<_ACEOF 14226/* confdefs.h. */ 14227_ACEOF 14228cat confdefs.h >>conftest.$ac_ext 14229cat >>conftest.$ac_ext <<_ACEOF 14230/* end confdefs.h. */ 14231#include <sys/types.h> 14232#include <sys/param.h> 14233 14234int 14235main () 14236{ 14237#if BYTE_ORDER != BIG_ENDIAN 14238 not big endian 14239#endif 14240 14241 ; 14242 return 0; 14243} 14244_ACEOF 14245rm -f conftest.$ac_objext 14246if { (ac_try="$ac_compile" 14247case "(($ac_try" in 14248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14249 *) ac_try_echo=$ac_try;; 14250esac 14251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14252 (eval "$ac_compile") 2>conftest.er1 14253 ac_status=$? 14254 grep -v '^ *+' conftest.er1 >conftest.err 14255 rm -f conftest.er1 14256 cat conftest.err >&5 14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14258 (exit $ac_status); } && { 14259 test -z "$ac_c_werror_flag" || 14260 test ! -s conftest.err 14261 } && test -s conftest.$ac_objext; then 14262 ac_cv_c_bigendian=yes 14263else 14264 echo "$as_me: failed program was:" >&5 14265sed 's/^/| /' conftest.$ac_ext >&5 14266 14267 ac_cv_c_bigendian=no 14268fi 14269 14270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14271else 14272 echo "$as_me: failed program was:" >&5 14273sed 's/^/| /' conftest.$ac_ext >&5 14274 14275 # It does not; compile a test program. 14276if test "$cross_compiling" = yes; then 14277 # try to guess the endianness by grepping values into an object file 14278 ac_cv_c_bigendian=unknown 14279 cat >conftest.$ac_ext <<_ACEOF 14280/* confdefs.h. */ 14281_ACEOF 14282cat confdefs.h >>conftest.$ac_ext 14283cat >>conftest.$ac_ext <<_ACEOF 14284/* end confdefs.h. */ 14285short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14286short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14287void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 14288short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14289short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14290void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 14291int 14292main () 14293{ 14294 _ascii (); _ebcdic (); 14295 ; 14296 return 0; 14297} 14298_ACEOF 14299rm -f conftest.$ac_objext 14300if { (ac_try="$ac_compile" 14301case "(($ac_try" in 14302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14303 *) ac_try_echo=$ac_try;; 14304esac 14305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14306 (eval "$ac_compile") 2>conftest.er1 14307 ac_status=$? 14308 grep -v '^ *+' conftest.er1 >conftest.err 14309 rm -f conftest.er1 14310 cat conftest.err >&5 14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14312 (exit $ac_status); } && { 14313 test -z "$ac_c_werror_flag" || 14314 test ! -s conftest.err 14315 } && test -s conftest.$ac_objext; then 14316 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 14317 ac_cv_c_bigendian=yes 14318fi 14319if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14320 if test "$ac_cv_c_bigendian" = unknown; then 14321 ac_cv_c_bigendian=no 14322 else 14323 # finding both strings is unlikely to happen, but who knows? 14324 ac_cv_c_bigendian=unknown 14325 fi 14326fi 14327else 14328 echo "$as_me: failed program was:" >&5 14329sed 's/^/| /' conftest.$ac_ext >&5 14330 14331 14332fi 14333 14334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14335else 14336 cat >conftest.$ac_ext <<_ACEOF 14337/* confdefs.h. */ 14338_ACEOF 14339cat confdefs.h >>conftest.$ac_ext 14340cat >>conftest.$ac_ext <<_ACEOF 14341/* end confdefs.h. */ 14342$ac_includes_default 14343int 14344main () 14345{ 14346 14347 /* Are we little or big endian? From Harbison&Steele. */ 14348 union 14349 { 14350 long int l; 14351 char c[sizeof (long int)]; 14352 } u; 14353 u.l = 1; 14354 return u.c[sizeof (long int) - 1] == 1; 14355 14356 ; 14357 return 0; 14358} 14359_ACEOF 14360rm -f conftest$ac_exeext 14361if { (ac_try="$ac_link" 14362case "(($ac_try" in 14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14364 *) ac_try_echo=$ac_try;; 14365esac 14366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14367 (eval "$ac_link") 2>&5 14368 ac_status=$? 14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14371 { (case "(($ac_try" in 14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14373 *) ac_try_echo=$ac_try;; 14374esac 14375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14376 (eval "$ac_try") 2>&5 14377 ac_status=$? 14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14379 (exit $ac_status); }; }; then 14380 ac_cv_c_bigendian=no 14381else 14382 echo "$as_me: program exited with status $ac_status" >&5 14383echo "$as_me: failed program was:" >&5 14384sed 's/^/| /' conftest.$ac_ext >&5 14385 14386( exit $ac_status ) 14387ac_cv_c_bigendian=yes 14388fi 14389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14390fi 14391 14392 14393fi 14394 14395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14396fi 14397{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 14398echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 14399case $ac_cv_c_bigendian in 14400 yes) 14401 14402cat >>confdefs.h <<\_ACEOF 14403#define WORDS_BIGENDIAN 1 14404_ACEOF 14405 ;; 14406 no) 14407 ;; 14408 *) 14409 { { echo "$as_me:$LINENO: error: unknown endianness 14410presetting ac_cv_c_bigendian=no (or yes) will help" >&5 14411echo "$as_me: error: unknown endianness 14412presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 14413 { (exit 1); exit 1; }; } ;; 14414esac 14415 14416BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh 14417ASM_TYPES_HEADER=./asm_types.h 14418 14419echo "/* These defines are needed for the public ext2fs.h header file */" \ 14420 > public_config.h 14421if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then 14422 uniq tmp_config.$$ >> public_config.h 14423else 14424 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h 14425fi 14426if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then 14427 uniq tmp_config.$$ >> public_config.h 14428else 14429 echo "#undef WORDS_BIGENDIAN" >> public_config.h 14430fi 14431rm -f tmp_config.$$ 14432PUBLIC_CONFIG_HEADER=./public_config.h 14433 14434 14435for ac_header in inttypes.h 14436do 14437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14439 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14442 echo $ECHO_N "(cached) $ECHO_C" >&6 14443fi 14444ac_res=`eval echo '${'$as_ac_Header'}'` 14445 { echo "$as_me:$LINENO: result: $ac_res" >&5 14446echo "${ECHO_T}$ac_res" >&6; } 14447else 14448 # Is the header compilable? 14449{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14451cat >conftest.$ac_ext <<_ACEOF 14452/* confdefs.h. */ 14453_ACEOF 14454cat confdefs.h >>conftest.$ac_ext 14455cat >>conftest.$ac_ext <<_ACEOF 14456/* end confdefs.h. */ 14457$ac_includes_default 14458#include <$ac_header> 14459_ACEOF 14460rm -f conftest.$ac_objext 14461if { (ac_try="$ac_compile" 14462case "(($ac_try" in 14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14464 *) ac_try_echo=$ac_try;; 14465esac 14466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14467 (eval "$ac_compile") 2>conftest.er1 14468 ac_status=$? 14469 grep -v '^ *+' conftest.er1 >conftest.err 14470 rm -f conftest.er1 14471 cat conftest.err >&5 14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14473 (exit $ac_status); } && { 14474 test -z "$ac_c_werror_flag" || 14475 test ! -s conftest.err 14476 } && test -s conftest.$ac_objext; then 14477 ac_header_compiler=yes 14478else 14479 echo "$as_me: failed program was:" >&5 14480sed 's/^/| /' conftest.$ac_ext >&5 14481 14482 ac_header_compiler=no 14483fi 14484 14485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14486{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14487echo "${ECHO_T}$ac_header_compiler" >&6; } 14488 14489# Is the header present? 14490{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14492cat >conftest.$ac_ext <<_ACEOF 14493/* confdefs.h. */ 14494_ACEOF 14495cat confdefs.h >>conftest.$ac_ext 14496cat >>conftest.$ac_ext <<_ACEOF 14497/* end confdefs.h. */ 14498#include <$ac_header> 14499_ACEOF 14500if { (ac_try="$ac_cpp conftest.$ac_ext" 14501case "(($ac_try" in 14502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14503 *) ac_try_echo=$ac_try;; 14504esac 14505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14507 ac_status=$? 14508 grep -v '^ *+' conftest.er1 >conftest.err 14509 rm -f conftest.er1 14510 cat conftest.err >&5 14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14512 (exit $ac_status); } >/dev/null && { 14513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14514 test ! -s conftest.err 14515 }; then 14516 ac_header_preproc=yes 14517else 14518 echo "$as_me: failed program was:" >&5 14519sed 's/^/| /' conftest.$ac_ext >&5 14520 14521 ac_header_preproc=no 14522fi 14523 14524rm -f conftest.err conftest.$ac_ext 14525{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14526echo "${ECHO_T}$ac_header_preproc" >&6; } 14527 14528# So? What about this header? 14529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14530 yes:no: ) 14531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14535 ac_header_preproc=yes 14536 ;; 14537 no:yes:* ) 14538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14550 14551 ;; 14552esac 14553{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14556 echo $ECHO_N "(cached) $ECHO_C" >&6 14557else 14558 eval "$as_ac_Header=\$ac_header_preproc" 14559fi 14560ac_res=`eval echo '${'$as_ac_Header'}'` 14561 { echo "$as_me:$LINENO: result: $ac_res" >&5 14562echo "${ECHO_T}$ac_res" >&6; } 14563 14564fi 14565if test `eval echo '${'$as_ac_Header'}'` = yes; then 14566 cat >>confdefs.h <<_ACEOF 14567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14568_ACEOF 14569 14570fi 14571 14572done 14573 14574{ echo "$as_me:$LINENO: checking for intptr_t" >&5 14575echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } 14576if test "${ac_cv_type_intptr_t+set}" = set; then 14577 echo $ECHO_N "(cached) $ECHO_C" >&6 14578else 14579 cat >conftest.$ac_ext <<_ACEOF 14580/* confdefs.h. */ 14581_ACEOF 14582cat confdefs.h >>conftest.$ac_ext 14583cat >>conftest.$ac_ext <<_ACEOF 14584/* end confdefs.h. */ 14585$ac_includes_default 14586typedef intptr_t ac__type_new_; 14587int 14588main () 14589{ 14590if ((ac__type_new_ *) 0) 14591 return 0; 14592if (sizeof (ac__type_new_)) 14593 return 0; 14594 ; 14595 return 0; 14596} 14597_ACEOF 14598rm -f conftest.$ac_objext 14599if { (ac_try="$ac_compile" 14600case "(($ac_try" in 14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14602 *) ac_try_echo=$ac_try;; 14603esac 14604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14605 (eval "$ac_compile") 2>conftest.er1 14606 ac_status=$? 14607 grep -v '^ *+' conftest.er1 >conftest.err 14608 rm -f conftest.er1 14609 cat conftest.err >&5 14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14611 (exit $ac_status); } && { 14612 test -z "$ac_c_werror_flag" || 14613 test ! -s conftest.err 14614 } && test -s conftest.$ac_objext; then 14615 ac_cv_type_intptr_t=yes 14616else 14617 echo "$as_me: failed program was:" >&5 14618sed 's/^/| /' conftest.$ac_ext >&5 14619 14620 ac_cv_type_intptr_t=no 14621fi 14622 14623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14624fi 14625{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 14626echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } 14627if test $ac_cv_type_intptr_t = yes; then 14628 14629cat >>confdefs.h <<_ACEOF 14630#define HAVE_INTPTR_T 1 14631_ACEOF 14632 14633 14634fi 14635 14636{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 14637echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; } 14638if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then 14639 echo $ECHO_N "(cached) $ECHO_C" >&6 14640else 14641 cat >conftest.$ac_ext <<_ACEOF 14642/* confdefs.h. */ 14643_ACEOF 14644cat confdefs.h >>conftest.$ac_ext 14645cat >>conftest.$ac_ext <<_ACEOF 14646/* end confdefs.h. */ 14647#include <sys/stat.h> 14648int 14649main () 14650{ 14651struct stat stat; stat.st_flags = 0; 14652 ; 14653 return 0; 14654} 14655_ACEOF 14656rm -f conftest.$ac_objext 14657if { (ac_try="$ac_compile" 14658case "(($ac_try" in 14659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14660 *) ac_try_echo=$ac_try;; 14661esac 14662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14663 (eval "$ac_compile") 2>conftest.er1 14664 ac_status=$? 14665 grep -v '^ *+' conftest.er1 >conftest.err 14666 rm -f conftest.er1 14667 cat conftest.err >&5 14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14669 (exit $ac_status); } && { 14670 test -z "$ac_c_werror_flag" || 14671 test ! -s conftest.err 14672 } && test -s conftest.$ac_objext; then 14673 e2fsprogs_cv_struct_st_flags=yes 14674else 14675 echo "$as_me: failed program was:" >&5 14676sed 's/^/| /' conftest.$ac_ext >&5 14677 14678 e2fsprogs_cv_struct_st_flags=no 14679fi 14680 14681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14682fi 14683 14684{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 14685echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } 14686if test "$e2fsprogs_cv_struct_st_flags" = yes; then 14687 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 14688echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; } 14689 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then 14690 echo $ECHO_N "(cached) $ECHO_C" >&6 14691else 14692 cat >conftest.$ac_ext <<_ACEOF 14693/* confdefs.h. */ 14694_ACEOF 14695cat confdefs.h >>conftest.$ac_ext 14696cat >>conftest.$ac_ext <<_ACEOF 14697/* end confdefs.h. */ 14698#include <sys/stat.h> 14699int 14700main () 14701{ 14702struct stat stat; stat.st_flags |= UF_IMMUTABLE; 14703 ; 14704 return 0; 14705} 14706_ACEOF 14707rm -f conftest.$ac_objext 14708if { (ac_try="$ac_compile" 14709case "(($ac_try" in 14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14711 *) ac_try_echo=$ac_try;; 14712esac 14713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14714 (eval "$ac_compile") 2>conftest.er1 14715 ac_status=$? 14716 grep -v '^ *+' conftest.er1 >conftest.err 14717 rm -f conftest.er1 14718 cat conftest.err >&5 14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14720 (exit $ac_status); } && { 14721 test -z "$ac_c_werror_flag" || 14722 test ! -s conftest.err 14723 } && test -s conftest.$ac_objext; then 14724 e2fsprogs_cv_struct_st_flags_immut=yes 14725else 14726 echo "$as_me: failed program was:" >&5 14727sed 's/^/| /' conftest.$ac_ext >&5 14728 14729 e2fsprogs_cv_struct_st_flags_immut=no 14730fi 14731 14732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14733fi 14734 14735 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 14736echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } 14737 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then 14738 cat >>confdefs.h <<\_ACEOF 14739#define HAVE_STAT_FLAGS 1 14740_ACEOF 14741 14742 fi 14743fi 14744{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 14745echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } 14746if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then 14747 echo $ECHO_N "(cached) $ECHO_C" >&6 14748else 14749 cat >conftest.$ac_ext <<_ACEOF 14750/* confdefs.h. */ 14751_ACEOF 14752cat confdefs.h >>conftest.$ac_ext 14753cat >>conftest.$ac_ext <<_ACEOF 14754/* end confdefs.h. */ 14755#include <sys/types.h> 14756 #include <sys/socket.h> 14757 14758int 14759main () 14760{ 14761static struct sockaddr ac_aggr; 14762if (ac_aggr.sa_len) 14763return 0; 14764 ; 14765 return 0; 14766} 14767_ACEOF 14768rm -f conftest.$ac_objext 14769if { (ac_try="$ac_compile" 14770case "(($ac_try" in 14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14772 *) ac_try_echo=$ac_try;; 14773esac 14774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14775 (eval "$ac_compile") 2>conftest.er1 14776 ac_status=$? 14777 grep -v '^ *+' conftest.er1 >conftest.err 14778 rm -f conftest.er1 14779 cat conftest.err >&5 14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14781 (exit $ac_status); } && { 14782 test -z "$ac_c_werror_flag" || 14783 test ! -s conftest.err 14784 } && test -s conftest.$ac_objext; then 14785 ac_cv_member_struct_sockaddr_sa_len=yes 14786else 14787 echo "$as_me: failed program was:" >&5 14788sed 's/^/| /' conftest.$ac_ext >&5 14789 14790 cat >conftest.$ac_ext <<_ACEOF 14791/* confdefs.h. */ 14792_ACEOF 14793cat confdefs.h >>conftest.$ac_ext 14794cat >>conftest.$ac_ext <<_ACEOF 14795/* end confdefs.h. */ 14796#include <sys/types.h> 14797 #include <sys/socket.h> 14798 14799int 14800main () 14801{ 14802static struct sockaddr ac_aggr; 14803if (sizeof ac_aggr.sa_len) 14804return 0; 14805 ; 14806 return 0; 14807} 14808_ACEOF 14809rm -f conftest.$ac_objext 14810if { (ac_try="$ac_compile" 14811case "(($ac_try" in 14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14813 *) ac_try_echo=$ac_try;; 14814esac 14815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14816 (eval "$ac_compile") 2>conftest.er1 14817 ac_status=$? 14818 grep -v '^ *+' conftest.er1 >conftest.err 14819 rm -f conftest.er1 14820 cat conftest.err >&5 14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14822 (exit $ac_status); } && { 14823 test -z "$ac_c_werror_flag" || 14824 test ! -s conftest.err 14825 } && test -s conftest.$ac_objext; then 14826 ac_cv_member_struct_sockaddr_sa_len=yes 14827else 14828 echo "$as_me: failed program was:" >&5 14829sed 's/^/| /' conftest.$ac_ext >&5 14830 14831 ac_cv_member_struct_sockaddr_sa_len=no 14832fi 14833 14834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14835fi 14836 14837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14838fi 14839{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 14840echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } 14841if test $ac_cv_member_struct_sockaddr_sa_len = yes; then 14842 14843cat >>confdefs.h <<_ACEOF 14844#define HAVE_SA_LEN 1 14845_ACEOF 14846 14847fi 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid 14879do 14880as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14881{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14882echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14883if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14884 echo $ECHO_N "(cached) $ECHO_C" >&6 14885else 14886 cat >conftest.$ac_ext <<_ACEOF 14887/* confdefs.h. */ 14888_ACEOF 14889cat confdefs.h >>conftest.$ac_ext 14890cat >>conftest.$ac_ext <<_ACEOF 14891/* end confdefs.h. */ 14892/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14893 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14894#define $ac_func innocuous_$ac_func 14895 14896/* System header to define __stub macros and hopefully few prototypes, 14897 which can conflict with char $ac_func (); below. 14898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14899 <limits.h> exists even on freestanding compilers. */ 14900 14901#ifdef __STDC__ 14902# include <limits.h> 14903#else 14904# include <assert.h> 14905#endif 14906 14907#undef $ac_func 14908 14909/* Override any GCC internal prototype to avoid an error. 14910 Use char because int might match the return type of a GCC 14911 builtin and then its argument prototype would still apply. */ 14912#ifdef __cplusplus 14913extern "C" 14914#endif 14915char $ac_func (); 14916/* The GNU C library defines this for functions which it implements 14917 to always fail with ENOSYS. Some functions are actually named 14918 something starting with __ and the normal name is an alias. */ 14919#if defined __stub_$ac_func || defined __stub___$ac_func 14920choke me 14921#endif 14922 14923int 14924main () 14925{ 14926return $ac_func (); 14927 ; 14928 return 0; 14929} 14930_ACEOF 14931rm -f conftest.$ac_objext conftest$ac_exeext 14932if { (ac_try="$ac_link" 14933case "(($ac_try" in 14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14935 *) ac_try_echo=$ac_try;; 14936esac 14937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14938 (eval "$ac_link") 2>conftest.er1 14939 ac_status=$? 14940 grep -v '^ *+' conftest.er1 >conftest.err 14941 rm -f conftest.er1 14942 cat conftest.err >&5 14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14944 (exit $ac_status); } && { 14945 test -z "$ac_c_werror_flag" || 14946 test ! -s conftest.err 14947 } && test -s conftest$ac_exeext && 14948 $as_test_x conftest$ac_exeext; then 14949 eval "$as_ac_var=yes" 14950else 14951 echo "$as_me: failed program was:" >&5 14952sed 's/^/| /' conftest.$ac_ext >&5 14953 14954 eval "$as_ac_var=no" 14955fi 14956 14957rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14958 conftest$ac_exeext conftest.$ac_ext 14959fi 14960ac_res=`eval echo '${'$as_ac_var'}'` 14961 { echo "$as_me:$LINENO: result: $ac_res" >&5 14962echo "${ECHO_T}$ac_res" >&6; } 14963if test `eval echo '${'$as_ac_var'}'` = yes; then 14964 cat >>confdefs.h <<_ACEOF 14965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14966_ACEOF 14967 14968fi 14969done 14970 14971SOCKET_LIB='' 14972{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 14973echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 14974if test "${ac_cv_lib_socket_socket+set}" = set; then 14975 echo $ECHO_N "(cached) $ECHO_C" >&6 14976else 14977 ac_check_lib_save_LIBS=$LIBS 14978LIBS="-lsocket $LIBS" 14979cat >conftest.$ac_ext <<_ACEOF 14980/* confdefs.h. */ 14981_ACEOF 14982cat confdefs.h >>conftest.$ac_ext 14983cat >>conftest.$ac_ext <<_ACEOF 14984/* end confdefs.h. */ 14985 14986/* Override any GCC internal prototype to avoid an error. 14987 Use char because int might match the return type of a GCC 14988 builtin and then its argument prototype would still apply. */ 14989#ifdef __cplusplus 14990extern "C" 14991#endif 14992char socket (); 14993int 14994main () 14995{ 14996return socket (); 14997 ; 14998 return 0; 14999} 15000_ACEOF 15001rm -f conftest.$ac_objext conftest$ac_exeext 15002if { (ac_try="$ac_link" 15003case "(($ac_try" in 15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15005 *) ac_try_echo=$ac_try;; 15006esac 15007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15008 (eval "$ac_link") 2>conftest.er1 15009 ac_status=$? 15010 grep -v '^ *+' conftest.er1 >conftest.err 15011 rm -f conftest.er1 15012 cat conftest.err >&5 15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15014 (exit $ac_status); } && { 15015 test -z "$ac_c_werror_flag" || 15016 test ! -s conftest.err 15017 } && test -s conftest$ac_exeext && 15018 $as_test_x conftest$ac_exeext; then 15019 ac_cv_lib_socket_socket=yes 15020else 15021 echo "$as_me: failed program was:" >&5 15022sed 's/^/| /' conftest.$ac_ext >&5 15023 15024 ac_cv_lib_socket_socket=no 15025fi 15026 15027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15028 conftest$ac_exeext conftest.$ac_ext 15029LIBS=$ac_check_lib_save_LIBS 15030fi 15031{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 15032echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 15033if test $ac_cv_lib_socket_socket = yes; then 15034 SOCKET_LIB=-lsocket 15035fi 15036 15037 15038DLOPEN_LIB='' 15039{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 15040echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 15041if test "${ac_cv_lib_dl_dlopen+set}" = set; then 15042 echo $ECHO_N "(cached) $ECHO_C" >&6 15043else 15044 ac_check_lib_save_LIBS=$LIBS 15045LIBS="-ldl $LIBS" 15046cat >conftest.$ac_ext <<_ACEOF 15047/* confdefs.h. */ 15048_ACEOF 15049cat confdefs.h >>conftest.$ac_ext 15050cat >>conftest.$ac_ext <<_ACEOF 15051/* end confdefs.h. */ 15052 15053/* Override any GCC internal prototype to avoid an error. 15054 Use char because int might match the return type of a GCC 15055 builtin and then its argument prototype would still apply. */ 15056#ifdef __cplusplus 15057extern "C" 15058#endif 15059char dlopen (); 15060int 15061main () 15062{ 15063return dlopen (); 15064 ; 15065 return 0; 15066} 15067_ACEOF 15068rm -f conftest.$ac_objext conftest$ac_exeext 15069if { (ac_try="$ac_link" 15070case "(($ac_try" in 15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15072 *) ac_try_echo=$ac_try;; 15073esac 15074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15075 (eval "$ac_link") 2>conftest.er1 15076 ac_status=$? 15077 grep -v '^ *+' conftest.er1 >conftest.err 15078 rm -f conftest.er1 15079 cat conftest.err >&5 15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15081 (exit $ac_status); } && { 15082 test -z "$ac_c_werror_flag" || 15083 test ! -s conftest.err 15084 } && test -s conftest$ac_exeext && 15085 $as_test_x conftest$ac_exeext; then 15086 ac_cv_lib_dl_dlopen=yes 15087else 15088 echo "$as_me: failed program was:" >&5 15089sed 's/^/| /' conftest.$ac_ext >&5 15090 15091 ac_cv_lib_dl_dlopen=no 15092fi 15093 15094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15095 conftest$ac_exeext conftest.$ac_ext 15096LIBS=$ac_check_lib_save_LIBS 15097fi 15098{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 15099echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 15100if test $ac_cv_lib_dl_dlopen = yes; then 15101 DLOPEN_LIB=-ldl 15102cat >>confdefs.h <<\_ACEOF 15103#define HAVE_DLOPEN 1 15104_ACEOF 15105 15106fi 15107 15108 15109{ echo "$as_me:$LINENO: checking for optreset" >&5 15110echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } 15111if test "${ac_cv_have_optreset+set}" = set; then 15112 echo $ECHO_N "(cached) $ECHO_C" >&6 15113else 15114 cat >conftest.$ac_ext <<_ACEOF 15115/* confdefs.h. */ 15116_ACEOF 15117cat confdefs.h >>conftest.$ac_ext 15118cat >>conftest.$ac_ext <<_ACEOF 15119/* end confdefs.h. */ 15120#include <unistd.h> 15121 15122_ACEOF 15123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15124 $EGREP "optreset" >/dev/null 2>&1; then 15125 ac_cv_have_optreset=yes 15126else 15127 ac_cv_have_optreset=no 15128fi 15129rm -f conftest* 15130 15131fi 15132{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 15133echo "${ECHO_T}$ac_cv_have_optreset" >&6; } 15134if test $ac_cv_have_optreset = yes; then 15135 cat >>confdefs.h <<\_ACEOF 15136#define HAVE_OPTRESET 1 15137_ACEOF 15138 15139fi 15140{ echo "$as_me:$LINENO: checking for unified diff option" >&5 15141echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } 15142if diff -u $0 $0 > /dev/null 2>&1 ; then 15143 UNI_DIFF_OPTS=-u 15144else 15145 UNI_DIFF_OPTS=-c 15146fi 15147{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 15148echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } 15149 15150case "$host_os" in 15151linux*) 15152 cat >>confdefs.h <<\_ACEOF 15153#define HAVE_EXT2_IOCTLS 1 15154_ACEOF 15155 15156 ;; 15157esac 15158LINUX_CMT="#" 15159CYGWIN_CMT="#" 15160UNIX_CMT= 15161case "$host_os" in 15162linux*) 15163 LINUX_CMT= 15164 ;; 15165cygwin) 15166 CYGWIN_CMT= 15167 UNIX_CMT="#" 15168 ;; 15169esac 15170 15171 15172 15173case "$host_os" in 15174linux* | gnu* | k*bsd*-gnu) 15175 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then 15176 root_prefix=""; 15177 echo "On $host_os systems, root_prefix defaults to ''" 15178 fi 15179 ;; 15180esac 15181case "$host_os" in 15182linux* | gnu* | k*bsd*-gnu) 15183 if test "$prefix" = NONE ; then 15184 prefix="/usr"; 15185 echo "On $host_os systems, prefix defaults to /usr" 15186 if test "$mandir" = '${prefix}/man' ; then 15187 echo "...and mandir defaults to /usr/share/man" 15188 mandir=/usr/share/man 15189 fi 15190 fi 15191;; 15192esac 15193if test "$root_prefix" = NONE ; then 15194 if test "$prefix" = NONE ; then 15195 root_prefix="$ac_default_prefix" 15196 else 15197 root_prefix="$prefix" 15198 fi 15199 root_bindir=$bindir 15200 root_sbindir=$sbindir 15201 root_libdir=$libdir 15202 root_sysconfdir=$sysconfdir 15203else 15204 root_bindir='${root_prefix}/bin' 15205 root_sbindir='${root_prefix}/sbin' 15206 root_libdir='${root_prefix}/lib' 15207 root_sysconfdir='${root_prefix}/etc' 15208fi 15209if test "$bindir" != '${exec_prefix}/bin'; then 15210 root_bindir=$bindir 15211 echo "Setting root_bindir to $root_bindir" 15212fi 15213if test "$sbindir" != '${exec_prefix}/sbin'; then 15214 root_sbindir=$sbindir 15215 echo "Setting root_sbindir to $root_sbindir" 15216fi 15217if test "$libdir" != '${exec_prefix}/lib'; then 15218 root_libdir=$libdir 15219 echo "Setting root_libdir to $root_libdir" 15220fi 15221if test "$sysconfdir" != '${prefix}/etc'; then 15222 root_sysconfdir=$sysconfdir 15223 echo "Setting root_sysconfdir to $root_sysconfdir" 15224fi 15225 15226 15227 15228 15229 15230{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 15231echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } 15232if test "${ac_cv_e2fsprogs_use_static+set}" = set; then 15233 echo $ECHO_N "(cached) $ECHO_C" >&6 15234else 15235 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" 15236cat >conftest.$ac_ext <<_ACEOF 15237/* confdefs.h. */ 15238_ACEOF 15239cat confdefs.h >>conftest.$ac_ext 15240cat >>conftest.$ac_ext <<_ACEOF 15241/* end confdefs.h. */ 15242#include <stdio.h> 15243int 15244main () 15245{ 15246fflush(stdout); 15247 ; 15248 return 0; 15249} 15250_ACEOF 15251rm -f conftest.$ac_objext conftest$ac_exeext 15252if { (ac_try="$ac_link" 15253case "(($ac_try" in 15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15255 *) ac_try_echo=$ac_try;; 15256esac 15257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15258 (eval "$ac_link") 2>conftest.er1 15259 ac_status=$? 15260 grep -v '^ *+' conftest.er1 >conftest.err 15261 rm -f conftest.er1 15262 cat conftest.err >&5 15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15264 (exit $ac_status); } && { 15265 test -z "$ac_c_werror_flag" || 15266 test ! -s conftest.err 15267 } && test -s conftest$ac_exeext && 15268 $as_test_x conftest$ac_exeext; then 15269 ac_cv_e2fsprogs_use_static=yes 15270else 15271 echo "$as_me: failed program was:" >&5 15272sed 's/^/| /' conftest.$ac_ext >&5 15273 15274 ac_cv_e2fsprogs_use_static=no 15275fi 15276 15277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15278 conftest$ac_exeext conftest.$ac_ext 15279LDFLAGS=$SAVE_LDFLAGS 15280fi 15281 15282case "$host_os" in 15283solaris2.*) 15284 ac_cv_e2fsprogs_use_static=no 15285;; 15286esac 15287{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 15288echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } 15289LDFLAG_STATIC= 15290if test $ac_cv_e2fsprogs_use_static = yes; then 15291 LDFLAG_STATIC=-static 15292fi 15293 15294case "$host_os" in 15295darwin*) 15296 echo "Using Apple Darwin / GNU libintl workaround" 15297 cat >>confdefs.h <<\_ACEOF 15298#define _INTL_REDIRECT_MACROS 1 15299_ACEOF 15300 15301 ;; 15302esac 15303SS_DIR=`cd ${srcdir}/lib/ss; pwd` 15304ET_DIR=`cd ${srcdir}/lib/et; pwd` 15305 15306 15307if test "$cross_compiling" = yes ; then 15308 DO_TEST_SUITE= 15309else 15310 DO_TEST_SUITE=check 15311fi 15312 15313INTL_FLAGS= 15314if test "$USE_INCLUDED_LIBINTL" = "yes" ; then 15315 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' 15316fi 15317 15318if test $cross_compiling = no; then 15319 BUILD_CFLAGS="$CFLAGS" 15320 BUILD_LDFLAGS="$LDFLAGS" 15321else 15322 BUILD_CFLAGS= 15323 BUILD_LDFLAGS= 15324fi 15325 15326 15327test -d lib || mkdir lib 15328test -d include || mkdir include 15329test -d include/linux || mkdir include/linux 15330test -d include/asm || mkdir include/asm 15331for i in MCONFIG Makefile e2fsprogs.spec \ 15332 util/Makefile util/subst.conf util/gen-tarball \ 15333 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ 15334 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ 15335 lib/uuid/Makefile lib/uuid/uuid_types.h \ 15336 lib/blkid/Makefile lib/blkid/blkid_types.h \ 15337 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ 15338 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ 15339 misc/Makefile ext2ed/Makefile e2fsck/Makefile \ 15340 debugfs/Makefile tests/Makefile tests/progs/Makefile \ 15341 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do 15342 if test -d `dirname ${srcdir}/$i` ; then 15343 outlist="$outlist $i" 15344 fi 15345done 15346ac_config_files="$ac_config_files $outlist" 15347 15348cat >confcache <<\_ACEOF 15349# This file is a shell script that caches the results of configure 15350# tests run on this system so they can be shared between configure 15351# scripts and configure runs, see configure's option --config-cache. 15352# It is not useful on other systems. If it contains results you don't 15353# want to keep, you may remove or edit it. 15354# 15355# config.status only pays attention to the cache file if you give it 15356# the --recheck option to rerun configure. 15357# 15358# `ac_cv_env_foo' variables (set or unset) will be overridden when 15359# loading this file, other *unset* `ac_cv_foo' will be assigned the 15360# following values. 15361 15362_ACEOF 15363 15364# The following way of writing the cache mishandles newlines in values, 15365# but we know of no workaround that is simple, portable, and efficient. 15366# So, we kill variables containing newlines. 15367# Ultrix sh set writes to stderr and can't be redirected directly, 15368# and sets the high bit in the cache file unless we assign to the vars. 15369( 15370 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15371 eval ac_val=\$$ac_var 15372 case $ac_val in #( 15373 *${as_nl}*) 15374 case $ac_var in #( 15375 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 15376echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 15377 esac 15378 case $ac_var in #( 15379 _ | IFS | as_nl) ;; #( 15380 *) $as_unset $ac_var ;; 15381 esac ;; 15382 esac 15383 done 15384 15385 (set) 2>&1 | 15386 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15387 *${as_nl}ac_space=\ *) 15388 # `set' does not quote correctly, so add quotes (double-quote 15389 # substitution turns \\\\ into \\, and sed turns \\ into \). 15390 sed -n \ 15391 "s/'/'\\\\''/g; 15392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15393 ;; #( 15394 *) 15395 # `set' quotes correctly as required by POSIX, so do not add quotes. 15396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15397 ;; 15398 esac | 15399 sort 15400) | 15401 sed ' 15402 /^ac_cv_env_/b end 15403 t clear 15404 :clear 15405 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15406 t end 15407 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15408 :end' >>confcache 15409if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15410 if test -w "$cache_file"; then 15411 test "x$cache_file" != "x/dev/null" && 15412 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 15413echo "$as_me: updating cache $cache_file" >&6;} 15414 cat confcache >$cache_file 15415 else 15416 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 15417echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15418 fi 15419fi 15420rm -f confcache 15421 15422test "x$prefix" = xNONE && prefix=$ac_default_prefix 15423# Let make expand exec_prefix. 15424test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15425 15426# Transform confdefs.h into DEFS. 15427# Protect against shell expansion while executing Makefile rules. 15428# Protect against Makefile macro expansion. 15429# 15430# If the first sed substitution is executed (which looks for macros that 15431# take arguments), then branch to the quote section. Otherwise, 15432# look for a macro that doesn't take arguments. 15433ac_script=' 15434t clear 15435:clear 15436s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 15437t quote 15438s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 15439t quote 15440b any 15441:quote 15442s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 15443s/\[/\\&/g 15444s/\]/\\&/g 15445s/\$/$$/g 15446H 15447:any 15448${ 15449 g 15450 s/^\n// 15451 s/\n/ /g 15452 p 15453} 15454' 15455DEFS=`sed -n "$ac_script" confdefs.h` 15456 15457 15458ac_libobjs= 15459ac_ltlibobjs= 15460for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15461 # 1. Remove the extension, and $U if already installed. 15462 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15463 ac_i=`echo "$ac_i" | sed "$ac_script"` 15464 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15465 # will be set to the directory where LIBOBJS objects are built. 15466 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15467 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 15468done 15469LIBOBJS=$ac_libobjs 15470 15471LTLIBOBJS=$ac_ltlibobjs 15472 15473 15474 15475: ${CONFIG_STATUS=./config.status} 15476ac_clean_files_save=$ac_clean_files 15477ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15478{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 15479echo "$as_me: creating $CONFIG_STATUS" >&6;} 15480cat >$CONFIG_STATUS <<_ACEOF 15481#! $SHELL 15482# Generated by $as_me. 15483# Run this file to recreate the current configuration. 15484# Compiler output produced by configure, useful for debugging 15485# configure, is in config.log if it exists. 15486 15487debug=false 15488ac_cs_recheck=false 15489ac_cs_silent=false 15490SHELL=\${CONFIG_SHELL-$SHELL} 15491_ACEOF 15492 15493cat >>$CONFIG_STATUS <<\_ACEOF 15494## --------------------- ## 15495## M4sh Initialization. ## 15496## --------------------- ## 15497 15498# Be more Bourne compatible 15499DUALCASE=1; export DUALCASE # for MKS sh 15500if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15501 emulate sh 15502 NULLCMD=: 15503 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 15504 # is contrary to our usage. Disable this feature. 15505 alias -g '${1+"$@"}'='"$@"' 15506 setopt NO_GLOB_SUBST 15507else 15508 case `(set -o) 2>/dev/null` in 15509 *posix*) set -o posix ;; 15510esac 15511 15512fi 15513 15514 15515 15516 15517# PATH needs CR 15518# Avoid depending upon Character Ranges. 15519as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15520as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15521as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15522as_cr_digits='0123456789' 15523as_cr_alnum=$as_cr_Letters$as_cr_digits 15524 15525# The user is always right. 15526if test "${PATH_SEPARATOR+set}" != set; then 15527 echo "#! /bin/sh" >conf$$.sh 15528 echo "exit 0" >>conf$$.sh 15529 chmod +x conf$$.sh 15530 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15531 PATH_SEPARATOR=';' 15532 else 15533 PATH_SEPARATOR=: 15534 fi 15535 rm -f conf$$.sh 15536fi 15537 15538# Support unset when possible. 15539if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 15540 as_unset=unset 15541else 15542 as_unset=false 15543fi 15544 15545 15546# IFS 15547# We need space, tab and new line, in precisely that order. Quoting is 15548# there to prevent editors from complaining about space-tab. 15549# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15550# splitting by setting IFS to empty value.) 15551as_nl=' 15552' 15553IFS=" "" $as_nl" 15554 15555# Find who we are. Look in the path if we contain no directory separator. 15556case $0 in 15557 *[\\/]* ) as_myself=$0 ;; 15558 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15559for as_dir in $PATH 15560do 15561 IFS=$as_save_IFS 15562 test -z "$as_dir" && as_dir=. 15563 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15564done 15565IFS=$as_save_IFS 15566 15567 ;; 15568esac 15569# We did not find ourselves, most probably we were run as `sh COMMAND' 15570# in which case we are not to be found in the path. 15571if test "x$as_myself" = x; then 15572 as_myself=$0 15573fi 15574if test ! -f "$as_myself"; then 15575 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15576 { (exit 1); exit 1; } 15577fi 15578 15579# Work around bugs in pre-3.0 UWIN ksh. 15580for as_var in ENV MAIL MAILPATH 15581do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 15582done 15583PS1='$ ' 15584PS2='> ' 15585PS4='+ ' 15586 15587# NLS nuisances. 15588for as_var in \ 15589 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 15590 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 15591 LC_TELEPHONE LC_TIME 15592do 15593 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 15594 eval $as_var=C; export $as_var 15595 else 15596 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 15597 fi 15598done 15599 15600# Required to use basename. 15601if expr a : '\(a\)' >/dev/null 2>&1 && 15602 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15603 as_expr=expr 15604else 15605 as_expr=false 15606fi 15607 15608if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15609 as_basename=basename 15610else 15611 as_basename=false 15612fi 15613 15614 15615# Name of the executable. 15616as_me=`$as_basename -- "$0" || 15617$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15618 X"$0" : 'X\(//\)$' \| \ 15619 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15620echo X/"$0" | 15621 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15622 s//\1/ 15623 q 15624 } 15625 /^X\/\(\/\/\)$/{ 15626 s//\1/ 15627 q 15628 } 15629 /^X\/\(\/\).*/{ 15630 s//\1/ 15631 q 15632 } 15633 s/.*/./; q'` 15634 15635# CDPATH. 15636$as_unset CDPATH 15637 15638 15639 15640 as_lineno_1=$LINENO 15641 as_lineno_2=$LINENO 15642 test "x$as_lineno_1" != "x$as_lineno_2" && 15643 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 15644 15645 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 15646 # uniformly replaced by the line number. The first 'sed' inserts a 15647 # line-number line after each line using $LINENO; the second 'sed' 15648 # does the real work. The second script uses 'N' to pair each 15649 # line-number line with the line containing $LINENO, and appends 15650 # trailing '-' during substitution so that $LINENO is not a special 15651 # case at line end. 15652 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 15653 # scripts with optimization help from Paolo Bonzini. Blame Lee 15654 # E. McMahon (1931-1989) for sed's syntax. :-) 15655 sed -n ' 15656 p 15657 /[$]LINENO/= 15658 ' <$as_myself | 15659 sed ' 15660 s/[$]LINENO.*/&-/ 15661 t lineno 15662 b 15663 :lineno 15664 N 15665 :loop 15666 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 15667 t loop 15668 s/-\n.*// 15669 ' >$as_me.lineno && 15670 chmod +x "$as_me.lineno" || 15671 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 15672 { (exit 1); exit 1; }; } 15673 15674 # Don't try to exec as it changes $[0], causing all sort of problems 15675 # (the dirname of $[0] is not the place where we might find the 15676 # original and so on. Autoconf is especially sensitive to this). 15677 . "./$as_me.lineno" 15678 # Exit status is that of the last command. 15679 exit 15680} 15681 15682 15683if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15684 as_dirname=dirname 15685else 15686 as_dirname=false 15687fi 15688 15689ECHO_C= ECHO_N= ECHO_T= 15690case `echo -n x` in 15691-n*) 15692 case `echo 'x\c'` in 15693 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15694 *) ECHO_C='\c';; 15695 esac;; 15696*) 15697 ECHO_N='-n';; 15698esac 15699 15700if expr a : '\(a\)' >/dev/null 2>&1 && 15701 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15702 as_expr=expr 15703else 15704 as_expr=false 15705fi 15706 15707rm -f conf$$ conf$$.exe conf$$.file 15708if test -d conf$$.dir; then 15709 rm -f conf$$.dir/conf$$.file 15710else 15711 rm -f conf$$.dir 15712 mkdir conf$$.dir 15713fi 15714echo >conf$$.file 15715if ln -s conf$$.file conf$$ 2>/dev/null; then 15716 as_ln_s='ln -s' 15717 # ... but there are two gotchas: 15718 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15719 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15720 # In both cases, we have to default to `cp -p'. 15721 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15722 as_ln_s='cp -p' 15723elif ln conf$$.file conf$$ 2>/dev/null; then 15724 as_ln_s=ln 15725else 15726 as_ln_s='cp -p' 15727fi 15728rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15729rmdir conf$$.dir 2>/dev/null 15730 15731if mkdir -p . 2>/dev/null; then 15732 as_mkdir_p=: 15733else 15734 test -d ./-p && rmdir ./-p 15735 as_mkdir_p=false 15736fi 15737 15738if test -x / >/dev/null 2>&1; then 15739 as_test_x='test -x' 15740else 15741 if ls -dL / >/dev/null 2>&1; then 15742 as_ls_L_option=L 15743 else 15744 as_ls_L_option= 15745 fi 15746 as_test_x=' 15747 eval sh -c '\'' 15748 if test -d "$1"; then 15749 test -d "$1/."; 15750 else 15751 case $1 in 15752 -*)set "./$1";; 15753 esac; 15754 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 15755 ???[sx]*):;;*)false;;esac;fi 15756 '\'' sh 15757 ' 15758fi 15759as_executable_p=$as_test_x 15760 15761# Sed expression to map a string onto a valid CPP name. 15762as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15763 15764# Sed expression to map a string onto a valid variable name. 15765as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15766 15767 15768exec 6>&1 15769 15770# Save the log message, to keep $[0] and so on meaningful, and to 15771# report actual input values of CONFIG_FILES etc. instead of their 15772# values after options handling. 15773ac_log=" 15774This file was extended by $as_me, which was 15775generated by GNU Autoconf 2.61. Invocation command line was 15776 15777 CONFIG_FILES = $CONFIG_FILES 15778 CONFIG_HEADERS = $CONFIG_HEADERS 15779 CONFIG_LINKS = $CONFIG_LINKS 15780 CONFIG_COMMANDS = $CONFIG_COMMANDS 15781 $ $0 $@ 15782 15783on `(hostname || uname -n) 2>/dev/null | sed 1q` 15784" 15785 15786_ACEOF 15787 15788cat >>$CONFIG_STATUS <<_ACEOF 15789# Files that config.status was made for. 15790config_files="$ac_config_files" 15791config_commands="$ac_config_commands" 15792 15793_ACEOF 15794 15795cat >>$CONFIG_STATUS <<\_ACEOF 15796ac_cs_usage="\ 15797\`$as_me' instantiates files from templates according to the 15798current configuration. 15799 15800Usage: $0 [OPTIONS] [FILE]... 15801 15802 -h, --help print this help, then exit 15803 -V, --version print version number and configuration settings, then exit 15804 -q, --quiet do not print progress messages 15805 -d, --debug don't remove temporary files 15806 --recheck update $as_me by reconfiguring in the same conditions 15807 --file=FILE[:TEMPLATE] 15808 instantiate the configuration file FILE 15809 15810Configuration files: 15811$config_files 15812 15813Configuration commands: 15814$config_commands 15815 15816Report bugs to <bug-autoconf@gnu.org>." 15817 15818_ACEOF 15819cat >>$CONFIG_STATUS <<_ACEOF 15820ac_cs_version="\\ 15821config.status 15822configured by $0, generated by GNU Autoconf 2.61, 15823 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15824 15825Copyright (C) 2006 Free Software Foundation, Inc. 15826This config.status script is free software; the Free Software Foundation 15827gives unlimited permission to copy, distribute and modify it." 15828 15829ac_pwd='$ac_pwd' 15830srcdir='$srcdir' 15831INSTALL='$INSTALL' 15832_ACEOF 15833 15834cat >>$CONFIG_STATUS <<\_ACEOF 15835# If no file are specified by the user, then we need to provide default 15836# value. By we need to know if files were specified by the user. 15837ac_need_defaults=: 15838while test $# != 0 15839do 15840 case $1 in 15841 --*=*) 15842 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15843 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15844 ac_shift=: 15845 ;; 15846 *) 15847 ac_option=$1 15848 ac_optarg=$2 15849 ac_shift=shift 15850 ;; 15851 esac 15852 15853 case $ac_option in 15854 # Handling of the options. 15855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15856 ac_cs_recheck=: ;; 15857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15858 echo "$ac_cs_version"; exit ;; 15859 --debug | --debu | --deb | --de | --d | -d ) 15860 debug=: ;; 15861 --file | --fil | --fi | --f ) 15862 $ac_shift 15863 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 15864 ac_need_defaults=false;; 15865 --he | --h | --help | --hel | -h ) 15866 echo "$ac_cs_usage"; exit ;; 15867 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15868 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15869 ac_cs_silent=: ;; 15870 15871 # This is an error. 15872 -*) { echo "$as_me: error: unrecognized option: $1 15873Try \`$0 --help' for more information." >&2 15874 { (exit 1); exit 1; }; } ;; 15875 15876 *) ac_config_targets="$ac_config_targets $1" 15877 ac_need_defaults=false ;; 15878 15879 esac 15880 shift 15881done 15882 15883ac_configure_extra_args= 15884 15885if $ac_cs_silent; then 15886 exec 6>/dev/null 15887 ac_configure_extra_args="$ac_configure_extra_args --silent" 15888fi 15889 15890_ACEOF 15891cat >>$CONFIG_STATUS <<_ACEOF 15892if \$ac_cs_recheck; then 15893 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 15894 CONFIG_SHELL=$SHELL 15895 export CONFIG_SHELL 15896 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15897fi 15898 15899_ACEOF 15900cat >>$CONFIG_STATUS <<\_ACEOF 15901exec 5>>config.log 15902{ 15903 echo 15904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15905## Running $as_me. ## 15906_ASBOX 15907 echo "$ac_log" 15908} >&5 15909 15910_ACEOF 15911cat >>$CONFIG_STATUS <<_ACEOF 15912# 15913# INIT-COMMANDS 15914# 15915# Capture the value of obsolete ALL_LINGUAS because we need it to compute 15916 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 15917 # from automake. 15918 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 15919 # Capture the value of LINGUAS because we need it to compute CATALOGS. 15920 LINGUAS="${LINGUAS-%UNSET%}" 15921 15922 15923_ACEOF 15924 15925cat >>$CONFIG_STATUS <<\_ACEOF 15926 15927# Handling of arguments. 15928for ac_config_target in $ac_config_targets 15929do 15930 case $ac_config_target in 15931 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 15932 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; 15933 15934 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 15935echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 15936 { (exit 1); exit 1; }; };; 15937 esac 15938done 15939 15940 15941# If the user did not use the arguments to specify the items to instantiate, 15942# then the envvar interface is used. Set only those that are not. 15943# We use the long form for the default assignment because of an extremely 15944# bizarre bug on SunOS 4.1.3. 15945if $ac_need_defaults; then 15946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15947 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15948fi 15949 15950# Have a temporary directory for convenience. Make it in the build tree 15951# simply because there is no reason against having it here, and in addition, 15952# creating and moving files from /tmp can sometimes cause problems. 15953# Hook for its removal unless debugging. 15954# Note that there is a small window in which the directory will not be cleaned: 15955# after its creation but before its name has been assigned to `$tmp'. 15956$debug || 15957{ 15958 tmp= 15959 trap 'exit_status=$? 15960 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15961' 0 15962 trap '{ (exit 1); exit 1; }' 1 2 13 15 15963} 15964# Create a (secure) tmp directory for tmp files. 15965 15966{ 15967 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15968 test -n "$tmp" && test -d "$tmp" 15969} || 15970{ 15971 tmp=./conf$$-$RANDOM 15972 (umask 077 && mkdir "$tmp") 15973} || 15974{ 15975 echo "$me: cannot create a temporary directory in ." >&2 15976 { (exit 1); exit 1; } 15977} 15978 15979# 15980# Set up the sed scripts for CONFIG_FILES section. 15981# 15982 15983# No need to generate the scripts if there are no CONFIG_FILES. 15984# This happens for instance when ./config.status config.h 15985if test -n "$CONFIG_FILES"; then 15986 15987_ACEOF 15988 15989# Create sed commands to just substitute file output variables. 15990 15991# Remaining file output variables are in a fragment that also has non-file 15992# output varibles. 15993 15994 15995 15996ac_delim='%!_!# ' 15997for ac_last_try in false false false false false :; do 15998 cat >conf$$subs.sed <<_ACEOF 15999SHELL!$SHELL$ac_delim 16000PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 16001PACKAGE_NAME!$PACKAGE_NAME$ac_delim 16002PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 16003PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 16004PACKAGE_STRING!$PACKAGE_STRING$ac_delim 16005PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 16006exec_prefix!$exec_prefix$ac_delim 16007prefix!$prefix$ac_delim 16008program_transform_name!$program_transform_name$ac_delim 16009bindir!$bindir$ac_delim 16010sbindir!$sbindir$ac_delim 16011libexecdir!$libexecdir$ac_delim 16012datarootdir!$datarootdir$ac_delim 16013datadir!$datadir$ac_delim 16014sysconfdir!$sysconfdir$ac_delim 16015sharedstatedir!$sharedstatedir$ac_delim 16016localstatedir!$localstatedir$ac_delim 16017includedir!$includedir$ac_delim 16018oldincludedir!$oldincludedir$ac_delim 16019docdir!$docdir$ac_delim 16020infodir!$infodir$ac_delim 16021htmldir!$htmldir$ac_delim 16022dvidir!$dvidir$ac_delim 16023pdfdir!$pdfdir$ac_delim 16024psdir!$psdir$ac_delim 16025libdir!$libdir$ac_delim 16026localedir!$localedir$ac_delim 16027mandir!$mandir$ac_delim 16028DEFS!$DEFS$ac_delim 16029ECHO_C!$ECHO_C$ac_delim 16030ECHO_N!$ECHO_N$ac_delim 16031ECHO_T!$ECHO_T$ac_delim 16032LIBS!$LIBS$ac_delim 16033build_alias!$build_alias$ac_delim 16034host_alias!$host_alias$ac_delim 16035target_alias!$target_alias$ac_delim 16036E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim 16037E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim 16038E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim 16039E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim 16040E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim 16041build!$build$ac_delim 16042build_cpu!$build_cpu$ac_delim 16043build_vendor!$build_vendor$ac_delim 16044build_os!$build_os$ac_delim 16045host!$host$ac_delim 16046host_cpu!$host_cpu$ac_delim 16047host_vendor!$host_vendor$ac_delim 16048host_os!$host_os$ac_delim 16049CC!$CC$ac_delim 16050CFLAGS!$CFLAGS$ac_delim 16051LDFLAGS!$LDFLAGS$ac_delim 16052CPPFLAGS!$CPPFLAGS$ac_delim 16053ac_ct_CC!$ac_ct_CC$ac_delim 16054EXEEXT!$EXEEXT$ac_delim 16055OBJEXT!$OBJEXT$ac_delim 16056CPP!$CPP$ac_delim 16057LD!$LD$ac_delim 16058GREP!$GREP$ac_delim 16059EGREP!$EGREP$ac_delim 16060LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim 16061MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim 16062HTREE_CMT!$HTREE_CMT$ac_delim 16063ELF_CMT!$ELF_CMT$ac_delim 16064BSDLIB_CMT!$BSDLIB_CMT$ac_delim 16065PROFILE_CMT!$PROFILE_CMT$ac_delim 16066CHECKER_CMT!$CHECKER_CMT$ac_delim 16067LIB_EXT!$LIB_EXT$ac_delim 16068STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim 16069PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim 16070DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim 16071IMAGER_CMT!$IMAGER_CMT$ac_delim 16072_ACEOF 16073 16074 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then 16075 break 16076 elif $ac_last_try; then 16077 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16078echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16079 { (exit 1); exit 1; }; } 16080 else 16081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16082 fi 16083done 16084 16085ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 16086if test -n "$ac_eof"; then 16087 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 16088 ac_eof=`expr $ac_eof + 1` 16089fi 16090 16091cat >>$CONFIG_STATUS <<_ACEOF 16092cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 16093/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16094/^[ ]*@MCONFIG@[ ]*$/{ 16095r $MCONFIG 16096d 16097} 16098/^[ ]*@MAKEFILE_ELF@[ ]*$/{ 16099r $MAKEFILE_ELF 16100d 16101} 16102/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ 16103r $MAKEFILE_BSDLIB 16104d 16105} 16106/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ 16107r $MAKEFILE_PROFILE 16108d 16109} 16110/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ 16111r $MAKEFILE_CHECKER 16112d 16113} 16114/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ 16115r $MAKEFILE_LIBRARY 16116d 16117} 16118/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ 16119r $ASM_TYPES_HEADER 16120d 16121} 16122/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{ 16123r $PUBLIC_CONFIG_HEADER 16124d 16125} 16126_ACEOF 16127sed ' 16128s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 16129s/^/s,@/; s/!/@,|#_!!_#|/ 16130:n 16131t n 16132s/'"$ac_delim"'$/,g/; t 16133s/$/\\/; p 16134N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 16135' >>$CONFIG_STATUS <conf$$subs.sed 16136rm -f conf$$subs.sed 16137cat >>$CONFIG_STATUS <<_ACEOF 16138CEOF$ac_eof 16139_ACEOF 16140 16141 16142ac_delim='%!_!# ' 16143for ac_last_try in false false false false false :; do 16144 cat >conf$$subs.sed <<_ACEOF 16145RESIZER_CMT!$RESIZER_CMT$ac_delim 16146FSCK_PROG!$FSCK_PROG$ac_delim 16147FSCK_MAN!$FSCK_MAN$ac_delim 16148E2INITRD_PROG!$E2INITRD_PROG$ac_delim 16149E2INITRD_MAN!$E2INITRD_MAN$ac_delim 16150PKG_CONFIG!$PKG_CONFIG$ac_delim 16151DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim 16152DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim 16153DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim 16154STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim 16155STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim 16156UUIDD_CMT!$UUIDD_CMT$ac_delim 16157GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim 16158PACKAGE!$PACKAGE$ac_delim 16159VERSION!$VERSION$ac_delim 16160SET_MAKE!$SET_MAKE$ac_delim 16161INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 16162INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 16163INSTALL_DATA!$INSTALL_DATA$ac_delim 16164MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim 16165USE_NLS!$USE_NLS$ac_delim 16166MSGFMT!$MSGFMT$ac_delim 16167GMSGFMT!$GMSGFMT$ac_delim 16168XGETTEXT!$XGETTEXT$ac_delim 16169MSGMERGE!$MSGMERGE$ac_delim 16170RANLIB!$RANLIB$ac_delim 16171ALLOCA!$ALLOCA$ac_delim 16172GLIBC21!$GLIBC21$ac_delim 16173HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim 16174HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim 16175HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim 16176HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim 16177LIBICONV!$LIBICONV$ac_delim 16178LTLIBICONV!$LTLIBICONV$ac_delim 16179INTLBISON!$INTLBISON$ac_delim 16180BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim 16181USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim 16182CATOBJEXT!$CATOBJEXT$ac_delim 16183DATADIRNAME!$DATADIRNAME$ac_delim 16184INSTOBJEXT!$INSTOBJEXT$ac_delim 16185GENCAT!$GENCAT$ac_delim 16186INTLOBJS!$INTLOBJS$ac_delim 16187INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim 16188INTLLIBS!$INTLLIBS$ac_delim 16189LIBINTL!$LIBINTL$ac_delim 16190LTLIBINTL!$LTLIBINTL$ac_delim 16191POSUB!$POSUB$ac_delim 16192BINARY_TYPE!$BINARY_TYPE$ac_delim 16193LN!$LN$ac_delim 16194LN_S!$LN_S$ac_delim 16195MV!$MV$ac_delim 16196CP!$CP$ac_delim 16197RM!$RM$ac_delim 16198CHMOD!$CHMOD$ac_delim 16199AWK!$AWK$ac_delim 16200SED!$SED$ac_delim 16201PERL!$PERL$ac_delim 16202LDCONFIG!$LDCONFIG$ac_delim 16203AR!$AR$ac_delim 16204STRIP!$STRIP$ac_delim 16205MAKEINFO!$MAKEINFO$ac_delim 16206BUILD_CC!$BUILD_CC$ac_delim 16207SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim 16208SIZEOF_INT!$SIZEOF_INT$ac_delim 16209SIZEOF_LONG!$SIZEOF_LONG$ac_delim 16210SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim 16211SOCKET_LIB!$SOCKET_LIB$ac_delim 16212DLOPEN_LIB!$DLOPEN_LIB$ac_delim 16213UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim 16214LINUX_CMT!$LINUX_CMT$ac_delim 16215CYGWIN_CMT!$CYGWIN_CMT$ac_delim 16216UNIX_CMT!$UNIX_CMT$ac_delim 16217root_prefix!$root_prefix$ac_delim 16218root_bindir!$root_bindir$ac_delim 16219root_sbindir!$root_sbindir$ac_delim 16220root_libdir!$root_libdir$ac_delim 16221root_sysconfdir!$root_sysconfdir$ac_delim 16222LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim 16223SS_DIR!$SS_DIR$ac_delim 16224ET_DIR!$ET_DIR$ac_delim 16225DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim 16226INTL_FLAGS!$INTL_FLAGS$ac_delim 16227BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim 16228BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim 16229LIBOBJS!$LIBOBJS$ac_delim 16230LTLIBOBJS!$LTLIBOBJS$ac_delim 16231_ACEOF 16232 16233 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then 16234 break 16235 elif $ac_last_try; then 16236 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 16237echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 16238 { (exit 1); exit 1; }; } 16239 else 16240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16241 fi 16242done 16243 16244ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 16245if test -n "$ac_eof"; then 16246 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 16247 ac_eof=`expr $ac_eof + 1` 16248fi 16249 16250cat >>$CONFIG_STATUS <<_ACEOF 16251cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 16252/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 16253_ACEOF 16254sed ' 16255s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 16256s/^/s,@/; s/!/@,|#_!!_#|/ 16257:n 16258t n 16259s/'"$ac_delim"'$/,g/; t 16260s/$/\\/; p 16261N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 16262' >>$CONFIG_STATUS <conf$$subs.sed 16263rm -f conf$$subs.sed 16264cat >>$CONFIG_STATUS <<_ACEOF 16265:end 16266s/|#_!!_#|//g 16267CEOF$ac_eof 16268_ACEOF 16269 16270 16271# VPATH may cause trouble with some makes, so we remove $(srcdir), 16272# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16273# trailing colons and then remove the whole line if VPATH becomes empty 16274# (actually we leave an empty line to preserve line numbers). 16275if test "x$srcdir" = x.; then 16276 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16277s/:*\$(srcdir):*/:/ 16278s/:*\${srcdir}:*/:/ 16279s/:*@srcdir@:*/:/ 16280s/^\([^=]*=[ ]*\):*/\1/ 16281s/:*$// 16282s/^[^=]*=[ ]*$// 16283}' 16284fi 16285 16286cat >>$CONFIG_STATUS <<\_ACEOF 16287fi # test -n "$CONFIG_FILES" 16288 16289 16290for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 16291do 16292 case $ac_tag in 16293 :[FHLC]) ac_mode=$ac_tag; continue;; 16294 esac 16295 case $ac_mode$ac_tag in 16296 :[FHL]*:*);; 16297 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 16298echo "$as_me: error: Invalid tag $ac_tag." >&2;} 16299 { (exit 1); exit 1; }; };; 16300 :[FH]-) ac_tag=-:-;; 16301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16302 esac 16303 ac_save_IFS=$IFS 16304 IFS=: 16305 set x $ac_tag 16306 IFS=$ac_save_IFS 16307 shift 16308 ac_file=$1 16309 shift 16310 16311 case $ac_mode in 16312 :L) ac_source=$1;; 16313 :[FH]) 16314 ac_file_inputs= 16315 for ac_f 16316 do 16317 case $ac_f in 16318 -) ac_f="$tmp/stdin";; 16319 *) # Look for the file first in the build tree, then in the source tree 16320 # (if the path is not absolute). The absolute path cannot be DOS-style, 16321 # because $ac_f cannot contain `:'. 16322 test -f "$ac_f" || 16323 case $ac_f in 16324 [\\/$]*) false;; 16325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16326 esac || 16327 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 16328echo "$as_me: error: cannot find input file: $ac_f" >&2;} 16329 { (exit 1); exit 1; }; };; 16330 esac 16331 ac_file_inputs="$ac_file_inputs $ac_f" 16332 done 16333 16334 # Let's still pretend it is `configure' which instantiates (i.e., don't 16335 # use $as_me), people would be surprised to read: 16336 # /* config.h. Generated by config.status. */ 16337 configure_input="Generated from "`IFS=: 16338 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 16339 if test x"$ac_file" != x-; then 16340 configure_input="$ac_file. $configure_input" 16341 { echo "$as_me:$LINENO: creating $ac_file" >&5 16342echo "$as_me: creating $ac_file" >&6;} 16343 fi 16344 16345 case $ac_tag in 16346 *:-:* | *:-) cat >"$tmp/stdin";; 16347 esac 16348 ;; 16349 esac 16350 16351 ac_dir=`$as_dirname -- "$ac_file" || 16352$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16353 X"$ac_file" : 'X\(//\)[^/]' \| \ 16354 X"$ac_file" : 'X\(//\)$' \| \ 16355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16356echo X"$ac_file" | 16357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16358 s//\1/ 16359 q 16360 } 16361 /^X\(\/\/\)[^/].*/{ 16362 s//\1/ 16363 q 16364 } 16365 /^X\(\/\/\)$/{ 16366 s//\1/ 16367 q 16368 } 16369 /^X\(\/\).*/{ 16370 s//\1/ 16371 q 16372 } 16373 s/.*/./; q'` 16374 { as_dir="$ac_dir" 16375 case $as_dir in #( 16376 -*) as_dir=./$as_dir;; 16377 esac 16378 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 16379 as_dirs= 16380 while :; do 16381 case $as_dir in #( 16382 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 16383 *) as_qdir=$as_dir;; 16384 esac 16385 as_dirs="'$as_qdir' $as_dirs" 16386 as_dir=`$as_dirname -- "$as_dir" || 16387$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16388 X"$as_dir" : 'X\(//\)[^/]' \| \ 16389 X"$as_dir" : 'X\(//\)$' \| \ 16390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16391echo X"$as_dir" | 16392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16393 s//\1/ 16394 q 16395 } 16396 /^X\(\/\/\)[^/].*/{ 16397 s//\1/ 16398 q 16399 } 16400 /^X\(\/\/\)$/{ 16401 s//\1/ 16402 q 16403 } 16404 /^X\(\/\).*/{ 16405 s//\1/ 16406 q 16407 } 16408 s/.*/./; q'` 16409 test -d "$as_dir" && break 16410 done 16411 test -z "$as_dirs" || eval "mkdir $as_dirs" 16412 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16413echo "$as_me: error: cannot create directory $as_dir" >&2;} 16414 { (exit 1); exit 1; }; }; } 16415 ac_builddir=. 16416 16417case "$ac_dir" in 16418.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16419*) 16420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 16421 # A ".." for each directory in $ac_dir_suffix. 16422 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 16423 case $ac_top_builddir_sub in 16424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16426 esac ;; 16427esac 16428ac_abs_top_builddir=$ac_pwd 16429ac_abs_builddir=$ac_pwd$ac_dir_suffix 16430# for backward compatibility: 16431ac_top_builddir=$ac_top_build_prefix 16432 16433case $srcdir in 16434 .) # We are building in place. 16435 ac_srcdir=. 16436 ac_top_srcdir=$ac_top_builddir_sub 16437 ac_abs_top_srcdir=$ac_pwd ;; 16438 [\\/]* | ?:[\\/]* ) # Absolute name. 16439 ac_srcdir=$srcdir$ac_dir_suffix; 16440 ac_top_srcdir=$srcdir 16441 ac_abs_top_srcdir=$srcdir ;; 16442 *) # Relative name. 16443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16444 ac_top_srcdir=$ac_top_build_prefix$srcdir 16445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16446esac 16447ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16448 16449 16450 case $ac_mode in 16451 :F) 16452 # 16453 # CONFIG_FILE 16454 # 16455 16456 case $INSTALL in 16457 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16458 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16459 esac 16460_ACEOF 16461 16462cat >>$CONFIG_STATUS <<\_ACEOF 16463# If the template does not know about datarootdir, expand it. 16464# FIXME: This hack should be removed a few years after 2.60. 16465ac_datarootdir_hack=; ac_datarootdir_seen= 16466 16467case `sed -n '/datarootdir/ { 16468 p 16469 q 16470} 16471/@datadir@/p 16472/@docdir@/p 16473/@infodir@/p 16474/@localedir@/p 16475/@mandir@/p 16476' $ac_file_inputs` in 16477*datarootdir*) ac_datarootdir_seen=yes;; 16478*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16479 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16480echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16481_ACEOF 16482cat >>$CONFIG_STATUS <<_ACEOF 16483 ac_datarootdir_hack=' 16484 s&@datadir@&$datadir&g 16485 s&@docdir@&$docdir&g 16486 s&@infodir@&$infodir&g 16487 s&@localedir@&$localedir&g 16488 s&@mandir@&$mandir&g 16489 s&\\\${datarootdir}&$datarootdir&g' ;; 16490esac 16491_ACEOF 16492 16493# Neutralize VPATH when `$srcdir' = `.'. 16494# Shell code in configure.ac might set extrasub. 16495# FIXME: do we really want to maintain this feature? 16496cat >>$CONFIG_STATUS <<_ACEOF 16497 sed "$ac_vpsub 16498$extrasub 16499_ACEOF 16500cat >>$CONFIG_STATUS <<\_ACEOF 16501:t 16502/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16503s&@configure_input@&$configure_input&;t t 16504s&@top_builddir@&$ac_top_builddir_sub&;t t 16505s&@srcdir@&$ac_srcdir&;t t 16506s&@abs_srcdir@&$ac_abs_srcdir&;t t 16507s&@top_srcdir@&$ac_top_srcdir&;t t 16508s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16509s&@builddir@&$ac_builddir&;t t 16510s&@abs_builddir@&$ac_abs_builddir&;t t 16511s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16512s&@INSTALL@&$ac_INSTALL&;t t 16513$ac_datarootdir_hack 16514" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 16515 16516test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16517 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16519 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16520which seems to be undefined. Please make sure it is defined." >&5 16521echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16522which seems to be undefined. Please make sure it is defined." >&2;} 16523 16524 rm -f "$tmp/stdin" 16525 case $ac_file in 16526 -) cat "$tmp/out"; rm -f "$tmp/out";; 16527 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 16528 esac 16529 ;; 16530 16531 16532 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 16533echo "$as_me: executing $ac_file commands" >&6;} 16534 ;; 16535 esac 16536 16537 16538 case $ac_file$ac_mode in 16539 "default-1":C) 16540 for ac_file in $CONFIG_FILES; do 16541 # Support "outfile[:infile[:infile...]]" 16542 case "$ac_file" in 16543 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 16544 esac 16545 # PO directories have a Makefile.in generated from Makefile.in.in. 16546 case "$ac_file" in */Makefile.in) 16547 # Adjust a relative srcdir. 16548 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 16549 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 16550 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 16551 # In autoconf-2.13 it is called $ac_given_srcdir. 16552 # In autoconf-2.50 it is called $srcdir. 16553 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 16554 case "$ac_given_srcdir" in 16555 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 16556 /*) top_srcdir="$ac_given_srcdir" ;; 16557 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 16558 esac 16559 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 16560 rm -f "$ac_dir/POTFILES" 16561 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 16562 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 16563 POMAKEFILEDEPS="POTFILES.in" 16564 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 16565 # on $ac_dir but don't depend on user-specified configuration 16566 # parameters. 16567 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 16568 # The LINGUAS file contains the set of available languages. 16569 if test -n "$OBSOLETE_ALL_LINGUAS"; then 16570 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 16571 fi 16572 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 16573 # Hide the ALL_LINGUAS assigment from automake. 16574 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 16575 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 16576 else 16577 # The set of available languages was given in configure.in. 16578 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 16579 fi 16580 # Compute POFILES 16581 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 16582 # Compute UPDATEPOFILES 16583 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 16584 # Compute DUMMYPOFILES 16585 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 16586 # Compute GMOFILES 16587 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 16588 case "$ac_given_srcdir" in 16589 .) srcdirpre= ;; 16590 *) srcdirpre='$(srcdir)/' ;; 16591 esac 16592 POFILES= 16593 UPDATEPOFILES= 16594 DUMMYPOFILES= 16595 GMOFILES= 16596 for lang in $ALL_LINGUAS; do 16597 POFILES="$POFILES $srcdirpre$lang.po" 16598 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 16599 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 16600 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 16601 done 16602 # CATALOGS depends on both $ac_dir and the user's LINGUAS 16603 # environment variable. 16604 INST_LINGUAS= 16605 if test -n "$ALL_LINGUAS"; then 16606 for presentlang in $ALL_LINGUAS; do 16607 useit=no 16608 if test "%UNSET%" != "$LINGUAS"; then 16609 desiredlanguages="$LINGUAS" 16610 else 16611 desiredlanguages="$ALL_LINGUAS" 16612 fi 16613 for desiredlang in $desiredlanguages; do 16614 # Use the presentlang catalog if desiredlang is 16615 # a. equal to presentlang, or 16616 # b. a variant of presentlang (because in this case, 16617 # presentlang can be used as a fallback for messages 16618 # which are not translated in the desiredlang catalog). 16619 case "$desiredlang" in 16620 "$presentlang"*) useit=yes;; 16621 esac 16622 done 16623 if test $useit = yes; then 16624 INST_LINGUAS="$INST_LINGUAS $presentlang" 16625 fi 16626 done 16627 fi 16628 CATALOGS= 16629 if test -n "$INST_LINGUAS"; then 16630 for lang in $INST_LINGUAS; do 16631 CATALOGS="$CATALOGS $lang.gmo" 16632 done 16633 fi 16634 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 16635 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" 16636 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 16637 if test -f "$f"; then 16638 case "$f" in 16639 *.orig | *.bak | *~) ;; 16640 *) cat "$f" >> "$ac_dir/Makefile" ;; 16641 esac 16642 fi 16643 done 16644 fi 16645 ;; 16646 esac 16647 done ;; 16648 16649 esac 16650done # for ac_tag 16651 16652 16653{ (exit 0); exit 0; } 16654_ACEOF 16655chmod +x $CONFIG_STATUS 16656ac_clean_files=$ac_clean_files_save 16657 16658 16659# configure is writing to config.log, and then calls config.status. 16660# config.status does its own redirection, appending to config.log. 16661# Unfortunately, on DOS this fails, as config.log is still kept open 16662# by configure, so config.status won't be able to write to it; its 16663# output is simply discarded. So we exec the FD to /dev/null, 16664# effectively closing config.log, so it can be properly (re)opened and 16665# appended to by config.status. When coming back to configure, we 16666# need to make the FD available again. 16667if test "$no_create" != yes; then 16668 ac_cs_success=: 16669 ac_config_status_args= 16670 test "$silent" = yes && 16671 ac_config_status_args="$ac_config_status_args --quiet" 16672 exec 5>/dev/null 16673 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16674 exec 5>>config.log 16675 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16676 # would make configure fail if this is the last instruction. 16677 $ac_cs_success || { (exit 1); exit 1; } 16678fi 16679 16680if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi 16681 16682