configure revision a5dda0542283d0674f42a0d1b04d33888f512eab
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 690E2FSCK_TYPE 691FSCK_PROG 692FSCK_MAN 693E2INITRD_PROG 694E2INITRD_MAN 695DEVMAPPER_REQ 696DEVMAPPER_PC_LIBS 697DEVMAPPER_LIBS 698STATIC_DEVMAPPER_LIBS 699GETTEXT_PACKAGE 700PACKAGE 701VERSION 702SET_MAKE 703INSTALL_PROGRAM 704INSTALL_SCRIPT 705INSTALL_DATA 706MKINSTALLDIRS 707USE_NLS 708MSGFMT 709GMSGFMT 710XGETTEXT 711MSGMERGE 712RANLIB 713ALLOCA 714GLIBC21 715HAVE_POSIX_PRINTF 716HAVE_ASPRINTF 717HAVE_SNPRINTF 718HAVE_WPRINTF 719LIBICONV 720LTLIBICONV 721INTLBISON 722BUILD_INCLUDED_LIBINTL 723USE_INCLUDED_LIBINTL 724CATOBJEXT 725DATADIRNAME 726INSTOBJEXT 727GENCAT 728INTLOBJS 729INTL_LIBTOOL_SUFFIX_PREFIX 730INTLLIBS 731LIBINTL 732LTLIBINTL 733POSUB 734BINARY_TYPE 735LN 736LN_S 737MV 738CP 739RM 740CHMOD 741AWK 742SED 743PERL 744LDCONFIG 745AR 746STRIP 747BUILD_CC 748SIZEOF_SHORT 749SIZEOF_INT 750SIZEOF_LONG 751SIZEOF_LONG_LONG 752SOCKET_LIB 753DLOPEN_LIB 754UNI_DIFF_OPTS 755LINUX_CMT 756CYGWIN_CMT 757UNIX_CMT 758root_prefix 759root_bindir 760root_sbindir 761root_libdir 762root_sysconfdir 763LDFLAG_STATIC 764SS_DIR 765ET_DIR 766DO_TEST_SUITE 767INTL_FLAGS 768BUILD_CFLAGS 769BUILD_LDFLAGS 770LIBOBJS 771LTLIBOBJS' 772ac_subst_files='MCONFIG 773MAKEFILE_ELF 774MAKEFILE_BSDLIB 775MAKEFILE_PROFILE 776MAKEFILE_CHECKER 777MAKEFILE_LIBRARY 778ASM_TYPES_HEADER' 779 ac_precious_vars='build_alias 780host_alias 781target_alias 782CC 783CFLAGS 784LDFLAGS 785LIBS 786CPPFLAGS 787CPP' 788 789 790# Initialize some variables set by options. 791ac_init_help= 792ac_init_version=false 793# The variables have the same names as the options, with 794# dashes changed to underlines. 795cache_file=/dev/null 796exec_prefix=NONE 797no_create= 798no_recursion= 799prefix=NONE 800program_prefix=NONE 801program_suffix=NONE 802program_transform_name=s,x,x, 803silent= 804site= 805srcdir= 806verbose= 807x_includes=NONE 808x_libraries=NONE 809 810# Installation directory options. 811# These are left unexpanded so users can "make install exec_prefix=/foo" 812# and all the variables that are supposed to be based on exec_prefix 813# by default will actually change. 814# Use braces instead of parens because sh, perl, etc. also accept them. 815# (The list follows the same order as the GNU Coding Standards.) 816bindir='${exec_prefix}/bin' 817sbindir='${exec_prefix}/sbin' 818libexecdir='${exec_prefix}/libexec' 819datarootdir='${prefix}/share' 820datadir='${datarootdir}' 821sysconfdir='${prefix}/etc' 822sharedstatedir='${prefix}/com' 823localstatedir='${prefix}/var' 824includedir='${prefix}/include' 825oldincludedir='/usr/include' 826docdir='${datarootdir}/doc/${PACKAGE}' 827infodir='${datarootdir}/info' 828htmldir='${docdir}' 829dvidir='${docdir}' 830pdfdir='${docdir}' 831psdir='${docdir}' 832libdir='${exec_prefix}/lib' 833localedir='${datarootdir}/locale' 834mandir='${datarootdir}/man' 835 836ac_prev= 837ac_dashdash= 838for ac_option 839do 840 # If the previous option needs an argument, assign it. 841 if test -n "$ac_prev"; then 842 eval $ac_prev=\$ac_option 843 ac_prev= 844 continue 845 fi 846 847 case $ac_option in 848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 849 *) ac_optarg=yes ;; 850 esac 851 852 # Accept the important Cygnus configure options, so we can diagnose typos. 853 854 case $ac_dashdash$ac_option in 855 --) 856 ac_dashdash=yes ;; 857 858 -bindir | --bindir | --bindi | --bind | --bin | --bi) 859 ac_prev=bindir ;; 860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 861 bindir=$ac_optarg ;; 862 863 -build | --build | --buil | --bui | --bu) 864 ac_prev=build_alias ;; 865 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 866 build_alias=$ac_optarg ;; 867 868 -cache-file | --cache-file | --cache-fil | --cache-fi \ 869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 870 ac_prev=cache_file ;; 871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 873 cache_file=$ac_optarg ;; 874 875 --config-cache | -C) 876 cache_file=config.cache ;; 877 878 -datadir | --datadir | --datadi | --datad) 879 ac_prev=datadir ;; 880 -datadir=* | --datadir=* | --datadi=* | --datad=*) 881 datadir=$ac_optarg ;; 882 883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 884 | --dataroo | --dataro | --datar) 885 ac_prev=datarootdir ;; 886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 888 datarootdir=$ac_optarg ;; 889 890 -disable-* | --disable-*) 891 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 892 # Reject names that are not valid shell variable names. 893 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 894 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 895 { (exit 1); exit 1; }; } 896 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 897 eval enable_$ac_feature=no ;; 898 899 -docdir | --docdir | --docdi | --doc | --do) 900 ac_prev=docdir ;; 901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 902 docdir=$ac_optarg ;; 903 904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 905 ac_prev=dvidir ;; 906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 907 dvidir=$ac_optarg ;; 908 909 -enable-* | --enable-*) 910 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 913 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 914 { (exit 1); exit 1; }; } 915 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 916 eval enable_$ac_feature=\$ac_optarg ;; 917 918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 920 | --exec | --exe | --ex) 921 ac_prev=exec_prefix ;; 922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 924 | --exec=* | --exe=* | --ex=*) 925 exec_prefix=$ac_optarg ;; 926 927 -gas | --gas | --ga | --g) 928 # Obsolete; use --with-gas. 929 with_gas=yes ;; 930 931 -help | --help | --hel | --he | -h) 932 ac_init_help=long ;; 933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 934 ac_init_help=recursive ;; 935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 936 ac_init_help=short ;; 937 938 -host | --host | --hos | --ho) 939 ac_prev=host_alias ;; 940 -host=* | --host=* | --hos=* | --ho=*) 941 host_alias=$ac_optarg ;; 942 943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 944 ac_prev=htmldir ;; 945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 946 | --ht=*) 947 htmldir=$ac_optarg ;; 948 949 -includedir | --includedir | --includedi | --included | --include \ 950 | --includ | --inclu | --incl | --inc) 951 ac_prev=includedir ;; 952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 953 | --includ=* | --inclu=* | --incl=* | --inc=*) 954 includedir=$ac_optarg ;; 955 956 -infodir | --infodir | --infodi | --infod | --info | --inf) 957 ac_prev=infodir ;; 958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 959 infodir=$ac_optarg ;; 960 961 -libdir | --libdir | --libdi | --libd) 962 ac_prev=libdir ;; 963 -libdir=* | --libdir=* | --libdi=* | --libd=*) 964 libdir=$ac_optarg ;; 965 966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 967 | --libexe | --libex | --libe) 968 ac_prev=libexecdir ;; 969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 970 | --libexe=* | --libex=* | --libe=*) 971 libexecdir=$ac_optarg ;; 972 973 -localedir | --localedir | --localedi | --localed | --locale) 974 ac_prev=localedir ;; 975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 976 localedir=$ac_optarg ;; 977 978 -localstatedir | --localstatedir | --localstatedi | --localstated \ 979 | --localstate | --localstat | --localsta | --localst | --locals) 980 ac_prev=localstatedir ;; 981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 983 localstatedir=$ac_optarg ;; 984 985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 986 ac_prev=mandir ;; 987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 988 mandir=$ac_optarg ;; 989 990 -nfp | --nfp | --nf) 991 # Obsolete; use --without-fp. 992 with_fp=no ;; 993 994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 995 | --no-cr | --no-c | -n) 996 no_create=yes ;; 997 998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1000 no_recursion=yes ;; 1001 1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1004 | --oldin | --oldi | --old | --ol | --o) 1005 ac_prev=oldincludedir ;; 1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1009 oldincludedir=$ac_optarg ;; 1010 1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1012 ac_prev=prefix ;; 1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1014 prefix=$ac_optarg ;; 1015 1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1017 | --program-pre | --program-pr | --program-p) 1018 ac_prev=program_prefix ;; 1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1021 program_prefix=$ac_optarg ;; 1022 1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1024 | --program-suf | --program-su | --program-s) 1025 ac_prev=program_suffix ;; 1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1028 program_suffix=$ac_optarg ;; 1029 1030 -program-transform-name | --program-transform-name \ 1031 | --program-transform-nam | --program-transform-na \ 1032 | --program-transform-n | --program-transform- \ 1033 | --program-transform | --program-transfor \ 1034 | --program-transfo | --program-transf \ 1035 | --program-trans | --program-tran \ 1036 | --progr-tra | --program-tr | --program-t) 1037 ac_prev=program_transform_name ;; 1038 -program-transform-name=* | --program-transform-name=* \ 1039 | --program-transform-nam=* | --program-transform-na=* \ 1040 | --program-transform-n=* | --program-transform-=* \ 1041 | --program-transform=* | --program-transfor=* \ 1042 | --program-transfo=* | --program-transf=* \ 1043 | --program-trans=* | --program-tran=* \ 1044 | --progr-tra=* | --program-tr=* | --program-t=*) 1045 program_transform_name=$ac_optarg ;; 1046 1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1048 ac_prev=pdfdir ;; 1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1050 pdfdir=$ac_optarg ;; 1051 1052 -psdir | --psdir | --psdi | --psd | --ps) 1053 ac_prev=psdir ;; 1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1055 psdir=$ac_optarg ;; 1056 1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1058 | -silent | --silent | --silen | --sile | --sil) 1059 silent=yes ;; 1060 1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1062 ac_prev=sbindir ;; 1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1064 | --sbi=* | --sb=*) 1065 sbindir=$ac_optarg ;; 1066 1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1069 | --sharedst | --shareds | --shared | --share | --shar \ 1070 | --sha | --sh) 1071 ac_prev=sharedstatedir ;; 1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1075 | --sha=* | --sh=*) 1076 sharedstatedir=$ac_optarg ;; 1077 1078 -site | --site | --sit) 1079 ac_prev=site ;; 1080 -site=* | --site=* | --sit=*) 1081 site=$ac_optarg ;; 1082 1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1084 ac_prev=srcdir ;; 1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1086 srcdir=$ac_optarg ;; 1087 1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1089 | --syscon | --sysco | --sysc | --sys | --sy) 1090 ac_prev=sysconfdir ;; 1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1093 sysconfdir=$ac_optarg ;; 1094 1095 -target | --target | --targe | --targ | --tar | --ta | --t) 1096 ac_prev=target_alias ;; 1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1098 target_alias=$ac_optarg ;; 1099 1100 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1101 verbose=yes ;; 1102 1103 -version | --version | --versio | --versi | --vers | -V) 1104 ac_init_version=: ;; 1105 1106 -with-* | --with-*) 1107 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1108 # Reject names that are not valid shell variable names. 1109 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1110 { echo "$as_me: error: invalid package name: $ac_package" >&2 1111 { (exit 1); exit 1; }; } 1112 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1113 eval with_$ac_package=\$ac_optarg ;; 1114 1115 -without-* | --without-*) 1116 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1117 # Reject names that are not valid shell variable names. 1118 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1119 { echo "$as_me: error: invalid package name: $ac_package" >&2 1120 { (exit 1); exit 1; }; } 1121 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1122 eval with_$ac_package=no ;; 1123 1124 --x) 1125 # Obsolete; use --with-x. 1126 with_x=yes ;; 1127 1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1129 | --x-incl | --x-inc | --x-in | --x-i) 1130 ac_prev=x_includes ;; 1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1133 x_includes=$ac_optarg ;; 1134 1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1137 ac_prev=x_libraries ;; 1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1140 x_libraries=$ac_optarg ;; 1141 1142 -*) { echo "$as_me: error: unrecognized option: $ac_option 1143Try \`$0 --help' for more information." >&2 1144 { (exit 1); exit 1; }; } 1145 ;; 1146 1147 *=*) 1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1149 # Reject names that are not valid shell variable names. 1150 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1151 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1152 { (exit 1); exit 1; }; } 1153 eval $ac_envvar=\$ac_optarg 1154 export $ac_envvar ;; 1155 1156 *) 1157 # FIXME: should be removed in autoconf 3.0. 1158 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1160 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1162 ;; 1163 1164 esac 1165done 1166 1167if test -n "$ac_prev"; then 1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1169 { echo "$as_me: error: missing argument to $ac_option" >&2 1170 { (exit 1); exit 1; }; } 1171fi 1172 1173# Be sure to have absolute directory names. 1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1175 datadir sysconfdir sharedstatedir localstatedir includedir \ 1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1177 libdir localedir mandir 1178do 1179 eval ac_val=\$$ac_var 1180 case $ac_val in 1181 [\\/$]* | ?:[\\/]* ) continue;; 1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1183 esac 1184 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1185 { (exit 1); exit 1; }; } 1186done 1187 1188# There might be people who depend on the old broken behavior: `$host' 1189# used to hold the argument of --host etc. 1190# FIXME: To remove some day. 1191build=$build_alias 1192host=$host_alias 1193target=$target_alias 1194 1195# FIXME: To remove some day. 1196if test "x$host_alias" != x; then 1197 if test "x$build_alias" = x; then 1198 cross_compiling=maybe 1199 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1200 If a cross compiler is detected then cross compile mode will be used." >&2 1201 elif test "x$build_alias" != "x$host_alias"; then 1202 cross_compiling=yes 1203 fi 1204fi 1205 1206ac_tool_prefix= 1207test -n "$host_alias" && ac_tool_prefix=$host_alias- 1208 1209test "$silent" = yes && exec 6>/dev/null 1210 1211 1212ac_pwd=`pwd` && test -n "$ac_pwd" && 1213ac_ls_di=`ls -di .` && 1214ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1215 { echo "$as_me: error: Working directory cannot be determined" >&2 1216 { (exit 1); exit 1; }; } 1217test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1218 { echo "$as_me: error: pwd does not report name of working directory" >&2 1219 { (exit 1); exit 1; }; } 1220 1221 1222# Find the source files, if location was not specified. 1223if test -z "$srcdir"; then 1224 ac_srcdir_defaulted=yes 1225 # Try the directory containing this script, then the parent directory. 1226 ac_confdir=`$as_dirname -- "$0" || 1227$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1228 X"$0" : 'X\(//\)[^/]' \| \ 1229 X"$0" : 'X\(//\)$' \| \ 1230 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1231echo X"$0" | 1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1233 s//\1/ 1234 q 1235 } 1236 /^X\(\/\/\)[^/].*/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)$/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\).*/{ 1245 s//\1/ 1246 q 1247 } 1248 s/.*/./; q'` 1249 srcdir=$ac_confdir 1250 if test ! -r "$srcdir/$ac_unique_file"; then 1251 srcdir=.. 1252 fi 1253else 1254 ac_srcdir_defaulted=no 1255fi 1256if test ! -r "$srcdir/$ac_unique_file"; then 1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1258 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1259 { (exit 1); exit 1; }; } 1260fi 1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1262ac_abs_confdir=`( 1263 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1264 { (exit 1); exit 1; }; } 1265 pwd)` 1266# When building in place, set srcdir=. 1267if test "$ac_abs_confdir" = "$ac_pwd"; then 1268 srcdir=. 1269fi 1270# Remove unnecessary trailing slashes from srcdir. 1271# Double slashes in file names in object file debugging info 1272# mess up M-x gdb in Emacs. 1273case $srcdir in 1274*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1275esac 1276for ac_var in $ac_precious_vars; do 1277 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1278 eval ac_env_${ac_var}_value=\$${ac_var} 1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1281done 1282 1283# 1284# Report the --help message. 1285# 1286if test "$ac_init_help" = "long"; then 1287 # Omit some internal or obsolete options to make the list less imposing. 1288 # This message is too long to be a string in the A/UX 3.1 sh. 1289 cat <<_ACEOF 1290\`configure' configures this package to adapt to many kinds of systems. 1291 1292Usage: $0 [OPTION]... [VAR=VALUE]... 1293 1294To assign environment variables (e.g., CC, CFLAGS...), specify them as 1295VAR=VALUE. See below for descriptions of some of the useful variables. 1296 1297Defaults for the options are specified in brackets. 1298 1299Configuration: 1300 -h, --help display this help and exit 1301 --help=short display options specific to this package 1302 --help=recursive display the short help of all the included packages 1303 -V, --version display version information and exit 1304 -q, --quiet, --silent do not print \`checking...' messages 1305 --cache-file=FILE cache test results in FILE [disabled] 1306 -C, --config-cache alias for \`--cache-file=config.cache' 1307 -n, --no-create do not create output files 1308 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1309 1310Installation directories: 1311 --prefix=PREFIX install architecture-independent files in PREFIX 1312 [$ac_default_prefix] 1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1314 [PREFIX] 1315 1316By default, \`make install' will install all the files in 1317\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1318an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1319for instance \`--prefix=\$HOME'. 1320 1321For better control, use the options below. 1322 1323Fine tuning of the installation directories: 1324 --bindir=DIR user executables [EPREFIX/bin] 1325 --sbindir=DIR system admin executables [EPREFIX/sbin] 1326 --libexecdir=DIR program executables [EPREFIX/libexec] 1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1330 --libdir=DIR object code libraries [EPREFIX/lib] 1331 --includedir=DIR C header files [PREFIX/include] 1332 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1335 --infodir=DIR info documentation [DATAROOTDIR/info] 1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1337 --mandir=DIR man documentation [DATAROOTDIR/man] 1338 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1339 --htmldir=DIR html documentation [DOCDIR] 1340 --dvidir=DIR dvi documentation [DOCDIR] 1341 --pdfdir=DIR pdf documentation [DOCDIR] 1342 --psdir=DIR ps documentation [DOCDIR] 1343_ACEOF 1344 1345 cat <<\_ACEOF 1346 1347System types: 1348 --build=BUILD configure for building on BUILD [guessed] 1349 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1350_ACEOF 1351fi 1352 1353if test -n "$ac_init_help"; then 1354 1355 cat <<\_ACEOF 1356 1357Optional Features: 1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1360 --enable-maintainer-mode enable makefile rules useful for maintainers 1361 --enable-compression enable EXPERIMENTAL compression support 1362 --enable-htree enable EXPERIMENTAL htree directory support 1363 --enable-elf-shlibs select ELF shared libraries 1364 --enable-bsd-shlibs select BSD shared libraries 1365 --enable-profile build profiling libraries 1366 --enable-checker build checker libraries 1367 --enable-jbd-debug enable journal debugging 1368 --enable-blkid-debug enable blkid debugging 1369 --enable-testio-debug enable the use of the test I/O manager for debugging 1370 --disable-debugfs disable support of debugfs program 1371 --disable-imager disable support of e2image program 1372 --disable-resizer disable support of e2resize program 1373 --enable-dynamic-e2fsck build e2fsck dynamically 1374 --enable-fsck build fsck wrapper program 1375 --enable-e2initrd-helper build e2initrd-helper program 1376 --enable-blkid-devmapper build with device-mapper support 1377 --disable-nls do not use Native Language Support 1378 --disable-rpath do not hardcode runtime library paths 1379 1380Optional Packages: 1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1383 --with-diet-libc Use diet libc 1384 --with-cc=COMPILER select compiler to use 1385 --with-linker=LINKER select linker to use 1386 --with-ccopts=CCOPTS select compiler command line options 1387 --with-ldopts=LDOPTS select linker command line options 1388 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root 1389 --with-gnu-ld assume the C compiler uses GNU ld default=no 1390 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1391 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1392 --with-included-gettext use the GNU gettext library included here 1393 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1394 --without-libintl-prefix don't search for libintl in includedir and libdir 1395 1396Some influential environment variables: 1397 CC C compiler command 1398 CFLAGS C compiler flags 1399 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1400 nonstandard directory <lib dir> 1401 LIBS libraries to pass to the linker, e.g. -l<library> 1402 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1403 you have headers in a nonstandard directory <include dir> 1404 CPP C preprocessor 1405 1406Use these variables to override the choices made by `configure' or to help 1407it to find libraries and programs with nonstandard names/locations. 1408 1409_ACEOF 1410ac_status=$? 1411fi 1412 1413if test "$ac_init_help" = "recursive"; then 1414 # If there are subdirs, report their specific --help. 1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1416 test -d "$ac_dir" || continue 1417 ac_builddir=. 1418 1419case "$ac_dir" in 1420.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1421*) 1422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1423 # A ".." for each directory in $ac_dir_suffix. 1424 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1425 case $ac_top_builddir_sub in 1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1428 esac ;; 1429esac 1430ac_abs_top_builddir=$ac_pwd 1431ac_abs_builddir=$ac_pwd$ac_dir_suffix 1432# for backward compatibility: 1433ac_top_builddir=$ac_top_build_prefix 1434 1435case $srcdir in 1436 .) # We are building in place. 1437 ac_srcdir=. 1438 ac_top_srcdir=$ac_top_builddir_sub 1439 ac_abs_top_srcdir=$ac_pwd ;; 1440 [\\/]* | ?:[\\/]* ) # Absolute name. 1441 ac_srcdir=$srcdir$ac_dir_suffix; 1442 ac_top_srcdir=$srcdir 1443 ac_abs_top_srcdir=$srcdir ;; 1444 *) # Relative name. 1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1446 ac_top_srcdir=$ac_top_build_prefix$srcdir 1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1448esac 1449ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1450 1451 cd "$ac_dir" || { ac_status=$?; continue; } 1452 # Check for guested configure. 1453 if test -f "$ac_srcdir/configure.gnu"; then 1454 echo && 1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1456 elif test -f "$ac_srcdir/configure"; then 1457 echo && 1458 $SHELL "$ac_srcdir/configure" --help=recursive 1459 else 1460 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1461 fi || ac_status=$? 1462 cd "$ac_pwd" || { ac_status=$?; break; } 1463 done 1464fi 1465 1466test -n "$ac_init_help" && exit $ac_status 1467if $ac_init_version; then 1468 cat <<\_ACEOF 1469configure 1470generated by GNU Autoconf 2.61 1471 1472Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14732002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1474This configure script is free software; the Free Software Foundation 1475gives unlimited permission to copy, distribute and modify it. 1476_ACEOF 1477 exit 1478fi 1479cat >config.log <<_ACEOF 1480This file contains any messages produced by compilers while 1481running configure, to aid debugging if configure makes a mistake. 1482 1483It was created by $as_me, which was 1484generated by GNU Autoconf 2.61. Invocation command line was 1485 1486 $ $0 $@ 1487 1488_ACEOF 1489exec 5>>config.log 1490{ 1491cat <<_ASUNAME 1492## --------- ## 1493## Platform. ## 1494## --------- ## 1495 1496hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1497uname -m = `(uname -m) 2>/dev/null || echo unknown` 1498uname -r = `(uname -r) 2>/dev/null || echo unknown` 1499uname -s = `(uname -s) 2>/dev/null || echo unknown` 1500uname -v = `(uname -v) 2>/dev/null || echo unknown` 1501 1502/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1503/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1504 1505/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1506/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1507/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1508/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1509/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1510/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1511/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1512 1513_ASUNAME 1514 1515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1516for as_dir in $PATH 1517do 1518 IFS=$as_save_IFS 1519 test -z "$as_dir" && as_dir=. 1520 echo "PATH: $as_dir" 1521done 1522IFS=$as_save_IFS 1523 1524} >&5 1525 1526cat >&5 <<_ACEOF 1527 1528 1529## ----------- ## 1530## Core tests. ## 1531## ----------- ## 1532 1533_ACEOF 1534 1535 1536# Keep a trace of the command line. 1537# Strip out --no-create and --no-recursion so they do not pile up. 1538# Strip out --silent because we don't want to record it for future runs. 1539# Also quote any args containing shell meta-characters. 1540# Make two passes to allow for proper duplicate-argument suppression. 1541ac_configure_args= 1542ac_configure_args0= 1543ac_configure_args1= 1544ac_must_keep_next=false 1545for ac_pass in 1 2 1546do 1547 for ac_arg 1548 do 1549 case $ac_arg in 1550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1552 | -silent | --silent | --silen | --sile | --sil) 1553 continue ;; 1554 *\'*) 1555 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1556 esac 1557 case $ac_pass in 1558 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1559 2) 1560 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1561 if test $ac_must_keep_next = true; then 1562 ac_must_keep_next=false # Got value, back to normal. 1563 else 1564 case $ac_arg in 1565 *=* | --config-cache | -C | -disable-* | --disable-* \ 1566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1568 | -with-* | --with-* | -without-* | --without-* | --x) 1569 case "$ac_configure_args0 " in 1570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1571 esac 1572 ;; 1573 -* ) ac_must_keep_next=true ;; 1574 esac 1575 fi 1576 ac_configure_args="$ac_configure_args '$ac_arg'" 1577 ;; 1578 esac 1579 done 1580done 1581$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1582$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1583 1584# When interrupted or exit'd, cleanup temporary files, and complete 1585# config.log. We remove comments because anyway the quotes in there 1586# would cause problems or look ugly. 1587# WARNING: Use '\'' to represent an apostrophe within the trap. 1588# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1589trap 'exit_status=$? 1590 # Save into config.log some information that might help in debugging. 1591 { 1592 echo 1593 1594 cat <<\_ASBOX 1595## ---------------- ## 1596## Cache variables. ## 1597## ---------------- ## 1598_ASBOX 1599 echo 1600 # The following way of writing the cache mishandles newlines in values, 1601( 1602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1603 eval ac_val=\$$ac_var 1604 case $ac_val in #( 1605 *${as_nl}*) 1606 case $ac_var in #( 1607 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1608echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1609 esac 1610 case $ac_var in #( 1611 _ | IFS | as_nl) ;; #( 1612 *) $as_unset $ac_var ;; 1613 esac ;; 1614 esac 1615 done 1616 (set) 2>&1 | 1617 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1618 *${as_nl}ac_space=\ *) 1619 sed -n \ 1620 "s/'\''/'\''\\\\'\'''\''/g; 1621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1622 ;; #( 1623 *) 1624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1625 ;; 1626 esac | 1627 sort 1628) 1629 echo 1630 1631 cat <<\_ASBOX 1632## ----------------- ## 1633## Output variables. ## 1634## ----------------- ## 1635_ASBOX 1636 echo 1637 for ac_var in $ac_subst_vars 1638 do 1639 eval ac_val=\$$ac_var 1640 case $ac_val in 1641 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1642 esac 1643 echo "$ac_var='\''$ac_val'\''" 1644 done | sort 1645 echo 1646 1647 if test -n "$ac_subst_files"; then 1648 cat <<\_ASBOX 1649## ------------------- ## 1650## File substitutions. ## 1651## ------------------- ## 1652_ASBOX 1653 echo 1654 for ac_var in $ac_subst_files 1655 do 1656 eval ac_val=\$$ac_var 1657 case $ac_val in 1658 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1659 esac 1660 echo "$ac_var='\''$ac_val'\''" 1661 done | sort 1662 echo 1663 fi 1664 1665 if test -s confdefs.h; then 1666 cat <<\_ASBOX 1667## ----------- ## 1668## confdefs.h. ## 1669## ----------- ## 1670_ASBOX 1671 echo 1672 cat confdefs.h 1673 echo 1674 fi 1675 test "$ac_signal" != 0 && 1676 echo "$as_me: caught signal $ac_signal" 1677 echo "$as_me: exit $exit_status" 1678 } >&5 1679 rm -f core *.core core.conftest.* && 1680 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1681 exit $exit_status 1682' 0 1683for ac_signal in 1 2 13 15; do 1684 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1685done 1686ac_signal=0 1687 1688# confdefs.h avoids OS command line length limits that DEFS can exceed. 1689rm -f -r conftest* confdefs.h 1690 1691# Predefined preprocessor variables. 1692 1693cat >>confdefs.h <<_ACEOF 1694#define PACKAGE_NAME "$PACKAGE_NAME" 1695_ACEOF 1696 1697 1698cat >>confdefs.h <<_ACEOF 1699#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1700_ACEOF 1701 1702 1703cat >>confdefs.h <<_ACEOF 1704#define PACKAGE_VERSION "$PACKAGE_VERSION" 1705_ACEOF 1706 1707 1708cat >>confdefs.h <<_ACEOF 1709#define PACKAGE_STRING "$PACKAGE_STRING" 1710_ACEOF 1711 1712 1713cat >>confdefs.h <<_ACEOF 1714#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1715_ACEOF 1716 1717 1718# Let the site file select an alternate cache file if it wants to. 1719# Prefer explicitly selected file to automatically selected ones. 1720if test -n "$CONFIG_SITE"; then 1721 set x "$CONFIG_SITE" 1722elif test "x$prefix" != xNONE; then 1723 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1724else 1725 set x "$ac_default_prefix/share/config.site" \ 1726 "$ac_default_prefix/etc/config.site" 1727fi 1728shift 1729for ac_site_file 1730do 1731 if test -r "$ac_site_file"; then 1732 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1733echo "$as_me: loading site script $ac_site_file" >&6;} 1734 sed 's/^/| /' "$ac_site_file" >&5 1735 . "$ac_site_file" 1736 fi 1737done 1738 1739if test -r "$cache_file"; then 1740 # Some versions of bash will fail to source /dev/null (special 1741 # files actually), so we avoid doing that. 1742 if test -f "$cache_file"; then 1743 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1744echo "$as_me: loading cache $cache_file" >&6;} 1745 case $cache_file in 1746 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1747 *) . "./$cache_file";; 1748 esac 1749 fi 1750else 1751 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1752echo "$as_me: creating cache $cache_file" >&6;} 1753 >$cache_file 1754fi 1755 1756# Check that the precious variables saved in the cache have kept the same 1757# value. 1758ac_cache_corrupted=false 1759for ac_var in $ac_precious_vars; do 1760 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1761 eval ac_new_set=\$ac_env_${ac_var}_set 1762 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1763 eval ac_new_val=\$ac_env_${ac_var}_value 1764 case $ac_old_set,$ac_new_set in 1765 set,) 1766 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1767echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1768 ac_cache_corrupted=: ;; 1769 ,set) 1770 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1771echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1772 ac_cache_corrupted=: ;; 1773 ,);; 1774 *) 1775 if test "x$ac_old_val" != "x$ac_new_val"; then 1776 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1777echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1778 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1779echo "$as_me: former value: $ac_old_val" >&2;} 1780 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1781echo "$as_me: current value: $ac_new_val" >&2;} 1782 ac_cache_corrupted=: 1783 fi;; 1784 esac 1785 # Pass precious variables to config.status. 1786 if test "$ac_new_set" = set; then 1787 case $ac_new_val in 1788 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1789 *) ac_arg=$ac_var=$ac_new_val ;; 1790 esac 1791 case " $ac_configure_args " in 1792 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1793 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1794 esac 1795 fi 1796done 1797if $ac_cache_corrupted; then 1798 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1799echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1800 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1801echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1802 { (exit 1); exit 1; }; } 1803fi 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821ac_ext=c 1822ac_cpp='$CPP $CPPFLAGS' 1823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1825ac_compiler_gnu=$ac_cv_c_compiler_gnu 1826 1827 1828 1829ac_aux_dir= 1830for ac_dir in config "$srcdir"/config; do 1831 if test -f "$ac_dir/install-sh"; then 1832 ac_aux_dir=$ac_dir 1833 ac_install_sh="$ac_aux_dir/install-sh -c" 1834 break 1835 elif test -f "$ac_dir/install.sh"; then 1836 ac_aux_dir=$ac_dir 1837 ac_install_sh="$ac_aux_dir/install.sh -c" 1838 break 1839 elif test -f "$ac_dir/shtool"; then 1840 ac_aux_dir=$ac_dir 1841 ac_install_sh="$ac_aux_dir/shtool install -c" 1842 break 1843 fi 1844done 1845if test -z "$ac_aux_dir"; then 1846 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 1847echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} 1848 { (exit 1); exit 1; }; } 1849fi 1850 1851# These three variables are undocumented and unsupported, 1852# and are intended to be withdrawn in a future Autoconf release. 1853# They can cause serious problems if a builder's source tree is in a directory 1854# whose full name contains unusual characters. 1855ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1856ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1857ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1858 1859 1860MCONFIG=./MCONFIG 1861 1862BINARY_TYPE=bin 1863E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ 1864 | awk '{print $3}' | tr \" " " | awk '{print $1}'` 1865DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ 1866 | tr \" " "` 1867E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` 1868MONTH=`echo $DATE | awk -F- '{print $2}'` 1869YEAR=`echo $DATE | awk -F- '{print $3}'` 1870 1871if expr $YEAR ">" 1900 > /dev/null ; then 1872 E2FSPROGS_YEAR=$YEAR 1873elif expr $YEAR ">" 90 >/dev/null ; then 1874 E2FSPROGS_YEAR=19$YEAR 1875else 1876 E2FSPROGS_YEAR=20$YEAR 1877fi 1878 1879case $MONTH in 1880Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; 1881Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; 1882Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; 1883Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; 1884May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; 1885Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; 1886Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; 1887Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; 1888Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; 1889Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; 1890Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; 1891Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; 1892*) echo "Unknown month $MONTH??" ;; 1893esac 1894 1895base_ver=`echo $E2FSPROGS_VERSION | \ 1896 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` 1897pre_vers=`echo $base_ver 0.01 - p | dc` 1898 1899date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} 1900 1901case $E2FSPROGS_VERSION in 1902*-WIP|pre-*) 1903 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec" 1904 ;; 1905*) 1906 E2FSPROGS_PKGVER="$base_ver" 1907 ;; 1908esac 1909 1910unset DATE MONTH YEAR base_ver pre_vers date_spec 1911echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" 1912echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" 1913 1914 1915 1916 1917 1918# Make sure we can run config.sub. 1919$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1920 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1921echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1922 { (exit 1); exit 1; }; } 1923 1924{ echo "$as_me:$LINENO: checking build system type" >&5 1925echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1926if test "${ac_cv_build+set}" = set; then 1927 echo $ECHO_N "(cached) $ECHO_C" >&6 1928else 1929 ac_build_alias=$build_alias 1930test "x$ac_build_alias" = x && 1931 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1932test "x$ac_build_alias" = x && 1933 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1934echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1935 { (exit 1); exit 1; }; } 1936ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1938echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1939 { (exit 1); exit 1; }; } 1940 1941fi 1942{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1943echo "${ECHO_T}$ac_cv_build" >&6; } 1944case $ac_cv_build in 1945*-*-*) ;; 1946*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1947echo "$as_me: error: invalid value of canonical build" >&2;} 1948 { (exit 1); exit 1; }; };; 1949esac 1950build=$ac_cv_build 1951ac_save_IFS=$IFS; IFS='-' 1952set x $ac_cv_build 1953shift 1954build_cpu=$1 1955build_vendor=$2 1956shift; shift 1957# Remember, the first character of IFS is used to create $*, 1958# except with old shells: 1959build_os=$* 1960IFS=$ac_save_IFS 1961case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1962 1963 1964{ echo "$as_me:$LINENO: checking host system type" >&5 1965echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1966if test "${ac_cv_host+set}" = set; then 1967 echo $ECHO_N "(cached) $ECHO_C" >&6 1968else 1969 if test "x$host_alias" = x; then 1970 ac_cv_host=$ac_cv_build 1971else 1972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1973 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1974echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1975 { (exit 1); exit 1; }; } 1976fi 1977 1978fi 1979{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1980echo "${ECHO_T}$ac_cv_host" >&6; } 1981case $ac_cv_host in 1982*-*-*) ;; 1983*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1984echo "$as_me: error: invalid value of canonical host" >&2;} 1985 { (exit 1); exit 1; }; };; 1986esac 1987host=$ac_cv_host 1988ac_save_IFS=$IFS; IFS='-' 1989set x $ac_cv_host 1990shift 1991host_cpu=$1 1992host_vendor=$2 1993shift; shift 1994# Remember, the first character of IFS is used to create $*, 1995# except with old shells: 1996host_os=$* 1997IFS=$ac_save_IFS 1998case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1999 2000 2001 2002# Check whether --with-diet-libc was given. 2003if test "${with_diet_libc+set}" = set; then 2004 withval=$with_diet_libc; CC="diet cc -nostdinc" 2005{ echo "$as_me:$LINENO: result: CC=$CC" >&5 2006echo "${ECHO_T}CC=$CC" >&6; } 2007fi 2008 2009# Check whether --with-cc was given. 2010if test "${with_cc+set}" = set; then 2011 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 2012echo "${ECHO_T}CC=$withval" >&6; } 2013CC=$withval 2014else 2015 if test -z "$CC" ; then CC=cc; fi 2016{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 2017echo "${ECHO_T}CC defaults to $CC" >&6; } 2018fi 2019export CC 2020 2021ac_ext=c 2022ac_cpp='$CPP $CPPFLAGS' 2023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2025ac_compiler_gnu=$ac_cv_c_compiler_gnu 2026if test -n "$ac_tool_prefix"; then 2027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2028set dummy ${ac_tool_prefix}gcc; ac_word=$2 2029{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2031if test "${ac_cv_prog_CC+set}" = set; then 2032 echo $ECHO_N "(cached) $ECHO_C" >&6 2033else 2034 if test -n "$CC"; then 2035 ac_cv_prog_CC="$CC" # Let the user override the test. 2036else 2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2038for as_dir in $PATH 2039do 2040 IFS=$as_save_IFS 2041 test -z "$as_dir" && as_dir=. 2042 for ac_exec_ext in '' $ac_executable_extensions; do 2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2044 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2046 break 2 2047 fi 2048done 2049done 2050IFS=$as_save_IFS 2051 2052fi 2053fi 2054CC=$ac_cv_prog_CC 2055if test -n "$CC"; then 2056 { echo "$as_me:$LINENO: result: $CC" >&5 2057echo "${ECHO_T}$CC" >&6; } 2058else 2059 { echo "$as_me:$LINENO: result: no" >&5 2060echo "${ECHO_T}no" >&6; } 2061fi 2062 2063 2064fi 2065if test -z "$ac_cv_prog_CC"; then 2066 ac_ct_CC=$CC 2067 # Extract the first word of "gcc", so it can be a program name with args. 2068set dummy gcc; ac_word=$2 2069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2071if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2072 echo $ECHO_N "(cached) $ECHO_C" >&6 2073else 2074 if test -n "$ac_ct_CC"; then 2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2076else 2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2078for as_dir in $PATH 2079do 2080 IFS=$as_save_IFS 2081 test -z "$as_dir" && as_dir=. 2082 for ac_exec_ext in '' $ac_executable_extensions; do 2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2084 ac_cv_prog_ac_ct_CC="gcc" 2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2086 break 2 2087 fi 2088done 2089done 2090IFS=$as_save_IFS 2091 2092fi 2093fi 2094ac_ct_CC=$ac_cv_prog_ac_ct_CC 2095if test -n "$ac_ct_CC"; then 2096 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2097echo "${ECHO_T}$ac_ct_CC" >&6; } 2098else 2099 { echo "$as_me:$LINENO: result: no" >&5 2100echo "${ECHO_T}no" >&6; } 2101fi 2102 2103 if test "x$ac_ct_CC" = x; then 2104 CC="" 2105 else 2106 case $cross_compiling:$ac_tool_warned in 2107yes:) 2108{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2109whose name does not start with the host triplet. If you think this 2110configuration is useful to you, please write to autoconf@gnu.org." >&5 2111echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2112whose name does not start with the host triplet. If you think this 2113configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2114ac_tool_warned=yes ;; 2115esac 2116 CC=$ac_ct_CC 2117 fi 2118else 2119 CC="$ac_cv_prog_CC" 2120fi 2121 2122if test -z "$CC"; then 2123 if test -n "$ac_tool_prefix"; then 2124 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2125set dummy ${ac_tool_prefix}cc; ac_word=$2 2126{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2128if test "${ac_cv_prog_CC+set}" = set; then 2129 echo $ECHO_N "(cached) $ECHO_C" >&6 2130else 2131 if test -n "$CC"; then 2132 ac_cv_prog_CC="$CC" # Let the user override the test. 2133else 2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2135for as_dir in $PATH 2136do 2137 IFS=$as_save_IFS 2138 test -z "$as_dir" && as_dir=. 2139 for ac_exec_ext in '' $ac_executable_extensions; do 2140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2141 ac_cv_prog_CC="${ac_tool_prefix}cc" 2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2143 break 2 2144 fi 2145done 2146done 2147IFS=$as_save_IFS 2148 2149fi 2150fi 2151CC=$ac_cv_prog_CC 2152if test -n "$CC"; then 2153 { echo "$as_me:$LINENO: result: $CC" >&5 2154echo "${ECHO_T}$CC" >&6; } 2155else 2156 { echo "$as_me:$LINENO: result: no" >&5 2157echo "${ECHO_T}no" >&6; } 2158fi 2159 2160 2161 fi 2162fi 2163if test -z "$CC"; then 2164 # Extract the first word of "cc", so it can be a program name with args. 2165set dummy cc; ac_word=$2 2166{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2168if test "${ac_cv_prog_CC+set}" = set; then 2169 echo $ECHO_N "(cached) $ECHO_C" >&6 2170else 2171 if test -n "$CC"; then 2172 ac_cv_prog_CC="$CC" # Let the user override the test. 2173else 2174 ac_prog_rejected=no 2175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2176for as_dir in $PATH 2177do 2178 IFS=$as_save_IFS 2179 test -z "$as_dir" && as_dir=. 2180 for ac_exec_ext in '' $ac_executable_extensions; do 2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2183 ac_prog_rejected=yes 2184 continue 2185 fi 2186 ac_cv_prog_CC="cc" 2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2188 break 2 2189 fi 2190done 2191done 2192IFS=$as_save_IFS 2193 2194if test $ac_prog_rejected = yes; then 2195 # We found a bogon in the path, so make sure we never use it. 2196 set dummy $ac_cv_prog_CC 2197 shift 2198 if test $# != 0; then 2199 # We chose a different compiler from the bogus one. 2200 # However, it has the same basename, so the bogon will be chosen 2201 # first if we set CC to just the basename; use the full file name. 2202 shift 2203 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2204 fi 2205fi 2206fi 2207fi 2208CC=$ac_cv_prog_CC 2209if test -n "$CC"; then 2210 { echo "$as_me:$LINENO: result: $CC" >&5 2211echo "${ECHO_T}$CC" >&6; } 2212else 2213 { echo "$as_me:$LINENO: result: no" >&5 2214echo "${ECHO_T}no" >&6; } 2215fi 2216 2217 2218fi 2219if test -z "$CC"; then 2220 if test -n "$ac_tool_prefix"; then 2221 for ac_prog in cl.exe 2222 do 2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2224set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2225{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2227if test "${ac_cv_prog_CC+set}" = set; then 2228 echo $ECHO_N "(cached) $ECHO_C" >&6 2229else 2230 if test -n "$CC"; then 2231 ac_cv_prog_CC="$CC" # Let the user override the test. 2232else 2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2234for as_dir in $PATH 2235do 2236 IFS=$as_save_IFS 2237 test -z "$as_dir" && as_dir=. 2238 for ac_exec_ext in '' $ac_executable_extensions; do 2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2242 break 2 2243 fi 2244done 2245done 2246IFS=$as_save_IFS 2247 2248fi 2249fi 2250CC=$ac_cv_prog_CC 2251if test -n "$CC"; then 2252 { echo "$as_me:$LINENO: result: $CC" >&5 2253echo "${ECHO_T}$CC" >&6; } 2254else 2255 { echo "$as_me:$LINENO: result: no" >&5 2256echo "${ECHO_T}no" >&6; } 2257fi 2258 2259 2260 test -n "$CC" && break 2261 done 2262fi 2263if test -z "$CC"; then 2264 ac_ct_CC=$CC 2265 for ac_prog in cl.exe 2266do 2267 # Extract the first word of "$ac_prog", so it can be a program name with args. 2268set dummy $ac_prog; ac_word=$2 2269{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2272 echo $ECHO_N "(cached) $ECHO_C" >&6 2273else 2274 if test -n "$ac_ct_CC"; then 2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2276else 2277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2278for as_dir in $PATH 2279do 2280 IFS=$as_save_IFS 2281 test -z "$as_dir" && as_dir=. 2282 for ac_exec_ext in '' $ac_executable_extensions; do 2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2284 ac_cv_prog_ac_ct_CC="$ac_prog" 2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2286 break 2 2287 fi 2288done 2289done 2290IFS=$as_save_IFS 2291 2292fi 2293fi 2294ac_ct_CC=$ac_cv_prog_ac_ct_CC 2295if test -n "$ac_ct_CC"; then 2296 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2297echo "${ECHO_T}$ac_ct_CC" >&6; } 2298else 2299 { echo "$as_me:$LINENO: result: no" >&5 2300echo "${ECHO_T}no" >&6; } 2301fi 2302 2303 2304 test -n "$ac_ct_CC" && break 2305done 2306 2307 if test "x$ac_ct_CC" = x; then 2308 CC="" 2309 else 2310 case $cross_compiling:$ac_tool_warned in 2311yes:) 2312{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2313whose name does not start with the host triplet. If you think this 2314configuration is useful to you, please write to autoconf@gnu.org." >&5 2315echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2316whose name does not start with the host triplet. If you think this 2317configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2318ac_tool_warned=yes ;; 2319esac 2320 CC=$ac_ct_CC 2321 fi 2322fi 2323 2324fi 2325 2326 2327test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2328See \`config.log' for more details." >&5 2329echo "$as_me: error: no acceptable C compiler found in \$PATH 2330See \`config.log' for more details." >&2;} 2331 { (exit 1); exit 1; }; } 2332 2333# Provide some information about the compiler. 2334echo "$as_me:$LINENO: checking for C compiler version" >&5 2335ac_compiler=`set X $ac_compile; echo $2` 2336{ (ac_try="$ac_compiler --version >&5" 2337case "(($ac_try" in 2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2339 *) ac_try_echo=$ac_try;; 2340esac 2341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2342 (eval "$ac_compiler --version >&5") 2>&5 2343 ac_status=$? 2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2345 (exit $ac_status); } 2346{ (ac_try="$ac_compiler -v >&5" 2347case "(($ac_try" in 2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2349 *) ac_try_echo=$ac_try;; 2350esac 2351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2352 (eval "$ac_compiler -v >&5") 2>&5 2353 ac_status=$? 2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2355 (exit $ac_status); } 2356{ (ac_try="$ac_compiler -V >&5" 2357case "(($ac_try" in 2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2359 *) ac_try_echo=$ac_try;; 2360esac 2361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2362 (eval "$ac_compiler -V >&5") 2>&5 2363 ac_status=$? 2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2365 (exit $ac_status); } 2366 2367cat >conftest.$ac_ext <<_ACEOF 2368/* confdefs.h. */ 2369_ACEOF 2370cat confdefs.h >>conftest.$ac_ext 2371cat >>conftest.$ac_ext <<_ACEOF 2372/* end confdefs.h. */ 2373 2374int 2375main () 2376{ 2377 2378 ; 2379 return 0; 2380} 2381_ACEOF 2382ac_clean_files_save=$ac_clean_files 2383ac_clean_files="$ac_clean_files a.out a.exe b.out" 2384# Try to create an executable without -o first, disregard a.out. 2385# It will help us diagnose broken compilers, and finding out an intuition 2386# of exeext. 2387{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2388echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2389ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2390# 2391# List of possible output files, starting from the most likely. 2392# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2393# only as a last resort. b.out is created by i960 compilers. 2394ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2395# 2396# The IRIX 6 linker writes into existing files which may not be 2397# executable, retaining their permissions. Remove them first so a 2398# subsequent execution test works. 2399ac_rmfiles= 2400for ac_file in $ac_files 2401do 2402 case $ac_file in 2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2404 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2405 esac 2406done 2407rm -f $ac_rmfiles 2408 2409if { (ac_try="$ac_link_default" 2410case "(($ac_try" in 2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2412 *) ac_try_echo=$ac_try;; 2413esac 2414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2415 (eval "$ac_link_default") 2>&5 2416 ac_status=$? 2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2418 (exit $ac_status); }; then 2419 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2420# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2421# in a Makefile. We should not override ac_cv_exeext if it was cached, 2422# so that the user can short-circuit this test for compilers unknown to 2423# Autoconf. 2424for ac_file in $ac_files '' 2425do 2426 test -f "$ac_file" || continue 2427 case $ac_file in 2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2429 ;; 2430 [ab].out ) 2431 # We found the default executable, but exeext='' is most 2432 # certainly right. 2433 break;; 2434 *.* ) 2435 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2436 then :; else 2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2438 fi 2439 # We set ac_cv_exeext here because the later test for it is not 2440 # safe: cross compilers may not add the suffix if given an `-o' 2441 # argument, so we may need to know it at that point already. 2442 # Even if this section looks crufty: it has the advantage of 2443 # actually working. 2444 break;; 2445 * ) 2446 break;; 2447 esac 2448done 2449test "$ac_cv_exeext" = no && ac_cv_exeext= 2450 2451else 2452 ac_file='' 2453fi 2454 2455{ echo "$as_me:$LINENO: result: $ac_file" >&5 2456echo "${ECHO_T}$ac_file" >&6; } 2457if test -z "$ac_file"; then 2458 echo "$as_me: failed program was:" >&5 2459sed 's/^/| /' conftest.$ac_ext >&5 2460 2461{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2462See \`config.log' for more details." >&5 2463echo "$as_me: error: C compiler cannot create executables 2464See \`config.log' for more details." >&2;} 2465 { (exit 77); exit 77; }; } 2466fi 2467 2468ac_exeext=$ac_cv_exeext 2469 2470# Check that the compiler produces executables we can run. If not, either 2471# the compiler is broken, or we cross compile. 2472{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2473echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2474# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2475# If not cross compiling, check that we can run a simple program. 2476if test "$cross_compiling" != yes; then 2477 if { ac_try='./$ac_file' 2478 { (case "(($ac_try" in 2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2480 *) ac_try_echo=$ac_try;; 2481esac 2482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2483 (eval "$ac_try") 2>&5 2484 ac_status=$? 2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2486 (exit $ac_status); }; }; then 2487 cross_compiling=no 2488 else 2489 if test "$cross_compiling" = maybe; then 2490 cross_compiling=yes 2491 else 2492 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2493If you meant to cross compile, use \`--host'. 2494See \`config.log' for more details." >&5 2495echo "$as_me: error: cannot run C compiled programs. 2496If you meant to cross compile, use \`--host'. 2497See \`config.log' for more details." >&2;} 2498 { (exit 1); exit 1; }; } 2499 fi 2500 fi 2501fi 2502{ echo "$as_me:$LINENO: result: yes" >&5 2503echo "${ECHO_T}yes" >&6; } 2504 2505rm -f a.out a.exe conftest$ac_cv_exeext b.out 2506ac_clean_files=$ac_clean_files_save 2507# Check that the compiler produces executables we can run. If not, either 2508# the compiler is broken, or we cross compile. 2509{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2510echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2511{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2512echo "${ECHO_T}$cross_compiling" >&6; } 2513 2514{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2515echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2516if { (ac_try="$ac_link" 2517case "(($ac_try" in 2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2519 *) ac_try_echo=$ac_try;; 2520esac 2521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2522 (eval "$ac_link") 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); }; then 2526 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2527# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2528# work properly (i.e., refer to `conftest.exe'), while it won't with 2529# `rm'. 2530for ac_file in conftest.exe conftest conftest.*; do 2531 test -f "$ac_file" || continue 2532 case $ac_file in 2533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2535 break;; 2536 * ) break;; 2537 esac 2538done 2539else 2540 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2541See \`config.log' for more details." >&5 2542echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2543See \`config.log' for more details." >&2;} 2544 { (exit 1); exit 1; }; } 2545fi 2546 2547rm -f conftest$ac_cv_exeext 2548{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2549echo "${ECHO_T}$ac_cv_exeext" >&6; } 2550 2551rm -f conftest.$ac_ext 2552EXEEXT=$ac_cv_exeext 2553ac_exeext=$EXEEXT 2554{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2555echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2556if test "${ac_cv_objext+set}" = set; then 2557 echo $ECHO_N "(cached) $ECHO_C" >&6 2558else 2559 cat >conftest.$ac_ext <<_ACEOF 2560/* confdefs.h. */ 2561_ACEOF 2562cat confdefs.h >>conftest.$ac_ext 2563cat >>conftest.$ac_ext <<_ACEOF 2564/* end confdefs.h. */ 2565 2566int 2567main () 2568{ 2569 2570 ; 2571 return 0; 2572} 2573_ACEOF 2574rm -f conftest.o conftest.obj 2575if { (ac_try="$ac_compile" 2576case "(($ac_try" in 2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2578 *) ac_try_echo=$ac_try;; 2579esac 2580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2581 (eval "$ac_compile") 2>&5 2582 ac_status=$? 2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 (exit $ac_status); }; then 2585 for ac_file in conftest.o conftest.obj conftest.*; do 2586 test -f "$ac_file" || continue; 2587 case $ac_file in 2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2590 break;; 2591 esac 2592done 2593else 2594 echo "$as_me: failed program was:" >&5 2595sed 's/^/| /' conftest.$ac_ext >&5 2596 2597{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2598See \`config.log' for more details." >&5 2599echo "$as_me: error: cannot compute suffix of object files: cannot compile 2600See \`config.log' for more details." >&2;} 2601 { (exit 1); exit 1; }; } 2602fi 2603 2604rm -f conftest.$ac_cv_objext conftest.$ac_ext 2605fi 2606{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2607echo "${ECHO_T}$ac_cv_objext" >&6; } 2608OBJEXT=$ac_cv_objext 2609ac_objext=$OBJEXT 2610{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2611echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2612if test "${ac_cv_c_compiler_gnu+set}" = set; then 2613 echo $ECHO_N "(cached) $ECHO_C" >&6 2614else 2615 cat >conftest.$ac_ext <<_ACEOF 2616/* confdefs.h. */ 2617_ACEOF 2618cat confdefs.h >>conftest.$ac_ext 2619cat >>conftest.$ac_ext <<_ACEOF 2620/* end confdefs.h. */ 2621 2622int 2623main () 2624{ 2625#ifndef __GNUC__ 2626 choke me 2627#endif 2628 2629 ; 2630 return 0; 2631} 2632_ACEOF 2633rm -f conftest.$ac_objext 2634if { (ac_try="$ac_compile" 2635case "(($ac_try" in 2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2637 *) ac_try_echo=$ac_try;; 2638esac 2639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2640 (eval "$ac_compile") 2>conftest.er1 2641 ac_status=$? 2642 grep -v '^ *+' conftest.er1 >conftest.err 2643 rm -f conftest.er1 2644 cat conftest.err >&5 2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2646 (exit $ac_status); } && { 2647 test -z "$ac_c_werror_flag" || 2648 test ! -s conftest.err 2649 } && test -s conftest.$ac_objext; then 2650 ac_compiler_gnu=yes 2651else 2652 echo "$as_me: failed program was:" >&5 2653sed 's/^/| /' conftest.$ac_ext >&5 2654 2655 ac_compiler_gnu=no 2656fi 2657 2658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2659ac_cv_c_compiler_gnu=$ac_compiler_gnu 2660 2661fi 2662{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2663echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2664GCC=`test $ac_compiler_gnu = yes && echo yes` 2665ac_test_CFLAGS=${CFLAGS+set} 2666ac_save_CFLAGS=$CFLAGS 2667{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2668echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2669if test "${ac_cv_prog_cc_g+set}" = set; then 2670 echo $ECHO_N "(cached) $ECHO_C" >&6 2671else 2672 ac_save_c_werror_flag=$ac_c_werror_flag 2673 ac_c_werror_flag=yes 2674 ac_cv_prog_cc_g=no 2675 CFLAGS="-g" 2676 cat >conftest.$ac_ext <<_ACEOF 2677/* confdefs.h. */ 2678_ACEOF 2679cat confdefs.h >>conftest.$ac_ext 2680cat >>conftest.$ac_ext <<_ACEOF 2681/* end confdefs.h. */ 2682 2683int 2684main () 2685{ 2686 2687 ; 2688 return 0; 2689} 2690_ACEOF 2691rm -f conftest.$ac_objext 2692if { (ac_try="$ac_compile" 2693case "(($ac_try" in 2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2695 *) ac_try_echo=$ac_try;; 2696esac 2697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2698 (eval "$ac_compile") 2>conftest.er1 2699 ac_status=$? 2700 grep -v '^ *+' conftest.er1 >conftest.err 2701 rm -f conftest.er1 2702 cat conftest.err >&5 2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2704 (exit $ac_status); } && { 2705 test -z "$ac_c_werror_flag" || 2706 test ! -s conftest.err 2707 } && test -s conftest.$ac_objext; then 2708 ac_cv_prog_cc_g=yes 2709else 2710 echo "$as_me: failed program was:" >&5 2711sed 's/^/| /' conftest.$ac_ext >&5 2712 2713 CFLAGS="" 2714 cat >conftest.$ac_ext <<_ACEOF 2715/* confdefs.h. */ 2716_ACEOF 2717cat confdefs.h >>conftest.$ac_ext 2718cat >>conftest.$ac_ext <<_ACEOF 2719/* end confdefs.h. */ 2720 2721int 2722main () 2723{ 2724 2725 ; 2726 return 0; 2727} 2728_ACEOF 2729rm -f conftest.$ac_objext 2730if { (ac_try="$ac_compile" 2731case "(($ac_try" in 2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2733 *) ac_try_echo=$ac_try;; 2734esac 2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2736 (eval "$ac_compile") 2>conftest.er1 2737 ac_status=$? 2738 grep -v '^ *+' conftest.er1 >conftest.err 2739 rm -f conftest.er1 2740 cat conftest.err >&5 2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2742 (exit $ac_status); } && { 2743 test -z "$ac_c_werror_flag" || 2744 test ! -s conftest.err 2745 } && test -s conftest.$ac_objext; then 2746 : 2747else 2748 echo "$as_me: failed program was:" >&5 2749sed 's/^/| /' conftest.$ac_ext >&5 2750 2751 ac_c_werror_flag=$ac_save_c_werror_flag 2752 CFLAGS="-g" 2753 cat >conftest.$ac_ext <<_ACEOF 2754/* confdefs.h. */ 2755_ACEOF 2756cat confdefs.h >>conftest.$ac_ext 2757cat >>conftest.$ac_ext <<_ACEOF 2758/* end confdefs.h. */ 2759 2760int 2761main () 2762{ 2763 2764 ; 2765 return 0; 2766} 2767_ACEOF 2768rm -f conftest.$ac_objext 2769if { (ac_try="$ac_compile" 2770case "(($ac_try" in 2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2772 *) ac_try_echo=$ac_try;; 2773esac 2774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2775 (eval "$ac_compile") 2>conftest.er1 2776 ac_status=$? 2777 grep -v '^ *+' conftest.er1 >conftest.err 2778 rm -f conftest.er1 2779 cat conftest.err >&5 2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2781 (exit $ac_status); } && { 2782 test -z "$ac_c_werror_flag" || 2783 test ! -s conftest.err 2784 } && test -s conftest.$ac_objext; then 2785 ac_cv_prog_cc_g=yes 2786else 2787 echo "$as_me: failed program was:" >&5 2788sed 's/^/| /' conftest.$ac_ext >&5 2789 2790 2791fi 2792 2793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2794fi 2795 2796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2797fi 2798 2799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2800 ac_c_werror_flag=$ac_save_c_werror_flag 2801fi 2802{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2803echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2804if test "$ac_test_CFLAGS" = set; then 2805 CFLAGS=$ac_save_CFLAGS 2806elif test $ac_cv_prog_cc_g = yes; then 2807 if test "$GCC" = yes; then 2808 CFLAGS="-g -O2" 2809 else 2810 CFLAGS="-g" 2811 fi 2812else 2813 if test "$GCC" = yes; then 2814 CFLAGS="-O2" 2815 else 2816 CFLAGS= 2817 fi 2818fi 2819{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2820echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2821if test "${ac_cv_prog_cc_c89+set}" = set; then 2822 echo $ECHO_N "(cached) $ECHO_C" >&6 2823else 2824 ac_cv_prog_cc_c89=no 2825ac_save_CC=$CC 2826cat >conftest.$ac_ext <<_ACEOF 2827/* confdefs.h. */ 2828_ACEOF 2829cat confdefs.h >>conftest.$ac_ext 2830cat >>conftest.$ac_ext <<_ACEOF 2831/* end confdefs.h. */ 2832#include <stdarg.h> 2833#include <stdio.h> 2834#include <sys/types.h> 2835#include <sys/stat.h> 2836/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2837struct buf { int x; }; 2838FILE * (*rcsopen) (struct buf *, struct stat *, int); 2839static char *e (p, i) 2840 char **p; 2841 int i; 2842{ 2843 return p[i]; 2844} 2845static char *f (char * (*g) (char **, int), char **p, ...) 2846{ 2847 char *s; 2848 va_list v; 2849 va_start (v,p); 2850 s = g (p, va_arg (v,int)); 2851 va_end (v); 2852 return s; 2853} 2854 2855/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2856 function prototypes and stuff, but not '\xHH' hex character constants. 2857 These don't provoke an error unfortunately, instead are silently treated 2858 as 'x'. The following induces an error, until -std is added to get 2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2860 array size at least. It's necessary to write '\x00'==0 to get something 2861 that's true only with -std. */ 2862int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2863 2864/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2865 inside strings and character constants. */ 2866#define FOO(x) 'x' 2867int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2868 2869int test (int i, double x); 2870struct s1 {int (*f) (int a);}; 2871struct s2 {int (*f) (double a);}; 2872int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2873int argc; 2874char **argv; 2875int 2876main () 2877{ 2878return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2879 ; 2880 return 0; 2881} 2882_ACEOF 2883for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2885do 2886 CC="$ac_save_CC $ac_arg" 2887 rm -f conftest.$ac_objext 2888if { (ac_try="$ac_compile" 2889case "(($ac_try" in 2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2891 *) ac_try_echo=$ac_try;; 2892esac 2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2894 (eval "$ac_compile") 2>conftest.er1 2895 ac_status=$? 2896 grep -v '^ *+' conftest.er1 >conftest.err 2897 rm -f conftest.er1 2898 cat conftest.err >&5 2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2900 (exit $ac_status); } && { 2901 test -z "$ac_c_werror_flag" || 2902 test ! -s conftest.err 2903 } && test -s conftest.$ac_objext; then 2904 ac_cv_prog_cc_c89=$ac_arg 2905else 2906 echo "$as_me: failed program was:" >&5 2907sed 's/^/| /' conftest.$ac_ext >&5 2908 2909 2910fi 2911 2912rm -f core conftest.err conftest.$ac_objext 2913 test "x$ac_cv_prog_cc_c89" != "xno" && break 2914done 2915rm -f conftest.$ac_ext 2916CC=$ac_save_CC 2917 2918fi 2919# AC_CACHE_VAL 2920case "x$ac_cv_prog_cc_c89" in 2921 x) 2922 { echo "$as_me:$LINENO: result: none needed" >&5 2923echo "${ECHO_T}none needed" >&6; } ;; 2924 xno) 2925 { echo "$as_me:$LINENO: result: unsupported" >&5 2926echo "${ECHO_T}unsupported" >&6; } ;; 2927 *) 2928 CC="$CC $ac_cv_prog_cc_c89" 2929 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2930echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2931esac 2932 2933 2934ac_ext=c 2935ac_cpp='$CPP $CPPFLAGS' 2936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2938ac_compiler_gnu=$ac_cv_c_compiler_gnu 2939 2940ac_ext=c 2941ac_cpp='$CPP $CPPFLAGS' 2942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2944ac_compiler_gnu=$ac_cv_c_compiler_gnu 2945{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2946echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 2947# On Suns, sometimes $CPP names a directory. 2948if test -n "$CPP" && test -d "$CPP"; then 2949 CPP= 2950fi 2951if test -z "$CPP"; then 2952 if test "${ac_cv_prog_CPP+set}" = set; then 2953 echo $ECHO_N "(cached) $ECHO_C" >&6 2954else 2955 # Double quotes because CPP needs to be expanded 2956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2957 do 2958 ac_preproc_ok=false 2959for ac_c_preproc_warn_flag in '' yes 2960do 2961 # Use a header file that comes with gcc, so configuring glibc 2962 # with a fresh cross-compiler works. 2963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2964 # <limits.h> exists even on freestanding compilers. 2965 # On the NeXT, cc -E runs the code through the compiler's parser, 2966 # not just through cpp. "Syntax error" is here to catch this case. 2967 cat >conftest.$ac_ext <<_ACEOF 2968/* confdefs.h. */ 2969_ACEOF 2970cat confdefs.h >>conftest.$ac_ext 2971cat >>conftest.$ac_ext <<_ACEOF 2972/* end confdefs.h. */ 2973#ifdef __STDC__ 2974# include <limits.h> 2975#else 2976# include <assert.h> 2977#endif 2978 Syntax error 2979_ACEOF 2980if { (ac_try="$ac_cpp conftest.$ac_ext" 2981case "(($ac_try" in 2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2983 *) ac_try_echo=$ac_try;; 2984esac 2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2987 ac_status=$? 2988 grep -v '^ *+' conftest.er1 >conftest.err 2989 rm -f conftest.er1 2990 cat conftest.err >&5 2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2992 (exit $ac_status); } >/dev/null && { 2993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2994 test ! -s conftest.err 2995 }; then 2996 : 2997else 2998 echo "$as_me: failed program was:" >&5 2999sed 's/^/| /' conftest.$ac_ext >&5 3000 3001 # Broken: fails on valid input. 3002continue 3003fi 3004 3005rm -f conftest.err conftest.$ac_ext 3006 3007 # OK, works on sane cases. Now check whether nonexistent headers 3008 # can be detected and how. 3009 cat >conftest.$ac_ext <<_ACEOF 3010/* confdefs.h. */ 3011_ACEOF 3012cat confdefs.h >>conftest.$ac_ext 3013cat >>conftest.$ac_ext <<_ACEOF 3014/* end confdefs.h. */ 3015#include <ac_nonexistent.h> 3016_ACEOF 3017if { (ac_try="$ac_cpp conftest.$ac_ext" 3018case "(($ac_try" in 3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3020 *) ac_try_echo=$ac_try;; 3021esac 3022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3024 ac_status=$? 3025 grep -v '^ *+' conftest.er1 >conftest.err 3026 rm -f conftest.er1 3027 cat conftest.err >&5 3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3029 (exit $ac_status); } >/dev/null && { 3030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3031 test ! -s conftest.err 3032 }; then 3033 # Broken: success on invalid input. 3034continue 3035else 3036 echo "$as_me: failed program was:" >&5 3037sed 's/^/| /' conftest.$ac_ext >&5 3038 3039 # Passes both tests. 3040ac_preproc_ok=: 3041break 3042fi 3043 3044rm -f conftest.err conftest.$ac_ext 3045 3046done 3047# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3048rm -f conftest.err conftest.$ac_ext 3049if $ac_preproc_ok; then 3050 break 3051fi 3052 3053 done 3054 ac_cv_prog_CPP=$CPP 3055 3056fi 3057 CPP=$ac_cv_prog_CPP 3058else 3059 ac_cv_prog_CPP=$CPP 3060fi 3061{ echo "$as_me:$LINENO: result: $CPP" >&5 3062echo "${ECHO_T}$CPP" >&6; } 3063ac_preproc_ok=false 3064for ac_c_preproc_warn_flag in '' yes 3065do 3066 # Use a header file that comes with gcc, so configuring glibc 3067 # with a fresh cross-compiler works. 3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3069 # <limits.h> exists even on freestanding compilers. 3070 # On the NeXT, cc -E runs the code through the compiler's parser, 3071 # not just through cpp. "Syntax error" is here to catch this case. 3072 cat >conftest.$ac_ext <<_ACEOF 3073/* confdefs.h. */ 3074_ACEOF 3075cat confdefs.h >>conftest.$ac_ext 3076cat >>conftest.$ac_ext <<_ACEOF 3077/* end confdefs.h. */ 3078#ifdef __STDC__ 3079# include <limits.h> 3080#else 3081# include <assert.h> 3082#endif 3083 Syntax error 3084_ACEOF 3085if { (ac_try="$ac_cpp conftest.$ac_ext" 3086case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3092 ac_status=$? 3093 grep -v '^ *+' conftest.er1 >conftest.err 3094 rm -f conftest.er1 3095 cat conftest.err >&5 3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3097 (exit $ac_status); } >/dev/null && { 3098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3099 test ! -s conftest.err 3100 }; then 3101 : 3102else 3103 echo "$as_me: failed program was:" >&5 3104sed 's/^/| /' conftest.$ac_ext >&5 3105 3106 # Broken: fails on valid input. 3107continue 3108fi 3109 3110rm -f conftest.err conftest.$ac_ext 3111 3112 # OK, works on sane cases. Now check whether nonexistent headers 3113 # can be detected and how. 3114 cat >conftest.$ac_ext <<_ACEOF 3115/* confdefs.h. */ 3116_ACEOF 3117cat confdefs.h >>conftest.$ac_ext 3118cat >>conftest.$ac_ext <<_ACEOF 3119/* end confdefs.h. */ 3120#include <ac_nonexistent.h> 3121_ACEOF 3122if { (ac_try="$ac_cpp conftest.$ac_ext" 3123case "(($ac_try" in 3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3125 *) ac_try_echo=$ac_try;; 3126esac 3127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3129 ac_status=$? 3130 grep -v '^ *+' conftest.er1 >conftest.err 3131 rm -f conftest.er1 3132 cat conftest.err >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3134 (exit $ac_status); } >/dev/null && { 3135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3136 test ! -s conftest.err 3137 }; then 3138 # Broken: success on invalid input. 3139continue 3140else 3141 echo "$as_me: failed program was:" >&5 3142sed 's/^/| /' conftest.$ac_ext >&5 3143 3144 # Passes both tests. 3145ac_preproc_ok=: 3146break 3147fi 3148 3149rm -f conftest.err conftest.$ac_ext 3150 3151done 3152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3153rm -f conftest.err conftest.$ac_ext 3154if $ac_preproc_ok; then 3155 : 3156else 3157 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3158See \`config.log' for more details." >&5 3159echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3160See \`config.log' for more details." >&2;} 3161 { (exit 1); exit 1; }; } 3162fi 3163 3164ac_ext=c 3165ac_cpp='$CPP $CPPFLAGS' 3166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3168ac_compiler_gnu=$ac_cv_c_compiler_gnu 3169 3170 3171# Check whether --with-linker was given. 3172if test "${with_linker+set}" = set; then 3173 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 3174echo "${ECHO_T}LD=$withval" >&6; } 3175LD=$withval 3176else 3177 if test -z "$LD" ; then LD=$CC; fi 3178{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 3179echo "${ECHO_T}LD defaults to $LD" >&6; } 3180fi 3181export LD 3182 3183 3184# Check whether --with-ccopts was given. 3185if test "${with_ccopts+set}" = set; then 3186 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 3187echo "${ECHO_T}CCOPTS is $withval" >&6; } 3188CFLAGS=$withval 3189fi 3190 3191 3192{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3193echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3194if test "${ac_cv_path_GREP+set}" = set; then 3195 echo $ECHO_N "(cached) $ECHO_C" >&6 3196else 3197 # Extract the first word of "grep ggrep" to use in msg output 3198if test -z "$GREP"; then 3199set dummy grep ggrep; ac_prog_name=$2 3200if test "${ac_cv_path_GREP+set}" = set; then 3201 echo $ECHO_N "(cached) $ECHO_C" >&6 3202else 3203 ac_path_GREP_found=false 3204# Loop through the user's path and test for each of PROGNAME-LIST 3205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3206for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3207do 3208 IFS=$as_save_IFS 3209 test -z "$as_dir" && as_dir=. 3210 for ac_prog in grep ggrep; do 3211 for ac_exec_ext in '' $ac_executable_extensions; do 3212 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3213 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3214 # Check for GNU ac_path_GREP and select it if it is found. 3215 # Check for GNU $ac_path_GREP 3216case `"$ac_path_GREP" --version 2>&1` in 3217*GNU*) 3218 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3219*) 3220 ac_count=0 3221 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3222 while : 3223 do 3224 cat "conftest.in" "conftest.in" >"conftest.tmp" 3225 mv "conftest.tmp" "conftest.in" 3226 cp "conftest.in" "conftest.nl" 3227 echo 'GREP' >> "conftest.nl" 3228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3230 ac_count=`expr $ac_count + 1` 3231 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3232 # Best one so far, save it but keep looking for a better one 3233 ac_cv_path_GREP="$ac_path_GREP" 3234 ac_path_GREP_max=$ac_count 3235 fi 3236 # 10*(2^10) chars as input seems more than enough 3237 test $ac_count -gt 10 && break 3238 done 3239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3240esac 3241 3242 3243 $ac_path_GREP_found && break 3 3244 done 3245done 3246 3247done 3248IFS=$as_save_IFS 3249 3250 3251fi 3252 3253GREP="$ac_cv_path_GREP" 3254if test -z "$GREP"; then 3255 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3256echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3257 { (exit 1); exit 1; }; } 3258fi 3259 3260else 3261 ac_cv_path_GREP=$GREP 3262fi 3263 3264 3265fi 3266{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3267echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3268 GREP="$ac_cv_path_GREP" 3269 3270 3271{ echo "$as_me:$LINENO: checking for egrep" >&5 3272echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3273if test "${ac_cv_path_EGREP+set}" = set; then 3274 echo $ECHO_N "(cached) $ECHO_C" >&6 3275else 3276 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3277 then ac_cv_path_EGREP="$GREP -E" 3278 else 3279 # Extract the first word of "egrep" to use in msg output 3280if test -z "$EGREP"; then 3281set dummy egrep; ac_prog_name=$2 3282if test "${ac_cv_path_EGREP+set}" = set; then 3283 echo $ECHO_N "(cached) $ECHO_C" >&6 3284else 3285 ac_path_EGREP_found=false 3286# Loop through the user's path and test for each of PROGNAME-LIST 3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3288for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3289do 3290 IFS=$as_save_IFS 3291 test -z "$as_dir" && as_dir=. 3292 for ac_prog in egrep; do 3293 for ac_exec_ext in '' $ac_executable_extensions; do 3294 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3295 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3296 # Check for GNU ac_path_EGREP and select it if it is found. 3297 # Check for GNU $ac_path_EGREP 3298case `"$ac_path_EGREP" --version 2>&1` in 3299*GNU*) 3300 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3301*) 3302 ac_count=0 3303 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3304 while : 3305 do 3306 cat "conftest.in" "conftest.in" >"conftest.tmp" 3307 mv "conftest.tmp" "conftest.in" 3308 cp "conftest.in" "conftest.nl" 3309 echo 'EGREP' >> "conftest.nl" 3310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3312 ac_count=`expr $ac_count + 1` 3313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3314 # Best one so far, save it but keep looking for a better one 3315 ac_cv_path_EGREP="$ac_path_EGREP" 3316 ac_path_EGREP_max=$ac_count 3317 fi 3318 # 10*(2^10) chars as input seems more than enough 3319 test $ac_count -gt 10 && break 3320 done 3321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3322esac 3323 3324 3325 $ac_path_EGREP_found && break 3 3326 done 3327done 3328 3329done 3330IFS=$as_save_IFS 3331 3332 3333fi 3334 3335EGREP="$ac_cv_path_EGREP" 3336if test -z "$EGREP"; then 3337 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3338echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3339 { (exit 1); exit 1; }; } 3340fi 3341 3342else 3343 ac_cv_path_EGREP=$EGREP 3344fi 3345 3346 3347 fi 3348fi 3349{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3350echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3351 EGREP="$ac_cv_path_EGREP" 3352 3353 3354{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3355echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3356if test "${ac_cv_header_stdc+set}" = set; then 3357 echo $ECHO_N "(cached) $ECHO_C" >&6 3358else 3359 cat >conftest.$ac_ext <<_ACEOF 3360/* confdefs.h. */ 3361_ACEOF 3362cat confdefs.h >>conftest.$ac_ext 3363cat >>conftest.$ac_ext <<_ACEOF 3364/* end confdefs.h. */ 3365#include <stdlib.h> 3366#include <stdarg.h> 3367#include <string.h> 3368#include <float.h> 3369 3370int 3371main () 3372{ 3373 3374 ; 3375 return 0; 3376} 3377_ACEOF 3378rm -f conftest.$ac_objext 3379if { (ac_try="$ac_compile" 3380case "(($ac_try" in 3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3382 *) ac_try_echo=$ac_try;; 3383esac 3384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3385 (eval "$ac_compile") 2>conftest.er1 3386 ac_status=$? 3387 grep -v '^ *+' conftest.er1 >conftest.err 3388 rm -f conftest.er1 3389 cat conftest.err >&5 3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3391 (exit $ac_status); } && { 3392 test -z "$ac_c_werror_flag" || 3393 test ! -s conftest.err 3394 } && test -s conftest.$ac_objext; then 3395 ac_cv_header_stdc=yes 3396else 3397 echo "$as_me: failed program was:" >&5 3398sed 's/^/| /' conftest.$ac_ext >&5 3399 3400 ac_cv_header_stdc=no 3401fi 3402 3403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3404 3405if test $ac_cv_header_stdc = yes; then 3406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3407 cat >conftest.$ac_ext <<_ACEOF 3408/* confdefs.h. */ 3409_ACEOF 3410cat confdefs.h >>conftest.$ac_ext 3411cat >>conftest.$ac_ext <<_ACEOF 3412/* end confdefs.h. */ 3413#include <string.h> 3414 3415_ACEOF 3416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3417 $EGREP "memchr" >/dev/null 2>&1; then 3418 : 3419else 3420 ac_cv_header_stdc=no 3421fi 3422rm -f conftest* 3423 3424fi 3425 3426if test $ac_cv_header_stdc = yes; then 3427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3428 cat >conftest.$ac_ext <<_ACEOF 3429/* confdefs.h. */ 3430_ACEOF 3431cat confdefs.h >>conftest.$ac_ext 3432cat >>conftest.$ac_ext <<_ACEOF 3433/* end confdefs.h. */ 3434#include <stdlib.h> 3435 3436_ACEOF 3437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3438 $EGREP "free" >/dev/null 2>&1; then 3439 : 3440else 3441 ac_cv_header_stdc=no 3442fi 3443rm -f conftest* 3444 3445fi 3446 3447if test $ac_cv_header_stdc = yes; then 3448 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3449 if test "$cross_compiling" = yes; then 3450 : 3451else 3452 cat >conftest.$ac_ext <<_ACEOF 3453/* confdefs.h. */ 3454_ACEOF 3455cat confdefs.h >>conftest.$ac_ext 3456cat >>conftest.$ac_ext <<_ACEOF 3457/* end confdefs.h. */ 3458#include <ctype.h> 3459#include <stdlib.h> 3460#if ((' ' & 0x0FF) == 0x020) 3461# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3462# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3463#else 3464# define ISLOWER(c) \ 3465 (('a' <= (c) && (c) <= 'i') \ 3466 || ('j' <= (c) && (c) <= 'r') \ 3467 || ('s' <= (c) && (c) <= 'z')) 3468# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3469#endif 3470 3471#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3472int 3473main () 3474{ 3475 int i; 3476 for (i = 0; i < 256; i++) 3477 if (XOR (islower (i), ISLOWER (i)) 3478 || toupper (i) != TOUPPER (i)) 3479 return 2; 3480 return 0; 3481} 3482_ACEOF 3483rm -f conftest$ac_exeext 3484if { (ac_try="$ac_link" 3485case "(($ac_try" in 3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3487 *) ac_try_echo=$ac_try;; 3488esac 3489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3490 (eval "$ac_link") 2>&5 3491 ac_status=$? 3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3494 { (case "(($ac_try" in 3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3496 *) ac_try_echo=$ac_try;; 3497esac 3498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3499 (eval "$ac_try") 2>&5 3500 ac_status=$? 3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3502 (exit $ac_status); }; }; then 3503 : 3504else 3505 echo "$as_me: program exited with status $ac_status" >&5 3506echo "$as_me: failed program was:" >&5 3507sed 's/^/| /' conftest.$ac_ext >&5 3508 3509( exit $ac_status ) 3510ac_cv_header_stdc=no 3511fi 3512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3513fi 3514 3515 3516fi 3517fi 3518{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3519echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3520if test $ac_cv_header_stdc = yes; then 3521 3522cat >>confdefs.h <<\_ACEOF 3523#define STDC_HEADERS 1 3524_ACEOF 3525 3526fi 3527 3528# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3539 inttypes.h stdint.h unistd.h 3540do 3541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3542{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3544if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3545 echo $ECHO_N "(cached) $ECHO_C" >&6 3546else 3547 cat >conftest.$ac_ext <<_ACEOF 3548/* confdefs.h. */ 3549_ACEOF 3550cat confdefs.h >>conftest.$ac_ext 3551cat >>conftest.$ac_ext <<_ACEOF 3552/* end confdefs.h. */ 3553$ac_includes_default 3554 3555#include <$ac_header> 3556_ACEOF 3557rm -f conftest.$ac_objext 3558if { (ac_try="$ac_compile" 3559case "(($ac_try" in 3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3561 *) ac_try_echo=$ac_try;; 3562esac 3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3564 (eval "$ac_compile") 2>conftest.er1 3565 ac_status=$? 3566 grep -v '^ *+' conftest.er1 >conftest.err 3567 rm -f conftest.er1 3568 cat conftest.err >&5 3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3570 (exit $ac_status); } && { 3571 test -z "$ac_c_werror_flag" || 3572 test ! -s conftest.err 3573 } && test -s conftest.$ac_objext; then 3574 eval "$as_ac_Header=yes" 3575else 3576 echo "$as_me: failed program was:" >&5 3577sed 's/^/| /' conftest.$ac_ext >&5 3578 3579 eval "$as_ac_Header=no" 3580fi 3581 3582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3583fi 3584ac_res=`eval echo '${'$as_ac_Header'}'` 3585 { echo "$as_me:$LINENO: result: $ac_res" >&5 3586echo "${ECHO_T}$ac_res" >&6; } 3587if test `eval echo '${'$as_ac_Header'}'` = yes; then 3588 cat >>confdefs.h <<_ACEOF 3589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3590_ACEOF 3591 3592fi 3593 3594done 3595 3596 3597if test "${ac_cv_header_linux_fs_h+set}" = set; then 3598 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 3599echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } 3600if test "${ac_cv_header_linux_fs_h+set}" = set; then 3601 echo $ECHO_N "(cached) $ECHO_C" >&6 3602fi 3603{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 3604echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } 3605else 3606 # Is the header compilable? 3607{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 3608echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } 3609cat >conftest.$ac_ext <<_ACEOF 3610/* confdefs.h. */ 3611_ACEOF 3612cat confdefs.h >>conftest.$ac_ext 3613cat >>conftest.$ac_ext <<_ACEOF 3614/* end confdefs.h. */ 3615$ac_includes_default 3616#include <linux/fs.h> 3617_ACEOF 3618rm -f conftest.$ac_objext 3619if { (ac_try="$ac_compile" 3620case "(($ac_try" in 3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3622 *) ac_try_echo=$ac_try;; 3623esac 3624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3625 (eval "$ac_compile") 2>conftest.er1 3626 ac_status=$? 3627 grep -v '^ *+' conftest.er1 >conftest.err 3628 rm -f conftest.er1 3629 cat conftest.err >&5 3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3631 (exit $ac_status); } && { 3632 test -z "$ac_c_werror_flag" || 3633 test ! -s conftest.err 3634 } && test -s conftest.$ac_objext; then 3635 ac_header_compiler=yes 3636else 3637 echo "$as_me: failed program was:" >&5 3638sed 's/^/| /' conftest.$ac_ext >&5 3639 3640 ac_header_compiler=no 3641fi 3642 3643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3644{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3645echo "${ECHO_T}$ac_header_compiler" >&6; } 3646 3647# Is the header present? 3648{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 3649echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } 3650cat >conftest.$ac_ext <<_ACEOF 3651/* confdefs.h. */ 3652_ACEOF 3653cat confdefs.h >>conftest.$ac_ext 3654cat >>conftest.$ac_ext <<_ACEOF 3655/* end confdefs.h. */ 3656#include <linux/fs.h> 3657_ACEOF 3658if { (ac_try="$ac_cpp conftest.$ac_ext" 3659case "(($ac_try" in 3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3661 *) ac_try_echo=$ac_try;; 3662esac 3663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3665 ac_status=$? 3666 grep -v '^ *+' conftest.er1 >conftest.err 3667 rm -f conftest.er1 3668 cat conftest.err >&5 3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3670 (exit $ac_status); } >/dev/null && { 3671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3672 test ! -s conftest.err 3673 }; then 3674 ac_header_preproc=yes 3675else 3676 echo "$as_me: failed program was:" >&5 3677sed 's/^/| /' conftest.$ac_ext >&5 3678 3679 ac_header_preproc=no 3680fi 3681 3682rm -f conftest.err conftest.$ac_ext 3683{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3684echo "${ECHO_T}$ac_header_preproc" >&6; } 3685 3686# So? What about this header? 3687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3688 yes:no: ) 3689 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 3690echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3691 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 3692echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} 3693 ac_header_preproc=yes 3694 ;; 3695 no:yes:* ) 3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 3697echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} 3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 3699echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} 3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 3701echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} 3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 3703echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} 3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 3705echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} 3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 3707echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} 3708 3709 ;; 3710esac 3711{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5 3712echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } 3713if test "${ac_cv_header_linux_fs_h+set}" = set; then 3714 echo $ECHO_N "(cached) $ECHO_C" >&6 3715else 3716 ac_cv_header_linux_fs_h=$ac_header_preproc 3717fi 3718{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 3719echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } 3720 3721fi 3722if test $ac_cv_header_linux_fs_h = yes; then 3723 linux_headers=yes 3724else 3725 linux_headers=no 3726fi 3727 3728 3729if test "$linux_headers" != yes; then 3730 LINUX_INCLUDE='-I$(top_builddir)/include' 3731fi 3732 3733{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 3734echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } 3735if test "$GCC" = yes 3736then 3737 case "$host_cpu" in 3738 alpha) addcflags="-mieee" ;; 3739 esac 3740fi 3741if test "x$addcflags" != x 3742then 3743 { echo "$as_me:$LINENO: result: $addcflags" >&5 3744echo "${ECHO_T}$addcflags" >&6; } 3745 CFLAGS="$addcflags $CFLAGS" 3746else 3747 { echo "$as_me:$LINENO: result: (none)" >&5 3748echo "${ECHO_T}(none)" >&6; } 3749fi 3750LIB_EXT=.a 3751STATIC_LIB_EXT=.a 3752PROFILE_LIB_EXT=.a 3753 3754# Check whether --with-ldopts was given. 3755if test "${with_ldopts+set}" = set; then 3756 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 3757echo "${ECHO_T}LDFLAGS is $withval" >&6; } 3758LDFLAGS=$withval 3759else 3760 LDFLAGS= 3761fi 3762 3763 3764# Check whether --with-root-prefix was given. 3765if test "${with_root_prefix+set}" = set; then 3766 withval=$with_root_prefix; root_prefix=$withval 3767else 3768 root_prefix=NONE 3769fi 3770# Check whether --enable-maintainer-mode was given. 3771if test "${enable_maintainer_mode+set}" = set; then 3772 enableval=$enable_maintainer_mode; if test "$enableval" = "no" 3773then 3774 MAINTAINER_CMT=# 3775 echo "Disabling maintainer mode" 3776else 3777 MAINTAINER_CMT= 3778 echo "Enabling maintainer mode" 3779fi 3780 3781else 3782 MAINTAINER_CMT=# 3783echo "Disabling maintainer mode by default" 3784 3785fi 3786 3787 3788# Check whether --enable-compression was given. 3789if test "${enable_compression+set}" = set; then 3790 enableval=$enable_compression; if test "$enableval" = "no" 3791then 3792 echo "Disabling compression support" 3793else 3794 cat >>confdefs.h <<\_ACEOF 3795#define ENABLE_COMPRESSION 1 3796_ACEOF 3797 3798 echo "Enabling compression support" 3799 echo "WARNING: Compression support is experimental" 3800fi 3801 3802else 3803 echo "Disabling compression support by default" 3804 3805fi 3806 3807# Check whether --enable-htree was given. 3808if test "${enable_htree+set}" = set; then 3809 enableval=$enable_htree; if test "$enableval" = "no" 3810then 3811 HTREE_CMT=# 3812 echo "Disabling htree directory support" 3813else 3814 HTREE_CMT= 3815 cat >>confdefs.h <<\_ACEOF 3816#define ENABLE_HTREE 1 3817_ACEOF 3818 3819 echo "Enabling htree directory support" 3820fi 3821 3822else 3823 HTREE_CMT= 3824cat >>confdefs.h <<\_ACEOF 3825#define ENABLE_HTREE 1 3826_ACEOF 3827 3828echo "Enabling htree directory support by default" 3829 3830fi 3831 3832 3833# Check whether --enable-elf-shlibs was given. 3834if test "${enable_elf_shlibs+set}" = set; then 3835 enableval=$enable_elf_shlibs; if test "$enableval" = "no" 3836then 3837 ELF_CMT=# 3838 MAKEFILE_ELF=/dev/null 3839 echo "Disabling ELF shared libraries" 3840else 3841 ELF_CMT= 3842 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib 3843 case "$host_os" in 3844 solaris2.*) 3845 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib 3846 ;; 3847 esac 3848 BINARY_TYPE=elfbin 3849 LIB_EXT=.so 3850 echo "Enabling ELF shared libraries" 3851fi 3852 3853else 3854 MAKEFILE_ELF=/dev/null 3855ELF_CMT=# 3856echo "Disabling ELF shared libraries by default" 3857 3858fi 3859 3860 3861 3862# Check whether --enable-bsd-shlibs was given. 3863if test "${enable_bsd_shlibs+set}" = set; then 3864 enableval=$enable_bsd_shlibs; if test "$enableval" = "no" 3865then 3866 BSDLIB_CMT=# 3867 MAKEFILE_BSDLIB=/dev/null 3868 echo "Disabling BSD shared libraries" 3869else 3870 BSDLIB_CMT= 3871 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib 3872 LIB_EXT=.so 3873 case "$host_os" in 3874 darwin*) 3875 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib 3876 LIB_EXT=.dylib 3877 ;; 3878 esac 3879 echo "Enabling BSD shared libraries" 3880fi 3881 3882else 3883 MAKEFILE_BSDLIB=/dev/null 3884BSDLIB_CMT=# 3885echo "Disabling BSD shared libraries by default" 3886 3887fi 3888 3889 3890 3891# Check whether --enable-profile was given. 3892if test "${enable_profile+set}" = set; then 3893 enableval=$enable_profile; if test "$enableval" = "no" 3894then 3895 PROFILE_CMT=# 3896 MAKEFILE_PROFILE=/dev/null 3897 echo "Disabling profiling libraries" 3898else 3899 PROFILE_CMT= 3900 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile 3901 PROFILED_LIB_EXT=_p.a 3902 echo "Building profiling libraries" 3903fi 3904 3905else 3906 PROFILE_CMT=# 3907MAKEFILE_PROFILE=/dev/null 3908echo "Disabling profiling libraries by default" 3909 3910fi 3911 3912 3913 3914# Check whether --enable-checker was given. 3915if test "${enable_checker+set}" = set; then 3916 enableval=$enable_checker; if test "$enableval" = "no" 3917then 3918 CHECKER_CMT=# 3919 MAKEFILE_CHECKER=/dev/null 3920 echo "Disabling checker libraries" 3921else 3922 CHECKER_CMT= 3923 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker 3924 echo "Building checker libraries" 3925fi 3926 3927else 3928 CHECKER_CMT=# 3929MAKEFILE_CHECKER=/dev/null 3930echo "Disabling checker libraries by default" 3931 3932fi 3933 3934 3935 3936 3937 3938 3939# Check whether --enable-jbd-debug was given. 3940if test "${enable_jbd_debug+set}" = set; then 3941 enableval=$enable_jbd_debug; if test "$enableval" = "no" 3942then 3943 echo "Disabling journal debugging" 3944else 3945 cat >>confdefs.h <<\_ACEOF 3946#define CONFIG_JBD_DEBUG 1 3947_ACEOF 3948 3949 echo "Enabling journal debugging" 3950fi 3951 3952else 3953 echo "Disabling journal debugging by default" 3954 3955fi 3956 3957# Check whether --enable-blkid-debug was given. 3958if test "${enable_blkid_debug+set}" = set; then 3959 enableval=$enable_blkid_debug; if test "$enableval" = "no" 3960then 3961 echo "Disabling blkid debugging" 3962else 3963 cat >>confdefs.h <<\_ACEOF 3964#define CONFIG_BLKID_DEBUG 1 3965_ACEOF 3966 3967 echo "Enabling blkid debugging" 3968fi 3969 3970else 3971 echo "Disabling blkid debugging by default" 3972 3973fi 3974 3975# Check whether --enable-testio-debug was given. 3976if test "${enable_testio_debug+set}" = set; then 3977 enableval=$enable_testio_debug; if test "$enableval" = "no" 3978then 3979 echo "Disabling testio debugging" 3980else 3981 cat >>confdefs.h <<\_ACEOF 3982#define CONFIG_TESTIO_DEBUG 1 3983_ACEOF 3984 3985 echo "Enabling testio debugging" 3986fi 3987 3988else 3989 echo "Disabling testio debugging by default" 3990 3991fi 3992 3993# Check whether --enable-debugfs was given. 3994if test "${enable_debugfs+set}" = set; then 3995 enableval=$enable_debugfs; if test "$enableval" = "no" 3996then 3997 echo "Disabling debugfs support" 3998 DEBUGFS_CMT="#" 3999else 4000 DEBUGFS_CMT= 4001 echo "Enabling debugfs support" 4002fi 4003 4004else 4005 echo "Enabling debugfs support by default" 4006DEBUGFS_CMT= 4007 4008fi 4009 4010 4011# Check whether --enable-imager was given. 4012if test "${enable_imager+set}" = set; then 4013 enableval=$enable_imager; if test "$enableval" = "no" 4014then 4015 echo "Disabling e2image support" 4016 IMAGER_CMT="#" 4017else 4018 IMAGER_CMT= 4019 echo "Enabling e2image support" 4020fi 4021 4022else 4023 echo "Enabling e2image support by default" 4024IMAGER_CMT= 4025 4026fi 4027 4028 4029# Check whether --enable-resizer was given. 4030if test "${enable_resizer+set}" = set; then 4031 enableval=$enable_resizer; if test "$enableval" = "no" 4032then 4033 echo "Disabling e2resize support" 4034 RESIZER_CMT="#" 4035else 4036 RESIZER_CMT= 4037 echo "Enabling e2resize support" 4038fi 4039 4040else 4041 echo "Enabling e2resize support by default" 4042RESIZER_CMT= 4043 4044fi 4045 4046 4047# Check whether --enable-dynamic-e2fsck was given. 4048if test "${enable_dynamic_e2fsck+set}" = set; then 4049 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no" 4050then 4051 E2FSCK_TYPE=static 4052 echo "Building e2fsck statically" 4053else 4054 E2FSCK_TYPE=shared 4055 echo "Building e2fsck dynamically" 4056fi 4057 4058else 4059 E2FSCK_TYPE=static 4060echo "Building e2fsck statically by default" 4061 4062fi 4063 4064 4065# Check whether --enable-fsck was given. 4066if test "${enable_fsck+set}" = set; then 4067 enableval=$enable_fsck; if test "$enableval" = "no" 4068then 4069 FSCK_PROG='' FSCK_MAN='' 4070 echo "Not building fsck wrapper" 4071else 4072 FSCK_PROG=fsck FSCK_MAN=fsck.8 4073 echo "Building fsck wrapper" 4074fi 4075 4076else 4077 case "$host_os" in 4078 gnu*) 4079 FSCK_PROG='' FSCK_MAN='' 4080 echo "Not building fsck wrapper by default" 4081 ;; 4082 *) 4083 FSCK_PROG=fsck FSCK_MAN=fsck.8 4084 echo "Building fsck wrapper by default" 4085esac 4086 4087fi 4088 4089 4090 4091# Check whether --enable-e2initrd-helper was given. 4092if test "${enable_e2initrd_helper+set}" = set; then 4093 enableval=$enable_e2initrd_helper; if test "$enableval" = "no" 4094then 4095 E2INITRD_PROG='' E2INITRD_MAN='' 4096 echo "Not building e2initrd helper" 4097else 4098 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 4099 echo "Building e2initrd helper" 4100fi 4101 4102else 4103 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 4104echo "Building e2initrd helper by default" 4105 4106fi 4107 4108 4109 4110# Check whether --enable-blkid-devmapper was given. 4111if test "${enable_blkid_devmapper+set}" = set; then 4112 enableval=$enable_blkid_devmapper; if test "$enableval" = "no" 4113then 4114 echo "Disabling device-mapper support" 4115 DEVMAPPER_REQ='' 4116 DEVMAPPER_LIBS='' 4117 STATIC_DEVMAPPER_LIBS='' 4118else 4119 cat >>confdefs.h <<\_ACEOF 4120#define HAVE_DEVMAPPER 1 4121_ACEOF 4122 4123 echo "Enabling device-mapper support" 4124 4125 DEVMAPPER_REQ='libselinux libsepol' 4126 DEVMAPPER_PC_LIBS='-ldevmapper' 4127 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread' 4128 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread' 4129 4130fi 4131 4132else 4133 echo "Disabling device-mapper support by default" 4134 4135fi 4136 4137 4138 4139 4140 4141MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library 4142 4143GETTEXT_PACKAGE=e2fsprogs 4144PACKAGE=e2fsprogs 4145VERSION="$E2FSPROGS_VERSION" 4146VERSION=0.14.1 4147cat >>confdefs.h <<_ACEOF 4148#define PACKAGE "$PACKAGE" 4149_ACEOF 4150 4151cat >>confdefs.h <<_ACEOF 4152#define VERSION "$VERSION" 4153_ACEOF 4154 4155 4156 4157 4158 4159{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4160echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 4161set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4162if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 4163 echo $ECHO_N "(cached) $ECHO_C" >&6 4164else 4165 cat >conftest.make <<\_ACEOF 4166SHELL = /bin/sh 4167all: 4168 @echo '@@@%%%=$(MAKE)=@@@%%%' 4169_ACEOF 4170# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4171case `${MAKE-make} -f conftest.make 2>/dev/null` in 4172 *@@@%%%=?*=@@@%%%*) 4173 eval ac_cv_prog_make_${ac_make}_set=yes;; 4174 *) 4175 eval ac_cv_prog_make_${ac_make}_set=no;; 4176esac 4177rm -f conftest.make 4178fi 4179if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4180 { echo "$as_me:$LINENO: result: yes" >&5 4181echo "${ECHO_T}yes" >&6; } 4182 SET_MAKE= 4183else 4184 { echo "$as_me:$LINENO: result: no" >&5 4185echo "${ECHO_T}no" >&6; } 4186 SET_MAKE="MAKE=${MAKE-make}" 4187fi 4188 4189# Find a good install program. We prefer a C program (faster), 4190# so one script is as good as another. But avoid the broken or 4191# incompatible versions: 4192# SysV /etc/install, /usr/sbin/install 4193# SunOS /usr/etc/install 4194# IRIX /sbin/install 4195# AIX /bin/install 4196# AmigaOS /C/install, which installs bootblocks on floppy discs 4197# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4198# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4199# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4200# OS/2's system install, which has a completely different semantic 4201# ./install, which can be erroneously created by make from ./install.sh. 4202{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4203echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4204if test -z "$INSTALL"; then 4205if test "${ac_cv_path_install+set}" = set; then 4206 echo $ECHO_N "(cached) $ECHO_C" >&6 4207else 4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4209for as_dir in $PATH 4210do 4211 IFS=$as_save_IFS 4212 test -z "$as_dir" && as_dir=. 4213 # Account for people who put trailing slashes in PATH elements. 4214case $as_dir/ in 4215 ./ | .// | /cC/* | \ 4216 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4217 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4218 /usr/ucb/* ) ;; 4219 *) 4220 # OSF1 and SCO ODT 3.0 have their own names for install. 4221 # Don't use installbsd from OSF since it installs stuff as root 4222 # by default. 4223 for ac_prog in ginstall scoinst install; do 4224 for ac_exec_ext in '' $ac_executable_extensions; do 4225 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4226 if test $ac_prog = install && 4227 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4228 # AIX install. It has an incompatible calling convention. 4229 : 4230 elif test $ac_prog = install && 4231 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4232 # program-specific install script used by HP pwplus--don't use. 4233 : 4234 else 4235 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4236 break 3 4237 fi 4238 fi 4239 done 4240 done 4241 ;; 4242esac 4243done 4244IFS=$as_save_IFS 4245 4246 4247fi 4248 if test "${ac_cv_path_install+set}" = set; then 4249 INSTALL=$ac_cv_path_install 4250 else 4251 # As a last resort, use the slow shell script. Don't cache a 4252 # value for INSTALL within a source directory, because that will 4253 # break other packages using the cache if that directory is 4254 # removed, or if the value is a relative name. 4255 INSTALL=$ac_install_sh 4256 fi 4257fi 4258{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4259echo "${ECHO_T}$INSTALL" >&6; } 4260 4261# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4262# It thinks the first close brace ends the variable substitution. 4263test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4264 4265test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4266 4267test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4268 4269 4270 MKINSTALLDIRS= 4271 if test -n "$ac_aux_dir"; then 4272 case "$ac_aux_dir" in 4273 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 4274 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 4275 esac 4276 fi 4277 if test -z "$MKINSTALLDIRS"; then 4278 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 4279 fi 4280 4281 4282 4283 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 4284echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 4285 # Check whether --enable-nls was given. 4286if test "${enable_nls+set}" = set; then 4287 enableval=$enable_nls; USE_NLS=$enableval 4288else 4289 USE_NLS=yes 4290fi 4291 4292 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 4293echo "${ECHO_T}$USE_NLS" >&6; } 4294 4295 4296 4297 4298 4299 4300# Prepare PATH_SEPARATOR. 4301# The user is always right. 4302if test "${PATH_SEPARATOR+set}" != set; then 4303 echo "#! /bin/sh" >conf$$.sh 4304 echo "exit 0" >>conf$$.sh 4305 chmod +x conf$$.sh 4306 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4307 PATH_SEPARATOR=';' 4308 else 4309 PATH_SEPARATOR=: 4310 fi 4311 rm -f conf$$.sh 4312fi 4313 4314# Find out how to test for executable files. Don't use a zero-byte file, 4315# as systems may use methods other than mode bits to determine executability. 4316cat >conf$$.file <<_ASEOF 4317#! /bin/sh 4318exit 0 4319_ASEOF 4320chmod +x conf$$.file 4321if test -x conf$$.file >/dev/null 2>&1; then 4322 ac_executable_p="test -x" 4323else 4324 ac_executable_p="test -f" 4325fi 4326rm -f conf$$.file 4327 4328# Extract the first word of "msgfmt", so it can be a program name with args. 4329set dummy msgfmt; ac_word=$2 4330{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4332if test "${ac_cv_path_MSGFMT+set}" = set; then 4333 echo $ECHO_N "(cached) $ECHO_C" >&6 4334else 4335 case "$MSGFMT" in 4336 [\\/]* | ?:[\\/]*) 4337 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4338 ;; 4339 *) 4340 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4341 for ac_dir in $PATH; do 4342 IFS="$ac_save_IFS" 4343 test -z "$ac_dir" && ac_dir=. 4344 for ac_exec_ext in '' $ac_executable_extensions; do 4345 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4346 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 4347 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4348 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 4349 break 2 4350 fi 4351 fi 4352 done 4353 done 4354 IFS="$ac_save_IFS" 4355 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 4356 ;; 4357esac 4358fi 4359MSGFMT="$ac_cv_path_MSGFMT" 4360if test "$MSGFMT" != ":"; then 4361 { echo "$as_me:$LINENO: result: $MSGFMT" >&5 4362echo "${ECHO_T}$MSGFMT" >&6; } 4363else 4364 { echo "$as_me:$LINENO: result: no" >&5 4365echo "${ECHO_T}no" >&6; } 4366fi 4367 4368 # Extract the first word of "gmsgfmt", so it can be a program name with args. 4369set dummy gmsgfmt; ac_word=$2 4370{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4372if test "${ac_cv_path_GMSGFMT+set}" = set; then 4373 echo $ECHO_N "(cached) $ECHO_C" >&6 4374else 4375 case $GMSGFMT in 4376 [\\/]* | ?:[\\/]*) 4377 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4378 ;; 4379 *) 4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4381for as_dir in $PATH 4382do 4383 IFS=$as_save_IFS 4384 test -z "$as_dir" && as_dir=. 4385 for ac_exec_ext in '' $ac_executable_extensions; do 4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4387 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4389 break 2 4390 fi 4391done 4392done 4393IFS=$as_save_IFS 4394 4395 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4396 ;; 4397esac 4398fi 4399GMSGFMT=$ac_cv_path_GMSGFMT 4400if test -n "$GMSGFMT"; then 4401 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 4402echo "${ECHO_T}$GMSGFMT" >&6; } 4403else 4404 { echo "$as_me:$LINENO: result: no" >&5 4405echo "${ECHO_T}no" >&6; } 4406fi 4407 4408 4409 4410 4411# Prepare PATH_SEPARATOR. 4412# The user is always right. 4413if test "${PATH_SEPARATOR+set}" != set; then 4414 echo "#! /bin/sh" >conf$$.sh 4415 echo "exit 0" >>conf$$.sh 4416 chmod +x conf$$.sh 4417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4418 PATH_SEPARATOR=';' 4419 else 4420 PATH_SEPARATOR=: 4421 fi 4422 rm -f conf$$.sh 4423fi 4424 4425# Find out how to test for executable files. Don't use a zero-byte file, 4426# as systems may use methods other than mode bits to determine executability. 4427cat >conf$$.file <<_ASEOF 4428#! /bin/sh 4429exit 0 4430_ASEOF 4431chmod +x conf$$.file 4432if test -x conf$$.file >/dev/null 2>&1; then 4433 ac_executable_p="test -x" 4434else 4435 ac_executable_p="test -f" 4436fi 4437rm -f conf$$.file 4438 4439# Extract the first word of "xgettext", so it can be a program name with args. 4440set dummy xgettext; ac_word=$2 4441{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4443if test "${ac_cv_path_XGETTEXT+set}" = set; then 4444 echo $ECHO_N "(cached) $ECHO_C" >&6 4445else 4446 case "$XGETTEXT" in 4447 [\\/]* | ?:[\\/]*) 4448 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4449 ;; 4450 *) 4451 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4452 for ac_dir in $PATH; do 4453 IFS="$ac_save_IFS" 4454 test -z "$ac_dir" && ac_dir=. 4455 for ac_exec_ext in '' $ac_executable_extensions; do 4456 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4457 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4458 (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 4459 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 4460 break 2 4461 fi 4462 fi 4463 done 4464 done 4465 IFS="$ac_save_IFS" 4466 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4467 ;; 4468esac 4469fi 4470XGETTEXT="$ac_cv_path_XGETTEXT" 4471if test "$XGETTEXT" != ":"; then 4472 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 4473echo "${ECHO_T}$XGETTEXT" >&6; } 4474else 4475 { echo "$as_me:$LINENO: result: no" >&5 4476echo "${ECHO_T}no" >&6; } 4477fi 4478 4479 rm -f messages.po 4480 4481 4482# Prepare PATH_SEPARATOR. 4483# The user is always right. 4484if test "${PATH_SEPARATOR+set}" != set; then 4485 echo "#! /bin/sh" >conf$$.sh 4486 echo "exit 0" >>conf$$.sh 4487 chmod +x conf$$.sh 4488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4489 PATH_SEPARATOR=';' 4490 else 4491 PATH_SEPARATOR=: 4492 fi 4493 rm -f conf$$.sh 4494fi 4495 4496# Find out how to test for executable files. Don't use a zero-byte file, 4497# as systems may use methods other than mode bits to determine executability. 4498cat >conf$$.file <<_ASEOF 4499#! /bin/sh 4500exit 0 4501_ASEOF 4502chmod +x conf$$.file 4503if test -x conf$$.file >/dev/null 2>&1; then 4504 ac_executable_p="test -x" 4505else 4506 ac_executable_p="test -f" 4507fi 4508rm -f conf$$.file 4509 4510# Extract the first word of "msgmerge", so it can be a program name with args. 4511set dummy msgmerge; ac_word=$2 4512{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4514if test "${ac_cv_path_MSGMERGE+set}" = set; then 4515 echo $ECHO_N "(cached) $ECHO_C" >&6 4516else 4517 case "$MSGMERGE" in 4518 [\\/]* | ?:[\\/]*) 4519 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4520 ;; 4521 *) 4522 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4523 for ac_dir in $PATH; do 4524 IFS="$ac_save_IFS" 4525 test -z "$ac_dir" && ac_dir=. 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4527 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4528 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 4529 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 4530 break 2 4531 fi 4532 fi 4533 done 4534 done 4535 IFS="$ac_save_IFS" 4536 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 4537 ;; 4538esac 4539fi 4540MSGMERGE="$ac_cv_path_MSGMERGE" 4541if test "$MSGMERGE" != ":"; then 4542 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 4543echo "${ECHO_T}$MSGMERGE" >&6; } 4544else 4545 { echo "$as_me:$LINENO: result: no" >&5 4546echo "${ECHO_T}no" >&6; } 4547fi 4548 4549 4550 if test "$GMSGFMT" != ":"; then 4551 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 4552 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4553 : ; 4554 else 4555 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 4556 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 4557echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 4558 GMSGFMT=":" 4559 fi 4560 fi 4561 4562 if test "$XGETTEXT" != ":"; then 4563 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4564 (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 4565 : ; 4566 else 4567 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 4568echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } 4569 XGETTEXT=":" 4570 fi 4571 rm -f messages.po 4572 fi 4573 4574 ac_config_commands="$ac_config_commands default-1" 4575 4576 4577if test -n "$ac_tool_prefix"; then 4578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4579set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4580{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4582if test "${ac_cv_prog_RANLIB+set}" = set; then 4583 echo $ECHO_N "(cached) $ECHO_C" >&6 4584else 4585 if test -n "$RANLIB"; then 4586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4587else 4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4589for as_dir in $PATH 4590do 4591 IFS=$as_save_IFS 4592 test -z "$as_dir" && as_dir=. 4593 for ac_exec_ext in '' $ac_executable_extensions; do 4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4597 break 2 4598 fi 4599done 4600done 4601IFS=$as_save_IFS 4602 4603fi 4604fi 4605RANLIB=$ac_cv_prog_RANLIB 4606if test -n "$RANLIB"; then 4607 { echo "$as_me:$LINENO: result: $RANLIB" >&5 4608echo "${ECHO_T}$RANLIB" >&6; } 4609else 4610 { echo "$as_me:$LINENO: result: no" >&5 4611echo "${ECHO_T}no" >&6; } 4612fi 4613 4614 4615fi 4616if test -z "$ac_cv_prog_RANLIB"; then 4617 ac_ct_RANLIB=$RANLIB 4618 # Extract the first word of "ranlib", so it can be a program name with args. 4619set dummy ranlib; ac_word=$2 4620{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4622if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4623 echo $ECHO_N "(cached) $ECHO_C" >&6 4624else 4625 if test -n "$ac_ct_RANLIB"; then 4626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4627else 4628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4629for as_dir in $PATH 4630do 4631 IFS=$as_save_IFS 4632 test -z "$as_dir" && as_dir=. 4633 for ac_exec_ext in '' $ac_executable_extensions; do 4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4635 ac_cv_prog_ac_ct_RANLIB="ranlib" 4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4637 break 2 4638 fi 4639done 4640done 4641IFS=$as_save_IFS 4642 4643fi 4644fi 4645ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4646if test -n "$ac_ct_RANLIB"; then 4647 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4648echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 4649else 4650 { echo "$as_me:$LINENO: result: no" >&5 4651echo "${ECHO_T}no" >&6; } 4652fi 4653 4654 if test "x$ac_ct_RANLIB" = x; then 4655 RANLIB=":" 4656 else 4657 case $cross_compiling:$ac_tool_warned in 4658yes:) 4659{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4660whose name does not start with the host triplet. If you think this 4661configuration is useful to you, please write to autoconf@gnu.org." >&5 4662echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4663whose name does not start with the host triplet. If you think this 4664configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4665ac_tool_warned=yes ;; 4666esac 4667 RANLIB=$ac_ct_RANLIB 4668 fi 4669else 4670 RANLIB="$ac_cv_prog_RANLIB" 4671fi 4672 4673 4674 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 4675echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } 4676if test "${ac_cv_lib_cposix_strerror+set}" = set; then 4677 echo $ECHO_N "(cached) $ECHO_C" >&6 4678else 4679 ac_check_lib_save_LIBS=$LIBS 4680LIBS="-lcposix $LIBS" 4681cat >conftest.$ac_ext <<_ACEOF 4682/* confdefs.h. */ 4683_ACEOF 4684cat confdefs.h >>conftest.$ac_ext 4685cat >>conftest.$ac_ext <<_ACEOF 4686/* end confdefs.h. */ 4687 4688/* Override any GCC internal prototype to avoid an error. 4689 Use char because int might match the return type of a GCC 4690 builtin and then its argument prototype would still apply. */ 4691#ifdef __cplusplus 4692extern "C" 4693#endif 4694char strerror (); 4695int 4696main () 4697{ 4698return strerror (); 4699 ; 4700 return 0; 4701} 4702_ACEOF 4703rm -f conftest.$ac_objext conftest$ac_exeext 4704if { (ac_try="$ac_link" 4705case "(($ac_try" in 4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4707 *) ac_try_echo=$ac_try;; 4708esac 4709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4710 (eval "$ac_link") 2>conftest.er1 4711 ac_status=$? 4712 grep -v '^ *+' conftest.er1 >conftest.err 4713 rm -f conftest.er1 4714 cat conftest.err >&5 4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4716 (exit $ac_status); } && { 4717 test -z "$ac_c_werror_flag" || 4718 test ! -s conftest.err 4719 } && test -s conftest$ac_exeext && 4720 $as_test_x conftest$ac_exeext; then 4721 ac_cv_lib_cposix_strerror=yes 4722else 4723 echo "$as_me: failed program was:" >&5 4724sed 's/^/| /' conftest.$ac_ext >&5 4725 4726 ac_cv_lib_cposix_strerror=no 4727fi 4728 4729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4730 conftest$ac_exeext conftest.$ac_ext 4731LIBS=$ac_check_lib_save_LIBS 4732fi 4733{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 4734echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } 4735if test $ac_cv_lib_cposix_strerror = yes; then 4736 LIBS="$LIBS -lcposix" 4737fi 4738 4739 4740 4741{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4742echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 4743if test "${ac_cv_c_const+set}" = set; then 4744 echo $ECHO_N "(cached) $ECHO_C" >&6 4745else 4746 cat >conftest.$ac_ext <<_ACEOF 4747/* confdefs.h. */ 4748_ACEOF 4749cat confdefs.h >>conftest.$ac_ext 4750cat >>conftest.$ac_ext <<_ACEOF 4751/* end confdefs.h. */ 4752 4753int 4754main () 4755{ 4756/* FIXME: Include the comments suggested by Paul. */ 4757#ifndef __cplusplus 4758 /* Ultrix mips cc rejects this. */ 4759 typedef int charset[2]; 4760 const charset cs; 4761 /* SunOS 4.1.1 cc rejects this. */ 4762 char const *const *pcpcc; 4763 char **ppc; 4764 /* NEC SVR4.0.2 mips cc rejects this. */ 4765 struct point {int x, y;}; 4766 static struct point const zero = {0,0}; 4767 /* AIX XL C 1.02.0.0 rejects this. 4768 It does not let you subtract one const X* pointer from another in 4769 an arm of an if-expression whose if-part is not a constant 4770 expression */ 4771 const char *g = "string"; 4772 pcpcc = &g + (g ? g-g : 0); 4773 /* HPUX 7.0 cc rejects these. */ 4774 ++pcpcc; 4775 ppc = (char**) pcpcc; 4776 pcpcc = (char const *const *) ppc; 4777 { /* SCO 3.2v4 cc rejects this. */ 4778 char *t; 4779 char const *s = 0 ? (char *) 0 : (char const *) 0; 4780 4781 *t++ = 0; 4782 if (s) return 0; 4783 } 4784 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4785 int x[] = {25, 17}; 4786 const int *foo = &x[0]; 4787 ++foo; 4788 } 4789 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4790 typedef const int *iptr; 4791 iptr p = 0; 4792 ++p; 4793 } 4794 { /* AIX XL C 1.02.0.0 rejects this saying 4795 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4796 struct s { int j; const int *ap[3]; }; 4797 struct s *b; b->j = 5; 4798 } 4799 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4800 const int foo = 10; 4801 if (!foo) return 0; 4802 } 4803 return !cs[0] && !zero.x; 4804#endif 4805 4806 ; 4807 return 0; 4808} 4809_ACEOF 4810rm -f conftest.$ac_objext 4811if { (ac_try="$ac_compile" 4812case "(($ac_try" in 4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4814 *) ac_try_echo=$ac_try;; 4815esac 4816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4817 (eval "$ac_compile") 2>conftest.er1 4818 ac_status=$? 4819 grep -v '^ *+' conftest.er1 >conftest.err 4820 rm -f conftest.er1 4821 cat conftest.err >&5 4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4823 (exit $ac_status); } && { 4824 test -z "$ac_c_werror_flag" || 4825 test ! -s conftest.err 4826 } && test -s conftest.$ac_objext; then 4827 ac_cv_c_const=yes 4828else 4829 echo "$as_me: failed program was:" >&5 4830sed 's/^/| /' conftest.$ac_ext >&5 4831 4832 ac_cv_c_const=no 4833fi 4834 4835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4836fi 4837{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4838echo "${ECHO_T}$ac_cv_c_const" >&6; } 4839if test $ac_cv_c_const = no; then 4840 4841cat >>confdefs.h <<\_ACEOF 4842#define const 4843_ACEOF 4844 4845fi 4846 4847 4848 { echo "$as_me:$LINENO: checking for signed" >&5 4849echo $ECHO_N "checking for signed... $ECHO_C" >&6; } 4850if test "${bh_cv_c_signed+set}" = set; then 4851 echo $ECHO_N "(cached) $ECHO_C" >&6 4852else 4853 cat >conftest.$ac_ext <<_ACEOF 4854/* confdefs.h. */ 4855_ACEOF 4856cat confdefs.h >>conftest.$ac_ext 4857cat >>conftest.$ac_ext <<_ACEOF 4858/* end confdefs.h. */ 4859 4860int 4861main () 4862{ 4863signed char x; 4864 ; 4865 return 0; 4866} 4867_ACEOF 4868rm -f conftest.$ac_objext 4869if { (ac_try="$ac_compile" 4870case "(($ac_try" in 4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4872 *) ac_try_echo=$ac_try;; 4873esac 4874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4875 (eval "$ac_compile") 2>conftest.er1 4876 ac_status=$? 4877 grep -v '^ *+' conftest.er1 >conftest.err 4878 rm -f conftest.er1 4879 cat conftest.err >&5 4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4881 (exit $ac_status); } && { 4882 test -z "$ac_c_werror_flag" || 4883 test ! -s conftest.err 4884 } && test -s conftest.$ac_objext; then 4885 bh_cv_c_signed=yes 4886else 4887 echo "$as_me: failed program was:" >&5 4888sed 's/^/| /' conftest.$ac_ext >&5 4889 4890 bh_cv_c_signed=no 4891fi 4892 4893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4894fi 4895{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 4896echo "${ECHO_T}$bh_cv_c_signed" >&6; } 4897 if test $bh_cv_c_signed = no; then 4898 4899cat >>confdefs.h <<\_ACEOF 4900#define signed 4901_ACEOF 4902 4903 fi 4904 4905{ echo "$as_me:$LINENO: checking for inline" >&5 4906echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 4907if test "${ac_cv_c_inline+set}" = set; then 4908 echo $ECHO_N "(cached) $ECHO_C" >&6 4909else 4910 ac_cv_c_inline=no 4911for ac_kw in inline __inline__ __inline; do 4912 cat >conftest.$ac_ext <<_ACEOF 4913/* confdefs.h. */ 4914_ACEOF 4915cat confdefs.h >>conftest.$ac_ext 4916cat >>conftest.$ac_ext <<_ACEOF 4917/* end confdefs.h. */ 4918#ifndef __cplusplus 4919typedef int foo_t; 4920static $ac_kw foo_t static_foo () {return 0; } 4921$ac_kw foo_t foo () {return 0; } 4922#endif 4923 4924_ACEOF 4925rm -f conftest.$ac_objext 4926if { (ac_try="$ac_compile" 4927case "(($ac_try" in 4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4929 *) ac_try_echo=$ac_try;; 4930esac 4931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4932 (eval "$ac_compile") 2>conftest.er1 4933 ac_status=$? 4934 grep -v '^ *+' conftest.er1 >conftest.err 4935 rm -f conftest.er1 4936 cat conftest.err >&5 4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4938 (exit $ac_status); } && { 4939 test -z "$ac_c_werror_flag" || 4940 test ! -s conftest.err 4941 } && test -s conftest.$ac_objext; then 4942 ac_cv_c_inline=$ac_kw 4943else 4944 echo "$as_me: failed program was:" >&5 4945sed 's/^/| /' conftest.$ac_ext >&5 4946 4947 4948fi 4949 4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4951 test "$ac_cv_c_inline" != no && break 4952done 4953 4954fi 4955{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4956echo "${ECHO_T}$ac_cv_c_inline" >&6; } 4957 4958 4959case $ac_cv_c_inline in 4960 inline | yes) ;; 4961 *) 4962 case $ac_cv_c_inline in 4963 no) ac_val=;; 4964 *) ac_val=$ac_cv_c_inline;; 4965 esac 4966 cat >>confdefs.h <<_ACEOF 4967#ifndef __cplusplus 4968#define inline $ac_val 4969#endif 4970_ACEOF 4971 ;; 4972esac 4973 4974{ echo "$as_me:$LINENO: checking for off_t" >&5 4975echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } 4976if test "${ac_cv_type_off_t+set}" = set; then 4977 echo $ECHO_N "(cached) $ECHO_C" >&6 4978else 4979 cat >conftest.$ac_ext <<_ACEOF 4980/* confdefs.h. */ 4981_ACEOF 4982cat confdefs.h >>conftest.$ac_ext 4983cat >>conftest.$ac_ext <<_ACEOF 4984/* end confdefs.h. */ 4985$ac_includes_default 4986typedef off_t ac__type_new_; 4987int 4988main () 4989{ 4990if ((ac__type_new_ *) 0) 4991 return 0; 4992if (sizeof (ac__type_new_)) 4993 return 0; 4994 ; 4995 return 0; 4996} 4997_ACEOF 4998rm -f conftest.$ac_objext 4999if { (ac_try="$ac_compile" 5000case "(($ac_try" in 5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5002 *) ac_try_echo=$ac_try;; 5003esac 5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5005 (eval "$ac_compile") 2>conftest.er1 5006 ac_status=$? 5007 grep -v '^ *+' conftest.er1 >conftest.err 5008 rm -f conftest.er1 5009 cat conftest.err >&5 5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5011 (exit $ac_status); } && { 5012 test -z "$ac_c_werror_flag" || 5013 test ! -s conftest.err 5014 } && test -s conftest.$ac_objext; then 5015 ac_cv_type_off_t=yes 5016else 5017 echo "$as_me: failed program was:" >&5 5018sed 's/^/| /' conftest.$ac_ext >&5 5019 5020 ac_cv_type_off_t=no 5021fi 5022 5023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5024fi 5025{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 5026echo "${ECHO_T}$ac_cv_type_off_t" >&6; } 5027if test $ac_cv_type_off_t = yes; then 5028 : 5029else 5030 5031cat >>confdefs.h <<_ACEOF 5032#define off_t long int 5033_ACEOF 5034 5035fi 5036 5037{ echo "$as_me:$LINENO: checking for size_t" >&5 5038echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 5039if test "${ac_cv_type_size_t+set}" = set; then 5040 echo $ECHO_N "(cached) $ECHO_C" >&6 5041else 5042 cat >conftest.$ac_ext <<_ACEOF 5043/* confdefs.h. */ 5044_ACEOF 5045cat confdefs.h >>conftest.$ac_ext 5046cat >>conftest.$ac_ext <<_ACEOF 5047/* end confdefs.h. */ 5048$ac_includes_default 5049typedef size_t ac__type_new_; 5050int 5051main () 5052{ 5053if ((ac__type_new_ *) 0) 5054 return 0; 5055if (sizeof (ac__type_new_)) 5056 return 0; 5057 ; 5058 return 0; 5059} 5060_ACEOF 5061rm -f conftest.$ac_objext 5062if { (ac_try="$ac_compile" 5063case "(($ac_try" in 5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5065 *) ac_try_echo=$ac_try;; 5066esac 5067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5068 (eval "$ac_compile") 2>conftest.er1 5069 ac_status=$? 5070 grep -v '^ *+' conftest.er1 >conftest.err 5071 rm -f conftest.er1 5072 cat conftest.err >&5 5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5074 (exit $ac_status); } && { 5075 test -z "$ac_c_werror_flag" || 5076 test ! -s conftest.err 5077 } && test -s conftest.$ac_objext; then 5078 ac_cv_type_size_t=yes 5079else 5080 echo "$as_me: failed program was:" >&5 5081sed 's/^/| /' conftest.$ac_ext >&5 5082 5083 ac_cv_type_size_t=no 5084fi 5085 5086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5087fi 5088{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5089echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 5090if test $ac_cv_type_size_t = yes; then 5091 : 5092else 5093 5094cat >>confdefs.h <<_ACEOF 5095#define size_t unsigned int 5096_ACEOF 5097 5098fi 5099 5100 5101 { echo "$as_me:$LINENO: checking for long long" >&5 5102echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 5103if test "${ac_cv_type_long_long+set}" = set; then 5104 echo $ECHO_N "(cached) $ECHO_C" >&6 5105else 5106 cat >conftest.$ac_ext <<_ACEOF 5107/* confdefs.h. */ 5108_ACEOF 5109cat confdefs.h >>conftest.$ac_ext 5110cat >>conftest.$ac_ext <<_ACEOF 5111/* end confdefs.h. */ 5112long long ll = 1LL; int i = 63; 5113int 5114main () 5115{ 5116long long llmax = (long long) -1; 5117 return ll << i | ll >> i | llmax / ll | llmax % ll; 5118 ; 5119 return 0; 5120} 5121_ACEOF 5122rm -f conftest.$ac_objext conftest$ac_exeext 5123if { (ac_try="$ac_link" 5124case "(($ac_try" in 5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5126 *) ac_try_echo=$ac_try;; 5127esac 5128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5129 (eval "$ac_link") 2>conftest.er1 5130 ac_status=$? 5131 grep -v '^ *+' conftest.er1 >conftest.err 5132 rm -f conftest.er1 5133 cat conftest.err >&5 5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5135 (exit $ac_status); } && { 5136 test -z "$ac_c_werror_flag" || 5137 test ! -s conftest.err 5138 } && test -s conftest$ac_exeext && 5139 $as_test_x conftest$ac_exeext; then 5140 ac_cv_type_long_long=yes 5141else 5142 echo "$as_me: failed program was:" >&5 5143sed 's/^/| /' conftest.$ac_ext >&5 5144 5145 ac_cv_type_long_long=no 5146fi 5147 5148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5149 conftest$ac_exeext conftest.$ac_ext 5150fi 5151{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5152echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 5153 if test $ac_cv_type_long_long = yes; then 5154 5155cat >>confdefs.h <<\_ACEOF 5156#define HAVE_LONG_LONG 1 5157_ACEOF 5158 5159 fi 5160 5161 5162 { echo "$as_me:$LINENO: checking for long double" >&5 5163echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 5164if test "${gt_cv_c_long_double+set}" = set; then 5165 echo $ECHO_N "(cached) $ECHO_C" >&6 5166else 5167 if test "$GCC" = yes; then 5168 gt_cv_c_long_double=yes 5169 else 5170 cat >conftest.$ac_ext <<_ACEOF 5171/* confdefs.h. */ 5172_ACEOF 5173cat confdefs.h >>conftest.$ac_ext 5174cat >>conftest.$ac_ext <<_ACEOF 5175/* end confdefs.h. */ 5176 5177 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 5178 long double foo = 0.0; 5179 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 5180 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 5181 5182int 5183main () 5184{ 5185 5186 ; 5187 return 0; 5188} 5189_ACEOF 5190rm -f conftest.$ac_objext 5191if { (ac_try="$ac_compile" 5192case "(($ac_try" in 5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5194 *) ac_try_echo=$ac_try;; 5195esac 5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5197 (eval "$ac_compile") 2>conftest.er1 5198 ac_status=$? 5199 grep -v '^ *+' conftest.er1 >conftest.err 5200 rm -f conftest.er1 5201 cat conftest.err >&5 5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5203 (exit $ac_status); } && { 5204 test -z "$ac_c_werror_flag" || 5205 test ! -s conftest.err 5206 } && test -s conftest.$ac_objext; then 5207 gt_cv_c_long_double=yes 5208else 5209 echo "$as_me: failed program was:" >&5 5210sed 's/^/| /' conftest.$ac_ext >&5 5211 5212 gt_cv_c_long_double=no 5213fi 5214 5215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5216 fi 5217fi 5218{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 5219echo "${ECHO_T}$gt_cv_c_long_double" >&6; } 5220 if test $gt_cv_c_long_double = yes; then 5221 5222cat >>confdefs.h <<\_ACEOF 5223#define HAVE_LONG_DOUBLE 1 5224_ACEOF 5225 5226 fi 5227 5228 5229 { echo "$as_me:$LINENO: checking for wchar_t" >&5 5230echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } 5231if test "${gt_cv_c_wchar_t+set}" = set; then 5232 echo $ECHO_N "(cached) $ECHO_C" >&6 5233else 5234 cat >conftest.$ac_ext <<_ACEOF 5235/* confdefs.h. */ 5236_ACEOF 5237cat confdefs.h >>conftest.$ac_ext 5238cat >>conftest.$ac_ext <<_ACEOF 5239/* end confdefs.h. */ 5240#include <stddef.h> 5241 wchar_t foo = (wchar_t)'\0'; 5242int 5243main () 5244{ 5245 5246 ; 5247 return 0; 5248} 5249_ACEOF 5250rm -f conftest.$ac_objext 5251if { (ac_try="$ac_compile" 5252case "(($ac_try" in 5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5254 *) ac_try_echo=$ac_try;; 5255esac 5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5257 (eval "$ac_compile") 2>conftest.er1 5258 ac_status=$? 5259 grep -v '^ *+' conftest.er1 >conftest.err 5260 rm -f conftest.er1 5261 cat conftest.err >&5 5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5263 (exit $ac_status); } && { 5264 test -z "$ac_c_werror_flag" || 5265 test ! -s conftest.err 5266 } && test -s conftest.$ac_objext; then 5267 gt_cv_c_wchar_t=yes 5268else 5269 echo "$as_me: failed program was:" >&5 5270sed 's/^/| /' conftest.$ac_ext >&5 5271 5272 gt_cv_c_wchar_t=no 5273fi 5274 5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5276fi 5277{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 5278echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } 5279 if test $gt_cv_c_wchar_t = yes; then 5280 5281cat >>confdefs.h <<\_ACEOF 5282#define HAVE_WCHAR_T 1 5283_ACEOF 5284 5285 fi 5286 5287 5288 { echo "$as_me:$LINENO: checking for wint_t" >&5 5289echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } 5290if test "${gt_cv_c_wint_t+set}" = set; then 5291 echo $ECHO_N "(cached) $ECHO_C" >&6 5292else 5293 cat >conftest.$ac_ext <<_ACEOF 5294/* confdefs.h. */ 5295_ACEOF 5296cat confdefs.h >>conftest.$ac_ext 5297cat >>conftest.$ac_ext <<_ACEOF 5298/* end confdefs.h. */ 5299#include <wchar.h> 5300 wint_t foo = (wchar_t)'\0'; 5301int 5302main () 5303{ 5304 5305 ; 5306 return 0; 5307} 5308_ACEOF 5309rm -f conftest.$ac_objext 5310if { (ac_try="$ac_compile" 5311case "(($ac_try" in 5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5313 *) ac_try_echo=$ac_try;; 5314esac 5315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5316 (eval "$ac_compile") 2>conftest.er1 5317 ac_status=$? 5318 grep -v '^ *+' conftest.er1 >conftest.err 5319 rm -f conftest.er1 5320 cat conftest.err >&5 5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5322 (exit $ac_status); } && { 5323 test -z "$ac_c_werror_flag" || 5324 test ! -s conftest.err 5325 } && test -s conftest.$ac_objext; then 5326 gt_cv_c_wint_t=yes 5327else 5328 echo "$as_me: failed program was:" >&5 5329sed 's/^/| /' conftest.$ac_ext >&5 5330 5331 gt_cv_c_wint_t=no 5332fi 5333 5334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5335fi 5336{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 5337echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } 5338 if test $gt_cv_c_wint_t = yes; then 5339 5340cat >>confdefs.h <<\_ACEOF 5341#define HAVE_WINT_T 1 5342_ACEOF 5343 5344 fi 5345 5346 5347 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 5348echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 5349if test "${jm_ac_cv_header_inttypes_h+set}" = set; then 5350 echo $ECHO_N "(cached) $ECHO_C" >&6 5351else 5352 cat >conftest.$ac_ext <<_ACEOF 5353/* confdefs.h. */ 5354_ACEOF 5355cat confdefs.h >>conftest.$ac_ext 5356cat >>conftest.$ac_ext <<_ACEOF 5357/* end confdefs.h. */ 5358#include <sys/types.h> 5359#include <inttypes.h> 5360int 5361main () 5362{ 5363uintmax_t i = (uintmax_t) -1; 5364 ; 5365 return 0; 5366} 5367_ACEOF 5368rm -f conftest.$ac_objext 5369if { (ac_try="$ac_compile" 5370case "(($ac_try" in 5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5372 *) ac_try_echo=$ac_try;; 5373esac 5374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5375 (eval "$ac_compile") 2>conftest.er1 5376 ac_status=$? 5377 grep -v '^ *+' conftest.er1 >conftest.err 5378 rm -f conftest.er1 5379 cat conftest.err >&5 5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5381 (exit $ac_status); } && { 5382 test -z "$ac_c_werror_flag" || 5383 test ! -s conftest.err 5384 } && test -s conftest.$ac_objext; then 5385 jm_ac_cv_header_inttypes_h=yes 5386else 5387 echo "$as_me: failed program was:" >&5 5388sed 's/^/| /' conftest.$ac_ext >&5 5389 5390 jm_ac_cv_header_inttypes_h=no 5391fi 5392 5393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5394fi 5395{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 5396echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } 5397 if test $jm_ac_cv_header_inttypes_h = yes; then 5398 5399cat >>confdefs.h <<_ACEOF 5400#define HAVE_INTTYPES_H_WITH_UINTMAX 1 5401_ACEOF 5402 5403 fi 5404 5405 5406 { echo "$as_me:$LINENO: checking for stdint.h" >&5 5407echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 5408if test "${jm_ac_cv_header_stdint_h+set}" = set; then 5409 echo $ECHO_N "(cached) $ECHO_C" >&6 5410else 5411 cat >conftest.$ac_ext <<_ACEOF 5412/* confdefs.h. */ 5413_ACEOF 5414cat confdefs.h >>conftest.$ac_ext 5415cat >>conftest.$ac_ext <<_ACEOF 5416/* end confdefs.h. */ 5417#include <sys/types.h> 5418#include <stdint.h> 5419int 5420main () 5421{ 5422uintmax_t i = (uintmax_t) -1; 5423 ; 5424 return 0; 5425} 5426_ACEOF 5427rm -f conftest.$ac_objext 5428if { (ac_try="$ac_compile" 5429case "(($ac_try" in 5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5431 *) ac_try_echo=$ac_try;; 5432esac 5433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5434 (eval "$ac_compile") 2>conftest.er1 5435 ac_status=$? 5436 grep -v '^ *+' conftest.er1 >conftest.err 5437 rm -f conftest.er1 5438 cat conftest.err >&5 5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5440 (exit $ac_status); } && { 5441 test -z "$ac_c_werror_flag" || 5442 test ! -s conftest.err 5443 } && test -s conftest.$ac_objext; then 5444 jm_ac_cv_header_stdint_h=yes 5445else 5446 echo "$as_me: failed program was:" >&5 5447sed 's/^/| /' conftest.$ac_ext >&5 5448 5449 jm_ac_cv_header_stdint_h=no 5450fi 5451 5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5453fi 5454{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 5455echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } 5456 if test $jm_ac_cv_header_stdint_h = yes; then 5457 5458cat >>confdefs.h <<_ACEOF 5459#define HAVE_STDINT_H_WITH_UINTMAX 1 5460_ACEOF 5461 5462 fi 5463 5464 5465 5466 5467 { echo "$as_me:$LINENO: checking for intmax_t" >&5 5468echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } 5469if test "${gt_cv_c_intmax_t+set}" = set; then 5470 echo $ECHO_N "(cached) $ECHO_C" >&6 5471else 5472 cat >conftest.$ac_ext <<_ACEOF 5473/* confdefs.h. */ 5474_ACEOF 5475cat confdefs.h >>conftest.$ac_ext 5476cat >>conftest.$ac_ext <<_ACEOF 5477/* end confdefs.h. */ 5478 5479#include <stddef.h> 5480#include <stdlib.h> 5481#if HAVE_STDINT_H_WITH_UINTMAX 5482#include <stdint.h> 5483#endif 5484#if HAVE_INTTYPES_H_WITH_UINTMAX 5485#include <inttypes.h> 5486#endif 5487 5488int 5489main () 5490{ 5491intmax_t x = -1; 5492 ; 5493 return 0; 5494} 5495_ACEOF 5496rm -f conftest.$ac_objext 5497if { (ac_try="$ac_compile" 5498case "(($ac_try" in 5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5500 *) ac_try_echo=$ac_try;; 5501esac 5502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5503 (eval "$ac_compile") 2>conftest.er1 5504 ac_status=$? 5505 grep -v '^ *+' conftest.er1 >conftest.err 5506 rm -f conftest.er1 5507 cat conftest.err >&5 5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5509 (exit $ac_status); } && { 5510 test -z "$ac_c_werror_flag" || 5511 test ! -s conftest.err 5512 } && test -s conftest.$ac_objext; then 5513 gt_cv_c_intmax_t=yes 5514else 5515 echo "$as_me: failed program was:" >&5 5516sed 's/^/| /' conftest.$ac_ext >&5 5517 5518 gt_cv_c_intmax_t=no 5519fi 5520 5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5522fi 5523{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 5524echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } 5525 if test $gt_cv_c_intmax_t = yes; then 5526 5527cat >>confdefs.h <<\_ACEOF 5528#define HAVE_INTMAX_T 1 5529_ACEOF 5530 5531 fi 5532 5533 5534 5535 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 5536echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } 5537if test "${gt_cv_func_printf_posix+set}" = set; then 5538 echo $ECHO_N "(cached) $ECHO_C" >&6 5539else 5540 5541 if test "$cross_compiling" = yes; then 5542 5543 cat >conftest.$ac_ext <<_ACEOF 5544/* confdefs.h. */ 5545_ACEOF 5546cat confdefs.h >>conftest.$ac_ext 5547cat >>conftest.$ac_ext <<_ACEOF 5548/* end confdefs.h. */ 5549 5550#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 5551 notposix 5552#endif 5553 5554_ACEOF 5555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5556 $EGREP "notposix" >/dev/null 2>&1; then 5557 gt_cv_func_printf_posix="guessing no" 5558else 5559 gt_cv_func_printf_posix="guessing yes" 5560fi 5561rm -f conftest* 5562 5563 5564else 5565 cat >conftest.$ac_ext <<_ACEOF 5566/* confdefs.h. */ 5567_ACEOF 5568cat confdefs.h >>conftest.$ac_ext 5569cat >>conftest.$ac_ext <<_ACEOF 5570/* end confdefs.h. */ 5571 5572#include <stdio.h> 5573#include <string.h> 5574/* The string "%2$d %1$d", with dollar characters protected from the shell's 5575 dollar expansion (possibly an autoconf bug). */ 5576static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 5577static char buf[100]; 5578int main () 5579{ 5580 sprintf (buf, format, 33, 55); 5581 return (strcmp (buf, "55 33") != 0); 5582} 5583_ACEOF 5584rm -f conftest$ac_exeext 5585if { (ac_try="$ac_link" 5586case "(($ac_try" in 5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5588 *) ac_try_echo=$ac_try;; 5589esac 5590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5591 (eval "$ac_link") 2>&5 5592 ac_status=$? 5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5595 { (case "(($ac_try" in 5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5597 *) ac_try_echo=$ac_try;; 5598esac 5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5600 (eval "$ac_try") 2>&5 5601 ac_status=$? 5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); }; }; then 5604 gt_cv_func_printf_posix=yes 5605else 5606 echo "$as_me: program exited with status $ac_status" >&5 5607echo "$as_me: failed program was:" >&5 5608sed 's/^/| /' conftest.$ac_ext >&5 5609 5610( exit $ac_status ) 5611gt_cv_func_printf_posix=no 5612fi 5613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5614fi 5615 5616 5617 5618fi 5619{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 5620echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } 5621 case $gt_cv_func_printf_posix in 5622 *yes) 5623 5624cat >>confdefs.h <<\_ACEOF 5625#define HAVE_POSIX_PRINTF 1 5626_ACEOF 5627 5628 ;; 5629 esac 5630 5631# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5632# for constant arguments. Useless! 5633{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 5634echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 5635if test "${ac_cv_working_alloca_h+set}" = set; then 5636 echo $ECHO_N "(cached) $ECHO_C" >&6 5637else 5638 cat >conftest.$ac_ext <<_ACEOF 5639/* confdefs.h. */ 5640_ACEOF 5641cat confdefs.h >>conftest.$ac_ext 5642cat >>conftest.$ac_ext <<_ACEOF 5643/* end confdefs.h. */ 5644#include <alloca.h> 5645int 5646main () 5647{ 5648char *p = (char *) alloca (2 * sizeof (int)); 5649 if (p) return 0; 5650 ; 5651 return 0; 5652} 5653_ACEOF 5654rm -f conftest.$ac_objext conftest$ac_exeext 5655if { (ac_try="$ac_link" 5656case "(($ac_try" in 5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5658 *) ac_try_echo=$ac_try;; 5659esac 5660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5661 (eval "$ac_link") 2>conftest.er1 5662 ac_status=$? 5663 grep -v '^ *+' conftest.er1 >conftest.err 5664 rm -f conftest.er1 5665 cat conftest.err >&5 5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5667 (exit $ac_status); } && { 5668 test -z "$ac_c_werror_flag" || 5669 test ! -s conftest.err 5670 } && test -s conftest$ac_exeext && 5671 $as_test_x conftest$ac_exeext; then 5672 ac_cv_working_alloca_h=yes 5673else 5674 echo "$as_me: failed program was:" >&5 5675sed 's/^/| /' conftest.$ac_ext >&5 5676 5677 ac_cv_working_alloca_h=no 5678fi 5679 5680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5681 conftest$ac_exeext conftest.$ac_ext 5682fi 5683{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5684echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 5685if test $ac_cv_working_alloca_h = yes; then 5686 5687cat >>confdefs.h <<\_ACEOF 5688#define HAVE_ALLOCA_H 1 5689_ACEOF 5690 5691fi 5692 5693{ echo "$as_me:$LINENO: checking for alloca" >&5 5694echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 5695if test "${ac_cv_func_alloca_works+set}" = set; then 5696 echo $ECHO_N "(cached) $ECHO_C" >&6 5697else 5698 cat >conftest.$ac_ext <<_ACEOF 5699/* confdefs.h. */ 5700_ACEOF 5701cat confdefs.h >>conftest.$ac_ext 5702cat >>conftest.$ac_ext <<_ACEOF 5703/* end confdefs.h. */ 5704#ifdef __GNUC__ 5705# define alloca __builtin_alloca 5706#else 5707# ifdef _MSC_VER 5708# include <malloc.h> 5709# define alloca _alloca 5710# else 5711# ifdef HAVE_ALLOCA_H 5712# include <alloca.h> 5713# else 5714# ifdef _AIX 5715 #pragma alloca 5716# else 5717# ifndef alloca /* predefined by HP cc +Olibcalls */ 5718char *alloca (); 5719# endif 5720# endif 5721# endif 5722# endif 5723#endif 5724 5725int 5726main () 5727{ 5728char *p = (char *) alloca (1); 5729 if (p) return 0; 5730 ; 5731 return 0; 5732} 5733_ACEOF 5734rm -f conftest.$ac_objext conftest$ac_exeext 5735if { (ac_try="$ac_link" 5736case "(($ac_try" in 5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5738 *) ac_try_echo=$ac_try;; 5739esac 5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5741 (eval "$ac_link") 2>conftest.er1 5742 ac_status=$? 5743 grep -v '^ *+' conftest.er1 >conftest.err 5744 rm -f conftest.er1 5745 cat conftest.err >&5 5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5747 (exit $ac_status); } && { 5748 test -z "$ac_c_werror_flag" || 5749 test ! -s conftest.err 5750 } && test -s conftest$ac_exeext && 5751 $as_test_x conftest$ac_exeext; then 5752 ac_cv_func_alloca_works=yes 5753else 5754 echo "$as_me: failed program was:" >&5 5755sed 's/^/| /' conftest.$ac_ext >&5 5756 5757 ac_cv_func_alloca_works=no 5758fi 5759 5760rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5761 conftest$ac_exeext conftest.$ac_ext 5762fi 5763{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5764echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 5765 5766if test $ac_cv_func_alloca_works = yes; then 5767 5768cat >>confdefs.h <<\_ACEOF 5769#define HAVE_ALLOCA 1 5770_ACEOF 5771 5772else 5773 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5774# that cause trouble. Some versions do not even contain alloca or 5775# contain a buggy version. If you still want to use their alloca, 5776# use ar to extract alloca.o from them instead of compiling alloca.c. 5777 5778ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 5779 5780cat >>confdefs.h <<\_ACEOF 5781#define C_ALLOCA 1 5782_ACEOF 5783 5784 5785{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5786echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 5787if test "${ac_cv_os_cray+set}" = set; then 5788 echo $ECHO_N "(cached) $ECHO_C" >&6 5789else 5790 cat >conftest.$ac_ext <<_ACEOF 5791/* confdefs.h. */ 5792_ACEOF 5793cat confdefs.h >>conftest.$ac_ext 5794cat >>conftest.$ac_ext <<_ACEOF 5795/* end confdefs.h. */ 5796#if defined CRAY && ! defined CRAY2 5797webecray 5798#else 5799wenotbecray 5800#endif 5801 5802_ACEOF 5803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5804 $EGREP "webecray" >/dev/null 2>&1; then 5805 ac_cv_os_cray=yes 5806else 5807 ac_cv_os_cray=no 5808fi 5809rm -f conftest* 5810 5811fi 5812{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5813echo "${ECHO_T}$ac_cv_os_cray" >&6; } 5814if test $ac_cv_os_cray = yes; then 5815 for ac_func in _getb67 GETB67 getb67; do 5816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5817{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5820 echo $ECHO_N "(cached) $ECHO_C" >&6 5821else 5822 cat >conftest.$ac_ext <<_ACEOF 5823/* confdefs.h. */ 5824_ACEOF 5825cat confdefs.h >>conftest.$ac_ext 5826cat >>conftest.$ac_ext <<_ACEOF 5827/* end confdefs.h. */ 5828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5829 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5830#define $ac_func innocuous_$ac_func 5831 5832/* System header to define __stub macros and hopefully few prototypes, 5833 which can conflict with char $ac_func (); below. 5834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5835 <limits.h> exists even on freestanding compilers. */ 5836 5837#ifdef __STDC__ 5838# include <limits.h> 5839#else 5840# include <assert.h> 5841#endif 5842 5843#undef $ac_func 5844 5845/* Override any GCC internal prototype to avoid an error. 5846 Use char because int might match the return type of a GCC 5847 builtin and then its argument prototype would still apply. */ 5848#ifdef __cplusplus 5849extern "C" 5850#endif 5851char $ac_func (); 5852/* The GNU C library defines this for functions which it implements 5853 to always fail with ENOSYS. Some functions are actually named 5854 something starting with __ and the normal name is an alias. */ 5855#if defined __stub_$ac_func || defined __stub___$ac_func 5856choke me 5857#endif 5858 5859int 5860main () 5861{ 5862return $ac_func (); 5863 ; 5864 return 0; 5865} 5866_ACEOF 5867rm -f conftest.$ac_objext conftest$ac_exeext 5868if { (ac_try="$ac_link" 5869case "(($ac_try" in 5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5871 *) ac_try_echo=$ac_try;; 5872esac 5873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5874 (eval "$ac_link") 2>conftest.er1 5875 ac_status=$? 5876 grep -v '^ *+' conftest.er1 >conftest.err 5877 rm -f conftest.er1 5878 cat conftest.err >&5 5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5880 (exit $ac_status); } && { 5881 test -z "$ac_c_werror_flag" || 5882 test ! -s conftest.err 5883 } && test -s conftest$ac_exeext && 5884 $as_test_x conftest$ac_exeext; then 5885 eval "$as_ac_var=yes" 5886else 5887 echo "$as_me: failed program was:" >&5 5888sed 's/^/| /' conftest.$ac_ext >&5 5889 5890 eval "$as_ac_var=no" 5891fi 5892 5893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5894 conftest$ac_exeext conftest.$ac_ext 5895fi 5896ac_res=`eval echo '${'$as_ac_var'}'` 5897 { echo "$as_me:$LINENO: result: $ac_res" >&5 5898echo "${ECHO_T}$ac_res" >&6; } 5899if test `eval echo '${'$as_ac_var'}'` = yes; then 5900 5901cat >>confdefs.h <<_ACEOF 5902#define CRAY_STACKSEG_END $ac_func 5903_ACEOF 5904 5905 break 5906fi 5907 5908 done 5909fi 5910 5911{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5912echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 5913if test "${ac_cv_c_stack_direction+set}" = set; then 5914 echo $ECHO_N "(cached) $ECHO_C" >&6 5915else 5916 if test "$cross_compiling" = yes; then 5917 ac_cv_c_stack_direction=0 5918else 5919 cat >conftest.$ac_ext <<_ACEOF 5920/* confdefs.h. */ 5921_ACEOF 5922cat confdefs.h >>conftest.$ac_ext 5923cat >>conftest.$ac_ext <<_ACEOF 5924/* end confdefs.h. */ 5925$ac_includes_default 5926int 5927find_stack_direction () 5928{ 5929 static char *addr = 0; 5930 auto char dummy; 5931 if (addr == 0) 5932 { 5933 addr = &dummy; 5934 return find_stack_direction (); 5935 } 5936 else 5937 return (&dummy > addr) ? 1 : -1; 5938} 5939 5940int 5941main () 5942{ 5943 return find_stack_direction () < 0; 5944} 5945_ACEOF 5946rm -f conftest$ac_exeext 5947if { (ac_try="$ac_link" 5948case "(($ac_try" in 5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5950 *) ac_try_echo=$ac_try;; 5951esac 5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5953 (eval "$ac_link") 2>&5 5954 ac_status=$? 5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5957 { (case "(($ac_try" in 5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5959 *) ac_try_echo=$ac_try;; 5960esac 5961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5962 (eval "$ac_try") 2>&5 5963 ac_status=$? 5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5965 (exit $ac_status); }; }; then 5966 ac_cv_c_stack_direction=1 5967else 5968 echo "$as_me: program exited with status $ac_status" >&5 5969echo "$as_me: failed program was:" >&5 5970sed 's/^/| /' conftest.$ac_ext >&5 5971 5972( exit $ac_status ) 5973ac_cv_c_stack_direction=-1 5974fi 5975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5976fi 5977 5978 5979fi 5980{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5981echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 5982 5983cat >>confdefs.h <<_ACEOF 5984#define STACK_DIRECTION $ac_cv_c_stack_direction 5985_ACEOF 5986 5987 5988fi 5989 5990 5991 5992for ac_header in stdlib.h unistd.h 5993do 5994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5996 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5999 echo $ECHO_N "(cached) $ECHO_C" >&6 6000fi 6001ac_res=`eval echo '${'$as_ac_Header'}'` 6002 { echo "$as_me:$LINENO: result: $ac_res" >&5 6003echo "${ECHO_T}$ac_res" >&6; } 6004else 6005 # Is the header compilable? 6006{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6007echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6008cat >conftest.$ac_ext <<_ACEOF 6009/* confdefs.h. */ 6010_ACEOF 6011cat confdefs.h >>conftest.$ac_ext 6012cat >>conftest.$ac_ext <<_ACEOF 6013/* end confdefs.h. */ 6014$ac_includes_default 6015#include <$ac_header> 6016_ACEOF 6017rm -f conftest.$ac_objext 6018if { (ac_try="$ac_compile" 6019case "(($ac_try" in 6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6021 *) ac_try_echo=$ac_try;; 6022esac 6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6024 (eval "$ac_compile") 2>conftest.er1 6025 ac_status=$? 6026 grep -v '^ *+' conftest.er1 >conftest.err 6027 rm -f conftest.er1 6028 cat conftest.err >&5 6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6030 (exit $ac_status); } && { 6031 test -z "$ac_c_werror_flag" || 6032 test ! -s conftest.err 6033 } && test -s conftest.$ac_objext; then 6034 ac_header_compiler=yes 6035else 6036 echo "$as_me: failed program was:" >&5 6037sed 's/^/| /' conftest.$ac_ext >&5 6038 6039 ac_header_compiler=no 6040fi 6041 6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6043{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6044echo "${ECHO_T}$ac_header_compiler" >&6; } 6045 6046# Is the header present? 6047{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6049cat >conftest.$ac_ext <<_ACEOF 6050/* confdefs.h. */ 6051_ACEOF 6052cat confdefs.h >>conftest.$ac_ext 6053cat >>conftest.$ac_ext <<_ACEOF 6054/* end confdefs.h. */ 6055#include <$ac_header> 6056_ACEOF 6057if { (ac_try="$ac_cpp conftest.$ac_ext" 6058case "(($ac_try" in 6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6060 *) ac_try_echo=$ac_try;; 6061esac 6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6064 ac_status=$? 6065 grep -v '^ *+' conftest.er1 >conftest.err 6066 rm -f conftest.er1 6067 cat conftest.err >&5 6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6069 (exit $ac_status); } >/dev/null && { 6070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6071 test ! -s conftest.err 6072 }; then 6073 ac_header_preproc=yes 6074else 6075 echo "$as_me: failed program was:" >&5 6076sed 's/^/| /' conftest.$ac_ext >&5 6077 6078 ac_header_preproc=no 6079fi 6080 6081rm -f conftest.err conftest.$ac_ext 6082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6083echo "${ECHO_T}$ac_header_preproc" >&6; } 6084 6085# So? What about this header? 6086case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6087 yes:no: ) 6088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6092 ac_header_preproc=yes 6093 ;; 6094 no:yes:* ) 6095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6098echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6102echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6107 6108 ;; 6109esac 6110{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6113 echo $ECHO_N "(cached) $ECHO_C" >&6 6114else 6115 eval "$as_ac_Header=\$ac_header_preproc" 6116fi 6117ac_res=`eval echo '${'$as_ac_Header'}'` 6118 { echo "$as_me:$LINENO: result: $ac_res" >&5 6119echo "${ECHO_T}$ac_res" >&6; } 6120 6121fi 6122if test `eval echo '${'$as_ac_Header'}'` = yes; then 6123 cat >>confdefs.h <<_ACEOF 6124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6125_ACEOF 6126 6127fi 6128 6129done 6130 6131 6132for ac_func in getpagesize 6133do 6134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6135{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6137if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6138 echo $ECHO_N "(cached) $ECHO_C" >&6 6139else 6140 cat >conftest.$ac_ext <<_ACEOF 6141/* confdefs.h. */ 6142_ACEOF 6143cat confdefs.h >>conftest.$ac_ext 6144cat >>conftest.$ac_ext <<_ACEOF 6145/* end confdefs.h. */ 6146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6147 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6148#define $ac_func innocuous_$ac_func 6149 6150/* System header to define __stub macros and hopefully few prototypes, 6151 which can conflict with char $ac_func (); below. 6152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6153 <limits.h> exists even on freestanding compilers. */ 6154 6155#ifdef __STDC__ 6156# include <limits.h> 6157#else 6158# include <assert.h> 6159#endif 6160 6161#undef $ac_func 6162 6163/* Override any GCC internal prototype to avoid an error. 6164 Use char because int might match the return type of a GCC 6165 builtin and then its argument prototype would still apply. */ 6166#ifdef __cplusplus 6167extern "C" 6168#endif 6169char $ac_func (); 6170/* The GNU C library defines this for functions which it implements 6171 to always fail with ENOSYS. Some functions are actually named 6172 something starting with __ and the normal name is an alias. */ 6173#if defined __stub_$ac_func || defined __stub___$ac_func 6174choke me 6175#endif 6176 6177int 6178main () 6179{ 6180return $ac_func (); 6181 ; 6182 return 0; 6183} 6184_ACEOF 6185rm -f conftest.$ac_objext conftest$ac_exeext 6186if { (ac_try="$ac_link" 6187case "(($ac_try" in 6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6189 *) ac_try_echo=$ac_try;; 6190esac 6191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6192 (eval "$ac_link") 2>conftest.er1 6193 ac_status=$? 6194 grep -v '^ *+' conftest.er1 >conftest.err 6195 rm -f conftest.er1 6196 cat conftest.err >&5 6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6198 (exit $ac_status); } && { 6199 test -z "$ac_c_werror_flag" || 6200 test ! -s conftest.err 6201 } && test -s conftest$ac_exeext && 6202 $as_test_x conftest$ac_exeext; then 6203 eval "$as_ac_var=yes" 6204else 6205 echo "$as_me: failed program was:" >&5 6206sed 's/^/| /' conftest.$ac_ext >&5 6207 6208 eval "$as_ac_var=no" 6209fi 6210 6211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6212 conftest$ac_exeext conftest.$ac_ext 6213fi 6214ac_res=`eval echo '${'$as_ac_var'}'` 6215 { echo "$as_me:$LINENO: result: $ac_res" >&5 6216echo "${ECHO_T}$ac_res" >&6; } 6217if test `eval echo '${'$as_ac_var'}'` = yes; then 6218 cat >>confdefs.h <<_ACEOF 6219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6220_ACEOF 6221 6222fi 6223done 6224 6225{ echo "$as_me:$LINENO: checking for working mmap" >&5 6226echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 6227if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 6228 echo $ECHO_N "(cached) $ECHO_C" >&6 6229else 6230 if test "$cross_compiling" = yes; then 6231 ac_cv_func_mmap_fixed_mapped=no 6232else 6233 cat >conftest.$ac_ext <<_ACEOF 6234/* confdefs.h. */ 6235_ACEOF 6236cat confdefs.h >>conftest.$ac_ext 6237cat >>conftest.$ac_ext <<_ACEOF 6238/* end confdefs.h. */ 6239$ac_includes_default 6240/* malloc might have been renamed as rpl_malloc. */ 6241#undef malloc 6242 6243/* Thanks to Mike Haertel and Jim Avera for this test. 6244 Here is a matrix of mmap possibilities: 6245 mmap private not fixed 6246 mmap private fixed at somewhere currently unmapped 6247 mmap private fixed at somewhere already mapped 6248 mmap shared not fixed 6249 mmap shared fixed at somewhere currently unmapped 6250 mmap shared fixed at somewhere already mapped 6251 For private mappings, we should verify that changes cannot be read() 6252 back from the file, nor mmap's back from the file at a different 6253 address. (There have been systems where private was not correctly 6254 implemented like the infamous i386 svr4.0, and systems where the 6255 VM page cache was not coherent with the file system buffer cache 6256 like early versions of FreeBSD and possibly contemporary NetBSD.) 6257 For shared mappings, we should conversely verify that changes get 6258 propagated back to all the places they're supposed to be. 6259 6260 Grep wants private fixed already mapped. 6261 The main things grep needs to know about mmap are: 6262 * does it exist and is it safe to write into the mmap'd area 6263 * how to use it (BSD variants) */ 6264 6265#include <fcntl.h> 6266#include <sys/mman.h> 6267 6268#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 6269char *malloc (); 6270#endif 6271 6272/* This mess was copied from the GNU getpagesize.h. */ 6273#ifndef HAVE_GETPAGESIZE 6274/* Assume that all systems that can run configure have sys/param.h. */ 6275# ifndef HAVE_SYS_PARAM_H 6276# define HAVE_SYS_PARAM_H 1 6277# endif 6278 6279# ifdef _SC_PAGESIZE 6280# define getpagesize() sysconf(_SC_PAGESIZE) 6281# else /* no _SC_PAGESIZE */ 6282# ifdef HAVE_SYS_PARAM_H 6283# include <sys/param.h> 6284# ifdef EXEC_PAGESIZE 6285# define getpagesize() EXEC_PAGESIZE 6286# else /* no EXEC_PAGESIZE */ 6287# ifdef NBPG 6288# define getpagesize() NBPG * CLSIZE 6289# ifndef CLSIZE 6290# define CLSIZE 1 6291# endif /* no CLSIZE */ 6292# else /* no NBPG */ 6293# ifdef NBPC 6294# define getpagesize() NBPC 6295# else /* no NBPC */ 6296# ifdef PAGESIZE 6297# define getpagesize() PAGESIZE 6298# endif /* PAGESIZE */ 6299# endif /* no NBPC */ 6300# endif /* no NBPG */ 6301# endif /* no EXEC_PAGESIZE */ 6302# else /* no HAVE_SYS_PARAM_H */ 6303# define getpagesize() 8192 /* punt totally */ 6304# endif /* no HAVE_SYS_PARAM_H */ 6305# endif /* no _SC_PAGESIZE */ 6306 6307#endif /* no HAVE_GETPAGESIZE */ 6308 6309int 6310main () 6311{ 6312 char *data, *data2, *data3; 6313 int i, pagesize; 6314 int fd; 6315 6316 pagesize = getpagesize (); 6317 6318 /* First, make a file with some known garbage in it. */ 6319 data = (char *) malloc (pagesize); 6320 if (!data) 6321 return 1; 6322 for (i = 0; i < pagesize; ++i) 6323 *(data + i) = rand (); 6324 umask (0); 6325 fd = creat ("conftest.mmap", 0600); 6326 if (fd < 0) 6327 return 1; 6328 if (write (fd, data, pagesize) != pagesize) 6329 return 1; 6330 close (fd); 6331 6332 /* Next, try to mmap the file at a fixed address which already has 6333 something else allocated at it. If we can, also make sure that 6334 we see the same garbage. */ 6335 fd = open ("conftest.mmap", O_RDWR); 6336 if (fd < 0) 6337 return 1; 6338 data2 = (char *) malloc (2 * pagesize); 6339 if (!data2) 6340 return 1; 6341 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 6342 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 6343 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 6344 return 1; 6345 for (i = 0; i < pagesize; ++i) 6346 if (*(data + i) != *(data2 + i)) 6347 return 1; 6348 6349 /* Finally, make sure that changes to the mapped area do not 6350 percolate back to the file as seen by read(). (This is a bug on 6351 some variants of i386 svr4.0.) */ 6352 for (i = 0; i < pagesize; ++i) 6353 *(data2 + i) = *(data2 + i) + 1; 6354 data3 = (char *) malloc (pagesize); 6355 if (!data3) 6356 return 1; 6357 if (read (fd, data3, pagesize) != pagesize) 6358 return 1; 6359 for (i = 0; i < pagesize; ++i) 6360 if (*(data + i) != *(data3 + i)) 6361 return 1; 6362 close (fd); 6363 return 0; 6364} 6365_ACEOF 6366rm -f conftest$ac_exeext 6367if { (ac_try="$ac_link" 6368case "(($ac_try" in 6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6370 *) ac_try_echo=$ac_try;; 6371esac 6372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6373 (eval "$ac_link") 2>&5 6374 ac_status=$? 6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6377 { (case "(($ac_try" in 6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6379 *) ac_try_echo=$ac_try;; 6380esac 6381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6382 (eval "$ac_try") 2>&5 6383 ac_status=$? 6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6385 (exit $ac_status); }; }; then 6386 ac_cv_func_mmap_fixed_mapped=yes 6387else 6388 echo "$as_me: program exited with status $ac_status" >&5 6389echo "$as_me: failed program was:" >&5 6390sed 's/^/| /' conftest.$ac_ext >&5 6391 6392( exit $ac_status ) 6393ac_cv_func_mmap_fixed_mapped=no 6394fi 6395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6396fi 6397 6398 6399fi 6400{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 6401echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 6402if test $ac_cv_func_mmap_fixed_mapped = yes; then 6403 6404cat >>confdefs.h <<\_ACEOF 6405#define HAVE_MMAP 1 6406_ACEOF 6407 6408fi 6409rm -f conftest.mmap 6410 6411 6412 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 6413echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } 6414if test "${ac_cv_gnu_library_2_1+set}" = set; then 6415 echo $ECHO_N "(cached) $ECHO_C" >&6 6416else 6417 cat >conftest.$ac_ext <<_ACEOF 6418/* confdefs.h. */ 6419_ACEOF 6420cat confdefs.h >>conftest.$ac_ext 6421cat >>conftest.$ac_ext <<_ACEOF 6422/* end confdefs.h. */ 6423 6424#include <features.h> 6425#ifdef __GNU_LIBRARY__ 6426 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 6427 Lucky GNU user 6428 #endif 6429#endif 6430 6431_ACEOF 6432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6433 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 6434 ac_cv_gnu_library_2_1=yes 6435else 6436 ac_cv_gnu_library_2_1=no 6437fi 6438rm -f conftest* 6439 6440 6441 6442fi 6443{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 6444echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } 6445 6446 GLIBC21="$ac_cv_gnu_library_2_1" 6447 6448 6449 6450 6451 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 6452echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } 6453if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 6454 echo $ECHO_N "(cached) $ECHO_C" >&6 6455else 6456 6457 if test "$cross_compiling" = yes; then 6458 6459 # Guess based on the CPU. 6460 case "$host_cpu" in 6461 alpha* | i3456786 | m68k | s390*) 6462 gt_cv_int_divbyzero_sigfpe="guessing yes";; 6463 *) 6464 gt_cv_int_divbyzero_sigfpe="guessing no";; 6465 esac 6466 6467else 6468 cat >conftest.$ac_ext <<_ACEOF 6469/* confdefs.h. */ 6470_ACEOF 6471cat confdefs.h >>conftest.$ac_ext 6472cat >>conftest.$ac_ext <<_ACEOF 6473/* end confdefs.h. */ 6474 6475#include <stdlib.h> 6476#include <signal.h> 6477 6478static void 6479#ifdef __cplusplus 6480sigfpe_handler (int sig) 6481#else 6482sigfpe_handler (sig) int sig; 6483#endif 6484{ 6485 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 6486 exit (sig != SIGFPE); 6487} 6488 6489int x = 1; 6490int y = 0; 6491int z; 6492int nan; 6493 6494int main () 6495{ 6496 signal (SIGFPE, sigfpe_handler); 6497/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 6498#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 6499 signal (SIGTRAP, sigfpe_handler); 6500#endif 6501/* Linux/SPARC yields signal SIGILL. */ 6502#if defined (__sparc__) && defined (__linux__) 6503 signal (SIGILL, sigfpe_handler); 6504#endif 6505 6506 z = x / y; 6507 nan = y / y; 6508 exit (1); 6509} 6510 6511_ACEOF 6512rm -f conftest$ac_exeext 6513if { (ac_try="$ac_link" 6514case "(($ac_try" in 6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6516 *) ac_try_echo=$ac_try;; 6517esac 6518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6519 (eval "$ac_link") 2>&5 6520 ac_status=$? 6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6523 { (case "(($ac_try" in 6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6525 *) ac_try_echo=$ac_try;; 6526esac 6527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6528 (eval "$ac_try") 2>&5 6529 ac_status=$? 6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6531 (exit $ac_status); }; }; then 6532 gt_cv_int_divbyzero_sigfpe=yes 6533else 6534 echo "$as_me: program exited with status $ac_status" >&5 6535echo "$as_me: failed program was:" >&5 6536sed 's/^/| /' conftest.$ac_ext >&5 6537 6538( exit $ac_status ) 6539gt_cv_int_divbyzero_sigfpe=no 6540fi 6541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6542fi 6543 6544 6545 6546fi 6547{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 6548echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } 6549 case "$gt_cv_int_divbyzero_sigfpe" in 6550 *yes) value=1;; 6551 *) value=0;; 6552 esac 6553 6554cat >>confdefs.h <<_ACEOF 6555#define INTDIV0_RAISES_SIGFPE $value 6556_ACEOF 6557 6558 6559 6560 { echo "$as_me:$LINENO: checking for unsigned long long" >&5 6561echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } 6562if test "${ac_cv_type_unsigned_long_long+set}" = set; then 6563 echo $ECHO_N "(cached) $ECHO_C" >&6 6564else 6565 cat >conftest.$ac_ext <<_ACEOF 6566/* confdefs.h. */ 6567_ACEOF 6568cat confdefs.h >>conftest.$ac_ext 6569cat >>conftest.$ac_ext <<_ACEOF 6570/* end confdefs.h. */ 6571unsigned long long ull = 1ULL; int i = 63; 6572int 6573main () 6574{ 6575unsigned long long ullmax = (unsigned long long) -1; 6576 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 6577 ; 6578 return 0; 6579} 6580_ACEOF 6581rm -f conftest.$ac_objext conftest$ac_exeext 6582if { (ac_try="$ac_link" 6583case "(($ac_try" in 6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6585 *) ac_try_echo=$ac_try;; 6586esac 6587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6588 (eval "$ac_link") 2>conftest.er1 6589 ac_status=$? 6590 grep -v '^ *+' conftest.er1 >conftest.err 6591 rm -f conftest.er1 6592 cat conftest.err >&5 6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6594 (exit $ac_status); } && { 6595 test -z "$ac_c_werror_flag" || 6596 test ! -s conftest.err 6597 } && test -s conftest$ac_exeext && 6598 $as_test_x conftest$ac_exeext; then 6599 ac_cv_type_unsigned_long_long=yes 6600else 6601 echo "$as_me: failed program was:" >&5 6602sed 's/^/| /' conftest.$ac_ext >&5 6603 6604 ac_cv_type_unsigned_long_long=no 6605fi 6606 6607rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6608 conftest$ac_exeext conftest.$ac_ext 6609fi 6610{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 6611echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } 6612 if test $ac_cv_type_unsigned_long_long = yes; then 6613 6614cat >>confdefs.h <<\_ACEOF 6615#define HAVE_UNSIGNED_LONG_LONG 1 6616_ACEOF 6617 6618 fi 6619 6620 6621 6622 6623 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 6624 6625 test $ac_cv_type_unsigned_long_long = yes \ 6626 && ac_type='unsigned long long' \ 6627 || ac_type='unsigned long' 6628 6629cat >>confdefs.h <<_ACEOF 6630#define uintmax_t $ac_type 6631_ACEOF 6632 6633 else 6634 6635cat >>confdefs.h <<\_ACEOF 6636#define HAVE_UINTMAX_T 1 6637_ACEOF 6638 6639 fi 6640 6641 6642 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 6643echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 6644if test "${gt_cv_header_inttypes_h+set}" = set; then 6645 echo $ECHO_N "(cached) $ECHO_C" >&6 6646else 6647 6648 cat >conftest.$ac_ext <<_ACEOF 6649/* confdefs.h. */ 6650_ACEOF 6651cat confdefs.h >>conftest.$ac_ext 6652cat >>conftest.$ac_ext <<_ACEOF 6653/* end confdefs.h. */ 6654#include <sys/types.h> 6655#include <inttypes.h> 6656int 6657main () 6658{ 6659 6660 ; 6661 return 0; 6662} 6663_ACEOF 6664rm -f conftest.$ac_objext 6665if { (ac_try="$ac_compile" 6666case "(($ac_try" in 6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6668 *) ac_try_echo=$ac_try;; 6669esac 6670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6671 (eval "$ac_compile") 2>conftest.er1 6672 ac_status=$? 6673 grep -v '^ *+' conftest.er1 >conftest.err 6674 rm -f conftest.er1 6675 cat conftest.err >&5 6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6677 (exit $ac_status); } && { 6678 test -z "$ac_c_werror_flag" || 6679 test ! -s conftest.err 6680 } && test -s conftest.$ac_objext; then 6681 gt_cv_header_inttypes_h=yes 6682else 6683 echo "$as_me: failed program was:" >&5 6684sed 's/^/| /' conftest.$ac_ext >&5 6685 6686 gt_cv_header_inttypes_h=no 6687fi 6688 6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6690 6691fi 6692{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 6693echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } 6694 if test $gt_cv_header_inttypes_h = yes; then 6695 6696cat >>confdefs.h <<_ACEOF 6697#define HAVE_INTTYPES_H 1 6698_ACEOF 6699 6700 fi 6701 6702 6703 6704 if test $gt_cv_header_inttypes_h = yes; then 6705 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 6706echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } 6707if test "${gt_cv_inttypes_pri_broken+set}" = set; then 6708 echo $ECHO_N "(cached) $ECHO_C" >&6 6709else 6710 6711 cat >conftest.$ac_ext <<_ACEOF 6712/* confdefs.h. */ 6713_ACEOF 6714cat confdefs.h >>conftest.$ac_ext 6715cat >>conftest.$ac_ext <<_ACEOF 6716/* end confdefs.h. */ 6717#include <inttypes.h> 6718#ifdef PRId32 6719char *p = PRId32; 6720#endif 6721 6722int 6723main () 6724{ 6725 6726 ; 6727 return 0; 6728} 6729_ACEOF 6730rm -f conftest.$ac_objext 6731if { (ac_try="$ac_compile" 6732case "(($ac_try" in 6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6734 *) ac_try_echo=$ac_try;; 6735esac 6736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6737 (eval "$ac_compile") 2>conftest.er1 6738 ac_status=$? 6739 grep -v '^ *+' conftest.er1 >conftest.err 6740 rm -f conftest.er1 6741 cat conftest.err >&5 6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6743 (exit $ac_status); } && { 6744 test -z "$ac_c_werror_flag" || 6745 test ! -s conftest.err 6746 } && test -s conftest.$ac_objext; then 6747 gt_cv_inttypes_pri_broken=no 6748else 6749 echo "$as_me: failed program was:" >&5 6750sed 's/^/| /' conftest.$ac_ext >&5 6751 6752 gt_cv_inttypes_pri_broken=yes 6753fi 6754 6755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6756 6757fi 6758{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 6759echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } 6760 fi 6761 if test "$gt_cv_inttypes_pri_broken" = yes; then 6762 6763cat >>confdefs.h <<_ACEOF 6764#define PRI_MACROS_BROKEN 1 6765_ACEOF 6766 6767 fi 6768 6769 6770 6771for ac_header in stdint.h 6772do 6773as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6775 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6778 echo $ECHO_N "(cached) $ECHO_C" >&6 6779fi 6780ac_res=`eval echo '${'$as_ac_Header'}'` 6781 { echo "$as_me:$LINENO: result: $ac_res" >&5 6782echo "${ECHO_T}$ac_res" >&6; } 6783else 6784 # Is the header compilable? 6785{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6787cat >conftest.$ac_ext <<_ACEOF 6788/* confdefs.h. */ 6789_ACEOF 6790cat confdefs.h >>conftest.$ac_ext 6791cat >>conftest.$ac_ext <<_ACEOF 6792/* end confdefs.h. */ 6793$ac_includes_default 6794#include <$ac_header> 6795_ACEOF 6796rm -f conftest.$ac_objext 6797if { (ac_try="$ac_compile" 6798case "(($ac_try" in 6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6800 *) ac_try_echo=$ac_try;; 6801esac 6802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6803 (eval "$ac_compile") 2>conftest.er1 6804 ac_status=$? 6805 grep -v '^ *+' conftest.er1 >conftest.err 6806 rm -f conftest.er1 6807 cat conftest.err >&5 6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6809 (exit $ac_status); } && { 6810 test -z "$ac_c_werror_flag" || 6811 test ! -s conftest.err 6812 } && test -s conftest.$ac_objext; then 6813 ac_header_compiler=yes 6814else 6815 echo "$as_me: failed program was:" >&5 6816sed 's/^/| /' conftest.$ac_ext >&5 6817 6818 ac_header_compiler=no 6819fi 6820 6821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6822{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6823echo "${ECHO_T}$ac_header_compiler" >&6; } 6824 6825# Is the header present? 6826{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6827echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6828cat >conftest.$ac_ext <<_ACEOF 6829/* confdefs.h. */ 6830_ACEOF 6831cat confdefs.h >>conftest.$ac_ext 6832cat >>conftest.$ac_ext <<_ACEOF 6833/* end confdefs.h. */ 6834#include <$ac_header> 6835_ACEOF 6836if { (ac_try="$ac_cpp conftest.$ac_ext" 6837case "(($ac_try" in 6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6839 *) ac_try_echo=$ac_try;; 6840esac 6841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6843 ac_status=$? 6844 grep -v '^ *+' conftest.er1 >conftest.err 6845 rm -f conftest.er1 6846 cat conftest.err >&5 6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6848 (exit $ac_status); } >/dev/null && { 6849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6850 test ! -s conftest.err 6851 }; then 6852 ac_header_preproc=yes 6853else 6854 echo "$as_me: failed program was:" >&5 6855sed 's/^/| /' conftest.$ac_ext >&5 6856 6857 ac_header_preproc=no 6858fi 6859 6860rm -f conftest.err conftest.$ac_ext 6861{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6862echo "${ECHO_T}$ac_header_preproc" >&6; } 6863 6864# So? What about this header? 6865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6866 yes:no: ) 6867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6868echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6870echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6871 ac_header_preproc=yes 6872 ;; 6873 no:yes:* ) 6874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6875echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6877echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6879echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6881echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6883echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6885echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6886 6887 ;; 6888esac 6889{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6891if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6892 echo $ECHO_N "(cached) $ECHO_C" >&6 6893else 6894 eval "$as_ac_Header=\$ac_header_preproc" 6895fi 6896ac_res=`eval echo '${'$as_ac_Header'}'` 6897 { echo "$as_me:$LINENO: result: $ac_res" >&5 6898echo "${ECHO_T}$ac_res" >&6; } 6899 6900fi 6901if test `eval echo '${'$as_ac_Header'}'` = yes; then 6902 cat >>confdefs.h <<_ACEOF 6903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6904_ACEOF 6905 6906fi 6907 6908done 6909 6910 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 6911echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } 6912 result= 6913 cat >conftest.$ac_ext <<_ACEOF 6914/* confdefs.h. */ 6915_ACEOF 6916cat confdefs.h >>conftest.$ac_ext 6917cat >>conftest.$ac_ext <<_ACEOF 6918/* end confdefs.h. */ 6919 6920#include <limits.h> 6921#if HAVE_STDINT_H 6922#include <stdint.h> 6923#endif 6924#ifdef SIZE_MAX 6925Found it 6926#endif 6927 6928_ACEOF 6929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6930 $EGREP "Found it" >/dev/null 2>&1; then 6931 result=yes 6932fi 6933rm -f conftest* 6934 6935 if test -z "$result"; then 6936 if test "$cross_compiling" = yes; then 6937 # Depending upon the size, compute the lo and hi bounds. 6938cat >conftest.$ac_ext <<_ACEOF 6939/* confdefs.h. */ 6940_ACEOF 6941cat confdefs.h >>conftest.$ac_ext 6942cat >>conftest.$ac_ext <<_ACEOF 6943/* end confdefs.h. */ 6944#include <stddef.h> 6945int 6946main () 6947{ 6948static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; 6949test_array [0] = 0 6950 6951 ; 6952 return 0; 6953} 6954_ACEOF 6955rm -f conftest.$ac_objext 6956if { (ac_try="$ac_compile" 6957case "(($ac_try" in 6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6959 *) ac_try_echo=$ac_try;; 6960esac 6961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6962 (eval "$ac_compile") 2>conftest.er1 6963 ac_status=$? 6964 grep -v '^ *+' conftest.er1 >conftest.err 6965 rm -f conftest.er1 6966 cat conftest.err >&5 6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6968 (exit $ac_status); } && { 6969 test -z "$ac_c_werror_flag" || 6970 test ! -s conftest.err 6971 } && test -s conftest.$ac_objext; then 6972 ac_lo=0 ac_mid=0 6973 while :; do 6974 cat >conftest.$ac_ext <<_ACEOF 6975/* confdefs.h. */ 6976_ACEOF 6977cat confdefs.h >>conftest.$ac_ext 6978cat >>conftest.$ac_ext <<_ACEOF 6979/* end confdefs.h. */ 6980#include <stddef.h> 6981int 6982main () 6983{ 6984static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 6985test_array [0] = 0 6986 6987 ; 6988 return 0; 6989} 6990_ACEOF 6991rm -f conftest.$ac_objext 6992if { (ac_try="$ac_compile" 6993case "(($ac_try" in 6994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6995 *) ac_try_echo=$ac_try;; 6996esac 6997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6998 (eval "$ac_compile") 2>conftest.er1 6999 ac_status=$? 7000 grep -v '^ *+' conftest.er1 >conftest.err 7001 rm -f conftest.er1 7002 cat conftest.err >&5 7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7004 (exit $ac_status); } && { 7005 test -z "$ac_c_werror_flag" || 7006 test ! -s conftest.err 7007 } && test -s conftest.$ac_objext; then 7008 ac_hi=$ac_mid; break 7009else 7010 echo "$as_me: failed program was:" >&5 7011sed 's/^/| /' conftest.$ac_ext >&5 7012 7013 ac_lo=`expr $ac_mid + 1` 7014 if test $ac_lo -le $ac_mid; then 7015 ac_lo= ac_hi= 7016 break 7017 fi 7018 ac_mid=`expr 2 '*' $ac_mid + 1` 7019fi 7020 7021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7022 done 7023else 7024 echo "$as_me: failed program was:" >&5 7025sed 's/^/| /' conftest.$ac_ext >&5 7026 7027 cat >conftest.$ac_ext <<_ACEOF 7028/* confdefs.h. */ 7029_ACEOF 7030cat confdefs.h >>conftest.$ac_ext 7031cat >>conftest.$ac_ext <<_ACEOF 7032/* end confdefs.h. */ 7033#include <stddef.h> 7034int 7035main () 7036{ 7037static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; 7038test_array [0] = 0 7039 7040 ; 7041 return 0; 7042} 7043_ACEOF 7044rm -f conftest.$ac_objext 7045if { (ac_try="$ac_compile" 7046case "(($ac_try" in 7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7048 *) ac_try_echo=$ac_try;; 7049esac 7050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7051 (eval "$ac_compile") 2>conftest.er1 7052 ac_status=$? 7053 grep -v '^ *+' conftest.er1 >conftest.err 7054 rm -f conftest.er1 7055 cat conftest.err >&5 7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7057 (exit $ac_status); } && { 7058 test -z "$ac_c_werror_flag" || 7059 test ! -s conftest.err 7060 } && test -s conftest.$ac_objext; then 7061 ac_hi=-1 ac_mid=-1 7062 while :; do 7063 cat >conftest.$ac_ext <<_ACEOF 7064/* confdefs.h. */ 7065_ACEOF 7066cat confdefs.h >>conftest.$ac_ext 7067cat >>conftest.$ac_ext <<_ACEOF 7068/* end confdefs.h. */ 7069#include <stddef.h> 7070int 7071main () 7072{ 7073static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; 7074test_array [0] = 0 7075 7076 ; 7077 return 0; 7078} 7079_ACEOF 7080rm -f conftest.$ac_objext 7081if { (ac_try="$ac_compile" 7082case "(($ac_try" in 7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7084 *) ac_try_echo=$ac_try;; 7085esac 7086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7087 (eval "$ac_compile") 2>conftest.er1 7088 ac_status=$? 7089 grep -v '^ *+' conftest.er1 >conftest.err 7090 rm -f conftest.er1 7091 cat conftest.err >&5 7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7093 (exit $ac_status); } && { 7094 test -z "$ac_c_werror_flag" || 7095 test ! -s conftest.err 7096 } && test -s conftest.$ac_objext; then 7097 ac_lo=$ac_mid; break 7098else 7099 echo "$as_me: failed program was:" >&5 7100sed 's/^/| /' conftest.$ac_ext >&5 7101 7102 ac_hi=`expr '(' $ac_mid ')' - 1` 7103 if test $ac_mid -le $ac_hi; then 7104 ac_lo= ac_hi= 7105 break 7106 fi 7107 ac_mid=`expr 2 '*' $ac_mid` 7108fi 7109 7110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7111 done 7112else 7113 echo "$as_me: failed program was:" >&5 7114sed 's/^/| /' conftest.$ac_ext >&5 7115 7116 ac_lo= ac_hi= 7117fi 7118 7119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7120fi 7121 7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7123# Binary search between lo and hi bounds. 7124while test "x$ac_lo" != "x$ac_hi"; do 7125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7126 cat >conftest.$ac_ext <<_ACEOF 7127/* confdefs.h. */ 7128_ACEOF 7129cat confdefs.h >>conftest.$ac_ext 7130cat >>conftest.$ac_ext <<_ACEOF 7131/* end confdefs.h. */ 7132#include <stddef.h> 7133int 7134main () 7135{ 7136static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 7137test_array [0] = 0 7138 7139 ; 7140 return 0; 7141} 7142_ACEOF 7143rm -f conftest.$ac_objext 7144if { (ac_try="$ac_compile" 7145case "(($ac_try" in 7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7147 *) ac_try_echo=$ac_try;; 7148esac 7149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7150 (eval "$ac_compile") 2>conftest.er1 7151 ac_status=$? 7152 grep -v '^ *+' conftest.er1 >conftest.err 7153 rm -f conftest.er1 7154 cat conftest.err >&5 7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7156 (exit $ac_status); } && { 7157 test -z "$ac_c_werror_flag" || 7158 test ! -s conftest.err 7159 } && test -s conftest.$ac_objext; then 7160 ac_hi=$ac_mid 7161else 7162 echo "$as_me: failed program was:" >&5 7163sed 's/^/| /' conftest.$ac_ext >&5 7164 7165 ac_lo=`expr '(' $ac_mid ')' + 1` 7166fi 7167 7168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7169done 7170case $ac_lo in 7171?*) res_hi=$ac_lo;; 7172'') result=? ;; 7173esac 7174else 7175 cat >conftest.$ac_ext <<_ACEOF 7176/* confdefs.h. */ 7177_ACEOF 7178cat confdefs.h >>conftest.$ac_ext 7179cat >>conftest.$ac_ext <<_ACEOF 7180/* end confdefs.h. */ 7181#include <stddef.h> 7182static long int longval () { return ~(size_t)0 / 10; } 7183static unsigned long int ulongval () { return ~(size_t)0 / 10; } 7184#include <stdio.h> 7185#include <stdlib.h> 7186int 7187main () 7188{ 7189 7190 FILE *f = fopen ("conftest.val", "w"); 7191 if (! f) 7192 return 1; 7193 if ((~(size_t)0 / 10) < 0) 7194 { 7195 long int i = longval (); 7196 if (i != (~(size_t)0 / 10)) 7197 return 1; 7198 fprintf (f, "%ld\n", i); 7199 } 7200 else 7201 { 7202 unsigned long int i = ulongval (); 7203 if (i != (~(size_t)0 / 10)) 7204 return 1; 7205 fprintf (f, "%lu\n", i); 7206 } 7207 return ferror (f) || fclose (f) != 0; 7208 7209 ; 7210 return 0; 7211} 7212_ACEOF 7213rm -f conftest$ac_exeext 7214if { (ac_try="$ac_link" 7215case "(($ac_try" in 7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7217 *) ac_try_echo=$ac_try;; 7218esac 7219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7220 (eval "$ac_link") 2>&5 7221 ac_status=$? 7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7224 { (case "(($ac_try" in 7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7226 *) ac_try_echo=$ac_try;; 7227esac 7228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7229 (eval "$ac_try") 2>&5 7230 ac_status=$? 7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7232 (exit $ac_status); }; }; then 7233 res_hi=`cat conftest.val` 7234else 7235 echo "$as_me: program exited with status $ac_status" >&5 7236echo "$as_me: failed program was:" >&5 7237sed 's/^/| /' conftest.$ac_ext >&5 7238 7239( exit $ac_status ) 7240result=? 7241fi 7242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7243fi 7244rm -f conftest.val 7245 7246 if test "$cross_compiling" = yes; then 7247 # Depending upon the size, compute the lo and hi bounds. 7248cat >conftest.$ac_ext <<_ACEOF 7249/* confdefs.h. */ 7250_ACEOF 7251cat confdefs.h >>conftest.$ac_ext 7252cat >>conftest.$ac_ext <<_ACEOF 7253/* end confdefs.h. */ 7254#include <stddef.h> 7255int 7256main () 7257{ 7258static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; 7259test_array [0] = 0 7260 7261 ; 7262 return 0; 7263} 7264_ACEOF 7265rm -f conftest.$ac_objext 7266if { (ac_try="$ac_compile" 7267case "(($ac_try" in 7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7269 *) ac_try_echo=$ac_try;; 7270esac 7271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7272 (eval "$ac_compile") 2>conftest.er1 7273 ac_status=$? 7274 grep -v '^ *+' conftest.er1 >conftest.err 7275 rm -f conftest.er1 7276 cat conftest.err >&5 7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7278 (exit $ac_status); } && { 7279 test -z "$ac_c_werror_flag" || 7280 test ! -s conftest.err 7281 } && test -s conftest.$ac_objext; then 7282 ac_lo=0 ac_mid=0 7283 while :; do 7284 cat >conftest.$ac_ext <<_ACEOF 7285/* confdefs.h. */ 7286_ACEOF 7287cat confdefs.h >>conftest.$ac_ext 7288cat >>conftest.$ac_ext <<_ACEOF 7289/* end confdefs.h. */ 7290#include <stddef.h> 7291int 7292main () 7293{ 7294static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 7295test_array [0] = 0 7296 7297 ; 7298 return 0; 7299} 7300_ACEOF 7301rm -f conftest.$ac_objext 7302if { (ac_try="$ac_compile" 7303case "(($ac_try" in 7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7305 *) ac_try_echo=$ac_try;; 7306esac 7307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7308 (eval "$ac_compile") 2>conftest.er1 7309 ac_status=$? 7310 grep -v '^ *+' conftest.er1 >conftest.err 7311 rm -f conftest.er1 7312 cat conftest.err >&5 7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7314 (exit $ac_status); } && { 7315 test -z "$ac_c_werror_flag" || 7316 test ! -s conftest.err 7317 } && test -s conftest.$ac_objext; then 7318 ac_hi=$ac_mid; break 7319else 7320 echo "$as_me: failed program was:" >&5 7321sed 's/^/| /' conftest.$ac_ext >&5 7322 7323 ac_lo=`expr $ac_mid + 1` 7324 if test $ac_lo -le $ac_mid; then 7325 ac_lo= ac_hi= 7326 break 7327 fi 7328 ac_mid=`expr 2 '*' $ac_mid + 1` 7329fi 7330 7331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7332 done 7333else 7334 echo "$as_me: failed program was:" >&5 7335sed 's/^/| /' conftest.$ac_ext >&5 7336 7337 cat >conftest.$ac_ext <<_ACEOF 7338/* confdefs.h. */ 7339_ACEOF 7340cat confdefs.h >>conftest.$ac_ext 7341cat >>conftest.$ac_ext <<_ACEOF 7342/* end confdefs.h. */ 7343#include <stddef.h> 7344int 7345main () 7346{ 7347static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; 7348test_array [0] = 0 7349 7350 ; 7351 return 0; 7352} 7353_ACEOF 7354rm -f conftest.$ac_objext 7355if { (ac_try="$ac_compile" 7356case "(($ac_try" in 7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7358 *) ac_try_echo=$ac_try;; 7359esac 7360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7361 (eval "$ac_compile") 2>conftest.er1 7362 ac_status=$? 7363 grep -v '^ *+' conftest.er1 >conftest.err 7364 rm -f conftest.er1 7365 cat conftest.err >&5 7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7367 (exit $ac_status); } && { 7368 test -z "$ac_c_werror_flag" || 7369 test ! -s conftest.err 7370 } && test -s conftest.$ac_objext; then 7371 ac_hi=-1 ac_mid=-1 7372 while :; do 7373 cat >conftest.$ac_ext <<_ACEOF 7374/* confdefs.h. */ 7375_ACEOF 7376cat confdefs.h >>conftest.$ac_ext 7377cat >>conftest.$ac_ext <<_ACEOF 7378/* end confdefs.h. */ 7379#include <stddef.h> 7380int 7381main () 7382{ 7383static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; 7384test_array [0] = 0 7385 7386 ; 7387 return 0; 7388} 7389_ACEOF 7390rm -f conftest.$ac_objext 7391if { (ac_try="$ac_compile" 7392case "(($ac_try" in 7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7394 *) ac_try_echo=$ac_try;; 7395esac 7396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7397 (eval "$ac_compile") 2>conftest.er1 7398 ac_status=$? 7399 grep -v '^ *+' conftest.er1 >conftest.err 7400 rm -f conftest.er1 7401 cat conftest.err >&5 7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7403 (exit $ac_status); } && { 7404 test -z "$ac_c_werror_flag" || 7405 test ! -s conftest.err 7406 } && test -s conftest.$ac_objext; then 7407 ac_lo=$ac_mid; break 7408else 7409 echo "$as_me: failed program was:" >&5 7410sed 's/^/| /' conftest.$ac_ext >&5 7411 7412 ac_hi=`expr '(' $ac_mid ')' - 1` 7413 if test $ac_mid -le $ac_hi; then 7414 ac_lo= ac_hi= 7415 break 7416 fi 7417 ac_mid=`expr 2 '*' $ac_mid` 7418fi 7419 7420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7421 done 7422else 7423 echo "$as_me: failed program was:" >&5 7424sed 's/^/| /' conftest.$ac_ext >&5 7425 7426 ac_lo= ac_hi= 7427fi 7428 7429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7430fi 7431 7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7433# Binary search between lo and hi bounds. 7434while test "x$ac_lo" != "x$ac_hi"; do 7435 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7436 cat >conftest.$ac_ext <<_ACEOF 7437/* confdefs.h. */ 7438_ACEOF 7439cat confdefs.h >>conftest.$ac_ext 7440cat >>conftest.$ac_ext <<_ACEOF 7441/* end confdefs.h. */ 7442#include <stddef.h> 7443int 7444main () 7445{ 7446static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 7447test_array [0] = 0 7448 7449 ; 7450 return 0; 7451} 7452_ACEOF 7453rm -f conftest.$ac_objext 7454if { (ac_try="$ac_compile" 7455case "(($ac_try" in 7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7457 *) ac_try_echo=$ac_try;; 7458esac 7459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7460 (eval "$ac_compile") 2>conftest.er1 7461 ac_status=$? 7462 grep -v '^ *+' conftest.er1 >conftest.err 7463 rm -f conftest.er1 7464 cat conftest.err >&5 7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7466 (exit $ac_status); } && { 7467 test -z "$ac_c_werror_flag" || 7468 test ! -s conftest.err 7469 } && test -s conftest.$ac_objext; then 7470 ac_hi=$ac_mid 7471else 7472 echo "$as_me: failed program was:" >&5 7473sed 's/^/| /' conftest.$ac_ext >&5 7474 7475 ac_lo=`expr '(' $ac_mid ')' + 1` 7476fi 7477 7478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7479done 7480case $ac_lo in 7481?*) res_lo=$ac_lo;; 7482'') result=? ;; 7483esac 7484else 7485 cat >conftest.$ac_ext <<_ACEOF 7486/* confdefs.h. */ 7487_ACEOF 7488cat confdefs.h >>conftest.$ac_ext 7489cat >>conftest.$ac_ext <<_ACEOF 7490/* end confdefs.h. */ 7491#include <stddef.h> 7492static long int longval () { return ~(size_t)0 % 10; } 7493static unsigned long int ulongval () { return ~(size_t)0 % 10; } 7494#include <stdio.h> 7495#include <stdlib.h> 7496int 7497main () 7498{ 7499 7500 FILE *f = fopen ("conftest.val", "w"); 7501 if (! f) 7502 return 1; 7503 if ((~(size_t)0 % 10) < 0) 7504 { 7505 long int i = longval (); 7506 if (i != (~(size_t)0 % 10)) 7507 return 1; 7508 fprintf (f, "%ld\n", i); 7509 } 7510 else 7511 { 7512 unsigned long int i = ulongval (); 7513 if (i != (~(size_t)0 % 10)) 7514 return 1; 7515 fprintf (f, "%lu\n", i); 7516 } 7517 return ferror (f) || fclose (f) != 0; 7518 7519 ; 7520 return 0; 7521} 7522_ACEOF 7523rm -f conftest$ac_exeext 7524if { (ac_try="$ac_link" 7525case "(($ac_try" in 7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7527 *) ac_try_echo=$ac_try;; 7528esac 7529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7530 (eval "$ac_link") 2>&5 7531 ac_status=$? 7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7534 { (case "(($ac_try" in 7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7536 *) ac_try_echo=$ac_try;; 7537esac 7538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7539 (eval "$ac_try") 2>&5 7540 ac_status=$? 7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7542 (exit $ac_status); }; }; then 7543 res_lo=`cat conftest.val` 7544else 7545 echo "$as_me: program exited with status $ac_status" >&5 7546echo "$as_me: failed program was:" >&5 7547sed 's/^/| /' conftest.$ac_ext >&5 7548 7549( exit $ac_status ) 7550result=? 7551fi 7552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7553fi 7554rm -f conftest.val 7555 7556 if test "$cross_compiling" = yes; then 7557 # Depending upon the size, compute the lo and hi bounds. 7558cat >conftest.$ac_ext <<_ACEOF 7559/* confdefs.h. */ 7560_ACEOF 7561cat confdefs.h >>conftest.$ac_ext 7562cat >>conftest.$ac_ext <<_ACEOF 7563/* end confdefs.h. */ 7564#include <stddef.h> 7565int 7566main () 7567{ 7568static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 7569test_array [0] = 0 7570 7571 ; 7572 return 0; 7573} 7574_ACEOF 7575rm -f conftest.$ac_objext 7576if { (ac_try="$ac_compile" 7577case "(($ac_try" in 7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7579 *) ac_try_echo=$ac_try;; 7580esac 7581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7582 (eval "$ac_compile") 2>conftest.er1 7583 ac_status=$? 7584 grep -v '^ *+' conftest.er1 >conftest.err 7585 rm -f conftest.er1 7586 cat conftest.err >&5 7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7588 (exit $ac_status); } && { 7589 test -z "$ac_c_werror_flag" || 7590 test ! -s conftest.err 7591 } && test -s conftest.$ac_objext; then 7592 ac_lo=0 ac_mid=0 7593 while :; do 7594 cat >conftest.$ac_ext <<_ACEOF 7595/* confdefs.h. */ 7596_ACEOF 7597cat confdefs.h >>conftest.$ac_ext 7598cat >>conftest.$ac_ext <<_ACEOF 7599/* end confdefs.h. */ 7600#include <stddef.h> 7601int 7602main () 7603{ 7604static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 7605test_array [0] = 0 7606 7607 ; 7608 return 0; 7609} 7610_ACEOF 7611rm -f conftest.$ac_objext 7612if { (ac_try="$ac_compile" 7613case "(($ac_try" in 7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7615 *) ac_try_echo=$ac_try;; 7616esac 7617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7618 (eval "$ac_compile") 2>conftest.er1 7619 ac_status=$? 7620 grep -v '^ *+' conftest.er1 >conftest.err 7621 rm -f conftest.er1 7622 cat conftest.err >&5 7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7624 (exit $ac_status); } && { 7625 test -z "$ac_c_werror_flag" || 7626 test ! -s conftest.err 7627 } && test -s conftest.$ac_objext; then 7628 ac_hi=$ac_mid; break 7629else 7630 echo "$as_me: failed program was:" >&5 7631sed 's/^/| /' conftest.$ac_ext >&5 7632 7633 ac_lo=`expr $ac_mid + 1` 7634 if test $ac_lo -le $ac_mid; then 7635 ac_lo= ac_hi= 7636 break 7637 fi 7638 ac_mid=`expr 2 '*' $ac_mid + 1` 7639fi 7640 7641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7642 done 7643else 7644 echo "$as_me: failed program was:" >&5 7645sed 's/^/| /' conftest.$ac_ext >&5 7646 7647 cat >conftest.$ac_ext <<_ACEOF 7648/* confdefs.h. */ 7649_ACEOF 7650cat confdefs.h >>conftest.$ac_ext 7651cat >>conftest.$ac_ext <<_ACEOF 7652/* end confdefs.h. */ 7653#include <stddef.h> 7654int 7655main () 7656{ 7657static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 7658test_array [0] = 0 7659 7660 ; 7661 return 0; 7662} 7663_ACEOF 7664rm -f conftest.$ac_objext 7665if { (ac_try="$ac_compile" 7666case "(($ac_try" in 7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7668 *) ac_try_echo=$ac_try;; 7669esac 7670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7671 (eval "$ac_compile") 2>conftest.er1 7672 ac_status=$? 7673 grep -v '^ *+' conftest.er1 >conftest.err 7674 rm -f conftest.er1 7675 cat conftest.err >&5 7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7677 (exit $ac_status); } && { 7678 test -z "$ac_c_werror_flag" || 7679 test ! -s conftest.err 7680 } && test -s conftest.$ac_objext; then 7681 ac_hi=-1 ac_mid=-1 7682 while :; do 7683 cat >conftest.$ac_ext <<_ACEOF 7684/* confdefs.h. */ 7685_ACEOF 7686cat confdefs.h >>conftest.$ac_ext 7687cat >>conftest.$ac_ext <<_ACEOF 7688/* end confdefs.h. */ 7689#include <stddef.h> 7690int 7691main () 7692{ 7693static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 7694test_array [0] = 0 7695 7696 ; 7697 return 0; 7698} 7699_ACEOF 7700rm -f conftest.$ac_objext 7701if { (ac_try="$ac_compile" 7702case "(($ac_try" in 7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7704 *) ac_try_echo=$ac_try;; 7705esac 7706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7707 (eval "$ac_compile") 2>conftest.er1 7708 ac_status=$? 7709 grep -v '^ *+' conftest.er1 >conftest.err 7710 rm -f conftest.er1 7711 cat conftest.err >&5 7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7713 (exit $ac_status); } && { 7714 test -z "$ac_c_werror_flag" || 7715 test ! -s conftest.err 7716 } && test -s conftest.$ac_objext; then 7717 ac_lo=$ac_mid; break 7718else 7719 echo "$as_me: failed program was:" >&5 7720sed 's/^/| /' conftest.$ac_ext >&5 7721 7722 ac_hi=`expr '(' $ac_mid ')' - 1` 7723 if test $ac_mid -le $ac_hi; then 7724 ac_lo= ac_hi= 7725 break 7726 fi 7727 ac_mid=`expr 2 '*' $ac_mid` 7728fi 7729 7730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7731 done 7732else 7733 echo "$as_me: failed program was:" >&5 7734sed 's/^/| /' conftest.$ac_ext >&5 7735 7736 ac_lo= ac_hi= 7737fi 7738 7739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7740fi 7741 7742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7743# Binary search between lo and hi bounds. 7744while test "x$ac_lo" != "x$ac_hi"; do 7745 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7746 cat >conftest.$ac_ext <<_ACEOF 7747/* confdefs.h. */ 7748_ACEOF 7749cat confdefs.h >>conftest.$ac_ext 7750cat >>conftest.$ac_ext <<_ACEOF 7751/* end confdefs.h. */ 7752#include <stddef.h> 7753int 7754main () 7755{ 7756static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 7757test_array [0] = 0 7758 7759 ; 7760 return 0; 7761} 7762_ACEOF 7763rm -f conftest.$ac_objext 7764if { (ac_try="$ac_compile" 7765case "(($ac_try" in 7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7767 *) ac_try_echo=$ac_try;; 7768esac 7769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7770 (eval "$ac_compile") 2>conftest.er1 7771 ac_status=$? 7772 grep -v '^ *+' conftest.er1 >conftest.err 7773 rm -f conftest.er1 7774 cat conftest.err >&5 7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7776 (exit $ac_status); } && { 7777 test -z "$ac_c_werror_flag" || 7778 test ! -s conftest.err 7779 } && test -s conftest.$ac_objext; then 7780 ac_hi=$ac_mid 7781else 7782 echo "$as_me: failed program was:" >&5 7783sed 's/^/| /' conftest.$ac_ext >&5 7784 7785 ac_lo=`expr '(' $ac_mid ')' + 1` 7786fi 7787 7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7789done 7790case $ac_lo in 7791?*) fits_in_uint=$ac_lo;; 7792'') result=? ;; 7793esac 7794else 7795 cat >conftest.$ac_ext <<_ACEOF 7796/* confdefs.h. */ 7797_ACEOF 7798cat confdefs.h >>conftest.$ac_ext 7799cat >>conftest.$ac_ext <<_ACEOF 7800/* end confdefs.h. */ 7801#include <stddef.h> 7802static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } 7803static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 7804#include <stdio.h> 7805#include <stdlib.h> 7806int 7807main () 7808{ 7809 7810 FILE *f = fopen ("conftest.val", "w"); 7811 if (! f) 7812 return 1; 7813 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 7814 { 7815 long int i = longval (); 7816 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 7817 return 1; 7818 fprintf (f, "%ld\n", i); 7819 } 7820 else 7821 { 7822 unsigned long int i = ulongval (); 7823 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 7824 return 1; 7825 fprintf (f, "%lu\n", i); 7826 } 7827 return ferror (f) || fclose (f) != 0; 7828 7829 ; 7830 return 0; 7831} 7832_ACEOF 7833rm -f conftest$ac_exeext 7834if { (ac_try="$ac_link" 7835case "(($ac_try" in 7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7837 *) ac_try_echo=$ac_try;; 7838esac 7839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7840 (eval "$ac_link") 2>&5 7841 ac_status=$? 7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7844 { (case "(($ac_try" in 7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7846 *) ac_try_echo=$ac_try;; 7847esac 7848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7849 (eval "$ac_try") 2>&5 7850 ac_status=$? 7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7852 (exit $ac_status); }; }; then 7853 fits_in_uint=`cat conftest.val` 7854else 7855 echo "$as_me: program exited with status $ac_status" >&5 7856echo "$as_me: failed program was:" >&5 7857sed 's/^/| /' conftest.$ac_ext >&5 7858 7859( exit $ac_status ) 7860result=? 7861fi 7862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7863fi 7864rm -f conftest.val 7865 7866 if test "$fits_in_uint" = 1; then 7867 cat >conftest.$ac_ext <<_ACEOF 7868/* confdefs.h. */ 7869_ACEOF 7870cat confdefs.h >>conftest.$ac_ext 7871cat >>conftest.$ac_ext <<_ACEOF 7872/* end confdefs.h. */ 7873#include <stddef.h> 7874 extern size_t foo; 7875 extern unsigned long foo; 7876 7877int 7878main () 7879{ 7880 7881 ; 7882 return 0; 7883} 7884_ACEOF 7885rm -f conftest.$ac_objext 7886if { (ac_try="$ac_compile" 7887case "(($ac_try" in 7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7889 *) ac_try_echo=$ac_try;; 7890esac 7891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7892 (eval "$ac_compile") 2>conftest.er1 7893 ac_status=$? 7894 grep -v '^ *+' conftest.er1 >conftest.err 7895 rm -f conftest.er1 7896 cat conftest.err >&5 7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7898 (exit $ac_status); } && { 7899 test -z "$ac_c_werror_flag" || 7900 test ! -s conftest.err 7901 } && test -s conftest.$ac_objext; then 7902 fits_in_uint=0 7903else 7904 echo "$as_me: failed program was:" >&5 7905sed 's/^/| /' conftest.$ac_ext >&5 7906 7907 7908fi 7909 7910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7911 fi 7912 if test -z "$result"; then 7913 if test "$fits_in_uint" = 1; then 7914 result="$res_hi$res_lo"U 7915 else 7916 result="$res_hi$res_lo"UL 7917 fi 7918 else 7919 result='~(size_t)0' 7920 fi 7921 fi 7922 { echo "$as_me:$LINENO: result: $result" >&5 7923echo "${ECHO_T}$result" >&6; } 7924 if test "$result" != yes; then 7925 7926cat >>confdefs.h <<_ACEOF 7927#define SIZE_MAX $result 7928_ACEOF 7929 7930 fi 7931 7932 7933 7934 7935for ac_header in stdint.h 7936do 7937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7939 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7942 echo $ECHO_N "(cached) $ECHO_C" >&6 7943fi 7944ac_res=`eval echo '${'$as_ac_Header'}'` 7945 { echo "$as_me:$LINENO: result: $ac_res" >&5 7946echo "${ECHO_T}$ac_res" >&6; } 7947else 7948 # Is the header compilable? 7949{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7950echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7951cat >conftest.$ac_ext <<_ACEOF 7952/* confdefs.h. */ 7953_ACEOF 7954cat confdefs.h >>conftest.$ac_ext 7955cat >>conftest.$ac_ext <<_ACEOF 7956/* end confdefs.h. */ 7957$ac_includes_default 7958#include <$ac_header> 7959_ACEOF 7960rm -f conftest.$ac_objext 7961if { (ac_try="$ac_compile" 7962case "(($ac_try" in 7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7964 *) ac_try_echo=$ac_try;; 7965esac 7966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7967 (eval "$ac_compile") 2>conftest.er1 7968 ac_status=$? 7969 grep -v '^ *+' conftest.er1 >conftest.err 7970 rm -f conftest.er1 7971 cat conftest.err >&5 7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7973 (exit $ac_status); } && { 7974 test -z "$ac_c_werror_flag" || 7975 test ! -s conftest.err 7976 } && test -s conftest.$ac_objext; then 7977 ac_header_compiler=yes 7978else 7979 echo "$as_me: failed program was:" >&5 7980sed 's/^/| /' conftest.$ac_ext >&5 7981 7982 ac_header_compiler=no 7983fi 7984 7985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7986{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7987echo "${ECHO_T}$ac_header_compiler" >&6; } 7988 7989# Is the header present? 7990{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7991echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7992cat >conftest.$ac_ext <<_ACEOF 7993/* confdefs.h. */ 7994_ACEOF 7995cat confdefs.h >>conftest.$ac_ext 7996cat >>conftest.$ac_ext <<_ACEOF 7997/* end confdefs.h. */ 7998#include <$ac_header> 7999_ACEOF 8000if { (ac_try="$ac_cpp conftest.$ac_ext" 8001case "(($ac_try" in 8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8003 *) ac_try_echo=$ac_try;; 8004esac 8005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8007 ac_status=$? 8008 grep -v '^ *+' conftest.er1 >conftest.err 8009 rm -f conftest.er1 8010 cat conftest.err >&5 8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8012 (exit $ac_status); } >/dev/null && { 8013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8014 test ! -s conftest.err 8015 }; then 8016 ac_header_preproc=yes 8017else 8018 echo "$as_me: failed program was:" >&5 8019sed 's/^/| /' conftest.$ac_ext >&5 8020 8021 ac_header_preproc=no 8022fi 8023 8024rm -f conftest.err conftest.$ac_ext 8025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8026echo "${ECHO_T}$ac_header_preproc" >&6; } 8027 8028# So? What about this header? 8029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8030 yes:no: ) 8031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8035 ac_header_preproc=yes 8036 ;; 8037 no:yes:* ) 8038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8050 8051 ;; 8052esac 8053{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8056 echo $ECHO_N "(cached) $ECHO_C" >&6 8057else 8058 eval "$as_ac_Header=\$ac_header_preproc" 8059fi 8060ac_res=`eval echo '${'$as_ac_Header'}'` 8061 { echo "$as_me:$LINENO: result: $ac_res" >&5 8062echo "${ECHO_T}$ac_res" >&6; } 8063 8064fi 8065if test `eval echo '${'$as_ac_Header'}'` = yes; then 8066 cat >>confdefs.h <<_ACEOF 8067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8068_ACEOF 8069 8070fi 8071 8072done 8073 8074 8075 8076 if test "X$prefix" = "XNONE"; then 8077 acl_final_prefix="$ac_default_prefix" 8078 else 8079 acl_final_prefix="$prefix" 8080 fi 8081 if test "X$exec_prefix" = "XNONE"; then 8082 acl_final_exec_prefix='${prefix}' 8083 else 8084 acl_final_exec_prefix="$exec_prefix" 8085 fi 8086 acl_save_prefix="$prefix" 8087 prefix="$acl_final_prefix" 8088 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 8089 prefix="$acl_save_prefix" 8090 8091 8092# Check whether --with-gnu-ld was given. 8093if test "${with_gnu_ld+set}" = set; then 8094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8095else 8096 with_gnu_ld=no 8097fi 8098 8099# Prepare PATH_SEPARATOR. 8100# The user is always right. 8101if test "${PATH_SEPARATOR+set}" != set; then 8102 echo "#! /bin/sh" >conf$$.sh 8103 echo "exit 0" >>conf$$.sh 8104 chmod +x conf$$.sh 8105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8106 PATH_SEPARATOR=';' 8107 else 8108 PATH_SEPARATOR=: 8109 fi 8110 rm -f conf$$.sh 8111fi 8112ac_prog=ld 8113if test "$GCC" = yes; then 8114 # Check if gcc -print-prog-name=ld gives a path. 8115 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 8116echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } 8117 case $host in 8118 *-*-mingw*) 8119 # gcc leaves a trailing carriage return which upsets mingw 8120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8121 *) 8122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8123 esac 8124 case $ac_prog in 8125 # Accept absolute paths. 8126 [\\/]* | [A-Za-z]:[\\/]*) 8127 re_direlt='/[^/][^/]*/\.\./' 8128 # Canonicalize the path of ld 8129 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 8130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 8131 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 8132 done 8133 test -z "$LD" && LD="$ac_prog" 8134 ;; 8135 "") 8136 # If it fails, then pretend we aren't using GCC. 8137 ac_prog=ld 8138 ;; 8139 *) 8140 # If it is relative, then search for the first ld in PATH. 8141 with_gnu_ld=unknown 8142 ;; 8143 esac 8144elif test "$with_gnu_ld" = yes; then 8145 { echo "$as_me:$LINENO: checking for GNU ld" >&5 8146echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 8147else 8148 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 8149echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 8150fi 8151if test "${acl_cv_path_LD+set}" = set; then 8152 echo $ECHO_N "(cached) $ECHO_C" >&6 8153else 8154 if test -z "$LD"; then 8155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 8156 for ac_dir in $PATH; do 8157 test -z "$ac_dir" && ac_dir=. 8158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8159 acl_cv_path_LD="$ac_dir/$ac_prog" 8160 # Check to see if the program is GNU ld. I'd rather use --version, 8161 # but apparently some GNU ld's only accept -v. 8162 # Break only if it was the GNU/non-GNU ld that we prefer. 8163 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 8164 *GNU* | *'with BFD'*) 8165 test "$with_gnu_ld" != no && break ;; 8166 *) 8167 test "$with_gnu_ld" != yes && break ;; 8168 esac 8169 fi 8170 done 8171 IFS="$ac_save_ifs" 8172else 8173 acl_cv_path_LD="$LD" # Let the user override the test with a path. 8174fi 8175fi 8176 8177LD="$acl_cv_path_LD" 8178if test -n "$LD"; then 8179 { echo "$as_me:$LINENO: result: $LD" >&5 8180echo "${ECHO_T}$LD" >&6; } 8181else 8182 { echo "$as_me:$LINENO: result: no" >&5 8183echo "${ECHO_T}no" >&6; } 8184fi 8185test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 8186echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 8187 { (exit 1); exit 1; }; } 8188{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 8189echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 8190if test "${acl_cv_prog_gnu_ld+set}" = set; then 8191 echo $ECHO_N "(cached) $ECHO_C" >&6 8192else 8193 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 8194case `$LD -v 2>&1 </dev/null` in 8195*GNU* | *'with BFD'*) 8196 acl_cv_prog_gnu_ld=yes ;; 8197*) 8198 acl_cv_prog_gnu_ld=no ;; 8199esac 8200fi 8201{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 8202echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } 8203with_gnu_ld=$acl_cv_prog_gnu_ld 8204 8205 8206 8207 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 8208echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } 8209if test "${acl_cv_rpath+set}" = set; then 8210 echo $ECHO_N "(cached) $ECHO_C" >&6 8211else 8212 8213 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 8214 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 8215 . ./conftest.sh 8216 rm -f ./conftest.sh 8217 acl_cv_rpath=done 8218 8219fi 8220{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 8221echo "${ECHO_T}$acl_cv_rpath" >&6; } 8222 wl="$acl_cv_wl" 8223 libext="$acl_cv_libext" 8224 shlibext="$acl_cv_shlibext" 8225 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 8226 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 8227 hardcode_direct="$acl_cv_hardcode_direct" 8228 hardcode_minus_L="$acl_cv_hardcode_minus_L" 8229 # Check whether --enable-rpath was given. 8230if test "${enable_rpath+set}" = set; then 8231 enableval=$enable_rpath; : 8232else 8233 enable_rpath=yes 8234fi 8235 8236 8237 8238 8239 8240 8241 8242 8243 use_additional=yes 8244 8245 acl_save_prefix="$prefix" 8246 prefix="$acl_final_prefix" 8247 acl_save_exec_prefix="$exec_prefix" 8248 exec_prefix="$acl_final_exec_prefix" 8249 8250 eval additional_includedir=\"$includedir\" 8251 eval additional_libdir=\"$libdir\" 8252 8253 exec_prefix="$acl_save_exec_prefix" 8254 prefix="$acl_save_prefix" 8255 8256 8257# Check whether --with-libiconv-prefix was given. 8258if test "${with_libiconv_prefix+set}" = set; then 8259 withval=$with_libiconv_prefix; 8260 if test "X$withval" = "Xno"; then 8261 use_additional=no 8262 else 8263 if test "X$withval" = "X"; then 8264 8265 acl_save_prefix="$prefix" 8266 prefix="$acl_final_prefix" 8267 acl_save_exec_prefix="$exec_prefix" 8268 exec_prefix="$acl_final_exec_prefix" 8269 8270 eval additional_includedir=\"$includedir\" 8271 eval additional_libdir=\"$libdir\" 8272 8273 exec_prefix="$acl_save_exec_prefix" 8274 prefix="$acl_save_prefix" 8275 8276 else 8277 additional_includedir="$withval/include" 8278 additional_libdir="$withval/lib" 8279 fi 8280 fi 8281 8282fi 8283 8284 LIBICONV= 8285 LTLIBICONV= 8286 INCICONV= 8287 rpathdirs= 8288 ltrpathdirs= 8289 names_already_handled= 8290 names_next_round='iconv ' 8291 while test -n "$names_next_round"; do 8292 names_this_round="$names_next_round" 8293 names_next_round= 8294 for name in $names_this_round; do 8295 already_handled= 8296 for n in $names_already_handled; do 8297 if test "$n" = "$name"; then 8298 already_handled=yes 8299 break 8300 fi 8301 done 8302 if test -z "$already_handled"; then 8303 names_already_handled="$names_already_handled $name" 8304 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 8305 eval value=\"\$HAVE_LIB$uppername\" 8306 if test -n "$value"; then 8307 if test "$value" = yes; then 8308 eval value=\"\$LIB$uppername\" 8309 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 8310 eval value=\"\$LTLIB$uppername\" 8311 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 8312 else 8313 : 8314 fi 8315 else 8316 found_dir= 8317 found_la= 8318 found_so= 8319 found_a= 8320 if test $use_additional = yes; then 8321 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 8322 found_dir="$additional_libdir" 8323 found_so="$additional_libdir/lib$name.$shlibext" 8324 if test -f "$additional_libdir/lib$name.la"; then 8325 found_la="$additional_libdir/lib$name.la" 8326 fi 8327 else 8328 if test -f "$additional_libdir/lib$name.$libext"; then 8329 found_dir="$additional_libdir" 8330 found_a="$additional_libdir/lib$name.$libext" 8331 if test -f "$additional_libdir/lib$name.la"; then 8332 found_la="$additional_libdir/lib$name.la" 8333 fi 8334 fi 8335 fi 8336 fi 8337 if test "X$found_dir" = "X"; then 8338 for x in $LDFLAGS $LTLIBICONV; do 8339 8340 acl_save_prefix="$prefix" 8341 prefix="$acl_final_prefix" 8342 acl_save_exec_prefix="$exec_prefix" 8343 exec_prefix="$acl_final_exec_prefix" 8344 eval x=\"$x\" 8345 exec_prefix="$acl_save_exec_prefix" 8346 prefix="$acl_save_prefix" 8347 8348 case "$x" in 8349 -L*) 8350 dir=`echo "X$x" | sed -e 's/^X-L//'` 8351 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 8352 found_dir="$dir" 8353 found_so="$dir/lib$name.$shlibext" 8354 if test -f "$dir/lib$name.la"; then 8355 found_la="$dir/lib$name.la" 8356 fi 8357 else 8358 if test -f "$dir/lib$name.$libext"; then 8359 found_dir="$dir" 8360 found_a="$dir/lib$name.$libext" 8361 if test -f "$dir/lib$name.la"; then 8362 found_la="$dir/lib$name.la" 8363 fi 8364 fi 8365 fi 8366 ;; 8367 esac 8368 if test "X$found_dir" != "X"; then 8369 break 8370 fi 8371 done 8372 fi 8373 if test "X$found_dir" != "X"; then 8374 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 8375 if test "X$found_so" != "X"; then 8376 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 8377 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8378 else 8379 haveit= 8380 for x in $ltrpathdirs; do 8381 if test "X$x" = "X$found_dir"; then 8382 haveit=yes 8383 break 8384 fi 8385 done 8386 if test -z "$haveit"; then 8387 ltrpathdirs="$ltrpathdirs $found_dir" 8388 fi 8389 if test "$hardcode_direct" = yes; then 8390 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8391 else 8392 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 8393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8394 haveit= 8395 for x in $rpathdirs; do 8396 if test "X$x" = "X$found_dir"; then 8397 haveit=yes 8398 break 8399 fi 8400 done 8401 if test -z "$haveit"; then 8402 rpathdirs="$rpathdirs $found_dir" 8403 fi 8404 else 8405 haveit= 8406 for x in $LDFLAGS $LIBICONV; do 8407 8408 acl_save_prefix="$prefix" 8409 prefix="$acl_final_prefix" 8410 acl_save_exec_prefix="$exec_prefix" 8411 exec_prefix="$acl_final_exec_prefix" 8412 eval x=\"$x\" 8413 exec_prefix="$acl_save_exec_prefix" 8414 prefix="$acl_save_prefix" 8415 8416 if test "X$x" = "X-L$found_dir"; then 8417 haveit=yes 8418 break 8419 fi 8420 done 8421 if test -z "$haveit"; then 8422 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 8423 fi 8424 if test "$hardcode_minus_L" != no; then 8425 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 8426 else 8427 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8428 fi 8429 fi 8430 fi 8431 fi 8432 else 8433 if test "X$found_a" != "X"; then 8434 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 8435 else 8436 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 8437 fi 8438 fi 8439 additional_includedir= 8440 case "$found_dir" in 8441 */lib | */lib/) 8442 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 8443 additional_includedir="$basedir/include" 8444 ;; 8445 esac 8446 if test "X$additional_includedir" != "X"; then 8447 if test "X$additional_includedir" != "X/usr/include"; then 8448 haveit= 8449 if test "X$additional_includedir" = "X/usr/local/include"; then 8450 if test -n "$GCC"; then 8451 case $host_os in 8452 linux*) haveit=yes;; 8453 esac 8454 fi 8455 fi 8456 if test -z "$haveit"; then 8457 for x in $CPPFLAGS $INCICONV; do 8458 8459 acl_save_prefix="$prefix" 8460 prefix="$acl_final_prefix" 8461 acl_save_exec_prefix="$exec_prefix" 8462 exec_prefix="$acl_final_exec_prefix" 8463 eval x=\"$x\" 8464 exec_prefix="$acl_save_exec_prefix" 8465 prefix="$acl_save_prefix" 8466 8467 if test "X$x" = "X-I$additional_includedir"; then 8468 haveit=yes 8469 break 8470 fi 8471 done 8472 if test -z "$haveit"; then 8473 if test -d "$additional_includedir"; then 8474 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 8475 fi 8476 fi 8477 fi 8478 fi 8479 fi 8480 if test -n "$found_la"; then 8481 save_libdir="$libdir" 8482 case "$found_la" in 8483 */* | *\\*) . "$found_la" ;; 8484 *) . "./$found_la" ;; 8485 esac 8486 libdir="$save_libdir" 8487 for dep in $dependency_libs; do 8488 case "$dep" in 8489 -L*) 8490 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8491 if test "X$additional_libdir" != "X/usr/lib"; then 8492 haveit= 8493 if test "X$additional_libdir" = "X/usr/local/lib"; then 8494 if test -n "$GCC"; then 8495 case $host_os in 8496 linux*) haveit=yes;; 8497 esac 8498 fi 8499 fi 8500 if test -z "$haveit"; then 8501 haveit= 8502 for x in $LDFLAGS $LIBICONV; do 8503 8504 acl_save_prefix="$prefix" 8505 prefix="$acl_final_prefix" 8506 acl_save_exec_prefix="$exec_prefix" 8507 exec_prefix="$acl_final_exec_prefix" 8508 eval x=\"$x\" 8509 exec_prefix="$acl_save_exec_prefix" 8510 prefix="$acl_save_prefix" 8511 8512 if test "X$x" = "X-L$additional_libdir"; then 8513 haveit=yes 8514 break 8515 fi 8516 done 8517 if test -z "$haveit"; then 8518 if test -d "$additional_libdir"; then 8519 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 8520 fi 8521 fi 8522 haveit= 8523 for x in $LDFLAGS $LTLIBICONV; do 8524 8525 acl_save_prefix="$prefix" 8526 prefix="$acl_final_prefix" 8527 acl_save_exec_prefix="$exec_prefix" 8528 exec_prefix="$acl_final_exec_prefix" 8529 eval x=\"$x\" 8530 exec_prefix="$acl_save_exec_prefix" 8531 prefix="$acl_save_prefix" 8532 8533 if test "X$x" = "X-L$additional_libdir"; then 8534 haveit=yes 8535 break 8536 fi 8537 done 8538 if test -z "$haveit"; then 8539 if test -d "$additional_libdir"; then 8540 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 8541 fi 8542 fi 8543 fi 8544 fi 8545 ;; 8546 -R*) 8547 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8548 if test "$enable_rpath" != no; then 8549 haveit= 8550 for x in $rpathdirs; do 8551 if test "X$x" = "X$dir"; then 8552 haveit=yes 8553 break 8554 fi 8555 done 8556 if test -z "$haveit"; then 8557 rpathdirs="$rpathdirs $dir" 8558 fi 8559 haveit= 8560 for x in $ltrpathdirs; do 8561 if test "X$x" = "X$dir"; then 8562 haveit=yes 8563 break 8564 fi 8565 done 8566 if test -z "$haveit"; then 8567 ltrpathdirs="$ltrpathdirs $dir" 8568 fi 8569 fi 8570 ;; 8571 -l*) 8572 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8573 ;; 8574 *.la) 8575 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8576 ;; 8577 *) 8578 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 8579 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 8580 ;; 8581 esac 8582 done 8583 fi 8584 else 8585 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 8587 fi 8588 fi 8589 fi 8590 done 8591 done 8592 if test "X$rpathdirs" != "X"; then 8593 if test -n "$hardcode_libdir_separator"; then 8594 alldirs= 8595 for found_dir in $rpathdirs; do 8596 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 8597 done 8598 acl_save_libdir="$libdir" 8599 libdir="$alldirs" 8600 eval flag=\"$hardcode_libdir_flag_spec\" 8601 libdir="$acl_save_libdir" 8602 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8603 else 8604 for found_dir in $rpathdirs; do 8605 acl_save_libdir="$libdir" 8606 libdir="$found_dir" 8607 eval flag=\"$hardcode_libdir_flag_spec\" 8608 libdir="$acl_save_libdir" 8609 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8610 done 8611 fi 8612 fi 8613 if test "X$ltrpathdirs" != "X"; then 8614 for found_dir in $ltrpathdirs; do 8615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 8616 done 8617 fi 8618 8619 8620 8621 8622 8623 8624 8625 8626 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 8627echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } 8628if test "${ac_cv_type_ptrdiff_t+set}" = set; then 8629 echo $ECHO_N "(cached) $ECHO_C" >&6 8630else 8631 cat >conftest.$ac_ext <<_ACEOF 8632/* confdefs.h. */ 8633_ACEOF 8634cat confdefs.h >>conftest.$ac_ext 8635cat >>conftest.$ac_ext <<_ACEOF 8636/* end confdefs.h. */ 8637$ac_includes_default 8638typedef ptrdiff_t ac__type_new_; 8639int 8640main () 8641{ 8642if ((ac__type_new_ *) 0) 8643 return 0; 8644if (sizeof (ac__type_new_)) 8645 return 0; 8646 ; 8647 return 0; 8648} 8649_ACEOF 8650rm -f conftest.$ac_objext 8651if { (ac_try="$ac_compile" 8652case "(($ac_try" in 8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8654 *) ac_try_echo=$ac_try;; 8655esac 8656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8657 (eval "$ac_compile") 2>conftest.er1 8658 ac_status=$? 8659 grep -v '^ *+' conftest.er1 >conftest.err 8660 rm -f conftest.er1 8661 cat conftest.err >&5 8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8663 (exit $ac_status); } && { 8664 test -z "$ac_c_werror_flag" || 8665 test ! -s conftest.err 8666 } && test -s conftest.$ac_objext; then 8667 ac_cv_type_ptrdiff_t=yes 8668else 8669 echo "$as_me: failed program was:" >&5 8670sed 's/^/| /' conftest.$ac_ext >&5 8671 8672 ac_cv_type_ptrdiff_t=no 8673fi 8674 8675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8676fi 8677{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 8678echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } 8679if test $ac_cv_type_ptrdiff_t = yes; then 8680 : 8681else 8682 8683cat >>confdefs.h <<\_ACEOF 8684#define ptrdiff_t long 8685_ACEOF 8686 8687 8688fi 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 8701stdlib.h string.h unistd.h sys/param.h 8702do 8703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8705 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8708 echo $ECHO_N "(cached) $ECHO_C" >&6 8709fi 8710ac_res=`eval echo '${'$as_ac_Header'}'` 8711 { echo "$as_me:$LINENO: result: $ac_res" >&5 8712echo "${ECHO_T}$ac_res" >&6; } 8713else 8714 # Is the header compilable? 8715{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8717cat >conftest.$ac_ext <<_ACEOF 8718/* confdefs.h. */ 8719_ACEOF 8720cat confdefs.h >>conftest.$ac_ext 8721cat >>conftest.$ac_ext <<_ACEOF 8722/* end confdefs.h. */ 8723$ac_includes_default 8724#include <$ac_header> 8725_ACEOF 8726rm -f conftest.$ac_objext 8727if { (ac_try="$ac_compile" 8728case "(($ac_try" in 8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8730 *) ac_try_echo=$ac_try;; 8731esac 8732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8733 (eval "$ac_compile") 2>conftest.er1 8734 ac_status=$? 8735 grep -v '^ *+' conftest.er1 >conftest.err 8736 rm -f conftest.er1 8737 cat conftest.err >&5 8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8739 (exit $ac_status); } && { 8740 test -z "$ac_c_werror_flag" || 8741 test ! -s conftest.err 8742 } && test -s conftest.$ac_objext; then 8743 ac_header_compiler=yes 8744else 8745 echo "$as_me: failed program was:" >&5 8746sed 's/^/| /' conftest.$ac_ext >&5 8747 8748 ac_header_compiler=no 8749fi 8750 8751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8752{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8753echo "${ECHO_T}$ac_header_compiler" >&6; } 8754 8755# Is the header present? 8756{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8758cat >conftest.$ac_ext <<_ACEOF 8759/* confdefs.h. */ 8760_ACEOF 8761cat confdefs.h >>conftest.$ac_ext 8762cat >>conftest.$ac_ext <<_ACEOF 8763/* end confdefs.h. */ 8764#include <$ac_header> 8765_ACEOF 8766if { (ac_try="$ac_cpp conftest.$ac_ext" 8767case "(($ac_try" in 8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8769 *) ac_try_echo=$ac_try;; 8770esac 8771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8773 ac_status=$? 8774 grep -v '^ *+' conftest.er1 >conftest.err 8775 rm -f conftest.er1 8776 cat conftest.err >&5 8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8778 (exit $ac_status); } >/dev/null && { 8779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 8780 test ! -s conftest.err 8781 }; then 8782 ac_header_preproc=yes 8783else 8784 echo "$as_me: failed program was:" >&5 8785sed 's/^/| /' conftest.$ac_ext >&5 8786 8787 ac_header_preproc=no 8788fi 8789 8790rm -f conftest.err conftest.$ac_ext 8791{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8792echo "${ECHO_T}$ac_header_preproc" >&6; } 8793 8794# So? What about this header? 8795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8796 yes:no: ) 8797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8801 ac_header_preproc=yes 8802 ;; 8803 no:yes:* ) 8804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8816 8817 ;; 8818esac 8819{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8822 echo $ECHO_N "(cached) $ECHO_C" >&6 8823else 8824 eval "$as_ac_Header=\$ac_header_preproc" 8825fi 8826ac_res=`eval echo '${'$as_ac_Header'}'` 8827 { echo "$as_me:$LINENO: result: $ac_res" >&5 8828echo "${ECHO_T}$ac_res" >&6; } 8829 8830fi 8831if test `eval echo '${'$as_ac_Header'}'` = yes; then 8832 cat >>confdefs.h <<_ACEOF 8833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8834_ACEOF 8835 8836fi 8837 8838done 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 8864mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 8865strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 8866__fsetlocking 8867do 8868as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8869{ echo "$as_me:$LINENO: checking for $ac_func" >&5 8870echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 8871if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 8872 echo $ECHO_N "(cached) $ECHO_C" >&6 8873else 8874 cat >conftest.$ac_ext <<_ACEOF 8875/* confdefs.h. */ 8876_ACEOF 8877cat confdefs.h >>conftest.$ac_ext 8878cat >>conftest.$ac_ext <<_ACEOF 8879/* end confdefs.h. */ 8880/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8881 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8882#define $ac_func innocuous_$ac_func 8883 8884/* System header to define __stub macros and hopefully few prototypes, 8885 which can conflict with char $ac_func (); below. 8886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8887 <limits.h> exists even on freestanding compilers. */ 8888 8889#ifdef __STDC__ 8890# include <limits.h> 8891#else 8892# include <assert.h> 8893#endif 8894 8895#undef $ac_func 8896 8897/* Override any GCC internal prototype to avoid an error. 8898 Use char because int might match the return type of a GCC 8899 builtin and then its argument prototype would still apply. */ 8900#ifdef __cplusplus 8901extern "C" 8902#endif 8903char $ac_func (); 8904/* The GNU C library defines this for functions which it implements 8905 to always fail with ENOSYS. Some functions are actually named 8906 something starting with __ and the normal name is an alias. */ 8907#if defined __stub_$ac_func || defined __stub___$ac_func 8908choke me 8909#endif 8910 8911int 8912main () 8913{ 8914return $ac_func (); 8915 ; 8916 return 0; 8917} 8918_ACEOF 8919rm -f conftest.$ac_objext conftest$ac_exeext 8920if { (ac_try="$ac_link" 8921case "(($ac_try" in 8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8923 *) ac_try_echo=$ac_try;; 8924esac 8925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8926 (eval "$ac_link") 2>conftest.er1 8927 ac_status=$? 8928 grep -v '^ *+' conftest.er1 >conftest.err 8929 rm -f conftest.er1 8930 cat conftest.err >&5 8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8932 (exit $ac_status); } && { 8933 test -z "$ac_c_werror_flag" || 8934 test ! -s conftest.err 8935 } && test -s conftest$ac_exeext && 8936 $as_test_x conftest$ac_exeext; then 8937 eval "$as_ac_var=yes" 8938else 8939 echo "$as_me: failed program was:" >&5 8940sed 's/^/| /' conftest.$ac_ext >&5 8941 8942 eval "$as_ac_var=no" 8943fi 8944 8945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8946 conftest$ac_exeext conftest.$ac_ext 8947fi 8948ac_res=`eval echo '${'$as_ac_var'}'` 8949 { echo "$as_me:$LINENO: result: $ac_res" >&5 8950echo "${ECHO_T}$ac_res" >&6; } 8951if test `eval echo '${'$as_ac_var'}'` = yes; then 8952 cat >>confdefs.h <<_ACEOF 8953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8954_ACEOF 8955 8956fi 8957done 8958 8959 8960 8961 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 8962echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } 8963if test "${ac_cv_have_decl__snprintf+set}" = set; then 8964 echo $ECHO_N "(cached) $ECHO_C" >&6 8965else 8966 cat >conftest.$ac_ext <<_ACEOF 8967/* confdefs.h. */ 8968_ACEOF 8969cat confdefs.h >>conftest.$ac_ext 8970cat >>conftest.$ac_ext <<_ACEOF 8971/* end confdefs.h. */ 8972#include <stdio.h> 8973int 8974main () 8975{ 8976 8977#ifndef _snprintf 8978 char *p = (char *) _snprintf; 8979#endif 8980 8981 ; 8982 return 0; 8983} 8984_ACEOF 8985rm -f conftest.$ac_objext 8986if { (ac_try="$ac_compile" 8987case "(($ac_try" in 8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8989 *) ac_try_echo=$ac_try;; 8990esac 8991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8992 (eval "$ac_compile") 2>conftest.er1 8993 ac_status=$? 8994 grep -v '^ *+' conftest.er1 >conftest.err 8995 rm -f conftest.er1 8996 cat conftest.err >&5 8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8998 (exit $ac_status); } && { 8999 test -z "$ac_c_werror_flag" || 9000 test ! -s conftest.err 9001 } && test -s conftest.$ac_objext; then 9002 ac_cv_have_decl__snprintf=yes 9003else 9004 echo "$as_me: failed program was:" >&5 9005sed 's/^/| /' conftest.$ac_ext >&5 9006 9007 ac_cv_have_decl__snprintf=no 9008fi 9009 9010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9011fi 9012{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 9013echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } 9014 if test $ac_cv_have_decl__snprintf = yes; then 9015 gt_value=1 9016 else 9017 gt_value=0 9018 fi 9019 9020cat >>confdefs.h <<_ACEOF 9021#define HAVE_DECL__SNPRINTF $gt_value 9022_ACEOF 9023 9024 9025 9026 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 9027echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } 9028if test "${ac_cv_have_decl__snwprintf+set}" = set; then 9029 echo $ECHO_N "(cached) $ECHO_C" >&6 9030else 9031 cat >conftest.$ac_ext <<_ACEOF 9032/* confdefs.h. */ 9033_ACEOF 9034cat confdefs.h >>conftest.$ac_ext 9035cat >>conftest.$ac_ext <<_ACEOF 9036/* end confdefs.h. */ 9037#include <stdio.h> 9038int 9039main () 9040{ 9041 9042#ifndef _snwprintf 9043 char *p = (char *) _snwprintf; 9044#endif 9045 9046 ; 9047 return 0; 9048} 9049_ACEOF 9050rm -f conftest.$ac_objext 9051if { (ac_try="$ac_compile" 9052case "(($ac_try" in 9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9054 *) ac_try_echo=$ac_try;; 9055esac 9056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9057 (eval "$ac_compile") 2>conftest.er1 9058 ac_status=$? 9059 grep -v '^ *+' conftest.er1 >conftest.err 9060 rm -f conftest.er1 9061 cat conftest.err >&5 9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9063 (exit $ac_status); } && { 9064 test -z "$ac_c_werror_flag" || 9065 test ! -s conftest.err 9066 } && test -s conftest.$ac_objext; then 9067 ac_cv_have_decl__snwprintf=yes 9068else 9069 echo "$as_me: failed program was:" >&5 9070sed 's/^/| /' conftest.$ac_ext >&5 9071 9072 ac_cv_have_decl__snwprintf=no 9073fi 9074 9075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9076fi 9077{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 9078echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } 9079 if test $ac_cv_have_decl__snwprintf = yes; then 9080 gt_value=1 9081 else 9082 gt_value=0 9083 fi 9084 9085cat >>confdefs.h <<_ACEOF 9086#define HAVE_DECL__SNWPRINTF $gt_value 9087_ACEOF 9088 9089 9090 9091 9092 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 9093echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } 9094if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 9095 echo $ECHO_N "(cached) $ECHO_C" >&6 9096else 9097 cat >conftest.$ac_ext <<_ACEOF 9098/* confdefs.h. */ 9099_ACEOF 9100cat confdefs.h >>conftest.$ac_ext 9101cat >>conftest.$ac_ext <<_ACEOF 9102/* end confdefs.h. */ 9103#include <stdio.h> 9104int 9105main () 9106{ 9107 9108#ifndef feof_unlocked 9109 char *p = (char *) feof_unlocked; 9110#endif 9111 9112 ; 9113 return 0; 9114} 9115_ACEOF 9116rm -f conftest.$ac_objext 9117if { (ac_try="$ac_compile" 9118case "(($ac_try" in 9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9120 *) ac_try_echo=$ac_try;; 9121esac 9122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9123 (eval "$ac_compile") 2>conftest.er1 9124 ac_status=$? 9125 grep -v '^ *+' conftest.er1 >conftest.err 9126 rm -f conftest.er1 9127 cat conftest.err >&5 9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9129 (exit $ac_status); } && { 9130 test -z "$ac_c_werror_flag" || 9131 test ! -s conftest.err 9132 } && test -s conftest.$ac_objext; then 9133 ac_cv_have_decl_feof_unlocked=yes 9134else 9135 echo "$as_me: failed program was:" >&5 9136sed 's/^/| /' conftest.$ac_ext >&5 9137 9138 ac_cv_have_decl_feof_unlocked=no 9139fi 9140 9141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9142fi 9143{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 9144echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } 9145 if test $ac_cv_have_decl_feof_unlocked = yes; then 9146 gt_value=1 9147 else 9148 gt_value=0 9149 fi 9150 9151cat >>confdefs.h <<_ACEOF 9152#define HAVE_DECL_FEOF_UNLOCKED $gt_value 9153_ACEOF 9154 9155 9156 9157 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 9158echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } 9159if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 9160 echo $ECHO_N "(cached) $ECHO_C" >&6 9161else 9162 cat >conftest.$ac_ext <<_ACEOF 9163/* confdefs.h. */ 9164_ACEOF 9165cat confdefs.h >>conftest.$ac_ext 9166cat >>conftest.$ac_ext <<_ACEOF 9167/* end confdefs.h. */ 9168#include <stdio.h> 9169int 9170main () 9171{ 9172 9173#ifndef fgets_unlocked 9174 char *p = (char *) fgets_unlocked; 9175#endif 9176 9177 ; 9178 return 0; 9179} 9180_ACEOF 9181rm -f conftest.$ac_objext 9182if { (ac_try="$ac_compile" 9183case "(($ac_try" in 9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9185 *) ac_try_echo=$ac_try;; 9186esac 9187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9188 (eval "$ac_compile") 2>conftest.er1 9189 ac_status=$? 9190 grep -v '^ *+' conftest.er1 >conftest.err 9191 rm -f conftest.er1 9192 cat conftest.err >&5 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9194 (exit $ac_status); } && { 9195 test -z "$ac_c_werror_flag" || 9196 test ! -s conftest.err 9197 } && test -s conftest.$ac_objext; then 9198 ac_cv_have_decl_fgets_unlocked=yes 9199else 9200 echo "$as_me: failed program was:" >&5 9201sed 's/^/| /' conftest.$ac_ext >&5 9202 9203 ac_cv_have_decl_fgets_unlocked=no 9204fi 9205 9206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9207fi 9208{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 9209echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } 9210 if test $ac_cv_have_decl_fgets_unlocked = yes; then 9211 gt_value=1 9212 else 9213 gt_value=0 9214 fi 9215 9216cat >>confdefs.h <<_ACEOF 9217#define HAVE_DECL_FGETS_UNLOCKED $gt_value 9218_ACEOF 9219 9220 9221 9222 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 9223echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } 9224if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 9225 echo $ECHO_N "(cached) $ECHO_C" >&6 9226else 9227 cat >conftest.$ac_ext <<_ACEOF 9228/* confdefs.h. */ 9229_ACEOF 9230cat confdefs.h >>conftest.$ac_ext 9231cat >>conftest.$ac_ext <<_ACEOF 9232/* end confdefs.h. */ 9233#include <stdio.h> 9234int 9235main () 9236{ 9237 9238#ifndef getc_unlocked 9239 char *p = (char *) getc_unlocked; 9240#endif 9241 9242 ; 9243 return 0; 9244} 9245_ACEOF 9246rm -f conftest.$ac_objext 9247if { (ac_try="$ac_compile" 9248case "(($ac_try" in 9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9250 *) ac_try_echo=$ac_try;; 9251esac 9252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9253 (eval "$ac_compile") 2>conftest.er1 9254 ac_status=$? 9255 grep -v '^ *+' conftest.er1 >conftest.err 9256 rm -f conftest.er1 9257 cat conftest.err >&5 9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9259 (exit $ac_status); } && { 9260 test -z "$ac_c_werror_flag" || 9261 test ! -s conftest.err 9262 } && test -s conftest.$ac_objext; then 9263 ac_cv_have_decl_getc_unlocked=yes 9264else 9265 echo "$as_me: failed program was:" >&5 9266sed 's/^/| /' conftest.$ac_ext >&5 9267 9268 ac_cv_have_decl_getc_unlocked=no 9269fi 9270 9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9272fi 9273{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 9274echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } 9275 if test $ac_cv_have_decl_getc_unlocked = yes; then 9276 gt_value=1 9277 else 9278 gt_value=0 9279 fi 9280 9281cat >>confdefs.h <<_ACEOF 9282#define HAVE_DECL_GETC_UNLOCKED $gt_value 9283_ACEOF 9284 9285 9286 9287 case $gt_cv_func_printf_posix in 9288 *yes) HAVE_POSIX_PRINTF=1 ;; 9289 *) HAVE_POSIX_PRINTF=0 ;; 9290 esac 9291 9292 if test "$ac_cv_func_asprintf" = yes; then 9293 HAVE_ASPRINTF=1 9294 else 9295 HAVE_ASPRINTF=0 9296 fi 9297 9298 if test "$ac_cv_func_snprintf" = yes; then 9299 HAVE_SNPRINTF=1 9300 else 9301 HAVE_SNPRINTF=0 9302 fi 9303 9304 if test "$ac_cv_func_wprintf" = yes; then 9305 HAVE_WPRINTF=1 9306 else 9307 HAVE_WPRINTF=0 9308 fi 9309 9310 9311 9312 9313 9314 9315 9316 am_save_CPPFLAGS="$CPPFLAGS" 9317 9318 for element in $INCICONV; do 9319 haveit= 9320 for x in $CPPFLAGS; do 9321 9322 acl_save_prefix="$prefix" 9323 prefix="$acl_final_prefix" 9324 acl_save_exec_prefix="$exec_prefix" 9325 exec_prefix="$acl_final_exec_prefix" 9326 eval x=\"$x\" 9327 exec_prefix="$acl_save_exec_prefix" 9328 prefix="$acl_save_prefix" 9329 9330 if test "X$x" = "X$element"; then 9331 haveit=yes 9332 break 9333 fi 9334 done 9335 if test -z "$haveit"; then 9336 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9337 fi 9338 done 9339 9340 9341 { echo "$as_me:$LINENO: checking for iconv" >&5 9342echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } 9343if test "${am_cv_func_iconv+set}" = set; then 9344 echo $ECHO_N "(cached) $ECHO_C" >&6 9345else 9346 9347 am_cv_func_iconv="no, consider installing GNU libiconv" 9348 am_cv_lib_iconv=no 9349 cat >conftest.$ac_ext <<_ACEOF 9350/* confdefs.h. */ 9351_ACEOF 9352cat confdefs.h >>conftest.$ac_ext 9353cat >>conftest.$ac_ext <<_ACEOF 9354/* end confdefs.h. */ 9355#include <stdlib.h> 9356#include <iconv.h> 9357int 9358main () 9359{ 9360iconv_t cd = iconv_open("",""); 9361 iconv(cd,NULL,NULL,NULL,NULL); 9362 iconv_close(cd); 9363 ; 9364 return 0; 9365} 9366_ACEOF 9367rm -f conftest.$ac_objext conftest$ac_exeext 9368if { (ac_try="$ac_link" 9369case "(($ac_try" in 9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9371 *) ac_try_echo=$ac_try;; 9372esac 9373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9374 (eval "$ac_link") 2>conftest.er1 9375 ac_status=$? 9376 grep -v '^ *+' conftest.er1 >conftest.err 9377 rm -f conftest.er1 9378 cat conftest.err >&5 9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9380 (exit $ac_status); } && { 9381 test -z "$ac_c_werror_flag" || 9382 test ! -s conftest.err 9383 } && test -s conftest$ac_exeext && 9384 $as_test_x conftest$ac_exeext; then 9385 am_cv_func_iconv=yes 9386else 9387 echo "$as_me: failed program was:" >&5 9388sed 's/^/| /' conftest.$ac_ext >&5 9389 9390 9391fi 9392 9393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9394 conftest$ac_exeext conftest.$ac_ext 9395 if test "$am_cv_func_iconv" != yes; then 9396 am_save_LIBS="$LIBS" 9397 LIBS="$LIBS $LIBICONV" 9398 cat >conftest.$ac_ext <<_ACEOF 9399/* confdefs.h. */ 9400_ACEOF 9401cat confdefs.h >>conftest.$ac_ext 9402cat >>conftest.$ac_ext <<_ACEOF 9403/* end confdefs.h. */ 9404#include <stdlib.h> 9405#include <iconv.h> 9406int 9407main () 9408{ 9409iconv_t cd = iconv_open("",""); 9410 iconv(cd,NULL,NULL,NULL,NULL); 9411 iconv_close(cd); 9412 ; 9413 return 0; 9414} 9415_ACEOF 9416rm -f conftest.$ac_objext conftest$ac_exeext 9417if { (ac_try="$ac_link" 9418case "(($ac_try" in 9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9420 *) ac_try_echo=$ac_try;; 9421esac 9422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9423 (eval "$ac_link") 2>conftest.er1 9424 ac_status=$? 9425 grep -v '^ *+' conftest.er1 >conftest.err 9426 rm -f conftest.er1 9427 cat conftest.err >&5 9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9429 (exit $ac_status); } && { 9430 test -z "$ac_c_werror_flag" || 9431 test ! -s conftest.err 9432 } && test -s conftest$ac_exeext && 9433 $as_test_x conftest$ac_exeext; then 9434 am_cv_lib_iconv=yes 9435 am_cv_func_iconv=yes 9436else 9437 echo "$as_me: failed program was:" >&5 9438sed 's/^/| /' conftest.$ac_ext >&5 9439 9440 9441fi 9442 9443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9444 conftest$ac_exeext conftest.$ac_ext 9445 LIBS="$am_save_LIBS" 9446 fi 9447 9448fi 9449{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 9450echo "${ECHO_T}$am_cv_func_iconv" >&6; } 9451 if test "$am_cv_func_iconv" = yes; then 9452 9453cat >>confdefs.h <<\_ACEOF 9454#define HAVE_ICONV 1 9455_ACEOF 9456 9457 fi 9458 if test "$am_cv_lib_iconv" = yes; then 9459 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 9460echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } 9461 { echo "$as_me:$LINENO: result: $LIBICONV" >&5 9462echo "${ECHO_T}$LIBICONV" >&6; } 9463 else 9464 CPPFLAGS="$am_save_CPPFLAGS" 9465 LIBICONV= 9466 LTLIBICONV= 9467 fi 9468 9469 9470 9471 if test "$am_cv_func_iconv" = yes; then 9472 { echo "$as_me:$LINENO: checking for iconv declaration" >&5 9473echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } 9474 if test "${am_cv_proto_iconv+set}" = set; then 9475 echo $ECHO_N "(cached) $ECHO_C" >&6 9476else 9477 9478 cat >conftest.$ac_ext <<_ACEOF 9479/* confdefs.h. */ 9480_ACEOF 9481cat confdefs.h >>conftest.$ac_ext 9482cat >>conftest.$ac_ext <<_ACEOF 9483/* end confdefs.h. */ 9484 9485#include <stdlib.h> 9486#include <iconv.h> 9487extern 9488#ifdef __cplusplus 9489"C" 9490#endif 9491#if defined(__STDC__) || defined(__cplusplus) 9492size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 9493#else 9494size_t iconv(); 9495#endif 9496 9497int 9498main () 9499{ 9500 9501 ; 9502 return 0; 9503} 9504_ACEOF 9505rm -f conftest.$ac_objext 9506if { (ac_try="$ac_compile" 9507case "(($ac_try" in 9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9509 *) ac_try_echo=$ac_try;; 9510esac 9511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9512 (eval "$ac_compile") 2>conftest.er1 9513 ac_status=$? 9514 grep -v '^ *+' conftest.er1 >conftest.err 9515 rm -f conftest.er1 9516 cat conftest.err >&5 9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9518 (exit $ac_status); } && { 9519 test -z "$ac_c_werror_flag" || 9520 test ! -s conftest.err 9521 } && test -s conftest.$ac_objext; then 9522 am_cv_proto_iconv_arg1="" 9523else 9524 echo "$as_me: failed program was:" >&5 9525sed 's/^/| /' conftest.$ac_ext >&5 9526 9527 am_cv_proto_iconv_arg1="const" 9528fi 9529 9530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9531 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);" 9532fi 9533 9534 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 9535 { echo "$as_me:$LINENO: result: ${ac_t:- 9536 }$am_cv_proto_iconv" >&5 9537echo "${ECHO_T}${ac_t:- 9538 }$am_cv_proto_iconv" >&6; } 9539 9540cat >>confdefs.h <<_ACEOF 9541#define ICONV_CONST $am_cv_proto_iconv_arg1 9542_ACEOF 9543 9544 fi 9545 9546 9547 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 9548echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } 9549if test "${am_cv_langinfo_codeset+set}" = set; then 9550 echo $ECHO_N "(cached) $ECHO_C" >&6 9551else 9552 cat >conftest.$ac_ext <<_ACEOF 9553/* confdefs.h. */ 9554_ACEOF 9555cat confdefs.h >>conftest.$ac_ext 9556cat >>conftest.$ac_ext <<_ACEOF 9557/* end confdefs.h. */ 9558#include <langinfo.h> 9559int 9560main () 9561{ 9562char* cs = nl_langinfo(CODESET); 9563 ; 9564 return 0; 9565} 9566_ACEOF 9567rm -f conftest.$ac_objext conftest$ac_exeext 9568if { (ac_try="$ac_link" 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_link") 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_exeext && 9584 $as_test_x conftest$ac_exeext; then 9585 am_cv_langinfo_codeset=yes 9586else 9587 echo "$as_me: failed program was:" >&5 9588sed 's/^/| /' conftest.$ac_ext >&5 9589 9590 am_cv_langinfo_codeset=no 9591fi 9592 9593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9594 conftest$ac_exeext conftest.$ac_ext 9595 9596fi 9597{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 9598echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } 9599 if test $am_cv_langinfo_codeset = yes; then 9600 9601cat >>confdefs.h <<\_ACEOF 9602#define HAVE_LANGINFO_CODESET 1 9603_ACEOF 9604 9605 fi 9606 9607 if test $ac_cv_header_locale_h = yes; then 9608 9609 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 9610echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } 9611if test "${am_cv_val_LC_MESSAGES+set}" = set; then 9612 echo $ECHO_N "(cached) $ECHO_C" >&6 9613else 9614 cat >conftest.$ac_ext <<_ACEOF 9615/* confdefs.h. */ 9616_ACEOF 9617cat confdefs.h >>conftest.$ac_ext 9618cat >>conftest.$ac_ext <<_ACEOF 9619/* end confdefs.h. */ 9620#include <locale.h> 9621int 9622main () 9623{ 9624return LC_MESSAGES 9625 ; 9626 return 0; 9627} 9628_ACEOF 9629rm -f conftest.$ac_objext conftest$ac_exeext 9630if { (ac_try="$ac_link" 9631case "(($ac_try" in 9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9633 *) ac_try_echo=$ac_try;; 9634esac 9635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9636 (eval "$ac_link") 2>conftest.er1 9637 ac_status=$? 9638 grep -v '^ *+' conftest.er1 >conftest.err 9639 rm -f conftest.er1 9640 cat conftest.err >&5 9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9642 (exit $ac_status); } && { 9643 test -z "$ac_c_werror_flag" || 9644 test ! -s conftest.err 9645 } && test -s conftest$ac_exeext && 9646 $as_test_x conftest$ac_exeext; then 9647 am_cv_val_LC_MESSAGES=yes 9648else 9649 echo "$as_me: failed program was:" >&5 9650sed 's/^/| /' conftest.$ac_ext >&5 9651 9652 am_cv_val_LC_MESSAGES=no 9653fi 9654 9655rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9656 conftest$ac_exeext conftest.$ac_ext 9657fi 9658{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 9659echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } 9660 if test $am_cv_val_LC_MESSAGES = yes; then 9661 9662cat >>confdefs.h <<\_ACEOF 9663#define HAVE_LC_MESSAGES 1 9664_ACEOF 9665 9666 fi 9667 9668 fi 9669 9670 for ac_prog in bison 9671do 9672 # Extract the first word of "$ac_prog", so it can be a program name with args. 9673set dummy $ac_prog; ac_word=$2 9674{ echo "$as_me:$LINENO: checking for $ac_word" >&5 9675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 9676if test "${ac_cv_prog_INTLBISON+set}" = set; then 9677 echo $ECHO_N "(cached) $ECHO_C" >&6 9678else 9679 if test -n "$INTLBISON"; then 9680 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 9681else 9682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9683for as_dir in $PATH 9684do 9685 IFS=$as_save_IFS 9686 test -z "$as_dir" && as_dir=. 9687 for ac_exec_ext in '' $ac_executable_extensions; do 9688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9689 ac_cv_prog_INTLBISON="$ac_prog" 9690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9691 break 2 9692 fi 9693done 9694done 9695IFS=$as_save_IFS 9696 9697fi 9698fi 9699INTLBISON=$ac_cv_prog_INTLBISON 9700if test -n "$INTLBISON"; then 9701 { echo "$as_me:$LINENO: result: $INTLBISON" >&5 9702echo "${ECHO_T}$INTLBISON" >&6; } 9703else 9704 { echo "$as_me:$LINENO: result: no" >&5 9705echo "${ECHO_T}no" >&6; } 9706fi 9707 9708 9709 test -n "$INTLBISON" && break 9710done 9711 9712 if test -z "$INTLBISON"; then 9713 ac_verc_fail=yes 9714 else 9715 { echo "$as_me:$LINENO: checking version of bison" >&5 9716echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } 9717 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 9718 case $ac_prog_version in 9719 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 9720 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 9721 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 9722 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 9723 esac 9724 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 9725echo "${ECHO_T}$ac_prog_version" >&6; } 9726 fi 9727 if test $ac_verc_fail = yes; then 9728 INTLBISON=: 9729 fi 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 9747echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 9748 # Check whether --enable-nls was given. 9749if test "${enable_nls+set}" = set; then 9750 enableval=$enable_nls; USE_NLS=$enableval 9751else 9752 USE_NLS=yes 9753fi 9754 9755 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 9756echo "${ECHO_T}$USE_NLS" >&6; } 9757 9758 9759 9760 9761 BUILD_INCLUDED_LIBINTL=no 9762 USE_INCLUDED_LIBINTL=no 9763 9764 LIBINTL= 9765 LTLIBINTL= 9766 POSUB= 9767 9768 if test "$USE_NLS" = "yes"; then 9769 gt_use_preinstalled_gnugettext=no 9770 9771 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 9772echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } 9773 9774# Check whether --with-included-gettext was given. 9775if test "${with_included_gettext+set}" = set; then 9776 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 9777else 9778 nls_cv_force_use_gnu_gettext=no 9779fi 9780 9781 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 9782echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } 9783 9784 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 9785 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 9786 9787 9788 9789 9790 9791 9792 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 9793echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 9794if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 9795 echo $ECHO_N "(cached) $ECHO_C" >&6 9796else 9797 cat >conftest.$ac_ext <<_ACEOF 9798/* confdefs.h. */ 9799_ACEOF 9800cat confdefs.h >>conftest.$ac_ext 9801cat >>conftest.$ac_ext <<_ACEOF 9802/* end confdefs.h. */ 9803#include <libintl.h> 9804extern int _nl_msg_cat_cntr; 9805extern int *_nl_domain_bindings; 9806int 9807main () 9808{ 9809bindtextdomain ("", ""); 9810return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 9811 ; 9812 return 0; 9813} 9814_ACEOF 9815rm -f conftest.$ac_objext conftest$ac_exeext 9816if { (ac_try="$ac_link" 9817case "(($ac_try" in 9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9819 *) ac_try_echo=$ac_try;; 9820esac 9821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9822 (eval "$ac_link") 2>conftest.er1 9823 ac_status=$? 9824 grep -v '^ *+' conftest.er1 >conftest.err 9825 rm -f conftest.er1 9826 cat conftest.err >&5 9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9828 (exit $ac_status); } && { 9829 test -z "$ac_c_werror_flag" || 9830 test ! -s conftest.err 9831 } && test -s conftest$ac_exeext && 9832 $as_test_x conftest$ac_exeext; then 9833 gt_cv_func_gnugettext1_libc=yes 9834else 9835 echo "$as_me: failed program was:" >&5 9836sed 's/^/| /' conftest.$ac_ext >&5 9837 9838 gt_cv_func_gnugettext1_libc=no 9839fi 9840 9841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9842 conftest$ac_exeext conftest.$ac_ext 9843fi 9844{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 9845echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } 9846 9847 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 9848 9849 9850 9851 use_additional=yes 9852 9853 acl_save_prefix="$prefix" 9854 prefix="$acl_final_prefix" 9855 acl_save_exec_prefix="$exec_prefix" 9856 exec_prefix="$acl_final_exec_prefix" 9857 9858 eval additional_includedir=\"$includedir\" 9859 eval additional_libdir=\"$libdir\" 9860 9861 exec_prefix="$acl_save_exec_prefix" 9862 prefix="$acl_save_prefix" 9863 9864 9865# Check whether --with-libintl-prefix was given. 9866if test "${with_libintl_prefix+set}" = set; then 9867 withval=$with_libintl_prefix; 9868 if test "X$withval" = "Xno"; then 9869 use_additional=no 9870 else 9871 if test "X$withval" = "X"; then 9872 9873 acl_save_prefix="$prefix" 9874 prefix="$acl_final_prefix" 9875 acl_save_exec_prefix="$exec_prefix" 9876 exec_prefix="$acl_final_exec_prefix" 9877 9878 eval additional_includedir=\"$includedir\" 9879 eval additional_libdir=\"$libdir\" 9880 9881 exec_prefix="$acl_save_exec_prefix" 9882 prefix="$acl_save_prefix" 9883 9884 else 9885 additional_includedir="$withval/include" 9886 additional_libdir="$withval/lib" 9887 fi 9888 fi 9889 9890fi 9891 9892 LIBINTL= 9893 LTLIBINTL= 9894 INCINTL= 9895 rpathdirs= 9896 ltrpathdirs= 9897 names_already_handled= 9898 names_next_round='intl ' 9899 while test -n "$names_next_round"; do 9900 names_this_round="$names_next_round" 9901 names_next_round= 9902 for name in $names_this_round; do 9903 already_handled= 9904 for n in $names_already_handled; do 9905 if test "$n" = "$name"; then 9906 already_handled=yes 9907 break 9908 fi 9909 done 9910 if test -z "$already_handled"; then 9911 names_already_handled="$names_already_handled $name" 9912 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 9913 eval value=\"\$HAVE_LIB$uppername\" 9914 if test -n "$value"; then 9915 if test "$value" = yes; then 9916 eval value=\"\$LIB$uppername\" 9917 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 9918 eval value=\"\$LTLIB$uppername\" 9919 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 9920 else 9921 : 9922 fi 9923 else 9924 found_dir= 9925 found_la= 9926 found_so= 9927 found_a= 9928 if test $use_additional = yes; then 9929 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 9930 found_dir="$additional_libdir" 9931 found_so="$additional_libdir/lib$name.$shlibext" 9932 if test -f "$additional_libdir/lib$name.la"; then 9933 found_la="$additional_libdir/lib$name.la" 9934 fi 9935 else 9936 if test -f "$additional_libdir/lib$name.$libext"; then 9937 found_dir="$additional_libdir" 9938 found_a="$additional_libdir/lib$name.$libext" 9939 if test -f "$additional_libdir/lib$name.la"; then 9940 found_la="$additional_libdir/lib$name.la" 9941 fi 9942 fi 9943 fi 9944 fi 9945 if test "X$found_dir" = "X"; then 9946 for x in $LDFLAGS $LTLIBINTL; do 9947 9948 acl_save_prefix="$prefix" 9949 prefix="$acl_final_prefix" 9950 acl_save_exec_prefix="$exec_prefix" 9951 exec_prefix="$acl_final_exec_prefix" 9952 eval x=\"$x\" 9953 exec_prefix="$acl_save_exec_prefix" 9954 prefix="$acl_save_prefix" 9955 9956 case "$x" in 9957 -L*) 9958 dir=`echo "X$x" | sed -e 's/^X-L//'` 9959 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 9960 found_dir="$dir" 9961 found_so="$dir/lib$name.$shlibext" 9962 if test -f "$dir/lib$name.la"; then 9963 found_la="$dir/lib$name.la" 9964 fi 9965 else 9966 if test -f "$dir/lib$name.$libext"; then 9967 found_dir="$dir" 9968 found_a="$dir/lib$name.$libext" 9969 if test -f "$dir/lib$name.la"; then 9970 found_la="$dir/lib$name.la" 9971 fi 9972 fi 9973 fi 9974 ;; 9975 esac 9976 if test "X$found_dir" != "X"; then 9977 break 9978 fi 9979 done 9980 fi 9981 if test "X$found_dir" != "X"; then 9982 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 9983 if test "X$found_so" != "X"; then 9984 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 9985 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9986 else 9987 haveit= 9988 for x in $ltrpathdirs; do 9989 if test "X$x" = "X$found_dir"; then 9990 haveit=yes 9991 break 9992 fi 9993 done 9994 if test -z "$haveit"; then 9995 ltrpathdirs="$ltrpathdirs $found_dir" 9996 fi 9997 if test "$hardcode_direct" = yes; then 9998 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 9999 else 10000 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 10001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10002 haveit= 10003 for x in $rpathdirs; do 10004 if test "X$x" = "X$found_dir"; then 10005 haveit=yes 10006 break 10007 fi 10008 done 10009 if test -z "$haveit"; then 10010 rpathdirs="$rpathdirs $found_dir" 10011 fi 10012 else 10013 haveit= 10014 for x in $LDFLAGS $LIBINTL; do 10015 10016 acl_save_prefix="$prefix" 10017 prefix="$acl_final_prefix" 10018 acl_save_exec_prefix="$exec_prefix" 10019 exec_prefix="$acl_final_exec_prefix" 10020 eval x=\"$x\" 10021 exec_prefix="$acl_save_exec_prefix" 10022 prefix="$acl_save_prefix" 10023 10024 if test "X$x" = "X-L$found_dir"; then 10025 haveit=yes 10026 break 10027 fi 10028 done 10029 if test -z "$haveit"; then 10030 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 10031 fi 10032 if test "$hardcode_minus_L" != no; then 10033 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 10034 else 10035 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10036 fi 10037 fi 10038 fi 10039 fi 10040 else 10041 if test "X$found_a" != "X"; then 10042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 10043 else 10044 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 10045 fi 10046 fi 10047 additional_includedir= 10048 case "$found_dir" in 10049 */lib | */lib/) 10050 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 10051 additional_includedir="$basedir/include" 10052 ;; 10053 esac 10054 if test "X$additional_includedir" != "X"; then 10055 if test "X$additional_includedir" != "X/usr/include"; then 10056 haveit= 10057 if test "X$additional_includedir" = "X/usr/local/include"; then 10058 if test -n "$GCC"; then 10059 case $host_os in 10060 linux*) haveit=yes;; 10061 esac 10062 fi 10063 fi 10064 if test -z "$haveit"; then 10065 for x in $CPPFLAGS $INCINTL; do 10066 10067 acl_save_prefix="$prefix" 10068 prefix="$acl_final_prefix" 10069 acl_save_exec_prefix="$exec_prefix" 10070 exec_prefix="$acl_final_exec_prefix" 10071 eval x=\"$x\" 10072 exec_prefix="$acl_save_exec_prefix" 10073 prefix="$acl_save_prefix" 10074 10075 if test "X$x" = "X-I$additional_includedir"; then 10076 haveit=yes 10077 break 10078 fi 10079 done 10080 if test -z "$haveit"; then 10081 if test -d "$additional_includedir"; then 10082 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 10083 fi 10084 fi 10085 fi 10086 fi 10087 fi 10088 if test -n "$found_la"; then 10089 save_libdir="$libdir" 10090 case "$found_la" in 10091 */* | *\\*) . "$found_la" ;; 10092 *) . "./$found_la" ;; 10093 esac 10094 libdir="$save_libdir" 10095 for dep in $dependency_libs; do 10096 case "$dep" in 10097 -L*) 10098 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 10099 if test "X$additional_libdir" != "X/usr/lib"; then 10100 haveit= 10101 if test "X$additional_libdir" = "X/usr/local/lib"; then 10102 if test -n "$GCC"; then 10103 case $host_os in 10104 linux*) haveit=yes;; 10105 esac 10106 fi 10107 fi 10108 if test -z "$haveit"; then 10109 haveit= 10110 for x in $LDFLAGS $LIBINTL; do 10111 10112 acl_save_prefix="$prefix" 10113 prefix="$acl_final_prefix" 10114 acl_save_exec_prefix="$exec_prefix" 10115 exec_prefix="$acl_final_exec_prefix" 10116 eval x=\"$x\" 10117 exec_prefix="$acl_save_exec_prefix" 10118 prefix="$acl_save_prefix" 10119 10120 if test "X$x" = "X-L$additional_libdir"; then 10121 haveit=yes 10122 break 10123 fi 10124 done 10125 if test -z "$haveit"; then 10126 if test -d "$additional_libdir"; then 10127 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 10128 fi 10129 fi 10130 haveit= 10131 for x in $LDFLAGS $LTLIBINTL; do 10132 10133 acl_save_prefix="$prefix" 10134 prefix="$acl_final_prefix" 10135 acl_save_exec_prefix="$exec_prefix" 10136 exec_prefix="$acl_final_exec_prefix" 10137 eval x=\"$x\" 10138 exec_prefix="$acl_save_exec_prefix" 10139 prefix="$acl_save_prefix" 10140 10141 if test "X$x" = "X-L$additional_libdir"; then 10142 haveit=yes 10143 break 10144 fi 10145 done 10146 if test -z "$haveit"; then 10147 if test -d "$additional_libdir"; then 10148 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 10149 fi 10150 fi 10151 fi 10152 fi 10153 ;; 10154 -R*) 10155 dir=`echo "X$dep" | sed -e 's/^X-R//'` 10156 if test "$enable_rpath" != no; then 10157 haveit= 10158 for x in $rpathdirs; do 10159 if test "X$x" = "X$dir"; then 10160 haveit=yes 10161 break 10162 fi 10163 done 10164 if test -z "$haveit"; then 10165 rpathdirs="$rpathdirs $dir" 10166 fi 10167 haveit= 10168 for x in $ltrpathdirs; do 10169 if test "X$x" = "X$dir"; then 10170 haveit=yes 10171 break 10172 fi 10173 done 10174 if test -z "$haveit"; then 10175 ltrpathdirs="$ltrpathdirs $dir" 10176 fi 10177 fi 10178 ;; 10179 -l*) 10180 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 10181 ;; 10182 *.la) 10183 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 10184 ;; 10185 *) 10186 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 10187 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 10188 ;; 10189 esac 10190 done 10191 fi 10192 else 10193 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 10194 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 10195 fi 10196 fi 10197 fi 10198 done 10199 done 10200 if test "X$rpathdirs" != "X"; then 10201 if test -n "$hardcode_libdir_separator"; then 10202 alldirs= 10203 for found_dir in $rpathdirs; do 10204 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 10205 done 10206 acl_save_libdir="$libdir" 10207 libdir="$alldirs" 10208 eval flag=\"$hardcode_libdir_flag_spec\" 10209 libdir="$acl_save_libdir" 10210 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10211 else 10212 for found_dir in $rpathdirs; do 10213 acl_save_libdir="$libdir" 10214 libdir="$found_dir" 10215 eval flag=\"$hardcode_libdir_flag_spec\" 10216 libdir="$acl_save_libdir" 10217 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 10218 done 10219 fi 10220 fi 10221 if test "X$ltrpathdirs" != "X"; then 10222 for found_dir in $ltrpathdirs; do 10223 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 10224 done 10225 fi 10226 10227 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 10228echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 10229if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 10230 echo $ECHO_N "(cached) $ECHO_C" >&6 10231else 10232 gt_save_CPPFLAGS="$CPPFLAGS" 10233 CPPFLAGS="$CPPFLAGS $INCINTL" 10234 gt_save_LIBS="$LIBS" 10235 LIBS="$LIBS $LIBINTL" 10236 cat >conftest.$ac_ext <<_ACEOF 10237/* confdefs.h. */ 10238_ACEOF 10239cat confdefs.h >>conftest.$ac_ext 10240cat >>conftest.$ac_ext <<_ACEOF 10241/* end confdefs.h. */ 10242#include <libintl.h> 10243extern int _nl_msg_cat_cntr; 10244extern 10245#ifdef __cplusplus 10246"C" 10247#endif 10248const char *_nl_expand_alias (); 10249int 10250main () 10251{ 10252bindtextdomain ("", ""); 10253return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 10254 ; 10255 return 0; 10256} 10257_ACEOF 10258rm -f conftest.$ac_objext conftest$ac_exeext 10259if { (ac_try="$ac_link" 10260case "(($ac_try" in 10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10262 *) ac_try_echo=$ac_try;; 10263esac 10264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10265 (eval "$ac_link") 2>conftest.er1 10266 ac_status=$? 10267 grep -v '^ *+' conftest.er1 >conftest.err 10268 rm -f conftest.er1 10269 cat conftest.err >&5 10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10271 (exit $ac_status); } && { 10272 test -z "$ac_c_werror_flag" || 10273 test ! -s conftest.err 10274 } && test -s conftest$ac_exeext && 10275 $as_test_x conftest$ac_exeext; then 10276 gt_cv_func_gnugettext1_libintl=yes 10277else 10278 echo "$as_me: failed program was:" >&5 10279sed 's/^/| /' conftest.$ac_ext >&5 10280 10281 gt_cv_func_gnugettext1_libintl=no 10282fi 10283 10284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10285 conftest$ac_exeext conftest.$ac_ext 10286 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 10287 LIBS="$LIBS $LIBICONV" 10288 cat >conftest.$ac_ext <<_ACEOF 10289/* confdefs.h. */ 10290_ACEOF 10291cat confdefs.h >>conftest.$ac_ext 10292cat >>conftest.$ac_ext <<_ACEOF 10293/* end confdefs.h. */ 10294#include <libintl.h> 10295extern int _nl_msg_cat_cntr; 10296extern 10297#ifdef __cplusplus 10298"C" 10299#endif 10300const char *_nl_expand_alias (); 10301int 10302main () 10303{ 10304bindtextdomain ("", ""); 10305return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 10306 ; 10307 return 0; 10308} 10309_ACEOF 10310rm -f conftest.$ac_objext conftest$ac_exeext 10311if { (ac_try="$ac_link" 10312case "(($ac_try" in 10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10314 *) ac_try_echo=$ac_try;; 10315esac 10316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10317 (eval "$ac_link") 2>conftest.er1 10318 ac_status=$? 10319 grep -v '^ *+' conftest.er1 >conftest.err 10320 rm -f conftest.er1 10321 cat conftest.err >&5 10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10323 (exit $ac_status); } && { 10324 test -z "$ac_c_werror_flag" || 10325 test ! -s conftest.err 10326 } && test -s conftest$ac_exeext && 10327 $as_test_x conftest$ac_exeext; then 10328 LIBINTL="$LIBINTL $LIBICONV" 10329 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 10330 gt_cv_func_gnugettext1_libintl=yes 10331 10332else 10333 echo "$as_me: failed program was:" >&5 10334sed 's/^/| /' conftest.$ac_ext >&5 10335 10336 10337fi 10338 10339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10340 conftest$ac_exeext conftest.$ac_ext 10341 fi 10342 CPPFLAGS="$gt_save_CPPFLAGS" 10343 LIBS="$gt_save_LIBS" 10344fi 10345{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 10346echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } 10347 fi 10348 10349 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 10350 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 10351 && test "$PACKAGE" != gettext-runtime \ 10352 && test "$PACKAGE" != gettext-tools; }; then 10353 gt_use_preinstalled_gnugettext=yes 10354 else 10355 LIBINTL= 10356 LTLIBINTL= 10357 INCINTL= 10358 fi 10359 10360 10361 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 10362 nls_cv_use_gnu_gettext=yes 10363 fi 10364 fi 10365 10366 if test "$nls_cv_use_gnu_gettext" = "yes"; then 10367 BUILD_INCLUDED_LIBINTL=yes 10368 USE_INCLUDED_LIBINTL=yes 10369 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 10370 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 10371 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 10372 fi 10373 10374 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10375 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10376 CATOBJEXT=.gmo 10377 fi 10378 10379 10380 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 10381 || test "$nls_cv_use_gnu_gettext" = "yes"; then 10382 10383cat >>confdefs.h <<\_ACEOF 10384#define ENABLE_NLS 1 10385_ACEOF 10386 10387 else 10388 USE_NLS=no 10389 fi 10390 fi 10391 10392 { echo "$as_me:$LINENO: checking whether to use NLS" >&5 10393echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } 10394 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 10395echo "${ECHO_T}$USE_NLS" >&6; } 10396 if test "$USE_NLS" = "yes"; then 10397 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 10398echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 10399 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10400 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 10401 gt_source="external libintl" 10402 else 10403 gt_source="libc" 10404 fi 10405 else 10406 gt_source="included intl directory" 10407 fi 10408 { echo "$as_me:$LINENO: result: $gt_source" >&5 10409echo "${ECHO_T}$gt_source" >&6; } 10410 fi 10411 10412 if test "$USE_NLS" = "yes"; then 10413 10414 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 10415 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 10416 { echo "$as_me:$LINENO: checking how to link with libintl" >&5 10417echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } 10418 { echo "$as_me:$LINENO: result: $LIBINTL" >&5 10419echo "${ECHO_T}$LIBINTL" >&6; } 10420 10421 for element in $INCINTL; do 10422 haveit= 10423 for x in $CPPFLAGS; do 10424 10425 acl_save_prefix="$prefix" 10426 prefix="$acl_final_prefix" 10427 acl_save_exec_prefix="$exec_prefix" 10428 exec_prefix="$acl_final_exec_prefix" 10429 eval x=\"$x\" 10430 exec_prefix="$acl_save_exec_prefix" 10431 prefix="$acl_save_prefix" 10432 10433 if test "X$x" = "X$element"; then 10434 haveit=yes 10435 break 10436 fi 10437 done 10438 if test -z "$haveit"; then 10439 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10440 fi 10441 done 10442 10443 fi 10444 10445 10446cat >>confdefs.h <<\_ACEOF 10447#define HAVE_GETTEXT 1 10448_ACEOF 10449 10450 10451cat >>confdefs.h <<\_ACEOF 10452#define HAVE_DCGETTEXT 1 10453_ACEOF 10454 10455 fi 10456 10457 POSUB=po 10458 fi 10459 10460 10461 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 10462 BUILD_INCLUDED_LIBINTL=yes 10463 fi 10464 10465 10466 10467 10468 10469 nls_cv_header_intl= 10470 nls_cv_header_libgt= 10471 10472 DATADIRNAME=share 10473 10474 10475 INSTOBJEXT=.mo 10476 10477 10478 GENCAT=gencat 10479 10480 10481 if test "$USE_INCLUDED_LIBINTL" = yes; then 10482 INTLOBJS="\$(GETTOBJS)" 10483 fi 10484 10485 10486 INTL_LIBTOOL_SUFFIX_PREFIX= 10487 10488 10489 10490 INTLLIBS="$LIBINTL" 10491 10492 10493 10494 10495 10496 10497 10498{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10499echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 10500set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10501if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 10502 echo $ECHO_N "(cached) $ECHO_C" >&6 10503else 10504 cat >conftest.make <<\_ACEOF 10505SHELL = /bin/sh 10506all: 10507 @echo '@@@%%%=$(MAKE)=@@@%%%' 10508_ACEOF 10509# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 10510case `${MAKE-make} -f conftest.make 2>/dev/null` in 10511 *@@@%%%=?*=@@@%%%*) 10512 eval ac_cv_prog_make_${ac_make}_set=yes;; 10513 *) 10514 eval ac_cv_prog_make_${ac_make}_set=no;; 10515esac 10516rm -f conftest.make 10517fi 10518if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10519 { echo "$as_me:$LINENO: result: yes" >&5 10520echo "${ECHO_T}yes" >&6; } 10521 SET_MAKE= 10522else 10523 { echo "$as_me:$LINENO: result: no" >&5 10524echo "${ECHO_T}no" >&6; } 10525 SET_MAKE="MAKE=${MAKE-make}" 10526fi 10527 10528# Extract the first word of "ln", so it can be a program name with args. 10529set dummy ln; ac_word=$2 10530{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10532if test "${ac_cv_path_LN+set}" = set; then 10533 echo $ECHO_N "(cached) $ECHO_C" >&6 10534else 10535 case $LN in 10536 [\\/]* | ?:[\\/]*) 10537 ac_cv_path_LN="$LN" # Let the user override the test with a path. 10538 ;; 10539 *) 10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10541for as_dir in $PATH 10542do 10543 IFS=$as_save_IFS 10544 test -z "$as_dir" && as_dir=. 10545 for ac_exec_ext in '' $ac_executable_extensions; do 10546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10547 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 10548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10549 break 2 10550 fi 10551done 10552done 10553IFS=$as_save_IFS 10554 10555 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 10556 ;; 10557esac 10558fi 10559LN=$ac_cv_path_LN 10560if test -n "$LN"; then 10561 { echo "$as_me:$LINENO: result: $LN" >&5 10562echo "${ECHO_T}$LN" >&6; } 10563else 10564 { echo "$as_me:$LINENO: result: no" >&5 10565echo "${ECHO_T}no" >&6; } 10566fi 10567 10568 10569{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 10570echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 10571LN_S=$as_ln_s 10572if test "$LN_S" = "ln -s"; then 10573 { echo "$as_me:$LINENO: result: yes" >&5 10574echo "${ECHO_T}yes" >&6; } 10575else 10576 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 10577echo "${ECHO_T}no, using $LN_S" >&6; } 10578fi 10579 10580# Extract the first word of "mv", so it can be a program name with args. 10581set dummy mv; ac_word=$2 10582{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10584if test "${ac_cv_path_MV+set}" = set; then 10585 echo $ECHO_N "(cached) $ECHO_C" >&6 10586else 10587 case $MV in 10588 [\\/]* | ?:[\\/]*) 10589 ac_cv_path_MV="$MV" # Let the user override the test with a path. 10590 ;; 10591 *) 10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10593for as_dir in $PATH 10594do 10595 IFS=$as_save_IFS 10596 test -z "$as_dir" && as_dir=. 10597 for ac_exec_ext in '' $ac_executable_extensions; do 10598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10599 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 10600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10601 break 2 10602 fi 10603done 10604done 10605IFS=$as_save_IFS 10606 10607 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 10608 ;; 10609esac 10610fi 10611MV=$ac_cv_path_MV 10612if test -n "$MV"; then 10613 { echo "$as_me:$LINENO: result: $MV" >&5 10614echo "${ECHO_T}$MV" >&6; } 10615else 10616 { echo "$as_me:$LINENO: result: no" >&5 10617echo "${ECHO_T}no" >&6; } 10618fi 10619 10620 10621# Extract the first word of "cp", so it can be a program name with args. 10622set dummy cp; ac_word=$2 10623{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10625if test "${ac_cv_path_CP+set}" = set; then 10626 echo $ECHO_N "(cached) $ECHO_C" >&6 10627else 10628 case $CP in 10629 [\\/]* | ?:[\\/]*) 10630 ac_cv_path_CP="$CP" # Let the user override the test with a path. 10631 ;; 10632 *) 10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10634for as_dir in $PATH 10635do 10636 IFS=$as_save_IFS 10637 test -z "$as_dir" && as_dir=. 10638 for ac_exec_ext in '' $ac_executable_extensions; do 10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10640 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10642 break 2 10643 fi 10644done 10645done 10646IFS=$as_save_IFS 10647 10648 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 10649 ;; 10650esac 10651fi 10652CP=$ac_cv_path_CP 10653if test -n "$CP"; then 10654 { echo "$as_me:$LINENO: result: $CP" >&5 10655echo "${ECHO_T}$CP" >&6; } 10656else 10657 { echo "$as_me:$LINENO: result: no" >&5 10658echo "${ECHO_T}no" >&6; } 10659fi 10660 10661 10662# Extract the first word of "rm", so it can be a program name with args. 10663set dummy rm; ac_word=$2 10664{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10666if test "${ac_cv_path_RM+set}" = set; then 10667 echo $ECHO_N "(cached) $ECHO_C" >&6 10668else 10669 case $RM in 10670 [\\/]* | ?:[\\/]*) 10671 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10672 ;; 10673 *) 10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10675for as_dir in $PATH 10676do 10677 IFS=$as_save_IFS 10678 test -z "$as_dir" && as_dir=. 10679 for ac_exec_ext in '' $ac_executable_extensions; do 10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10681 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10683 break 2 10684 fi 10685done 10686done 10687IFS=$as_save_IFS 10688 10689 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 10690 ;; 10691esac 10692fi 10693RM=$ac_cv_path_RM 10694if test -n "$RM"; then 10695 { echo "$as_me:$LINENO: result: $RM" >&5 10696echo "${ECHO_T}$RM" >&6; } 10697else 10698 { echo "$as_me:$LINENO: result: no" >&5 10699echo "${ECHO_T}no" >&6; } 10700fi 10701 10702 10703# Extract the first word of "chmod", so it can be a program name with args. 10704set dummy chmod; ac_word=$2 10705{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10707if test "${ac_cv_path_CHMOD+set}" = set; then 10708 echo $ECHO_N "(cached) $ECHO_C" >&6 10709else 10710 case $CHMOD in 10711 [\\/]* | ?:[\\/]*) 10712 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 10713 ;; 10714 *) 10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10716for as_dir in $PATH 10717do 10718 IFS=$as_save_IFS 10719 test -z "$as_dir" && as_dir=. 10720 for ac_exec_ext in '' $ac_executable_extensions; do 10721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10722 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 10723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10724 break 2 10725 fi 10726done 10727done 10728IFS=$as_save_IFS 10729 10730 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" 10731 ;; 10732esac 10733fi 10734CHMOD=$ac_cv_path_CHMOD 10735if test -n "$CHMOD"; then 10736 { echo "$as_me:$LINENO: result: $CHMOD" >&5 10737echo "${ECHO_T}$CHMOD" >&6; } 10738else 10739 { echo "$as_me:$LINENO: result: no" >&5 10740echo "${ECHO_T}no" >&6; } 10741fi 10742 10743 10744for ac_prog in gawk mawk nawk awk 10745do 10746 # Extract the first word of "$ac_prog", so it can be a program name with args. 10747set dummy $ac_prog; ac_word=$2 10748{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10750if test "${ac_cv_prog_AWK+set}" = set; then 10751 echo $ECHO_N "(cached) $ECHO_C" >&6 10752else 10753 if test -n "$AWK"; then 10754 ac_cv_prog_AWK="$AWK" # Let the user override the test. 10755else 10756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10757for as_dir in $PATH 10758do 10759 IFS=$as_save_IFS 10760 test -z "$as_dir" && as_dir=. 10761 for ac_exec_ext in '' $ac_executable_extensions; do 10762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10763 ac_cv_prog_AWK="$ac_prog" 10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10765 break 2 10766 fi 10767done 10768done 10769IFS=$as_save_IFS 10770 10771fi 10772fi 10773AWK=$ac_cv_prog_AWK 10774if test -n "$AWK"; then 10775 { echo "$as_me:$LINENO: result: $AWK" >&5 10776echo "${ECHO_T}$AWK" >&6; } 10777else 10778 { echo "$as_me:$LINENO: result: no" >&5 10779echo "${ECHO_T}no" >&6; } 10780fi 10781 10782 10783 test -n "$AWK" && break 10784done 10785 10786{ echo "$as_me:$LINENO: checking for egrep" >&5 10787echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 10788if test "${ac_cv_path_EGREP+set}" = set; then 10789 echo $ECHO_N "(cached) $ECHO_C" >&6 10790else 10791 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 10792 then ac_cv_path_EGREP="$GREP -E" 10793 else 10794 # Extract the first word of "egrep" to use in msg output 10795if test -z "$EGREP"; then 10796set dummy egrep; ac_prog_name=$2 10797if test "${ac_cv_path_EGREP+set}" = set; then 10798 echo $ECHO_N "(cached) $ECHO_C" >&6 10799else 10800 ac_path_EGREP_found=false 10801# Loop through the user's path and test for each of PROGNAME-LIST 10802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10803for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10804do 10805 IFS=$as_save_IFS 10806 test -z "$as_dir" && as_dir=. 10807 for ac_prog in egrep; do 10808 for ac_exec_ext in '' $ac_executable_extensions; do 10809 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 10810 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 10811 # Check for GNU ac_path_EGREP and select it if it is found. 10812 # Check for GNU $ac_path_EGREP 10813case `"$ac_path_EGREP" --version 2>&1` in 10814*GNU*) 10815 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 10816*) 10817 ac_count=0 10818 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 10819 while : 10820 do 10821 cat "conftest.in" "conftest.in" >"conftest.tmp" 10822 mv "conftest.tmp" "conftest.in" 10823 cp "conftest.in" "conftest.nl" 10824 echo 'EGREP' >> "conftest.nl" 10825 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 10826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10827 ac_count=`expr $ac_count + 1` 10828 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 10829 # Best one so far, save it but keep looking for a better one 10830 ac_cv_path_EGREP="$ac_path_EGREP" 10831 ac_path_EGREP_max=$ac_count 10832 fi 10833 # 10*(2^10) chars as input seems more than enough 10834 test $ac_count -gt 10 && break 10835 done 10836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10837esac 10838 10839 10840 $ac_path_EGREP_found && break 3 10841 done 10842done 10843 10844done 10845IFS=$as_save_IFS 10846 10847 10848fi 10849 10850EGREP="$ac_cv_path_EGREP" 10851if test -z "$EGREP"; then 10852 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 10853echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 10854 { (exit 1); exit 1; }; } 10855fi 10856 10857else 10858 ac_cv_path_EGREP=$EGREP 10859fi 10860 10861 10862 fi 10863fi 10864{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 10865echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 10866 EGREP="$ac_cv_path_EGREP" 10867 10868 10869# Extract the first word of "sed", so it can be a program name with args. 10870set dummy sed; ac_word=$2 10871{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10873if test "${ac_cv_path_SED+set}" = set; then 10874 echo $ECHO_N "(cached) $ECHO_C" >&6 10875else 10876 case $SED in 10877 [\\/]* | ?:[\\/]*) 10878 ac_cv_path_SED="$SED" # Let the user override the test with a path. 10879 ;; 10880 *) 10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10882for as_dir in $PATH 10883do 10884 IFS=$as_save_IFS 10885 test -z "$as_dir" && as_dir=. 10886 for ac_exec_ext in '' $ac_executable_extensions; do 10887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10888 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 10889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10890 break 2 10891 fi 10892done 10893done 10894IFS=$as_save_IFS 10895 10896 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 10897 ;; 10898esac 10899fi 10900SED=$ac_cv_path_SED 10901if test -n "$SED"; then 10902 { echo "$as_me:$LINENO: result: $SED" >&5 10903echo "${ECHO_T}$SED" >&6; } 10904else 10905 { echo "$as_me:$LINENO: result: no" >&5 10906echo "${ECHO_T}no" >&6; } 10907fi 10908 10909 10910# Extract the first word of "perl", so it can be a program name with args. 10911set dummy perl; ac_word=$2 10912{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10914if test "${ac_cv_path_PERL+set}" = set; then 10915 echo $ECHO_N "(cached) $ECHO_C" >&6 10916else 10917 case $PERL in 10918 [\\/]* | ?:[\\/]*) 10919 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 10920 ;; 10921 *) 10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10923for as_dir in $PATH 10924do 10925 IFS=$as_save_IFS 10926 test -z "$as_dir" && as_dir=. 10927 for ac_exec_ext in '' $ac_executable_extensions; do 10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10929 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 10930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10931 break 2 10932 fi 10933done 10934done 10935IFS=$as_save_IFS 10936 10937 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" 10938 ;; 10939esac 10940fi 10941PERL=$ac_cv_path_PERL 10942if test -n "$PERL"; then 10943 { echo "$as_me:$LINENO: result: $PERL" >&5 10944echo "${ECHO_T}$PERL" >&6; } 10945else 10946 { echo "$as_me:$LINENO: result: no" >&5 10947echo "${ECHO_T}no" >&6; } 10948fi 10949 10950 10951# Extract the first word of "ldconfig", so it can be a program name with args. 10952set dummy ldconfig; ac_word=$2 10953{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10955if test "${ac_cv_path_LDCONFIG+set}" = set; then 10956 echo $ECHO_N "(cached) $ECHO_C" >&6 10957else 10958 case $LDCONFIG in 10959 [\\/]* | ?:[\\/]*) 10960 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 10961 ;; 10962 *) 10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10964for as_dir in $PATH 10965do 10966 IFS=$as_save_IFS 10967 test -z "$as_dir" && as_dir=. 10968 for ac_exec_ext in '' $ac_executable_extensions; do 10969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10970 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" 10971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10972 break 2 10973 fi 10974done 10975done 10976IFS=$as_save_IFS 10977 10978 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" 10979 ;; 10980esac 10981fi 10982LDCONFIG=$ac_cv_path_LDCONFIG 10983if test -n "$LDCONFIG"; then 10984 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 10985echo "${ECHO_T}$LDCONFIG" >&6; } 10986else 10987 { echo "$as_me:$LINENO: result: no" >&5 10988echo "${ECHO_T}no" >&6; } 10989fi 10990 10991 10992if test -n "$ac_tool_prefix"; then 10993 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 10994set dummy ${ac_tool_prefix}ar; ac_word=$2 10995{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10997if test "${ac_cv_prog_AR+set}" = set; then 10998 echo $ECHO_N "(cached) $ECHO_C" >&6 10999else 11000 if test -n "$AR"; then 11001 ac_cv_prog_AR="$AR" # Let the user override the test. 11002else 11003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11004for as_dir in $PATH 11005do 11006 IFS=$as_save_IFS 11007 test -z "$as_dir" && as_dir=. 11008 for ac_exec_ext in '' $ac_executable_extensions; do 11009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11010 ac_cv_prog_AR="${ac_tool_prefix}ar" 11011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11012 break 2 11013 fi 11014done 11015done 11016IFS=$as_save_IFS 11017 11018fi 11019fi 11020AR=$ac_cv_prog_AR 11021if test -n "$AR"; then 11022 { echo "$as_me:$LINENO: result: $AR" >&5 11023echo "${ECHO_T}$AR" >&6; } 11024else 11025 { echo "$as_me:$LINENO: result: no" >&5 11026echo "${ECHO_T}no" >&6; } 11027fi 11028 11029 11030fi 11031if test -z "$ac_cv_prog_AR"; then 11032 ac_ct_AR=$AR 11033 # Extract the first word of "ar", so it can be a program name with args. 11034set dummy ar; ac_word=$2 11035{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11037if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 11038 echo $ECHO_N "(cached) $ECHO_C" >&6 11039else 11040 if test -n "$ac_ct_AR"; then 11041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 11042else 11043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11044for as_dir in $PATH 11045do 11046 IFS=$as_save_IFS 11047 test -z "$as_dir" && as_dir=. 11048 for ac_exec_ext in '' $ac_executable_extensions; do 11049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11050 ac_cv_prog_ac_ct_AR="ar" 11051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11052 break 2 11053 fi 11054done 11055done 11056IFS=$as_save_IFS 11057 11058fi 11059fi 11060ac_ct_AR=$ac_cv_prog_ac_ct_AR 11061if test -n "$ac_ct_AR"; then 11062 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 11063echo "${ECHO_T}$ac_ct_AR" >&6; } 11064else 11065 { echo "$as_me:$LINENO: result: no" >&5 11066echo "${ECHO_T}no" >&6; } 11067fi 11068 11069 if test "x$ac_ct_AR" = x; then 11070 AR="ar" 11071 else 11072 case $cross_compiling:$ac_tool_warned in 11073yes:) 11074{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11075whose name does not start with the host triplet. If you think this 11076configuration is useful to you, please write to autoconf@gnu.org." >&5 11077echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11078whose name does not start with the host triplet. If you think this 11079configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11080ac_tool_warned=yes ;; 11081esac 11082 AR=$ac_ct_AR 11083 fi 11084else 11085 AR="$ac_cv_prog_AR" 11086fi 11087 11088if test -n "$ac_tool_prefix"; then 11089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11090set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11091{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11093if test "${ac_cv_prog_RANLIB+set}" = set; then 11094 echo $ECHO_N "(cached) $ECHO_C" >&6 11095else 11096 if test -n "$RANLIB"; then 11097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11098else 11099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11100for as_dir in $PATH 11101do 11102 IFS=$as_save_IFS 11103 test -z "$as_dir" && as_dir=. 11104 for ac_exec_ext in '' $ac_executable_extensions; do 11105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11108 break 2 11109 fi 11110done 11111done 11112IFS=$as_save_IFS 11113 11114fi 11115fi 11116RANLIB=$ac_cv_prog_RANLIB 11117if test -n "$RANLIB"; then 11118 { echo "$as_me:$LINENO: result: $RANLIB" >&5 11119echo "${ECHO_T}$RANLIB" >&6; } 11120else 11121 { echo "$as_me:$LINENO: result: no" >&5 11122echo "${ECHO_T}no" >&6; } 11123fi 11124 11125 11126fi 11127if test -z "$ac_cv_prog_RANLIB"; then 11128 ac_ct_RANLIB=$RANLIB 11129 # Extract the first word of "ranlib", so it can be a program name with args. 11130set dummy ranlib; ac_word=$2 11131{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11133if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 11134 echo $ECHO_N "(cached) $ECHO_C" >&6 11135else 11136 if test -n "$ac_ct_RANLIB"; then 11137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11138else 11139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11140for as_dir in $PATH 11141do 11142 IFS=$as_save_IFS 11143 test -z "$as_dir" && as_dir=. 11144 for ac_exec_ext in '' $ac_executable_extensions; do 11145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11146 ac_cv_prog_ac_ct_RANLIB="ranlib" 11147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11148 break 2 11149 fi 11150done 11151done 11152IFS=$as_save_IFS 11153 11154fi 11155fi 11156ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11157if test -n "$ac_ct_RANLIB"; then 11158 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 11159echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 11160else 11161 { echo "$as_me:$LINENO: result: no" >&5 11162echo "${ECHO_T}no" >&6; } 11163fi 11164 11165 if test "x$ac_ct_RANLIB" = x; then 11166 RANLIB=":" 11167 else 11168 case $cross_compiling:$ac_tool_warned in 11169yes:) 11170{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11171whose name does not start with the host triplet. If you think this 11172configuration is useful to you, please write to autoconf@gnu.org." >&5 11173echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11174whose name does not start with the host triplet. If you think this 11175configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11176ac_tool_warned=yes ;; 11177esac 11178 RANLIB=$ac_ct_RANLIB 11179 fi 11180else 11181 RANLIB="$ac_cv_prog_RANLIB" 11182fi 11183 11184if test -n "$ac_tool_prefix"; then 11185 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11186set dummy ${ac_tool_prefix}strip; ac_word=$2 11187{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11189if test "${ac_cv_prog_STRIP+set}" = set; then 11190 echo $ECHO_N "(cached) $ECHO_C" >&6 11191else 11192 if test -n "$STRIP"; then 11193 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11194else 11195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11196for as_dir in $PATH 11197do 11198 IFS=$as_save_IFS 11199 test -z "$as_dir" && as_dir=. 11200 for ac_exec_ext in '' $ac_executable_extensions; do 11201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11202 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11204 break 2 11205 fi 11206done 11207done 11208IFS=$as_save_IFS 11209 11210fi 11211fi 11212STRIP=$ac_cv_prog_STRIP 11213if test -n "$STRIP"; then 11214 { echo "$as_me:$LINENO: result: $STRIP" >&5 11215echo "${ECHO_T}$STRIP" >&6; } 11216else 11217 { echo "$as_me:$LINENO: result: no" >&5 11218echo "${ECHO_T}no" >&6; } 11219fi 11220 11221 11222fi 11223if test -z "$ac_cv_prog_STRIP"; then 11224 ac_ct_STRIP=$STRIP 11225 # Extract the first word of "strip", so it can be a program name with args. 11226set dummy strip; ac_word=$2 11227{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11229if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 11230 echo $ECHO_N "(cached) $ECHO_C" >&6 11231else 11232 if test -n "$ac_ct_STRIP"; then 11233 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11234else 11235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11236for as_dir in $PATH 11237do 11238 IFS=$as_save_IFS 11239 test -z "$as_dir" && as_dir=. 11240 for ac_exec_ext in '' $ac_executable_extensions; do 11241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11242 ac_cv_prog_ac_ct_STRIP="strip" 11243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11244 break 2 11245 fi 11246done 11247done 11248IFS=$as_save_IFS 11249 11250fi 11251fi 11252ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11253if test -n "$ac_ct_STRIP"; then 11254 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 11255echo "${ECHO_T}$ac_ct_STRIP" >&6; } 11256else 11257 { echo "$as_me:$LINENO: result: no" >&5 11258echo "${ECHO_T}no" >&6; } 11259fi 11260 11261 if test "x$ac_ct_STRIP" = x; then 11262 STRIP=":" 11263 else 11264 case $cross_compiling:$ac_tool_warned in 11265yes:) 11266{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 11267whose name does not start with the host triplet. If you think this 11268configuration is useful to you, please write to autoconf@gnu.org." >&5 11269echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 11270whose name does not start with the host triplet. If you think this 11271configuration is useful to you, please write to autoconf@gnu.org." >&2;} 11272ac_tool_warned=yes ;; 11273esac 11274 STRIP=$ac_ct_STRIP 11275 fi 11276else 11277 STRIP="$ac_cv_prog_STRIP" 11278fi 11279 11280# Find a good install program. We prefer a C program (faster), 11281# so one script is as good as another. But avoid the broken or 11282# incompatible versions: 11283# SysV /etc/install, /usr/sbin/install 11284# SunOS /usr/etc/install 11285# IRIX /sbin/install 11286# AIX /bin/install 11287# AmigaOS /C/install, which installs bootblocks on floppy discs 11288# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11289# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11290# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11291# OS/2's system install, which has a completely different semantic 11292# ./install, which can be erroneously created by make from ./install.sh. 11293{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 11294echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 11295if test -z "$INSTALL"; then 11296if test "${ac_cv_path_install+set}" = set; then 11297 echo $ECHO_N "(cached) $ECHO_C" >&6 11298else 11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11300for as_dir in $PATH 11301do 11302 IFS=$as_save_IFS 11303 test -z "$as_dir" && as_dir=. 11304 # Account for people who put trailing slashes in PATH elements. 11305case $as_dir/ in 11306 ./ | .// | /cC/* | \ 11307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 11309 /usr/ucb/* ) ;; 11310 *) 11311 # OSF1 and SCO ODT 3.0 have their own names for install. 11312 # Don't use installbsd from OSF since it installs stuff as root 11313 # by default. 11314 for ac_prog in ginstall scoinst install; do 11315 for ac_exec_ext in '' $ac_executable_extensions; do 11316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 11317 if test $ac_prog = install && 11318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11319 # AIX install. It has an incompatible calling convention. 11320 : 11321 elif test $ac_prog = install && 11322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11323 # program-specific install script used by HP pwplus--don't use. 11324 : 11325 else 11326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11327 break 3 11328 fi 11329 fi 11330 done 11331 done 11332 ;; 11333esac 11334done 11335IFS=$as_save_IFS 11336 11337 11338fi 11339 if test "${ac_cv_path_install+set}" = set; then 11340 INSTALL=$ac_cv_path_install 11341 else 11342 # As a last resort, use the slow shell script. Don't cache a 11343 # value for INSTALL within a source directory, because that will 11344 # break other packages using the cache if that directory is 11345 # removed, or if the value is a relative name. 11346 INSTALL=$ac_install_sh 11347 fi 11348fi 11349{ echo "$as_me:$LINENO: result: $INSTALL" >&5 11350echo "${ECHO_T}$INSTALL" >&6; } 11351 11352# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11353# It thinks the first close brace ends the variable substitution. 11354test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11355 11356test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11357 11358test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11359 11360# See if we need a separate native compiler. 11361if test $cross_compiling = no; then 11362 BUILD_CC="$CC" 11363 11364else 11365 for ac_prog in gcc cc 11366do 11367 # Extract the first word of "$ac_prog", so it can be a program name with args. 11368set dummy $ac_prog; ac_word=$2 11369{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11371if test "${ac_cv_prog_BUILD_CC+set}" = set; then 11372 echo $ECHO_N "(cached) $ECHO_C" >&6 11373else 11374 if test -n "$BUILD_CC"; then 11375 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 11376else 11377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11378for as_dir in $PATH 11379do 11380 IFS=$as_save_IFS 11381 test -z "$as_dir" && as_dir=. 11382 for ac_exec_ext in '' $ac_executable_extensions; do 11383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11384 ac_cv_prog_BUILD_CC="$ac_prog" 11385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11386 break 2 11387 fi 11388done 11389done 11390IFS=$as_save_IFS 11391 11392fi 11393fi 11394BUILD_CC=$ac_cv_prog_BUILD_CC 11395if test -n "$BUILD_CC"; then 11396 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 11397echo "${ECHO_T}$BUILD_CC" >&6; } 11398else 11399 { echo "$as_me:$LINENO: result: no" >&5 11400echo "${ECHO_T}no" >&6; } 11401fi 11402 11403 11404 test -n "$BUILD_CC" && break 11405done 11406 11407fi 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h 11441do 11442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11444 { echo "$as_me:$LINENO: checking for $ac_header" >&5 11445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11447 echo $ECHO_N "(cached) $ECHO_C" >&6 11448fi 11449ac_res=`eval echo '${'$as_ac_Header'}'` 11450 { echo "$as_me:$LINENO: result: $ac_res" >&5 11451echo "${ECHO_T}$ac_res" >&6; } 11452else 11453 # Is the header compilable? 11454{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 11455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 11456cat >conftest.$ac_ext <<_ACEOF 11457/* confdefs.h. */ 11458_ACEOF 11459cat confdefs.h >>conftest.$ac_ext 11460cat >>conftest.$ac_ext <<_ACEOF 11461/* end confdefs.h. */ 11462$ac_includes_default 11463#include <$ac_header> 11464_ACEOF 11465rm -f conftest.$ac_objext 11466if { (ac_try="$ac_compile" 11467case "(($ac_try" in 11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11469 *) ac_try_echo=$ac_try;; 11470esac 11471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11472 (eval "$ac_compile") 2>conftest.er1 11473 ac_status=$? 11474 grep -v '^ *+' conftest.er1 >conftest.err 11475 rm -f conftest.er1 11476 cat conftest.err >&5 11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11478 (exit $ac_status); } && { 11479 test -z "$ac_c_werror_flag" || 11480 test ! -s conftest.err 11481 } && test -s conftest.$ac_objext; then 11482 ac_header_compiler=yes 11483else 11484 echo "$as_me: failed program was:" >&5 11485sed 's/^/| /' conftest.$ac_ext >&5 11486 11487 ac_header_compiler=no 11488fi 11489 11490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11491{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11492echo "${ECHO_T}$ac_header_compiler" >&6; } 11493 11494# Is the header present? 11495{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 11496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 11497cat >conftest.$ac_ext <<_ACEOF 11498/* confdefs.h. */ 11499_ACEOF 11500cat confdefs.h >>conftest.$ac_ext 11501cat >>conftest.$ac_ext <<_ACEOF 11502/* end confdefs.h. */ 11503#include <$ac_header> 11504_ACEOF 11505if { (ac_try="$ac_cpp conftest.$ac_ext" 11506case "(($ac_try" in 11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11508 *) ac_try_echo=$ac_try;; 11509esac 11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 11512 ac_status=$? 11513 grep -v '^ *+' conftest.er1 >conftest.err 11514 rm -f conftest.er1 11515 cat conftest.err >&5 11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11517 (exit $ac_status); } >/dev/null && { 11518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 11519 test ! -s conftest.err 11520 }; then 11521 ac_header_preproc=yes 11522else 11523 echo "$as_me: failed program was:" >&5 11524sed 's/^/| /' conftest.$ac_ext >&5 11525 11526 ac_header_preproc=no 11527fi 11528 11529rm -f conftest.err conftest.$ac_ext 11530{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11531echo "${ECHO_T}$ac_header_preproc" >&6; } 11532 11533# So? What about this header? 11534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11535 yes:no: ) 11536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11540 ac_header_preproc=yes 11541 ;; 11542 no:yes:* ) 11543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11555 11556 ;; 11557esac 11558{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11561 echo $ECHO_N "(cached) $ECHO_C" >&6 11562else 11563 eval "$as_ac_Header=\$ac_header_preproc" 11564fi 11565ac_res=`eval echo '${'$as_ac_Header'}'` 11566 { echo "$as_me:$LINENO: result: $ac_res" >&5 11567echo "${ECHO_T}$ac_res" >&6; } 11568 11569fi 11570if test `eval echo '${'$as_ac_Header'}'` = yes; then 11571 cat >>confdefs.h <<_ACEOF 11572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11573_ACEOF 11574 11575fi 11576 11577done 11578 11579 11580 11581for ac_header in sys/disk.h sys/mount.h 11582do 11583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11584{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11587 echo $ECHO_N "(cached) $ECHO_C" >&6 11588else 11589 cat >conftest.$ac_ext <<_ACEOF 11590/* confdefs.h. */ 11591_ACEOF 11592cat confdefs.h >>conftest.$ac_ext 11593cat >>conftest.$ac_ext <<_ACEOF 11594/* end confdefs.h. */ 11595 11596#if HAVE_SYS_QUEUE_H 11597#include <sys/queue.h> 11598#endif 11599 11600 11601#include <$ac_header> 11602_ACEOF 11603rm -f conftest.$ac_objext 11604if { (ac_try="$ac_compile" 11605case "(($ac_try" in 11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11607 *) ac_try_echo=$ac_try;; 11608esac 11609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11610 (eval "$ac_compile") 2>conftest.er1 11611 ac_status=$? 11612 grep -v '^ *+' conftest.er1 >conftest.err 11613 rm -f conftest.er1 11614 cat conftest.err >&5 11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11616 (exit $ac_status); } && { 11617 test -z "$ac_c_werror_flag" || 11618 test ! -s conftest.err 11619 } && test -s conftest.$ac_objext; then 11620 eval "$as_ac_Header=yes" 11621else 11622 echo "$as_me: failed program was:" >&5 11623sed 's/^/| /' conftest.$ac_ext >&5 11624 11625 eval "$as_ac_Header=no" 11626fi 11627 11628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11629fi 11630ac_res=`eval echo '${'$as_ac_Header'}'` 11631 { echo "$as_me:$LINENO: result: $ac_res" >&5 11632echo "${ECHO_T}$ac_res" >&6; } 11633if test `eval echo '${'$as_ac_Header'}'` = yes; then 11634 cat >>confdefs.h <<_ACEOF 11635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11636_ACEOF 11637 11638fi 11639 11640done 11641 11642 11643for ac_header in net/if.h 11644do 11645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11646{ echo "$as_me:$LINENO: checking for $ac_header" >&5 11647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 11648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11649 echo $ECHO_N "(cached) $ECHO_C" >&6 11650else 11651 cat >conftest.$ac_ext <<_ACEOF 11652/* confdefs.h. */ 11653_ACEOF 11654cat confdefs.h >>conftest.$ac_ext 11655cat >>conftest.$ac_ext <<_ACEOF 11656/* end confdefs.h. */ 11657 11658#if HAVE_SYS_TYPES_H 11659#include <sys/types.h> 11660#endif 11661#if HAVE_SYS_SOCKET 11662#include <sys/socket.h> 11663#endif 11664 11665 11666#include <$ac_header> 11667_ACEOF 11668rm -f conftest.$ac_objext 11669if { (ac_try="$ac_compile" 11670case "(($ac_try" in 11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11672 *) ac_try_echo=$ac_try;; 11673esac 11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11675 (eval "$ac_compile") 2>conftest.er1 11676 ac_status=$? 11677 grep -v '^ *+' conftest.er1 >conftest.err 11678 rm -f conftest.er1 11679 cat conftest.err >&5 11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11681 (exit $ac_status); } && { 11682 test -z "$ac_c_werror_flag" || 11683 test ! -s conftest.err 11684 } && test -s conftest.$ac_objext; then 11685 eval "$as_ac_Header=yes" 11686else 11687 echo "$as_me: failed program was:" >&5 11688sed 's/^/| /' conftest.$ac_ext >&5 11689 11690 eval "$as_ac_Header=no" 11691fi 11692 11693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11694fi 11695ac_res=`eval echo '${'$as_ac_Header'}'` 11696 { echo "$as_me:$LINENO: result: $ac_res" >&5 11697echo "${ECHO_T}$ac_res" >&6; } 11698if test `eval echo '${'$as_ac_Header'}'` = yes; then 11699 cat >>confdefs.h <<_ACEOF 11700#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11701_ACEOF 11702 11703fi 11704 11705done 11706 11707 11708for ac_func in vprintf 11709do 11710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11711{ echo "$as_me:$LINENO: checking for $ac_func" >&5 11712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 11713if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 11714 echo $ECHO_N "(cached) $ECHO_C" >&6 11715else 11716 cat >conftest.$ac_ext <<_ACEOF 11717/* confdefs.h. */ 11718_ACEOF 11719cat confdefs.h >>conftest.$ac_ext 11720cat >>conftest.$ac_ext <<_ACEOF 11721/* end confdefs.h. */ 11722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11723 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11724#define $ac_func innocuous_$ac_func 11725 11726/* System header to define __stub macros and hopefully few prototypes, 11727 which can conflict with char $ac_func (); below. 11728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11729 <limits.h> exists even on freestanding compilers. */ 11730 11731#ifdef __STDC__ 11732# include <limits.h> 11733#else 11734# include <assert.h> 11735#endif 11736 11737#undef $ac_func 11738 11739/* Override any GCC internal prototype to avoid an error. 11740 Use char because int might match the return type of a GCC 11741 builtin and then its argument prototype would still apply. */ 11742#ifdef __cplusplus 11743extern "C" 11744#endif 11745char $ac_func (); 11746/* The GNU C library defines this for functions which it implements 11747 to always fail with ENOSYS. Some functions are actually named 11748 something starting with __ and the normal name is an alias. */ 11749#if defined __stub_$ac_func || defined __stub___$ac_func 11750choke me 11751#endif 11752 11753int 11754main () 11755{ 11756return $ac_func (); 11757 ; 11758 return 0; 11759} 11760_ACEOF 11761rm -f conftest.$ac_objext conftest$ac_exeext 11762if { (ac_try="$ac_link" 11763case "(($ac_try" in 11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11765 *) ac_try_echo=$ac_try;; 11766esac 11767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11768 (eval "$ac_link") 2>conftest.er1 11769 ac_status=$? 11770 grep -v '^ *+' conftest.er1 >conftest.err 11771 rm -f conftest.er1 11772 cat conftest.err >&5 11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11774 (exit $ac_status); } && { 11775 test -z "$ac_c_werror_flag" || 11776 test ! -s conftest.err 11777 } && test -s conftest$ac_exeext && 11778 $as_test_x conftest$ac_exeext; then 11779 eval "$as_ac_var=yes" 11780else 11781 echo "$as_me: failed program was:" >&5 11782sed 's/^/| /' conftest.$ac_ext >&5 11783 11784 eval "$as_ac_var=no" 11785fi 11786 11787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11788 conftest$ac_exeext conftest.$ac_ext 11789fi 11790ac_res=`eval echo '${'$as_ac_var'}'` 11791 { echo "$as_me:$LINENO: result: $ac_res" >&5 11792echo "${ECHO_T}$ac_res" >&6; } 11793if test `eval echo '${'$as_ac_var'}'` = yes; then 11794 cat >>confdefs.h <<_ACEOF 11795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11796_ACEOF 11797 11798{ echo "$as_me:$LINENO: checking for _doprnt" >&5 11799echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } 11800if test "${ac_cv_func__doprnt+set}" = set; then 11801 echo $ECHO_N "(cached) $ECHO_C" >&6 11802else 11803 cat >conftest.$ac_ext <<_ACEOF 11804/* confdefs.h. */ 11805_ACEOF 11806cat confdefs.h >>conftest.$ac_ext 11807cat >>conftest.$ac_ext <<_ACEOF 11808/* end confdefs.h. */ 11809/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 11810 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11811#define _doprnt innocuous__doprnt 11812 11813/* System header to define __stub macros and hopefully few prototypes, 11814 which can conflict with char _doprnt (); below. 11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11816 <limits.h> exists even on freestanding compilers. */ 11817 11818#ifdef __STDC__ 11819# include <limits.h> 11820#else 11821# include <assert.h> 11822#endif 11823 11824#undef _doprnt 11825 11826/* Override any GCC internal prototype to avoid an error. 11827 Use char because int might match the return type of a GCC 11828 builtin and then its argument prototype would still apply. */ 11829#ifdef __cplusplus 11830extern "C" 11831#endif 11832char _doprnt (); 11833/* The GNU C library defines this for functions which it implements 11834 to always fail with ENOSYS. Some functions are actually named 11835 something starting with __ and the normal name is an alias. */ 11836#if defined __stub__doprnt || defined __stub____doprnt 11837choke me 11838#endif 11839 11840int 11841main () 11842{ 11843return _doprnt (); 11844 ; 11845 return 0; 11846} 11847_ACEOF 11848rm -f conftest.$ac_objext conftest$ac_exeext 11849if { (ac_try="$ac_link" 11850case "(($ac_try" in 11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11852 *) ac_try_echo=$ac_try;; 11853esac 11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11855 (eval "$ac_link") 2>conftest.er1 11856 ac_status=$? 11857 grep -v '^ *+' conftest.er1 >conftest.err 11858 rm -f conftest.er1 11859 cat conftest.err >&5 11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11861 (exit $ac_status); } && { 11862 test -z "$ac_c_werror_flag" || 11863 test ! -s conftest.err 11864 } && test -s conftest$ac_exeext && 11865 $as_test_x conftest$ac_exeext; then 11866 ac_cv_func__doprnt=yes 11867else 11868 echo "$as_me: failed program was:" >&5 11869sed 's/^/| /' conftest.$ac_ext >&5 11870 11871 ac_cv_func__doprnt=no 11872fi 11873 11874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11875 conftest$ac_exeext conftest.$ac_ext 11876fi 11877{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 11878echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } 11879if test $ac_cv_func__doprnt = yes; then 11880 11881cat >>confdefs.h <<\_ACEOF 11882#define HAVE_DOPRNT 1 11883_ACEOF 11884 11885fi 11886 11887fi 11888done 11889 11890 11891{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 11892echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; } 11893if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then 11894 echo $ECHO_N "(cached) $ECHO_C" >&6 11895else 11896 cat >conftest.$ac_ext <<_ACEOF 11897/* confdefs.h. */ 11898_ACEOF 11899cat confdefs.h >>conftest.$ac_ext 11900cat >>conftest.$ac_ext <<_ACEOF 11901/* end confdefs.h. */ 11902#include <dirent.h> 11903 11904int 11905main () 11906{ 11907static struct dirent ac_aggr; 11908if (ac_aggr.d_reclen) 11909return 0; 11910 ; 11911 return 0; 11912} 11913_ACEOF 11914rm -f conftest.$ac_objext 11915if { (ac_try="$ac_compile" 11916case "(($ac_try" in 11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11918 *) ac_try_echo=$ac_try;; 11919esac 11920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11921 (eval "$ac_compile") 2>conftest.er1 11922 ac_status=$? 11923 grep -v '^ *+' conftest.er1 >conftest.err 11924 rm -f conftest.er1 11925 cat conftest.err >&5 11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11927 (exit $ac_status); } && { 11928 test -z "$ac_c_werror_flag" || 11929 test ! -s conftest.err 11930 } && test -s conftest.$ac_objext; then 11931 ac_cv_member_struct_dirent_d_reclen=yes 11932else 11933 echo "$as_me: failed program was:" >&5 11934sed 's/^/| /' conftest.$ac_ext >&5 11935 11936 cat >conftest.$ac_ext <<_ACEOF 11937/* confdefs.h. */ 11938_ACEOF 11939cat confdefs.h >>conftest.$ac_ext 11940cat >>conftest.$ac_ext <<_ACEOF 11941/* end confdefs.h. */ 11942#include <dirent.h> 11943 11944int 11945main () 11946{ 11947static struct dirent ac_aggr; 11948if (sizeof ac_aggr.d_reclen) 11949return 0; 11950 ; 11951 return 0; 11952} 11953_ACEOF 11954rm -f conftest.$ac_objext 11955if { (ac_try="$ac_compile" 11956case "(($ac_try" in 11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11958 *) ac_try_echo=$ac_try;; 11959esac 11960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11961 (eval "$ac_compile") 2>conftest.er1 11962 ac_status=$? 11963 grep -v '^ *+' conftest.er1 >conftest.err 11964 rm -f conftest.er1 11965 cat conftest.err >&5 11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11967 (exit $ac_status); } && { 11968 test -z "$ac_c_werror_flag" || 11969 test ! -s conftest.err 11970 } && test -s conftest.$ac_objext; then 11971 ac_cv_member_struct_dirent_d_reclen=yes 11972else 11973 echo "$as_me: failed program was:" >&5 11974sed 's/^/| /' conftest.$ac_ext >&5 11975 11976 ac_cv_member_struct_dirent_d_reclen=no 11977fi 11978 11979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11980fi 11981 11982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11983fi 11984{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 11985echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } 11986if test $ac_cv_member_struct_dirent_d_reclen = yes; then 11987 cat >>confdefs.h <<\_ACEOF 11988#define HAVE_RECLEN_DIRENT 1 11989_ACEOF 11990 11991fi 11992 11993{ echo "$as_me:$LINENO: checking for ssize_t" >&5 11994echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } 11995if test "${ac_cv_type_ssize_t+set}" = set; then 11996 echo $ECHO_N "(cached) $ECHO_C" >&6 11997else 11998 cat >conftest.$ac_ext <<_ACEOF 11999/* confdefs.h. */ 12000_ACEOF 12001cat confdefs.h >>conftest.$ac_ext 12002cat >>conftest.$ac_ext <<_ACEOF 12003/* end confdefs.h. */ 12004#include <sys/types.h> 12005 12006typedef ssize_t ac__type_new_; 12007int 12008main () 12009{ 12010if ((ac__type_new_ *) 0) 12011 return 0; 12012if (sizeof (ac__type_new_)) 12013 return 0; 12014 ; 12015 return 0; 12016} 12017_ACEOF 12018rm -f conftest.$ac_objext 12019if { (ac_try="$ac_compile" 12020case "(($ac_try" in 12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12022 *) ac_try_echo=$ac_try;; 12023esac 12024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12025 (eval "$ac_compile") 2>conftest.er1 12026 ac_status=$? 12027 grep -v '^ *+' conftest.er1 >conftest.err 12028 rm -f conftest.er1 12029 cat conftest.err >&5 12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12031 (exit $ac_status); } && { 12032 test -z "$ac_c_werror_flag" || 12033 test ! -s conftest.err 12034 } && test -s conftest.$ac_objext; then 12035 ac_cv_type_ssize_t=yes 12036else 12037 echo "$as_me: failed program was:" >&5 12038sed 's/^/| /' conftest.$ac_ext >&5 12039 12040 ac_cv_type_ssize_t=no 12041fi 12042 12043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12044fi 12045{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 12046echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } 12047if test $ac_cv_type_ssize_t = yes; then 12048 cat >>confdefs.h <<\_ACEOF 12049#define HAVE_TYPE_SSIZE_T 1 12050_ACEOF 12051 12052fi 12053 12054{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5 12055echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } 12056if test "${ac_cv_have_decl_llseek+set}" = set; then 12057 echo $ECHO_N "(cached) $ECHO_C" >&6 12058else 12059 cat >conftest.$ac_ext <<_ACEOF 12060/* confdefs.h. */ 12061_ACEOF 12062cat confdefs.h >>conftest.$ac_ext 12063cat >>conftest.$ac_ext <<_ACEOF 12064/* end confdefs.h. */ 12065#include <unistd.h> 12066 12067int 12068main () 12069{ 12070#ifndef llseek 12071 (void) llseek; 12072#endif 12073 12074 ; 12075 return 0; 12076} 12077_ACEOF 12078rm -f conftest.$ac_objext 12079if { (ac_try="$ac_compile" 12080case "(($ac_try" in 12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12082 *) ac_try_echo=$ac_try;; 12083esac 12084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12085 (eval "$ac_compile") 2>conftest.er1 12086 ac_status=$? 12087 grep -v '^ *+' conftest.er1 >conftest.err 12088 rm -f conftest.er1 12089 cat conftest.err >&5 12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12091 (exit $ac_status); } && { 12092 test -z "$ac_c_werror_flag" || 12093 test ! -s conftest.err 12094 } && test -s conftest.$ac_objext; then 12095 ac_cv_have_decl_llseek=yes 12096else 12097 echo "$as_me: failed program was:" >&5 12098sed 's/^/| /' conftest.$ac_ext >&5 12099 12100 ac_cv_have_decl_llseek=no 12101fi 12102 12103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12104fi 12105{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 12106echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } 12107if test $ac_cv_have_decl_llseek = yes; then 12108 cat >>confdefs.h <<\_ACEOF 12109#define HAVE_LLSEEK_PROTOTYPE 1 12110_ACEOF 12111 12112fi 12113 12114{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 12115echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } 12116if test "${ac_cv_have_decl_lseek64+set}" = set; then 12117 echo $ECHO_N "(cached) $ECHO_C" >&6 12118else 12119 cat >conftest.$ac_ext <<_ACEOF 12120/* confdefs.h. */ 12121_ACEOF 12122cat confdefs.h >>conftest.$ac_ext 12123cat >>conftest.$ac_ext <<_ACEOF 12124/* end confdefs.h. */ 12125#define _LARGEFILE_SOURCE 12126 #define _LARGEFILE64_SOURCE 12127 #include <unistd.h> 12128 12129int 12130main () 12131{ 12132#ifndef lseek64 12133 (void) lseek64; 12134#endif 12135 12136 ; 12137 return 0; 12138} 12139_ACEOF 12140rm -f conftest.$ac_objext 12141if { (ac_try="$ac_compile" 12142case "(($ac_try" in 12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12144 *) ac_try_echo=$ac_try;; 12145esac 12146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12147 (eval "$ac_compile") 2>conftest.er1 12148 ac_status=$? 12149 grep -v '^ *+' conftest.er1 >conftest.err 12150 rm -f conftest.er1 12151 cat conftest.err >&5 12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12153 (exit $ac_status); } && { 12154 test -z "$ac_c_werror_flag" || 12155 test ! -s conftest.err 12156 } && test -s conftest.$ac_objext; then 12157 ac_cv_have_decl_lseek64=yes 12158else 12159 echo "$as_me: failed program was:" >&5 12160sed 's/^/| /' conftest.$ac_ext >&5 12161 12162 ac_cv_have_decl_lseek64=no 12163fi 12164 12165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12166fi 12167{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 12168echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } 12169if test $ac_cv_have_decl_lseek64 = yes; then 12170 cat >>confdefs.h <<\_ACEOF 12171#define HAVE_LSEEK64_PROTOTYPE 1 12172_ACEOF 12173 12174fi 12175 12176if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then 12177 # if cross-compiling, with no cached values, just assume something common. 12178 ac_cv_sizeof_short=2 12179 ac_cv_sizeof_int=4 12180 ac_cv_sizeof_long=4 12181 ac_cv_sizeof_long_long=8 12182 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 12183echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;} 12184fi 12185{ echo "$as_me:$LINENO: checking for short" >&5 12186echo $ECHO_N "checking for short... $ECHO_C" >&6; } 12187if test "${ac_cv_type_short+set}" = set; then 12188 echo $ECHO_N "(cached) $ECHO_C" >&6 12189else 12190 cat >conftest.$ac_ext <<_ACEOF 12191/* confdefs.h. */ 12192_ACEOF 12193cat confdefs.h >>conftest.$ac_ext 12194cat >>conftest.$ac_ext <<_ACEOF 12195/* end confdefs.h. */ 12196$ac_includes_default 12197typedef short ac__type_new_; 12198int 12199main () 12200{ 12201if ((ac__type_new_ *) 0) 12202 return 0; 12203if (sizeof (ac__type_new_)) 12204 return 0; 12205 ; 12206 return 0; 12207} 12208_ACEOF 12209rm -f conftest.$ac_objext 12210if { (ac_try="$ac_compile" 12211case "(($ac_try" in 12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12213 *) ac_try_echo=$ac_try;; 12214esac 12215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12216 (eval "$ac_compile") 2>conftest.er1 12217 ac_status=$? 12218 grep -v '^ *+' conftest.er1 >conftest.err 12219 rm -f conftest.er1 12220 cat conftest.err >&5 12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12222 (exit $ac_status); } && { 12223 test -z "$ac_c_werror_flag" || 12224 test ! -s conftest.err 12225 } && test -s conftest.$ac_objext; then 12226 ac_cv_type_short=yes 12227else 12228 echo "$as_me: failed program was:" >&5 12229sed 's/^/| /' conftest.$ac_ext >&5 12230 12231 ac_cv_type_short=no 12232fi 12233 12234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12235fi 12236{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 12237echo "${ECHO_T}$ac_cv_type_short" >&6; } 12238 12239# The cast to long int works around a bug in the HP C Compiler 12240# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12241# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12242# This bug is HP SR number 8606223364. 12243{ echo "$as_me:$LINENO: checking size of short" >&5 12244echo $ECHO_N "checking size of short... $ECHO_C" >&6; } 12245if test "${ac_cv_sizeof_short+set}" = set; then 12246 echo $ECHO_N "(cached) $ECHO_C" >&6 12247else 12248 if test "$cross_compiling" = yes; then 12249 # Depending upon the size, compute the lo and hi bounds. 12250cat >conftest.$ac_ext <<_ACEOF 12251/* confdefs.h. */ 12252_ACEOF 12253cat confdefs.h >>conftest.$ac_ext 12254cat >>conftest.$ac_ext <<_ACEOF 12255/* end confdefs.h. */ 12256$ac_includes_default 12257 typedef short ac__type_sizeof_; 12258int 12259main () 12260{ 12261static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12262test_array [0] = 0 12263 12264 ; 12265 return 0; 12266} 12267_ACEOF 12268rm -f conftest.$ac_objext 12269if { (ac_try="$ac_compile" 12270case "(($ac_try" in 12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12272 *) ac_try_echo=$ac_try;; 12273esac 12274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12275 (eval "$ac_compile") 2>conftest.er1 12276 ac_status=$? 12277 grep -v '^ *+' conftest.er1 >conftest.err 12278 rm -f conftest.er1 12279 cat conftest.err >&5 12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12281 (exit $ac_status); } && { 12282 test -z "$ac_c_werror_flag" || 12283 test ! -s conftest.err 12284 } && test -s conftest.$ac_objext; then 12285 ac_lo=0 ac_mid=0 12286 while :; do 12287 cat >conftest.$ac_ext <<_ACEOF 12288/* confdefs.h. */ 12289_ACEOF 12290cat confdefs.h >>conftest.$ac_ext 12291cat >>conftest.$ac_ext <<_ACEOF 12292/* end confdefs.h. */ 12293$ac_includes_default 12294 typedef short ac__type_sizeof_; 12295int 12296main () 12297{ 12298static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12299test_array [0] = 0 12300 12301 ; 12302 return 0; 12303} 12304_ACEOF 12305rm -f conftest.$ac_objext 12306if { (ac_try="$ac_compile" 12307case "(($ac_try" in 12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12309 *) ac_try_echo=$ac_try;; 12310esac 12311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12312 (eval "$ac_compile") 2>conftest.er1 12313 ac_status=$? 12314 grep -v '^ *+' conftest.er1 >conftest.err 12315 rm -f conftest.er1 12316 cat conftest.err >&5 12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12318 (exit $ac_status); } && { 12319 test -z "$ac_c_werror_flag" || 12320 test ! -s conftest.err 12321 } && test -s conftest.$ac_objext; then 12322 ac_hi=$ac_mid; break 12323else 12324 echo "$as_me: failed program was:" >&5 12325sed 's/^/| /' conftest.$ac_ext >&5 12326 12327 ac_lo=`expr $ac_mid + 1` 12328 if test $ac_lo -le $ac_mid; then 12329 ac_lo= ac_hi= 12330 break 12331 fi 12332 ac_mid=`expr 2 '*' $ac_mid + 1` 12333fi 12334 12335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12336 done 12337else 12338 echo "$as_me: failed program was:" >&5 12339sed 's/^/| /' conftest.$ac_ext >&5 12340 12341 cat >conftest.$ac_ext <<_ACEOF 12342/* confdefs.h. */ 12343_ACEOF 12344cat confdefs.h >>conftest.$ac_ext 12345cat >>conftest.$ac_ext <<_ACEOF 12346/* end confdefs.h. */ 12347$ac_includes_default 12348 typedef short ac__type_sizeof_; 12349int 12350main () 12351{ 12352static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 12353test_array [0] = 0 12354 12355 ; 12356 return 0; 12357} 12358_ACEOF 12359rm -f conftest.$ac_objext 12360if { (ac_try="$ac_compile" 12361case "(($ac_try" in 12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12363 *) ac_try_echo=$ac_try;; 12364esac 12365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12366 (eval "$ac_compile") 2>conftest.er1 12367 ac_status=$? 12368 grep -v '^ *+' conftest.er1 >conftest.err 12369 rm -f conftest.er1 12370 cat conftest.err >&5 12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12372 (exit $ac_status); } && { 12373 test -z "$ac_c_werror_flag" || 12374 test ! -s conftest.err 12375 } && test -s conftest.$ac_objext; then 12376 ac_hi=-1 ac_mid=-1 12377 while :; do 12378 cat >conftest.$ac_ext <<_ACEOF 12379/* confdefs.h. */ 12380_ACEOF 12381cat confdefs.h >>conftest.$ac_ext 12382cat >>conftest.$ac_ext <<_ACEOF 12383/* end confdefs.h. */ 12384$ac_includes_default 12385 typedef short ac__type_sizeof_; 12386int 12387main () 12388{ 12389static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 12390test_array [0] = 0 12391 12392 ; 12393 return 0; 12394} 12395_ACEOF 12396rm -f conftest.$ac_objext 12397if { (ac_try="$ac_compile" 12398case "(($ac_try" in 12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12400 *) ac_try_echo=$ac_try;; 12401esac 12402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12403 (eval "$ac_compile") 2>conftest.er1 12404 ac_status=$? 12405 grep -v '^ *+' conftest.er1 >conftest.err 12406 rm -f conftest.er1 12407 cat conftest.err >&5 12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12409 (exit $ac_status); } && { 12410 test -z "$ac_c_werror_flag" || 12411 test ! -s conftest.err 12412 } && test -s conftest.$ac_objext; then 12413 ac_lo=$ac_mid; break 12414else 12415 echo "$as_me: failed program was:" >&5 12416sed 's/^/| /' conftest.$ac_ext >&5 12417 12418 ac_hi=`expr '(' $ac_mid ')' - 1` 12419 if test $ac_mid -le $ac_hi; then 12420 ac_lo= ac_hi= 12421 break 12422 fi 12423 ac_mid=`expr 2 '*' $ac_mid` 12424fi 12425 12426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12427 done 12428else 12429 echo "$as_me: failed program was:" >&5 12430sed 's/^/| /' conftest.$ac_ext >&5 12431 12432 ac_lo= ac_hi= 12433fi 12434 12435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12436fi 12437 12438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12439# Binary search between lo and hi bounds. 12440while test "x$ac_lo" != "x$ac_hi"; do 12441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12442 cat >conftest.$ac_ext <<_ACEOF 12443/* confdefs.h. */ 12444_ACEOF 12445cat confdefs.h >>conftest.$ac_ext 12446cat >>conftest.$ac_ext <<_ACEOF 12447/* end confdefs.h. */ 12448$ac_includes_default 12449 typedef short ac__type_sizeof_; 12450int 12451main () 12452{ 12453static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12454test_array [0] = 0 12455 12456 ; 12457 return 0; 12458} 12459_ACEOF 12460rm -f conftest.$ac_objext 12461if { (ac_try="$ac_compile" 12462case "(($ac_try" in 12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12464 *) ac_try_echo=$ac_try;; 12465esac 12466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12467 (eval "$ac_compile") 2>conftest.er1 12468 ac_status=$? 12469 grep -v '^ *+' conftest.er1 >conftest.err 12470 rm -f conftest.er1 12471 cat conftest.err >&5 12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12473 (exit $ac_status); } && { 12474 test -z "$ac_c_werror_flag" || 12475 test ! -s conftest.err 12476 } && test -s conftest.$ac_objext; then 12477 ac_hi=$ac_mid 12478else 12479 echo "$as_me: failed program was:" >&5 12480sed 's/^/| /' conftest.$ac_ext >&5 12481 12482 ac_lo=`expr '(' $ac_mid ')' + 1` 12483fi 12484 12485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12486done 12487case $ac_lo in 12488?*) ac_cv_sizeof_short=$ac_lo;; 12489'') if test "$ac_cv_type_short" = yes; then 12490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 12491See \`config.log' for more details." >&5 12492echo "$as_me: error: cannot compute sizeof (short) 12493See \`config.log' for more details." >&2;} 12494 { (exit 77); exit 77; }; } 12495 else 12496 ac_cv_sizeof_short=0 12497 fi ;; 12498esac 12499else 12500 cat >conftest.$ac_ext <<_ACEOF 12501/* confdefs.h. */ 12502_ACEOF 12503cat confdefs.h >>conftest.$ac_ext 12504cat >>conftest.$ac_ext <<_ACEOF 12505/* end confdefs.h. */ 12506$ac_includes_default 12507 typedef short ac__type_sizeof_; 12508static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 12509static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 12510#include <stdio.h> 12511#include <stdlib.h> 12512int 12513main () 12514{ 12515 12516 FILE *f = fopen ("conftest.val", "w"); 12517 if (! f) 12518 return 1; 12519 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 12520 { 12521 long int i = longval (); 12522 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12523 return 1; 12524 fprintf (f, "%ld\n", i); 12525 } 12526 else 12527 { 12528 unsigned long int i = ulongval (); 12529 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12530 return 1; 12531 fprintf (f, "%lu\n", i); 12532 } 12533 return ferror (f) || fclose (f) != 0; 12534 12535 ; 12536 return 0; 12537} 12538_ACEOF 12539rm -f conftest$ac_exeext 12540if { (ac_try="$ac_link" 12541case "(($ac_try" in 12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12543 *) ac_try_echo=$ac_try;; 12544esac 12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12546 (eval "$ac_link") 2>&5 12547 ac_status=$? 12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12550 { (case "(($ac_try" in 12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12552 *) ac_try_echo=$ac_try;; 12553esac 12554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12555 (eval "$ac_try") 2>&5 12556 ac_status=$? 12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12558 (exit $ac_status); }; }; then 12559 ac_cv_sizeof_short=`cat conftest.val` 12560else 12561 echo "$as_me: program exited with status $ac_status" >&5 12562echo "$as_me: failed program was:" >&5 12563sed 's/^/| /' conftest.$ac_ext >&5 12564 12565( exit $ac_status ) 12566if test "$ac_cv_type_short" = yes; then 12567 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 12568See \`config.log' for more details." >&5 12569echo "$as_me: error: cannot compute sizeof (short) 12570See \`config.log' for more details." >&2;} 12571 { (exit 77); exit 77; }; } 12572 else 12573 ac_cv_sizeof_short=0 12574 fi 12575fi 12576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12577fi 12578rm -f conftest.val 12579fi 12580{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 12581echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 12582 12583 12584 12585cat >>confdefs.h <<_ACEOF 12586#define SIZEOF_SHORT $ac_cv_sizeof_short 12587_ACEOF 12588 12589 12590{ echo "$as_me:$LINENO: checking for int" >&5 12591echo $ECHO_N "checking for int... $ECHO_C" >&6; } 12592if test "${ac_cv_type_int+set}" = set; then 12593 echo $ECHO_N "(cached) $ECHO_C" >&6 12594else 12595 cat >conftest.$ac_ext <<_ACEOF 12596/* confdefs.h. */ 12597_ACEOF 12598cat confdefs.h >>conftest.$ac_ext 12599cat >>conftest.$ac_ext <<_ACEOF 12600/* end confdefs.h. */ 12601$ac_includes_default 12602typedef int ac__type_new_; 12603int 12604main () 12605{ 12606if ((ac__type_new_ *) 0) 12607 return 0; 12608if (sizeof (ac__type_new_)) 12609 return 0; 12610 ; 12611 return 0; 12612} 12613_ACEOF 12614rm -f conftest.$ac_objext 12615if { (ac_try="$ac_compile" 12616case "(($ac_try" in 12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12618 *) ac_try_echo=$ac_try;; 12619esac 12620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12621 (eval "$ac_compile") 2>conftest.er1 12622 ac_status=$? 12623 grep -v '^ *+' conftest.er1 >conftest.err 12624 rm -f conftest.er1 12625 cat conftest.err >&5 12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12627 (exit $ac_status); } && { 12628 test -z "$ac_c_werror_flag" || 12629 test ! -s conftest.err 12630 } && test -s conftest.$ac_objext; then 12631 ac_cv_type_int=yes 12632else 12633 echo "$as_me: failed program was:" >&5 12634sed 's/^/| /' conftest.$ac_ext >&5 12635 12636 ac_cv_type_int=no 12637fi 12638 12639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12640fi 12641{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 12642echo "${ECHO_T}$ac_cv_type_int" >&6; } 12643 12644# The cast to long int works around a bug in the HP C Compiler 12645# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12646# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12647# This bug is HP SR number 8606223364. 12648{ echo "$as_me:$LINENO: checking size of int" >&5 12649echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 12650if test "${ac_cv_sizeof_int+set}" = set; then 12651 echo $ECHO_N "(cached) $ECHO_C" >&6 12652else 12653 if test "$cross_compiling" = yes; then 12654 # Depending upon the size, compute the lo and hi bounds. 12655cat >conftest.$ac_ext <<_ACEOF 12656/* confdefs.h. */ 12657_ACEOF 12658cat confdefs.h >>conftest.$ac_ext 12659cat >>conftest.$ac_ext <<_ACEOF 12660/* end confdefs.h. */ 12661$ac_includes_default 12662 typedef int ac__type_sizeof_; 12663int 12664main () 12665{ 12666static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12667test_array [0] = 0 12668 12669 ; 12670 return 0; 12671} 12672_ACEOF 12673rm -f conftest.$ac_objext 12674if { (ac_try="$ac_compile" 12675case "(($ac_try" in 12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12677 *) ac_try_echo=$ac_try;; 12678esac 12679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12680 (eval "$ac_compile") 2>conftest.er1 12681 ac_status=$? 12682 grep -v '^ *+' conftest.er1 >conftest.err 12683 rm -f conftest.er1 12684 cat conftest.err >&5 12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12686 (exit $ac_status); } && { 12687 test -z "$ac_c_werror_flag" || 12688 test ! -s conftest.err 12689 } && test -s conftest.$ac_objext; then 12690 ac_lo=0 ac_mid=0 12691 while :; do 12692 cat >conftest.$ac_ext <<_ACEOF 12693/* confdefs.h. */ 12694_ACEOF 12695cat confdefs.h >>conftest.$ac_ext 12696cat >>conftest.$ac_ext <<_ACEOF 12697/* end confdefs.h. */ 12698$ac_includes_default 12699 typedef int ac__type_sizeof_; 12700int 12701main () 12702{ 12703static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12704test_array [0] = 0 12705 12706 ; 12707 return 0; 12708} 12709_ACEOF 12710rm -f conftest.$ac_objext 12711if { (ac_try="$ac_compile" 12712case "(($ac_try" in 12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12714 *) ac_try_echo=$ac_try;; 12715esac 12716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12717 (eval "$ac_compile") 2>conftest.er1 12718 ac_status=$? 12719 grep -v '^ *+' conftest.er1 >conftest.err 12720 rm -f conftest.er1 12721 cat conftest.err >&5 12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12723 (exit $ac_status); } && { 12724 test -z "$ac_c_werror_flag" || 12725 test ! -s conftest.err 12726 } && test -s conftest.$ac_objext; then 12727 ac_hi=$ac_mid; break 12728else 12729 echo "$as_me: failed program was:" >&5 12730sed 's/^/| /' conftest.$ac_ext >&5 12731 12732 ac_lo=`expr $ac_mid + 1` 12733 if test $ac_lo -le $ac_mid; then 12734 ac_lo= ac_hi= 12735 break 12736 fi 12737 ac_mid=`expr 2 '*' $ac_mid + 1` 12738fi 12739 12740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12741 done 12742else 12743 echo "$as_me: failed program was:" >&5 12744sed 's/^/| /' conftest.$ac_ext >&5 12745 12746 cat >conftest.$ac_ext <<_ACEOF 12747/* confdefs.h. */ 12748_ACEOF 12749cat confdefs.h >>conftest.$ac_ext 12750cat >>conftest.$ac_ext <<_ACEOF 12751/* end confdefs.h. */ 12752$ac_includes_default 12753 typedef int ac__type_sizeof_; 12754int 12755main () 12756{ 12757static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 12758test_array [0] = 0 12759 12760 ; 12761 return 0; 12762} 12763_ACEOF 12764rm -f conftest.$ac_objext 12765if { (ac_try="$ac_compile" 12766case "(($ac_try" in 12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12768 *) ac_try_echo=$ac_try;; 12769esac 12770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12771 (eval "$ac_compile") 2>conftest.er1 12772 ac_status=$? 12773 grep -v '^ *+' conftest.er1 >conftest.err 12774 rm -f conftest.er1 12775 cat conftest.err >&5 12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12777 (exit $ac_status); } && { 12778 test -z "$ac_c_werror_flag" || 12779 test ! -s conftest.err 12780 } && test -s conftest.$ac_objext; then 12781 ac_hi=-1 ac_mid=-1 12782 while :; do 12783 cat >conftest.$ac_ext <<_ACEOF 12784/* confdefs.h. */ 12785_ACEOF 12786cat confdefs.h >>conftest.$ac_ext 12787cat >>conftest.$ac_ext <<_ACEOF 12788/* end confdefs.h. */ 12789$ac_includes_default 12790 typedef int ac__type_sizeof_; 12791int 12792main () 12793{ 12794static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 12795test_array [0] = 0 12796 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801rm -f conftest.$ac_objext 12802if { (ac_try="$ac_compile" 12803case "(($ac_try" in 12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12805 *) ac_try_echo=$ac_try;; 12806esac 12807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12808 (eval "$ac_compile") 2>conftest.er1 12809 ac_status=$? 12810 grep -v '^ *+' conftest.er1 >conftest.err 12811 rm -f conftest.er1 12812 cat conftest.err >&5 12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12814 (exit $ac_status); } && { 12815 test -z "$ac_c_werror_flag" || 12816 test ! -s conftest.err 12817 } && test -s conftest.$ac_objext; then 12818 ac_lo=$ac_mid; break 12819else 12820 echo "$as_me: failed program was:" >&5 12821sed 's/^/| /' conftest.$ac_ext >&5 12822 12823 ac_hi=`expr '(' $ac_mid ')' - 1` 12824 if test $ac_mid -le $ac_hi; then 12825 ac_lo= ac_hi= 12826 break 12827 fi 12828 ac_mid=`expr 2 '*' $ac_mid` 12829fi 12830 12831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12832 done 12833else 12834 echo "$as_me: failed program was:" >&5 12835sed 's/^/| /' conftest.$ac_ext >&5 12836 12837 ac_lo= ac_hi= 12838fi 12839 12840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12841fi 12842 12843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12844# Binary search between lo and hi bounds. 12845while test "x$ac_lo" != "x$ac_hi"; do 12846 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12847 cat >conftest.$ac_ext <<_ACEOF 12848/* confdefs.h. */ 12849_ACEOF 12850cat confdefs.h >>conftest.$ac_ext 12851cat >>conftest.$ac_ext <<_ACEOF 12852/* end confdefs.h. */ 12853$ac_includes_default 12854 typedef int ac__type_sizeof_; 12855int 12856main () 12857{ 12858static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12859test_array [0] = 0 12860 12861 ; 12862 return 0; 12863} 12864_ACEOF 12865rm -f conftest.$ac_objext 12866if { (ac_try="$ac_compile" 12867case "(($ac_try" in 12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12869 *) ac_try_echo=$ac_try;; 12870esac 12871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12872 (eval "$ac_compile") 2>conftest.er1 12873 ac_status=$? 12874 grep -v '^ *+' conftest.er1 >conftest.err 12875 rm -f conftest.er1 12876 cat conftest.err >&5 12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12878 (exit $ac_status); } && { 12879 test -z "$ac_c_werror_flag" || 12880 test ! -s conftest.err 12881 } && test -s conftest.$ac_objext; then 12882 ac_hi=$ac_mid 12883else 12884 echo "$as_me: failed program was:" >&5 12885sed 's/^/| /' conftest.$ac_ext >&5 12886 12887 ac_lo=`expr '(' $ac_mid ')' + 1` 12888fi 12889 12890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12891done 12892case $ac_lo in 12893?*) ac_cv_sizeof_int=$ac_lo;; 12894'') if test "$ac_cv_type_int" = yes; then 12895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 12896See \`config.log' for more details." >&5 12897echo "$as_me: error: cannot compute sizeof (int) 12898See \`config.log' for more details." >&2;} 12899 { (exit 77); exit 77; }; } 12900 else 12901 ac_cv_sizeof_int=0 12902 fi ;; 12903esac 12904else 12905 cat >conftest.$ac_ext <<_ACEOF 12906/* confdefs.h. */ 12907_ACEOF 12908cat confdefs.h >>conftest.$ac_ext 12909cat >>conftest.$ac_ext <<_ACEOF 12910/* end confdefs.h. */ 12911$ac_includes_default 12912 typedef int ac__type_sizeof_; 12913static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 12914static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 12915#include <stdio.h> 12916#include <stdlib.h> 12917int 12918main () 12919{ 12920 12921 FILE *f = fopen ("conftest.val", "w"); 12922 if (! f) 12923 return 1; 12924 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 12925 { 12926 long int i = longval (); 12927 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12928 return 1; 12929 fprintf (f, "%ld\n", i); 12930 } 12931 else 12932 { 12933 unsigned long int i = ulongval (); 12934 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12935 return 1; 12936 fprintf (f, "%lu\n", i); 12937 } 12938 return ferror (f) || fclose (f) != 0; 12939 12940 ; 12941 return 0; 12942} 12943_ACEOF 12944rm -f conftest$ac_exeext 12945if { (ac_try="$ac_link" 12946case "(($ac_try" in 12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12948 *) ac_try_echo=$ac_try;; 12949esac 12950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12951 (eval "$ac_link") 2>&5 12952 ac_status=$? 12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12955 { (case "(($ac_try" in 12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12957 *) ac_try_echo=$ac_try;; 12958esac 12959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12960 (eval "$ac_try") 2>&5 12961 ac_status=$? 12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12963 (exit $ac_status); }; }; then 12964 ac_cv_sizeof_int=`cat conftest.val` 12965else 12966 echo "$as_me: program exited with status $ac_status" >&5 12967echo "$as_me: failed program was:" >&5 12968sed 's/^/| /' conftest.$ac_ext >&5 12969 12970( exit $ac_status ) 12971if test "$ac_cv_type_int" = yes; then 12972 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 12973See \`config.log' for more details." >&5 12974echo "$as_me: error: cannot compute sizeof (int) 12975See \`config.log' for more details." >&2;} 12976 { (exit 77); exit 77; }; } 12977 else 12978 ac_cv_sizeof_int=0 12979 fi 12980fi 12981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12982fi 12983rm -f conftest.val 12984fi 12985{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 12986echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 12987 12988 12989 12990cat >>confdefs.h <<_ACEOF 12991#define SIZEOF_INT $ac_cv_sizeof_int 12992_ACEOF 12993 12994 12995{ echo "$as_me:$LINENO: checking for long" >&5 12996echo $ECHO_N "checking for long... $ECHO_C" >&6; } 12997if test "${ac_cv_type_long+set}" = set; then 12998 echo $ECHO_N "(cached) $ECHO_C" >&6 12999else 13000 cat >conftest.$ac_ext <<_ACEOF 13001/* confdefs.h. */ 13002_ACEOF 13003cat confdefs.h >>conftest.$ac_ext 13004cat >>conftest.$ac_ext <<_ACEOF 13005/* end confdefs.h. */ 13006$ac_includes_default 13007typedef long ac__type_new_; 13008int 13009main () 13010{ 13011if ((ac__type_new_ *) 0) 13012 return 0; 13013if (sizeof (ac__type_new_)) 13014 return 0; 13015 ; 13016 return 0; 13017} 13018_ACEOF 13019rm -f conftest.$ac_objext 13020if { (ac_try="$ac_compile" 13021case "(($ac_try" in 13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13023 *) ac_try_echo=$ac_try;; 13024esac 13025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13026 (eval "$ac_compile") 2>conftest.er1 13027 ac_status=$? 13028 grep -v '^ *+' conftest.er1 >conftest.err 13029 rm -f conftest.er1 13030 cat conftest.err >&5 13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13032 (exit $ac_status); } && { 13033 test -z "$ac_c_werror_flag" || 13034 test ! -s conftest.err 13035 } && test -s conftest.$ac_objext; then 13036 ac_cv_type_long=yes 13037else 13038 echo "$as_me: failed program was:" >&5 13039sed 's/^/| /' conftest.$ac_ext >&5 13040 13041 ac_cv_type_long=no 13042fi 13043 13044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13045fi 13046{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 13047echo "${ECHO_T}$ac_cv_type_long" >&6; } 13048 13049# The cast to long int works around a bug in the HP C Compiler 13050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13052# This bug is HP SR number 8606223364. 13053{ echo "$as_me:$LINENO: checking size of long" >&5 13054echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 13055if test "${ac_cv_sizeof_long+set}" = set; then 13056 echo $ECHO_N "(cached) $ECHO_C" >&6 13057else 13058 if test "$cross_compiling" = yes; then 13059 # Depending upon the size, compute the lo and hi bounds. 13060cat >conftest.$ac_ext <<_ACEOF 13061/* confdefs.h. */ 13062_ACEOF 13063cat confdefs.h >>conftest.$ac_ext 13064cat >>conftest.$ac_ext <<_ACEOF 13065/* end confdefs.h. */ 13066$ac_includes_default 13067 typedef long ac__type_sizeof_; 13068int 13069main () 13070{ 13071static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 13072test_array [0] = 0 13073 13074 ; 13075 return 0; 13076} 13077_ACEOF 13078rm -f conftest.$ac_objext 13079if { (ac_try="$ac_compile" 13080case "(($ac_try" in 13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13082 *) ac_try_echo=$ac_try;; 13083esac 13084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13085 (eval "$ac_compile") 2>conftest.er1 13086 ac_status=$? 13087 grep -v '^ *+' conftest.er1 >conftest.err 13088 rm -f conftest.er1 13089 cat conftest.err >&5 13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13091 (exit $ac_status); } && { 13092 test -z "$ac_c_werror_flag" || 13093 test ! -s conftest.err 13094 } && test -s conftest.$ac_objext; then 13095 ac_lo=0 ac_mid=0 13096 while :; do 13097 cat >conftest.$ac_ext <<_ACEOF 13098/* confdefs.h. */ 13099_ACEOF 13100cat confdefs.h >>conftest.$ac_ext 13101cat >>conftest.$ac_ext <<_ACEOF 13102/* end confdefs.h. */ 13103$ac_includes_default 13104 typedef long ac__type_sizeof_; 13105int 13106main () 13107{ 13108static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13109test_array [0] = 0 13110 13111 ; 13112 return 0; 13113} 13114_ACEOF 13115rm -f conftest.$ac_objext 13116if { (ac_try="$ac_compile" 13117case "(($ac_try" in 13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13119 *) ac_try_echo=$ac_try;; 13120esac 13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13122 (eval "$ac_compile") 2>conftest.er1 13123 ac_status=$? 13124 grep -v '^ *+' conftest.er1 >conftest.err 13125 rm -f conftest.er1 13126 cat conftest.err >&5 13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13128 (exit $ac_status); } && { 13129 test -z "$ac_c_werror_flag" || 13130 test ! -s conftest.err 13131 } && test -s conftest.$ac_objext; then 13132 ac_hi=$ac_mid; break 13133else 13134 echo "$as_me: failed program was:" >&5 13135sed 's/^/| /' conftest.$ac_ext >&5 13136 13137 ac_lo=`expr $ac_mid + 1` 13138 if test $ac_lo -le $ac_mid; then 13139 ac_lo= ac_hi= 13140 break 13141 fi 13142 ac_mid=`expr 2 '*' $ac_mid + 1` 13143fi 13144 13145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13146 done 13147else 13148 echo "$as_me: failed program was:" >&5 13149sed 's/^/| /' conftest.$ac_ext >&5 13150 13151 cat >conftest.$ac_ext <<_ACEOF 13152/* confdefs.h. */ 13153_ACEOF 13154cat confdefs.h >>conftest.$ac_ext 13155cat >>conftest.$ac_ext <<_ACEOF 13156/* end confdefs.h. */ 13157$ac_includes_default 13158 typedef long ac__type_sizeof_; 13159int 13160main () 13161{ 13162static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 13163test_array [0] = 0 13164 13165 ; 13166 return 0; 13167} 13168_ACEOF 13169rm -f conftest.$ac_objext 13170if { (ac_try="$ac_compile" 13171case "(($ac_try" in 13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13173 *) ac_try_echo=$ac_try;; 13174esac 13175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13176 (eval "$ac_compile") 2>conftest.er1 13177 ac_status=$? 13178 grep -v '^ *+' conftest.er1 >conftest.err 13179 rm -f conftest.er1 13180 cat conftest.err >&5 13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13182 (exit $ac_status); } && { 13183 test -z "$ac_c_werror_flag" || 13184 test ! -s conftest.err 13185 } && test -s conftest.$ac_objext; then 13186 ac_hi=-1 ac_mid=-1 13187 while :; do 13188 cat >conftest.$ac_ext <<_ACEOF 13189/* confdefs.h. */ 13190_ACEOF 13191cat confdefs.h >>conftest.$ac_ext 13192cat >>conftest.$ac_ext <<_ACEOF 13193/* end confdefs.h. */ 13194$ac_includes_default 13195 typedef long ac__type_sizeof_; 13196int 13197main () 13198{ 13199static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 13200test_array [0] = 0 13201 13202 ; 13203 return 0; 13204} 13205_ACEOF 13206rm -f conftest.$ac_objext 13207if { (ac_try="$ac_compile" 13208case "(($ac_try" in 13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13210 *) ac_try_echo=$ac_try;; 13211esac 13212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13213 (eval "$ac_compile") 2>conftest.er1 13214 ac_status=$? 13215 grep -v '^ *+' conftest.er1 >conftest.err 13216 rm -f conftest.er1 13217 cat conftest.err >&5 13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13219 (exit $ac_status); } && { 13220 test -z "$ac_c_werror_flag" || 13221 test ! -s conftest.err 13222 } && test -s conftest.$ac_objext; then 13223 ac_lo=$ac_mid; break 13224else 13225 echo "$as_me: failed program was:" >&5 13226sed 's/^/| /' conftest.$ac_ext >&5 13227 13228 ac_hi=`expr '(' $ac_mid ')' - 1` 13229 if test $ac_mid -le $ac_hi; then 13230 ac_lo= ac_hi= 13231 break 13232 fi 13233 ac_mid=`expr 2 '*' $ac_mid` 13234fi 13235 13236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13237 done 13238else 13239 echo "$as_me: failed program was:" >&5 13240sed 's/^/| /' conftest.$ac_ext >&5 13241 13242 ac_lo= ac_hi= 13243fi 13244 13245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13246fi 13247 13248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13249# Binary search between lo and hi bounds. 13250while test "x$ac_lo" != "x$ac_hi"; do 13251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13252 cat >conftest.$ac_ext <<_ACEOF 13253/* confdefs.h. */ 13254_ACEOF 13255cat confdefs.h >>conftest.$ac_ext 13256cat >>conftest.$ac_ext <<_ACEOF 13257/* end confdefs.h. */ 13258$ac_includes_default 13259 typedef long ac__type_sizeof_; 13260int 13261main () 13262{ 13263static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13264test_array [0] = 0 13265 13266 ; 13267 return 0; 13268} 13269_ACEOF 13270rm -f conftest.$ac_objext 13271if { (ac_try="$ac_compile" 13272case "(($ac_try" in 13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13274 *) ac_try_echo=$ac_try;; 13275esac 13276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13277 (eval "$ac_compile") 2>conftest.er1 13278 ac_status=$? 13279 grep -v '^ *+' conftest.er1 >conftest.err 13280 rm -f conftest.er1 13281 cat conftest.err >&5 13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13283 (exit $ac_status); } && { 13284 test -z "$ac_c_werror_flag" || 13285 test ! -s conftest.err 13286 } && test -s conftest.$ac_objext; then 13287 ac_hi=$ac_mid 13288else 13289 echo "$as_me: failed program was:" >&5 13290sed 's/^/| /' conftest.$ac_ext >&5 13291 13292 ac_lo=`expr '(' $ac_mid ')' + 1` 13293fi 13294 13295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13296done 13297case $ac_lo in 13298?*) ac_cv_sizeof_long=$ac_lo;; 13299'') if test "$ac_cv_type_long" = yes; then 13300 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 13301See \`config.log' for more details." >&5 13302echo "$as_me: error: cannot compute sizeof (long) 13303See \`config.log' for more details." >&2;} 13304 { (exit 77); exit 77; }; } 13305 else 13306 ac_cv_sizeof_long=0 13307 fi ;; 13308esac 13309else 13310 cat >conftest.$ac_ext <<_ACEOF 13311/* confdefs.h. */ 13312_ACEOF 13313cat confdefs.h >>conftest.$ac_ext 13314cat >>conftest.$ac_ext <<_ACEOF 13315/* end confdefs.h. */ 13316$ac_includes_default 13317 typedef long ac__type_sizeof_; 13318static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 13319static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 13320#include <stdio.h> 13321#include <stdlib.h> 13322int 13323main () 13324{ 13325 13326 FILE *f = fopen ("conftest.val", "w"); 13327 if (! f) 13328 return 1; 13329 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 13330 { 13331 long int i = longval (); 13332 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13333 return 1; 13334 fprintf (f, "%ld\n", i); 13335 } 13336 else 13337 { 13338 unsigned long int i = ulongval (); 13339 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13340 return 1; 13341 fprintf (f, "%lu\n", i); 13342 } 13343 return ferror (f) || fclose (f) != 0; 13344 13345 ; 13346 return 0; 13347} 13348_ACEOF 13349rm -f conftest$ac_exeext 13350if { (ac_try="$ac_link" 13351case "(($ac_try" in 13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13353 *) ac_try_echo=$ac_try;; 13354esac 13355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13356 (eval "$ac_link") 2>&5 13357 ac_status=$? 13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13360 { (case "(($ac_try" in 13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13362 *) ac_try_echo=$ac_try;; 13363esac 13364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13365 (eval "$ac_try") 2>&5 13366 ac_status=$? 13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13368 (exit $ac_status); }; }; then 13369 ac_cv_sizeof_long=`cat conftest.val` 13370else 13371 echo "$as_me: program exited with status $ac_status" >&5 13372echo "$as_me: failed program was:" >&5 13373sed 's/^/| /' conftest.$ac_ext >&5 13374 13375( exit $ac_status ) 13376if test "$ac_cv_type_long" = yes; then 13377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 13378See \`config.log' for more details." >&5 13379echo "$as_me: error: cannot compute sizeof (long) 13380See \`config.log' for more details." >&2;} 13381 { (exit 77); exit 77; }; } 13382 else 13383 ac_cv_sizeof_long=0 13384 fi 13385fi 13386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13387fi 13388rm -f conftest.val 13389fi 13390{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 13391echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 13392 13393 13394 13395cat >>confdefs.h <<_ACEOF 13396#define SIZEOF_LONG $ac_cv_sizeof_long 13397_ACEOF 13398 13399 13400{ echo "$as_me:$LINENO: checking for long long" >&5 13401echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 13402if test "${ac_cv_type_long_long+set}" = set; then 13403 echo $ECHO_N "(cached) $ECHO_C" >&6 13404else 13405 cat >conftest.$ac_ext <<_ACEOF 13406/* confdefs.h. */ 13407_ACEOF 13408cat confdefs.h >>conftest.$ac_ext 13409cat >>conftest.$ac_ext <<_ACEOF 13410/* end confdefs.h. */ 13411$ac_includes_default 13412typedef long long ac__type_new_; 13413int 13414main () 13415{ 13416if ((ac__type_new_ *) 0) 13417 return 0; 13418if (sizeof (ac__type_new_)) 13419 return 0; 13420 ; 13421 return 0; 13422} 13423_ACEOF 13424rm -f conftest.$ac_objext 13425if { (ac_try="$ac_compile" 13426case "(($ac_try" in 13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13428 *) ac_try_echo=$ac_try;; 13429esac 13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13431 (eval "$ac_compile") 2>conftest.er1 13432 ac_status=$? 13433 grep -v '^ *+' conftest.er1 >conftest.err 13434 rm -f conftest.er1 13435 cat conftest.err >&5 13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13437 (exit $ac_status); } && { 13438 test -z "$ac_c_werror_flag" || 13439 test ! -s conftest.err 13440 } && test -s conftest.$ac_objext; then 13441 ac_cv_type_long_long=yes 13442else 13443 echo "$as_me: failed program was:" >&5 13444sed 's/^/| /' conftest.$ac_ext >&5 13445 13446 ac_cv_type_long_long=no 13447fi 13448 13449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13450fi 13451{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 13452echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 13453 13454# The cast to long int works around a bug in the HP C Compiler 13455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13457# This bug is HP SR number 8606223364. 13458{ echo "$as_me:$LINENO: checking size of long long" >&5 13459echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } 13460if test "${ac_cv_sizeof_long_long+set}" = set; then 13461 echo $ECHO_N "(cached) $ECHO_C" >&6 13462else 13463 if test "$cross_compiling" = yes; then 13464 # Depending upon the size, compute the lo and hi bounds. 13465cat >conftest.$ac_ext <<_ACEOF 13466/* confdefs.h. */ 13467_ACEOF 13468cat confdefs.h >>conftest.$ac_ext 13469cat >>conftest.$ac_ext <<_ACEOF 13470/* end confdefs.h. */ 13471$ac_includes_default 13472 typedef long long ac__type_sizeof_; 13473int 13474main () 13475{ 13476static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 13477test_array [0] = 0 13478 13479 ; 13480 return 0; 13481} 13482_ACEOF 13483rm -f conftest.$ac_objext 13484if { (ac_try="$ac_compile" 13485case "(($ac_try" in 13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13487 *) ac_try_echo=$ac_try;; 13488esac 13489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13490 (eval "$ac_compile") 2>conftest.er1 13491 ac_status=$? 13492 grep -v '^ *+' conftest.er1 >conftest.err 13493 rm -f conftest.er1 13494 cat conftest.err >&5 13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13496 (exit $ac_status); } && { 13497 test -z "$ac_c_werror_flag" || 13498 test ! -s conftest.err 13499 } && test -s conftest.$ac_objext; then 13500 ac_lo=0 ac_mid=0 13501 while :; do 13502 cat >conftest.$ac_ext <<_ACEOF 13503/* confdefs.h. */ 13504_ACEOF 13505cat confdefs.h >>conftest.$ac_ext 13506cat >>conftest.$ac_ext <<_ACEOF 13507/* end confdefs.h. */ 13508$ac_includes_default 13509 typedef long long ac__type_sizeof_; 13510int 13511main () 13512{ 13513static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13514test_array [0] = 0 13515 13516 ; 13517 return 0; 13518} 13519_ACEOF 13520rm -f conftest.$ac_objext 13521if { (ac_try="$ac_compile" 13522case "(($ac_try" in 13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13524 *) ac_try_echo=$ac_try;; 13525esac 13526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13527 (eval "$ac_compile") 2>conftest.er1 13528 ac_status=$? 13529 grep -v '^ *+' conftest.er1 >conftest.err 13530 rm -f conftest.er1 13531 cat conftest.err >&5 13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13533 (exit $ac_status); } && { 13534 test -z "$ac_c_werror_flag" || 13535 test ! -s conftest.err 13536 } && test -s conftest.$ac_objext; then 13537 ac_hi=$ac_mid; break 13538else 13539 echo "$as_me: failed program was:" >&5 13540sed 's/^/| /' conftest.$ac_ext >&5 13541 13542 ac_lo=`expr $ac_mid + 1` 13543 if test $ac_lo -le $ac_mid; then 13544 ac_lo= ac_hi= 13545 break 13546 fi 13547 ac_mid=`expr 2 '*' $ac_mid + 1` 13548fi 13549 13550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13551 done 13552else 13553 echo "$as_me: failed program was:" >&5 13554sed 's/^/| /' conftest.$ac_ext >&5 13555 13556 cat >conftest.$ac_ext <<_ACEOF 13557/* confdefs.h. */ 13558_ACEOF 13559cat confdefs.h >>conftest.$ac_ext 13560cat >>conftest.$ac_ext <<_ACEOF 13561/* end confdefs.h. */ 13562$ac_includes_default 13563 typedef long long ac__type_sizeof_; 13564int 13565main () 13566{ 13567static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 13568test_array [0] = 0 13569 13570 ; 13571 return 0; 13572} 13573_ACEOF 13574rm -f conftest.$ac_objext 13575if { (ac_try="$ac_compile" 13576case "(($ac_try" in 13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13578 *) ac_try_echo=$ac_try;; 13579esac 13580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13581 (eval "$ac_compile") 2>conftest.er1 13582 ac_status=$? 13583 grep -v '^ *+' conftest.er1 >conftest.err 13584 rm -f conftest.er1 13585 cat conftest.err >&5 13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13587 (exit $ac_status); } && { 13588 test -z "$ac_c_werror_flag" || 13589 test ! -s conftest.err 13590 } && test -s conftest.$ac_objext; then 13591 ac_hi=-1 ac_mid=-1 13592 while :; do 13593 cat >conftest.$ac_ext <<_ACEOF 13594/* confdefs.h. */ 13595_ACEOF 13596cat confdefs.h >>conftest.$ac_ext 13597cat >>conftest.$ac_ext <<_ACEOF 13598/* end confdefs.h. */ 13599$ac_includes_default 13600 typedef long long ac__type_sizeof_; 13601int 13602main () 13603{ 13604static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 13605test_array [0] = 0 13606 13607 ; 13608 return 0; 13609} 13610_ACEOF 13611rm -f conftest.$ac_objext 13612if { (ac_try="$ac_compile" 13613case "(($ac_try" in 13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13615 *) ac_try_echo=$ac_try;; 13616esac 13617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13618 (eval "$ac_compile") 2>conftest.er1 13619 ac_status=$? 13620 grep -v '^ *+' conftest.er1 >conftest.err 13621 rm -f conftest.er1 13622 cat conftest.err >&5 13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13624 (exit $ac_status); } && { 13625 test -z "$ac_c_werror_flag" || 13626 test ! -s conftest.err 13627 } && test -s conftest.$ac_objext; then 13628 ac_lo=$ac_mid; break 13629else 13630 echo "$as_me: failed program was:" >&5 13631sed 's/^/| /' conftest.$ac_ext >&5 13632 13633 ac_hi=`expr '(' $ac_mid ')' - 1` 13634 if test $ac_mid -le $ac_hi; then 13635 ac_lo= ac_hi= 13636 break 13637 fi 13638 ac_mid=`expr 2 '*' $ac_mid` 13639fi 13640 13641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13642 done 13643else 13644 echo "$as_me: failed program was:" >&5 13645sed 's/^/| /' conftest.$ac_ext >&5 13646 13647 ac_lo= ac_hi= 13648fi 13649 13650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13651fi 13652 13653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13654# Binary search between lo and hi bounds. 13655while test "x$ac_lo" != "x$ac_hi"; do 13656 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13657 cat >conftest.$ac_ext <<_ACEOF 13658/* confdefs.h. */ 13659_ACEOF 13660cat confdefs.h >>conftest.$ac_ext 13661cat >>conftest.$ac_ext <<_ACEOF 13662/* end confdefs.h. */ 13663$ac_includes_default 13664 typedef long long ac__type_sizeof_; 13665int 13666main () 13667{ 13668static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13669test_array [0] = 0 13670 13671 ; 13672 return 0; 13673} 13674_ACEOF 13675rm -f conftest.$ac_objext 13676if { (ac_try="$ac_compile" 13677case "(($ac_try" in 13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13679 *) ac_try_echo=$ac_try;; 13680esac 13681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13682 (eval "$ac_compile") 2>conftest.er1 13683 ac_status=$? 13684 grep -v '^ *+' conftest.er1 >conftest.err 13685 rm -f conftest.er1 13686 cat conftest.err >&5 13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13688 (exit $ac_status); } && { 13689 test -z "$ac_c_werror_flag" || 13690 test ! -s conftest.err 13691 } && test -s conftest.$ac_objext; then 13692 ac_hi=$ac_mid 13693else 13694 echo "$as_me: failed program was:" >&5 13695sed 's/^/| /' conftest.$ac_ext >&5 13696 13697 ac_lo=`expr '(' $ac_mid ')' + 1` 13698fi 13699 13700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13701done 13702case $ac_lo in 13703?*) ac_cv_sizeof_long_long=$ac_lo;; 13704'') if test "$ac_cv_type_long_long" = yes; then 13705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 13706See \`config.log' for more details." >&5 13707echo "$as_me: error: cannot compute sizeof (long long) 13708See \`config.log' for more details." >&2;} 13709 { (exit 77); exit 77; }; } 13710 else 13711 ac_cv_sizeof_long_long=0 13712 fi ;; 13713esac 13714else 13715 cat >conftest.$ac_ext <<_ACEOF 13716/* confdefs.h. */ 13717_ACEOF 13718cat confdefs.h >>conftest.$ac_ext 13719cat >>conftest.$ac_ext <<_ACEOF 13720/* end confdefs.h. */ 13721$ac_includes_default 13722 typedef long long ac__type_sizeof_; 13723static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 13724static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 13725#include <stdio.h> 13726#include <stdlib.h> 13727int 13728main () 13729{ 13730 13731 FILE *f = fopen ("conftest.val", "w"); 13732 if (! f) 13733 return 1; 13734 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 13735 { 13736 long int i = longval (); 13737 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13738 return 1; 13739 fprintf (f, "%ld\n", i); 13740 } 13741 else 13742 { 13743 unsigned long int i = ulongval (); 13744 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13745 return 1; 13746 fprintf (f, "%lu\n", i); 13747 } 13748 return ferror (f) || fclose (f) != 0; 13749 13750 ; 13751 return 0; 13752} 13753_ACEOF 13754rm -f conftest$ac_exeext 13755if { (ac_try="$ac_link" 13756case "(($ac_try" in 13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13758 *) ac_try_echo=$ac_try;; 13759esac 13760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13761 (eval "$ac_link") 2>&5 13762 ac_status=$? 13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13765 { (case "(($ac_try" in 13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13767 *) ac_try_echo=$ac_try;; 13768esac 13769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13770 (eval "$ac_try") 2>&5 13771 ac_status=$? 13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13773 (exit $ac_status); }; }; then 13774 ac_cv_sizeof_long_long=`cat conftest.val` 13775else 13776 echo "$as_me: program exited with status $ac_status" >&5 13777echo "$as_me: failed program was:" >&5 13778sed 's/^/| /' conftest.$ac_ext >&5 13779 13780( exit $ac_status ) 13781if test "$ac_cv_type_long_long" = yes; then 13782 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 13783See \`config.log' for more details." >&5 13784echo "$as_me: error: cannot compute sizeof (long long) 13785See \`config.log' for more details." >&2;} 13786 { (exit 77); exit 77; }; } 13787 else 13788 ac_cv_sizeof_long_long=0 13789 fi 13790fi 13791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13792fi 13793rm -f conftest.val 13794fi 13795{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 13796echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } 13797 13798 13799 13800cat >>confdefs.h <<_ACEOF 13801#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 13802_ACEOF 13803 13804 13805SIZEOF_SHORT=$ac_cv_sizeof_short 13806SIZEOF_INT=$ac_cv_sizeof_int 13807SIZEOF_LONG=$ac_cv_sizeof_long 13808SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long 13809 13810 13811 13812 13813{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 13814echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 13815if test "${ac_cv_c_bigendian+set}" = set; then 13816 echo $ECHO_N "(cached) $ECHO_C" >&6 13817else 13818 # See if sys/param.h defines the BYTE_ORDER macro. 13819cat >conftest.$ac_ext <<_ACEOF 13820/* confdefs.h. */ 13821_ACEOF 13822cat confdefs.h >>conftest.$ac_ext 13823cat >>conftest.$ac_ext <<_ACEOF 13824/* end confdefs.h. */ 13825#include <sys/types.h> 13826#include <sys/param.h> 13827 13828int 13829main () 13830{ 13831#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 13832 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 13833 bogus endian macros 13834#endif 13835 13836 ; 13837 return 0; 13838} 13839_ACEOF 13840rm -f conftest.$ac_objext 13841if { (ac_try="$ac_compile" 13842case "(($ac_try" in 13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13844 *) ac_try_echo=$ac_try;; 13845esac 13846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13847 (eval "$ac_compile") 2>conftest.er1 13848 ac_status=$? 13849 grep -v '^ *+' conftest.er1 >conftest.err 13850 rm -f conftest.er1 13851 cat conftest.err >&5 13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13853 (exit $ac_status); } && { 13854 test -z "$ac_c_werror_flag" || 13855 test ! -s conftest.err 13856 } && test -s conftest.$ac_objext; then 13857 # It does; now see whether it defined to BIG_ENDIAN or not. 13858cat >conftest.$ac_ext <<_ACEOF 13859/* confdefs.h. */ 13860_ACEOF 13861cat confdefs.h >>conftest.$ac_ext 13862cat >>conftest.$ac_ext <<_ACEOF 13863/* end confdefs.h. */ 13864#include <sys/types.h> 13865#include <sys/param.h> 13866 13867int 13868main () 13869{ 13870#if BYTE_ORDER != BIG_ENDIAN 13871 not big endian 13872#endif 13873 13874 ; 13875 return 0; 13876} 13877_ACEOF 13878rm -f conftest.$ac_objext 13879if { (ac_try="$ac_compile" 13880case "(($ac_try" in 13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13882 *) ac_try_echo=$ac_try;; 13883esac 13884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13885 (eval "$ac_compile") 2>conftest.er1 13886 ac_status=$? 13887 grep -v '^ *+' conftest.er1 >conftest.err 13888 rm -f conftest.er1 13889 cat conftest.err >&5 13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13891 (exit $ac_status); } && { 13892 test -z "$ac_c_werror_flag" || 13893 test ! -s conftest.err 13894 } && test -s conftest.$ac_objext; then 13895 ac_cv_c_bigendian=yes 13896else 13897 echo "$as_me: failed program was:" >&5 13898sed 's/^/| /' conftest.$ac_ext >&5 13899 13900 ac_cv_c_bigendian=no 13901fi 13902 13903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13904else 13905 echo "$as_me: failed program was:" >&5 13906sed 's/^/| /' conftest.$ac_ext >&5 13907 13908 # It does not; compile a test program. 13909if test "$cross_compiling" = yes; then 13910 # try to guess the endianness by grepping values into an object file 13911 ac_cv_c_bigendian=unknown 13912 cat >conftest.$ac_ext <<_ACEOF 13913/* confdefs.h. */ 13914_ACEOF 13915cat confdefs.h >>conftest.$ac_ext 13916cat >>conftest.$ac_ext <<_ACEOF 13917/* end confdefs.h. */ 13918short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13919short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13920void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 13921short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13922short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13923void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 13924int 13925main () 13926{ 13927 _ascii (); _ebcdic (); 13928 ; 13929 return 0; 13930} 13931_ACEOF 13932rm -f conftest.$ac_objext 13933if { (ac_try="$ac_compile" 13934case "(($ac_try" in 13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13936 *) ac_try_echo=$ac_try;; 13937esac 13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13939 (eval "$ac_compile") 2>conftest.er1 13940 ac_status=$? 13941 grep -v '^ *+' conftest.er1 >conftest.err 13942 rm -f conftest.er1 13943 cat conftest.err >&5 13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13945 (exit $ac_status); } && { 13946 test -z "$ac_c_werror_flag" || 13947 test ! -s conftest.err 13948 } && test -s conftest.$ac_objext; then 13949 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 13950 ac_cv_c_bigendian=yes 13951fi 13952if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13953 if test "$ac_cv_c_bigendian" = unknown; then 13954 ac_cv_c_bigendian=no 13955 else 13956 # finding both strings is unlikely to happen, but who knows? 13957 ac_cv_c_bigendian=unknown 13958 fi 13959fi 13960else 13961 echo "$as_me: failed program was:" >&5 13962sed 's/^/| /' conftest.$ac_ext >&5 13963 13964 13965fi 13966 13967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13968else 13969 cat >conftest.$ac_ext <<_ACEOF 13970/* confdefs.h. */ 13971_ACEOF 13972cat confdefs.h >>conftest.$ac_ext 13973cat >>conftest.$ac_ext <<_ACEOF 13974/* end confdefs.h. */ 13975$ac_includes_default 13976int 13977main () 13978{ 13979 13980 /* Are we little or big endian? From Harbison&Steele. */ 13981 union 13982 { 13983 long int l; 13984 char c[sizeof (long int)]; 13985 } u; 13986 u.l = 1; 13987 return u.c[sizeof (long int) - 1] == 1; 13988 13989 ; 13990 return 0; 13991} 13992_ACEOF 13993rm -f conftest$ac_exeext 13994if { (ac_try="$ac_link" 13995case "(($ac_try" in 13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13997 *) ac_try_echo=$ac_try;; 13998esac 13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14000 (eval "$ac_link") 2>&5 14001 ac_status=$? 14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14004 { (case "(($ac_try" in 14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14006 *) ac_try_echo=$ac_try;; 14007esac 14008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14009 (eval "$ac_try") 2>&5 14010 ac_status=$? 14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14012 (exit $ac_status); }; }; then 14013 ac_cv_c_bigendian=no 14014else 14015 echo "$as_me: program exited with status $ac_status" >&5 14016echo "$as_me: failed program was:" >&5 14017sed 's/^/| /' conftest.$ac_ext >&5 14018 14019( exit $ac_status ) 14020ac_cv_c_bigendian=yes 14021fi 14022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14023fi 14024 14025 14026fi 14027 14028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14029fi 14030{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 14031echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 14032case $ac_cv_c_bigendian in 14033 yes) 14034 14035cat >>confdefs.h <<\_ACEOF 14036#define WORDS_BIGENDIAN 1 14037_ACEOF 14038 ;; 14039 no) 14040 ;; 14041 *) 14042 { { echo "$as_me:$LINENO: error: unknown endianness 14043presetting ac_cv_c_bigendian=no (or yes) will help" >&5 14044echo "$as_me: error: unknown endianness 14045presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 14046 { (exit 1); exit 1; }; } ;; 14047esac 14048 14049BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh 14050ASM_TYPES_HEADER=./asm_types.h 14051 14052 14053for ac_header in inttypes.h 14054do 14055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 14056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14057 { echo "$as_me:$LINENO: checking for $ac_header" >&5 14058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14060 echo $ECHO_N "(cached) $ECHO_C" >&6 14061fi 14062ac_res=`eval echo '${'$as_ac_Header'}'` 14063 { echo "$as_me:$LINENO: result: $ac_res" >&5 14064echo "${ECHO_T}$ac_res" >&6; } 14065else 14066 # Is the header compilable? 14067{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 14068echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 14069cat >conftest.$ac_ext <<_ACEOF 14070/* confdefs.h. */ 14071_ACEOF 14072cat confdefs.h >>conftest.$ac_ext 14073cat >>conftest.$ac_ext <<_ACEOF 14074/* end confdefs.h. */ 14075$ac_includes_default 14076#include <$ac_header> 14077_ACEOF 14078rm -f conftest.$ac_objext 14079if { (ac_try="$ac_compile" 14080case "(($ac_try" in 14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14082 *) ac_try_echo=$ac_try;; 14083esac 14084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14085 (eval "$ac_compile") 2>conftest.er1 14086 ac_status=$? 14087 grep -v '^ *+' conftest.er1 >conftest.err 14088 rm -f conftest.er1 14089 cat conftest.err >&5 14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14091 (exit $ac_status); } && { 14092 test -z "$ac_c_werror_flag" || 14093 test ! -s conftest.err 14094 } && test -s conftest.$ac_objext; then 14095 ac_header_compiler=yes 14096else 14097 echo "$as_me: failed program was:" >&5 14098sed 's/^/| /' conftest.$ac_ext >&5 14099 14100 ac_header_compiler=no 14101fi 14102 14103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14104{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 14105echo "${ECHO_T}$ac_header_compiler" >&6; } 14106 14107# Is the header present? 14108{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 14109echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 14110cat >conftest.$ac_ext <<_ACEOF 14111/* confdefs.h. */ 14112_ACEOF 14113cat confdefs.h >>conftest.$ac_ext 14114cat >>conftest.$ac_ext <<_ACEOF 14115/* end confdefs.h. */ 14116#include <$ac_header> 14117_ACEOF 14118if { (ac_try="$ac_cpp conftest.$ac_ext" 14119case "(($ac_try" in 14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14121 *) ac_try_echo=$ac_try;; 14122esac 14123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 14125 ac_status=$? 14126 grep -v '^ *+' conftest.er1 >conftest.err 14127 rm -f conftest.er1 14128 cat conftest.err >&5 14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14130 (exit $ac_status); } >/dev/null && { 14131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 14132 test ! -s conftest.err 14133 }; then 14134 ac_header_preproc=yes 14135else 14136 echo "$as_me: failed program was:" >&5 14137sed 's/^/| /' conftest.$ac_ext >&5 14138 14139 ac_header_preproc=no 14140fi 14141 14142rm -f conftest.err conftest.$ac_ext 14143{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14144echo "${ECHO_T}$ac_header_preproc" >&6; } 14145 14146# So? What about this header? 14147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 14148 yes:no: ) 14149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14150echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 14152echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 14153 ac_header_preproc=yes 14154 ;; 14155 no:yes:* ) 14156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14157echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14159echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 14161echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 14162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 14163echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 14164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14165echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 14166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 14167echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 14168 14169 ;; 14170esac 14171{ echo "$as_me:$LINENO: checking for $ac_header" >&5 14172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 14173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 14174 echo $ECHO_N "(cached) $ECHO_C" >&6 14175else 14176 eval "$as_ac_Header=\$ac_header_preproc" 14177fi 14178ac_res=`eval echo '${'$as_ac_Header'}'` 14179 { echo "$as_me:$LINENO: result: $ac_res" >&5 14180echo "${ECHO_T}$ac_res" >&6; } 14181 14182fi 14183if test `eval echo '${'$as_ac_Header'}'` = yes; then 14184 cat >>confdefs.h <<_ACEOF 14185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14186_ACEOF 14187 14188fi 14189 14190done 14191 14192{ echo "$as_me:$LINENO: checking for intptr_t" >&5 14193echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } 14194if test "${ac_cv_type_intptr_t+set}" = set; then 14195 echo $ECHO_N "(cached) $ECHO_C" >&6 14196else 14197 cat >conftest.$ac_ext <<_ACEOF 14198/* confdefs.h. */ 14199_ACEOF 14200cat confdefs.h >>conftest.$ac_ext 14201cat >>conftest.$ac_ext <<_ACEOF 14202/* end confdefs.h. */ 14203$ac_includes_default 14204typedef intptr_t ac__type_new_; 14205int 14206main () 14207{ 14208if ((ac__type_new_ *) 0) 14209 return 0; 14210if (sizeof (ac__type_new_)) 14211 return 0; 14212 ; 14213 return 0; 14214} 14215_ACEOF 14216rm -f conftest.$ac_objext 14217if { (ac_try="$ac_compile" 14218case "(($ac_try" in 14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14220 *) ac_try_echo=$ac_try;; 14221esac 14222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14223 (eval "$ac_compile") 2>conftest.er1 14224 ac_status=$? 14225 grep -v '^ *+' conftest.er1 >conftest.err 14226 rm -f conftest.er1 14227 cat conftest.err >&5 14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14229 (exit $ac_status); } && { 14230 test -z "$ac_c_werror_flag" || 14231 test ! -s conftest.err 14232 } && test -s conftest.$ac_objext; then 14233 ac_cv_type_intptr_t=yes 14234else 14235 echo "$as_me: failed program was:" >&5 14236sed 's/^/| /' conftest.$ac_ext >&5 14237 14238 ac_cv_type_intptr_t=no 14239fi 14240 14241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14242fi 14243{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 14244echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } 14245if test $ac_cv_type_intptr_t = yes; then 14246 14247cat >>confdefs.h <<_ACEOF 14248#define HAVE_INTPTR_T 1 14249_ACEOF 14250 14251 14252fi 14253 14254{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 14255echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; } 14256if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then 14257 echo $ECHO_N "(cached) $ECHO_C" >&6 14258else 14259 cat >conftest.$ac_ext <<_ACEOF 14260/* confdefs.h. */ 14261_ACEOF 14262cat confdefs.h >>conftest.$ac_ext 14263cat >>conftest.$ac_ext <<_ACEOF 14264/* end confdefs.h. */ 14265#include <sys/stat.h> 14266int 14267main () 14268{ 14269struct stat stat; stat.st_flags = 0; 14270 ; 14271 return 0; 14272} 14273_ACEOF 14274rm -f conftest.$ac_objext 14275if { (ac_try="$ac_compile" 14276case "(($ac_try" in 14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14278 *) ac_try_echo=$ac_try;; 14279esac 14280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14281 (eval "$ac_compile") 2>conftest.er1 14282 ac_status=$? 14283 grep -v '^ *+' conftest.er1 >conftest.err 14284 rm -f conftest.er1 14285 cat conftest.err >&5 14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14287 (exit $ac_status); } && { 14288 test -z "$ac_c_werror_flag" || 14289 test ! -s conftest.err 14290 } && test -s conftest.$ac_objext; then 14291 e2fsprogs_cv_struct_st_flags=yes 14292else 14293 echo "$as_me: failed program was:" >&5 14294sed 's/^/| /' conftest.$ac_ext >&5 14295 14296 e2fsprogs_cv_struct_st_flags=no 14297fi 14298 14299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14300fi 14301 14302{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 14303echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } 14304if test "$e2fsprogs_cv_struct_st_flags" = yes; then 14305 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 14306echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; } 14307 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then 14308 echo $ECHO_N "(cached) $ECHO_C" >&6 14309else 14310 cat >conftest.$ac_ext <<_ACEOF 14311/* confdefs.h. */ 14312_ACEOF 14313cat confdefs.h >>conftest.$ac_ext 14314cat >>conftest.$ac_ext <<_ACEOF 14315/* end confdefs.h. */ 14316#include <sys/stat.h> 14317int 14318main () 14319{ 14320struct stat stat; stat.st_flags |= UF_IMMUTABLE; 14321 ; 14322 return 0; 14323} 14324_ACEOF 14325rm -f conftest.$ac_objext 14326if { (ac_try="$ac_compile" 14327case "(($ac_try" in 14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14329 *) ac_try_echo=$ac_try;; 14330esac 14331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14332 (eval "$ac_compile") 2>conftest.er1 14333 ac_status=$? 14334 grep -v '^ *+' conftest.er1 >conftest.err 14335 rm -f conftest.er1 14336 cat conftest.err >&5 14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14338 (exit $ac_status); } && { 14339 test -z "$ac_c_werror_flag" || 14340 test ! -s conftest.err 14341 } && test -s conftest.$ac_objext; then 14342 e2fsprogs_cv_struct_st_flags_immut=yes 14343else 14344 echo "$as_me: failed program was:" >&5 14345sed 's/^/| /' conftest.$ac_ext >&5 14346 14347 e2fsprogs_cv_struct_st_flags_immut=no 14348fi 14349 14350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14351fi 14352 14353 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 14354echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } 14355 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then 14356 cat >>confdefs.h <<\_ACEOF 14357#define HAVE_STAT_FLAGS 1 14358_ACEOF 14359 14360 fi 14361fi 14362{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 14363echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } 14364if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then 14365 echo $ECHO_N "(cached) $ECHO_C" >&6 14366else 14367 cat >conftest.$ac_ext <<_ACEOF 14368/* confdefs.h. */ 14369_ACEOF 14370cat confdefs.h >>conftest.$ac_ext 14371cat >>conftest.$ac_ext <<_ACEOF 14372/* end confdefs.h. */ 14373#include <sys/types.h> 14374 #include <sys/socket.h> 14375 14376int 14377main () 14378{ 14379static struct sockaddr ac_aggr; 14380if (ac_aggr.sa_len) 14381return 0; 14382 ; 14383 return 0; 14384} 14385_ACEOF 14386rm -f conftest.$ac_objext 14387if { (ac_try="$ac_compile" 14388case "(($ac_try" in 14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14390 *) ac_try_echo=$ac_try;; 14391esac 14392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14393 (eval "$ac_compile") 2>conftest.er1 14394 ac_status=$? 14395 grep -v '^ *+' conftest.er1 >conftest.err 14396 rm -f conftest.er1 14397 cat conftest.err >&5 14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14399 (exit $ac_status); } && { 14400 test -z "$ac_c_werror_flag" || 14401 test ! -s conftest.err 14402 } && test -s conftest.$ac_objext; then 14403 ac_cv_member_struct_sockaddr_sa_len=yes 14404else 14405 echo "$as_me: failed program was:" >&5 14406sed 's/^/| /' conftest.$ac_ext >&5 14407 14408 cat >conftest.$ac_ext <<_ACEOF 14409/* confdefs.h. */ 14410_ACEOF 14411cat confdefs.h >>conftest.$ac_ext 14412cat >>conftest.$ac_ext <<_ACEOF 14413/* end confdefs.h. */ 14414#include <sys/types.h> 14415 #include <sys/socket.h> 14416 14417int 14418main () 14419{ 14420static struct sockaddr ac_aggr; 14421if (sizeof ac_aggr.sa_len) 14422return 0; 14423 ; 14424 return 0; 14425} 14426_ACEOF 14427rm -f conftest.$ac_objext 14428if { (ac_try="$ac_compile" 14429case "(($ac_try" in 14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14431 *) ac_try_echo=$ac_try;; 14432esac 14433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14434 (eval "$ac_compile") 2>conftest.er1 14435 ac_status=$? 14436 grep -v '^ *+' conftest.er1 >conftest.err 14437 rm -f conftest.er1 14438 cat conftest.err >&5 14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14440 (exit $ac_status); } && { 14441 test -z "$ac_c_werror_flag" || 14442 test ! -s conftest.err 14443 } && test -s conftest.$ac_objext; then 14444 ac_cv_member_struct_sockaddr_sa_len=yes 14445else 14446 echo "$as_me: failed program was:" >&5 14447sed 's/^/| /' conftest.$ac_ext >&5 14448 14449 ac_cv_member_struct_sockaddr_sa_len=no 14450fi 14451 14452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14453fi 14454 14455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14456fi 14457{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 14458echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } 14459if test $ac_cv_member_struct_sockaddr_sa_len = yes; then 14460 14461cat >>confdefs.h <<_ACEOF 14462#define HAVE_SA_LEN 1 14463_ACEOF 14464 14465fi 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime 14494do 14495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14496{ echo "$as_me:$LINENO: checking for $ac_func" >&5 14497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 14498if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 14499 echo $ECHO_N "(cached) $ECHO_C" >&6 14500else 14501 cat >conftest.$ac_ext <<_ACEOF 14502/* confdefs.h. */ 14503_ACEOF 14504cat confdefs.h >>conftest.$ac_ext 14505cat >>conftest.$ac_ext <<_ACEOF 14506/* end confdefs.h. */ 14507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 14508 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 14509#define $ac_func innocuous_$ac_func 14510 14511/* System header to define __stub macros and hopefully few prototypes, 14512 which can conflict with char $ac_func (); below. 14513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14514 <limits.h> exists even on freestanding compilers. */ 14515 14516#ifdef __STDC__ 14517# include <limits.h> 14518#else 14519# include <assert.h> 14520#endif 14521 14522#undef $ac_func 14523 14524/* Override any GCC internal prototype to avoid an error. 14525 Use char because int might match the return type of a GCC 14526 builtin and then its argument prototype would still apply. */ 14527#ifdef __cplusplus 14528extern "C" 14529#endif 14530char $ac_func (); 14531/* The GNU C library defines this for functions which it implements 14532 to always fail with ENOSYS. Some functions are actually named 14533 something starting with __ and the normal name is an alias. */ 14534#if defined __stub_$ac_func || defined __stub___$ac_func 14535choke me 14536#endif 14537 14538int 14539main () 14540{ 14541return $ac_func (); 14542 ; 14543 return 0; 14544} 14545_ACEOF 14546rm -f conftest.$ac_objext conftest$ac_exeext 14547if { (ac_try="$ac_link" 14548case "(($ac_try" in 14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14550 *) ac_try_echo=$ac_try;; 14551esac 14552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14553 (eval "$ac_link") 2>conftest.er1 14554 ac_status=$? 14555 grep -v '^ *+' conftest.er1 >conftest.err 14556 rm -f conftest.er1 14557 cat conftest.err >&5 14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14559 (exit $ac_status); } && { 14560 test -z "$ac_c_werror_flag" || 14561 test ! -s conftest.err 14562 } && test -s conftest$ac_exeext && 14563 $as_test_x conftest$ac_exeext; then 14564 eval "$as_ac_var=yes" 14565else 14566 echo "$as_me: failed program was:" >&5 14567sed 's/^/| /' conftest.$ac_ext >&5 14568 14569 eval "$as_ac_var=no" 14570fi 14571 14572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14573 conftest$ac_exeext conftest.$ac_ext 14574fi 14575ac_res=`eval echo '${'$as_ac_var'}'` 14576 { echo "$as_me:$LINENO: result: $ac_res" >&5 14577echo "${ECHO_T}$ac_res" >&6; } 14578if test `eval echo '${'$as_ac_var'}'` = yes; then 14579 cat >>confdefs.h <<_ACEOF 14580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14581_ACEOF 14582 14583fi 14584done 14585 14586SOCKET_LIB='' 14587{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 14588echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 14589if test "${ac_cv_lib_socket_socket+set}" = set; then 14590 echo $ECHO_N "(cached) $ECHO_C" >&6 14591else 14592 ac_check_lib_save_LIBS=$LIBS 14593LIBS="-lsocket $LIBS" 14594cat >conftest.$ac_ext <<_ACEOF 14595/* confdefs.h. */ 14596_ACEOF 14597cat confdefs.h >>conftest.$ac_ext 14598cat >>conftest.$ac_ext <<_ACEOF 14599/* end confdefs.h. */ 14600 14601/* Override any GCC internal prototype to avoid an error. 14602 Use char because int might match the return type of a GCC 14603 builtin and then its argument prototype would still apply. */ 14604#ifdef __cplusplus 14605extern "C" 14606#endif 14607char socket (); 14608int 14609main () 14610{ 14611return socket (); 14612 ; 14613 return 0; 14614} 14615_ACEOF 14616rm -f conftest.$ac_objext conftest$ac_exeext 14617if { (ac_try="$ac_link" 14618case "(($ac_try" in 14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14620 *) ac_try_echo=$ac_try;; 14621esac 14622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14623 (eval "$ac_link") 2>conftest.er1 14624 ac_status=$? 14625 grep -v '^ *+' conftest.er1 >conftest.err 14626 rm -f conftest.er1 14627 cat conftest.err >&5 14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14629 (exit $ac_status); } && { 14630 test -z "$ac_c_werror_flag" || 14631 test ! -s conftest.err 14632 } && test -s conftest$ac_exeext && 14633 $as_test_x conftest$ac_exeext; then 14634 ac_cv_lib_socket_socket=yes 14635else 14636 echo "$as_me: failed program was:" >&5 14637sed 's/^/| /' conftest.$ac_ext >&5 14638 14639 ac_cv_lib_socket_socket=no 14640fi 14641 14642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14643 conftest$ac_exeext conftest.$ac_ext 14644LIBS=$ac_check_lib_save_LIBS 14645fi 14646{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 14647echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 14648if test $ac_cv_lib_socket_socket = yes; then 14649 SOCKET_LIB=-lsocket 14650fi 14651 14652 14653DLOPEN_LIB='' 14654{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 14655echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 14656if test "${ac_cv_lib_dl_dlopen+set}" = set; then 14657 echo $ECHO_N "(cached) $ECHO_C" >&6 14658else 14659 ac_check_lib_save_LIBS=$LIBS 14660LIBS="-ldl $LIBS" 14661cat >conftest.$ac_ext <<_ACEOF 14662/* confdefs.h. */ 14663_ACEOF 14664cat confdefs.h >>conftest.$ac_ext 14665cat >>conftest.$ac_ext <<_ACEOF 14666/* end confdefs.h. */ 14667 14668/* Override any GCC internal prototype to avoid an error. 14669 Use char because int might match the return type of a GCC 14670 builtin and then its argument prototype would still apply. */ 14671#ifdef __cplusplus 14672extern "C" 14673#endif 14674char dlopen (); 14675int 14676main () 14677{ 14678return dlopen (); 14679 ; 14680 return 0; 14681} 14682_ACEOF 14683rm -f conftest.$ac_objext conftest$ac_exeext 14684if { (ac_try="$ac_link" 14685case "(($ac_try" in 14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14687 *) ac_try_echo=$ac_try;; 14688esac 14689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14690 (eval "$ac_link") 2>conftest.er1 14691 ac_status=$? 14692 grep -v '^ *+' conftest.er1 >conftest.err 14693 rm -f conftest.er1 14694 cat conftest.err >&5 14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14696 (exit $ac_status); } && { 14697 test -z "$ac_c_werror_flag" || 14698 test ! -s conftest.err 14699 } && test -s conftest$ac_exeext && 14700 $as_test_x conftest$ac_exeext; then 14701 ac_cv_lib_dl_dlopen=yes 14702else 14703 echo "$as_me: failed program was:" >&5 14704sed 's/^/| /' conftest.$ac_ext >&5 14705 14706 ac_cv_lib_dl_dlopen=no 14707fi 14708 14709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14710 conftest$ac_exeext conftest.$ac_ext 14711LIBS=$ac_check_lib_save_LIBS 14712fi 14713{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 14714echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 14715if test $ac_cv_lib_dl_dlopen = yes; then 14716 DLOPEN_LIB=-ldl 14717cat >>confdefs.h <<\_ACEOF 14718#define HAVE_DLOPEN 1 14719_ACEOF 14720 14721fi 14722 14723 14724{ echo "$as_me:$LINENO: checking for optreset" >&5 14725echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } 14726if test "${ac_cv_have_optreset+set}" = set; then 14727 echo $ECHO_N "(cached) $ECHO_C" >&6 14728else 14729 cat >conftest.$ac_ext <<_ACEOF 14730/* confdefs.h. */ 14731_ACEOF 14732cat confdefs.h >>conftest.$ac_ext 14733cat >>conftest.$ac_ext <<_ACEOF 14734/* end confdefs.h. */ 14735#include <unistd.h> 14736 14737_ACEOF 14738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14739 $EGREP "optreset" >/dev/null 2>&1; then 14740 ac_cv_have_optreset=yes 14741else 14742 ac_cv_have_optreset=no 14743fi 14744rm -f conftest* 14745 14746fi 14747{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 14748echo "${ECHO_T}$ac_cv_have_optreset" >&6; } 14749if test $ac_cv_have_optreset = yes; then 14750 cat >>confdefs.h <<\_ACEOF 14751#define HAVE_OPTRESET 1 14752_ACEOF 14753 14754fi 14755{ echo "$as_me:$LINENO: checking for unified diff option" >&5 14756echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } 14757if diff -u $0 $0 >& /dev/null ; then 14758 UNI_DIFF_OPTS=-u 14759else 14760 UNI_DIFF_OPTS=-c 14761fi 14762{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 14763echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } 14764 14765case "$host_os" in 14766linux*) 14767 cat >>confdefs.h <<\_ACEOF 14768#define HAVE_EXT2_IOCTLS 1 14769_ACEOF 14770 14771 ;; 14772esac 14773LINUX_CMT="#" 14774CYGWIN_CMT="#" 14775UNIX_CMT= 14776case "$host_os" in 14777linux*) 14778 LINUX_CMT= 14779 ;; 14780cygwin) 14781 CYGWIN_CMT= 14782 UNIX_CMT="#" 14783 ;; 14784esac 14785 14786 14787 14788case "$host_os" in 14789linux* | gnu* | k*bsd*-gnu) 14790 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then 14791 root_prefix=""; 14792 echo "On $host_os systems, root_prefix defaults to ''" 14793 fi 14794 ;; 14795esac 14796case "$host_os" in 14797linux* | gnu* | k*bsd*-gnu) 14798 if test "$prefix" = NONE ; then 14799 prefix="/usr"; 14800 echo "On $host_os systems, prefix defaults to /usr" 14801 if test "$mandir" = '${prefix}/man' ; then 14802 echo "...and mandir defaults to /usr/share/man" 14803 mandir=/usr/share/man 14804 fi 14805 fi 14806;; 14807esac 14808if test "$root_prefix" = NONE ; then 14809 if test "$prefix" = NONE ; then 14810 root_prefix="$ac_default_prefix" 14811 else 14812 root_prefix="$prefix" 14813 fi 14814 root_bindir=$bindir 14815 root_sbindir=$sbindir 14816 root_libdir=$libdir 14817 root_sysconfdir=$sysconfdir 14818else 14819 root_bindir='${root_prefix}/bin' 14820 root_sbindir='${root_prefix}/sbin' 14821 root_libdir='${root_prefix}/lib' 14822 root_sysconfdir='${root_prefix}/etc' 14823fi 14824 14825 14826 14827 14828 14829{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 14830echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } 14831if test "${ac_cv_e2fsprogs_use_static+set}" = set; then 14832 echo $ECHO_N "(cached) $ECHO_C" >&6 14833else 14834 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" 14835cat >conftest.$ac_ext <<_ACEOF 14836/* confdefs.h. */ 14837_ACEOF 14838cat confdefs.h >>conftest.$ac_ext 14839cat >>conftest.$ac_ext <<_ACEOF 14840/* end confdefs.h. */ 14841#include <stdio.h> 14842int 14843main () 14844{ 14845fflush(stdout); 14846 ; 14847 return 0; 14848} 14849_ACEOF 14850rm -f conftest.$ac_objext conftest$ac_exeext 14851if { (ac_try="$ac_link" 14852case "(($ac_try" in 14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14854 *) ac_try_echo=$ac_try;; 14855esac 14856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14857 (eval "$ac_link") 2>conftest.er1 14858 ac_status=$? 14859 grep -v '^ *+' conftest.er1 >conftest.err 14860 rm -f conftest.er1 14861 cat conftest.err >&5 14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14863 (exit $ac_status); } && { 14864 test -z "$ac_c_werror_flag" || 14865 test ! -s conftest.err 14866 } && test -s conftest$ac_exeext && 14867 $as_test_x conftest$ac_exeext; then 14868 ac_cv_e2fsprogs_use_static=yes 14869else 14870 echo "$as_me: failed program was:" >&5 14871sed 's/^/| /' conftest.$ac_ext >&5 14872 14873 ac_cv_e2fsprogs_use_static=no 14874fi 14875 14876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14877 conftest$ac_exeext conftest.$ac_ext 14878LDFLAGS=$SAVE_LDFLAGS 14879fi 14880 14881case "$host_os" in 14882solaris2.*) 14883 ac_cv_e2fsprogs_use_static=no 14884;; 14885esac 14886{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 14887echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } 14888LDFLAG_STATIC= 14889if test $ac_cv_e2fsprogs_use_static = yes; then 14890 LDFLAG_STATIC=-static 14891fi 14892 14893case "$host_os" in 14894darwin*) 14895 echo "Using Apple Darwin / GNU libintl workaround" 14896 cat >>confdefs.h <<\_ACEOF 14897#define _INTL_REDIRECT_MACROS 1 14898_ACEOF 14899 14900 ;; 14901esac 14902SS_DIR=`cd ${srcdir}/lib/ss; pwd` 14903ET_DIR=`cd ${srcdir}/lib/et; pwd` 14904 14905 14906if test "$cross_compiling" = yes ; then 14907 DO_TEST_SUITE= 14908else 14909 DO_TEST_SUITE=check 14910fi 14911 14912INTL_FLAGS= 14913if test "$USE_INCLUDED_LIBINTL" = "yes" ; then 14914 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' 14915fi 14916 14917if test $cross_compiling = no; then 14918 BUILD_CFLAGS="$CFLAGS" 14919 BUILD_LDFLAGS="$LDFLAGS" 14920else 14921 BUILD_CFLAGS= 14922 BUILD_LDFLAGS= 14923fi 14924 14925 14926test -d lib || mkdir lib 14927test -d include || mkdir include 14928test -d include/linux || mkdir include/linux 14929test -d include/asm || mkdir include/asm 14930for i in MCONFIG Makefile e2fsprogs.spec \ 14931 util/Makefile util/subst.conf util/gen-tarball \ 14932 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ 14933 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ 14934 lib/uuid/Makefile lib/uuid/uuid_types.h \ 14935 lib/blkid/Makefile lib/blkid/blkid_types.h \ 14936 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ 14937 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ 14938 misc/Makefile ext2ed/Makefile e2fsck/Makefile \ 14939 debugfs/Makefile tests/Makefile tests/progs/Makefile \ 14940 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do 14941 if test -d `dirname ${srcdir}/$i` ; then 14942 outlist="$outlist $i" 14943 fi 14944done 14945ac_config_files="$ac_config_files $outlist" 14946 14947cat >confcache <<\_ACEOF 14948# This file is a shell script that caches the results of configure 14949# tests run on this system so they can be shared between configure 14950# scripts and configure runs, see configure's option --config-cache. 14951# It is not useful on other systems. If it contains results you don't 14952# want to keep, you may remove or edit it. 14953# 14954# config.status only pays attention to the cache file if you give it 14955# the --recheck option to rerun configure. 14956# 14957# `ac_cv_env_foo' variables (set or unset) will be overridden when 14958# loading this file, other *unset* `ac_cv_foo' will be assigned the 14959# following values. 14960 14961_ACEOF 14962 14963# The following way of writing the cache mishandles newlines in values, 14964# but we know of no workaround that is simple, portable, and efficient. 14965# So, we kill variables containing newlines. 14966# Ultrix sh set writes to stderr and can't be redirected directly, 14967# and sets the high bit in the cache file unless we assign to the vars. 14968( 14969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14970 eval ac_val=\$$ac_var 14971 case $ac_val in #( 14972 *${as_nl}*) 14973 case $ac_var in #( 14974 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 14975echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 14976 esac 14977 case $ac_var in #( 14978 _ | IFS | as_nl) ;; #( 14979 *) $as_unset $ac_var ;; 14980 esac ;; 14981 esac 14982 done 14983 14984 (set) 2>&1 | 14985 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14986 *${as_nl}ac_space=\ *) 14987 # `set' does not quote correctly, so add quotes (double-quote 14988 # substitution turns \\\\ into \\, and sed turns \\ into \). 14989 sed -n \ 14990 "s/'/'\\\\''/g; 14991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14992 ;; #( 14993 *) 14994 # `set' quotes correctly as required by POSIX, so do not add quotes. 14995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14996 ;; 14997 esac | 14998 sort 14999) | 15000 sed ' 15001 /^ac_cv_env_/b end 15002 t clear 15003 :clear 15004 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15005 t end 15006 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15007 :end' >>confcache 15008if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15009 if test -w "$cache_file"; then 15010 test "x$cache_file" != "x/dev/null" && 15011 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 15012echo "$as_me: updating cache $cache_file" >&6;} 15013 cat confcache >$cache_file 15014 else 15015 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 15016echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15017 fi 15018fi 15019rm -f confcache 15020 15021test "x$prefix" = xNONE && prefix=$ac_default_prefix 15022# Let make expand exec_prefix. 15023test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15024 15025# Transform confdefs.h into DEFS. 15026# Protect against shell expansion while executing Makefile rules. 15027# Protect against Makefile macro expansion. 15028# 15029# If the first sed substitution is executed (which looks for macros that 15030# take arguments), then branch to the quote section. Otherwise, 15031# look for a macro that doesn't take arguments. 15032ac_script=' 15033t clear 15034:clear 15035s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 15036t quote 15037s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 15038t quote 15039b any 15040:quote 15041s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 15042s/\[/\\&/g 15043s/\]/\\&/g 15044s/\$/$$/g 15045H 15046:any 15047${ 15048 g 15049 s/^\n// 15050 s/\n/ /g 15051 p 15052} 15053' 15054DEFS=`sed -n "$ac_script" confdefs.h` 15055 15056 15057ac_libobjs= 15058ac_ltlibobjs= 15059for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15060 # 1. Remove the extension, and $U if already installed. 15061 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15062 ac_i=`echo "$ac_i" | sed "$ac_script"` 15063 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15064 # will be set to the directory where LIBOBJS objects are built. 15065 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15066 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 15067done 15068LIBOBJS=$ac_libobjs 15069 15070LTLIBOBJS=$ac_ltlibobjs 15071 15072 15073 15074: ${CONFIG_STATUS=./config.status} 15075ac_clean_files_save=$ac_clean_files 15076ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15077{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 15078echo "$as_me: creating $CONFIG_STATUS" >&6;} 15079cat >$CONFIG_STATUS <<_ACEOF 15080#! $SHELL 15081# Generated by $as_me. 15082# Run this file to recreate the current configuration. 15083# Compiler output produced by configure, useful for debugging 15084# configure, is in config.log if it exists. 15085 15086debug=false 15087ac_cs_recheck=false 15088ac_cs_silent=false 15089SHELL=\${CONFIG_SHELL-$SHELL} 15090_ACEOF 15091 15092cat >>$CONFIG_STATUS <<\_ACEOF 15093## --------------------- ## 15094## M4sh Initialization. ## 15095## --------------------- ## 15096 15097# Be more Bourne compatible 15098DUALCASE=1; export DUALCASE # for MKS sh 15099if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15100 emulate sh 15101 NULLCMD=: 15102 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 15103 # is contrary to our usage. Disable this feature. 15104 alias -g '${1+"$@"}'='"$@"' 15105 setopt NO_GLOB_SUBST 15106else 15107 case `(set -o) 2>/dev/null` in 15108 *posix*) set -o posix ;; 15109esac 15110 15111fi 15112 15113 15114 15115 15116# PATH needs CR 15117# Avoid depending upon Character Ranges. 15118as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15119as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15120as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15121as_cr_digits='0123456789' 15122as_cr_alnum=$as_cr_Letters$as_cr_digits 15123 15124# The user is always right. 15125if test "${PATH_SEPARATOR+set}" != set; then 15126 echo "#! /bin/sh" >conf$$.sh 15127 echo "exit 0" >>conf$$.sh 15128 chmod +x conf$$.sh 15129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15130 PATH_SEPARATOR=';' 15131 else 15132 PATH_SEPARATOR=: 15133 fi 15134 rm -f conf$$.sh 15135fi 15136 15137# Support unset when possible. 15138if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 15139 as_unset=unset 15140else 15141 as_unset=false 15142fi 15143 15144 15145# IFS 15146# We need space, tab and new line, in precisely that order. Quoting is 15147# there to prevent editors from complaining about space-tab. 15148# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15149# splitting by setting IFS to empty value.) 15150as_nl=' 15151' 15152IFS=" "" $as_nl" 15153 15154# Find who we are. Look in the path if we contain no directory separator. 15155case $0 in 15156 *[\\/]* ) as_myself=$0 ;; 15157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15158for as_dir in $PATH 15159do 15160 IFS=$as_save_IFS 15161 test -z "$as_dir" && as_dir=. 15162 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15163done 15164IFS=$as_save_IFS 15165 15166 ;; 15167esac 15168# We did not find ourselves, most probably we were run as `sh COMMAND' 15169# in which case we are not to be found in the path. 15170if test "x$as_myself" = x; then 15171 as_myself=$0 15172fi 15173if test ! -f "$as_myself"; then 15174 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15175 { (exit 1); exit 1; } 15176fi 15177 15178# Work around bugs in pre-3.0 UWIN ksh. 15179for as_var in ENV MAIL MAILPATH 15180do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 15181done 15182PS1='$ ' 15183PS2='> ' 15184PS4='+ ' 15185 15186# NLS nuisances. 15187for as_var in \ 15188 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 15189 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 15190 LC_TELEPHONE LC_TIME 15191do 15192 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 15193 eval $as_var=C; export $as_var 15194 else 15195 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 15196 fi 15197done 15198 15199# Required to use basename. 15200if expr a : '\(a\)' >/dev/null 2>&1 && 15201 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15202 as_expr=expr 15203else 15204 as_expr=false 15205fi 15206 15207if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15208 as_basename=basename 15209else 15210 as_basename=false 15211fi 15212 15213 15214# Name of the executable. 15215as_me=`$as_basename -- "$0" || 15216$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15217 X"$0" : 'X\(//\)$' \| \ 15218 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15219echo X/"$0" | 15220 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15221 s//\1/ 15222 q 15223 } 15224 /^X\/\(\/\/\)$/{ 15225 s//\1/ 15226 q 15227 } 15228 /^X\/\(\/\).*/{ 15229 s//\1/ 15230 q 15231 } 15232 s/.*/./; q'` 15233 15234# CDPATH. 15235$as_unset CDPATH 15236 15237 15238 15239 as_lineno_1=$LINENO 15240 as_lineno_2=$LINENO 15241 test "x$as_lineno_1" != "x$as_lineno_2" && 15242 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 15243 15244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 15245 # uniformly replaced by the line number. The first 'sed' inserts a 15246 # line-number line after each line using $LINENO; the second 'sed' 15247 # does the real work. The second script uses 'N' to pair each 15248 # line-number line with the line containing $LINENO, and appends 15249 # trailing '-' during substitution so that $LINENO is not a special 15250 # case at line end. 15251 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 15252 # scripts with optimization help from Paolo Bonzini. Blame Lee 15253 # E. McMahon (1931-1989) for sed's syntax. :-) 15254 sed -n ' 15255 p 15256 /[$]LINENO/= 15257 ' <$as_myself | 15258 sed ' 15259 s/[$]LINENO.*/&-/ 15260 t lineno 15261 b 15262 :lineno 15263 N 15264 :loop 15265 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 15266 t loop 15267 s/-\n.*// 15268 ' >$as_me.lineno && 15269 chmod +x "$as_me.lineno" || 15270 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 15271 { (exit 1); exit 1; }; } 15272 15273 # Don't try to exec as it changes $[0], causing all sort of problems 15274 # (the dirname of $[0] is not the place where we might find the 15275 # original and so on. Autoconf is especially sensitive to this). 15276 . "./$as_me.lineno" 15277 # Exit status is that of the last command. 15278 exit 15279} 15280 15281 15282if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15283 as_dirname=dirname 15284else 15285 as_dirname=false 15286fi 15287 15288ECHO_C= ECHO_N= ECHO_T= 15289case `echo -n x` in 15290-n*) 15291 case `echo 'x\c'` in 15292 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15293 *) ECHO_C='\c';; 15294 esac;; 15295*) 15296 ECHO_N='-n';; 15297esac 15298 15299if expr a : '\(a\)' >/dev/null 2>&1 && 15300 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15301 as_expr=expr 15302else 15303 as_expr=false 15304fi 15305 15306rm -f conf$$ conf$$.exe conf$$.file 15307if test -d conf$$.dir; then 15308 rm -f conf$$.dir/conf$$.file 15309else 15310 rm -f conf$$.dir 15311 mkdir conf$$.dir 15312fi 15313echo >conf$$.file 15314if ln -s conf$$.file conf$$ 2>/dev/null; then 15315 as_ln_s='ln -s' 15316 # ... but there are two gotchas: 15317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15319 # In both cases, we have to default to `cp -p'. 15320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15321 as_ln_s='cp -p' 15322elif ln conf$$.file conf$$ 2>/dev/null; then 15323 as_ln_s=ln 15324else 15325 as_ln_s='cp -p' 15326fi 15327rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15328rmdir conf$$.dir 2>/dev/null 15329 15330if mkdir -p . 2>/dev/null; then 15331 as_mkdir_p=: 15332else 15333 test -d ./-p && rmdir ./-p 15334 as_mkdir_p=false 15335fi 15336 15337if test -x / >/dev/null 2>&1; then 15338 as_test_x='test -x' 15339else 15340 if ls -dL / >/dev/null 2>&1; then 15341 as_ls_L_option=L 15342 else 15343 as_ls_L_option= 15344 fi 15345 as_test_x=' 15346 eval sh -c '\'' 15347 if test -d "$1"; then 15348 test -d "$1/."; 15349 else 15350 case $1 in 15351 -*)set "./$1";; 15352 esac; 15353 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 15354 ???[sx]*):;;*)false;;esac;fi 15355 '\'' sh 15356 ' 15357fi 15358as_executable_p=$as_test_x 15359 15360# Sed expression to map a string onto a valid CPP name. 15361as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15362 15363# Sed expression to map a string onto a valid variable name. 15364as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15365 15366 15367exec 6>&1 15368 15369# Save the log message, to keep $[0] and so on meaningful, and to 15370# report actual input values of CONFIG_FILES etc. instead of their 15371# values after options handling. 15372ac_log=" 15373This file was extended by $as_me, which was 15374generated by GNU Autoconf 2.61. Invocation command line was 15375 15376 CONFIG_FILES = $CONFIG_FILES 15377 CONFIG_HEADERS = $CONFIG_HEADERS 15378 CONFIG_LINKS = $CONFIG_LINKS 15379 CONFIG_COMMANDS = $CONFIG_COMMANDS 15380 $ $0 $@ 15381 15382on `(hostname || uname -n) 2>/dev/null | sed 1q` 15383" 15384 15385_ACEOF 15386 15387cat >>$CONFIG_STATUS <<_ACEOF 15388# Files that config.status was made for. 15389config_files="$ac_config_files" 15390config_commands="$ac_config_commands" 15391 15392_ACEOF 15393 15394cat >>$CONFIG_STATUS <<\_ACEOF 15395ac_cs_usage="\ 15396\`$as_me' instantiates files from templates according to the 15397current configuration. 15398 15399Usage: $0 [OPTIONS] [FILE]... 15400 15401 -h, --help print this help, then exit 15402 -V, --version print version number and configuration settings, then exit 15403 -q, --quiet do not print progress messages 15404 -d, --debug don't remove temporary files 15405 --recheck update $as_me by reconfiguring in the same conditions 15406 --file=FILE[:TEMPLATE] 15407 instantiate the configuration file FILE 15408 15409Configuration files: 15410$config_files 15411 15412Configuration commands: 15413$config_commands 15414 15415Report bugs to <bug-autoconf@gnu.org>." 15416 15417_ACEOF 15418cat >>$CONFIG_STATUS <<_ACEOF 15419ac_cs_version="\\ 15420config.status 15421configured by $0, generated by GNU Autoconf 2.61, 15422 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15423 15424Copyright (C) 2006 Free Software Foundation, Inc. 15425This config.status script is free software; the Free Software Foundation 15426gives unlimited permission to copy, distribute and modify it." 15427 15428ac_pwd='$ac_pwd' 15429srcdir='$srcdir' 15430INSTALL='$INSTALL' 15431_ACEOF 15432 15433cat >>$CONFIG_STATUS <<\_ACEOF 15434# If no file are specified by the user, then we need to provide default 15435# value. By we need to know if files were specified by the user. 15436ac_need_defaults=: 15437while test $# != 0 15438do 15439 case $1 in 15440 --*=*) 15441 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15442 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15443 ac_shift=: 15444 ;; 15445 *) 15446 ac_option=$1 15447 ac_optarg=$2 15448 ac_shift=shift 15449 ;; 15450 esac 15451 15452 case $ac_option in 15453 # Handling of the options. 15454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15455 ac_cs_recheck=: ;; 15456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15457 echo "$ac_cs_version"; exit ;; 15458 --debug | --debu | --deb | --de | --d | -d ) 15459 debug=: ;; 15460 --file | --fil | --fi | --f ) 15461 $ac_shift 15462 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 15463 ac_need_defaults=false;; 15464 --he | --h | --help | --hel | -h ) 15465 echo "$ac_cs_usage"; exit ;; 15466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15467 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15468 ac_cs_silent=: ;; 15469 15470 # This is an error. 15471 -*) { echo "$as_me: error: unrecognized option: $1 15472Try \`$0 --help' for more information." >&2 15473 { (exit 1); exit 1; }; } ;; 15474 15475 *) ac_config_targets="$ac_config_targets $1" 15476 ac_need_defaults=false ;; 15477 15478 esac 15479 shift 15480done 15481 15482ac_configure_extra_args= 15483 15484if $ac_cs_silent; then 15485 exec 6>/dev/null 15486 ac_configure_extra_args="$ac_configure_extra_args --silent" 15487fi 15488 15489_ACEOF 15490cat >>$CONFIG_STATUS <<_ACEOF 15491if \$ac_cs_recheck; then 15492 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 15493 CONFIG_SHELL=$SHELL 15494 export CONFIG_SHELL 15495 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15496fi 15497 15498_ACEOF 15499cat >>$CONFIG_STATUS <<\_ACEOF 15500exec 5>>config.log 15501{ 15502 echo 15503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15504## Running $as_me. ## 15505_ASBOX 15506 echo "$ac_log" 15507} >&5 15508 15509_ACEOF 15510cat >>$CONFIG_STATUS <<_ACEOF 15511# 15512# INIT-COMMANDS 15513# 15514# Capture the value of obsolete ALL_LINGUAS because we need it to compute 15515 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 15516 # from automake. 15517 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 15518 # Capture the value of LINGUAS because we need it to compute CATALOGS. 15519 LINGUAS="${LINGUAS-%UNSET%}" 15520 15521 15522_ACEOF 15523 15524cat >>$CONFIG_STATUS <<\_ACEOF 15525 15526# Handling of arguments. 15527for ac_config_target in $ac_config_targets 15528do 15529 case $ac_config_target in 15530 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 15531 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; 15532 15533 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 15534echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 15535 { (exit 1); exit 1; }; };; 15536 esac 15537done 15538 15539 15540# If the user did not use the arguments to specify the items to instantiate, 15541# then the envvar interface is used. Set only those that are not. 15542# We use the long form for the default assignment because of an extremely 15543# bizarre bug on SunOS 4.1.3. 15544if $ac_need_defaults; then 15545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15547fi 15548 15549# Have a temporary directory for convenience. Make it in the build tree 15550# simply because there is no reason against having it here, and in addition, 15551# creating and moving files from /tmp can sometimes cause problems. 15552# Hook for its removal unless debugging. 15553# Note that there is a small window in which the directory will not be cleaned: 15554# after its creation but before its name has been assigned to `$tmp'. 15555$debug || 15556{ 15557 tmp= 15558 trap 'exit_status=$? 15559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15560' 0 15561 trap '{ (exit 1); exit 1; }' 1 2 13 15 15562} 15563# Create a (secure) tmp directory for tmp files. 15564 15565{ 15566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15567 test -n "$tmp" && test -d "$tmp" 15568} || 15569{ 15570 tmp=./conf$$-$RANDOM 15571 (umask 077 && mkdir "$tmp") 15572} || 15573{ 15574 echo "$me: cannot create a temporary directory in ." >&2 15575 { (exit 1); exit 1; } 15576} 15577 15578# 15579# Set up the sed scripts for CONFIG_FILES section. 15580# 15581 15582# No need to generate the scripts if there are no CONFIG_FILES. 15583# This happens for instance when ./config.status config.h 15584if test -n "$CONFIG_FILES"; then 15585 15586_ACEOF 15587 15588# Create sed commands to just substitute file output variables. 15589 15590# Remaining file output variables are in a fragment that also has non-file 15591# output varibles. 15592 15593 15594 15595ac_delim='%!_!# ' 15596for ac_last_try in false false false false false :; do 15597 cat >conf$$subs.sed <<_ACEOF 15598SHELL!$SHELL$ac_delim 15599PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 15600PACKAGE_NAME!$PACKAGE_NAME$ac_delim 15601PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 15602PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 15603PACKAGE_STRING!$PACKAGE_STRING$ac_delim 15604PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 15605exec_prefix!$exec_prefix$ac_delim 15606prefix!$prefix$ac_delim 15607program_transform_name!$program_transform_name$ac_delim 15608bindir!$bindir$ac_delim 15609sbindir!$sbindir$ac_delim 15610libexecdir!$libexecdir$ac_delim 15611datarootdir!$datarootdir$ac_delim 15612datadir!$datadir$ac_delim 15613sysconfdir!$sysconfdir$ac_delim 15614sharedstatedir!$sharedstatedir$ac_delim 15615localstatedir!$localstatedir$ac_delim 15616includedir!$includedir$ac_delim 15617oldincludedir!$oldincludedir$ac_delim 15618docdir!$docdir$ac_delim 15619infodir!$infodir$ac_delim 15620htmldir!$htmldir$ac_delim 15621dvidir!$dvidir$ac_delim 15622pdfdir!$pdfdir$ac_delim 15623psdir!$psdir$ac_delim 15624libdir!$libdir$ac_delim 15625localedir!$localedir$ac_delim 15626mandir!$mandir$ac_delim 15627DEFS!$DEFS$ac_delim 15628ECHO_C!$ECHO_C$ac_delim 15629ECHO_N!$ECHO_N$ac_delim 15630ECHO_T!$ECHO_T$ac_delim 15631LIBS!$LIBS$ac_delim 15632build_alias!$build_alias$ac_delim 15633host_alias!$host_alias$ac_delim 15634target_alias!$target_alias$ac_delim 15635E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim 15636E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim 15637E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim 15638E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim 15639E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim 15640build!$build$ac_delim 15641build_cpu!$build_cpu$ac_delim 15642build_vendor!$build_vendor$ac_delim 15643build_os!$build_os$ac_delim 15644host!$host$ac_delim 15645host_cpu!$host_cpu$ac_delim 15646host_vendor!$host_vendor$ac_delim 15647host_os!$host_os$ac_delim 15648CC!$CC$ac_delim 15649CFLAGS!$CFLAGS$ac_delim 15650LDFLAGS!$LDFLAGS$ac_delim 15651CPPFLAGS!$CPPFLAGS$ac_delim 15652ac_ct_CC!$ac_ct_CC$ac_delim 15653EXEEXT!$EXEEXT$ac_delim 15654OBJEXT!$OBJEXT$ac_delim 15655CPP!$CPP$ac_delim 15656LD!$LD$ac_delim 15657GREP!$GREP$ac_delim 15658EGREP!$EGREP$ac_delim 15659LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim 15660MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim 15661HTREE_CMT!$HTREE_CMT$ac_delim 15662ELF_CMT!$ELF_CMT$ac_delim 15663BSDLIB_CMT!$BSDLIB_CMT$ac_delim 15664PROFILE_CMT!$PROFILE_CMT$ac_delim 15665CHECKER_CMT!$CHECKER_CMT$ac_delim 15666LIB_EXT!$LIB_EXT$ac_delim 15667STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim 15668PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim 15669DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim 15670IMAGER_CMT!$IMAGER_CMT$ac_delim 15671RESIZER_CMT!$RESIZER_CMT$ac_delim 15672E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim 15673FSCK_PROG!$FSCK_PROG$ac_delim 15674_ACEOF 15675 15676 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then 15677 break 15678 elif $ac_last_try; then 15679 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15680echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15681 { (exit 1); exit 1; }; } 15682 else 15683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15684 fi 15685done 15686 15687ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 15688if test -n "$ac_eof"; then 15689 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 15690 ac_eof=`expr $ac_eof + 1` 15691fi 15692 15693cat >>$CONFIG_STATUS <<_ACEOF 15694cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 15695/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15696/^[ ]*@MCONFIG@[ ]*$/{ 15697r $MCONFIG 15698d 15699} 15700/^[ ]*@MAKEFILE_ELF@[ ]*$/{ 15701r $MAKEFILE_ELF 15702d 15703} 15704/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ 15705r $MAKEFILE_BSDLIB 15706d 15707} 15708/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ 15709r $MAKEFILE_PROFILE 15710d 15711} 15712/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ 15713r $MAKEFILE_CHECKER 15714d 15715} 15716/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ 15717r $MAKEFILE_LIBRARY 15718d 15719} 15720/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ 15721r $ASM_TYPES_HEADER 15722d 15723} 15724_ACEOF 15725sed ' 15726s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 15727s/^/s,@/; s/!/@,|#_!!_#|/ 15728:n 15729t n 15730s/'"$ac_delim"'$/,g/; t 15731s/$/\\/; p 15732N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 15733' >>$CONFIG_STATUS <conf$$subs.sed 15734rm -f conf$$subs.sed 15735cat >>$CONFIG_STATUS <<_ACEOF 15736CEOF$ac_eof 15737_ACEOF 15738 15739 15740ac_delim='%!_!# ' 15741for ac_last_try in false false false false false :; do 15742 cat >conf$$subs.sed <<_ACEOF 15743FSCK_MAN!$FSCK_MAN$ac_delim 15744E2INITRD_PROG!$E2INITRD_PROG$ac_delim 15745E2INITRD_MAN!$E2INITRD_MAN$ac_delim 15746DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim 15747DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim 15748DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim 15749STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim 15750GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim 15751PACKAGE!$PACKAGE$ac_delim 15752VERSION!$VERSION$ac_delim 15753SET_MAKE!$SET_MAKE$ac_delim 15754INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 15755INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 15756INSTALL_DATA!$INSTALL_DATA$ac_delim 15757MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim 15758USE_NLS!$USE_NLS$ac_delim 15759MSGFMT!$MSGFMT$ac_delim 15760GMSGFMT!$GMSGFMT$ac_delim 15761XGETTEXT!$XGETTEXT$ac_delim 15762MSGMERGE!$MSGMERGE$ac_delim 15763RANLIB!$RANLIB$ac_delim 15764ALLOCA!$ALLOCA$ac_delim 15765GLIBC21!$GLIBC21$ac_delim 15766HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim 15767HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim 15768HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim 15769HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim 15770LIBICONV!$LIBICONV$ac_delim 15771LTLIBICONV!$LTLIBICONV$ac_delim 15772INTLBISON!$INTLBISON$ac_delim 15773BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim 15774USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim 15775CATOBJEXT!$CATOBJEXT$ac_delim 15776DATADIRNAME!$DATADIRNAME$ac_delim 15777INSTOBJEXT!$INSTOBJEXT$ac_delim 15778GENCAT!$GENCAT$ac_delim 15779INTLOBJS!$INTLOBJS$ac_delim 15780INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim 15781INTLLIBS!$INTLLIBS$ac_delim 15782LIBINTL!$LIBINTL$ac_delim 15783LTLIBINTL!$LTLIBINTL$ac_delim 15784POSUB!$POSUB$ac_delim 15785BINARY_TYPE!$BINARY_TYPE$ac_delim 15786LN!$LN$ac_delim 15787LN_S!$LN_S$ac_delim 15788MV!$MV$ac_delim 15789CP!$CP$ac_delim 15790RM!$RM$ac_delim 15791CHMOD!$CHMOD$ac_delim 15792AWK!$AWK$ac_delim 15793SED!$SED$ac_delim 15794PERL!$PERL$ac_delim 15795LDCONFIG!$LDCONFIG$ac_delim 15796AR!$AR$ac_delim 15797STRIP!$STRIP$ac_delim 15798BUILD_CC!$BUILD_CC$ac_delim 15799SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim 15800SIZEOF_INT!$SIZEOF_INT$ac_delim 15801SIZEOF_LONG!$SIZEOF_LONG$ac_delim 15802SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim 15803SOCKET_LIB!$SOCKET_LIB$ac_delim 15804DLOPEN_LIB!$DLOPEN_LIB$ac_delim 15805UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim 15806LINUX_CMT!$LINUX_CMT$ac_delim 15807CYGWIN_CMT!$CYGWIN_CMT$ac_delim 15808UNIX_CMT!$UNIX_CMT$ac_delim 15809root_prefix!$root_prefix$ac_delim 15810root_bindir!$root_bindir$ac_delim 15811root_sbindir!$root_sbindir$ac_delim 15812root_libdir!$root_libdir$ac_delim 15813root_sysconfdir!$root_sysconfdir$ac_delim 15814LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim 15815SS_DIR!$SS_DIR$ac_delim 15816ET_DIR!$ET_DIR$ac_delim 15817DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim 15818INTL_FLAGS!$INTL_FLAGS$ac_delim 15819BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim 15820BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim 15821LIBOBJS!$LIBOBJS$ac_delim 15822LTLIBOBJS!$LTLIBOBJS$ac_delim 15823_ACEOF 15824 15825 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then 15826 break 15827 elif $ac_last_try; then 15828 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 15829echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 15830 { (exit 1); exit 1; }; } 15831 else 15832 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15833 fi 15834done 15835 15836ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 15837if test -n "$ac_eof"; then 15838 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 15839 ac_eof=`expr $ac_eof + 1` 15840fi 15841 15842cat >>$CONFIG_STATUS <<_ACEOF 15843cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 15844/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 15845_ACEOF 15846sed ' 15847s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 15848s/^/s,@/; s/!/@,|#_!!_#|/ 15849:n 15850t n 15851s/'"$ac_delim"'$/,g/; t 15852s/$/\\/; p 15853N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 15854' >>$CONFIG_STATUS <conf$$subs.sed 15855rm -f conf$$subs.sed 15856cat >>$CONFIG_STATUS <<_ACEOF 15857:end 15858s/|#_!!_#|//g 15859CEOF$ac_eof 15860_ACEOF 15861 15862 15863# VPATH may cause trouble with some makes, so we remove $(srcdir), 15864# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15865# trailing colons and then remove the whole line if VPATH becomes empty 15866# (actually we leave an empty line to preserve line numbers). 15867if test "x$srcdir" = x.; then 15868 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15869s/:*\$(srcdir):*/:/ 15870s/:*\${srcdir}:*/:/ 15871s/:*@srcdir@:*/:/ 15872s/^\([^=]*=[ ]*\):*/\1/ 15873s/:*$// 15874s/^[^=]*=[ ]*$// 15875}' 15876fi 15877 15878cat >>$CONFIG_STATUS <<\_ACEOF 15879fi # test -n "$CONFIG_FILES" 15880 15881 15882for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 15883do 15884 case $ac_tag in 15885 :[FHLC]) ac_mode=$ac_tag; continue;; 15886 esac 15887 case $ac_mode$ac_tag in 15888 :[FHL]*:*);; 15889 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 15890echo "$as_me: error: Invalid tag $ac_tag." >&2;} 15891 { (exit 1); exit 1; }; };; 15892 :[FH]-) ac_tag=-:-;; 15893 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15894 esac 15895 ac_save_IFS=$IFS 15896 IFS=: 15897 set x $ac_tag 15898 IFS=$ac_save_IFS 15899 shift 15900 ac_file=$1 15901 shift 15902 15903 case $ac_mode in 15904 :L) ac_source=$1;; 15905 :[FH]) 15906 ac_file_inputs= 15907 for ac_f 15908 do 15909 case $ac_f in 15910 -) ac_f="$tmp/stdin";; 15911 *) # Look for the file first in the build tree, then in the source tree 15912 # (if the path is not absolute). The absolute path cannot be DOS-style, 15913 # because $ac_f cannot contain `:'. 15914 test -f "$ac_f" || 15915 case $ac_f in 15916 [\\/$]*) false;; 15917 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15918 esac || 15919 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 15920echo "$as_me: error: cannot find input file: $ac_f" >&2;} 15921 { (exit 1); exit 1; }; };; 15922 esac 15923 ac_file_inputs="$ac_file_inputs $ac_f" 15924 done 15925 15926 # Let's still pretend it is `configure' which instantiates (i.e., don't 15927 # use $as_me), people would be surprised to read: 15928 # /* config.h. Generated by config.status. */ 15929 configure_input="Generated from "`IFS=: 15930 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 15931 if test x"$ac_file" != x-; then 15932 configure_input="$ac_file. $configure_input" 15933 { echo "$as_me:$LINENO: creating $ac_file" >&5 15934echo "$as_me: creating $ac_file" >&6;} 15935 fi 15936 15937 case $ac_tag in 15938 *:-:* | *:-) cat >"$tmp/stdin";; 15939 esac 15940 ;; 15941 esac 15942 15943 ac_dir=`$as_dirname -- "$ac_file" || 15944$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15945 X"$ac_file" : 'X\(//\)[^/]' \| \ 15946 X"$ac_file" : 'X\(//\)$' \| \ 15947 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15948echo X"$ac_file" | 15949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15950 s//\1/ 15951 q 15952 } 15953 /^X\(\/\/\)[^/].*/{ 15954 s//\1/ 15955 q 15956 } 15957 /^X\(\/\/\)$/{ 15958 s//\1/ 15959 q 15960 } 15961 /^X\(\/\).*/{ 15962 s//\1/ 15963 q 15964 } 15965 s/.*/./; q'` 15966 { as_dir="$ac_dir" 15967 case $as_dir in #( 15968 -*) as_dir=./$as_dir;; 15969 esac 15970 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 15971 as_dirs= 15972 while :; do 15973 case $as_dir in #( 15974 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 15975 *) as_qdir=$as_dir;; 15976 esac 15977 as_dirs="'$as_qdir' $as_dirs" 15978 as_dir=`$as_dirname -- "$as_dir" || 15979$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15980 X"$as_dir" : 'X\(//\)[^/]' \| \ 15981 X"$as_dir" : 'X\(//\)$' \| \ 15982 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15983echo X"$as_dir" | 15984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15985 s//\1/ 15986 q 15987 } 15988 /^X\(\/\/\)[^/].*/{ 15989 s//\1/ 15990 q 15991 } 15992 /^X\(\/\/\)$/{ 15993 s//\1/ 15994 q 15995 } 15996 /^X\(\/\).*/{ 15997 s//\1/ 15998 q 15999 } 16000 s/.*/./; q'` 16001 test -d "$as_dir" && break 16002 done 16003 test -z "$as_dirs" || eval "mkdir $as_dirs" 16004 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 16005echo "$as_me: error: cannot create directory $as_dir" >&2;} 16006 { (exit 1); exit 1; }; }; } 16007 ac_builddir=. 16008 16009case "$ac_dir" in 16010.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16011*) 16012 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 16013 # A ".." for each directory in $ac_dir_suffix. 16014 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 16015 case $ac_top_builddir_sub in 16016 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16017 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16018 esac ;; 16019esac 16020ac_abs_top_builddir=$ac_pwd 16021ac_abs_builddir=$ac_pwd$ac_dir_suffix 16022# for backward compatibility: 16023ac_top_builddir=$ac_top_build_prefix 16024 16025case $srcdir in 16026 .) # We are building in place. 16027 ac_srcdir=. 16028 ac_top_srcdir=$ac_top_builddir_sub 16029 ac_abs_top_srcdir=$ac_pwd ;; 16030 [\\/]* | ?:[\\/]* ) # Absolute name. 16031 ac_srcdir=$srcdir$ac_dir_suffix; 16032 ac_top_srcdir=$srcdir 16033 ac_abs_top_srcdir=$srcdir ;; 16034 *) # Relative name. 16035 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16036 ac_top_srcdir=$ac_top_build_prefix$srcdir 16037 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16038esac 16039ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16040 16041 16042 case $ac_mode in 16043 :F) 16044 # 16045 # CONFIG_FILE 16046 # 16047 16048 case $INSTALL in 16049 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16050 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16051 esac 16052_ACEOF 16053 16054cat >>$CONFIG_STATUS <<\_ACEOF 16055# If the template does not know about datarootdir, expand it. 16056# FIXME: This hack should be removed a few years after 2.60. 16057ac_datarootdir_hack=; ac_datarootdir_seen= 16058 16059case `sed -n '/datarootdir/ { 16060 p 16061 q 16062} 16063/@datadir@/p 16064/@docdir@/p 16065/@infodir@/p 16066/@localedir@/p 16067/@mandir@/p 16068' $ac_file_inputs` in 16069*datarootdir*) ac_datarootdir_seen=yes;; 16070*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16071 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16072echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16073_ACEOF 16074cat >>$CONFIG_STATUS <<_ACEOF 16075 ac_datarootdir_hack=' 16076 s&@datadir@&$datadir&g 16077 s&@docdir@&$docdir&g 16078 s&@infodir@&$infodir&g 16079 s&@localedir@&$localedir&g 16080 s&@mandir@&$mandir&g 16081 s&\\\${datarootdir}&$datarootdir&g' ;; 16082esac 16083_ACEOF 16084 16085# Neutralize VPATH when `$srcdir' = `.'. 16086# Shell code in configure.ac might set extrasub. 16087# FIXME: do we really want to maintain this feature? 16088cat >>$CONFIG_STATUS <<_ACEOF 16089 sed "$ac_vpsub 16090$extrasub 16091_ACEOF 16092cat >>$CONFIG_STATUS <<\_ACEOF 16093:t 16094/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16095s&@configure_input@&$configure_input&;t t 16096s&@top_builddir@&$ac_top_builddir_sub&;t t 16097s&@srcdir@&$ac_srcdir&;t t 16098s&@abs_srcdir@&$ac_abs_srcdir&;t t 16099s&@top_srcdir@&$ac_top_srcdir&;t t 16100s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16101s&@builddir@&$ac_builddir&;t t 16102s&@abs_builddir@&$ac_abs_builddir&;t t 16103s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16104s&@INSTALL@&$ac_INSTALL&;t t 16105$ac_datarootdir_hack 16106" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 16107 16108test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16109 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16110 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16111 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16112which seems to be undefined. Please make sure it is defined." >&5 16113echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16114which seems to be undefined. Please make sure it is defined." >&2;} 16115 16116 rm -f "$tmp/stdin" 16117 case $ac_file in 16118 -) cat "$tmp/out"; rm -f "$tmp/out";; 16119 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 16120 esac 16121 ;; 16122 16123 16124 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 16125echo "$as_me: executing $ac_file commands" >&6;} 16126 ;; 16127 esac 16128 16129 16130 case $ac_file$ac_mode in 16131 "default-1":C) 16132 for ac_file in $CONFIG_FILES; do 16133 # Support "outfile[:infile[:infile...]]" 16134 case "$ac_file" in 16135 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 16136 esac 16137 # PO directories have a Makefile.in generated from Makefile.in.in. 16138 case "$ac_file" in */Makefile.in) 16139 # Adjust a relative srcdir. 16140 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 16141 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 16142 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 16143 # In autoconf-2.13 it is called $ac_given_srcdir. 16144 # In autoconf-2.50 it is called $srcdir. 16145 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 16146 case "$ac_given_srcdir" in 16147 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 16148 /*) top_srcdir="$ac_given_srcdir" ;; 16149 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 16150 esac 16151 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 16152 rm -f "$ac_dir/POTFILES" 16153 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 16154 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 16155 POMAKEFILEDEPS="POTFILES.in" 16156 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 16157 # on $ac_dir but don't depend on user-specified configuration 16158 # parameters. 16159 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 16160 # The LINGUAS file contains the set of available languages. 16161 if test -n "$OBSOLETE_ALL_LINGUAS"; then 16162 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 16163 fi 16164 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 16165 # Hide the ALL_LINGUAS assigment from automake. 16166 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 16167 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 16168 else 16169 # The set of available languages was given in configure.in. 16170 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 16171 fi 16172 # Compute POFILES 16173 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 16174 # Compute UPDATEPOFILES 16175 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 16176 # Compute DUMMYPOFILES 16177 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 16178 # Compute GMOFILES 16179 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 16180 case "$ac_given_srcdir" in 16181 .) srcdirpre= ;; 16182 *) srcdirpre='$(srcdir)/' ;; 16183 esac 16184 POFILES= 16185 UPDATEPOFILES= 16186 DUMMYPOFILES= 16187 GMOFILES= 16188 for lang in $ALL_LINGUAS; do 16189 POFILES="$POFILES $srcdirpre$lang.po" 16190 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 16191 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 16192 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 16193 done 16194 # CATALOGS depends on both $ac_dir and the user's LINGUAS 16195 # environment variable. 16196 INST_LINGUAS= 16197 if test -n "$ALL_LINGUAS"; then 16198 for presentlang in $ALL_LINGUAS; do 16199 useit=no 16200 if test "%UNSET%" != "$LINGUAS"; then 16201 desiredlanguages="$LINGUAS" 16202 else 16203 desiredlanguages="$ALL_LINGUAS" 16204 fi 16205 for desiredlang in $desiredlanguages; do 16206 # Use the presentlang catalog if desiredlang is 16207 # a. equal to presentlang, or 16208 # b. a variant of presentlang (because in this case, 16209 # presentlang can be used as a fallback for messages 16210 # which are not translated in the desiredlang catalog). 16211 case "$desiredlang" in 16212 "$presentlang"*) useit=yes;; 16213 esac 16214 done 16215 if test $useit = yes; then 16216 INST_LINGUAS="$INST_LINGUAS $presentlang" 16217 fi 16218 done 16219 fi 16220 CATALOGS= 16221 if test -n "$INST_LINGUAS"; then 16222 for lang in $INST_LINGUAS; do 16223 CATALOGS="$CATALOGS $lang.gmo" 16224 done 16225 fi 16226 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 16227 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" 16228 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 16229 if test -f "$f"; then 16230 case "$f" in 16231 *.orig | *.bak | *~) ;; 16232 *) cat "$f" >> "$ac_dir/Makefile" ;; 16233 esac 16234 fi 16235 done 16236 fi 16237 ;; 16238 esac 16239 done ;; 16240 16241 esac 16242done # for ac_tag 16243 16244 16245{ (exit 0); exit 0; } 16246_ACEOF 16247chmod +x $CONFIG_STATUS 16248ac_clean_files=$ac_clean_files_save 16249 16250 16251# configure is writing to config.log, and then calls config.status. 16252# config.status does its own redirection, appending to config.log. 16253# Unfortunately, on DOS this fails, as config.log is still kept open 16254# by configure, so config.status won't be able to write to it; its 16255# output is simply discarded. So we exec the FD to /dev/null, 16256# effectively closing config.log, so it can be properly (re)opened and 16257# appended to by config.status. When coming back to configure, we 16258# need to make the FD available again. 16259if test "$no_create" != yes; then 16260 ac_cs_success=: 16261 ac_config_status_args= 16262 test "$silent" = yes && 16263 ac_config_status_args="$ac_config_status_args --quiet" 16264 exec 5>/dev/null 16265 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16266 exec 5>>config.log 16267 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16268 # would make configure fail if this is the last instruction. 16269 $ac_cs_success || { (exit 1); exit 1; } 16270fi 16271 16272if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi 16273 16274