1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for volleyball 0.8.6. 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 Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20 setopt NO_GLOB_SUBST 21else 22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 23fi 24BIN_SH=xpg4; export BIN_SH # for Tru64 25DUALCASE=1; export DUALCASE # for MKS sh 26 27 28# PATH needs CR 29# Avoid depending upon Character Ranges. 30as_cr_letters='abcdefghijklmnopqrstuvwxyz' 31as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 32as_cr_Letters=$as_cr_letters$as_cr_LETTERS 33as_cr_digits='0123456789' 34as_cr_alnum=$as_cr_Letters$as_cr_digits 35 36# The user is always right. 37if test "${PATH_SEPARATOR+set}" != set; then 38 echo "#! /bin/sh" >conf$$.sh 39 echo "exit 0" >>conf$$.sh 40 chmod +x conf$$.sh 41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 42 PATH_SEPARATOR=';' 43 else 44 PATH_SEPARATOR=: 45 fi 46 rm -f conf$$.sh 47fi 48 49# Support unset when possible. 50if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 51 as_unset=unset 52else 53 as_unset=false 54fi 55 56 57# IFS 58# We need space, tab and new line, in precisely that order. Quoting is 59# there to prevent editors from complaining about space-tab. 60# (If _AS_PATH_WALK were called with IFS unset, it would disable word 61# splitting by setting IFS to empty value.) 62as_nl=' 63' 64IFS=" "" $as_nl" 65 66# Find who we are. Look in the path if we contain no directory separator. 67case $0 in 68 *[\\/]* ) as_myself=$0 ;; 69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 70for as_dir in $PATH 71do 72 IFS=$as_save_IFS 73 test -z "$as_dir" && as_dir=. 74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 75done 76IFS=$as_save_IFS 77 78 ;; 79esac 80# We did not find ourselves, most probably we were run as `sh COMMAND' 81# in which case we are not to be found in the path. 82if test "x$as_myself" = x; then 83 as_myself=$0 84fi 85if test ! -f "$as_myself"; then 86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 87 { (exit 1); exit 1; } 88fi 89 90# Work around bugs in pre-3.0 UWIN ksh. 91for as_var in ENV MAIL MAILPATH 92do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 93done 94PS1='$ ' 95PS2='> ' 96PS4='+ ' 97 98# NLS nuisances. 99for as_var in \ 100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 102 LC_TELEPHONE LC_TIME 103do 104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 105 eval $as_var=C; export $as_var 106 else 107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 108 fi 109done 110 111# Required to use basename. 112if expr a : '\(a\)' >/dev/null 2>&1 && 113 test "X`expr 00001 : '.*\(...\)'`" = X001; then 114 as_expr=expr 115else 116 as_expr=false 117fi 118 119if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 120 as_basename=basename 121else 122 as_basename=false 123fi 124 125 126# Name of the executable. 127as_me=`$as_basename -- "$0" || 128$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 129 X"$0" : 'X\(//\)$' \| \ 130 X"$0" : 'X\(/\)' \| . 2>/dev/null || 131echo X/"$0" | 132 sed '/^.*\/\([^/][^/]*\)\/*$/{ 133 s//\1/ 134 q 135 } 136 /^X\/\(\/\/\)$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\).*/{ 141 s//\1/ 142 q 143 } 144 s/.*/./; q'` 145 146# CDPATH. 147$as_unset CDPATH 148 149 150if test "x$CONFIG_SHELL" = x; then 151 if (eval ":") 2>/dev/null; then 152 as_have_required=yes 153else 154 as_have_required=no 155fi 156 157 if test $as_have_required = yes && (eval ": 158(as_func_return () { 159 (exit \$1) 160} 161as_func_success () { 162 as_func_return 0 163} 164as_func_failure () { 165 as_func_return 1 166} 167as_func_ret_success () { 168 return 0 169} 170as_func_ret_failure () { 171 return 1 172} 173 174exitcode=0 175if as_func_success; then 176 : 177else 178 exitcode=1 179 echo as_func_success failed. 180fi 181 182if as_func_failure; then 183 exitcode=1 184 echo as_func_failure succeeded. 185fi 186 187if as_func_ret_success; then 188 : 189else 190 exitcode=1 191 echo as_func_ret_success failed. 192fi 193 194if as_func_ret_failure; then 195 exitcode=1 196 echo as_func_ret_failure succeeded. 197fi 198 199if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 200 : 201else 202 exitcode=1 203 echo positional parameters were not saved. 204fi 205 206test \$exitcode = 0) || { (exit 1); exit 1; } 207 208( 209 as_lineno_1=\$LINENO 210 as_lineno_2=\$LINENO 211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 213") 2> /dev/null; then 214 : 215else 216 as_candidate_shells= 217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 218for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 case $as_dir in 223 /*) 224 for as_base in sh bash ksh sh5; do 225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 226 done;; 227 esac 228done 229IFS=$as_save_IFS 230 231 232 for as_shell in $as_candidate_shells $SHELL; do 233 # Try only shells that exist, to save several forks. 234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 235 { ("$as_shell") 2> /dev/null <<\_ASEOF 236# Be Bourne compatible 237if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 238 emulate sh 239 NULLCMD=: 240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 241 # is contrary to our usage. Disable this feature. 242 alias -g '${1+"$@"}'='"$@"' 243 setopt NO_GLOB_SUBST 244else 245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 246fi 247BIN_SH=xpg4; export BIN_SH # for Tru64 248DUALCASE=1; export DUALCASE # for MKS sh 249 250: 251_ASEOF 252}; then 253 CONFIG_SHELL=$as_shell 254 as_have_required=yes 255 if { "$as_shell" 2> /dev/null <<\_ASEOF 256# Be Bourne compatible 257if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 258 emulate sh 259 NULLCMD=: 260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 261 # is contrary to our usage. Disable this feature. 262 alias -g '${1+"$@"}'='"$@"' 263 setopt NO_GLOB_SUBST 264else 265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 266fi 267BIN_SH=xpg4; export BIN_SH # for Tru64 268DUALCASE=1; export DUALCASE # for MKS sh 269 270: 271(as_func_return () { 272 (exit $1) 273} 274as_func_success () { 275 as_func_return 0 276} 277as_func_failure () { 278 as_func_return 1 279} 280as_func_ret_success () { 281 return 0 282} 283as_func_ret_failure () { 284 return 1 285} 286 287exitcode=0 288if as_func_success; then 289 : 290else 291 exitcode=1 292 echo as_func_success failed. 293fi 294 295if as_func_failure; then 296 exitcode=1 297 echo as_func_failure succeeded. 298fi 299 300if as_func_ret_success; then 301 : 302else 303 exitcode=1 304 echo as_func_ret_success failed. 305fi 306 307if as_func_ret_failure; then 308 exitcode=1 309 echo as_func_ret_failure succeeded. 310fi 311 312if ( set x; as_func_ret_success y && test x = "$1" ); then 313 : 314else 315 exitcode=1 316 echo positional parameters were not saved. 317fi 318 319test $exitcode = 0) || { (exit 1); exit 1; } 320 321( 322 as_lineno_1=$LINENO 323 as_lineno_2=$LINENO 324 test "x$as_lineno_1" != "x$as_lineno_2" && 325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 326 327_ASEOF 328}; then 329 break 330fi 331 332fi 333 334 done 335 336 if test "x$CONFIG_SHELL" != x; then 337 for as_var in BASH_ENV ENV 338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 339 done 340 export CONFIG_SHELL 341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 342fi 343 344 345 if test $as_have_required = no; then 346 echo This script requires a shell more modern than all the 347 echo shells that I found on your system. Please install a 348 echo modern shell, or manually run the script under such a 349 echo shell if you do have one. 350 { (exit 1); exit 1; } 351fi 352 353 354fi 355 356fi 357 358 359 360(eval "as_func_return () { 361 (exit \$1) 362} 363as_func_success () { 364 as_func_return 0 365} 366as_func_failure () { 367 as_func_return 1 368} 369as_func_ret_success () { 370 return 0 371} 372as_func_ret_failure () { 373 return 1 374} 375 376exitcode=0 377if as_func_success; then 378 : 379else 380 exitcode=1 381 echo as_func_success failed. 382fi 383 384if as_func_failure; then 385 exitcode=1 386 echo as_func_failure succeeded. 387fi 388 389if as_func_ret_success; then 390 : 391else 392 exitcode=1 393 echo as_func_ret_success failed. 394fi 395 396if as_func_ret_failure; then 397 exitcode=1 398 echo as_func_ret_failure succeeded. 399fi 400 401if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 402 : 403else 404 exitcode=1 405 echo positional parameters were not saved. 406fi 407 408test \$exitcode = 0") || { 409 echo No shell found that supports shell functions. 410 echo Please tell autoconf@gnu.org about your system, 411 echo including any error possibly output before this 412 echo message 413} 414 415 416 417 as_lineno_1=$LINENO 418 as_lineno_2=$LINENO 419 test "x$as_lineno_1" != "x$as_lineno_2" && 420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 421 422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 423 # uniformly replaced by the line number. The first 'sed' inserts a 424 # line-number line after each line using $LINENO; the second 'sed' 425 # does the real work. The second script uses 'N' to pair each 426 # line-number line with the line containing $LINENO, and appends 427 # trailing '-' during substitution so that $LINENO is not a special 428 # case at line end. 429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 430 # scripts with optimization help from Paolo Bonzini. Blame Lee 431 # E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 449 { (exit 1); exit 1; }; } 450 451 # Don't try to exec as it changes $[0], causing all sort of problems 452 # (the dirname of $[0] is not the place where we might find the 453 # original and so on. Autoconf is especially sensitive to this). 454 . "./$as_me.lineno" 455 # Exit status is that of the last command. 456 exit 457} 458 459 460if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 461 as_dirname=dirname 462else 463 as_dirname=false 464fi 465 466ECHO_C= ECHO_N= ECHO_T= 467case `echo -n x` in 468-n*) 469 case `echo 'x\c'` in 470 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 471 *) ECHO_C='\c';; 472 esac;; 473*) 474 ECHO_N='-n';; 475esac 476 477if expr a : '\(a\)' >/dev/null 2>&1 && 478 test "X`expr 00001 : '.*\(...\)'`" = X001; then 479 as_expr=expr 480else 481 as_expr=false 482fi 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 490fi 491echo >conf$$.file 492if ln -s conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s='ln -s' 494 # ... but there are two gotchas: 495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 497 # In both cases, we have to default to `cp -p'. 498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 499 as_ln_s='cp -p' 500elif ln conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s=ln 502else 503 as_ln_s='cp -p' 504fi 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 506rmdir conf$$.dir 2>/dev/null 507 508if mkdir -p . 2>/dev/null; then 509 as_mkdir_p=: 510else 511 test -d ./-p && rmdir ./-p 512 as_mkdir_p=false 513fi 514 515# Find out whether ``test -x'' works. Don't use a zero-byte file, as 516# systems may use methods other than mode bits to determine executability. 517cat >conf$$.file <<_ASEOF 518#! /bin/sh 519exit 0 520_ASEOF 521chmod +x conf$$.file 522if test -x conf$$.file >/dev/null 2>&1; then 523 as_executable_p="test -x" 524else 525 as_executable_p=: 526fi 527rm -f conf$$.file 528 529# Sed expression to map a string onto a valid CPP name. 530as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 531 532# Sed expression to map a string onto a valid variable name. 533as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 534 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555SHELL=${CONFIG_SHELL-/bin/sh} 556 557# Identity of this package. 558PACKAGE_NAME='volleyball' 559PACKAGE_TARNAME='volleyball' 560PACKAGE_VERSION='0.8.6' 561PACKAGE_STRING='volleyball 0.8.6' 562PACKAGE_BUGREPORT='' 563 564# Factoring default headers for most tests. 565ac_includes_default="\ 566#include <stdio.h> 567#if HAVE_SYS_TYPES_H 568# include <sys/types.h> 569#endif 570#if HAVE_SYS_STAT_H 571# include <sys/stat.h> 572#endif 573#if STDC_HEADERS 574# include <stdlib.h> 575# include <stddef.h> 576#else 577# if HAVE_STDLIB_H 578# include <stdlib.h> 579# endif 580#endif 581#if HAVE_STRING_H 582# if !STDC_HEADERS && HAVE_MEMORY_H 583# include <memory.h> 584# endif 585# include <string.h> 586#endif 587#if HAVE_STRINGS_H 588# include <strings.h> 589#endif 590#if HAVE_INTTYPES_H 591# include <inttypes.h> 592#endif 593#if HAVE_STDINT_H 594# include <stdint.h> 595#endif 596#if HAVE_UNISTD_H 597# include <unistd.h> 598#endif" 599 600ac_subst_vars='SHELL 601PATH_SEPARATOR 602PACKAGE_NAME 603PACKAGE_TARNAME 604PACKAGE_VERSION 605PACKAGE_STRING 606PACKAGE_BUGREPORT 607exec_prefix 608prefix 609program_transform_name 610bindir 611sbindir 612libexecdir 613datarootdir 614datadir 615sysconfdir 616sharedstatedir 617localstatedir 618includedir 619oldincludedir 620docdir 621infodir 622htmldir 623dvidir 624pdfdir 625psdir 626libdir 627localedir 628mandir 629DEFS 630ECHO_C 631ECHO_N 632ECHO_T 633LIBS 634build_alias 635host_alias 636target_alias 637build 638build_cpu 639build_vendor 640build_os 641host 642host_cpu 643host_vendor 644host_os 645target 646target_cpu 647target_vendor 648target_os 649INSTALL_PROGRAM 650INSTALL_SCRIPT 651INSTALL_DATA 652CYGPATH_W 653PACKAGE 654VERSION 655ACLOCAL 656AUTOCONF 657AUTOMAKE 658AUTOHEADER 659MAKEINFO 660install_sh 661STRIP 662INSTALL_STRIP_PROGRAM 663mkdir_p 664AWK 665SET_MAKE 666am__leading_dot 667AMTAR 668am__tar 669am__untar 670CC 671CFLAGS 672LDFLAGS 673CPPFLAGS 674ac_ct_CC 675EXEEXT 676OBJEXT 677DEPDIR 678am__include 679am__quote 680AMDEP_TRUE 681AMDEP_FALSE 682AMDEPBACKSLASH 683CCDEPMODE 684am__fastdepCC_TRUE 685am__fastdepCC_FALSE 686MKINSTALLDIRS 687USE_NLS 688MSGFMT 689GMSGFMT 690XGETTEXT 691MSGMERGE 692CPP 693GREP 694EGREP 695GLIBC2 696RANLIB 697ALLOCA 698GLIBC21 699INTL_MACOSX_LIBS 700HAVE_POSIX_PRINTF 701HAVE_ASPRINTF 702HAVE_SNPRINTF 703HAVE_WPRINTF 704LIBICONV 705LTLIBICONV 706INTLBISON 707BUILD_INCLUDED_LIBINTL 708USE_INCLUDED_LIBINTL 709CATOBJEXT 710DATADIRNAME 711INSTOBJEXT 712GENCAT 713INTLOBJS 714INTL_LIBTOOL_SUFFIX_PREFIX 715INTLLIBS 716LIBINTL 717LTLIBINTL 718POSUB 719SDL_CONFIG 720SDL_CFLAGS 721SDL_LIBS 722DEPS_CFLAGS 723DEPS_LIBS 724LIBOBJS 725LTLIBOBJS' 726ac_subst_files='' 727 ac_precious_vars='build_alias 728host_alias 729target_alias 730CC 731CFLAGS 732LDFLAGS 733CPPFLAGS 734CPP' 735 736 737# Initialize some variables set by options. 738ac_init_help= 739ac_init_version=false 740# The variables have the same names as the options, with 741# dashes changed to underlines. 742cache_file=/dev/null 743exec_prefix=NONE 744no_create= 745no_recursion= 746prefix=NONE 747program_prefix=NONE 748program_suffix=NONE 749program_transform_name=s,x,x, 750silent= 751site= 752srcdir= 753verbose= 754x_includes=NONE 755x_libraries=NONE 756 757# Installation directory options. 758# These are left unexpanded so users can "make install exec_prefix=/foo" 759# and all the variables that are supposed to be based on exec_prefix 760# by default will actually change. 761# Use braces instead of parens because sh, perl, etc. also accept them. 762# (The list follows the same order as the GNU Coding Standards.) 763bindir='${exec_prefix}/bin' 764sbindir='${exec_prefix}/sbin' 765libexecdir='${exec_prefix}/libexec' 766datarootdir='${prefix}/share' 767datadir='${datarootdir}' 768sysconfdir='${prefix}/etc' 769sharedstatedir='${prefix}/com' 770localstatedir='${prefix}/var' 771includedir='${prefix}/include' 772oldincludedir='/usr/include' 773docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 774infodir='${datarootdir}/info' 775htmldir='${docdir}' 776dvidir='${docdir}' 777pdfdir='${docdir}' 778psdir='${docdir}' 779libdir='${exec_prefix}/lib' 780localedir='${datarootdir}/locale' 781mandir='${datarootdir}/man' 782 783ac_prev= 784ac_dashdash= 785for ac_option 786do 787 # If the previous option needs an argument, assign it. 788 if test -n "$ac_prev"; then 789 eval $ac_prev=\$ac_option 790 ac_prev= 791 continue 792 fi 793 794 case $ac_option in 795 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 796 *) ac_optarg=yes ;; 797 esac 798 799 # Accept the important Cygnus configure options, so we can diagnose typos. 800 801 case $ac_dashdash$ac_option in 802 --) 803 ac_dashdash=yes ;; 804 805 -bindir | --bindir | --bindi | --bind | --bin | --bi) 806 ac_prev=bindir ;; 807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 808 bindir=$ac_optarg ;; 809 810 -build | --build | --buil | --bui | --bu) 811 ac_prev=build_alias ;; 812 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 813 build_alias=$ac_optarg ;; 814 815 -cache-file | --cache-file | --cache-fil | --cache-fi \ 816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 817 ac_prev=cache_file ;; 818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 820 cache_file=$ac_optarg ;; 821 822 --config-cache | -C) 823 cache_file=config.cache ;; 824 825 -datadir | --datadir | --datadi | --datad) 826 ac_prev=datadir ;; 827 -datadir=* | --datadir=* | --datadi=* | --datad=*) 828 datadir=$ac_optarg ;; 829 830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 831 | --dataroo | --dataro | --datar) 832 ac_prev=datarootdir ;; 833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 835 datarootdir=$ac_optarg ;; 836 837 -disable-* | --disable-*) 838 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 839 # Reject names that are not valid shell variable names. 840 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 842 { (exit 1); exit 1; }; } 843 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 844 eval enable_$ac_feature=no ;; 845 846 -docdir | --docdir | --docdi | --doc | --do) 847 ac_prev=docdir ;; 848 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 849 docdir=$ac_optarg ;; 850 851 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 852 ac_prev=dvidir ;; 853 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 854 dvidir=$ac_optarg ;; 855 856 -enable-* | --enable-*) 857 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 858 # Reject names that are not valid shell variable names. 859 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 861 { (exit 1); exit 1; }; } 862 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 863 eval enable_$ac_feature=\$ac_optarg ;; 864 865 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 866 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 867 | --exec | --exe | --ex) 868 ac_prev=exec_prefix ;; 869 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 870 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 871 | --exec=* | --exe=* | --ex=*) 872 exec_prefix=$ac_optarg ;; 873 874 -gas | --gas | --ga | --g) 875 # Obsolete; use --with-gas. 876 with_gas=yes ;; 877 878 -help | --help | --hel | --he | -h) 879 ac_init_help=long ;; 880 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 881 ac_init_help=recursive ;; 882 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 883 ac_init_help=short ;; 884 885 -host | --host | --hos | --ho) 886 ac_prev=host_alias ;; 887 -host=* | --host=* | --hos=* | --ho=*) 888 host_alias=$ac_optarg ;; 889 890 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 891 ac_prev=htmldir ;; 892 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 893 | --ht=*) 894 htmldir=$ac_optarg ;; 895 896 -includedir | --includedir | --includedi | --included | --include \ 897 | --includ | --inclu | --incl | --inc) 898 ac_prev=includedir ;; 899 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 900 | --includ=* | --inclu=* | --incl=* | --inc=*) 901 includedir=$ac_optarg ;; 902 903 -infodir | --infodir | --infodi | --infod | --info | --inf) 904 ac_prev=infodir ;; 905 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 906 infodir=$ac_optarg ;; 907 908 -libdir | --libdir | --libdi | --libd) 909 ac_prev=libdir ;; 910 -libdir=* | --libdir=* | --libdi=* | --libd=*) 911 libdir=$ac_optarg ;; 912 913 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 914 | --libexe | --libex | --libe) 915 ac_prev=libexecdir ;; 916 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 917 | --libexe=* | --libex=* | --libe=*) 918 libexecdir=$ac_optarg ;; 919 920 -localedir | --localedir | --localedi | --localed | --locale) 921 ac_prev=localedir ;; 922 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 923 localedir=$ac_optarg ;; 924 925 -localstatedir | --localstatedir | --localstatedi | --localstated \ 926 | --localstate | --localstat | --localsta | --localst | --locals) 927 ac_prev=localstatedir ;; 928 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 929 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 930 localstatedir=$ac_optarg ;; 931 932 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 933 ac_prev=mandir ;; 934 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 935 mandir=$ac_optarg ;; 936 937 -nfp | --nfp | --nf) 938 # Obsolete; use --without-fp. 939 with_fp=no ;; 940 941 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 942 | --no-cr | --no-c | -n) 943 no_create=yes ;; 944 945 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 946 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 947 no_recursion=yes ;; 948 949 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 950 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 951 | --oldin | --oldi | --old | --ol | --o) 952 ac_prev=oldincludedir ;; 953 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 954 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 955 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 956 oldincludedir=$ac_optarg ;; 957 958 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 959 ac_prev=prefix ;; 960 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 961 prefix=$ac_optarg ;; 962 963 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 964 | --program-pre | --program-pr | --program-p) 965 ac_prev=program_prefix ;; 966 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 967 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 968 program_prefix=$ac_optarg ;; 969 970 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 971 | --program-suf | --program-su | --program-s) 972 ac_prev=program_suffix ;; 973 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 974 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 975 program_suffix=$ac_optarg ;; 976 977 -program-transform-name | --program-transform-name \ 978 | --program-transform-nam | --program-transform-na \ 979 | --program-transform-n | --program-transform- \ 980 | --program-transform | --program-transfor \ 981 | --program-transfo | --program-transf \ 982 | --program-trans | --program-tran \ 983 | --progr-tra | --program-tr | --program-t) 984 ac_prev=program_transform_name ;; 985 -program-transform-name=* | --program-transform-name=* \ 986 | --program-transform-nam=* | --program-transform-na=* \ 987 | --program-transform-n=* | --program-transform-=* \ 988 | --program-transform=* | --program-transfor=* \ 989 | --program-transfo=* | --program-transf=* \ 990 | --program-trans=* | --program-tran=* \ 991 | --progr-tra=* | --program-tr=* | --program-t=*) 992 program_transform_name=$ac_optarg ;; 993 994 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 995 ac_prev=pdfdir ;; 996 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 997 pdfdir=$ac_optarg ;; 998 999 -psdir | --psdir | --psdi | --psd | --ps) 1000 ac_prev=psdir ;; 1001 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1002 psdir=$ac_optarg ;; 1003 1004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1005 | -silent | --silent | --silen | --sile | --sil) 1006 silent=yes ;; 1007 1008 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1009 ac_prev=sbindir ;; 1010 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1011 | --sbi=* | --sb=*) 1012 sbindir=$ac_optarg ;; 1013 1014 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1015 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1016 | --sharedst | --shareds | --shared | --share | --shar \ 1017 | --sha | --sh) 1018 ac_prev=sharedstatedir ;; 1019 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1020 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1021 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1022 | --sha=* | --sh=*) 1023 sharedstatedir=$ac_optarg ;; 1024 1025 -site | --site | --sit) 1026 ac_prev=site ;; 1027 -site=* | --site=* | --sit=*) 1028 site=$ac_optarg ;; 1029 1030 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1031 ac_prev=srcdir ;; 1032 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1033 srcdir=$ac_optarg ;; 1034 1035 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1036 | --syscon | --sysco | --sysc | --sys | --sy) 1037 ac_prev=sysconfdir ;; 1038 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1039 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1040 sysconfdir=$ac_optarg ;; 1041 1042 -target | --target | --targe | --targ | --tar | --ta | --t) 1043 ac_prev=target_alias ;; 1044 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1045 target_alias=$ac_optarg ;; 1046 1047 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1048 verbose=yes ;; 1049 1050 -version | --version | --versio | --versi | --vers | -V) 1051 ac_init_version=: ;; 1052 1053 -with-* | --with-*) 1054 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1057 { echo "$as_me: error: invalid package name: $ac_package" >&2 1058 { (exit 1); exit 1; }; } 1059 ac_package=`echo $ac_package| sed 's/-/_/g'` 1060 eval with_$ac_package=\$ac_optarg ;; 1061 1062 -without-* | --without-*) 1063 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1064 # Reject names that are not valid shell variable names. 1065 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1066 { echo "$as_me: error: invalid package name: $ac_package" >&2 1067 { (exit 1); exit 1; }; } 1068 ac_package=`echo $ac_package | sed 's/-/_/g'` 1069 eval with_$ac_package=no ;; 1070 1071 --x) 1072 # Obsolete; use --with-x. 1073 with_x=yes ;; 1074 1075 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1076 | --x-incl | --x-inc | --x-in | --x-i) 1077 ac_prev=x_includes ;; 1078 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1079 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1080 x_includes=$ac_optarg ;; 1081 1082 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1083 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1084 ac_prev=x_libraries ;; 1085 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1086 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1087 x_libraries=$ac_optarg ;; 1088 1089 -*) { echo "$as_me: error: unrecognized option: $ac_option 1090Try \`$0 --help' for more information." >&2 1091 { (exit 1); exit 1; }; } 1092 ;; 1093 1094 *=*) 1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1096 # Reject names that are not valid shell variable names. 1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1099 { (exit 1); exit 1; }; } 1100 eval $ac_envvar=\$ac_optarg 1101 export $ac_envvar ;; 1102 1103 *) 1104 # FIXME: should be removed in autoconf 3.0. 1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1109 ;; 1110 1111 esac 1112done 1113 1114if test -n "$ac_prev"; then 1115 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1116 { echo "$as_me: error: missing argument to $ac_option" >&2 1117 { (exit 1); exit 1; }; } 1118fi 1119 1120# Be sure to have absolute directory names. 1121for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1122 datadir sysconfdir sharedstatedir localstatedir includedir \ 1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1124 libdir localedir mandir 1125do 1126 eval ac_val=\$$ac_var 1127 case $ac_val in 1128 [\\/$]* | ?:[\\/]* ) continue;; 1129 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1130 esac 1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1132 { (exit 1); exit 1; }; } 1133done 1134 1135# There might be people who depend on the old broken behavior: `$host' 1136# used to hold the argument of --host etc. 1137# FIXME: To remove some day. 1138build=$build_alias 1139host=$host_alias 1140target=$target_alias 1141 1142# FIXME: To remove some day. 1143if test "x$host_alias" != x; then 1144 if test "x$build_alias" = x; then 1145 cross_compiling=maybe 1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1147 If a cross compiler is detected then cross compile mode will be used." >&2 1148 elif test "x$build_alias" != "x$host_alias"; then 1149 cross_compiling=yes 1150 fi 1151fi 1152 1153ac_tool_prefix= 1154test -n "$host_alias" && ac_tool_prefix=$host_alias- 1155 1156test "$silent" = yes && exec 6>/dev/null 1157 1158 1159ac_pwd=`pwd` && test -n "$ac_pwd" && 1160ac_ls_di=`ls -di .` && 1161ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1162 { echo "$as_me: error: Working directory cannot be determined" >&2 1163 { (exit 1); exit 1; }; } 1164test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1165 { echo "$as_me: error: pwd does not report name of working directory" >&2 1166 { (exit 1); exit 1; }; } 1167 1168 1169# Find the source files, if location was not specified. 1170if test -z "$srcdir"; then 1171 ac_srcdir_defaulted=yes 1172 # Try the directory containing this script, then the parent directory. 1173 ac_confdir=`$as_dirname -- "$0" || 1174$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1175 X"$0" : 'X\(//\)[^/]' \| \ 1176 X"$0" : 'X\(//\)$' \| \ 1177 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1178echo X"$0" | 1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1180 s//\1/ 1181 q 1182 } 1183 /^X\(\/\/\)[^/].*/{ 1184 s//\1/ 1185 q 1186 } 1187 /^X\(\/\/\)$/{ 1188 s//\1/ 1189 q 1190 } 1191 /^X\(\/\).*/{ 1192 s//\1/ 1193 q 1194 } 1195 s/.*/./; q'` 1196 srcdir=$ac_confdir 1197 if test ! -r "$srcdir/$ac_unique_file"; then 1198 srcdir=.. 1199 fi 1200else 1201 ac_srcdir_defaulted=no 1202fi 1203if test ! -r "$srcdir/$ac_unique_file"; then 1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1206 { (exit 1); exit 1; }; } 1207fi 1208ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1209ac_abs_confdir=`( 1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1211 { (exit 1); exit 1; }; } 1212 pwd)` 1213# When building in place, set srcdir=. 1214if test "$ac_abs_confdir" = "$ac_pwd"; then 1215 srcdir=. 1216fi 1217# Remove unnecessary trailing slashes from srcdir. 1218# Double slashes in file names in object file debugging info 1219# mess up M-x gdb in Emacs. 1220case $srcdir in 1221*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1222esac 1223for ac_var in $ac_precious_vars; do 1224 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1225 eval ac_env_${ac_var}_value=\$${ac_var} 1226 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1227 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1228done 1229 1230# 1231# Report the --help message. 1232# 1233if test "$ac_init_help" = "long"; then 1234 # Omit some internal or obsolete options to make the list less imposing. 1235 # This message is too long to be a string in the A/UX 3.1 sh. 1236 cat <<_ACEOF 1237\`configure' configures volleyball 0.8.6 to adapt to many kinds of systems. 1238 1239Usage: $0 [OPTION]... [VAR=VALUE]... 1240 1241To assign environment variables (e.g., CC, CFLAGS...), specify them as 1242VAR=VALUE. See below for descriptions of some of the useful variables. 1243 1244Defaults for the options are specified in brackets. 1245 1246Configuration: 1247 -h, --help display this help and exit 1248 --help=short display options specific to this package 1249 --help=recursive display the short help of all the included packages 1250 -V, --version display version information and exit 1251 -q, --quiet, --silent do not print \`checking...' messages 1252 --cache-file=FILE cache test results in FILE [disabled] 1253 -C, --config-cache alias for \`--cache-file=config.cache' 1254 -n, --no-create do not create output files 1255 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1256 1257Installation directories: 1258 --prefix=PREFIX install architecture-independent files in PREFIX 1259 [$ac_default_prefix] 1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1261 [PREFIX] 1262 1263By default, \`make install' will install all the files in 1264\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1265an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1266for instance \`--prefix=\$HOME'. 1267 1268For better control, use the options below. 1269 1270Fine tuning of the installation directories: 1271 --bindir=DIR user executables [EPREFIX/bin] 1272 --sbindir=DIR system admin executables [EPREFIX/sbin] 1273 --libexecdir=DIR program executables [EPREFIX/libexec] 1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1277 --libdir=DIR object code libraries [EPREFIX/lib] 1278 --includedir=DIR C header files [PREFIX/include] 1279 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1282 --infodir=DIR info documentation [DATAROOTDIR/info] 1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1284 --mandir=DIR man documentation [DATAROOTDIR/man] 1285 --docdir=DIR documentation root [DATAROOTDIR/doc/volleyball] 1286 --htmldir=DIR html documentation [DOCDIR] 1287 --dvidir=DIR dvi documentation [DOCDIR] 1288 --pdfdir=DIR pdf documentation [DOCDIR] 1289 --psdir=DIR ps documentation [DOCDIR] 1290_ACEOF 1291 1292 cat <<\_ACEOF 1293 1294Program names: 1295 --program-prefix=PREFIX prepend PREFIX to installed program names 1296 --program-suffix=SUFFIX append SUFFIX to installed program names 1297 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1298 1299System types: 1300 --build=BUILD configure for building on BUILD [guessed] 1301 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1302 --target=TARGET configure for building compilers for TARGET [HOST] 1303_ACEOF 1304fi 1305 1306if test -n "$ac_init_help"; then 1307 case $ac_init_help in 1308 short | recursive ) echo "Configuration of volleyball 0.8.6:";; 1309 esac 1310 cat <<\_ACEOF 1311 1312Optional Features: 1313 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1314 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1315 --disable-dependency-tracking speeds up one-time build 1316 --enable-dependency-tracking do not reject slow dependency extractors 1317 --disable-nls do not use Native Language Support 1318 --disable-rpath do not hardcode runtime library paths 1319 --disable-sdltest Do not try to compile and run a test SDL program 1320 1321Optional Packages: 1322 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1323 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1324 --with-gnu-ld assume the C compiler uses GNU ld default=no 1325 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1326 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1327 --with-included-gettext use the GNU gettext library included here 1328 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1329 --without-libintl-prefix don't search for libintl in includedir and libdir 1330 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1331 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1332 1333Some influential environment variables: 1334 CC C compiler command 1335 CFLAGS C compiler flags 1336 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1337 nonstandard directory <lib dir> 1338 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1339 you have headers in a nonstandard directory <include dir> 1340 CPP C preprocessor 1341 1342Use these variables to override the choices made by `configure' or to help 1343it to find libraries and programs with nonstandard names/locations. 1344 1345_ACEOF 1346ac_status=$? 1347fi 1348 1349if test "$ac_init_help" = "recursive"; then 1350 # If there are subdirs, report their specific --help. 1351 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1352 test -d "$ac_dir" || continue 1353 ac_builddir=. 1354 1355case "$ac_dir" in 1356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1357*) 1358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1359 # A ".." for each directory in $ac_dir_suffix. 1360 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1361 case $ac_top_builddir_sub in 1362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1364 esac ;; 1365esac 1366ac_abs_top_builddir=$ac_pwd 1367ac_abs_builddir=$ac_pwd$ac_dir_suffix 1368# for backward compatibility: 1369ac_top_builddir=$ac_top_build_prefix 1370 1371case $srcdir in 1372 .) # We are building in place. 1373 ac_srcdir=. 1374 ac_top_srcdir=$ac_top_builddir_sub 1375 ac_abs_top_srcdir=$ac_pwd ;; 1376 [\\/]* | ?:[\\/]* ) # Absolute name. 1377 ac_srcdir=$srcdir$ac_dir_suffix; 1378 ac_top_srcdir=$srcdir 1379 ac_abs_top_srcdir=$srcdir ;; 1380 *) # Relative name. 1381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1382 ac_top_srcdir=$ac_top_build_prefix$srcdir 1383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1384esac 1385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1386 1387 cd "$ac_dir" || { ac_status=$?; continue; } 1388 # Check for guested configure. 1389 if test -f "$ac_srcdir/configure.gnu"; then 1390 echo && 1391 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1392 elif test -f "$ac_srcdir/configure"; then 1393 echo && 1394 $SHELL "$ac_srcdir/configure" --help=recursive 1395 else 1396 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1397 fi || ac_status=$? 1398 cd "$ac_pwd" || { ac_status=$?; break; } 1399 done 1400fi 1401 1402test -n "$ac_init_help" && exit $ac_status 1403if $ac_init_version; then 1404 cat <<\_ACEOF 1405volleyball configure 0.8.6 1406generated by GNU Autoconf 2.60 1407 1408Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14092002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1410This configure script is free software; the Free Software Foundation 1411gives unlimited permission to copy, distribute and modify it. 1412_ACEOF 1413 exit 1414fi 1415cat >config.log <<_ACEOF 1416This file contains any messages produced by compilers while 1417running configure, to aid debugging if configure makes a mistake. 1418 1419It was created by volleyball $as_me 0.8.6, which was 1420generated by GNU Autoconf 2.60. Invocation command line was 1421 1422 $ $0 $@ 1423 1424_ACEOF 1425exec 5>>config.log 1426{ 1427cat <<_ASUNAME 1428## --------- ## 1429## Platform. ## 1430## --------- ## 1431 1432hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1433uname -m = `(uname -m) 2>/dev/null || echo unknown` 1434uname -r = `(uname -r) 2>/dev/null || echo unknown` 1435uname -s = `(uname -s) 2>/dev/null || echo unknown` 1436uname -v = `(uname -v) 2>/dev/null || echo unknown` 1437 1438/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1439/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1440 1441/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1442/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1443/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1444/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1445/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1446/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1447/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1448 1449_ASUNAME 1450 1451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1452for as_dir in $PATH 1453do 1454 IFS=$as_save_IFS 1455 test -z "$as_dir" && as_dir=. 1456 echo "PATH: $as_dir" 1457done 1458IFS=$as_save_IFS 1459 1460} >&5 1461 1462cat >&5 <<_ACEOF 1463 1464 1465## ----------- ## 1466## Core tests. ## 1467## ----------- ## 1468 1469_ACEOF 1470 1471 1472# Keep a trace of the command line. 1473# Strip out --no-create and --no-recursion so they do not pile up. 1474# Strip out --silent because we don't want to record it for future runs. 1475# Also quote any args containing shell meta-characters. 1476# Make two passes to allow for proper duplicate-argument suppression. 1477ac_configure_args= 1478ac_configure_args0= 1479ac_configure_args1= 1480ac_must_keep_next=false 1481for ac_pass in 1 2 1482do 1483 for ac_arg 1484 do 1485 case $ac_arg in 1486 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1487 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1488 | -silent | --silent | --silen | --sile | --sil) 1489 continue ;; 1490 *\'*) 1491 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1492 esac 1493 case $ac_pass in 1494 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1495 2) 1496 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1497 if test $ac_must_keep_next = true; then 1498 ac_must_keep_next=false # Got value, back to normal. 1499 else 1500 case $ac_arg in 1501 *=* | --config-cache | -C | -disable-* | --disable-* \ 1502 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1503 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1504 | -with-* | --with-* | -without-* | --without-* | --x) 1505 case "$ac_configure_args0 " in 1506 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1507 esac 1508 ;; 1509 -* ) ac_must_keep_next=true ;; 1510 esac 1511 fi 1512 ac_configure_args="$ac_configure_args '$ac_arg'" 1513 ;; 1514 esac 1515 done 1516done 1517$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1518$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1519 1520# When interrupted or exit'd, cleanup temporary files, and complete 1521# config.log. We remove comments because anyway the quotes in there 1522# would cause problems or look ugly. 1523# WARNING: Use '\'' to represent an apostrophe within the trap. 1524# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1525trap 'exit_status=$? 1526 # Save into config.log some information that might help in debugging. 1527 { 1528 echo 1529 1530 cat <<\_ASBOX 1531## ---------------- ## 1532## Cache variables. ## 1533## ---------------- ## 1534_ASBOX 1535 echo 1536 # The following way of writing the cache mishandles newlines in values, 1537( 1538 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1539 eval ac_val=\$$ac_var 1540 case $ac_val in #( 1541 *${as_nl}*) 1542 case $ac_var in #( 1543 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1544echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1545 esac 1546 case $ac_var in #( 1547 _ | IFS | as_nl) ;; #( 1548 *) $as_unset $ac_var ;; 1549 esac ;; 1550 esac 1551 done 1552 (set) 2>&1 | 1553 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1554 *${as_nl}ac_space=\ *) 1555 sed -n \ 1556 "s/'\''/'\''\\\\'\'''\''/g; 1557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1558 ;; #( 1559 *) 1560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1561 ;; 1562 esac | 1563 sort 1564) 1565 echo 1566 1567 cat <<\_ASBOX 1568## ----------------- ## 1569## Output variables. ## 1570## ----------------- ## 1571_ASBOX 1572 echo 1573 for ac_var in $ac_subst_vars 1574 do 1575 eval ac_val=\$$ac_var 1576 case $ac_val in 1577 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1578 esac 1579 echo "$ac_var='\''$ac_val'\''" 1580 done | sort 1581 echo 1582 1583 if test -n "$ac_subst_files"; then 1584 cat <<\_ASBOX 1585## ------------------- ## 1586## File substitutions. ## 1587## ------------------- ## 1588_ASBOX 1589 echo 1590 for ac_var in $ac_subst_files 1591 do 1592 eval ac_val=\$$ac_var 1593 case $ac_val in 1594 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1595 esac 1596 echo "$ac_var='\''$ac_val'\''" 1597 done | sort 1598 echo 1599 fi 1600 1601 if test -s confdefs.h; then 1602 cat <<\_ASBOX 1603## ----------- ## 1604## confdefs.h. ## 1605## ----------- ## 1606_ASBOX 1607 echo 1608 cat confdefs.h 1609 echo 1610 fi 1611 test "$ac_signal" != 0 && 1612 echo "$as_me: caught signal $ac_signal" 1613 echo "$as_me: exit $exit_status" 1614 } >&5 1615 rm -f core *.core core.conftest.* && 1616 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1617 exit $exit_status 1618' 0 1619for ac_signal in 1 2 13 15; do 1620 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1621done 1622ac_signal=0 1623 1624# confdefs.h avoids OS command line length limits that DEFS can exceed. 1625rm -f -r conftest* confdefs.h 1626 1627# Predefined preprocessor variables. 1628 1629cat >>confdefs.h <<_ACEOF 1630#define PACKAGE_NAME "$PACKAGE_NAME" 1631_ACEOF 1632 1633 1634cat >>confdefs.h <<_ACEOF 1635#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1636_ACEOF 1637 1638 1639cat >>confdefs.h <<_ACEOF 1640#define PACKAGE_VERSION "$PACKAGE_VERSION" 1641_ACEOF 1642 1643 1644cat >>confdefs.h <<_ACEOF 1645#define PACKAGE_STRING "$PACKAGE_STRING" 1646_ACEOF 1647 1648 1649cat >>confdefs.h <<_ACEOF 1650#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1651_ACEOF 1652 1653 1654# Let the site file select an alternate cache file if it wants to. 1655# Prefer explicitly selected file to automatically selected ones. 1656if test -n "$CONFIG_SITE"; then 1657 set x "$CONFIG_SITE" 1658elif test "x$prefix" != xNONE; then 1659 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1660else 1661 set x "$ac_default_prefix/share/config.site" \ 1662 "$ac_default_prefix/etc/config.site" 1663fi 1664shift 1665for ac_site_file 1666do 1667 if test -r "$ac_site_file"; then 1668 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1669echo "$as_me: loading site script $ac_site_file" >&6;} 1670 sed 's/^/| /' "$ac_site_file" >&5 1671 . "$ac_site_file" 1672 fi 1673done 1674 1675if test -r "$cache_file"; then 1676 # Some versions of bash will fail to source /dev/null (special 1677 # files actually), so we avoid doing that. 1678 if test -f "$cache_file"; then 1679 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1680echo "$as_me: loading cache $cache_file" >&6;} 1681 case $cache_file in 1682 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1683 *) . "./$cache_file";; 1684 esac 1685 fi 1686else 1687 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1688echo "$as_me: creating cache $cache_file" >&6;} 1689 >$cache_file 1690fi 1691 1692# Check that the precious variables saved in the cache have kept the same 1693# value. 1694ac_cache_corrupted=false 1695for ac_var in $ac_precious_vars; do 1696 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1697 eval ac_new_set=\$ac_env_${ac_var}_set 1698 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1699 eval ac_new_val=\$ac_env_${ac_var}_value 1700 case $ac_old_set,$ac_new_set in 1701 set,) 1702 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1703echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1704 ac_cache_corrupted=: ;; 1705 ,set) 1706 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1707echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1708 ac_cache_corrupted=: ;; 1709 ,);; 1710 *) 1711 if test "x$ac_old_val" != "x$ac_new_val"; then 1712 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1713echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1714 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1715echo "$as_me: former value: $ac_old_val" >&2;} 1716 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1717echo "$as_me: current value: $ac_new_val" >&2;} 1718 ac_cache_corrupted=: 1719 fi;; 1720 esac 1721 # Pass precious variables to config.status. 1722 if test "$ac_new_set" = set; then 1723 case $ac_new_val in 1724 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1725 *) ac_arg=$ac_var=$ac_new_val ;; 1726 esac 1727 case " $ac_configure_args " in 1728 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1729 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1730 esac 1731 fi 1732done 1733if $ac_cache_corrupted; then 1734 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1735echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1736 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1737echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1738 { (exit 1); exit 1; }; } 1739fi 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765ac_ext=c 1766ac_cpp='$CPP $CPPFLAGS' 1767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1769ac_compiler_gnu=$ac_cv_c_compiler_gnu 1770 1771 1772ac_aux_dir= 1773for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1774 if test -f "$ac_dir/install-sh"; then 1775 ac_aux_dir=$ac_dir 1776 ac_install_sh="$ac_aux_dir/install-sh -c" 1777 break 1778 elif test -f "$ac_dir/install.sh"; then 1779 ac_aux_dir=$ac_dir 1780 ac_install_sh="$ac_aux_dir/install.sh -c" 1781 break 1782 elif test -f "$ac_dir/shtool"; then 1783 ac_aux_dir=$ac_dir 1784 ac_install_sh="$ac_aux_dir/shtool install -c" 1785 break 1786 fi 1787done 1788if test -z "$ac_aux_dir"; then 1789 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1790echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1791 { (exit 1); exit 1; }; } 1792fi 1793 1794# These three variables are undocumented and unsupported, 1795# and are intended to be withdrawn in a future Autoconf release. 1796# They can cause serious problems if a builder's source tree is in a directory 1797# whose full name contains unusual characters. 1798ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1799ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1800ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1801 1802 1803# Make sure we can run config.sub. 1804$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1805 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1806echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1807 { (exit 1); exit 1; }; } 1808 1809{ echo "$as_me:$LINENO: checking build system type" >&5 1810echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1811if test "${ac_cv_build+set}" = set; then 1812 echo $ECHO_N "(cached) $ECHO_C" >&6 1813else 1814 ac_build_alias=$build_alias 1815test "x$ac_build_alias" = x && 1816 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1817test "x$ac_build_alias" = x && 1818 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1819echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1820 { (exit 1); exit 1; }; } 1821ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1822 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1823echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1824 { (exit 1); exit 1; }; } 1825 1826fi 1827{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1828echo "${ECHO_T}$ac_cv_build" >&6; } 1829case $ac_cv_build in 1830*-*-*) ;; 1831*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1832echo "$as_me: error: invalid value of canonical build" >&2;} 1833 { (exit 1); exit 1; }; };; 1834esac 1835build=$ac_cv_build 1836ac_save_IFS=$IFS; IFS='-' 1837set x $ac_cv_build 1838shift 1839build_cpu=$1 1840build_vendor=$2 1841shift; shift 1842# Remember, the first character of IFS is used to create $*, 1843# except with old shells: 1844build_os=$* 1845IFS=$ac_save_IFS 1846case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1847 1848 1849{ echo "$as_me:$LINENO: checking host system type" >&5 1850echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1851if test "${ac_cv_host+set}" = set; then 1852 echo $ECHO_N "(cached) $ECHO_C" >&6 1853else 1854 if test "x$host_alias" = x; then 1855 ac_cv_host=$ac_cv_build 1856else 1857 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1858 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1859echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1860 { (exit 1); exit 1; }; } 1861fi 1862 1863fi 1864{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1865echo "${ECHO_T}$ac_cv_host" >&6; } 1866case $ac_cv_host in 1867*-*-*) ;; 1868*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1869echo "$as_me: error: invalid value of canonical host" >&2;} 1870 { (exit 1); exit 1; }; };; 1871esac 1872host=$ac_cv_host 1873ac_save_IFS=$IFS; IFS='-' 1874set x $ac_cv_host 1875shift 1876host_cpu=$1 1877host_vendor=$2 1878shift; shift 1879# Remember, the first character of IFS is used to create $*, 1880# except with old shells: 1881host_os=$* 1882IFS=$ac_save_IFS 1883case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1884 1885 1886{ echo "$as_me:$LINENO: checking target system type" >&5 1887echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 1888if test "${ac_cv_target+set}" = set; then 1889 echo $ECHO_N "(cached) $ECHO_C" >&6 1890else 1891 if test "x$target_alias" = x; then 1892 ac_cv_target=$ac_cv_host 1893else 1894 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 1895 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 1896echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 1897 { (exit 1); exit 1; }; } 1898fi 1899 1900fi 1901{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1902echo "${ECHO_T}$ac_cv_target" >&6; } 1903case $ac_cv_target in 1904*-*-*) ;; 1905*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 1906echo "$as_me: error: invalid value of canonical target" >&2;} 1907 { (exit 1); exit 1; }; };; 1908esac 1909target=$ac_cv_target 1910ac_save_IFS=$IFS; IFS='-' 1911set x $ac_cv_target 1912shift 1913target_cpu=$1 1914target_vendor=$2 1915shift; shift 1916# Remember, the first character of IFS is used to create $*, 1917# except with old shells: 1918target_os=$* 1919IFS=$ac_save_IFS 1920case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 1921 1922 1923# The aliases save the names the user supplied, while $host etc. 1924# will get canonicalized. 1925test -n "$target_alias" && 1926 test "$program_prefix$program_suffix$program_transform_name" = \ 1927 NONENONEs,x,x, && 1928 program_prefix=${target_alias}- 1929 1930am__api_version="1.9" 1931# Find a good install program. We prefer a C program (faster), 1932# so one script is as good as another. But avoid the broken or 1933# incompatible versions: 1934# SysV /etc/install, /usr/sbin/install 1935# SunOS /usr/etc/install 1936# IRIX /sbin/install 1937# AIX /bin/install 1938# AmigaOS /C/install, which installs bootblocks on floppy discs 1939# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1940# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1941# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1942# OS/2's system install, which has a completely different semantic 1943# ./install, which can be erroneously created by make from ./install.sh. 1944{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1945echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1946if test -z "$INSTALL"; then 1947if test "${ac_cv_path_install+set}" = set; then 1948 echo $ECHO_N "(cached) $ECHO_C" >&6 1949else 1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1951for as_dir in $PATH 1952do 1953 IFS=$as_save_IFS 1954 test -z "$as_dir" && as_dir=. 1955 # Account for people who put trailing slashes in PATH elements. 1956case $as_dir/ in 1957 ./ | .// | /cC/* | \ 1958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1960 /usr/ucb/* ) ;; 1961 *) 1962 # OSF1 and SCO ODT 3.0 have their own names for install. 1963 # Don't use installbsd from OSF since it installs stuff as root 1964 # by default. 1965 for ac_prog in ginstall scoinst install; do 1966 for ac_exec_ext in '' $ac_executable_extensions; do 1967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 1968 if test $ac_prog = install && 1969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1970 # AIX install. It has an incompatible calling convention. 1971 : 1972 elif test $ac_prog = install && 1973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1974 # program-specific install script used by HP pwplus--don't use. 1975 : 1976 else 1977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1978 break 3 1979 fi 1980 fi 1981 done 1982 done 1983 ;; 1984esac 1985done 1986IFS=$as_save_IFS 1987 1988 1989fi 1990 if test "${ac_cv_path_install+set}" = set; then 1991 INSTALL=$ac_cv_path_install 1992 else 1993 # As a last resort, use the slow shell script. Don't cache a 1994 # value for INSTALL within a source directory, because that will 1995 # break other packages using the cache if that directory is 1996 # removed, or if the value is a relative name. 1997 INSTALL=$ac_install_sh 1998 fi 1999fi 2000{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2001echo "${ECHO_T}$INSTALL" >&6; } 2002 2003# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2004# It thinks the first close brace ends the variable substitution. 2005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2006 2007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2008 2009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2010 2011{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2012echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2013# Just in case 2014sleep 1 2015echo timestamp > conftest.file 2016# Do `set' in a subshell so we don't clobber the current shell's 2017# arguments. Must try -L first in case configure is actually a 2018# symlink; some systems play weird games with the mod time of symlinks 2019# (eg FreeBSD returns the mod time of the symlink's containing 2020# directory). 2021if ( 2022 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2023 if test "$*" = "X"; then 2024 # -L didn't work. 2025 set X `ls -t $srcdir/configure conftest.file` 2026 fi 2027 rm -f conftest.file 2028 if test "$*" != "X $srcdir/configure conftest.file" \ 2029 && test "$*" != "X conftest.file $srcdir/configure"; then 2030 2031 # If neither matched, then we have a broken ls. This can happen 2032 # if, for instance, CONFIG_SHELL is bash and it inherits a 2033 # broken ls alias from the environment. This has actually 2034 # happened. Such a system could not be considered "sane". 2035 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2036alias in your environment" >&5 2037echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2038alias in your environment" >&2;} 2039 { (exit 1); exit 1; }; } 2040 fi 2041 2042 test "$2" = conftest.file 2043 ) 2044then 2045 # Ok. 2046 : 2047else 2048 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2049Check your system clock" >&5 2050echo "$as_me: error: newly created file is older than distributed files! 2051Check your system clock" >&2;} 2052 { (exit 1); exit 1; }; } 2053fi 2054{ echo "$as_me:$LINENO: result: yes" >&5 2055echo "${ECHO_T}yes" >&6; } 2056test "$program_prefix" != NONE && 2057 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2058# Use a double $ so make ignores it. 2059test "$program_suffix" != NONE && 2060 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2061# Double any \ or $. echo might interpret backslashes. 2062# By default was `s,x,x', remove it if useless. 2063cat <<\_ACEOF >conftest.sed 2064s/[\\$]/&&/g;s/;s,x,x,$// 2065_ACEOF 2066program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2067rm -f conftest.sed 2068 2069# expand $ac_aux_dir to an absolute path 2070am_aux_dir=`cd $ac_aux_dir && pwd` 2071 2072test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2073# Use eval to expand $SHELL 2074if eval "$MISSING --run true"; then 2075 am_missing_run="$MISSING --run " 2076else 2077 am_missing_run= 2078 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2079echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2080fi 2081 2082if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2083 # We used to keeping the `.' as first argument, in order to 2084 # allow $(mkdir_p) to be used without argument. As in 2085 # $(mkdir_p) $(somedir) 2086 # where $(somedir) is conditionally defined. However this is wrong 2087 # for two reasons: 2088 # 1. if the package is installed by a user who cannot write `.' 2089 # make install will fail, 2090 # 2. the above comment should most certainly read 2091 # $(mkdir_p) $(DESTDIR)$(somedir) 2092 # so it does not work when $(somedir) is undefined and 2093 # $(DESTDIR) is not. 2094 # To support the latter case, we have to write 2095 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2096 # so the `.' trick is pointless. 2097 mkdir_p='mkdir -p --' 2098else 2099 # On NextStep and OpenStep, the `mkdir' command does not 2100 # recognize any option. It will interpret all options as 2101 # directories to create, and then abort because `.' already 2102 # exists. 2103 for d in ./-p ./--version; 2104 do 2105 test -d $d && rmdir $d 2106 done 2107 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2108 if test -f "$ac_aux_dir/mkinstalldirs"; then 2109 mkdir_p='$(mkinstalldirs)' 2110 else 2111 mkdir_p='$(install_sh) -d' 2112 fi 2113fi 2114 2115for ac_prog in gawk mawk nawk awk 2116do 2117 # Extract the first word of "$ac_prog", so it can be a program name with args. 2118set dummy $ac_prog; ac_word=$2 2119{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2121if test "${ac_cv_prog_AWK+set}" = set; then 2122 echo $ECHO_N "(cached) $ECHO_C" >&6 2123else 2124 if test -n "$AWK"; then 2125 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2126else 2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2128for as_dir in $PATH 2129do 2130 IFS=$as_save_IFS 2131 test -z "$as_dir" && as_dir=. 2132 for ac_exec_ext in '' $ac_executable_extensions; do 2133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2134 ac_cv_prog_AWK="$ac_prog" 2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2136 break 2 2137 fi 2138done 2139done 2140IFS=$as_save_IFS 2141 2142fi 2143fi 2144AWK=$ac_cv_prog_AWK 2145if test -n "$AWK"; then 2146 { echo "$as_me:$LINENO: result: $AWK" >&5 2147echo "${ECHO_T}$AWK" >&6; } 2148else 2149 { echo "$as_me:$LINENO: result: no" >&5 2150echo "${ECHO_T}no" >&6; } 2151fi 2152 2153 2154 test -n "$AWK" && break 2155done 2156 2157{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2158echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2159set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2160if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2161 echo $ECHO_N "(cached) $ECHO_C" >&6 2162else 2163 cat >conftest.make <<\_ACEOF 2164SHELL = /bin/sh 2165all: 2166 @echo '@@@%%%=$(MAKE)=@@@%%%' 2167_ACEOF 2168# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2169case `${MAKE-make} -f conftest.make 2>/dev/null` in 2170 *@@@%%%=?*=@@@%%%*) 2171 eval ac_cv_prog_make_${ac_make}_set=yes;; 2172 *) 2173 eval ac_cv_prog_make_${ac_make}_set=no;; 2174esac 2175rm -f conftest.make 2176fi 2177if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2178 { echo "$as_me:$LINENO: result: yes" >&5 2179echo "${ECHO_T}yes" >&6; } 2180 SET_MAKE= 2181else 2182 { echo "$as_me:$LINENO: result: no" >&5 2183echo "${ECHO_T}no" >&6; } 2184 SET_MAKE="MAKE=${MAKE-make}" 2185fi 2186 2187rm -rf .tst 2>/dev/null 2188mkdir .tst 2>/dev/null 2189if test -d .tst; then 2190 am__leading_dot=. 2191else 2192 am__leading_dot=_ 2193fi 2194rmdir .tst 2>/dev/null 2195 2196# test to see if srcdir already configured 2197if test "`cd $srcdir && pwd`" != "`pwd`" && 2198 test -f $srcdir/config.status; then 2199 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2200echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2201 { (exit 1); exit 1; }; } 2202fi 2203 2204# test whether we have cygpath 2205if test -z "$CYGPATH_W"; then 2206 if (cygpath --version) >/dev/null 2>/dev/null; then 2207 CYGPATH_W='cygpath -w' 2208 else 2209 CYGPATH_W=echo 2210 fi 2211fi 2212 2213 2214# Define the identity of the package. 2215 PACKAGE='volleyball' 2216 VERSION='0.8.6' 2217 2218 2219cat >>confdefs.h <<_ACEOF 2220#define PACKAGE "$PACKAGE" 2221_ACEOF 2222 2223 2224cat >>confdefs.h <<_ACEOF 2225#define VERSION "$VERSION" 2226_ACEOF 2227 2228# Some tools Automake needs. 2229 2230ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2231 2232 2233AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2234 2235 2236AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2237 2238 2239AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2240 2241 2242MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2243 2244install_sh=${install_sh-"$am_aux_dir/install-sh"} 2245 2246# Installed binaries are usually stripped using `strip' when the user 2247# run `make install-strip'. However `strip' might not be the right 2248# tool to use in cross-compilation environments, therefore Automake 2249# will honor the `STRIP' environment variable to overrule this program. 2250if test "$cross_compiling" != no; then 2251 if test -n "$ac_tool_prefix"; then 2252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2253set dummy ${ac_tool_prefix}strip; ac_word=$2 2254{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2256if test "${ac_cv_prog_STRIP+set}" = set; then 2257 echo $ECHO_N "(cached) $ECHO_C" >&6 2258else 2259 if test -n "$STRIP"; then 2260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2261else 2262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2263for as_dir in $PATH 2264do 2265 IFS=$as_save_IFS 2266 test -z "$as_dir" && as_dir=. 2267 for ac_exec_ext in '' $ac_executable_extensions; do 2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2269 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2271 break 2 2272 fi 2273done 2274done 2275IFS=$as_save_IFS 2276 2277fi 2278fi 2279STRIP=$ac_cv_prog_STRIP 2280if test -n "$STRIP"; then 2281 { echo "$as_me:$LINENO: result: $STRIP" >&5 2282echo "${ECHO_T}$STRIP" >&6; } 2283else 2284 { echo "$as_me:$LINENO: result: no" >&5 2285echo "${ECHO_T}no" >&6; } 2286fi 2287 2288 2289fi 2290if test -z "$ac_cv_prog_STRIP"; then 2291 ac_ct_STRIP=$STRIP 2292 # Extract the first word of "strip", so it can be a program name with args. 2293set dummy strip; ac_word=$2 2294{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2296if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2297 echo $ECHO_N "(cached) $ECHO_C" >&6 2298else 2299 if test -n "$ac_ct_STRIP"; then 2300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2301else 2302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2303for as_dir in $PATH 2304do 2305 IFS=$as_save_IFS 2306 test -z "$as_dir" && as_dir=. 2307 for ac_exec_ext in '' $ac_executable_extensions; do 2308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2309 ac_cv_prog_ac_ct_STRIP="strip" 2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2311 break 2 2312 fi 2313done 2314done 2315IFS=$as_save_IFS 2316 2317fi 2318fi 2319ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2320if test -n "$ac_ct_STRIP"; then 2321 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2322echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2323else 2324 { echo "$as_me:$LINENO: result: no" >&5 2325echo "${ECHO_T}no" >&6; } 2326fi 2327 2328 if test "x$ac_ct_STRIP" = x; then 2329 STRIP=":" 2330 else 2331 case $cross_compiling:$ac_tool_warned in 2332yes:) 2333{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2334whose name does not start with the host triplet. If you think this 2335configuration is useful to you, please write to autoconf@gnu.org." >&5 2336echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2337whose name does not start with the host triplet. If you think this 2338configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2339ac_tool_warned=yes ;; 2340esac 2341 STRIP=$ac_ct_STRIP 2342 fi 2343else 2344 STRIP="$ac_cv_prog_STRIP" 2345fi 2346 2347fi 2348INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2349 2350# We need awk for the "check" target. The system "awk" is bad on 2351# some platforms. 2352# Always define AMTAR for backward compatibility. 2353 2354AMTAR=${AMTAR-"${am_missing_run}tar"} 2355 2356am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2357 2358 2359 2360 2361 2362 2363ac_config_headers="$ac_config_headers config.h" 2364 2365ac_ext=c 2366ac_cpp='$CPP $CPPFLAGS' 2367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2369ac_compiler_gnu=$ac_cv_c_compiler_gnu 2370if test -n "$ac_tool_prefix"; then 2371 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2372set dummy ${ac_tool_prefix}gcc; ac_word=$2 2373{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2375if test "${ac_cv_prog_CC+set}" = set; then 2376 echo $ECHO_N "(cached) $ECHO_C" >&6 2377else 2378 if test -n "$CC"; then 2379 ac_cv_prog_CC="$CC" # Let the user override the test. 2380else 2381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2382for as_dir in $PATH 2383do 2384 IFS=$as_save_IFS 2385 test -z "$as_dir" && as_dir=. 2386 for ac_exec_ext in '' $ac_executable_extensions; do 2387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2388 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2390 break 2 2391 fi 2392done 2393done 2394IFS=$as_save_IFS 2395 2396fi 2397fi 2398CC=$ac_cv_prog_CC 2399if test -n "$CC"; then 2400 { echo "$as_me:$LINENO: result: $CC" >&5 2401echo "${ECHO_T}$CC" >&6; } 2402else 2403 { echo "$as_me:$LINENO: result: no" >&5 2404echo "${ECHO_T}no" >&6; } 2405fi 2406 2407 2408fi 2409if test -z "$ac_cv_prog_CC"; then 2410 ac_ct_CC=$CC 2411 # Extract the first word of "gcc", so it can be a program name with args. 2412set dummy gcc; ac_word=$2 2413{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2415if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2416 echo $ECHO_N "(cached) $ECHO_C" >&6 2417else 2418 if test -n "$ac_ct_CC"; then 2419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2420else 2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2422for as_dir in $PATH 2423do 2424 IFS=$as_save_IFS 2425 test -z "$as_dir" && as_dir=. 2426 for ac_exec_ext in '' $ac_executable_extensions; do 2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2428 ac_cv_prog_ac_ct_CC="gcc" 2429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2430 break 2 2431 fi 2432done 2433done 2434IFS=$as_save_IFS 2435 2436fi 2437fi 2438ac_ct_CC=$ac_cv_prog_ac_ct_CC 2439if test -n "$ac_ct_CC"; then 2440 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2441echo "${ECHO_T}$ac_ct_CC" >&6; } 2442else 2443 { echo "$as_me:$LINENO: result: no" >&5 2444echo "${ECHO_T}no" >&6; } 2445fi 2446 2447 if test "x$ac_ct_CC" = x; then 2448 CC="" 2449 else 2450 case $cross_compiling:$ac_tool_warned in 2451yes:) 2452{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2453whose name does not start with the host triplet. If you think this 2454configuration is useful to you, please write to autoconf@gnu.org." >&5 2455echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2456whose name does not start with the host triplet. If you think this 2457configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2458ac_tool_warned=yes ;; 2459esac 2460 CC=$ac_ct_CC 2461 fi 2462else 2463 CC="$ac_cv_prog_CC" 2464fi 2465 2466if test -z "$CC"; then 2467 if test -n "$ac_tool_prefix"; then 2468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2469set dummy ${ac_tool_prefix}cc; ac_word=$2 2470{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2472if test "${ac_cv_prog_CC+set}" = set; then 2473 echo $ECHO_N "(cached) $ECHO_C" >&6 2474else 2475 if test -n "$CC"; then 2476 ac_cv_prog_CC="$CC" # Let the user override the test. 2477else 2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2479for as_dir in $PATH 2480do 2481 IFS=$as_save_IFS 2482 test -z "$as_dir" && as_dir=. 2483 for ac_exec_ext in '' $ac_executable_extensions; do 2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2485 ac_cv_prog_CC="${ac_tool_prefix}cc" 2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2487 break 2 2488 fi 2489done 2490done 2491IFS=$as_save_IFS 2492 2493fi 2494fi 2495CC=$ac_cv_prog_CC 2496if test -n "$CC"; then 2497 { echo "$as_me:$LINENO: result: $CC" >&5 2498echo "${ECHO_T}$CC" >&6; } 2499else 2500 { echo "$as_me:$LINENO: result: no" >&5 2501echo "${ECHO_T}no" >&6; } 2502fi 2503 2504 2505 fi 2506fi 2507if test -z "$CC"; then 2508 # Extract the first word of "cc", so it can be a program name with args. 2509set dummy cc; ac_word=$2 2510{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2512if test "${ac_cv_prog_CC+set}" = set; then 2513 echo $ECHO_N "(cached) $ECHO_C" >&6 2514else 2515 if test -n "$CC"; then 2516 ac_cv_prog_CC="$CC" # Let the user override the test. 2517else 2518 ac_prog_rejected=no 2519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2520for as_dir in $PATH 2521do 2522 IFS=$as_save_IFS 2523 test -z "$as_dir" && as_dir=. 2524 for ac_exec_ext in '' $ac_executable_extensions; do 2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2527 ac_prog_rejected=yes 2528 continue 2529 fi 2530 ac_cv_prog_CC="cc" 2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2532 break 2 2533 fi 2534done 2535done 2536IFS=$as_save_IFS 2537 2538if test $ac_prog_rejected = yes; then 2539 # We found a bogon in the path, so make sure we never use it. 2540 set dummy $ac_cv_prog_CC 2541 shift 2542 if test $# != 0; then 2543 # We chose a different compiler from the bogus one. 2544 # However, it has the same basename, so the bogon will be chosen 2545 # first if we set CC to just the basename; use the full file name. 2546 shift 2547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2548 fi 2549fi 2550fi 2551fi 2552CC=$ac_cv_prog_CC 2553if test -n "$CC"; then 2554 { echo "$as_me:$LINENO: result: $CC" >&5 2555echo "${ECHO_T}$CC" >&6; } 2556else 2557 { echo "$as_me:$LINENO: result: no" >&5 2558echo "${ECHO_T}no" >&6; } 2559fi 2560 2561 2562fi 2563if test -z "$CC"; then 2564 if test -n "$ac_tool_prefix"; then 2565 for ac_prog in cl.exe 2566 do 2567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2568set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2569{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2571if test "${ac_cv_prog_CC+set}" = set; then 2572 echo $ECHO_N "(cached) $ECHO_C" >&6 2573else 2574 if test -n "$CC"; then 2575 ac_cv_prog_CC="$CC" # Let the user override the test. 2576else 2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578for as_dir in $PATH 2579do 2580 IFS=$as_save_IFS 2581 test -z "$as_dir" && as_dir=. 2582 for ac_exec_ext in '' $ac_executable_extensions; do 2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2586 break 2 2587 fi 2588done 2589done 2590IFS=$as_save_IFS 2591 2592fi 2593fi 2594CC=$ac_cv_prog_CC 2595if test -n "$CC"; then 2596 { echo "$as_me:$LINENO: result: $CC" >&5 2597echo "${ECHO_T}$CC" >&6; } 2598else 2599 { echo "$as_me:$LINENO: result: no" >&5 2600echo "${ECHO_T}no" >&6; } 2601fi 2602 2603 2604 test -n "$CC" && break 2605 done 2606fi 2607if test -z "$CC"; then 2608 ac_ct_CC=$CC 2609 for ac_prog in cl.exe 2610do 2611 # Extract the first word of "$ac_prog", so it can be a program name with args. 2612set dummy $ac_prog; ac_word=$2 2613{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2615if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2616 echo $ECHO_N "(cached) $ECHO_C" >&6 2617else 2618 if test -n "$ac_ct_CC"; then 2619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2620else 2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2622for as_dir in $PATH 2623do 2624 IFS=$as_save_IFS 2625 test -z "$as_dir" && as_dir=. 2626 for ac_exec_ext in '' $ac_executable_extensions; do 2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2628 ac_cv_prog_ac_ct_CC="$ac_prog" 2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2630 break 2 2631 fi 2632done 2633done 2634IFS=$as_save_IFS 2635 2636fi 2637fi 2638ac_ct_CC=$ac_cv_prog_ac_ct_CC 2639if test -n "$ac_ct_CC"; then 2640 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2641echo "${ECHO_T}$ac_ct_CC" >&6; } 2642else 2643 { echo "$as_me:$LINENO: result: no" >&5 2644echo "${ECHO_T}no" >&6; } 2645fi 2646 2647 2648 test -n "$ac_ct_CC" && break 2649done 2650 2651 if test "x$ac_ct_CC" = x; then 2652 CC="" 2653 else 2654 case $cross_compiling:$ac_tool_warned in 2655yes:) 2656{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2657whose name does not start with the host triplet. If you think this 2658configuration is useful to you, please write to autoconf@gnu.org." >&5 2659echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2660whose name does not start with the host triplet. If you think this 2661configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2662ac_tool_warned=yes ;; 2663esac 2664 CC=$ac_ct_CC 2665 fi 2666fi 2667 2668fi 2669 2670 2671test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2672See \`config.log' for more details." >&5 2673echo "$as_me: error: no acceptable C compiler found in \$PATH 2674See \`config.log' for more details." >&2;} 2675 { (exit 1); exit 1; }; } 2676 2677# Provide some information about the compiler. 2678echo "$as_me:$LINENO: checking for C compiler version" >&5 2679ac_compiler=`set X $ac_compile; echo $2` 2680{ (ac_try="$ac_compiler --version >&5" 2681case "(($ac_try" in 2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2683 *) ac_try_echo=$ac_try;; 2684esac 2685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2686 (eval "$ac_compiler --version >&5") 2>&5 2687 ac_status=$? 2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2689 (exit $ac_status); } 2690{ (ac_try="$ac_compiler -v >&5" 2691case "(($ac_try" in 2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2693 *) ac_try_echo=$ac_try;; 2694esac 2695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2696 (eval "$ac_compiler -v >&5") 2>&5 2697 ac_status=$? 2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2699 (exit $ac_status); } 2700{ (ac_try="$ac_compiler -V >&5" 2701case "(($ac_try" in 2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2703 *) ac_try_echo=$ac_try;; 2704esac 2705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2706 (eval "$ac_compiler -V >&5") 2>&5 2707 ac_status=$? 2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2709 (exit $ac_status); } 2710 2711cat >conftest.$ac_ext <<_ACEOF 2712/* confdefs.h. */ 2713_ACEOF 2714cat confdefs.h >>conftest.$ac_ext 2715cat >>conftest.$ac_ext <<_ACEOF 2716/* end confdefs.h. */ 2717 2718int 2719main () 2720{ 2721 2722 ; 2723 return 0; 2724} 2725_ACEOF 2726ac_clean_files_save=$ac_clean_files 2727ac_clean_files="$ac_clean_files a.out a.exe b.out" 2728# Try to create an executable without -o first, disregard a.out. 2729# It will help us diagnose broken compilers, and finding out an intuition 2730# of exeext. 2731{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2732echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2733ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2734# 2735# List of possible output files, starting from the most likely. 2736# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2737# only as a last resort. b.out is created by i960 compilers. 2738ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2739# 2740# The IRIX 6 linker writes into existing files which may not be 2741# executable, retaining their permissions. Remove them first so a 2742# subsequent execution test works. 2743ac_rmfiles= 2744for ac_file in $ac_files 2745do 2746 case $ac_file in 2747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2748 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2749 esac 2750done 2751rm -f $ac_rmfiles 2752 2753if { (ac_try="$ac_link_default" 2754case "(($ac_try" in 2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2756 *) ac_try_echo=$ac_try;; 2757esac 2758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2759 (eval "$ac_link_default") 2>&5 2760 ac_status=$? 2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2762 (exit $ac_status); }; then 2763 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2764# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2765# in a Makefile. We should not override ac_cv_exeext if it was cached, 2766# so that the user can short-circuit this test for compilers unknown to 2767# Autoconf. 2768for ac_file in $ac_files 2769do 2770 test -f "$ac_file" || continue 2771 case $ac_file in 2772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2773 ;; 2774 [ab].out ) 2775 # We found the default executable, but exeext='' is most 2776 # certainly right. 2777 break;; 2778 *.* ) 2779 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2780 then :; else 2781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2782 fi 2783 # We set ac_cv_exeext here because the later test for it is not 2784 # safe: cross compilers may not add the suffix if given an `-o' 2785 # argument, so we may need to know it at that point already. 2786 # Even if this section looks crufty: it has the advantage of 2787 # actually working. 2788 break;; 2789 * ) 2790 break;; 2791 esac 2792done 2793test "$ac_cv_exeext" = no && ac_cv_exeext= 2794 2795else 2796 echo "$as_me: failed program was:" >&5 2797sed 's/^/| /' conftest.$ac_ext >&5 2798 2799{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2800See \`config.log' for more details." >&5 2801echo "$as_me: error: C compiler cannot create executables 2802See \`config.log' for more details." >&2;} 2803 { (exit 77); exit 77; }; } 2804fi 2805 2806ac_exeext=$ac_cv_exeext 2807{ echo "$as_me:$LINENO: result: $ac_file" >&5 2808echo "${ECHO_T}$ac_file" >&6; } 2809 2810# Check that the compiler produces executables we can run. If not, either 2811# the compiler is broken, or we cross compile. 2812{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2813echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2814# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2815# If not cross compiling, check that we can run a simple program. 2816if test "$cross_compiling" != yes; then 2817 if { ac_try='./$ac_file' 2818 { (case "(($ac_try" in 2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2820 *) ac_try_echo=$ac_try;; 2821esac 2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2823 (eval "$ac_try") 2>&5 2824 ac_status=$? 2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2826 (exit $ac_status); }; }; then 2827 cross_compiling=no 2828 else 2829 if test "$cross_compiling" = maybe; then 2830 cross_compiling=yes 2831 else 2832 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2833If you meant to cross compile, use \`--host'. 2834See \`config.log' for more details." >&5 2835echo "$as_me: error: cannot run C compiled programs. 2836If you meant to cross compile, use \`--host'. 2837See \`config.log' for more details." >&2;} 2838 { (exit 1); exit 1; }; } 2839 fi 2840 fi 2841fi 2842{ echo "$as_me:$LINENO: result: yes" >&5 2843echo "${ECHO_T}yes" >&6; } 2844 2845rm -f a.out a.exe conftest$ac_cv_exeext b.out 2846ac_clean_files=$ac_clean_files_save 2847# Check that the compiler produces executables we can run. If not, either 2848# the compiler is broken, or we cross compile. 2849{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2850echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2851{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2852echo "${ECHO_T}$cross_compiling" >&6; } 2853 2854{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2855echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2856if { (ac_try="$ac_link" 2857case "(($ac_try" in 2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2859 *) ac_try_echo=$ac_try;; 2860esac 2861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2862 (eval "$ac_link") 2>&5 2863 ac_status=$? 2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2865 (exit $ac_status); }; then 2866 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2867# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2868# work properly (i.e., refer to `conftest.exe'), while it won't with 2869# `rm'. 2870for ac_file in conftest.exe conftest conftest.*; do 2871 test -f "$ac_file" || continue 2872 case $ac_file in 2873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2874 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2875 break;; 2876 * ) break;; 2877 esac 2878done 2879else 2880 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2881See \`config.log' for more details." >&5 2882echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2883See \`config.log' for more details." >&2;} 2884 { (exit 1); exit 1; }; } 2885fi 2886 2887rm -f conftest$ac_cv_exeext 2888{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2889echo "${ECHO_T}$ac_cv_exeext" >&6; } 2890 2891rm -f conftest.$ac_ext 2892EXEEXT=$ac_cv_exeext 2893ac_exeext=$EXEEXT 2894{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2895echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2896if test "${ac_cv_objext+set}" = set; then 2897 echo $ECHO_N "(cached) $ECHO_C" >&6 2898else 2899 cat >conftest.$ac_ext <<_ACEOF 2900/* confdefs.h. */ 2901_ACEOF 2902cat confdefs.h >>conftest.$ac_ext 2903cat >>conftest.$ac_ext <<_ACEOF 2904/* end confdefs.h. */ 2905 2906int 2907main () 2908{ 2909 2910 ; 2911 return 0; 2912} 2913_ACEOF 2914rm -f conftest.o conftest.obj 2915if { (ac_try="$ac_compile" 2916case "(($ac_try" in 2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2918 *) ac_try_echo=$ac_try;; 2919esac 2920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2921 (eval "$ac_compile") 2>&5 2922 ac_status=$? 2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2924 (exit $ac_status); }; then 2925 for ac_file in conftest.o conftest.obj conftest.*; do 2926 test -f "$ac_file" || continue; 2927 case $ac_file in 2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2929 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2930 break;; 2931 esac 2932done 2933else 2934 echo "$as_me: failed program was:" >&5 2935sed 's/^/| /' conftest.$ac_ext >&5 2936 2937{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2938See \`config.log' for more details." >&5 2939echo "$as_me: error: cannot compute suffix of object files: cannot compile 2940See \`config.log' for more details." >&2;} 2941 { (exit 1); exit 1; }; } 2942fi 2943 2944rm -f conftest.$ac_cv_objext conftest.$ac_ext 2945fi 2946{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2947echo "${ECHO_T}$ac_cv_objext" >&6; } 2948OBJEXT=$ac_cv_objext 2949ac_objext=$OBJEXT 2950{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2951echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2952if test "${ac_cv_c_compiler_gnu+set}" = set; then 2953 echo $ECHO_N "(cached) $ECHO_C" >&6 2954else 2955 cat >conftest.$ac_ext <<_ACEOF 2956/* confdefs.h. */ 2957_ACEOF 2958cat confdefs.h >>conftest.$ac_ext 2959cat >>conftest.$ac_ext <<_ACEOF 2960/* end confdefs.h. */ 2961 2962int 2963main () 2964{ 2965#ifndef __GNUC__ 2966 choke me 2967#endif 2968 2969 ; 2970 return 0; 2971} 2972_ACEOF 2973rm -f conftest.$ac_objext 2974if { (ac_try="$ac_compile" 2975case "(($ac_try" in 2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2977 *) ac_try_echo=$ac_try;; 2978esac 2979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2980 (eval "$ac_compile") 2>conftest.er1 2981 ac_status=$? 2982 grep -v '^ *+' conftest.er1 >conftest.err 2983 rm -f conftest.er1 2984 cat conftest.err >&5 2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2986 (exit $ac_status); } && 2987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2988 { (case "(($ac_try" in 2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2990 *) ac_try_echo=$ac_try;; 2991esac 2992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2993 (eval "$ac_try") 2>&5 2994 ac_status=$? 2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2996 (exit $ac_status); }; } && 2997 { ac_try='test -s conftest.$ac_objext' 2998 { (case "(($ac_try" in 2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3000 *) ac_try_echo=$ac_try;; 3001esac 3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3003 (eval "$ac_try") 2>&5 3004 ac_status=$? 3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3006 (exit $ac_status); }; }; then 3007 ac_compiler_gnu=yes 3008else 3009 echo "$as_me: failed program was:" >&5 3010sed 's/^/| /' conftest.$ac_ext >&5 3011 3012 ac_compiler_gnu=no 3013fi 3014 3015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3016ac_cv_c_compiler_gnu=$ac_compiler_gnu 3017 3018fi 3019{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3020echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3021GCC=`test $ac_compiler_gnu = yes && echo yes` 3022ac_test_CFLAGS=${CFLAGS+set} 3023ac_save_CFLAGS=$CFLAGS 3024{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3025echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3026if test "${ac_cv_prog_cc_g+set}" = set; then 3027 echo $ECHO_N "(cached) $ECHO_C" >&6 3028else 3029 ac_save_c_werror_flag=$ac_c_werror_flag 3030 ac_c_werror_flag=yes 3031 ac_cv_prog_cc_g=no 3032 CFLAGS="-g" 3033 cat >conftest.$ac_ext <<_ACEOF 3034/* confdefs.h. */ 3035_ACEOF 3036cat confdefs.h >>conftest.$ac_ext 3037cat >>conftest.$ac_ext <<_ACEOF 3038/* end confdefs.h. */ 3039 3040int 3041main () 3042{ 3043 3044 ; 3045 return 0; 3046} 3047_ACEOF 3048rm -f conftest.$ac_objext 3049if { (ac_try="$ac_compile" 3050case "(($ac_try" in 3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3052 *) ac_try_echo=$ac_try;; 3053esac 3054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3055 (eval "$ac_compile") 2>conftest.er1 3056 ac_status=$? 3057 grep -v '^ *+' conftest.er1 >conftest.err 3058 rm -f conftest.er1 3059 cat conftest.err >&5 3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3061 (exit $ac_status); } && 3062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3063 { (case "(($ac_try" in 3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3065 *) ac_try_echo=$ac_try;; 3066esac 3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3068 (eval "$ac_try") 2>&5 3069 ac_status=$? 3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3071 (exit $ac_status); }; } && 3072 { ac_try='test -s conftest.$ac_objext' 3073 { (case "(($ac_try" in 3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3075 *) ac_try_echo=$ac_try;; 3076esac 3077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3078 (eval "$ac_try") 2>&5 3079 ac_status=$? 3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3081 (exit $ac_status); }; }; then 3082 ac_cv_prog_cc_g=yes 3083else 3084 echo "$as_me: failed program was:" >&5 3085sed 's/^/| /' conftest.$ac_ext >&5 3086 3087 CFLAGS="" 3088 cat >conftest.$ac_ext <<_ACEOF 3089/* confdefs.h. */ 3090_ACEOF 3091cat confdefs.h >>conftest.$ac_ext 3092cat >>conftest.$ac_ext <<_ACEOF 3093/* end confdefs.h. */ 3094 3095int 3096main () 3097{ 3098 3099 ; 3100 return 0; 3101} 3102_ACEOF 3103rm -f conftest.$ac_objext 3104if { (ac_try="$ac_compile" 3105case "(($ac_try" in 3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3107 *) ac_try_echo=$ac_try;; 3108esac 3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3110 (eval "$ac_compile") 2>conftest.er1 3111 ac_status=$? 3112 grep -v '^ *+' conftest.er1 >conftest.err 3113 rm -f conftest.er1 3114 cat conftest.err >&5 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); } && 3117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3118 { (case "(($ac_try" in 3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3120 *) ac_try_echo=$ac_try;; 3121esac 3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3123 (eval "$ac_try") 2>&5 3124 ac_status=$? 3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3126 (exit $ac_status); }; } && 3127 { ac_try='test -s conftest.$ac_objext' 3128 { (case "(($ac_try" in 3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3130 *) ac_try_echo=$ac_try;; 3131esac 3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3133 (eval "$ac_try") 2>&5 3134 ac_status=$? 3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3136 (exit $ac_status); }; }; then 3137 : 3138else 3139 echo "$as_me: failed program was:" >&5 3140sed 's/^/| /' conftest.$ac_ext >&5 3141 3142 ac_c_werror_flag=$ac_save_c_werror_flag 3143 CFLAGS="-g" 3144 cat >conftest.$ac_ext <<_ACEOF 3145/* confdefs.h. */ 3146_ACEOF 3147cat confdefs.h >>conftest.$ac_ext 3148cat >>conftest.$ac_ext <<_ACEOF 3149/* end confdefs.h. */ 3150 3151int 3152main () 3153{ 3154 3155 ; 3156 return 0; 3157} 3158_ACEOF 3159rm -f conftest.$ac_objext 3160if { (ac_try="$ac_compile" 3161case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164esac 3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3166 (eval "$ac_compile") 2>conftest.er1 3167 ac_status=$? 3168 grep -v '^ *+' conftest.er1 >conftest.err 3169 rm -f conftest.er1 3170 cat conftest.err >&5 3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3172 (exit $ac_status); } && 3173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3174 { (case "(($ac_try" in 3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3176 *) ac_try_echo=$ac_try;; 3177esac 3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3179 (eval "$ac_try") 2>&5 3180 ac_status=$? 3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3182 (exit $ac_status); }; } && 3183 { ac_try='test -s conftest.$ac_objext' 3184 { (case "(($ac_try" in 3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3186 *) ac_try_echo=$ac_try;; 3187esac 3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3189 (eval "$ac_try") 2>&5 3190 ac_status=$? 3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3192 (exit $ac_status); }; }; then 3193 ac_cv_prog_cc_g=yes 3194else 3195 echo "$as_me: failed program was:" >&5 3196sed 's/^/| /' conftest.$ac_ext >&5 3197 3198 3199fi 3200 3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3202fi 3203 3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3205fi 3206 3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3208 ac_c_werror_flag=$ac_save_c_werror_flag 3209fi 3210{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3211echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3212if test "$ac_test_CFLAGS" = set; then 3213 CFLAGS=$ac_save_CFLAGS 3214elif test $ac_cv_prog_cc_g = yes; then 3215 if test "$GCC" = yes; then 3216 CFLAGS="-g -O2" 3217 else 3218 CFLAGS="-g" 3219 fi 3220else 3221 if test "$GCC" = yes; then 3222 CFLAGS="-O2" 3223 else 3224 CFLAGS= 3225 fi 3226fi 3227{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3228echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3229if test "${ac_cv_prog_cc_c89+set}" = set; then 3230 echo $ECHO_N "(cached) $ECHO_C" >&6 3231else 3232 ac_cv_prog_cc_c89=no 3233ac_save_CC=$CC 3234cat >conftest.$ac_ext <<_ACEOF 3235/* confdefs.h. */ 3236_ACEOF 3237cat confdefs.h >>conftest.$ac_ext 3238cat >>conftest.$ac_ext <<_ACEOF 3239/* end confdefs.h. */ 3240#include <stdarg.h> 3241#include <stdio.h> 3242#include <sys/types.h> 3243#include <sys/stat.h> 3244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3245struct buf { int x; }; 3246FILE * (*rcsopen) (struct buf *, struct stat *, int); 3247static char *e (p, i) 3248 char **p; 3249 int i; 3250{ 3251 return p[i]; 3252} 3253static char *f (char * (*g) (char **, int), char **p, ...) 3254{ 3255 char *s; 3256 va_list v; 3257 va_start (v,p); 3258 s = g (p, va_arg (v,int)); 3259 va_end (v); 3260 return s; 3261} 3262 3263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3264 function prototypes and stuff, but not '\xHH' hex character constants. 3265 These don't provoke an error unfortunately, instead are silently treated 3266 as 'x'. The following induces an error, until -std is added to get 3267 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3268 array size at least. It's necessary to write '\x00'==0 to get something 3269 that's true only with -std. */ 3270int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3271 3272/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3273 inside strings and character constants. */ 3274#define FOO(x) 'x' 3275int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3276 3277int test (int i, double x); 3278struct s1 {int (*f) (int a);}; 3279struct s2 {int (*f) (double a);}; 3280int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3281int argc; 3282char **argv; 3283int 3284main () 3285{ 3286return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3287 ; 3288 return 0; 3289} 3290_ACEOF 3291for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3292 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3293do 3294 CC="$ac_save_CC $ac_arg" 3295 rm -f conftest.$ac_objext 3296if { (ac_try="$ac_compile" 3297case "(($ac_try" in 3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3299 *) ac_try_echo=$ac_try;; 3300esac 3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3302 (eval "$ac_compile") 2>conftest.er1 3303 ac_status=$? 3304 grep -v '^ *+' conftest.er1 >conftest.err 3305 rm -f conftest.er1 3306 cat conftest.err >&5 3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3308 (exit $ac_status); } && 3309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3310 { (case "(($ac_try" in 3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3312 *) ac_try_echo=$ac_try;; 3313esac 3314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3315 (eval "$ac_try") 2>&5 3316 ac_status=$? 3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3318 (exit $ac_status); }; } && 3319 { ac_try='test -s conftest.$ac_objext' 3320 { (case "(($ac_try" in 3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3322 *) ac_try_echo=$ac_try;; 3323esac 3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3325 (eval "$ac_try") 2>&5 3326 ac_status=$? 3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3328 (exit $ac_status); }; }; then 3329 ac_cv_prog_cc_c89=$ac_arg 3330else 3331 echo "$as_me: failed program was:" >&5 3332sed 's/^/| /' conftest.$ac_ext >&5 3333 3334 3335fi 3336 3337rm -f core conftest.err conftest.$ac_objext 3338 test "x$ac_cv_prog_cc_c89" != "xno" && break 3339done 3340rm -f conftest.$ac_ext 3341CC=$ac_save_CC 3342 3343fi 3344# AC_CACHE_VAL 3345case "x$ac_cv_prog_cc_c89" in 3346 x) 3347 { echo "$as_me:$LINENO: result: none needed" >&5 3348echo "${ECHO_T}none needed" >&6; } ;; 3349 xno) 3350 { echo "$as_me:$LINENO: result: unsupported" >&5 3351echo "${ECHO_T}unsupported" >&6; } ;; 3352 *) 3353 CC="$CC $ac_cv_prog_cc_c89" 3354 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3355echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3356esac 3357 3358 3359ac_ext=c 3360ac_cpp='$CPP $CPPFLAGS' 3361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3363ac_compiler_gnu=$ac_cv_c_compiler_gnu 3364DEPDIR="${am__leading_dot}deps" 3365 3366ac_config_commands="$ac_config_commands depfiles" 3367 3368 3369am_make=${MAKE-make} 3370cat > confinc << 'END' 3371am__doit: 3372 @echo done 3373.PHONY: am__doit 3374END 3375# If we don't find an include directive, just comment out the code. 3376{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3377echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3378am__include="#" 3379am__quote= 3380_am_result=none 3381# First try GNU make style include. 3382echo "include confinc" > confmf 3383# We grep out `Entering directory' and `Leaving directory' 3384# messages which can occur if `w' ends up in MAKEFLAGS. 3385# In particular we don't look at `^make:' because GNU make might 3386# be invoked under some other name (usually "gmake"), in which 3387# case it prints its new name instead of `make'. 3388if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3389 am__include=include 3390 am__quote= 3391 _am_result=GNU 3392fi 3393# Now try BSD make style include. 3394if test "$am__include" = "#"; then 3395 echo '.include "confinc"' > confmf 3396 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3397 am__include=.include 3398 am__quote="\"" 3399 _am_result=BSD 3400 fi 3401fi 3402 3403 3404{ echo "$as_me:$LINENO: result: $_am_result" >&5 3405echo "${ECHO_T}$_am_result" >&6; } 3406rm -f confinc confmf 3407 3408# Check whether --enable-dependency-tracking was given. 3409if test "${enable_dependency_tracking+set}" = set; then 3410 enableval=$enable_dependency_tracking; 3411fi 3412 3413if test "x$enable_dependency_tracking" != xno; then 3414 am_depcomp="$ac_aux_dir/depcomp" 3415 AMDEPBACKSLASH='\' 3416fi 3417 3418 3419if test "x$enable_dependency_tracking" != xno; then 3420 AMDEP_TRUE= 3421 AMDEP_FALSE='#' 3422else 3423 AMDEP_TRUE='#' 3424 AMDEP_FALSE= 3425fi 3426 3427 3428 3429 3430depcc="$CC" am_compiler_list= 3431 3432{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3433echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3434if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3435 echo $ECHO_N "(cached) $ECHO_C" >&6 3436else 3437 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3438 # We make a subdir and do the tests there. Otherwise we can end up 3439 # making bogus files that we don't know about and never remove. For 3440 # instance it was reported that on HP-UX the gcc test will end up 3441 # making a dummy file named `D' -- because `-MD' means `put the output 3442 # in D'. 3443 mkdir conftest.dir 3444 # Copy depcomp to subdir because otherwise we won't find it if we're 3445 # using a relative directory. 3446 cp "$am_depcomp" conftest.dir 3447 cd conftest.dir 3448 # We will build objects and dependencies in a subdirectory because 3449 # it helps to detect inapplicable dependency modes. For instance 3450 # both Tru64's cc and ICC support -MD to output dependencies as a 3451 # side effect of compilation, but ICC will put the dependencies in 3452 # the current directory while Tru64 will put them in the object 3453 # directory. 3454 mkdir sub 3455 3456 am_cv_CC_dependencies_compiler_type=none 3457 if test "$am_compiler_list" = ""; then 3458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3459 fi 3460 for depmode in $am_compiler_list; do 3461 # Setup a source with many dependencies, because some compilers 3462 # like to wrap large dependency lists on column 80 (with \), and 3463 # we should not choose a depcomp mode which is confused by this. 3464 # 3465 # We need to recreate these files for each test, as the compiler may 3466 # overwrite some of them when testing with obscure command lines. 3467 # This happens at least with the AIX C compiler. 3468 : > sub/conftest.c 3469 for i in 1 2 3 4 5 6; do 3470 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3471 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3472 # Solaris 8's {/usr,}/bin/sh. 3473 touch sub/conftst$i.h 3474 done 3475 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3476 3477 case $depmode in 3478 nosideeffect) 3479 # after this tag, mechanisms are not by side-effect, so they'll 3480 # only be used when explicitly requested 3481 if test "x$enable_dependency_tracking" = xyes; then 3482 continue 3483 else 3484 break 3485 fi 3486 ;; 3487 none) break ;; 3488 esac 3489 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3490 # mode. It turns out that the SunPro C++ compiler does not properly 3491 # handle `-M -o', and we need to detect this. 3492 if depmode=$depmode \ 3493 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3495 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3496 >/dev/null 2>conftest.err && 3497 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3498 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3499 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3500 # icc doesn't choke on unknown options, it will just issue warnings 3501 # or remarks (even with -Werror). So we grep stderr for any message 3502 # that says an option was ignored or not supported. 3503 # When given -MP, icc 7.0 and 7.1 complain thusly: 3504 # icc: Command line warning: ignoring option '-M'; no argument required 3505 # The diagnosis changed in icc 8.0: 3506 # icc: Command line remark: option '-MP' not supported 3507 if (grep 'ignoring option' conftest.err || 3508 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3509 am_cv_CC_dependencies_compiler_type=$depmode 3510 break 3511 fi 3512 fi 3513 done 3514 3515 cd .. 3516 rm -rf conftest.dir 3517else 3518 am_cv_CC_dependencies_compiler_type=none 3519fi 3520 3521fi 3522{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3523echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3524CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3525 3526 3527 3528if 3529 test "x$enable_dependency_tracking" != xno \ 3530 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3531 am__fastdepCC_TRUE= 3532 am__fastdepCC_FALSE='#' 3533else 3534 am__fastdepCC_TRUE='#' 3535 am__fastdepCC_FALSE= 3536fi 3537 3538 3539 3540 3541 3542 MKINSTALLDIRS= 3543 if test -n "$ac_aux_dir"; then 3544 case "$ac_aux_dir" in 3545 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 3546 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 3547 esac 3548 fi 3549 if test -z "$MKINSTALLDIRS"; then 3550 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 3551 fi 3552 3553 3554 3555 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 3556echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 3557 # Check whether --enable-nls was given. 3558if test "${enable_nls+set}" = set; then 3559 enableval=$enable_nls; USE_NLS=$enableval 3560else 3561 USE_NLS=yes 3562fi 3563 3564 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 3565echo "${ECHO_T}$USE_NLS" >&6; } 3566 3567 3568 3569 3570 3571 3572# Prepare PATH_SEPARATOR. 3573# The user is always right. 3574if test "${PATH_SEPARATOR+set}" != set; then 3575 echo "#! /bin/sh" >conf$$.sh 3576 echo "exit 0" >>conf$$.sh 3577 chmod +x conf$$.sh 3578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3579 PATH_SEPARATOR=';' 3580 else 3581 PATH_SEPARATOR=: 3582 fi 3583 rm -f conf$$.sh 3584fi 3585 3586# Find out how to test for executable files. Don't use a zero-byte file, 3587# as systems may use methods other than mode bits to determine executability. 3588cat >conf$$.file <<_ASEOF 3589#! /bin/sh 3590exit 0 3591_ASEOF 3592chmod +x conf$$.file 3593if test -x conf$$.file >/dev/null 2>&1; then 3594 ac_executable_p="test -x" 3595else 3596 ac_executable_p="test -f" 3597fi 3598rm -f conf$$.file 3599 3600# Extract the first word of "msgfmt", so it can be a program name with args. 3601set dummy msgfmt; ac_word=$2 3602{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3604if test "${ac_cv_path_MSGFMT+set}" = set; then 3605 echo $ECHO_N "(cached) $ECHO_C" >&6 3606else 3607 case "$MSGFMT" in 3608 [\\/]* | ?:[\\/]*) 3609 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 3610 ;; 3611 *) 3612 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3613 for ac_dir in $PATH; do 3614 IFS="$ac_save_IFS" 3615 test -z "$ac_dir" && ac_dir=. 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3618 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3619 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 3620 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3621 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 3622 break 2 3623 fi 3624 fi 3625 done 3626 done 3627 IFS="$ac_save_IFS" 3628 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 3629 ;; 3630esac 3631fi 3632MSGFMT="$ac_cv_path_MSGFMT" 3633if test "$MSGFMT" != ":"; then 3634 { echo "$as_me:$LINENO: result: $MSGFMT" >&5 3635echo "${ECHO_T}$MSGFMT" >&6; } 3636else 3637 { echo "$as_me:$LINENO: result: no" >&5 3638echo "${ECHO_T}no" >&6; } 3639fi 3640 3641 # Extract the first word of "gmsgfmt", so it can be a program name with args. 3642set dummy gmsgfmt; ac_word=$2 3643{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3645if test "${ac_cv_path_GMSGFMT+set}" = set; then 3646 echo $ECHO_N "(cached) $ECHO_C" >&6 3647else 3648 case $GMSGFMT in 3649 [\\/]* | ?:[\\/]*) 3650 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 3651 ;; 3652 *) 3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3654for as_dir in $PATH 3655do 3656 IFS=$as_save_IFS 3657 test -z "$as_dir" && as_dir=. 3658 for ac_exec_ext in '' $ac_executable_extensions; do 3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 3660 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 3661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3662 break 2 3663 fi 3664done 3665done 3666IFS=$as_save_IFS 3667 3668 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 3669 ;; 3670esac 3671fi 3672GMSGFMT=$ac_cv_path_GMSGFMT 3673if test -n "$GMSGFMT"; then 3674 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 3675echo "${ECHO_T}$GMSGFMT" >&6; } 3676else 3677 { echo "$as_me:$LINENO: result: no" >&5 3678echo "${ECHO_T}no" >&6; } 3679fi 3680 3681 3682 3683 3684# Prepare PATH_SEPARATOR. 3685# The user is always right. 3686if test "${PATH_SEPARATOR+set}" != set; then 3687 echo "#! /bin/sh" >conf$$.sh 3688 echo "exit 0" >>conf$$.sh 3689 chmod +x conf$$.sh 3690 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3691 PATH_SEPARATOR=';' 3692 else 3693 PATH_SEPARATOR=: 3694 fi 3695 rm -f conf$$.sh 3696fi 3697 3698# Find out how to test for executable files. Don't use a zero-byte file, 3699# as systems may use methods other than mode bits to determine executability. 3700cat >conf$$.file <<_ASEOF 3701#! /bin/sh 3702exit 0 3703_ASEOF 3704chmod +x conf$$.file 3705if test -x conf$$.file >/dev/null 2>&1; then 3706 ac_executable_p="test -x" 3707else 3708 ac_executable_p="test -f" 3709fi 3710rm -f conf$$.file 3711 3712# Extract the first word of "xgettext", so it can be a program name with args. 3713set dummy xgettext; ac_word=$2 3714{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3716if test "${ac_cv_path_XGETTEXT+set}" = set; then 3717 echo $ECHO_N "(cached) $ECHO_C" >&6 3718else 3719 case "$XGETTEXT" in 3720 [\\/]* | ?:[\\/]*) 3721 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 3722 ;; 3723 *) 3724 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3725 for ac_dir in $PATH; do 3726 IFS="$ac_save_IFS" 3727 test -z "$ac_dir" && ac_dir=. 3728 for ac_exec_ext in '' $ac_executable_extensions; do 3729 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3730 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3731 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 3732 (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 3733 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 3734 break 2 3735 fi 3736 fi 3737 done 3738 done 3739 IFS="$ac_save_IFS" 3740 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 3741 ;; 3742esac 3743fi 3744XGETTEXT="$ac_cv_path_XGETTEXT" 3745if test "$XGETTEXT" != ":"; then 3746 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 3747echo "${ECHO_T}$XGETTEXT" >&6; } 3748else 3749 { echo "$as_me:$LINENO: result: no" >&5 3750echo "${ECHO_T}no" >&6; } 3751fi 3752 3753 rm -f messages.po 3754 3755 3756# Prepare PATH_SEPARATOR. 3757# The user is always right. 3758if test "${PATH_SEPARATOR+set}" != set; then 3759 echo "#! /bin/sh" >conf$$.sh 3760 echo "exit 0" >>conf$$.sh 3761 chmod +x conf$$.sh 3762 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3763 PATH_SEPARATOR=';' 3764 else 3765 PATH_SEPARATOR=: 3766 fi 3767 rm -f conf$$.sh 3768fi 3769 3770# Find out how to test for executable files. Don't use a zero-byte file, 3771# as systems may use methods other than mode bits to determine executability. 3772cat >conf$$.file <<_ASEOF 3773#! /bin/sh 3774exit 0 3775_ASEOF 3776chmod +x conf$$.file 3777if test -x conf$$.file >/dev/null 2>&1; then 3778 ac_executable_p="test -x" 3779else 3780 ac_executable_p="test -f" 3781fi 3782rm -f conf$$.file 3783 3784# Extract the first word of "msgmerge", so it can be a program name with args. 3785set dummy msgmerge; ac_word=$2 3786{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3788if test "${ac_cv_path_MSGMERGE+set}" = set; then 3789 echo $ECHO_N "(cached) $ECHO_C" >&6 3790else 3791 case "$MSGMERGE" in 3792 [\\/]* | ?:[\\/]*) 3793 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 3794 ;; 3795 *) 3796 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 3797 for ac_dir in $PATH; do 3798 IFS="$ac_save_IFS" 3799 test -z "$ac_dir" && ac_dir=. 3800 for ac_exec_ext in '' $ac_executable_extensions; do 3801 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 3802 echo "$as_me: trying $ac_dir/$ac_word..." >&5 3803 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 3804 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 3805 break 2 3806 fi 3807 fi 3808 done 3809 done 3810 IFS="$ac_save_IFS" 3811 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 3812 ;; 3813esac 3814fi 3815MSGMERGE="$ac_cv_path_MSGMERGE" 3816if test "$MSGMERGE" != ":"; then 3817 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 3818echo "${ECHO_T}$MSGMERGE" >&6; } 3819else 3820 { echo "$as_me:$LINENO: result: no" >&5 3821echo "${ECHO_T}no" >&6; } 3822fi 3823 3824 3825 if test "$GMSGFMT" != ":"; then 3826 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 3827 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 3828 : ; 3829 else 3830 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 3831 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 3832echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 3833 GMSGFMT=":" 3834 fi 3835 fi 3836 3837 if test "$XGETTEXT" != ":"; then 3838 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 3839 (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 3840 : ; 3841 else 3842 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 3843echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } 3844 XGETTEXT=":" 3845 fi 3846 rm -f messages.po 3847 fi 3848 3849 ac_config_commands="$ac_config_commands default-1" 3850 3851 3852 3853ac_ext=c 3854ac_cpp='$CPP $CPPFLAGS' 3855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3857ac_compiler_gnu=$ac_cv_c_compiler_gnu 3858{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3859echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3860# On Suns, sometimes $CPP names a directory. 3861if test -n "$CPP" && test -d "$CPP"; then 3862 CPP= 3863fi 3864if test -z "$CPP"; then 3865 if test "${ac_cv_prog_CPP+set}" = set; then 3866 echo $ECHO_N "(cached) $ECHO_C" >&6 3867else 3868 # Double quotes because CPP needs to be expanded 3869 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3870 do 3871 ac_preproc_ok=false 3872for ac_c_preproc_warn_flag in '' yes 3873do 3874 # Use a header file that comes with gcc, so configuring glibc 3875 # with a fresh cross-compiler works. 3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3877 # <limits.h> exists even on freestanding compilers. 3878 # On the NeXT, cc -E runs the code through the compiler's parser, 3879 # not just through cpp. "Syntax error" is here to catch this case. 3880 cat >conftest.$ac_ext <<_ACEOF 3881/* confdefs.h. */ 3882_ACEOF 3883cat confdefs.h >>conftest.$ac_ext 3884cat >>conftest.$ac_ext <<_ACEOF 3885/* end confdefs.h. */ 3886#ifdef __STDC__ 3887# include <limits.h> 3888#else 3889# include <assert.h> 3890#endif 3891 Syntax error 3892_ACEOF 3893if { (ac_try="$ac_cpp conftest.$ac_ext" 3894case "(($ac_try" in 3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3896 *) ac_try_echo=$ac_try;; 3897esac 3898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3900 ac_status=$? 3901 grep -v '^ *+' conftest.er1 >conftest.err 3902 rm -f conftest.er1 3903 cat conftest.err >&5 3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3905 (exit $ac_status); } >/dev/null; then 3906 if test -s conftest.err; then 3907 ac_cpp_err=$ac_c_preproc_warn_flag 3908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3909 else 3910 ac_cpp_err= 3911 fi 3912else 3913 ac_cpp_err=yes 3914fi 3915if test -z "$ac_cpp_err"; then 3916 : 3917else 3918 echo "$as_me: failed program was:" >&5 3919sed 's/^/| /' conftest.$ac_ext >&5 3920 3921 # Broken: fails on valid input. 3922continue 3923fi 3924 3925rm -f conftest.err conftest.$ac_ext 3926 3927 # OK, works on sane cases. Now check whether nonexistent headers 3928 # can be detected and how. 3929 cat >conftest.$ac_ext <<_ACEOF 3930/* confdefs.h. */ 3931_ACEOF 3932cat confdefs.h >>conftest.$ac_ext 3933cat >>conftest.$ac_ext <<_ACEOF 3934/* end confdefs.h. */ 3935#include <ac_nonexistent.h> 3936_ACEOF 3937if { (ac_try="$ac_cpp conftest.$ac_ext" 3938case "(($ac_try" in 3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3940 *) ac_try_echo=$ac_try;; 3941esac 3942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3944 ac_status=$? 3945 grep -v '^ *+' conftest.er1 >conftest.err 3946 rm -f conftest.er1 3947 cat conftest.err >&5 3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3949 (exit $ac_status); } >/dev/null; then 3950 if test -s conftest.err; then 3951 ac_cpp_err=$ac_c_preproc_warn_flag 3952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3953 else 3954 ac_cpp_err= 3955 fi 3956else 3957 ac_cpp_err=yes 3958fi 3959if test -z "$ac_cpp_err"; then 3960 # Broken: success on invalid input. 3961continue 3962else 3963 echo "$as_me: failed program was:" >&5 3964sed 's/^/| /' conftest.$ac_ext >&5 3965 3966 # Passes both tests. 3967ac_preproc_ok=: 3968break 3969fi 3970 3971rm -f conftest.err conftest.$ac_ext 3972 3973done 3974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3975rm -f conftest.err conftest.$ac_ext 3976if $ac_preproc_ok; then 3977 break 3978fi 3979 3980 done 3981 ac_cv_prog_CPP=$CPP 3982 3983fi 3984 CPP=$ac_cv_prog_CPP 3985else 3986 ac_cv_prog_CPP=$CPP 3987fi 3988{ echo "$as_me:$LINENO: result: $CPP" >&5 3989echo "${ECHO_T}$CPP" >&6; } 3990ac_preproc_ok=false 3991for ac_c_preproc_warn_flag in '' yes 3992do 3993 # Use a header file that comes with gcc, so configuring glibc 3994 # with a fresh cross-compiler works. 3995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3996 # <limits.h> exists even on freestanding compilers. 3997 # On the NeXT, cc -E runs the code through the compiler's parser, 3998 # not just through cpp. "Syntax error" is here to catch this case. 3999 cat >conftest.$ac_ext <<_ACEOF 4000/* confdefs.h. */ 4001_ACEOF 4002cat confdefs.h >>conftest.$ac_ext 4003cat >>conftest.$ac_ext <<_ACEOF 4004/* end confdefs.h. */ 4005#ifdef __STDC__ 4006# include <limits.h> 4007#else 4008# include <assert.h> 4009#endif 4010 Syntax error 4011_ACEOF 4012if { (ac_try="$ac_cpp conftest.$ac_ext" 4013case "(($ac_try" in 4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4015 *) ac_try_echo=$ac_try;; 4016esac 4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4019 ac_status=$? 4020 grep -v '^ *+' conftest.er1 >conftest.err 4021 rm -f conftest.er1 4022 cat conftest.err >&5 4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4024 (exit $ac_status); } >/dev/null; then 4025 if test -s conftest.err; then 4026 ac_cpp_err=$ac_c_preproc_warn_flag 4027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4028 else 4029 ac_cpp_err= 4030 fi 4031else 4032 ac_cpp_err=yes 4033fi 4034if test -z "$ac_cpp_err"; then 4035 : 4036else 4037 echo "$as_me: failed program was:" >&5 4038sed 's/^/| /' conftest.$ac_ext >&5 4039 4040 # Broken: fails on valid input. 4041continue 4042fi 4043 4044rm -f conftest.err conftest.$ac_ext 4045 4046 # OK, works on sane cases. Now check whether nonexistent headers 4047 # can be detected and how. 4048 cat >conftest.$ac_ext <<_ACEOF 4049/* confdefs.h. */ 4050_ACEOF 4051cat confdefs.h >>conftest.$ac_ext 4052cat >>conftest.$ac_ext <<_ACEOF 4053/* end confdefs.h. */ 4054#include <ac_nonexistent.h> 4055_ACEOF 4056if { (ac_try="$ac_cpp conftest.$ac_ext" 4057case "(($ac_try" in 4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4059 *) ac_try_echo=$ac_try;; 4060esac 4061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4063 ac_status=$? 4064 grep -v '^ *+' conftest.er1 >conftest.err 4065 rm -f conftest.er1 4066 cat conftest.err >&5 4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4068 (exit $ac_status); } >/dev/null; then 4069 if test -s conftest.err; then 4070 ac_cpp_err=$ac_c_preproc_warn_flag 4071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4072 else 4073 ac_cpp_err= 4074 fi 4075else 4076 ac_cpp_err=yes 4077fi 4078if test -z "$ac_cpp_err"; then 4079 # Broken: success on invalid input. 4080continue 4081else 4082 echo "$as_me: failed program was:" >&5 4083sed 's/^/| /' conftest.$ac_ext >&5 4084 4085 # Passes both tests. 4086ac_preproc_ok=: 4087break 4088fi 4089 4090rm -f conftest.err conftest.$ac_ext 4091 4092done 4093# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4094rm -f conftest.err conftest.$ac_ext 4095if $ac_preproc_ok; then 4096 : 4097else 4098 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4099See \`config.log' for more details." >&5 4100echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4101See \`config.log' for more details." >&2;} 4102 { (exit 1); exit 1; }; } 4103fi 4104 4105ac_ext=c 4106ac_cpp='$CPP $CPPFLAGS' 4107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4109ac_compiler_gnu=$ac_cv_c_compiler_gnu 4110 4111 4112{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4113echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4114if test "${ac_cv_path_GREP+set}" = set; then 4115 echo $ECHO_N "(cached) $ECHO_C" >&6 4116else 4117 # Extract the first word of "grep ggrep" to use in msg output 4118if test -z "$GREP"; then 4119set dummy grep ggrep; ac_prog_name=$2 4120if test "${ac_cv_path_GREP+set}" = set; then 4121 echo $ECHO_N "(cached) $ECHO_C" >&6 4122else 4123 ac_path_GREP_found=false 4124# Loop through the user's path and test for each of PROGNAME-LIST 4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4126for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4127do 4128 IFS=$as_save_IFS 4129 test -z "$as_dir" && as_dir=. 4130 for ac_prog in grep ggrep; do 4131 for ac_exec_ext in '' $ac_executable_extensions; do 4132 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4133 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 4134 # Check for GNU ac_path_GREP and select it if it is found. 4135 # Check for GNU $ac_path_GREP 4136case `"$ac_path_GREP" --version 2>&1` in 4137*GNU*) 4138 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4139*) 4140 ac_count=0 4141 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4142 while : 4143 do 4144 cat "conftest.in" "conftest.in" >"conftest.tmp" 4145 mv "conftest.tmp" "conftest.in" 4146 cp "conftest.in" "conftest.nl" 4147 echo 'GREP' >> "conftest.nl" 4148 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4150 ac_count=`expr $ac_count + 1` 4151 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4152 # Best one so far, save it but keep looking for a better one 4153 ac_cv_path_GREP="$ac_path_GREP" 4154 ac_path_GREP_max=$ac_count 4155 fi 4156 # 10*(2^10) chars as input seems more than enough 4157 test $ac_count -gt 10 && break 4158 done 4159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4160esac 4161 4162 4163 $ac_path_GREP_found && break 3 4164 done 4165done 4166 4167done 4168IFS=$as_save_IFS 4169 4170 4171fi 4172 4173GREP="$ac_cv_path_GREP" 4174if test -z "$GREP"; then 4175 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4176echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4177 { (exit 1); exit 1; }; } 4178fi 4179 4180else 4181 ac_cv_path_GREP=$GREP 4182fi 4183 4184 4185fi 4186{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4187echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4188 GREP="$ac_cv_path_GREP" 4189 4190 4191{ echo "$as_me:$LINENO: checking for egrep" >&5 4192echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4193if test "${ac_cv_path_EGREP+set}" = set; then 4194 echo $ECHO_N "(cached) $ECHO_C" >&6 4195else 4196 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4197 then ac_cv_path_EGREP="$GREP -E" 4198 else 4199 # Extract the first word of "egrep" to use in msg output 4200if test -z "$EGREP"; then 4201set dummy egrep; ac_prog_name=$2 4202if test "${ac_cv_path_EGREP+set}" = set; then 4203 echo $ECHO_N "(cached) $ECHO_C" >&6 4204else 4205 ac_path_EGREP_found=false 4206# Loop through the user's path and test for each of PROGNAME-LIST 4207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4209do 4210 IFS=$as_save_IFS 4211 test -z "$as_dir" && as_dir=. 4212 for ac_prog in egrep; do 4213 for ac_exec_ext in '' $ac_executable_extensions; do 4214 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4215 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 4216 # Check for GNU ac_path_EGREP and select it if it is found. 4217 # Check for GNU $ac_path_EGREP 4218case `"$ac_path_EGREP" --version 2>&1` in 4219*GNU*) 4220 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4221*) 4222 ac_count=0 4223 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4224 while : 4225 do 4226 cat "conftest.in" "conftest.in" >"conftest.tmp" 4227 mv "conftest.tmp" "conftest.in" 4228 cp "conftest.in" "conftest.nl" 4229 echo 'EGREP' >> "conftest.nl" 4230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4232 ac_count=`expr $ac_count + 1` 4233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4234 # Best one so far, save it but keep looking for a better one 4235 ac_cv_path_EGREP="$ac_path_EGREP" 4236 ac_path_EGREP_max=$ac_count 4237 fi 4238 # 10*(2^10) chars as input seems more than enough 4239 test $ac_count -gt 10 && break 4240 done 4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4242esac 4243 4244 4245 $ac_path_EGREP_found && break 3 4246 done 4247done 4248 4249done 4250IFS=$as_save_IFS 4251 4252 4253fi 4254 4255EGREP="$ac_cv_path_EGREP" 4256if test -z "$EGREP"; then 4257 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4258echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4259 { (exit 1); exit 1; }; } 4260fi 4261 4262else 4263 ac_cv_path_EGREP=$EGREP 4264fi 4265 4266 4267 fi 4268fi 4269{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4270echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4271 EGREP="$ac_cv_path_EGREP" 4272 4273 4274 4275 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5 4276echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; } 4277if test "${ac_cv_gnu_library_2+set}" = set; then 4278 echo $ECHO_N "(cached) $ECHO_C" >&6 4279else 4280 cat >conftest.$ac_ext <<_ACEOF 4281/* confdefs.h. */ 4282_ACEOF 4283cat confdefs.h >>conftest.$ac_ext 4284cat >>conftest.$ac_ext <<_ACEOF 4285/* end confdefs.h. */ 4286 4287#include <features.h> 4288#ifdef __GNU_LIBRARY__ 4289 #if (__GLIBC__ >= 2) 4290 Lucky GNU user 4291 #endif 4292#endif 4293 4294_ACEOF 4295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4296 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 4297 ac_cv_gnu_library_2=yes 4298else 4299 ac_cv_gnu_library_2=no 4300fi 4301rm -f conftest* 4302 4303 4304 4305fi 4306{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5 4307echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; } 4308 4309 GLIBC2="$ac_cv_gnu_library_2" 4310 4311 4312if test -n "$ac_tool_prefix"; then 4313 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4314set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4315{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4317if test "${ac_cv_prog_RANLIB+set}" = set; then 4318 echo $ECHO_N "(cached) $ECHO_C" >&6 4319else 4320 if test -n "$RANLIB"; then 4321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4322else 4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4324for as_dir in $PATH 4325do 4326 IFS=$as_save_IFS 4327 test -z "$as_dir" && as_dir=. 4328 for ac_exec_ext in '' $ac_executable_extensions; do 4329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4330 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4332 break 2 4333 fi 4334done 4335done 4336IFS=$as_save_IFS 4337 4338fi 4339fi 4340RANLIB=$ac_cv_prog_RANLIB 4341if test -n "$RANLIB"; then 4342 { echo "$as_me:$LINENO: result: $RANLIB" >&5 4343echo "${ECHO_T}$RANLIB" >&6; } 4344else 4345 { echo "$as_me:$LINENO: result: no" >&5 4346echo "${ECHO_T}no" >&6; } 4347fi 4348 4349 4350fi 4351if test -z "$ac_cv_prog_RANLIB"; then 4352 ac_ct_RANLIB=$RANLIB 4353 # Extract the first word of "ranlib", so it can be a program name with args. 4354set dummy ranlib; ac_word=$2 4355{ echo "$as_me:$LINENO: checking for $ac_word" >&5 4356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 4357if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4358 echo $ECHO_N "(cached) $ECHO_C" >&6 4359else 4360 if test -n "$ac_ct_RANLIB"; then 4361 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4362else 4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4364for as_dir in $PATH 4365do 4366 IFS=$as_save_IFS 4367 test -z "$as_dir" && as_dir=. 4368 for ac_exec_ext in '' $ac_executable_extensions; do 4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 4370 ac_cv_prog_ac_ct_RANLIB="ranlib" 4371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4372 break 2 4373 fi 4374done 4375done 4376IFS=$as_save_IFS 4377 4378fi 4379fi 4380ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4381if test -n "$ac_ct_RANLIB"; then 4382 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4383echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 4384else 4385 { echo "$as_me:$LINENO: result: no" >&5 4386echo "${ECHO_T}no" >&6; } 4387fi 4388 4389 if test "x$ac_ct_RANLIB" = x; then 4390 RANLIB=":" 4391 else 4392 case $cross_compiling:$ac_tool_warned in 4393yes:) 4394{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 4395whose name does not start with the host triplet. If you think this 4396configuration is useful to you, please write to autoconf@gnu.org." >&5 4397echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 4398whose name does not start with the host triplet. If you think this 4399configuration is useful to you, please write to autoconf@gnu.org." >&2;} 4400ac_tool_warned=yes ;; 4401esac 4402 RANLIB=$ac_ct_RANLIB 4403 fi 4404else 4405 RANLIB="$ac_cv_prog_RANLIB" 4406fi 4407 4408{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 4409echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 4410if test "${ac_cv_search_strerror+set}" = set; then 4411 echo $ECHO_N "(cached) $ECHO_C" >&6 4412else 4413 ac_func_search_save_LIBS=$LIBS 4414cat >conftest.$ac_ext <<_ACEOF 4415/* confdefs.h. */ 4416_ACEOF 4417cat confdefs.h >>conftest.$ac_ext 4418cat >>conftest.$ac_ext <<_ACEOF 4419/* end confdefs.h. */ 4420 4421/* Override any GCC internal prototype to avoid an error. 4422 Use char because int might match the return type of a GCC 4423 builtin and then its argument prototype would still apply. */ 4424#ifdef __cplusplus 4425extern "C" 4426#endif 4427char strerror (); 4428int 4429main () 4430{ 4431return strerror (); 4432 ; 4433 return 0; 4434} 4435_ACEOF 4436for ac_lib in '' cposix; do 4437 if test -z "$ac_lib"; then 4438 ac_res="none required" 4439 else 4440 ac_res=-l$ac_lib 4441 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4442 fi 4443 rm -f conftest.$ac_objext conftest$ac_exeext 4444if { (ac_try="$ac_link" 4445case "(($ac_try" in 4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4447 *) ac_try_echo=$ac_try;; 4448esac 4449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4450 (eval "$ac_link") 2>conftest.er1 4451 ac_status=$? 4452 grep -v '^ *+' conftest.er1 >conftest.err 4453 rm -f conftest.er1 4454 cat conftest.err >&5 4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4456 (exit $ac_status); } && 4457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4458 { (case "(($ac_try" in 4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4460 *) ac_try_echo=$ac_try;; 4461esac 4462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4463 (eval "$ac_try") 2>&5 4464 ac_status=$? 4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4466 (exit $ac_status); }; } && 4467 { ac_try='test -s conftest$ac_exeext' 4468 { (case "(($ac_try" in 4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4470 *) ac_try_echo=$ac_try;; 4471esac 4472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4473 (eval "$ac_try") 2>&5 4474 ac_status=$? 4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4476 (exit $ac_status); }; }; then 4477 ac_cv_search_strerror=$ac_res 4478else 4479 echo "$as_me: failed program was:" >&5 4480sed 's/^/| /' conftest.$ac_ext >&5 4481 4482 4483fi 4484 4485rm -f core conftest.err conftest.$ac_objext \ 4486 conftest$ac_exeext 4487 if test "${ac_cv_search_strerror+set}" = set; then 4488 break 4489fi 4490done 4491if test "${ac_cv_search_strerror+set}" = set; then 4492 : 4493else 4494 ac_cv_search_strerror=no 4495fi 4496rm conftest.$ac_ext 4497LIBS=$ac_func_search_save_LIBS 4498fi 4499{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 4500echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 4501ac_res=$ac_cv_search_strerror 4502if test "$ac_res" != no; then 4503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4504 4505fi 4506 4507{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4508echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4509if test "${ac_cv_header_stdc+set}" = set; then 4510 echo $ECHO_N "(cached) $ECHO_C" >&6 4511else 4512 cat >conftest.$ac_ext <<_ACEOF 4513/* confdefs.h. */ 4514_ACEOF 4515cat confdefs.h >>conftest.$ac_ext 4516cat >>conftest.$ac_ext <<_ACEOF 4517/* end confdefs.h. */ 4518#include <stdlib.h> 4519#include <stdarg.h> 4520#include <string.h> 4521#include <float.h> 4522 4523int 4524main () 4525{ 4526 4527 ; 4528 return 0; 4529} 4530_ACEOF 4531rm -f conftest.$ac_objext 4532if { (ac_try="$ac_compile" 4533case "(($ac_try" in 4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4535 *) ac_try_echo=$ac_try;; 4536esac 4537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4538 (eval "$ac_compile") 2>conftest.er1 4539 ac_status=$? 4540 grep -v '^ *+' conftest.er1 >conftest.err 4541 rm -f conftest.er1 4542 cat conftest.err >&5 4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4544 (exit $ac_status); } && 4545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4546 { (case "(($ac_try" in 4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4548 *) ac_try_echo=$ac_try;; 4549esac 4550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4551 (eval "$ac_try") 2>&5 4552 ac_status=$? 4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4554 (exit $ac_status); }; } && 4555 { ac_try='test -s conftest.$ac_objext' 4556 { (case "(($ac_try" in 4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4558 *) ac_try_echo=$ac_try;; 4559esac 4560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4561 (eval "$ac_try") 2>&5 4562 ac_status=$? 4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4564 (exit $ac_status); }; }; then 4565 ac_cv_header_stdc=yes 4566else 4567 echo "$as_me: failed program was:" >&5 4568sed 's/^/| /' conftest.$ac_ext >&5 4569 4570 ac_cv_header_stdc=no 4571fi 4572 4573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4574 4575if test $ac_cv_header_stdc = yes; then 4576 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4577 cat >conftest.$ac_ext <<_ACEOF 4578/* confdefs.h. */ 4579_ACEOF 4580cat confdefs.h >>conftest.$ac_ext 4581cat >>conftest.$ac_ext <<_ACEOF 4582/* end confdefs.h. */ 4583#include <string.h> 4584 4585_ACEOF 4586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4587 $EGREP "memchr" >/dev/null 2>&1; then 4588 : 4589else 4590 ac_cv_header_stdc=no 4591fi 4592rm -f conftest* 4593 4594fi 4595 4596if test $ac_cv_header_stdc = yes; then 4597 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4598 cat >conftest.$ac_ext <<_ACEOF 4599/* confdefs.h. */ 4600_ACEOF 4601cat confdefs.h >>conftest.$ac_ext 4602cat >>conftest.$ac_ext <<_ACEOF 4603/* end confdefs.h. */ 4604#include <stdlib.h> 4605 4606_ACEOF 4607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4608 $EGREP "free" >/dev/null 2>&1; then 4609 : 4610else 4611 ac_cv_header_stdc=no 4612fi 4613rm -f conftest* 4614 4615fi 4616 4617if test $ac_cv_header_stdc = yes; then 4618 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4619 if test "$cross_compiling" = yes; then 4620 : 4621else 4622 cat >conftest.$ac_ext <<_ACEOF 4623/* confdefs.h. */ 4624_ACEOF 4625cat confdefs.h >>conftest.$ac_ext 4626cat >>conftest.$ac_ext <<_ACEOF 4627/* end confdefs.h. */ 4628#include <ctype.h> 4629#include <stdlib.h> 4630#if ((' ' & 0x0FF) == 0x020) 4631# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4632# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4633#else 4634# define ISLOWER(c) \ 4635 (('a' <= (c) && (c) <= 'i') \ 4636 || ('j' <= (c) && (c) <= 'r') \ 4637 || ('s' <= (c) && (c) <= 'z')) 4638# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4639#endif 4640 4641#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4642int 4643main () 4644{ 4645 int i; 4646 for (i = 0; i < 256; i++) 4647 if (XOR (islower (i), ISLOWER (i)) 4648 || toupper (i) != TOUPPER (i)) 4649 return 2; 4650 return 0; 4651} 4652_ACEOF 4653rm -f conftest$ac_exeext 4654if { (ac_try="$ac_link" 4655case "(($ac_try" in 4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4657 *) ac_try_echo=$ac_try;; 4658esac 4659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4660 (eval "$ac_link") 2>&5 4661 ac_status=$? 4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4664 { (case "(($ac_try" in 4665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4666 *) ac_try_echo=$ac_try;; 4667esac 4668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4669 (eval "$ac_try") 2>&5 4670 ac_status=$? 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4672 (exit $ac_status); }; }; then 4673 : 4674else 4675 echo "$as_me: program exited with status $ac_status" >&5 4676echo "$as_me: failed program was:" >&5 4677sed 's/^/| /' conftest.$ac_ext >&5 4678 4679( exit $ac_status ) 4680ac_cv_header_stdc=no 4681fi 4682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4683fi 4684 4685 4686fi 4687fi 4688{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4689echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4690if test $ac_cv_header_stdc = yes; then 4691 4692cat >>confdefs.h <<\_ACEOF 4693#define STDC_HEADERS 1 4694_ACEOF 4695 4696fi 4697 4698{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4699echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 4700if test "${ac_cv_c_const+set}" = set; then 4701 echo $ECHO_N "(cached) $ECHO_C" >&6 4702else 4703 cat >conftest.$ac_ext <<_ACEOF 4704/* confdefs.h. */ 4705_ACEOF 4706cat confdefs.h >>conftest.$ac_ext 4707cat >>conftest.$ac_ext <<_ACEOF 4708/* end confdefs.h. */ 4709 4710int 4711main () 4712{ 4713/* FIXME: Include the comments suggested by Paul. */ 4714#ifndef __cplusplus 4715 /* Ultrix mips cc rejects this. */ 4716 typedef int charset[2]; 4717 const charset x; 4718 /* SunOS 4.1.1 cc rejects this. */ 4719 char const *const *ccp; 4720 char **p; 4721 /* NEC SVR4.0.2 mips cc rejects this. */ 4722 struct point {int x, y;}; 4723 static struct point const zero = {0,0}; 4724 /* AIX XL C 1.02.0.0 rejects this. 4725 It does not let you subtract one const X* pointer from another in 4726 an arm of an if-expression whose if-part is not a constant 4727 expression */ 4728 const char *g = "string"; 4729 ccp = &g + (g ? g-g : 0); 4730 /* HPUX 7.0 cc rejects these. */ 4731 ++ccp; 4732 p = (char**) ccp; 4733 ccp = (char const *const *) p; 4734 { /* SCO 3.2v4 cc rejects this. */ 4735 char *t; 4736 char const *s = 0 ? (char *) 0 : (char const *) 0; 4737 4738 *t++ = 0; 4739 if (s) return 0; 4740 } 4741 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4742 int x[] = {25, 17}; 4743 const int *foo = &x[0]; 4744 ++foo; 4745 } 4746 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4747 typedef const int *iptr; 4748 iptr p = 0; 4749 ++p; 4750 } 4751 { /* AIX XL C 1.02.0.0 rejects this saying 4752 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4753 struct s { int j; const int *ap[3]; }; 4754 struct s *b; b->j = 5; 4755 } 4756 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4757 const int foo = 10; 4758 if (!foo) return 0; 4759 } 4760 return !x[0] && !zero.x; 4761#endif 4762 4763 ; 4764 return 0; 4765} 4766_ACEOF 4767rm -f conftest.$ac_objext 4768if { (ac_try="$ac_compile" 4769case "(($ac_try" in 4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4771 *) ac_try_echo=$ac_try;; 4772esac 4773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4774 (eval "$ac_compile") 2>conftest.er1 4775 ac_status=$? 4776 grep -v '^ *+' conftest.er1 >conftest.err 4777 rm -f conftest.er1 4778 cat conftest.err >&5 4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4780 (exit $ac_status); } && 4781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4782 { (case "(($ac_try" in 4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4784 *) ac_try_echo=$ac_try;; 4785esac 4786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4787 (eval "$ac_try") 2>&5 4788 ac_status=$? 4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4790 (exit $ac_status); }; } && 4791 { ac_try='test -s conftest.$ac_objext' 4792 { (case "(($ac_try" in 4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4794 *) ac_try_echo=$ac_try;; 4795esac 4796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4797 (eval "$ac_try") 2>&5 4798 ac_status=$? 4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4800 (exit $ac_status); }; }; then 4801 ac_cv_c_const=yes 4802else 4803 echo "$as_me: failed program was:" >&5 4804sed 's/^/| /' conftest.$ac_ext >&5 4805 4806 ac_cv_c_const=no 4807fi 4808 4809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4810fi 4811{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4812echo "${ECHO_T}$ac_cv_c_const" >&6; } 4813if test $ac_cv_c_const = no; then 4814 4815cat >>confdefs.h <<\_ACEOF 4816#define const 4817_ACEOF 4818 4819fi 4820 4821 4822 { echo "$as_me:$LINENO: checking for signed" >&5 4823echo $ECHO_N "checking for signed... $ECHO_C" >&6; } 4824if test "${bh_cv_c_signed+set}" = set; then 4825 echo $ECHO_N "(cached) $ECHO_C" >&6 4826else 4827 cat >conftest.$ac_ext <<_ACEOF 4828/* confdefs.h. */ 4829_ACEOF 4830cat confdefs.h >>conftest.$ac_ext 4831cat >>conftest.$ac_ext <<_ACEOF 4832/* end confdefs.h. */ 4833 4834int 4835main () 4836{ 4837signed char x; 4838 ; 4839 return 0; 4840} 4841_ACEOF 4842rm -f conftest.$ac_objext 4843if { (ac_try="$ac_compile" 4844case "(($ac_try" in 4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4846 *) ac_try_echo=$ac_try;; 4847esac 4848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4849 (eval "$ac_compile") 2>conftest.er1 4850 ac_status=$? 4851 grep -v '^ *+' conftest.er1 >conftest.err 4852 rm -f conftest.er1 4853 cat conftest.err >&5 4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4855 (exit $ac_status); } && 4856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4857 { (case "(($ac_try" in 4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4859 *) ac_try_echo=$ac_try;; 4860esac 4861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4862 (eval "$ac_try") 2>&5 4863 ac_status=$? 4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4865 (exit $ac_status); }; } && 4866 { ac_try='test -s conftest.$ac_objext' 4867 { (case "(($ac_try" in 4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4869 *) ac_try_echo=$ac_try;; 4870esac 4871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4872 (eval "$ac_try") 2>&5 4873 ac_status=$? 4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4875 (exit $ac_status); }; }; then 4876 bh_cv_c_signed=yes 4877else 4878 echo "$as_me: failed program was:" >&5 4879sed 's/^/| /' conftest.$ac_ext >&5 4880 4881 bh_cv_c_signed=no 4882fi 4883 4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4885fi 4886{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 4887echo "${ECHO_T}$bh_cv_c_signed" >&6; } 4888 if test $bh_cv_c_signed = no; then 4889 4890cat >>confdefs.h <<\_ACEOF 4891#define signed 4892_ACEOF 4893 4894 fi 4895 4896{ echo "$as_me:$LINENO: checking for inline" >&5 4897echo $ECHO_N "checking for inline... $ECHO_C" >&6; } 4898if test "${ac_cv_c_inline+set}" = set; then 4899 echo $ECHO_N "(cached) $ECHO_C" >&6 4900else 4901 ac_cv_c_inline=no 4902for ac_kw in inline __inline__ __inline; do 4903 cat >conftest.$ac_ext <<_ACEOF 4904/* confdefs.h. */ 4905_ACEOF 4906cat confdefs.h >>conftest.$ac_ext 4907cat >>conftest.$ac_ext <<_ACEOF 4908/* end confdefs.h. */ 4909#ifndef __cplusplus 4910typedef int foo_t; 4911static $ac_kw foo_t static_foo () {return 0; } 4912$ac_kw foo_t foo () {return 0; } 4913#endif 4914 4915_ACEOF 4916rm -f conftest.$ac_objext 4917if { (ac_try="$ac_compile" 4918case "(($ac_try" in 4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4920 *) ac_try_echo=$ac_try;; 4921esac 4922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4923 (eval "$ac_compile") 2>conftest.er1 4924 ac_status=$? 4925 grep -v '^ *+' conftest.er1 >conftest.err 4926 rm -f conftest.er1 4927 cat conftest.err >&5 4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4929 (exit $ac_status); } && 4930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4931 { (case "(($ac_try" in 4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4933 *) ac_try_echo=$ac_try;; 4934esac 4935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4936 (eval "$ac_try") 2>&5 4937 ac_status=$? 4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4939 (exit $ac_status); }; } && 4940 { ac_try='test -s conftest.$ac_objext' 4941 { (case "(($ac_try" in 4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4943 *) ac_try_echo=$ac_try;; 4944esac 4945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4946 (eval "$ac_try") 2>&5 4947 ac_status=$? 4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4949 (exit $ac_status); }; }; then 4950 ac_cv_c_inline=$ac_kw 4951else 4952 echo "$as_me: failed program was:" >&5 4953sed 's/^/| /' conftest.$ac_ext >&5 4954 4955 4956fi 4957 4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4959 test "$ac_cv_c_inline" != no && break 4960done 4961 4962fi 4963{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 4964echo "${ECHO_T}$ac_cv_c_inline" >&6; } 4965 4966 4967case $ac_cv_c_inline in 4968 inline | yes) ;; 4969 *) 4970 case $ac_cv_c_inline in 4971 no) ac_val=;; 4972 *) ac_val=$ac_cv_c_inline;; 4973 esac 4974 cat >>confdefs.h <<_ACEOF 4975#ifndef __cplusplus 4976#define inline $ac_val 4977#endif 4978_ACEOF 4979 ;; 4980esac 4981 4982# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4993 inttypes.h stdint.h unistd.h 4994do 4995as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4996{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4999 echo $ECHO_N "(cached) $ECHO_C" >&6 5000else 5001 cat >conftest.$ac_ext <<_ACEOF 5002/* confdefs.h. */ 5003_ACEOF 5004cat confdefs.h >>conftest.$ac_ext 5005cat >>conftest.$ac_ext <<_ACEOF 5006/* end confdefs.h. */ 5007$ac_includes_default 5008 5009#include <$ac_header> 5010_ACEOF 5011rm -f conftest.$ac_objext 5012if { (ac_try="$ac_compile" 5013case "(($ac_try" in 5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5015 *) ac_try_echo=$ac_try;; 5016esac 5017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5018 (eval "$ac_compile") 2>conftest.er1 5019 ac_status=$? 5020 grep -v '^ *+' conftest.er1 >conftest.err 5021 rm -f conftest.er1 5022 cat conftest.err >&5 5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5024 (exit $ac_status); } && 5025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5026 { (case "(($ac_try" in 5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5028 *) ac_try_echo=$ac_try;; 5029esac 5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5031 (eval "$ac_try") 2>&5 5032 ac_status=$? 5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5034 (exit $ac_status); }; } && 5035 { ac_try='test -s conftest.$ac_objext' 5036 { (case "(($ac_try" in 5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5038 *) ac_try_echo=$ac_try;; 5039esac 5040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5041 (eval "$ac_try") 2>&5 5042 ac_status=$? 5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5044 (exit $ac_status); }; }; then 5045 eval "$as_ac_Header=yes" 5046else 5047 echo "$as_me: failed program was:" >&5 5048sed 's/^/| /' conftest.$ac_ext >&5 5049 5050 eval "$as_ac_Header=no" 5051fi 5052 5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5054fi 5055ac_res=`eval echo '${'$as_ac_Header'}'` 5056 { echo "$as_me:$LINENO: result: $ac_res" >&5 5057echo "${ECHO_T}$ac_res" >&6; } 5058if test `eval echo '${'$as_ac_Header'}'` = yes; then 5059 cat >>confdefs.h <<_ACEOF 5060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5061_ACEOF 5062 5063fi 5064 5065done 5066 5067 5068{ echo "$as_me:$LINENO: checking for off_t" >&5 5069echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } 5070if test "${ac_cv_type_off_t+set}" = set; then 5071 echo $ECHO_N "(cached) $ECHO_C" >&6 5072else 5073 cat >conftest.$ac_ext <<_ACEOF 5074/* confdefs.h. */ 5075_ACEOF 5076cat confdefs.h >>conftest.$ac_ext 5077cat >>conftest.$ac_ext <<_ACEOF 5078/* end confdefs.h. */ 5079$ac_includes_default 5080typedef off_t ac__type_new_; 5081int 5082main () 5083{ 5084if ((ac__type_new_ *) 0) 5085 return 0; 5086if (sizeof (ac__type_new_)) 5087 return 0; 5088 ; 5089 return 0; 5090} 5091_ACEOF 5092rm -f conftest.$ac_objext 5093if { (ac_try="$ac_compile" 5094case "(($ac_try" in 5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5096 *) ac_try_echo=$ac_try;; 5097esac 5098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5099 (eval "$ac_compile") 2>conftest.er1 5100 ac_status=$? 5101 grep -v '^ *+' conftest.er1 >conftest.err 5102 rm -f conftest.er1 5103 cat conftest.err >&5 5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5105 (exit $ac_status); } && 5106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5107 { (case "(($ac_try" in 5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5109 *) ac_try_echo=$ac_try;; 5110esac 5111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5112 (eval "$ac_try") 2>&5 5113 ac_status=$? 5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5115 (exit $ac_status); }; } && 5116 { ac_try='test -s conftest.$ac_objext' 5117 { (case "(($ac_try" in 5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5119 *) ac_try_echo=$ac_try;; 5120esac 5121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5122 (eval "$ac_try") 2>&5 5123 ac_status=$? 5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5125 (exit $ac_status); }; }; then 5126 ac_cv_type_off_t=yes 5127else 5128 echo "$as_me: failed program was:" >&5 5129sed 's/^/| /' conftest.$ac_ext >&5 5130 5131 ac_cv_type_off_t=no 5132fi 5133 5134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5135fi 5136{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 5137echo "${ECHO_T}$ac_cv_type_off_t" >&6; } 5138if test $ac_cv_type_off_t = yes; then 5139 : 5140else 5141 5142cat >>confdefs.h <<_ACEOF 5143#define off_t long int 5144_ACEOF 5145 5146fi 5147 5148{ echo "$as_me:$LINENO: checking for size_t" >&5 5149echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 5150if test "${ac_cv_type_size_t+set}" = set; then 5151 echo $ECHO_N "(cached) $ECHO_C" >&6 5152else 5153 cat >conftest.$ac_ext <<_ACEOF 5154/* confdefs.h. */ 5155_ACEOF 5156cat confdefs.h >>conftest.$ac_ext 5157cat >>conftest.$ac_ext <<_ACEOF 5158/* end confdefs.h. */ 5159$ac_includes_default 5160typedef size_t ac__type_new_; 5161int 5162main () 5163{ 5164if ((ac__type_new_ *) 0) 5165 return 0; 5166if (sizeof (ac__type_new_)) 5167 return 0; 5168 ; 5169 return 0; 5170} 5171_ACEOF 5172rm -f conftest.$ac_objext 5173if { (ac_try="$ac_compile" 5174case "(($ac_try" in 5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5176 *) ac_try_echo=$ac_try;; 5177esac 5178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5179 (eval "$ac_compile") 2>conftest.er1 5180 ac_status=$? 5181 grep -v '^ *+' conftest.er1 >conftest.err 5182 rm -f conftest.er1 5183 cat conftest.err >&5 5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5185 (exit $ac_status); } && 5186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5187 { (case "(($ac_try" in 5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5189 *) ac_try_echo=$ac_try;; 5190esac 5191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5192 (eval "$ac_try") 2>&5 5193 ac_status=$? 5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5195 (exit $ac_status); }; } && 5196 { ac_try='test -s conftest.$ac_objext' 5197 { (case "(($ac_try" in 5198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5199 *) ac_try_echo=$ac_try;; 5200esac 5201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5202 (eval "$ac_try") 2>&5 5203 ac_status=$? 5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5205 (exit $ac_status); }; }; then 5206 ac_cv_type_size_t=yes 5207else 5208 echo "$as_me: failed program was:" >&5 5209sed 's/^/| /' conftest.$ac_ext >&5 5210 5211 ac_cv_type_size_t=no 5212fi 5213 5214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5215fi 5216{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5217echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 5218if test $ac_cv_type_size_t = yes; then 5219 : 5220else 5221 5222cat >>confdefs.h <<_ACEOF 5223#define size_t unsigned int 5224_ACEOF 5225 5226fi 5227 5228 5229 { echo "$as_me:$LINENO: checking for long long" >&5 5230echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 5231if test "${ac_cv_type_long_long+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. */ 5240long long ll = 1LL; int i = 63; 5241int 5242main () 5243{ 5244long long llmax = (long long) -1; 5245 return ll << i | ll >> i | llmax / ll | llmax % ll; 5246 ; 5247 return 0; 5248} 5249_ACEOF 5250rm -f conftest.$ac_objext conftest$ac_exeext 5251if { (ac_try="$ac_link" 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_link") 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5265 { (case "(($ac_try" in 5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5267 *) ac_try_echo=$ac_try;; 5268esac 5269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5270 (eval "$ac_try") 2>&5 5271 ac_status=$? 5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5273 (exit $ac_status); }; } && 5274 { ac_try='test -s conftest$ac_exeext' 5275 { (case "(($ac_try" in 5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5277 *) ac_try_echo=$ac_try;; 5278esac 5279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5280 (eval "$ac_try") 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); }; }; then 5284 ac_cv_type_long_long=yes 5285else 5286 echo "$as_me: failed program was:" >&5 5287sed 's/^/| /' conftest.$ac_ext >&5 5288 5289 ac_cv_type_long_long=no 5290fi 5291 5292rm -f core conftest.err conftest.$ac_objext \ 5293 conftest$ac_exeext conftest.$ac_ext 5294fi 5295{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 5296echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 5297 if test $ac_cv_type_long_long = yes; then 5298 5299cat >>confdefs.h <<\_ACEOF 5300#define HAVE_LONG_LONG 1 5301_ACEOF 5302 5303 fi 5304 5305 5306 { echo "$as_me:$LINENO: checking for long double" >&5 5307echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 5308if test "${gt_cv_c_long_double+set}" = set; then 5309 echo $ECHO_N "(cached) $ECHO_C" >&6 5310else 5311 if test "$GCC" = yes; then 5312 gt_cv_c_long_double=yes 5313 else 5314 cat >conftest.$ac_ext <<_ACEOF 5315/* confdefs.h. */ 5316_ACEOF 5317cat confdefs.h >>conftest.$ac_ext 5318cat >>conftest.$ac_ext <<_ACEOF 5319/* end confdefs.h. */ 5320 5321 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 5322 long double foo = 0.0; 5323 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 5324 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 5325 5326int 5327main () 5328{ 5329 5330 ; 5331 return 0; 5332} 5333_ACEOF 5334rm -f conftest.$ac_objext 5335if { (ac_try="$ac_compile" 5336case "(($ac_try" in 5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5338 *) ac_try_echo=$ac_try;; 5339esac 5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5341 (eval "$ac_compile") 2>conftest.er1 5342 ac_status=$? 5343 grep -v '^ *+' conftest.er1 >conftest.err 5344 rm -f conftest.er1 5345 cat conftest.err >&5 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); } && 5348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5349 { (case "(($ac_try" in 5350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5351 *) ac_try_echo=$ac_try;; 5352esac 5353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5354 (eval "$ac_try") 2>&5 5355 ac_status=$? 5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5357 (exit $ac_status); }; } && 5358 { ac_try='test -s conftest.$ac_objext' 5359 { (case "(($ac_try" in 5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5361 *) ac_try_echo=$ac_try;; 5362esac 5363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5364 (eval "$ac_try") 2>&5 5365 ac_status=$? 5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5367 (exit $ac_status); }; }; then 5368 gt_cv_c_long_double=yes 5369else 5370 echo "$as_me: failed program was:" >&5 5371sed 's/^/| /' conftest.$ac_ext >&5 5372 5373 gt_cv_c_long_double=no 5374fi 5375 5376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5377 fi 5378fi 5379{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 5380echo "${ECHO_T}$gt_cv_c_long_double" >&6; } 5381 if test $gt_cv_c_long_double = yes; then 5382 5383cat >>confdefs.h <<\_ACEOF 5384#define HAVE_LONG_DOUBLE 1 5385_ACEOF 5386 5387 fi 5388 5389 5390 { echo "$as_me:$LINENO: checking for wchar_t" >&5 5391echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } 5392if test "${gt_cv_c_wchar_t+set}" = set; then 5393 echo $ECHO_N "(cached) $ECHO_C" >&6 5394else 5395 cat >conftest.$ac_ext <<_ACEOF 5396/* confdefs.h. */ 5397_ACEOF 5398cat confdefs.h >>conftest.$ac_ext 5399cat >>conftest.$ac_ext <<_ACEOF 5400/* end confdefs.h. */ 5401#include <stddef.h> 5402 wchar_t foo = (wchar_t)'\0'; 5403int 5404main () 5405{ 5406 5407 ; 5408 return 0; 5409} 5410_ACEOF 5411rm -f conftest.$ac_objext 5412if { (ac_try="$ac_compile" 5413case "(($ac_try" in 5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5415 *) ac_try_echo=$ac_try;; 5416esac 5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5418 (eval "$ac_compile") 2>conftest.er1 5419 ac_status=$? 5420 grep -v '^ *+' conftest.er1 >conftest.err 5421 rm -f conftest.er1 5422 cat conftest.err >&5 5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5424 (exit $ac_status); } && 5425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5426 { (case "(($ac_try" in 5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5428 *) ac_try_echo=$ac_try;; 5429esac 5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5431 (eval "$ac_try") 2>&5 5432 ac_status=$? 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); }; } && 5435 { ac_try='test -s conftest.$ac_objext' 5436 { (case "(($ac_try" in 5437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5438 *) ac_try_echo=$ac_try;; 5439esac 5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5441 (eval "$ac_try") 2>&5 5442 ac_status=$? 5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5444 (exit $ac_status); }; }; then 5445 gt_cv_c_wchar_t=yes 5446else 5447 echo "$as_me: failed program was:" >&5 5448sed 's/^/| /' conftest.$ac_ext >&5 5449 5450 gt_cv_c_wchar_t=no 5451fi 5452 5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5454fi 5455{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 5456echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } 5457 if test $gt_cv_c_wchar_t = yes; then 5458 5459cat >>confdefs.h <<\_ACEOF 5460#define HAVE_WCHAR_T 1 5461_ACEOF 5462 5463 fi 5464 5465 5466 { echo "$as_me:$LINENO: checking for wint_t" >&5 5467echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } 5468if test "${gt_cv_c_wint_t+set}" = set; then 5469 echo $ECHO_N "(cached) $ECHO_C" >&6 5470else 5471 cat >conftest.$ac_ext <<_ACEOF 5472/* confdefs.h. */ 5473_ACEOF 5474cat confdefs.h >>conftest.$ac_ext 5475cat >>conftest.$ac_ext <<_ACEOF 5476/* end confdefs.h. */ 5477#include <wchar.h> 5478 wint_t foo = (wchar_t)'\0'; 5479int 5480main () 5481{ 5482 5483 ; 5484 return 0; 5485} 5486_ACEOF 5487rm -f conftest.$ac_objext 5488if { (ac_try="$ac_compile" 5489case "(($ac_try" in 5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5491 *) ac_try_echo=$ac_try;; 5492esac 5493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5494 (eval "$ac_compile") 2>conftest.er1 5495 ac_status=$? 5496 grep -v '^ *+' conftest.er1 >conftest.err 5497 rm -f conftest.er1 5498 cat conftest.err >&5 5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5500 (exit $ac_status); } && 5501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5502 { (case "(($ac_try" in 5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5504 *) ac_try_echo=$ac_try;; 5505esac 5506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5507 (eval "$ac_try") 2>&5 5508 ac_status=$? 5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5510 (exit $ac_status); }; } && 5511 { ac_try='test -s conftest.$ac_objext' 5512 { (case "(($ac_try" in 5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5514 *) ac_try_echo=$ac_try;; 5515esac 5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5517 (eval "$ac_try") 2>&5 5518 ac_status=$? 5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5520 (exit $ac_status); }; }; then 5521 gt_cv_c_wint_t=yes 5522else 5523 echo "$as_me: failed program was:" >&5 5524sed 's/^/| /' conftest.$ac_ext >&5 5525 5526 gt_cv_c_wint_t=no 5527fi 5528 5529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5530fi 5531{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 5532echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } 5533 if test $gt_cv_c_wint_t = yes; then 5534 5535cat >>confdefs.h <<\_ACEOF 5536#define HAVE_WINT_T 1 5537_ACEOF 5538 5539 fi 5540 5541 5542 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 5543echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 5544if test "${gl_cv_header_inttypes_h+set}" = set; then 5545 echo $ECHO_N "(cached) $ECHO_C" >&6 5546else 5547 cat >conftest.$ac_ext <<_ACEOF 5548/* confdefs.h. */ 5549_ACEOF 5550cat confdefs.h >>conftest.$ac_ext 5551cat >>conftest.$ac_ext <<_ACEOF 5552/* end confdefs.h. */ 5553#include <sys/types.h> 5554#include <inttypes.h> 5555int 5556main () 5557{ 5558uintmax_t i = (uintmax_t) -1; 5559 ; 5560 return 0; 5561} 5562_ACEOF 5563rm -f conftest.$ac_objext 5564if { (ac_try="$ac_compile" 5565case "(($ac_try" in 5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5567 *) ac_try_echo=$ac_try;; 5568esac 5569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5570 (eval "$ac_compile") 2>conftest.er1 5571 ac_status=$? 5572 grep -v '^ *+' conftest.er1 >conftest.err 5573 rm -f conftest.er1 5574 cat conftest.err >&5 5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5576 (exit $ac_status); } && 5577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5578 { (case "(($ac_try" in 5579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5580 *) ac_try_echo=$ac_try;; 5581esac 5582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5583 (eval "$ac_try") 2>&5 5584 ac_status=$? 5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5586 (exit $ac_status); }; } && 5587 { ac_try='test -s conftest.$ac_objext' 5588 { (case "(($ac_try" in 5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5590 *) ac_try_echo=$ac_try;; 5591esac 5592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5593 (eval "$ac_try") 2>&5 5594 ac_status=$? 5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5596 (exit $ac_status); }; }; then 5597 gl_cv_header_inttypes_h=yes 5598else 5599 echo "$as_me: failed program was:" >&5 5600sed 's/^/| /' conftest.$ac_ext >&5 5601 5602 gl_cv_header_inttypes_h=no 5603fi 5604 5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5606fi 5607{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 5608echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; } 5609 if test $gl_cv_header_inttypes_h = yes; then 5610 5611cat >>confdefs.h <<_ACEOF 5612#define HAVE_INTTYPES_H_WITH_UINTMAX 1 5613_ACEOF 5614 5615 fi 5616 5617 5618 { echo "$as_me:$LINENO: checking for stdint.h" >&5 5619echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } 5620if test "${gl_cv_header_stdint_h+set}" = set; then 5621 echo $ECHO_N "(cached) $ECHO_C" >&6 5622else 5623 cat >conftest.$ac_ext <<_ACEOF 5624/* confdefs.h. */ 5625_ACEOF 5626cat confdefs.h >>conftest.$ac_ext 5627cat >>conftest.$ac_ext <<_ACEOF 5628/* end confdefs.h. */ 5629#include <sys/types.h> 5630#include <stdint.h> 5631int 5632main () 5633{ 5634uintmax_t i = (uintmax_t) -1; 5635 ; 5636 return 0; 5637} 5638_ACEOF 5639rm -f conftest.$ac_objext 5640if { (ac_try="$ac_compile" 5641case "(($ac_try" in 5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5643 *) ac_try_echo=$ac_try;; 5644esac 5645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5646 (eval "$ac_compile") 2>conftest.er1 5647 ac_status=$? 5648 grep -v '^ *+' conftest.er1 >conftest.err 5649 rm -f conftest.er1 5650 cat conftest.err >&5 5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5652 (exit $ac_status); } && 5653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5654 { (case "(($ac_try" in 5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5656 *) ac_try_echo=$ac_try;; 5657esac 5658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5659 (eval "$ac_try") 2>&5 5660 ac_status=$? 5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5662 (exit $ac_status); }; } && 5663 { ac_try='test -s conftest.$ac_objext' 5664 { (case "(($ac_try" in 5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5666 *) ac_try_echo=$ac_try;; 5667esac 5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5669 (eval "$ac_try") 2>&5 5670 ac_status=$? 5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5672 (exit $ac_status); }; }; then 5673 gl_cv_header_stdint_h=yes 5674else 5675 echo "$as_me: failed program was:" >&5 5676sed 's/^/| /' conftest.$ac_ext >&5 5677 5678 gl_cv_header_stdint_h=no 5679fi 5680 5681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5682fi 5683{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 5684echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; } 5685 if test $gl_cv_header_stdint_h = yes; then 5686 5687cat >>confdefs.h <<_ACEOF 5688#define HAVE_STDINT_H_WITH_UINTMAX 1 5689_ACEOF 5690 5691 fi 5692 5693 5694 5695 5696 { echo "$as_me:$LINENO: checking for intmax_t" >&5 5697echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } 5698if test "${gt_cv_c_intmax_t+set}" = set; then 5699 echo $ECHO_N "(cached) $ECHO_C" >&6 5700else 5701 cat >conftest.$ac_ext <<_ACEOF 5702/* confdefs.h. */ 5703_ACEOF 5704cat confdefs.h >>conftest.$ac_ext 5705cat >>conftest.$ac_ext <<_ACEOF 5706/* end confdefs.h. */ 5707 5708#include <stddef.h> 5709#include <stdlib.h> 5710#if HAVE_STDINT_H_WITH_UINTMAX 5711#include <stdint.h> 5712#endif 5713#if HAVE_INTTYPES_H_WITH_UINTMAX 5714#include <inttypes.h> 5715#endif 5716 5717int 5718main () 5719{ 5720intmax_t x = -1; 5721 ; 5722 return 0; 5723} 5724_ACEOF 5725rm -f conftest.$ac_objext 5726if { (ac_try="$ac_compile" 5727case "(($ac_try" in 5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5729 *) ac_try_echo=$ac_try;; 5730esac 5731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5732 (eval "$ac_compile") 2>conftest.er1 5733 ac_status=$? 5734 grep -v '^ *+' conftest.er1 >conftest.err 5735 rm -f conftest.er1 5736 cat conftest.err >&5 5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5738 (exit $ac_status); } && 5739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5740 { (case "(($ac_try" in 5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5742 *) ac_try_echo=$ac_try;; 5743esac 5744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5745 (eval "$ac_try") 2>&5 5746 ac_status=$? 5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5748 (exit $ac_status); }; } && 5749 { ac_try='test -s conftest.$ac_objext' 5750 { (case "(($ac_try" in 5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5752 *) ac_try_echo=$ac_try;; 5753esac 5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5755 (eval "$ac_try") 2>&5 5756 ac_status=$? 5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5758 (exit $ac_status); }; }; then 5759 gt_cv_c_intmax_t=yes 5760else 5761 echo "$as_me: failed program was:" >&5 5762sed 's/^/| /' conftest.$ac_ext >&5 5763 5764 gt_cv_c_intmax_t=no 5765fi 5766 5767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5768fi 5769{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 5770echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } 5771 if test $gt_cv_c_intmax_t = yes; then 5772 5773cat >>confdefs.h <<\_ACEOF 5774#define HAVE_INTMAX_T 1 5775_ACEOF 5776 5777 fi 5778 5779 5780 5781 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 5782echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } 5783if test "${gt_cv_func_printf_posix+set}" = set; then 5784 echo $ECHO_N "(cached) $ECHO_C" >&6 5785else 5786 5787 if test "$cross_compiling" = yes; then 5788 5789 cat >conftest.$ac_ext <<_ACEOF 5790/* confdefs.h. */ 5791_ACEOF 5792cat confdefs.h >>conftest.$ac_ext 5793cat >>conftest.$ac_ext <<_ACEOF 5794/* end confdefs.h. */ 5795 5796#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 5797 notposix 5798#endif 5799 5800_ACEOF 5801if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5802 $EGREP "notposix" >/dev/null 2>&1; then 5803 gt_cv_func_printf_posix="guessing no" 5804else 5805 gt_cv_func_printf_posix="guessing yes" 5806fi 5807rm -f conftest* 5808 5809 5810else 5811 cat >conftest.$ac_ext <<_ACEOF 5812/* confdefs.h. */ 5813_ACEOF 5814cat confdefs.h >>conftest.$ac_ext 5815cat >>conftest.$ac_ext <<_ACEOF 5816/* end confdefs.h. */ 5817 5818#include <stdio.h> 5819#include <string.h> 5820/* The string "%2$d %1$d", with dollar characters protected from the shell's 5821 dollar expansion (possibly an autoconf bug). */ 5822static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 5823static char buf[100]; 5824int main () 5825{ 5826 sprintf (buf, format, 33, 55); 5827 return (strcmp (buf, "55 33") != 0); 5828} 5829_ACEOF 5830rm -f conftest$ac_exeext 5831if { (ac_try="$ac_link" 5832case "(($ac_try" in 5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5834 *) ac_try_echo=$ac_try;; 5835esac 5836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5837 (eval "$ac_link") 2>&5 5838 ac_status=$? 5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5841 { (case "(($ac_try" in 5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5843 *) ac_try_echo=$ac_try;; 5844esac 5845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5846 (eval "$ac_try") 2>&5 5847 ac_status=$? 5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5849 (exit $ac_status); }; }; then 5850 gt_cv_func_printf_posix=yes 5851else 5852 echo "$as_me: program exited with status $ac_status" >&5 5853echo "$as_me: failed program was:" >&5 5854sed 's/^/| /' conftest.$ac_ext >&5 5855 5856( exit $ac_status ) 5857gt_cv_func_printf_posix=no 5858fi 5859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5860fi 5861 5862 5863 5864fi 5865{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 5866echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } 5867 case $gt_cv_func_printf_posix in 5868 *yes) 5869 5870cat >>confdefs.h <<\_ACEOF 5871#define HAVE_POSIX_PRINTF 1 5872_ACEOF 5873 5874 ;; 5875 esac 5876 5877# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5878# for constant arguments. Useless! 5879{ echo "$as_me:$LINENO: checking for working alloca.h" >&5 5880echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } 5881if test "${ac_cv_working_alloca_h+set}" = set; then 5882 echo $ECHO_N "(cached) $ECHO_C" >&6 5883else 5884 cat >conftest.$ac_ext <<_ACEOF 5885/* confdefs.h. */ 5886_ACEOF 5887cat confdefs.h >>conftest.$ac_ext 5888cat >>conftest.$ac_ext <<_ACEOF 5889/* end confdefs.h. */ 5890#include <alloca.h> 5891int 5892main () 5893{ 5894char *p = (char *) alloca (2 * sizeof (int)); 5895 if (p) return 0; 5896 ; 5897 return 0; 5898} 5899_ACEOF 5900rm -f conftest.$ac_objext conftest$ac_exeext 5901if { (ac_try="$ac_link" 5902case "(($ac_try" in 5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5904 *) ac_try_echo=$ac_try;; 5905esac 5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5907 (eval "$ac_link") 2>conftest.er1 5908 ac_status=$? 5909 grep -v '^ *+' conftest.er1 >conftest.err 5910 rm -f conftest.er1 5911 cat conftest.err >&5 5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5913 (exit $ac_status); } && 5914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5915 { (case "(($ac_try" in 5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5917 *) ac_try_echo=$ac_try;; 5918esac 5919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5920 (eval "$ac_try") 2>&5 5921 ac_status=$? 5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5923 (exit $ac_status); }; } && 5924 { ac_try='test -s conftest$ac_exeext' 5925 { (case "(($ac_try" in 5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5927 *) ac_try_echo=$ac_try;; 5928esac 5929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5930 (eval "$ac_try") 2>&5 5931 ac_status=$? 5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5933 (exit $ac_status); }; }; then 5934 ac_cv_working_alloca_h=yes 5935else 5936 echo "$as_me: failed program was:" >&5 5937sed 's/^/| /' conftest.$ac_ext >&5 5938 5939 ac_cv_working_alloca_h=no 5940fi 5941 5942rm -f core conftest.err conftest.$ac_objext \ 5943 conftest$ac_exeext conftest.$ac_ext 5944fi 5945{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5946echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } 5947if test $ac_cv_working_alloca_h = yes; then 5948 5949cat >>confdefs.h <<\_ACEOF 5950#define HAVE_ALLOCA_H 1 5951_ACEOF 5952 5953fi 5954 5955{ echo "$as_me:$LINENO: checking for alloca" >&5 5956echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } 5957if test "${ac_cv_func_alloca_works+set}" = set; then 5958 echo $ECHO_N "(cached) $ECHO_C" >&6 5959else 5960 cat >conftest.$ac_ext <<_ACEOF 5961/* confdefs.h. */ 5962_ACEOF 5963cat confdefs.h >>conftest.$ac_ext 5964cat >>conftest.$ac_ext <<_ACEOF 5965/* end confdefs.h. */ 5966#ifdef __GNUC__ 5967# define alloca __builtin_alloca 5968#else 5969# ifdef _MSC_VER 5970# include <malloc.h> 5971# define alloca _alloca 5972# else 5973# if HAVE_ALLOCA_H 5974# include <alloca.h> 5975# else 5976# ifdef _AIX 5977 #pragma alloca 5978# else 5979# ifndef alloca /* predefined by HP cc +Olibcalls */ 5980char *alloca (); 5981# endif 5982# endif 5983# endif 5984# endif 5985#endif 5986 5987int 5988main () 5989{ 5990char *p = (char *) alloca (1); 5991 if (p) return 0; 5992 ; 5993 return 0; 5994} 5995_ACEOF 5996rm -f conftest.$ac_objext conftest$ac_exeext 5997if { (ac_try="$ac_link" 5998case "(($ac_try" in 5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6000 *) ac_try_echo=$ac_try;; 6001esac 6002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6003 (eval "$ac_link") 2>conftest.er1 6004 ac_status=$? 6005 grep -v '^ *+' conftest.er1 >conftest.err 6006 rm -f conftest.er1 6007 cat conftest.err >&5 6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6009 (exit $ac_status); } && 6010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6011 { (case "(($ac_try" in 6012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6013 *) ac_try_echo=$ac_try;; 6014esac 6015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6016 (eval "$ac_try") 2>&5 6017 ac_status=$? 6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6019 (exit $ac_status); }; } && 6020 { ac_try='test -s conftest$ac_exeext' 6021 { (case "(($ac_try" in 6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6023 *) ac_try_echo=$ac_try;; 6024esac 6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6026 (eval "$ac_try") 2>&5 6027 ac_status=$? 6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6029 (exit $ac_status); }; }; then 6030 ac_cv_func_alloca_works=yes 6031else 6032 echo "$as_me: failed program was:" >&5 6033sed 's/^/| /' conftest.$ac_ext >&5 6034 6035 ac_cv_func_alloca_works=no 6036fi 6037 6038rm -f core conftest.err conftest.$ac_objext \ 6039 conftest$ac_exeext conftest.$ac_ext 6040fi 6041{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 6042echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } 6043 6044if test $ac_cv_func_alloca_works = yes; then 6045 6046cat >>confdefs.h <<\_ACEOF 6047#define HAVE_ALLOCA 1 6048_ACEOF 6049 6050else 6051 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6052# that cause trouble. Some versions do not even contain alloca or 6053# contain a buggy version. If you still want to use their alloca, 6054# use ar to extract alloca.o from them instead of compiling alloca.c. 6055 6056ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 6057 6058cat >>confdefs.h <<\_ACEOF 6059#define C_ALLOCA 1 6060_ACEOF 6061 6062 6063{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 6064echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } 6065if test "${ac_cv_os_cray+set}" = set; then 6066 echo $ECHO_N "(cached) $ECHO_C" >&6 6067else 6068 cat >conftest.$ac_ext <<_ACEOF 6069/* confdefs.h. */ 6070_ACEOF 6071cat confdefs.h >>conftest.$ac_ext 6072cat >>conftest.$ac_ext <<_ACEOF 6073/* end confdefs.h. */ 6074#if defined CRAY && ! defined CRAY2 6075webecray 6076#else 6077wenotbecray 6078#endif 6079 6080_ACEOF 6081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6082 $EGREP "webecray" >/dev/null 2>&1; then 6083 ac_cv_os_cray=yes 6084else 6085 ac_cv_os_cray=no 6086fi 6087rm -f conftest* 6088 6089fi 6090{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 6091echo "${ECHO_T}$ac_cv_os_cray" >&6; } 6092if test $ac_cv_os_cray = yes; then 6093 for ac_func in _getb67 GETB67 getb67; do 6094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6095{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6096echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6097if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6098 echo $ECHO_N "(cached) $ECHO_C" >&6 6099else 6100 cat >conftest.$ac_ext <<_ACEOF 6101/* confdefs.h. */ 6102_ACEOF 6103cat confdefs.h >>conftest.$ac_ext 6104cat >>conftest.$ac_ext <<_ACEOF 6105/* end confdefs.h. */ 6106/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6107 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6108#define $ac_func innocuous_$ac_func 6109 6110/* System header to define __stub macros and hopefully few prototypes, 6111 which can conflict with char $ac_func (); below. 6112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6113 <limits.h> exists even on freestanding compilers. */ 6114 6115#ifdef __STDC__ 6116# include <limits.h> 6117#else 6118# include <assert.h> 6119#endif 6120 6121#undef $ac_func 6122 6123/* Override any GCC internal prototype to avoid an error. 6124 Use char because int might match the return type of a GCC 6125 builtin and then its argument prototype would still apply. */ 6126#ifdef __cplusplus 6127extern "C" 6128#endif 6129char $ac_func (); 6130/* The GNU C library defines this for functions which it implements 6131 to always fail with ENOSYS. Some functions are actually named 6132 something starting with __ and the normal name is an alias. */ 6133#if defined __stub_$ac_func || defined __stub___$ac_func 6134choke me 6135#endif 6136 6137int 6138main () 6139{ 6140return $ac_func (); 6141 ; 6142 return 0; 6143} 6144_ACEOF 6145rm -f conftest.$ac_objext conftest$ac_exeext 6146if { (ac_try="$ac_link" 6147case "(($ac_try" in 6148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6149 *) ac_try_echo=$ac_try;; 6150esac 6151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6152 (eval "$ac_link") 2>conftest.er1 6153 ac_status=$? 6154 grep -v '^ *+' conftest.er1 >conftest.err 6155 rm -f conftest.er1 6156 cat conftest.err >&5 6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6158 (exit $ac_status); } && 6159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6160 { (case "(($ac_try" in 6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6162 *) ac_try_echo=$ac_try;; 6163esac 6164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6165 (eval "$ac_try") 2>&5 6166 ac_status=$? 6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6168 (exit $ac_status); }; } && 6169 { ac_try='test -s conftest$ac_exeext' 6170 { (case "(($ac_try" in 6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6172 *) ac_try_echo=$ac_try;; 6173esac 6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6175 (eval "$ac_try") 2>&5 6176 ac_status=$? 6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6178 (exit $ac_status); }; }; then 6179 eval "$as_ac_var=yes" 6180else 6181 echo "$as_me: failed program was:" >&5 6182sed 's/^/| /' conftest.$ac_ext >&5 6183 6184 eval "$as_ac_var=no" 6185fi 6186 6187rm -f core conftest.err conftest.$ac_objext \ 6188 conftest$ac_exeext conftest.$ac_ext 6189fi 6190ac_res=`eval echo '${'$as_ac_var'}'` 6191 { echo "$as_me:$LINENO: result: $ac_res" >&5 6192echo "${ECHO_T}$ac_res" >&6; } 6193if test `eval echo '${'$as_ac_var'}'` = yes; then 6194 6195cat >>confdefs.h <<_ACEOF 6196#define CRAY_STACKSEG_END $ac_func 6197_ACEOF 6198 6199 break 6200fi 6201 6202 done 6203fi 6204 6205{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 6206echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } 6207if test "${ac_cv_c_stack_direction+set}" = set; then 6208 echo $ECHO_N "(cached) $ECHO_C" >&6 6209else 6210 if test "$cross_compiling" = yes; then 6211 ac_cv_c_stack_direction=0 6212else 6213 cat >conftest.$ac_ext <<_ACEOF 6214/* confdefs.h. */ 6215_ACEOF 6216cat confdefs.h >>conftest.$ac_ext 6217cat >>conftest.$ac_ext <<_ACEOF 6218/* end confdefs.h. */ 6219$ac_includes_default 6220int 6221find_stack_direction () 6222{ 6223 static char *addr = 0; 6224 auto char dummy; 6225 if (addr == 0) 6226 { 6227 addr = &dummy; 6228 return find_stack_direction (); 6229 } 6230 else 6231 return (&dummy > addr) ? 1 : -1; 6232} 6233 6234int 6235main () 6236{ 6237 return find_stack_direction () < 0; 6238} 6239_ACEOF 6240rm -f conftest$ac_exeext 6241if { (ac_try="$ac_link" 6242case "(($ac_try" in 6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6244 *) ac_try_echo=$ac_try;; 6245esac 6246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6247 (eval "$ac_link") 2>&5 6248 ac_status=$? 6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6251 { (case "(($ac_try" in 6252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6253 *) ac_try_echo=$ac_try;; 6254esac 6255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6256 (eval "$ac_try") 2>&5 6257 ac_status=$? 6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6259 (exit $ac_status); }; }; then 6260 ac_cv_c_stack_direction=1 6261else 6262 echo "$as_me: program exited with status $ac_status" >&5 6263echo "$as_me: failed program was:" >&5 6264sed 's/^/| /' conftest.$ac_ext >&5 6265 6266( exit $ac_status ) 6267ac_cv_c_stack_direction=-1 6268fi 6269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6270fi 6271 6272 6273fi 6274{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 6275echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } 6276 6277cat >>confdefs.h <<_ACEOF 6278#define STACK_DIRECTION $ac_cv_c_stack_direction 6279_ACEOF 6280 6281 6282fi 6283 6284 6285 6286for ac_header in stdlib.h unistd.h 6287do 6288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6290 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6293 echo $ECHO_N "(cached) $ECHO_C" >&6 6294fi 6295ac_res=`eval echo '${'$as_ac_Header'}'` 6296 { echo "$as_me:$LINENO: result: $ac_res" >&5 6297echo "${ECHO_T}$ac_res" >&6; } 6298else 6299 # Is the header compilable? 6300{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6302cat >conftest.$ac_ext <<_ACEOF 6303/* confdefs.h. */ 6304_ACEOF 6305cat confdefs.h >>conftest.$ac_ext 6306cat >>conftest.$ac_ext <<_ACEOF 6307/* end confdefs.h. */ 6308$ac_includes_default 6309#include <$ac_header> 6310_ACEOF 6311rm -f conftest.$ac_objext 6312if { (ac_try="$ac_compile" 6313case "(($ac_try" in 6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6315 *) ac_try_echo=$ac_try;; 6316esac 6317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6318 (eval "$ac_compile") 2>conftest.er1 6319 ac_status=$? 6320 grep -v '^ *+' conftest.er1 >conftest.err 6321 rm -f conftest.er1 6322 cat conftest.err >&5 6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6324 (exit $ac_status); } && 6325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6326 { (case "(($ac_try" in 6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6328 *) ac_try_echo=$ac_try;; 6329esac 6330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6331 (eval "$ac_try") 2>&5 6332 ac_status=$? 6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6334 (exit $ac_status); }; } && 6335 { ac_try='test -s conftest.$ac_objext' 6336 { (case "(($ac_try" in 6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6338 *) ac_try_echo=$ac_try;; 6339esac 6340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6341 (eval "$ac_try") 2>&5 6342 ac_status=$? 6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6344 (exit $ac_status); }; }; then 6345 ac_header_compiler=yes 6346else 6347 echo "$as_me: failed program was:" >&5 6348sed 's/^/| /' conftest.$ac_ext >&5 6349 6350 ac_header_compiler=no 6351fi 6352 6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6354{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6355echo "${ECHO_T}$ac_header_compiler" >&6; } 6356 6357# Is the header present? 6358{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6360cat >conftest.$ac_ext <<_ACEOF 6361/* confdefs.h. */ 6362_ACEOF 6363cat confdefs.h >>conftest.$ac_ext 6364cat >>conftest.$ac_ext <<_ACEOF 6365/* end confdefs.h. */ 6366#include <$ac_header> 6367_ACEOF 6368if { (ac_try="$ac_cpp conftest.$ac_ext" 6369case "(($ac_try" in 6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6371 *) ac_try_echo=$ac_try;; 6372esac 6373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6375 ac_status=$? 6376 grep -v '^ *+' conftest.er1 >conftest.err 6377 rm -f conftest.er1 6378 cat conftest.err >&5 6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6380 (exit $ac_status); } >/dev/null; then 6381 if test -s conftest.err; then 6382 ac_cpp_err=$ac_c_preproc_warn_flag 6383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6384 else 6385 ac_cpp_err= 6386 fi 6387else 6388 ac_cpp_err=yes 6389fi 6390if test -z "$ac_cpp_err"; then 6391 ac_header_preproc=yes 6392else 6393 echo "$as_me: failed program was:" >&5 6394sed 's/^/| /' conftest.$ac_ext >&5 6395 6396 ac_header_preproc=no 6397fi 6398 6399rm -f conftest.err conftest.$ac_ext 6400{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6401echo "${ECHO_T}$ac_header_preproc" >&6; } 6402 6403# So? What about this header? 6404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6405 yes:no: ) 6406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6410 ac_header_preproc=yes 6411 ;; 6412 no:yes:* ) 6413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6420echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6425 6426 ;; 6427esac 6428{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6431 echo $ECHO_N "(cached) $ECHO_C" >&6 6432else 6433 eval "$as_ac_Header=\$ac_header_preproc" 6434fi 6435ac_res=`eval echo '${'$as_ac_Header'}'` 6436 { echo "$as_me:$LINENO: result: $ac_res" >&5 6437echo "${ECHO_T}$ac_res" >&6; } 6438 6439fi 6440if test `eval echo '${'$as_ac_Header'}'` = yes; then 6441 cat >>confdefs.h <<_ACEOF 6442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6443_ACEOF 6444 6445fi 6446 6447done 6448 6449 6450for ac_func in getpagesize 6451do 6452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6453{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6455if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6456 echo $ECHO_N "(cached) $ECHO_C" >&6 6457else 6458 cat >conftest.$ac_ext <<_ACEOF 6459/* confdefs.h. */ 6460_ACEOF 6461cat confdefs.h >>conftest.$ac_ext 6462cat >>conftest.$ac_ext <<_ACEOF 6463/* end confdefs.h. */ 6464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6465 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6466#define $ac_func innocuous_$ac_func 6467 6468/* System header to define __stub macros and hopefully few prototypes, 6469 which can conflict with char $ac_func (); below. 6470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6471 <limits.h> exists even on freestanding compilers. */ 6472 6473#ifdef __STDC__ 6474# include <limits.h> 6475#else 6476# include <assert.h> 6477#endif 6478 6479#undef $ac_func 6480 6481/* Override any GCC internal prototype to avoid an error. 6482 Use char because int might match the return type of a GCC 6483 builtin and then its argument prototype would still apply. */ 6484#ifdef __cplusplus 6485extern "C" 6486#endif 6487char $ac_func (); 6488/* The GNU C library defines this for functions which it implements 6489 to always fail with ENOSYS. Some functions are actually named 6490 something starting with __ and the normal name is an alias. */ 6491#if defined __stub_$ac_func || defined __stub___$ac_func 6492choke me 6493#endif 6494 6495int 6496main () 6497{ 6498return $ac_func (); 6499 ; 6500 return 0; 6501} 6502_ACEOF 6503rm -f conftest.$ac_objext conftest$ac_exeext 6504if { (ac_try="$ac_link" 6505case "(($ac_try" in 6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6507 *) ac_try_echo=$ac_try;; 6508esac 6509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6510 (eval "$ac_link") 2>conftest.er1 6511 ac_status=$? 6512 grep -v '^ *+' conftest.er1 >conftest.err 6513 rm -f conftest.er1 6514 cat conftest.err >&5 6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6516 (exit $ac_status); } && 6517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6518 { (case "(($ac_try" in 6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6520 *) ac_try_echo=$ac_try;; 6521esac 6522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6523 (eval "$ac_try") 2>&5 6524 ac_status=$? 6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6526 (exit $ac_status); }; } && 6527 { ac_try='test -s conftest$ac_exeext' 6528 { (case "(($ac_try" in 6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6530 *) ac_try_echo=$ac_try;; 6531esac 6532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6533 (eval "$ac_try") 2>&5 6534 ac_status=$? 6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6536 (exit $ac_status); }; }; then 6537 eval "$as_ac_var=yes" 6538else 6539 echo "$as_me: failed program was:" >&5 6540sed 's/^/| /' conftest.$ac_ext >&5 6541 6542 eval "$as_ac_var=no" 6543fi 6544 6545rm -f core conftest.err conftest.$ac_objext \ 6546 conftest$ac_exeext conftest.$ac_ext 6547fi 6548ac_res=`eval echo '${'$as_ac_var'}'` 6549 { echo "$as_me:$LINENO: result: $ac_res" >&5 6550echo "${ECHO_T}$ac_res" >&6; } 6551if test `eval echo '${'$as_ac_var'}'` = yes; then 6552 cat >>confdefs.h <<_ACEOF 6553#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6554_ACEOF 6555 6556fi 6557done 6558 6559{ echo "$as_me:$LINENO: checking for working mmap" >&5 6560echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } 6561if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 6562 echo $ECHO_N "(cached) $ECHO_C" >&6 6563else 6564 if test "$cross_compiling" = yes; then 6565 ac_cv_func_mmap_fixed_mapped=no 6566else 6567 cat >conftest.$ac_ext <<_ACEOF 6568/* confdefs.h. */ 6569_ACEOF 6570cat confdefs.h >>conftest.$ac_ext 6571cat >>conftest.$ac_ext <<_ACEOF 6572/* end confdefs.h. */ 6573$ac_includes_default 6574/* malloc might have been renamed as rpl_malloc. */ 6575#undef malloc 6576 6577/* Thanks to Mike Haertel and Jim Avera for this test. 6578 Here is a matrix of mmap possibilities: 6579 mmap private not fixed 6580 mmap private fixed at somewhere currently unmapped 6581 mmap private fixed at somewhere already mapped 6582 mmap shared not fixed 6583 mmap shared fixed at somewhere currently unmapped 6584 mmap shared fixed at somewhere already mapped 6585 For private mappings, we should verify that changes cannot be read() 6586 back from the file, nor mmap's back from the file at a different 6587 address. (There have been systems where private was not correctly 6588 implemented like the infamous i386 svr4.0, and systems where the 6589 VM page cache was not coherent with the file system buffer cache 6590 like early versions of FreeBSD and possibly contemporary NetBSD.) 6591 For shared mappings, we should conversely verify that changes get 6592 propagated back to all the places they're supposed to be. 6593 6594 Grep wants private fixed already mapped. 6595 The main things grep needs to know about mmap are: 6596 * does it exist and is it safe to write into the mmap'd area 6597 * how to use it (BSD variants) */ 6598 6599#include <fcntl.h> 6600#include <sys/mman.h> 6601 6602#if !STDC_HEADERS && !HAVE_STDLIB_H 6603char *malloc (); 6604#endif 6605 6606/* This mess was copied from the GNU getpagesize.h. */ 6607#if !HAVE_GETPAGESIZE 6608/* Assume that all systems that can run configure have sys/param.h. */ 6609# if !HAVE_SYS_PARAM_H 6610# define HAVE_SYS_PARAM_H 1 6611# endif 6612 6613# ifdef _SC_PAGESIZE 6614# define getpagesize() sysconf(_SC_PAGESIZE) 6615# else /* no _SC_PAGESIZE */ 6616# if HAVE_SYS_PARAM_H 6617# include <sys/param.h> 6618# ifdef EXEC_PAGESIZE 6619# define getpagesize() EXEC_PAGESIZE 6620# else /* no EXEC_PAGESIZE */ 6621# ifdef NBPG 6622# define getpagesize() NBPG * CLSIZE 6623# ifndef CLSIZE 6624# define CLSIZE 1 6625# endif /* no CLSIZE */ 6626# else /* no NBPG */ 6627# ifdef NBPC 6628# define getpagesize() NBPC 6629# else /* no NBPC */ 6630# ifdef PAGESIZE 6631# define getpagesize() PAGESIZE 6632# endif /* PAGESIZE */ 6633# endif /* no NBPC */ 6634# endif /* no NBPG */ 6635# endif /* no EXEC_PAGESIZE */ 6636# else /* no HAVE_SYS_PARAM_H */ 6637# define getpagesize() 8192 /* punt totally */ 6638# endif /* no HAVE_SYS_PARAM_H */ 6639# endif /* no _SC_PAGESIZE */ 6640 6641#endif /* no HAVE_GETPAGESIZE */ 6642 6643int 6644main () 6645{ 6646 char *data, *data2, *data3; 6647 int i, pagesize; 6648 int fd; 6649 6650 pagesize = getpagesize (); 6651 6652 /* First, make a file with some known garbage in it. */ 6653 data = (char *) malloc (pagesize); 6654 if (!data) 6655 return 1; 6656 for (i = 0; i < pagesize; ++i) 6657 *(data + i) = rand (); 6658 umask (0); 6659 fd = creat ("conftest.mmap", 0600); 6660 if (fd < 0) 6661 return 1; 6662 if (write (fd, data, pagesize) != pagesize) 6663 return 1; 6664 close (fd); 6665 6666 /* Next, try to mmap the file at a fixed address which already has 6667 something else allocated at it. If we can, also make sure that 6668 we see the same garbage. */ 6669 fd = open ("conftest.mmap", O_RDWR); 6670 if (fd < 0) 6671 return 1; 6672 data2 = (char *) malloc (2 * pagesize); 6673 if (!data2) 6674 return 1; 6675 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 6676 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 6677 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 6678 return 1; 6679 for (i = 0; i < pagesize; ++i) 6680 if (*(data + i) != *(data2 + i)) 6681 return 1; 6682 6683 /* Finally, make sure that changes to the mapped area do not 6684 percolate back to the file as seen by read(). (This is a bug on 6685 some variants of i386 svr4.0.) */ 6686 for (i = 0; i < pagesize; ++i) 6687 *(data2 + i) = *(data2 + i) + 1; 6688 data3 = (char *) malloc (pagesize); 6689 if (!data3) 6690 return 1; 6691 if (read (fd, data3, pagesize) != pagesize) 6692 return 1; 6693 for (i = 0; i < pagesize; ++i) 6694 if (*(data + i) != *(data3 + i)) 6695 return 1; 6696 close (fd); 6697 return 0; 6698} 6699_ACEOF 6700rm -f conftest$ac_exeext 6701if { (ac_try="$ac_link" 6702case "(($ac_try" in 6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6704 *) ac_try_echo=$ac_try;; 6705esac 6706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6707 (eval "$ac_link") 2>&5 6708 ac_status=$? 6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6711 { (case "(($ac_try" in 6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6713 *) ac_try_echo=$ac_try;; 6714esac 6715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6716 (eval "$ac_try") 2>&5 6717 ac_status=$? 6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6719 (exit $ac_status); }; }; then 6720 ac_cv_func_mmap_fixed_mapped=yes 6721else 6722 echo "$as_me: program exited with status $ac_status" >&5 6723echo "$as_me: failed program was:" >&5 6724sed 's/^/| /' conftest.$ac_ext >&5 6725 6726( exit $ac_status ) 6727ac_cv_func_mmap_fixed_mapped=no 6728fi 6729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6730fi 6731 6732 6733fi 6734{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 6735echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } 6736if test $ac_cv_func_mmap_fixed_mapped = yes; then 6737 6738cat >>confdefs.h <<\_ACEOF 6739#define HAVE_MMAP 1 6740_ACEOF 6741 6742fi 6743rm -f conftest.mmap 6744 6745 6746 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 6747echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } 6748if test "${ac_cv_gnu_library_2_1+set}" = set; then 6749 echo $ECHO_N "(cached) $ECHO_C" >&6 6750else 6751 cat >conftest.$ac_ext <<_ACEOF 6752/* confdefs.h. */ 6753_ACEOF 6754cat confdefs.h >>conftest.$ac_ext 6755cat >>conftest.$ac_ext <<_ACEOF 6756/* end confdefs.h. */ 6757 6758#include <features.h> 6759#ifdef __GNU_LIBRARY__ 6760 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 6761 Lucky GNU user 6762 #endif 6763#endif 6764 6765_ACEOF 6766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6767 $EGREP "Lucky GNU user" >/dev/null 2>&1; then 6768 ac_cv_gnu_library_2_1=yes 6769else 6770 ac_cv_gnu_library_2_1=no 6771fi 6772rm -f conftest* 6773 6774 6775 6776fi 6777{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 6778echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } 6779 6780 GLIBC21="$ac_cv_gnu_library_2_1" 6781 6782 6783 6784 6785 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 6786echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } 6787if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 6788 echo $ECHO_N "(cached) $ECHO_C" >&6 6789else 6790 6791 if test "$cross_compiling" = yes; then 6792 6793 # Guess based on the CPU. 6794 case "$host_cpu" in 6795 alpha* | i3456786 | m68k | s390*) 6796 gt_cv_int_divbyzero_sigfpe="guessing yes";; 6797 *) 6798 gt_cv_int_divbyzero_sigfpe="guessing no";; 6799 esac 6800 6801else 6802 cat >conftest.$ac_ext <<_ACEOF 6803/* confdefs.h. */ 6804_ACEOF 6805cat confdefs.h >>conftest.$ac_ext 6806cat >>conftest.$ac_ext <<_ACEOF 6807/* end confdefs.h. */ 6808 6809#include <stdlib.h> 6810#include <signal.h> 6811 6812static void 6813#ifdef __cplusplus 6814sigfpe_handler (int sig) 6815#else 6816sigfpe_handler (sig) int sig; 6817#endif 6818{ 6819 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 6820 exit (sig != SIGFPE); 6821} 6822 6823int x = 1; 6824int y = 0; 6825int z; 6826int nan; 6827 6828int main () 6829{ 6830 signal (SIGFPE, sigfpe_handler); 6831/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 6832#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 6833 signal (SIGTRAP, sigfpe_handler); 6834#endif 6835/* Linux/SPARC yields signal SIGILL. */ 6836#if defined (__sparc__) && defined (__linux__) 6837 signal (SIGILL, sigfpe_handler); 6838#endif 6839 6840 z = x / y; 6841 nan = y / y; 6842 exit (1); 6843} 6844 6845_ACEOF 6846rm -f conftest$ac_exeext 6847if { (ac_try="$ac_link" 6848case "(($ac_try" in 6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6850 *) ac_try_echo=$ac_try;; 6851esac 6852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6853 (eval "$ac_link") 2>&5 6854 ac_status=$? 6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6857 { (case "(($ac_try" in 6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6859 *) ac_try_echo=$ac_try;; 6860esac 6861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6862 (eval "$ac_try") 2>&5 6863 ac_status=$? 6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6865 (exit $ac_status); }; }; then 6866 gt_cv_int_divbyzero_sigfpe=yes 6867else 6868 echo "$as_me: program exited with status $ac_status" >&5 6869echo "$as_me: failed program was:" >&5 6870sed 's/^/| /' conftest.$ac_ext >&5 6871 6872( exit $ac_status ) 6873gt_cv_int_divbyzero_sigfpe=no 6874fi 6875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6876fi 6877 6878 6879 6880fi 6881{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 6882echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } 6883 case "$gt_cv_int_divbyzero_sigfpe" in 6884 *yes) value=1;; 6885 *) value=0;; 6886 esac 6887 6888cat >>confdefs.h <<_ACEOF 6889#define INTDIV0_RAISES_SIGFPE $value 6890_ACEOF 6891 6892 6893 6894 { echo "$as_me:$LINENO: checking for unsigned long long" >&5 6895echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } 6896if test "${ac_cv_type_unsigned_long_long+set}" = set; then 6897 echo $ECHO_N "(cached) $ECHO_C" >&6 6898else 6899 cat >conftest.$ac_ext <<_ACEOF 6900/* confdefs.h. */ 6901_ACEOF 6902cat confdefs.h >>conftest.$ac_ext 6903cat >>conftest.$ac_ext <<_ACEOF 6904/* end confdefs.h. */ 6905unsigned long long ull = 1ULL; int i = 63; 6906int 6907main () 6908{ 6909unsigned long long ullmax = (unsigned long long) -1; 6910 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 6911 ; 6912 return 0; 6913} 6914_ACEOF 6915rm -f conftest.$ac_objext conftest$ac_exeext 6916if { (ac_try="$ac_link" 6917case "(($ac_try" in 6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6919 *) ac_try_echo=$ac_try;; 6920esac 6921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6922 (eval "$ac_link") 2>conftest.er1 6923 ac_status=$? 6924 grep -v '^ *+' conftest.er1 >conftest.err 6925 rm -f conftest.er1 6926 cat conftest.err >&5 6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6928 (exit $ac_status); } && 6929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6930 { (case "(($ac_try" in 6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6932 *) ac_try_echo=$ac_try;; 6933esac 6934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6935 (eval "$ac_try") 2>&5 6936 ac_status=$? 6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6938 (exit $ac_status); }; } && 6939 { ac_try='test -s conftest$ac_exeext' 6940 { (case "(($ac_try" in 6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6942 *) ac_try_echo=$ac_try;; 6943esac 6944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6945 (eval "$ac_try") 2>&5 6946 ac_status=$? 6947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6948 (exit $ac_status); }; }; then 6949 ac_cv_type_unsigned_long_long=yes 6950else 6951 echo "$as_me: failed program was:" >&5 6952sed 's/^/| /' conftest.$ac_ext >&5 6953 6954 ac_cv_type_unsigned_long_long=no 6955fi 6956 6957rm -f core conftest.err conftest.$ac_objext \ 6958 conftest$ac_exeext conftest.$ac_ext 6959fi 6960{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 6961echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } 6962 if test $ac_cv_type_unsigned_long_long = yes; then 6963 6964cat >>confdefs.h <<\_ACEOF 6965#define HAVE_UNSIGNED_LONG_LONG 1 6966_ACEOF 6967 6968 fi 6969 6970 6971 6972 6973 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 6974 6975 test $ac_cv_type_unsigned_long_long = yes \ 6976 && ac_type='unsigned long long' \ 6977 || ac_type='unsigned long' 6978 6979cat >>confdefs.h <<_ACEOF 6980#define uintmax_t $ac_type 6981_ACEOF 6982 6983 else 6984 6985cat >>confdefs.h <<\_ACEOF 6986#define HAVE_UINTMAX_T 1 6987_ACEOF 6988 6989 fi 6990 6991 6992 { echo "$as_me:$LINENO: checking for inttypes.h" >&5 6993echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } 6994if test "${gt_cv_header_inttypes_h+set}" = set; then 6995 echo $ECHO_N "(cached) $ECHO_C" >&6 6996else 6997 6998 cat >conftest.$ac_ext <<_ACEOF 6999/* confdefs.h. */ 7000_ACEOF 7001cat confdefs.h >>conftest.$ac_ext 7002cat >>conftest.$ac_ext <<_ACEOF 7003/* end confdefs.h. */ 7004#include <sys/types.h> 7005#include <inttypes.h> 7006int 7007main () 7008{ 7009 7010 ; 7011 return 0; 7012} 7013_ACEOF 7014rm -f conftest.$ac_objext 7015if { (ac_try="$ac_compile" 7016case "(($ac_try" in 7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7018 *) ac_try_echo=$ac_try;; 7019esac 7020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7021 (eval "$ac_compile") 2>conftest.er1 7022 ac_status=$? 7023 grep -v '^ *+' conftest.er1 >conftest.err 7024 rm -f conftest.er1 7025 cat conftest.err >&5 7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7027 (exit $ac_status); } && 7028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7029 { (case "(($ac_try" in 7030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7031 *) ac_try_echo=$ac_try;; 7032esac 7033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7034 (eval "$ac_try") 2>&5 7035 ac_status=$? 7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7037 (exit $ac_status); }; } && 7038 { ac_try='test -s conftest.$ac_objext' 7039 { (case "(($ac_try" in 7040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7041 *) ac_try_echo=$ac_try;; 7042esac 7043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7044 (eval "$ac_try") 2>&5 7045 ac_status=$? 7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7047 (exit $ac_status); }; }; then 7048 gt_cv_header_inttypes_h=yes 7049else 7050 echo "$as_me: failed program was:" >&5 7051sed 's/^/| /' conftest.$ac_ext >&5 7052 7053 gt_cv_header_inttypes_h=no 7054fi 7055 7056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7057 7058fi 7059{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 7060echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } 7061 if test $gt_cv_header_inttypes_h = yes; then 7062 7063cat >>confdefs.h <<_ACEOF 7064#define HAVE_INTTYPES_H 1 7065_ACEOF 7066 7067 fi 7068 7069 7070 7071 if test $gt_cv_header_inttypes_h = yes; then 7072 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 7073echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } 7074if test "${gt_cv_inttypes_pri_broken+set}" = set; then 7075 echo $ECHO_N "(cached) $ECHO_C" >&6 7076else 7077 7078 cat >conftest.$ac_ext <<_ACEOF 7079/* confdefs.h. */ 7080_ACEOF 7081cat confdefs.h >>conftest.$ac_ext 7082cat >>conftest.$ac_ext <<_ACEOF 7083/* end confdefs.h. */ 7084#include <inttypes.h> 7085#ifdef PRId32 7086char *p = PRId32; 7087#endif 7088 7089int 7090main () 7091{ 7092 7093 ; 7094 return 0; 7095} 7096_ACEOF 7097rm -f conftest.$ac_objext 7098if { (ac_try="$ac_compile" 7099case "(($ac_try" in 7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7101 *) ac_try_echo=$ac_try;; 7102esac 7103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7104 (eval "$ac_compile") 2>conftest.er1 7105 ac_status=$? 7106 grep -v '^ *+' conftest.er1 >conftest.err 7107 rm -f conftest.er1 7108 cat conftest.err >&5 7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7110 (exit $ac_status); } && 7111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7112 { (case "(($ac_try" in 7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7114 *) ac_try_echo=$ac_try;; 7115esac 7116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7117 (eval "$ac_try") 2>&5 7118 ac_status=$? 7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7120 (exit $ac_status); }; } && 7121 { ac_try='test -s conftest.$ac_objext' 7122 { (case "(($ac_try" in 7123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7124 *) ac_try_echo=$ac_try;; 7125esac 7126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7127 (eval "$ac_try") 2>&5 7128 ac_status=$? 7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7130 (exit $ac_status); }; }; then 7131 gt_cv_inttypes_pri_broken=no 7132else 7133 echo "$as_me: failed program was:" >&5 7134sed 's/^/| /' conftest.$ac_ext >&5 7135 7136 gt_cv_inttypes_pri_broken=yes 7137fi 7138 7139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7140 7141fi 7142{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 7143echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } 7144 fi 7145 if test "$gt_cv_inttypes_pri_broken" = yes; then 7146 7147cat >>confdefs.h <<_ACEOF 7148#define PRI_MACROS_BROKEN 1 7149_ACEOF 7150 7151 fi 7152 7153 7154 7155for ac_header in stdint.h 7156do 7157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7159 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7162 echo $ECHO_N "(cached) $ECHO_C" >&6 7163fi 7164ac_res=`eval echo '${'$as_ac_Header'}'` 7165 { echo "$as_me:$LINENO: result: $ac_res" >&5 7166echo "${ECHO_T}$ac_res" >&6; } 7167else 7168 # Is the header compilable? 7169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7171cat >conftest.$ac_ext <<_ACEOF 7172/* confdefs.h. */ 7173_ACEOF 7174cat confdefs.h >>conftest.$ac_ext 7175cat >>conftest.$ac_ext <<_ACEOF 7176/* end confdefs.h. */ 7177$ac_includes_default 7178#include <$ac_header> 7179_ACEOF 7180rm -f conftest.$ac_objext 7181if { (ac_try="$ac_compile" 7182case "(($ac_try" in 7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7184 *) ac_try_echo=$ac_try;; 7185esac 7186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7187 (eval "$ac_compile") 2>conftest.er1 7188 ac_status=$? 7189 grep -v '^ *+' conftest.er1 >conftest.err 7190 rm -f conftest.er1 7191 cat conftest.err >&5 7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7193 (exit $ac_status); } && 7194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7195 { (case "(($ac_try" in 7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7197 *) ac_try_echo=$ac_try;; 7198esac 7199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7200 (eval "$ac_try") 2>&5 7201 ac_status=$? 7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7203 (exit $ac_status); }; } && 7204 { ac_try='test -s conftest.$ac_objext' 7205 { (case "(($ac_try" in 7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7207 *) ac_try_echo=$ac_try;; 7208esac 7209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7210 (eval "$ac_try") 2>&5 7211 ac_status=$? 7212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7213 (exit $ac_status); }; }; then 7214 ac_header_compiler=yes 7215else 7216 echo "$as_me: failed program was:" >&5 7217sed 's/^/| /' conftest.$ac_ext >&5 7218 7219 ac_header_compiler=no 7220fi 7221 7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7224echo "${ECHO_T}$ac_header_compiler" >&6; } 7225 7226# Is the header present? 7227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7229cat >conftest.$ac_ext <<_ACEOF 7230/* confdefs.h. */ 7231_ACEOF 7232cat confdefs.h >>conftest.$ac_ext 7233cat >>conftest.$ac_ext <<_ACEOF 7234/* end confdefs.h. */ 7235#include <$ac_header> 7236_ACEOF 7237if { (ac_try="$ac_cpp conftest.$ac_ext" 7238case "(($ac_try" in 7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7240 *) ac_try_echo=$ac_try;; 7241esac 7242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7244 ac_status=$? 7245 grep -v '^ *+' conftest.er1 >conftest.err 7246 rm -f conftest.er1 7247 cat conftest.err >&5 7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7249 (exit $ac_status); } >/dev/null; then 7250 if test -s conftest.err; then 7251 ac_cpp_err=$ac_c_preproc_warn_flag 7252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7253 else 7254 ac_cpp_err= 7255 fi 7256else 7257 ac_cpp_err=yes 7258fi 7259if test -z "$ac_cpp_err"; then 7260 ac_header_preproc=yes 7261else 7262 echo "$as_me: failed program was:" >&5 7263sed 's/^/| /' conftest.$ac_ext >&5 7264 7265 ac_header_preproc=no 7266fi 7267 7268rm -f conftest.err conftest.$ac_ext 7269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7270echo "${ECHO_T}$ac_header_preproc" >&6; } 7271 7272# So? What about this header? 7273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7274 yes:no: ) 7275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7279 ac_header_preproc=yes 7280 ;; 7281 no:yes:* ) 7282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7294 7295 ;; 7296esac 7297{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7300 echo $ECHO_N "(cached) $ECHO_C" >&6 7301else 7302 eval "$as_ac_Header=\$ac_header_preproc" 7303fi 7304ac_res=`eval echo '${'$as_ac_Header'}'` 7305 { echo "$as_me:$LINENO: result: $ac_res" >&5 7306echo "${ECHO_T}$ac_res" >&6; } 7307 7308fi 7309if test `eval echo '${'$as_ac_Header'}'` = yes; then 7310 cat >>confdefs.h <<_ACEOF 7311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7312_ACEOF 7313 7314fi 7315 7316done 7317 7318 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 7319echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } 7320 result= 7321 cat >conftest.$ac_ext <<_ACEOF 7322/* confdefs.h. */ 7323_ACEOF 7324cat confdefs.h >>conftest.$ac_ext 7325cat >>conftest.$ac_ext <<_ACEOF 7326/* end confdefs.h. */ 7327 7328#include <limits.h> 7329#if HAVE_STDINT_H 7330#include <stdint.h> 7331#endif 7332#ifdef SIZE_MAX 7333Found it 7334#endif 7335 7336_ACEOF 7337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7338 $EGREP "Found it" >/dev/null 2>&1; then 7339 result=yes 7340fi 7341rm -f conftest* 7342 7343 if test -z "$result"; then 7344 if test "$cross_compiling" = yes; then 7345 # Depending upon the size, compute the lo and hi bounds. 7346cat >conftest.$ac_ext <<_ACEOF 7347/* confdefs.h. */ 7348_ACEOF 7349cat confdefs.h >>conftest.$ac_ext 7350cat >>conftest.$ac_ext <<_ACEOF 7351/* end confdefs.h. */ 7352#include <stddef.h> 7353int 7354main () 7355{ 7356static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; 7357test_array [0] = 0 7358 7359 ; 7360 return 0; 7361} 7362_ACEOF 7363rm -f conftest.$ac_objext 7364if { (ac_try="$ac_compile" 7365case "(($ac_try" in 7366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7367 *) ac_try_echo=$ac_try;; 7368esac 7369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7370 (eval "$ac_compile") 2>conftest.er1 7371 ac_status=$? 7372 grep -v '^ *+' conftest.er1 >conftest.err 7373 rm -f conftest.er1 7374 cat conftest.err >&5 7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7376 (exit $ac_status); } && 7377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7378 { (case "(($ac_try" in 7379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7380 *) ac_try_echo=$ac_try;; 7381esac 7382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7383 (eval "$ac_try") 2>&5 7384 ac_status=$? 7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7386 (exit $ac_status); }; } && 7387 { ac_try='test -s conftest.$ac_objext' 7388 { (case "(($ac_try" in 7389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7390 *) ac_try_echo=$ac_try;; 7391esac 7392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7393 (eval "$ac_try") 2>&5 7394 ac_status=$? 7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7396 (exit $ac_status); }; }; then 7397 ac_lo=0 ac_mid=0 7398 while :; do 7399 cat >conftest.$ac_ext <<_ACEOF 7400/* confdefs.h. */ 7401_ACEOF 7402cat confdefs.h >>conftest.$ac_ext 7403cat >>conftest.$ac_ext <<_ACEOF 7404/* end confdefs.h. */ 7405#include <stddef.h> 7406int 7407main () 7408{ 7409static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 7410test_array [0] = 0 7411 7412 ; 7413 return 0; 7414} 7415_ACEOF 7416rm -f conftest.$ac_objext 7417if { (ac_try="$ac_compile" 7418case "(($ac_try" in 7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7420 *) ac_try_echo=$ac_try;; 7421esac 7422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7423 (eval "$ac_compile") 2>conftest.er1 7424 ac_status=$? 7425 grep -v '^ *+' conftest.er1 >conftest.err 7426 rm -f conftest.er1 7427 cat conftest.err >&5 7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7429 (exit $ac_status); } && 7430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7431 { (case "(($ac_try" in 7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7433 *) ac_try_echo=$ac_try;; 7434esac 7435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7436 (eval "$ac_try") 2>&5 7437 ac_status=$? 7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7439 (exit $ac_status); }; } && 7440 { ac_try='test -s conftest.$ac_objext' 7441 { (case "(($ac_try" in 7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7443 *) ac_try_echo=$ac_try;; 7444esac 7445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7446 (eval "$ac_try") 2>&5 7447 ac_status=$? 7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7449 (exit $ac_status); }; }; then 7450 ac_hi=$ac_mid; break 7451else 7452 echo "$as_me: failed program was:" >&5 7453sed 's/^/| /' conftest.$ac_ext >&5 7454 7455 ac_lo=`expr $ac_mid + 1` 7456 if test $ac_lo -le $ac_mid; then 7457 ac_lo= ac_hi= 7458 break 7459 fi 7460 ac_mid=`expr 2 '*' $ac_mid + 1` 7461fi 7462 7463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7464 done 7465else 7466 echo "$as_me: failed program was:" >&5 7467sed 's/^/| /' conftest.$ac_ext >&5 7468 7469 cat >conftest.$ac_ext <<_ACEOF 7470/* confdefs.h. */ 7471_ACEOF 7472cat confdefs.h >>conftest.$ac_ext 7473cat >>conftest.$ac_ext <<_ACEOF 7474/* end confdefs.h. */ 7475#include <stddef.h> 7476int 7477main () 7478{ 7479static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; 7480test_array [0] = 0 7481 7482 ; 7483 return 0; 7484} 7485_ACEOF 7486rm -f conftest.$ac_objext 7487if { (ac_try="$ac_compile" 7488case "(($ac_try" in 7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7490 *) ac_try_echo=$ac_try;; 7491esac 7492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7493 (eval "$ac_compile") 2>conftest.er1 7494 ac_status=$? 7495 grep -v '^ *+' conftest.er1 >conftest.err 7496 rm -f conftest.er1 7497 cat conftest.err >&5 7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7499 (exit $ac_status); } && 7500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7501 { (case "(($ac_try" in 7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7503 *) ac_try_echo=$ac_try;; 7504esac 7505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7506 (eval "$ac_try") 2>&5 7507 ac_status=$? 7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7509 (exit $ac_status); }; } && 7510 { ac_try='test -s conftest.$ac_objext' 7511 { (case "(($ac_try" in 7512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7513 *) ac_try_echo=$ac_try;; 7514esac 7515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7516 (eval "$ac_try") 2>&5 7517 ac_status=$? 7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7519 (exit $ac_status); }; }; then 7520 ac_hi=-1 ac_mid=-1 7521 while :; do 7522 cat >conftest.$ac_ext <<_ACEOF 7523/* confdefs.h. */ 7524_ACEOF 7525cat confdefs.h >>conftest.$ac_ext 7526cat >>conftest.$ac_ext <<_ACEOF 7527/* end confdefs.h. */ 7528#include <stddef.h> 7529int 7530main () 7531{ 7532static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; 7533test_array [0] = 0 7534 7535 ; 7536 return 0; 7537} 7538_ACEOF 7539rm -f conftest.$ac_objext 7540if { (ac_try="$ac_compile" 7541case "(($ac_try" in 7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7543 *) ac_try_echo=$ac_try;; 7544esac 7545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7546 (eval "$ac_compile") 2>conftest.er1 7547 ac_status=$? 7548 grep -v '^ *+' conftest.er1 >conftest.err 7549 rm -f conftest.er1 7550 cat conftest.err >&5 7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7552 (exit $ac_status); } && 7553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7554 { (case "(($ac_try" in 7555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7556 *) ac_try_echo=$ac_try;; 7557esac 7558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7559 (eval "$ac_try") 2>&5 7560 ac_status=$? 7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7562 (exit $ac_status); }; } && 7563 { ac_try='test -s conftest.$ac_objext' 7564 { (case "(($ac_try" in 7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7566 *) ac_try_echo=$ac_try;; 7567esac 7568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7569 (eval "$ac_try") 2>&5 7570 ac_status=$? 7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7572 (exit $ac_status); }; }; then 7573 ac_lo=$ac_mid; break 7574else 7575 echo "$as_me: failed program was:" >&5 7576sed 's/^/| /' conftest.$ac_ext >&5 7577 7578 ac_hi=`expr '(' $ac_mid ')' - 1` 7579 if test $ac_mid -le $ac_hi; then 7580 ac_lo= ac_hi= 7581 break 7582 fi 7583 ac_mid=`expr 2 '*' $ac_mid` 7584fi 7585 7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7587 done 7588else 7589 echo "$as_me: failed program was:" >&5 7590sed 's/^/| /' conftest.$ac_ext >&5 7591 7592 ac_lo= ac_hi= 7593fi 7594 7595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7596fi 7597 7598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7599# Binary search between lo and hi bounds. 7600while test "x$ac_lo" != "x$ac_hi"; do 7601 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7602 cat >conftest.$ac_ext <<_ACEOF 7603/* confdefs.h. */ 7604_ACEOF 7605cat confdefs.h >>conftest.$ac_ext 7606cat >>conftest.$ac_ext <<_ACEOF 7607/* end confdefs.h. */ 7608#include <stddef.h> 7609int 7610main () 7611{ 7612static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 7613test_array [0] = 0 7614 7615 ; 7616 return 0; 7617} 7618_ACEOF 7619rm -f conftest.$ac_objext 7620if { (ac_try="$ac_compile" 7621case "(($ac_try" in 7622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7623 *) ac_try_echo=$ac_try;; 7624esac 7625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7626 (eval "$ac_compile") 2>conftest.er1 7627 ac_status=$? 7628 grep -v '^ *+' conftest.er1 >conftest.err 7629 rm -f conftest.er1 7630 cat conftest.err >&5 7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7632 (exit $ac_status); } && 7633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7634 { (case "(($ac_try" in 7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7636 *) ac_try_echo=$ac_try;; 7637esac 7638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7639 (eval "$ac_try") 2>&5 7640 ac_status=$? 7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7642 (exit $ac_status); }; } && 7643 { ac_try='test -s conftest.$ac_objext' 7644 { (case "(($ac_try" in 7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7646 *) ac_try_echo=$ac_try;; 7647esac 7648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7649 (eval "$ac_try") 2>&5 7650 ac_status=$? 7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7652 (exit $ac_status); }; }; then 7653 ac_hi=$ac_mid 7654else 7655 echo "$as_me: failed program was:" >&5 7656sed 's/^/| /' conftest.$ac_ext >&5 7657 7658 ac_lo=`expr '(' $ac_mid ')' + 1` 7659fi 7660 7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7662done 7663case $ac_lo in 7664?*) res_hi=$ac_lo;; 7665'') result=? ;; 7666esac 7667else 7668 cat >conftest.$ac_ext <<_ACEOF 7669/* confdefs.h. */ 7670_ACEOF 7671cat confdefs.h >>conftest.$ac_ext 7672cat >>conftest.$ac_ext <<_ACEOF 7673/* end confdefs.h. */ 7674#include <stddef.h> 7675static long int longval () { return ~(size_t)0 / 10; } 7676static unsigned long int ulongval () { return ~(size_t)0 / 10; } 7677#include <stdio.h> 7678#include <stdlib.h> 7679int 7680main () 7681{ 7682 7683 FILE *f = fopen ("conftest.val", "w"); 7684 if (! f) 7685 return 1; 7686 if ((~(size_t)0 / 10) < 0) 7687 { 7688 long int i = longval (); 7689 if (i != (~(size_t)0 / 10)) 7690 return 1; 7691 fprintf (f, "%ld\n", i); 7692 } 7693 else 7694 { 7695 unsigned long int i = ulongval (); 7696 if (i != (~(size_t)0 / 10)) 7697 return 1; 7698 fprintf (f, "%lu\n", i); 7699 } 7700 return ferror (f) || fclose (f) != 0; 7701 7702 ; 7703 return 0; 7704} 7705_ACEOF 7706rm -f conftest$ac_exeext 7707if { (ac_try="$ac_link" 7708case "(($ac_try" in 7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7710 *) ac_try_echo=$ac_try;; 7711esac 7712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7713 (eval "$ac_link") 2>&5 7714 ac_status=$? 7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7717 { (case "(($ac_try" in 7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7719 *) ac_try_echo=$ac_try;; 7720esac 7721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7722 (eval "$ac_try") 2>&5 7723 ac_status=$? 7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7725 (exit $ac_status); }; }; then 7726 res_hi=`cat conftest.val` 7727else 7728 echo "$as_me: program exited with status $ac_status" >&5 7729echo "$as_me: failed program was:" >&5 7730sed 's/^/| /' conftest.$ac_ext >&5 7731 7732( exit $ac_status ) 7733result=? 7734fi 7735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7736fi 7737rm -f conftest.val 7738 if test "$cross_compiling" = yes; then 7739 # Depending upon the size, compute the lo and hi bounds. 7740cat >conftest.$ac_ext <<_ACEOF 7741/* confdefs.h. */ 7742_ACEOF 7743cat confdefs.h >>conftest.$ac_ext 7744cat >>conftest.$ac_ext <<_ACEOF 7745/* end confdefs.h. */ 7746#include <stddef.h> 7747int 7748main () 7749{ 7750static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; 7751test_array [0] = 0 7752 7753 ; 7754 return 0; 7755} 7756_ACEOF 7757rm -f conftest.$ac_objext 7758if { (ac_try="$ac_compile" 7759case "(($ac_try" in 7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7761 *) ac_try_echo=$ac_try;; 7762esac 7763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7764 (eval "$ac_compile") 2>conftest.er1 7765 ac_status=$? 7766 grep -v '^ *+' conftest.er1 >conftest.err 7767 rm -f conftest.er1 7768 cat conftest.err >&5 7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7770 (exit $ac_status); } && 7771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7772 { (case "(($ac_try" in 7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7774 *) ac_try_echo=$ac_try;; 7775esac 7776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7777 (eval "$ac_try") 2>&5 7778 ac_status=$? 7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7780 (exit $ac_status); }; } && 7781 { ac_try='test -s conftest.$ac_objext' 7782 { (case "(($ac_try" in 7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7784 *) ac_try_echo=$ac_try;; 7785esac 7786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7787 (eval "$ac_try") 2>&5 7788 ac_status=$? 7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7790 (exit $ac_status); }; }; then 7791 ac_lo=0 ac_mid=0 7792 while :; do 7793 cat >conftest.$ac_ext <<_ACEOF 7794/* confdefs.h. */ 7795_ACEOF 7796cat confdefs.h >>conftest.$ac_ext 7797cat >>conftest.$ac_ext <<_ACEOF 7798/* end confdefs.h. */ 7799#include <stddef.h> 7800int 7801main () 7802{ 7803static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 7804test_array [0] = 0 7805 7806 ; 7807 return 0; 7808} 7809_ACEOF 7810rm -f conftest.$ac_objext 7811if { (ac_try="$ac_compile" 7812case "(($ac_try" in 7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7814 *) ac_try_echo=$ac_try;; 7815esac 7816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7817 (eval "$ac_compile") 2>conftest.er1 7818 ac_status=$? 7819 grep -v '^ *+' conftest.er1 >conftest.err 7820 rm -f conftest.er1 7821 cat conftest.err >&5 7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7823 (exit $ac_status); } && 7824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7825 { (case "(($ac_try" in 7826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7827 *) ac_try_echo=$ac_try;; 7828esac 7829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7830 (eval "$ac_try") 2>&5 7831 ac_status=$? 7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7833 (exit $ac_status); }; } && 7834 { ac_try='test -s conftest.$ac_objext' 7835 { (case "(($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_try") 2>&5 7841 ac_status=$? 7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7843 (exit $ac_status); }; }; then 7844 ac_hi=$ac_mid; break 7845else 7846 echo "$as_me: failed program was:" >&5 7847sed 's/^/| /' conftest.$ac_ext >&5 7848 7849 ac_lo=`expr $ac_mid + 1` 7850 if test $ac_lo -le $ac_mid; then 7851 ac_lo= ac_hi= 7852 break 7853 fi 7854 ac_mid=`expr 2 '*' $ac_mid + 1` 7855fi 7856 7857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7858 done 7859else 7860 echo "$as_me: failed program was:" >&5 7861sed 's/^/| /' conftest.$ac_ext >&5 7862 7863 cat >conftest.$ac_ext <<_ACEOF 7864/* confdefs.h. */ 7865_ACEOF 7866cat confdefs.h >>conftest.$ac_ext 7867cat >>conftest.$ac_ext <<_ACEOF 7868/* end confdefs.h. */ 7869#include <stddef.h> 7870int 7871main () 7872{ 7873static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; 7874test_array [0] = 0 7875 7876 ; 7877 return 0; 7878} 7879_ACEOF 7880rm -f conftest.$ac_objext 7881if { (ac_try="$ac_compile" 7882case "(($ac_try" in 7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7884 *) ac_try_echo=$ac_try;; 7885esac 7886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7887 (eval "$ac_compile") 2>conftest.er1 7888 ac_status=$? 7889 grep -v '^ *+' conftest.er1 >conftest.err 7890 rm -f conftest.er1 7891 cat conftest.err >&5 7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7893 (exit $ac_status); } && 7894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7895 { (case "(($ac_try" in 7896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7897 *) ac_try_echo=$ac_try;; 7898esac 7899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7900 (eval "$ac_try") 2>&5 7901 ac_status=$? 7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7903 (exit $ac_status); }; } && 7904 { ac_try='test -s conftest.$ac_objext' 7905 { (case "(($ac_try" in 7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7907 *) ac_try_echo=$ac_try;; 7908esac 7909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7910 (eval "$ac_try") 2>&5 7911 ac_status=$? 7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7913 (exit $ac_status); }; }; then 7914 ac_hi=-1 ac_mid=-1 7915 while :; do 7916 cat >conftest.$ac_ext <<_ACEOF 7917/* confdefs.h. */ 7918_ACEOF 7919cat confdefs.h >>conftest.$ac_ext 7920cat >>conftest.$ac_ext <<_ACEOF 7921/* end confdefs.h. */ 7922#include <stddef.h> 7923int 7924main () 7925{ 7926static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; 7927test_array [0] = 0 7928 7929 ; 7930 return 0; 7931} 7932_ACEOF 7933rm -f conftest.$ac_objext 7934if { (ac_try="$ac_compile" 7935case "(($ac_try" in 7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7937 *) ac_try_echo=$ac_try;; 7938esac 7939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7940 (eval "$ac_compile") 2>conftest.er1 7941 ac_status=$? 7942 grep -v '^ *+' conftest.er1 >conftest.err 7943 rm -f conftest.er1 7944 cat conftest.err >&5 7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7946 (exit $ac_status); } && 7947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7948 { (case "(($ac_try" in 7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7950 *) ac_try_echo=$ac_try;; 7951esac 7952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7953 (eval "$ac_try") 2>&5 7954 ac_status=$? 7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7956 (exit $ac_status); }; } && 7957 { ac_try='test -s conftest.$ac_objext' 7958 { (case "(($ac_try" in 7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7960 *) ac_try_echo=$ac_try;; 7961esac 7962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7963 (eval "$ac_try") 2>&5 7964 ac_status=$? 7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7966 (exit $ac_status); }; }; then 7967 ac_lo=$ac_mid; break 7968else 7969 echo "$as_me: failed program was:" >&5 7970sed 's/^/| /' conftest.$ac_ext >&5 7971 7972 ac_hi=`expr '(' $ac_mid ')' - 1` 7973 if test $ac_mid -le $ac_hi; then 7974 ac_lo= ac_hi= 7975 break 7976 fi 7977 ac_mid=`expr 2 '*' $ac_mid` 7978fi 7979 7980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7981 done 7982else 7983 echo "$as_me: failed program was:" >&5 7984sed 's/^/| /' conftest.$ac_ext >&5 7985 7986 ac_lo= ac_hi= 7987fi 7988 7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7990fi 7991 7992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7993# Binary search between lo and hi bounds. 7994while test "x$ac_lo" != "x$ac_hi"; do 7995 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7996 cat >conftest.$ac_ext <<_ACEOF 7997/* confdefs.h. */ 7998_ACEOF 7999cat confdefs.h >>conftest.$ac_ext 8000cat >>conftest.$ac_ext <<_ACEOF 8001/* end confdefs.h. */ 8002#include <stddef.h> 8003int 8004main () 8005{ 8006static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 8007test_array [0] = 0 8008 8009 ; 8010 return 0; 8011} 8012_ACEOF 8013rm -f conftest.$ac_objext 8014if { (ac_try="$ac_compile" 8015case "(($ac_try" in 8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8017 *) ac_try_echo=$ac_try;; 8018esac 8019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8020 (eval "$ac_compile") 2>conftest.er1 8021 ac_status=$? 8022 grep -v '^ *+' conftest.er1 >conftest.err 8023 rm -f conftest.er1 8024 cat conftest.err >&5 8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8026 (exit $ac_status); } && 8027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8028 { (case "(($ac_try" in 8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8030 *) ac_try_echo=$ac_try;; 8031esac 8032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8033 (eval "$ac_try") 2>&5 8034 ac_status=$? 8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8036 (exit $ac_status); }; } && 8037 { ac_try='test -s conftest.$ac_objext' 8038 { (case "(($ac_try" in 8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8040 *) ac_try_echo=$ac_try;; 8041esac 8042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8043 (eval "$ac_try") 2>&5 8044 ac_status=$? 8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8046 (exit $ac_status); }; }; then 8047 ac_hi=$ac_mid 8048else 8049 echo "$as_me: failed program was:" >&5 8050sed 's/^/| /' conftest.$ac_ext >&5 8051 8052 ac_lo=`expr '(' $ac_mid ')' + 1` 8053fi 8054 8055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8056done 8057case $ac_lo in 8058?*) res_lo=$ac_lo;; 8059'') result=? ;; 8060esac 8061else 8062 cat >conftest.$ac_ext <<_ACEOF 8063/* confdefs.h. */ 8064_ACEOF 8065cat confdefs.h >>conftest.$ac_ext 8066cat >>conftest.$ac_ext <<_ACEOF 8067/* end confdefs.h. */ 8068#include <stddef.h> 8069static long int longval () { return ~(size_t)0 % 10; } 8070static unsigned long int ulongval () { return ~(size_t)0 % 10; } 8071#include <stdio.h> 8072#include <stdlib.h> 8073int 8074main () 8075{ 8076 8077 FILE *f = fopen ("conftest.val", "w"); 8078 if (! f) 8079 return 1; 8080 if ((~(size_t)0 % 10) < 0) 8081 { 8082 long int i = longval (); 8083 if (i != (~(size_t)0 % 10)) 8084 return 1; 8085 fprintf (f, "%ld\n", i); 8086 } 8087 else 8088 { 8089 unsigned long int i = ulongval (); 8090 if (i != (~(size_t)0 % 10)) 8091 return 1; 8092 fprintf (f, "%lu\n", i); 8093 } 8094 return ferror (f) || fclose (f) != 0; 8095 8096 ; 8097 return 0; 8098} 8099_ACEOF 8100rm -f conftest$ac_exeext 8101if { (ac_try="$ac_link" 8102case "(($ac_try" in 8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8104 *) ac_try_echo=$ac_try;; 8105esac 8106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8107 (eval "$ac_link") 2>&5 8108 ac_status=$? 8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8111 { (case "(($ac_try" in 8112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8113 *) ac_try_echo=$ac_try;; 8114esac 8115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8116 (eval "$ac_try") 2>&5 8117 ac_status=$? 8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8119 (exit $ac_status); }; }; then 8120 res_lo=`cat conftest.val` 8121else 8122 echo "$as_me: program exited with status $ac_status" >&5 8123echo "$as_me: failed program was:" >&5 8124sed 's/^/| /' conftest.$ac_ext >&5 8125 8126( exit $ac_status ) 8127result=? 8128fi 8129rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8130fi 8131rm -f conftest.val 8132 if test "$cross_compiling" = yes; then 8133 # Depending upon the size, compute the lo and hi bounds. 8134cat >conftest.$ac_ext <<_ACEOF 8135/* confdefs.h. */ 8136_ACEOF 8137cat confdefs.h >>conftest.$ac_ext 8138cat >>conftest.$ac_ext <<_ACEOF 8139/* end confdefs.h. */ 8140#include <stddef.h> 8141int 8142main () 8143{ 8144static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 8145test_array [0] = 0 8146 8147 ; 8148 return 0; 8149} 8150_ACEOF 8151rm -f conftest.$ac_objext 8152if { (ac_try="$ac_compile" 8153case "(($ac_try" in 8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8155 *) ac_try_echo=$ac_try;; 8156esac 8157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8158 (eval "$ac_compile") 2>conftest.er1 8159 ac_status=$? 8160 grep -v '^ *+' conftest.er1 >conftest.err 8161 rm -f conftest.er1 8162 cat conftest.err >&5 8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8164 (exit $ac_status); } && 8165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8166 { (case "(($ac_try" in 8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8168 *) ac_try_echo=$ac_try;; 8169esac 8170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8171 (eval "$ac_try") 2>&5 8172 ac_status=$? 8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8174 (exit $ac_status); }; } && 8175 { ac_try='test -s conftest.$ac_objext' 8176 { (case "(($ac_try" in 8177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8178 *) ac_try_echo=$ac_try;; 8179esac 8180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8181 (eval "$ac_try") 2>&5 8182 ac_status=$? 8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8184 (exit $ac_status); }; }; then 8185 ac_lo=0 ac_mid=0 8186 while :; do 8187 cat >conftest.$ac_ext <<_ACEOF 8188/* confdefs.h. */ 8189_ACEOF 8190cat confdefs.h >>conftest.$ac_ext 8191cat >>conftest.$ac_ext <<_ACEOF 8192/* end confdefs.h. */ 8193#include <stddef.h> 8194int 8195main () 8196{ 8197static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 8198test_array [0] = 0 8199 8200 ; 8201 return 0; 8202} 8203_ACEOF 8204rm -f conftest.$ac_objext 8205if { (ac_try="$ac_compile" 8206case "(($ac_try" in 8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8208 *) ac_try_echo=$ac_try;; 8209esac 8210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8211 (eval "$ac_compile") 2>conftest.er1 8212 ac_status=$? 8213 grep -v '^ *+' conftest.er1 >conftest.err 8214 rm -f conftest.er1 8215 cat conftest.err >&5 8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8217 (exit $ac_status); } && 8218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8219 { (case "(($ac_try" in 8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8221 *) ac_try_echo=$ac_try;; 8222esac 8223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8224 (eval "$ac_try") 2>&5 8225 ac_status=$? 8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8227 (exit $ac_status); }; } && 8228 { ac_try='test -s conftest.$ac_objext' 8229 { (case "(($ac_try" in 8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8231 *) ac_try_echo=$ac_try;; 8232esac 8233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8234 (eval "$ac_try") 2>&5 8235 ac_status=$? 8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8237 (exit $ac_status); }; }; then 8238 ac_hi=$ac_mid; break 8239else 8240 echo "$as_me: failed program was:" >&5 8241sed 's/^/| /' conftest.$ac_ext >&5 8242 8243 ac_lo=`expr $ac_mid + 1` 8244 if test $ac_lo -le $ac_mid; then 8245 ac_lo= ac_hi= 8246 break 8247 fi 8248 ac_mid=`expr 2 '*' $ac_mid + 1` 8249fi 8250 8251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8252 done 8253else 8254 echo "$as_me: failed program was:" >&5 8255sed 's/^/| /' conftest.$ac_ext >&5 8256 8257 cat >conftest.$ac_ext <<_ACEOF 8258/* confdefs.h. */ 8259_ACEOF 8260cat confdefs.h >>conftest.$ac_ext 8261cat >>conftest.$ac_ext <<_ACEOF 8262/* end confdefs.h. */ 8263#include <stddef.h> 8264int 8265main () 8266{ 8267static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 8268test_array [0] = 0 8269 8270 ; 8271 return 0; 8272} 8273_ACEOF 8274rm -f conftest.$ac_objext 8275if { (ac_try="$ac_compile" 8276case "(($ac_try" in 8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8278 *) ac_try_echo=$ac_try;; 8279esac 8280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8281 (eval "$ac_compile") 2>conftest.er1 8282 ac_status=$? 8283 grep -v '^ *+' conftest.er1 >conftest.err 8284 rm -f conftest.er1 8285 cat conftest.err >&5 8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8287 (exit $ac_status); } && 8288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8289 { (case "(($ac_try" in 8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8291 *) ac_try_echo=$ac_try;; 8292esac 8293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8294 (eval "$ac_try") 2>&5 8295 ac_status=$? 8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8297 (exit $ac_status); }; } && 8298 { ac_try='test -s conftest.$ac_objext' 8299 { (case "(($ac_try" in 8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8301 *) ac_try_echo=$ac_try;; 8302esac 8303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8304 (eval "$ac_try") 2>&5 8305 ac_status=$? 8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8307 (exit $ac_status); }; }; then 8308 ac_hi=-1 ac_mid=-1 8309 while :; do 8310 cat >conftest.$ac_ext <<_ACEOF 8311/* confdefs.h. */ 8312_ACEOF 8313cat confdefs.h >>conftest.$ac_ext 8314cat >>conftest.$ac_ext <<_ACEOF 8315/* end confdefs.h. */ 8316#include <stddef.h> 8317int 8318main () 8319{ 8320static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 8321test_array [0] = 0 8322 8323 ; 8324 return 0; 8325} 8326_ACEOF 8327rm -f conftest.$ac_objext 8328if { (ac_try="$ac_compile" 8329case "(($ac_try" in 8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8331 *) ac_try_echo=$ac_try;; 8332esac 8333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8334 (eval "$ac_compile") 2>conftest.er1 8335 ac_status=$? 8336 grep -v '^ *+' conftest.er1 >conftest.err 8337 rm -f conftest.er1 8338 cat conftest.err >&5 8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8340 (exit $ac_status); } && 8341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8342 { (case "(($ac_try" in 8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8344 *) ac_try_echo=$ac_try;; 8345esac 8346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8347 (eval "$ac_try") 2>&5 8348 ac_status=$? 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8350 (exit $ac_status); }; } && 8351 { ac_try='test -s conftest.$ac_objext' 8352 { (case "(($ac_try" in 8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8354 *) ac_try_echo=$ac_try;; 8355esac 8356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8357 (eval "$ac_try") 2>&5 8358 ac_status=$? 8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8360 (exit $ac_status); }; }; then 8361 ac_lo=$ac_mid; break 8362else 8363 echo "$as_me: failed program was:" >&5 8364sed 's/^/| /' conftest.$ac_ext >&5 8365 8366 ac_hi=`expr '(' $ac_mid ')' - 1` 8367 if test $ac_mid -le $ac_hi; then 8368 ac_lo= ac_hi= 8369 break 8370 fi 8371 ac_mid=`expr 2 '*' $ac_mid` 8372fi 8373 8374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8375 done 8376else 8377 echo "$as_me: failed program was:" >&5 8378sed 's/^/| /' conftest.$ac_ext >&5 8379 8380 ac_lo= ac_hi= 8381fi 8382 8383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8384fi 8385 8386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8387# Binary search between lo and hi bounds. 8388while test "x$ac_lo" != "x$ac_hi"; do 8389 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8390 cat >conftest.$ac_ext <<_ACEOF 8391/* confdefs.h. */ 8392_ACEOF 8393cat confdefs.h >>conftest.$ac_ext 8394cat >>conftest.$ac_ext <<_ACEOF 8395/* end confdefs.h. */ 8396#include <stddef.h> 8397int 8398main () 8399{ 8400static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 8401test_array [0] = 0 8402 8403 ; 8404 return 0; 8405} 8406_ACEOF 8407rm -f conftest.$ac_objext 8408if { (ac_try="$ac_compile" 8409case "(($ac_try" in 8410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8411 *) ac_try_echo=$ac_try;; 8412esac 8413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8414 (eval "$ac_compile") 2>conftest.er1 8415 ac_status=$? 8416 grep -v '^ *+' conftest.er1 >conftest.err 8417 rm -f conftest.er1 8418 cat conftest.err >&5 8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8420 (exit $ac_status); } && 8421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8422 { (case "(($ac_try" in 8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8424 *) ac_try_echo=$ac_try;; 8425esac 8426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8427 (eval "$ac_try") 2>&5 8428 ac_status=$? 8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8430 (exit $ac_status); }; } && 8431 { ac_try='test -s conftest.$ac_objext' 8432 { (case "(($ac_try" in 8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8434 *) ac_try_echo=$ac_try;; 8435esac 8436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8437 (eval "$ac_try") 2>&5 8438 ac_status=$? 8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8440 (exit $ac_status); }; }; then 8441 ac_hi=$ac_mid 8442else 8443 echo "$as_me: failed program was:" >&5 8444sed 's/^/| /' conftest.$ac_ext >&5 8445 8446 ac_lo=`expr '(' $ac_mid ')' + 1` 8447fi 8448 8449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8450done 8451case $ac_lo in 8452?*) fits_in_uint=$ac_lo;; 8453'') result=? ;; 8454esac 8455else 8456 cat >conftest.$ac_ext <<_ACEOF 8457/* confdefs.h. */ 8458_ACEOF 8459cat confdefs.h >>conftest.$ac_ext 8460cat >>conftest.$ac_ext <<_ACEOF 8461/* end confdefs.h. */ 8462#include <stddef.h> 8463static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } 8464static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 8465#include <stdio.h> 8466#include <stdlib.h> 8467int 8468main () 8469{ 8470 8471 FILE *f = fopen ("conftest.val", "w"); 8472 if (! f) 8473 return 1; 8474 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 8475 { 8476 long int i = longval (); 8477 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 8478 return 1; 8479 fprintf (f, "%ld\n", i); 8480 } 8481 else 8482 { 8483 unsigned long int i = ulongval (); 8484 if (i != (sizeof (size_t) <= sizeof (unsigned int))) 8485 return 1; 8486 fprintf (f, "%lu\n", i); 8487 } 8488 return ferror (f) || fclose (f) != 0; 8489 8490 ; 8491 return 0; 8492} 8493_ACEOF 8494rm -f conftest$ac_exeext 8495if { (ac_try="$ac_link" 8496case "(($ac_try" in 8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8498 *) ac_try_echo=$ac_try;; 8499esac 8500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8501 (eval "$ac_link") 2>&5 8502 ac_status=$? 8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8505 { (case "(($ac_try" in 8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8507 *) ac_try_echo=$ac_try;; 8508esac 8509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8510 (eval "$ac_try") 2>&5 8511 ac_status=$? 8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8513 (exit $ac_status); }; }; then 8514 fits_in_uint=`cat conftest.val` 8515else 8516 echo "$as_me: program exited with status $ac_status" >&5 8517echo "$as_me: failed program was:" >&5 8518sed 's/^/| /' conftest.$ac_ext >&5 8519 8520( exit $ac_status ) 8521result=? 8522fi 8523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8524fi 8525rm -f conftest.val 8526 if test "$fits_in_uint" = 1; then 8527 cat >conftest.$ac_ext <<_ACEOF 8528/* confdefs.h. */ 8529_ACEOF 8530cat confdefs.h >>conftest.$ac_ext 8531cat >>conftest.$ac_ext <<_ACEOF 8532/* end confdefs.h. */ 8533#include <stddef.h> 8534 extern size_t foo; 8535 extern unsigned long foo; 8536 8537int 8538main () 8539{ 8540 8541 ; 8542 return 0; 8543} 8544_ACEOF 8545rm -f conftest.$ac_objext 8546if { (ac_try="$ac_compile" 8547case "(($ac_try" in 8548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8549 *) ac_try_echo=$ac_try;; 8550esac 8551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8552 (eval "$ac_compile") 2>conftest.er1 8553 ac_status=$? 8554 grep -v '^ *+' conftest.er1 >conftest.err 8555 rm -f conftest.er1 8556 cat conftest.err >&5 8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8558 (exit $ac_status); } && 8559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8560 { (case "(($ac_try" in 8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8562 *) ac_try_echo=$ac_try;; 8563esac 8564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8565 (eval "$ac_try") 2>&5 8566 ac_status=$? 8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8568 (exit $ac_status); }; } && 8569 { ac_try='test -s conftest.$ac_objext' 8570 { (case "(($ac_try" in 8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8572 *) ac_try_echo=$ac_try;; 8573esac 8574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8575 (eval "$ac_try") 2>&5 8576 ac_status=$? 8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8578 (exit $ac_status); }; }; then 8579 fits_in_uint=0 8580else 8581 echo "$as_me: failed program was:" >&5 8582sed 's/^/| /' conftest.$ac_ext >&5 8583 8584 8585fi 8586 8587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8588 fi 8589 if test -z "$result"; then 8590 if test "$fits_in_uint" = 1; then 8591 result="$res_hi$res_lo"U 8592 else 8593 result="$res_hi$res_lo"UL 8594 fi 8595 else 8596 result='~(size_t)0' 8597 fi 8598 fi 8599 { echo "$as_me:$LINENO: result: $result" >&5 8600echo "${ECHO_T}$result" >&6; } 8601 if test "$result" != yes; then 8602 8603cat >>confdefs.h <<_ACEOF 8604#define SIZE_MAX $result 8605_ACEOF 8606 8607 fi 8608 8609 8610 8611 8612 8613for ac_header in stdint.h 8614do 8615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8617 { echo "$as_me:$LINENO: checking for $ac_header" >&5 8618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8620 echo $ECHO_N "(cached) $ECHO_C" >&6 8621fi 8622ac_res=`eval echo '${'$as_ac_Header'}'` 8623 { echo "$as_me:$LINENO: result: $ac_res" >&5 8624echo "${ECHO_T}$ac_res" >&6; } 8625else 8626 # Is the header compilable? 8627{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 8628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 8629cat >conftest.$ac_ext <<_ACEOF 8630/* confdefs.h. */ 8631_ACEOF 8632cat confdefs.h >>conftest.$ac_ext 8633cat >>conftest.$ac_ext <<_ACEOF 8634/* end confdefs.h. */ 8635$ac_includes_default 8636#include <$ac_header> 8637_ACEOF 8638rm -f conftest.$ac_objext 8639if { (ac_try="$ac_compile" 8640case "(($ac_try" in 8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8642 *) ac_try_echo=$ac_try;; 8643esac 8644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8645 (eval "$ac_compile") 2>conftest.er1 8646 ac_status=$? 8647 grep -v '^ *+' conftest.er1 >conftest.err 8648 rm -f conftest.er1 8649 cat conftest.err >&5 8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8651 (exit $ac_status); } && 8652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8653 { (case "(($ac_try" in 8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8655 *) ac_try_echo=$ac_try;; 8656esac 8657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8658 (eval "$ac_try") 2>&5 8659 ac_status=$? 8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8661 (exit $ac_status); }; } && 8662 { ac_try='test -s conftest.$ac_objext' 8663 { (case "(($ac_try" in 8664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8665 *) ac_try_echo=$ac_try;; 8666esac 8667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8668 (eval "$ac_try") 2>&5 8669 ac_status=$? 8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8671 (exit $ac_status); }; }; then 8672 ac_header_compiler=yes 8673else 8674 echo "$as_me: failed program was:" >&5 8675sed 's/^/| /' conftest.$ac_ext >&5 8676 8677 ac_header_compiler=no 8678fi 8679 8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8681{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8682echo "${ECHO_T}$ac_header_compiler" >&6; } 8683 8684# Is the header present? 8685{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 8686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 8687cat >conftest.$ac_ext <<_ACEOF 8688/* confdefs.h. */ 8689_ACEOF 8690cat confdefs.h >>conftest.$ac_ext 8691cat >>conftest.$ac_ext <<_ACEOF 8692/* end confdefs.h. */ 8693#include <$ac_header> 8694_ACEOF 8695if { (ac_try="$ac_cpp conftest.$ac_ext" 8696case "(($ac_try" in 8697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8698 *) ac_try_echo=$ac_try;; 8699esac 8700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8702 ac_status=$? 8703 grep -v '^ *+' conftest.er1 >conftest.err 8704 rm -f conftest.er1 8705 cat conftest.err >&5 8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8707 (exit $ac_status); } >/dev/null; then 8708 if test -s conftest.err; then 8709 ac_cpp_err=$ac_c_preproc_warn_flag 8710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8711 else 8712 ac_cpp_err= 8713 fi 8714else 8715 ac_cpp_err=yes 8716fi 8717if test -z "$ac_cpp_err"; then 8718 ac_header_preproc=yes 8719else 8720 echo "$as_me: failed program was:" >&5 8721sed 's/^/| /' conftest.$ac_ext >&5 8722 8723 ac_header_preproc=no 8724fi 8725 8726rm -f conftest.err conftest.$ac_ext 8727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8728echo "${ECHO_T}$ac_header_preproc" >&6; } 8729 8730# So? What about this header? 8731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8732 yes:no: ) 8733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8737 ac_header_preproc=yes 8738 ;; 8739 no:yes:* ) 8740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8752 8753 ;; 8754esac 8755{ echo "$as_me:$LINENO: checking for $ac_header" >&5 8756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 8757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 8758 echo $ECHO_N "(cached) $ECHO_C" >&6 8759else 8760 eval "$as_ac_Header=\$ac_header_preproc" 8761fi 8762ac_res=`eval echo '${'$as_ac_Header'}'` 8763 { echo "$as_me:$LINENO: result: $ac_res" >&5 8764echo "${ECHO_T}$ac_res" >&6; } 8765 8766fi 8767if test `eval echo '${'$as_ac_Header'}'` = yes; then 8768 cat >>confdefs.h <<_ACEOF 8769#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8770_ACEOF 8771 8772fi 8773 8774done 8775 8776 8777 8778 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 8779echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } 8780if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then 8781 echo $ECHO_N "(cached) $ECHO_C" >&6 8782else 8783 gt_save_CPPFLAGS="$CPPFLAGS" 8784 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 8785 gt_save_LIBS="$LIBS" 8786 LIBS="$LIBS -framework CoreFoundation" 8787 cat >conftest.$ac_ext <<_ACEOF 8788/* confdefs.h. */ 8789_ACEOF 8790cat confdefs.h >>conftest.$ac_ext 8791cat >>conftest.$ac_ext <<_ACEOF 8792/* end confdefs.h. */ 8793#include <CFPreferences.h> 8794int 8795main () 8796{ 8797CFPreferencesCopyAppValue(NULL, NULL) 8798 ; 8799 return 0; 8800} 8801_ACEOF 8802rm -f conftest.$ac_objext conftest$ac_exeext 8803if { (ac_try="$ac_link" 8804case "(($ac_try" in 8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8806 *) ac_try_echo=$ac_try;; 8807esac 8808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8809 (eval "$ac_link") 2>conftest.er1 8810 ac_status=$? 8811 grep -v '^ *+' conftest.er1 >conftest.err 8812 rm -f conftest.er1 8813 cat conftest.err >&5 8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8815 (exit $ac_status); } && 8816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8817 { (case "(($ac_try" in 8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8819 *) ac_try_echo=$ac_try;; 8820esac 8821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8822 (eval "$ac_try") 2>&5 8823 ac_status=$? 8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8825 (exit $ac_status); }; } && 8826 { ac_try='test -s conftest$ac_exeext' 8827 { (case "(($ac_try" in 8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8829 *) ac_try_echo=$ac_try;; 8830esac 8831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8832 (eval "$ac_try") 2>&5 8833 ac_status=$? 8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8835 (exit $ac_status); }; }; then 8836 gt_cv_func_CFPreferencesCopyAppValue=yes 8837else 8838 echo "$as_me: failed program was:" >&5 8839sed 's/^/| /' conftest.$ac_ext >&5 8840 8841 gt_cv_func_CFPreferencesCopyAppValue=no 8842fi 8843 8844rm -f core conftest.err conftest.$ac_objext \ 8845 conftest$ac_exeext conftest.$ac_ext 8846 CPPFLAGS="$gt_save_CPPFLAGS" 8847 LIBS="$gt_save_LIBS" 8848fi 8849{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 8850echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 8851 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 8852 8853cat >>confdefs.h <<\_ACEOF 8854#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 8855_ACEOF 8856 8857 fi 8858 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 8859echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } 8860if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then 8861 echo $ECHO_N "(cached) $ECHO_C" >&6 8862else 8863 gt_save_CPPFLAGS="$CPPFLAGS" 8864 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 8865 gt_save_LIBS="$LIBS" 8866 LIBS="$LIBS -framework CoreFoundation" 8867 cat >conftest.$ac_ext <<_ACEOF 8868/* confdefs.h. */ 8869_ACEOF 8870cat confdefs.h >>conftest.$ac_ext 8871cat >>conftest.$ac_ext <<_ACEOF 8872/* end confdefs.h. */ 8873#include <CFLocale.h> 8874int 8875main () 8876{ 8877CFLocaleCopyCurrent(); 8878 ; 8879 return 0; 8880} 8881_ACEOF 8882rm -f conftest.$ac_objext conftest$ac_exeext 8883if { (ac_try="$ac_link" 8884case "(($ac_try" in 8885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8886 *) ac_try_echo=$ac_try;; 8887esac 8888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8889 (eval "$ac_link") 2>conftest.er1 8890 ac_status=$? 8891 grep -v '^ *+' conftest.er1 >conftest.err 8892 rm -f conftest.er1 8893 cat conftest.err >&5 8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8895 (exit $ac_status); } && 8896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8897 { (case "(($ac_try" in 8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8899 *) ac_try_echo=$ac_try;; 8900esac 8901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8902 (eval "$ac_try") 2>&5 8903 ac_status=$? 8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8905 (exit $ac_status); }; } && 8906 { ac_try='test -s conftest$ac_exeext' 8907 { (case "(($ac_try" in 8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8909 *) ac_try_echo=$ac_try;; 8910esac 8911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8912 (eval "$ac_try") 2>&5 8913 ac_status=$? 8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8915 (exit $ac_status); }; }; then 8916 gt_cv_func_CFLocaleCopyCurrent=yes 8917else 8918 echo "$as_me: failed program was:" >&5 8919sed 's/^/| /' conftest.$ac_ext >&5 8920 8921 gt_cv_func_CFLocaleCopyCurrent=no 8922fi 8923 8924rm -f core conftest.err conftest.$ac_objext \ 8925 conftest$ac_exeext conftest.$ac_ext 8926 CPPFLAGS="$gt_save_CPPFLAGS" 8927 LIBS="$gt_save_LIBS" 8928fi 8929{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 8930echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } 8931 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 8932 8933cat >>confdefs.h <<\_ACEOF 8934#define HAVE_CFLOCALECOPYCURRENT 1 8935_ACEOF 8936 8937 fi 8938 INTL_MACOSX_LIBS= 8939 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 8940 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 8941 fi 8942 8943 8944 8945 if test "X$prefix" = "XNONE"; then 8946 acl_final_prefix="$ac_default_prefix" 8947 else 8948 acl_final_prefix="$prefix" 8949 fi 8950 if test "X$exec_prefix" = "XNONE"; then 8951 acl_final_exec_prefix='${prefix}' 8952 else 8953 acl_final_exec_prefix="$exec_prefix" 8954 fi 8955 acl_save_prefix="$prefix" 8956 prefix="$acl_final_prefix" 8957 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 8958 prefix="$acl_save_prefix" 8959 8960 8961# Check whether --with-gnu-ld was given. 8962if test "${with_gnu_ld+set}" = set; then 8963 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 8964else 8965 with_gnu_ld=no 8966fi 8967 8968# Prepare PATH_SEPARATOR. 8969# The user is always right. 8970if test "${PATH_SEPARATOR+set}" != set; then 8971 echo "#! /bin/sh" >conf$$.sh 8972 echo "exit 0" >>conf$$.sh 8973 chmod +x conf$$.sh 8974 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8975 PATH_SEPARATOR=';' 8976 else 8977 PATH_SEPARATOR=: 8978 fi 8979 rm -f conf$$.sh 8980fi 8981ac_prog=ld 8982if test "$GCC" = yes; then 8983 # Check if gcc -print-prog-name=ld gives a path. 8984 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 8985echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } 8986 case $host in 8987 *-*-mingw*) 8988 # gcc leaves a trailing carriage return which upsets mingw 8989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8990 *) 8991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8992 esac 8993 case $ac_prog in 8994 # Accept absolute paths. 8995 [\\/]* | [A-Za-z]:[\\/]*) 8996 re_direlt='/[^/][^/]*/\.\./' 8997 # Canonicalize the path of ld 8998 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 8999 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9000 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 9001 done 9002 test -z "$LD" && LD="$ac_prog" 9003 ;; 9004 "") 9005 # If it fails, then pretend we aren't using GCC. 9006 ac_prog=ld 9007 ;; 9008 *) 9009 # If it is relative, then search for the first ld in PATH. 9010 with_gnu_ld=unknown 9011 ;; 9012 esac 9013elif test "$with_gnu_ld" = yes; then 9014 { echo "$as_me:$LINENO: checking for GNU ld" >&5 9015echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 9016else 9017 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9018echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 9019fi 9020if test "${acl_cv_path_LD+set}" = set; then 9021 echo $ECHO_N "(cached) $ECHO_C" >&6 9022else 9023 if test -z "$LD"; then 9024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 9025 for ac_dir in $PATH; do 9026 test -z "$ac_dir" && ac_dir=. 9027 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9028 acl_cv_path_LD="$ac_dir/$ac_prog" 9029 # Check to see if the program is GNU ld. I'd rather use --version, 9030 # but apparently some GNU ld's only accept -v. 9031 # Break only if it was the GNU/non-GNU ld that we prefer. 9032 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 9033 *GNU* | *'with BFD'*) 9034 test "$with_gnu_ld" != no && break ;; 9035 *) 9036 test "$with_gnu_ld" != yes && break ;; 9037 esac 9038 fi 9039 done 9040 IFS="$ac_save_ifs" 9041else 9042 acl_cv_path_LD="$LD" # Let the user override the test with a path. 9043fi 9044fi 9045 9046LD="$acl_cv_path_LD" 9047if test -n "$LD"; then 9048 { echo "$as_me:$LINENO: result: $LD" >&5 9049echo "${ECHO_T}$LD" >&6; } 9050else 9051 { echo "$as_me:$LINENO: result: no" >&5 9052echo "${ECHO_T}no" >&6; } 9053fi 9054test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9055echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9056 { (exit 1); exit 1; }; } 9057{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9058echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 9059if test "${acl_cv_prog_gnu_ld+set}" = set; then 9060 echo $ECHO_N "(cached) $ECHO_C" >&6 9061else 9062 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9063case `$LD -v 2>&1 </dev/null` in 9064*GNU* | *'with BFD'*) 9065 acl_cv_prog_gnu_ld=yes ;; 9066*) 9067 acl_cv_prog_gnu_ld=no ;; 9068esac 9069fi 9070{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 9071echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } 9072with_gnu_ld=$acl_cv_prog_gnu_ld 9073 9074 9075 9076 9077 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 9078echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } 9079if test "${acl_cv_rpath+set}" = set; then 9080 echo $ECHO_N "(cached) $ECHO_C" >&6 9081else 9082 9083 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 9084 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 9085 . ./conftest.sh 9086 rm -f ./conftest.sh 9087 acl_cv_rpath=done 9088 9089fi 9090{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 9091echo "${ECHO_T}$acl_cv_rpath" >&6; } 9092 wl="$acl_cv_wl" 9093 libext="$acl_cv_libext" 9094 shlibext="$acl_cv_shlibext" 9095 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 9096 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 9097 hardcode_direct="$acl_cv_hardcode_direct" 9098 hardcode_minus_L="$acl_cv_hardcode_minus_L" 9099 # Check whether --enable-rpath was given. 9100if test "${enable_rpath+set}" = set; then 9101 enableval=$enable_rpath; : 9102else 9103 enable_rpath=yes 9104fi 9105 9106 9107 9108 9109 9110 9111 9112 9113 use_additional=yes 9114 9115 acl_save_prefix="$prefix" 9116 prefix="$acl_final_prefix" 9117 acl_save_exec_prefix="$exec_prefix" 9118 exec_prefix="$acl_final_exec_prefix" 9119 9120 eval additional_includedir=\"$includedir\" 9121 eval additional_libdir=\"$libdir\" 9122 9123 exec_prefix="$acl_save_exec_prefix" 9124 prefix="$acl_save_prefix" 9125 9126 9127# Check whether --with-libiconv-prefix was given. 9128if test "${with_libiconv_prefix+set}" = set; then 9129 withval=$with_libiconv_prefix; 9130 if test "X$withval" = "Xno"; then 9131 use_additional=no 9132 else 9133 if test "X$withval" = "X"; then 9134 9135 acl_save_prefix="$prefix" 9136 prefix="$acl_final_prefix" 9137 acl_save_exec_prefix="$exec_prefix" 9138 exec_prefix="$acl_final_exec_prefix" 9139 9140 eval additional_includedir=\"$includedir\" 9141 eval additional_libdir=\"$libdir\" 9142 9143 exec_prefix="$acl_save_exec_prefix" 9144 prefix="$acl_save_prefix" 9145 9146 else 9147 additional_includedir="$withval/include" 9148 additional_libdir="$withval/lib" 9149 fi 9150 fi 9151 9152fi 9153 9154 LIBICONV= 9155 LTLIBICONV= 9156 INCICONV= 9157 rpathdirs= 9158 ltrpathdirs= 9159 names_already_handled= 9160 names_next_round='iconv ' 9161 while test -n "$names_next_round"; do 9162 names_this_round="$names_next_round" 9163 names_next_round= 9164 for name in $names_this_round; do 9165 already_handled= 9166 for n in $names_already_handled; do 9167 if test "$n" = "$name"; then 9168 already_handled=yes 9169 break 9170 fi 9171 done 9172 if test -z "$already_handled"; then 9173 names_already_handled="$names_already_handled $name" 9174 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 9175 eval value=\"\$HAVE_LIB$uppername\" 9176 if test -n "$value"; then 9177 if test "$value" = yes; then 9178 eval value=\"\$LIB$uppername\" 9179 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 9180 eval value=\"\$LTLIB$uppername\" 9181 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 9182 else 9183 : 9184 fi 9185 else 9186 found_dir= 9187 found_la= 9188 found_so= 9189 found_a= 9190 if test $use_additional = yes; then 9191 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 9192 found_dir="$additional_libdir" 9193 found_so="$additional_libdir/lib$name.$shlibext" 9194 if test -f "$additional_libdir/lib$name.la"; then 9195 found_la="$additional_libdir/lib$name.la" 9196 fi 9197 else 9198 if test -f "$additional_libdir/lib$name.$libext"; then 9199 found_dir="$additional_libdir" 9200 found_a="$additional_libdir/lib$name.$libext" 9201 if test -f "$additional_libdir/lib$name.la"; then 9202 found_la="$additional_libdir/lib$name.la" 9203 fi 9204 fi 9205 fi 9206 fi 9207 if test "X$found_dir" = "X"; then 9208 for x in $LDFLAGS $LTLIBICONV; do 9209 9210 acl_save_prefix="$prefix" 9211 prefix="$acl_final_prefix" 9212 acl_save_exec_prefix="$exec_prefix" 9213 exec_prefix="$acl_final_exec_prefix" 9214 eval x=\"$x\" 9215 exec_prefix="$acl_save_exec_prefix" 9216 prefix="$acl_save_prefix" 9217 9218 case "$x" in 9219 -L*) 9220 dir=`echo "X$x" | sed -e 's/^X-L//'` 9221 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 9222 found_dir="$dir" 9223 found_so="$dir/lib$name.$shlibext" 9224 if test -f "$dir/lib$name.la"; then 9225 found_la="$dir/lib$name.la" 9226 fi 9227 else 9228 if test -f "$dir/lib$name.$libext"; then 9229 found_dir="$dir" 9230 found_a="$dir/lib$name.$libext" 9231 if test -f "$dir/lib$name.la"; then 9232 found_la="$dir/lib$name.la" 9233 fi 9234 fi 9235 fi 9236 ;; 9237 esac 9238 if test "X$found_dir" != "X"; then 9239 break 9240 fi 9241 done 9242 fi 9243 if test "X$found_dir" != "X"; then 9244 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 9245 if test "X$found_so" != "X"; then 9246 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 9247 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9248 else 9249 haveit= 9250 for x in $ltrpathdirs; do 9251 if test "X$x" = "X$found_dir"; then 9252 haveit=yes 9253 break 9254 fi 9255 done 9256 if test -z "$haveit"; then 9257 ltrpathdirs="$ltrpathdirs $found_dir" 9258 fi 9259 if test "$hardcode_direct" = yes; then 9260 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9261 else 9262 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 9263 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9264 haveit= 9265 for x in $rpathdirs; do 9266 if test "X$x" = "X$found_dir"; then 9267 haveit=yes 9268 break 9269 fi 9270 done 9271 if test -z "$haveit"; then 9272 rpathdirs="$rpathdirs $found_dir" 9273 fi 9274 else 9275 haveit= 9276 for x in $LDFLAGS $LIBICONV; do 9277 9278 acl_save_prefix="$prefix" 9279 prefix="$acl_final_prefix" 9280 acl_save_exec_prefix="$exec_prefix" 9281 exec_prefix="$acl_final_exec_prefix" 9282 eval x=\"$x\" 9283 exec_prefix="$acl_save_exec_prefix" 9284 prefix="$acl_save_prefix" 9285 9286 if test "X$x" = "X-L$found_dir"; then 9287 haveit=yes 9288 break 9289 fi 9290 done 9291 if test -z "$haveit"; then 9292 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 9293 fi 9294 if test "$hardcode_minus_L" != no; then 9295 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9296 else 9297 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 9298 fi 9299 fi 9300 fi 9301 fi 9302 else 9303 if test "X$found_a" != "X"; then 9304 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 9305 else 9306 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 9307 fi 9308 fi 9309 additional_includedir= 9310 case "$found_dir" in 9311 */lib | */lib/) 9312 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 9313 additional_includedir="$basedir/include" 9314 ;; 9315 esac 9316 if test "X$additional_includedir" != "X"; then 9317 if test "X$additional_includedir" != "X/usr/include"; then 9318 haveit= 9319 if test "X$additional_includedir" = "X/usr/local/include"; then 9320 if test -n "$GCC"; then 9321 case $host_os in 9322 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9323 esac 9324 fi 9325 fi 9326 if test -z "$haveit"; then 9327 for x in $CPPFLAGS $INCICONV; do 9328 9329 acl_save_prefix="$prefix" 9330 prefix="$acl_final_prefix" 9331 acl_save_exec_prefix="$exec_prefix" 9332 exec_prefix="$acl_final_exec_prefix" 9333 eval x=\"$x\" 9334 exec_prefix="$acl_save_exec_prefix" 9335 prefix="$acl_save_prefix" 9336 9337 if test "X$x" = "X-I$additional_includedir"; then 9338 haveit=yes 9339 break 9340 fi 9341 done 9342 if test -z "$haveit"; then 9343 if test -d "$additional_includedir"; then 9344 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 9345 fi 9346 fi 9347 fi 9348 fi 9349 fi 9350 if test -n "$found_la"; then 9351 save_libdir="$libdir" 9352 case "$found_la" in 9353 */* | *\\*) . "$found_la" ;; 9354 *) . "./$found_la" ;; 9355 esac 9356 libdir="$save_libdir" 9357 for dep in $dependency_libs; do 9358 case "$dep" in 9359 -L*) 9360 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9361 if test "X$additional_libdir" != "X/usr/lib"; then 9362 haveit= 9363 if test "X$additional_libdir" = "X/usr/local/lib"; then 9364 if test -n "$GCC"; then 9365 case $host_os in 9366 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9367 esac 9368 fi 9369 fi 9370 if test -z "$haveit"; then 9371 haveit= 9372 for x in $LDFLAGS $LIBICONV; do 9373 9374 acl_save_prefix="$prefix" 9375 prefix="$acl_final_prefix" 9376 acl_save_exec_prefix="$exec_prefix" 9377 exec_prefix="$acl_final_exec_prefix" 9378 eval x=\"$x\" 9379 exec_prefix="$acl_save_exec_prefix" 9380 prefix="$acl_save_prefix" 9381 9382 if test "X$x" = "X-L$additional_libdir"; then 9383 haveit=yes 9384 break 9385 fi 9386 done 9387 if test -z "$haveit"; then 9388 if test -d "$additional_libdir"; then 9389 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 9390 fi 9391 fi 9392 haveit= 9393 for x in $LDFLAGS $LTLIBICONV; do 9394 9395 acl_save_prefix="$prefix" 9396 prefix="$acl_final_prefix" 9397 acl_save_exec_prefix="$exec_prefix" 9398 exec_prefix="$acl_final_exec_prefix" 9399 eval x=\"$x\" 9400 exec_prefix="$acl_save_exec_prefix" 9401 prefix="$acl_save_prefix" 9402 9403 if test "X$x" = "X-L$additional_libdir"; then 9404 haveit=yes 9405 break 9406 fi 9407 done 9408 if test -z "$haveit"; then 9409 if test -d "$additional_libdir"; then 9410 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 9411 fi 9412 fi 9413 fi 9414 fi 9415 ;; 9416 -R*) 9417 dir=`echo "X$dep" | sed -e 's/^X-R//'` 9418 if test "$enable_rpath" != no; then 9419 haveit= 9420 for x in $rpathdirs; do 9421 if test "X$x" = "X$dir"; then 9422 haveit=yes 9423 break 9424 fi 9425 done 9426 if test -z "$haveit"; then 9427 rpathdirs="$rpathdirs $dir" 9428 fi 9429 haveit= 9430 for x in $ltrpathdirs; do 9431 if test "X$x" = "X$dir"; then 9432 haveit=yes 9433 break 9434 fi 9435 done 9436 if test -z "$haveit"; then 9437 ltrpathdirs="$ltrpathdirs $dir" 9438 fi 9439 fi 9440 ;; 9441 -l*) 9442 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 9443 ;; 9444 *.la) 9445 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 9446 ;; 9447 *) 9448 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 9449 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 9450 ;; 9451 esac 9452 done 9453 fi 9454 else 9455 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 9456 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 9457 fi 9458 fi 9459 fi 9460 done 9461 done 9462 if test "X$rpathdirs" != "X"; then 9463 if test -n "$hardcode_libdir_separator"; then 9464 alldirs= 9465 for found_dir in $rpathdirs; do 9466 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 9467 done 9468 acl_save_libdir="$libdir" 9469 libdir="$alldirs" 9470 eval flag=\"$hardcode_libdir_flag_spec\" 9471 libdir="$acl_save_libdir" 9472 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 9473 else 9474 for found_dir in $rpathdirs; do 9475 acl_save_libdir="$libdir" 9476 libdir="$found_dir" 9477 eval flag=\"$hardcode_libdir_flag_spec\" 9478 libdir="$acl_save_libdir" 9479 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 9480 done 9481 fi 9482 fi 9483 if test "X$ltrpathdirs" != "X"; then 9484 for found_dir in $ltrpathdirs; do 9485 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 9486 done 9487 fi 9488 9489 9490 9491 9492 9493 9494 9495 9496 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 9497echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } 9498if test "${ac_cv_type_ptrdiff_t+set}" = set; then 9499 echo $ECHO_N "(cached) $ECHO_C" >&6 9500else 9501 cat >conftest.$ac_ext <<_ACEOF 9502/* confdefs.h. */ 9503_ACEOF 9504cat confdefs.h >>conftest.$ac_ext 9505cat >>conftest.$ac_ext <<_ACEOF 9506/* end confdefs.h. */ 9507$ac_includes_default 9508typedef ptrdiff_t ac__type_new_; 9509int 9510main () 9511{ 9512if ((ac__type_new_ *) 0) 9513 return 0; 9514if (sizeof (ac__type_new_)) 9515 return 0; 9516 ; 9517 return 0; 9518} 9519_ACEOF 9520rm -f conftest.$ac_objext 9521if { (ac_try="$ac_compile" 9522case "(($ac_try" in 9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9524 *) ac_try_echo=$ac_try;; 9525esac 9526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9527 (eval "$ac_compile") 2>conftest.er1 9528 ac_status=$? 9529 grep -v '^ *+' conftest.er1 >conftest.err 9530 rm -f conftest.er1 9531 cat conftest.err >&5 9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9533 (exit $ac_status); } && 9534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9535 { (case "(($ac_try" in 9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9537 *) ac_try_echo=$ac_try;; 9538esac 9539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9540 (eval "$ac_try") 2>&5 9541 ac_status=$? 9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9543 (exit $ac_status); }; } && 9544 { ac_try='test -s conftest.$ac_objext' 9545 { (case "(($ac_try" in 9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9547 *) ac_try_echo=$ac_try;; 9548esac 9549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9550 (eval "$ac_try") 2>&5 9551 ac_status=$? 9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9553 (exit $ac_status); }; }; then 9554 ac_cv_type_ptrdiff_t=yes 9555else 9556 echo "$as_me: failed program was:" >&5 9557sed 's/^/| /' conftest.$ac_ext >&5 9558 9559 ac_cv_type_ptrdiff_t=no 9560fi 9561 9562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9563fi 9564{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 9565echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } 9566if test $ac_cv_type_ptrdiff_t = yes; then 9567 : 9568else 9569 9570cat >>confdefs.h <<\_ACEOF 9571#define ptrdiff_t long 9572_ACEOF 9573 9574 9575fi 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 9588stdlib.h string.h unistd.h sys/param.h 9589do 9590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9592 { echo "$as_me:$LINENO: checking for $ac_header" >&5 9593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9595 echo $ECHO_N "(cached) $ECHO_C" >&6 9596fi 9597ac_res=`eval echo '${'$as_ac_Header'}'` 9598 { echo "$as_me:$LINENO: result: $ac_res" >&5 9599echo "${ECHO_T}$ac_res" >&6; } 9600else 9601 # Is the header compilable? 9602{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 9603echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 9604cat >conftest.$ac_ext <<_ACEOF 9605/* confdefs.h. */ 9606_ACEOF 9607cat confdefs.h >>conftest.$ac_ext 9608cat >>conftest.$ac_ext <<_ACEOF 9609/* end confdefs.h. */ 9610$ac_includes_default 9611#include <$ac_header> 9612_ACEOF 9613rm -f conftest.$ac_objext 9614if { (ac_try="$ac_compile" 9615case "(($ac_try" in 9616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9617 *) ac_try_echo=$ac_try;; 9618esac 9619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9620 (eval "$ac_compile") 2>conftest.er1 9621 ac_status=$? 9622 grep -v '^ *+' conftest.er1 >conftest.err 9623 rm -f conftest.er1 9624 cat conftest.err >&5 9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9626 (exit $ac_status); } && 9627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9628 { (case "(($ac_try" in 9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9630 *) ac_try_echo=$ac_try;; 9631esac 9632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9633 (eval "$ac_try") 2>&5 9634 ac_status=$? 9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9636 (exit $ac_status); }; } && 9637 { ac_try='test -s conftest.$ac_objext' 9638 { (case "(($ac_try" in 9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9640 *) ac_try_echo=$ac_try;; 9641esac 9642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9643 (eval "$ac_try") 2>&5 9644 ac_status=$? 9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9646 (exit $ac_status); }; }; then 9647 ac_header_compiler=yes 9648else 9649 echo "$as_me: failed program was:" >&5 9650sed 's/^/| /' conftest.$ac_ext >&5 9651 9652 ac_header_compiler=no 9653fi 9654 9655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9656{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9657echo "${ECHO_T}$ac_header_compiler" >&6; } 9658 9659# Is the header present? 9660{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 9661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 9662cat >conftest.$ac_ext <<_ACEOF 9663/* confdefs.h. */ 9664_ACEOF 9665cat confdefs.h >>conftest.$ac_ext 9666cat >>conftest.$ac_ext <<_ACEOF 9667/* end confdefs.h. */ 9668#include <$ac_header> 9669_ACEOF 9670if { (ac_try="$ac_cpp conftest.$ac_ext" 9671case "(($ac_try" in 9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9673 *) ac_try_echo=$ac_try;; 9674esac 9675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 9677 ac_status=$? 9678 grep -v '^ *+' conftest.er1 >conftest.err 9679 rm -f conftest.er1 9680 cat conftest.err >&5 9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9682 (exit $ac_status); } >/dev/null; then 9683 if test -s conftest.err; then 9684 ac_cpp_err=$ac_c_preproc_warn_flag 9685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9686 else 9687 ac_cpp_err= 9688 fi 9689else 9690 ac_cpp_err=yes 9691fi 9692if test -z "$ac_cpp_err"; then 9693 ac_header_preproc=yes 9694else 9695 echo "$as_me: failed program was:" >&5 9696sed 's/^/| /' conftest.$ac_ext >&5 9697 9698 ac_header_preproc=no 9699fi 9700 9701rm -f conftest.err conftest.$ac_ext 9702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9703echo "${ECHO_T}$ac_header_preproc" >&6; } 9704 9705# So? What about this header? 9706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9707 yes:no: ) 9708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9712 ac_header_preproc=yes 9713 ;; 9714 no:yes:* ) 9715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9727 9728 ;; 9729esac 9730{ echo "$as_me:$LINENO: checking for $ac_header" >&5 9731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 9732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9733 echo $ECHO_N "(cached) $ECHO_C" >&6 9734else 9735 eval "$as_ac_Header=\$ac_header_preproc" 9736fi 9737ac_res=`eval echo '${'$as_ac_Header'}'` 9738 { echo "$as_me:$LINENO: result: $ac_res" >&5 9739echo "${ECHO_T}$ac_res" >&6; } 9740 9741fi 9742if test `eval echo '${'$as_ac_Header'}'` = yes; then 9743 cat >>confdefs.h <<_ACEOF 9744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9745_ACEOF 9746 9747fi 9748 9749done 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 9775mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 9776strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 9777__fsetlocking 9778do 9779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9780{ echo "$as_me:$LINENO: checking for $ac_func" >&5 9781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 9782if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 9783 echo $ECHO_N "(cached) $ECHO_C" >&6 9784else 9785 cat >conftest.$ac_ext <<_ACEOF 9786/* confdefs.h. */ 9787_ACEOF 9788cat confdefs.h >>conftest.$ac_ext 9789cat >>conftest.$ac_ext <<_ACEOF 9790/* end confdefs.h. */ 9791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9792 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9793#define $ac_func innocuous_$ac_func 9794 9795/* System header to define __stub macros and hopefully few prototypes, 9796 which can conflict with char $ac_func (); below. 9797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9798 <limits.h> exists even on freestanding compilers. */ 9799 9800#ifdef __STDC__ 9801# include <limits.h> 9802#else 9803# include <assert.h> 9804#endif 9805 9806#undef $ac_func 9807 9808/* Override any GCC internal prototype to avoid an error. 9809 Use char because int might match the return type of a GCC 9810 builtin and then its argument prototype would still apply. */ 9811#ifdef __cplusplus 9812extern "C" 9813#endif 9814char $ac_func (); 9815/* The GNU C library defines this for functions which it implements 9816 to always fail with ENOSYS. Some functions are actually named 9817 something starting with __ and the normal name is an alias. */ 9818#if defined __stub_$ac_func || defined __stub___$ac_func 9819choke me 9820#endif 9821 9822int 9823main () 9824{ 9825return $ac_func (); 9826 ; 9827 return 0; 9828} 9829_ACEOF 9830rm -f conftest.$ac_objext conftest$ac_exeext 9831if { (ac_try="$ac_link" 9832case "(($ac_try" in 9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9834 *) ac_try_echo=$ac_try;; 9835esac 9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9837 (eval "$ac_link") 2>conftest.er1 9838 ac_status=$? 9839 grep -v '^ *+' conftest.er1 >conftest.err 9840 rm -f conftest.er1 9841 cat conftest.err >&5 9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9843 (exit $ac_status); } && 9844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9845 { (case "(($ac_try" in 9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9847 *) ac_try_echo=$ac_try;; 9848esac 9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9850 (eval "$ac_try") 2>&5 9851 ac_status=$? 9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9853 (exit $ac_status); }; } && 9854 { ac_try='test -s conftest$ac_exeext' 9855 { (case "(($ac_try" in 9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9857 *) ac_try_echo=$ac_try;; 9858esac 9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9860 (eval "$ac_try") 2>&5 9861 ac_status=$? 9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9863 (exit $ac_status); }; }; then 9864 eval "$as_ac_var=yes" 9865else 9866 echo "$as_me: failed program was:" >&5 9867sed 's/^/| /' conftest.$ac_ext >&5 9868 9869 eval "$as_ac_var=no" 9870fi 9871 9872rm -f core conftest.err conftest.$ac_objext \ 9873 conftest$ac_exeext conftest.$ac_ext 9874fi 9875ac_res=`eval echo '${'$as_ac_var'}'` 9876 { echo "$as_me:$LINENO: result: $ac_res" >&5 9877echo "${ECHO_T}$ac_res" >&6; } 9878if test `eval echo '${'$as_ac_var'}'` = yes; then 9879 cat >>confdefs.h <<_ACEOF 9880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9881_ACEOF 9882 9883fi 9884done 9885 9886 9887 9888 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 9889echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } 9890if test "${ac_cv_have_decl__snprintf+set}" = set; then 9891 echo $ECHO_N "(cached) $ECHO_C" >&6 9892else 9893 cat >conftest.$ac_ext <<_ACEOF 9894/* confdefs.h. */ 9895_ACEOF 9896cat confdefs.h >>conftest.$ac_ext 9897cat >>conftest.$ac_ext <<_ACEOF 9898/* end confdefs.h. */ 9899#include <stdio.h> 9900int 9901main () 9902{ 9903 9904#ifndef _snprintf 9905 char *p = (char *) _snprintf; 9906#endif 9907 9908 ; 9909 return 0; 9910} 9911_ACEOF 9912rm -f conftest.$ac_objext 9913if { (ac_try="$ac_compile" 9914case "(($ac_try" in 9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9916 *) ac_try_echo=$ac_try;; 9917esac 9918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9919 (eval "$ac_compile") 2>conftest.er1 9920 ac_status=$? 9921 grep -v '^ *+' conftest.er1 >conftest.err 9922 rm -f conftest.er1 9923 cat conftest.err >&5 9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9925 (exit $ac_status); } && 9926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9927 { (case "(($ac_try" in 9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9929 *) ac_try_echo=$ac_try;; 9930esac 9931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9932 (eval "$ac_try") 2>&5 9933 ac_status=$? 9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9935 (exit $ac_status); }; } && 9936 { ac_try='test -s conftest.$ac_objext' 9937 { (case "(($ac_try" in 9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9939 *) ac_try_echo=$ac_try;; 9940esac 9941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9942 (eval "$ac_try") 2>&5 9943 ac_status=$? 9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9945 (exit $ac_status); }; }; then 9946 ac_cv_have_decl__snprintf=yes 9947else 9948 echo "$as_me: failed program was:" >&5 9949sed 's/^/| /' conftest.$ac_ext >&5 9950 9951 ac_cv_have_decl__snprintf=no 9952fi 9953 9954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9955fi 9956{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 9957echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } 9958 if test $ac_cv_have_decl__snprintf = yes; then 9959 gt_value=1 9960 else 9961 gt_value=0 9962 fi 9963 9964cat >>confdefs.h <<_ACEOF 9965#define HAVE_DECL__SNPRINTF $gt_value 9966_ACEOF 9967 9968 9969 9970 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 9971echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } 9972if test "${ac_cv_have_decl__snwprintf+set}" = set; then 9973 echo $ECHO_N "(cached) $ECHO_C" >&6 9974else 9975 cat >conftest.$ac_ext <<_ACEOF 9976/* confdefs.h. */ 9977_ACEOF 9978cat confdefs.h >>conftest.$ac_ext 9979cat >>conftest.$ac_ext <<_ACEOF 9980/* end confdefs.h. */ 9981#include <stdio.h> 9982int 9983main () 9984{ 9985 9986#ifndef _snwprintf 9987 char *p = (char *) _snwprintf; 9988#endif 9989 9990 ; 9991 return 0; 9992} 9993_ACEOF 9994rm -f conftest.$ac_objext 9995if { (ac_try="$ac_compile" 9996case "(($ac_try" in 9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9998 *) ac_try_echo=$ac_try;; 9999esac 10000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10001 (eval "$ac_compile") 2>conftest.er1 10002 ac_status=$? 10003 grep -v '^ *+' conftest.er1 >conftest.err 10004 rm -f conftest.er1 10005 cat conftest.err >&5 10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10007 (exit $ac_status); } && 10008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10009 { (case "(($ac_try" in 10010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10011 *) ac_try_echo=$ac_try;; 10012esac 10013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10014 (eval "$ac_try") 2>&5 10015 ac_status=$? 10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10017 (exit $ac_status); }; } && 10018 { ac_try='test -s conftest.$ac_objext' 10019 { (case "(($ac_try" in 10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10021 *) ac_try_echo=$ac_try;; 10022esac 10023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10024 (eval "$ac_try") 2>&5 10025 ac_status=$? 10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10027 (exit $ac_status); }; }; then 10028 ac_cv_have_decl__snwprintf=yes 10029else 10030 echo "$as_me: failed program was:" >&5 10031sed 's/^/| /' conftest.$ac_ext >&5 10032 10033 ac_cv_have_decl__snwprintf=no 10034fi 10035 10036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10037fi 10038{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 10039echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } 10040 if test $ac_cv_have_decl__snwprintf = yes; then 10041 gt_value=1 10042 else 10043 gt_value=0 10044 fi 10045 10046cat >>confdefs.h <<_ACEOF 10047#define HAVE_DECL__SNWPRINTF $gt_value 10048_ACEOF 10049 10050 10051 10052 10053 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 10054echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } 10055if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 10056 echo $ECHO_N "(cached) $ECHO_C" >&6 10057else 10058 cat >conftest.$ac_ext <<_ACEOF 10059/* confdefs.h. */ 10060_ACEOF 10061cat confdefs.h >>conftest.$ac_ext 10062cat >>conftest.$ac_ext <<_ACEOF 10063/* end confdefs.h. */ 10064#include <stdio.h> 10065int 10066main () 10067{ 10068 10069#ifndef feof_unlocked 10070 char *p = (char *) feof_unlocked; 10071#endif 10072 10073 ; 10074 return 0; 10075} 10076_ACEOF 10077rm -f conftest.$ac_objext 10078if { (ac_try="$ac_compile" 10079case "(($ac_try" in 10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10081 *) ac_try_echo=$ac_try;; 10082esac 10083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10084 (eval "$ac_compile") 2>conftest.er1 10085 ac_status=$? 10086 grep -v '^ *+' conftest.er1 >conftest.err 10087 rm -f conftest.er1 10088 cat conftest.err >&5 10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10090 (exit $ac_status); } && 10091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10092 { (case "(($ac_try" in 10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10094 *) ac_try_echo=$ac_try;; 10095esac 10096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10097 (eval "$ac_try") 2>&5 10098 ac_status=$? 10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10100 (exit $ac_status); }; } && 10101 { ac_try='test -s conftest.$ac_objext' 10102 { (case "(($ac_try" in 10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10104 *) ac_try_echo=$ac_try;; 10105esac 10106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10107 (eval "$ac_try") 2>&5 10108 ac_status=$? 10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10110 (exit $ac_status); }; }; then 10111 ac_cv_have_decl_feof_unlocked=yes 10112else 10113 echo "$as_me: failed program was:" >&5 10114sed 's/^/| /' conftest.$ac_ext >&5 10115 10116 ac_cv_have_decl_feof_unlocked=no 10117fi 10118 10119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10120fi 10121{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 10122echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } 10123 if test $ac_cv_have_decl_feof_unlocked = yes; then 10124 gt_value=1 10125 else 10126 gt_value=0 10127 fi 10128 10129cat >>confdefs.h <<_ACEOF 10130#define HAVE_DECL_FEOF_UNLOCKED $gt_value 10131_ACEOF 10132 10133 10134 10135 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 10136echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } 10137if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 10138 echo $ECHO_N "(cached) $ECHO_C" >&6 10139else 10140 cat >conftest.$ac_ext <<_ACEOF 10141/* confdefs.h. */ 10142_ACEOF 10143cat confdefs.h >>conftest.$ac_ext 10144cat >>conftest.$ac_ext <<_ACEOF 10145/* end confdefs.h. */ 10146#include <stdio.h> 10147int 10148main () 10149{ 10150 10151#ifndef fgets_unlocked 10152 char *p = (char *) fgets_unlocked; 10153#endif 10154 10155 ; 10156 return 0; 10157} 10158_ACEOF 10159rm -f conftest.$ac_objext 10160if { (ac_try="$ac_compile" 10161case "(($ac_try" in 10162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10163 *) ac_try_echo=$ac_try;; 10164esac 10165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10166 (eval "$ac_compile") 2>conftest.er1 10167 ac_status=$? 10168 grep -v '^ *+' conftest.er1 >conftest.err 10169 rm -f conftest.er1 10170 cat conftest.err >&5 10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10172 (exit $ac_status); } && 10173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10174 { (case "(($ac_try" in 10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10176 *) ac_try_echo=$ac_try;; 10177esac 10178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10179 (eval "$ac_try") 2>&5 10180 ac_status=$? 10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10182 (exit $ac_status); }; } && 10183 { ac_try='test -s conftest.$ac_objext' 10184 { (case "(($ac_try" in 10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10186 *) ac_try_echo=$ac_try;; 10187esac 10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10189 (eval "$ac_try") 2>&5 10190 ac_status=$? 10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10192 (exit $ac_status); }; }; then 10193 ac_cv_have_decl_fgets_unlocked=yes 10194else 10195 echo "$as_me: failed program was:" >&5 10196sed 's/^/| /' conftest.$ac_ext >&5 10197 10198 ac_cv_have_decl_fgets_unlocked=no 10199fi 10200 10201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10202fi 10203{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 10204echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } 10205 if test $ac_cv_have_decl_fgets_unlocked = yes; then 10206 gt_value=1 10207 else 10208 gt_value=0 10209 fi 10210 10211cat >>confdefs.h <<_ACEOF 10212#define HAVE_DECL_FGETS_UNLOCKED $gt_value 10213_ACEOF 10214 10215 10216 10217 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 10218echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } 10219if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 10220 echo $ECHO_N "(cached) $ECHO_C" >&6 10221else 10222 cat >conftest.$ac_ext <<_ACEOF 10223/* confdefs.h. */ 10224_ACEOF 10225cat confdefs.h >>conftest.$ac_ext 10226cat >>conftest.$ac_ext <<_ACEOF 10227/* end confdefs.h. */ 10228#include <stdio.h> 10229int 10230main () 10231{ 10232 10233#ifndef getc_unlocked 10234 char *p = (char *) getc_unlocked; 10235#endif 10236 10237 ; 10238 return 0; 10239} 10240_ACEOF 10241rm -f conftest.$ac_objext 10242if { (ac_try="$ac_compile" 10243case "(($ac_try" in 10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10245 *) ac_try_echo=$ac_try;; 10246esac 10247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10248 (eval "$ac_compile") 2>conftest.er1 10249 ac_status=$? 10250 grep -v '^ *+' conftest.er1 >conftest.err 10251 rm -f conftest.er1 10252 cat conftest.err >&5 10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10254 (exit $ac_status); } && 10255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10256 { (case "(($ac_try" in 10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10258 *) ac_try_echo=$ac_try;; 10259esac 10260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10261 (eval "$ac_try") 2>&5 10262 ac_status=$? 10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10264 (exit $ac_status); }; } && 10265 { ac_try='test -s conftest.$ac_objext' 10266 { (case "(($ac_try" in 10267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10268 *) ac_try_echo=$ac_try;; 10269esac 10270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10271 (eval "$ac_try") 2>&5 10272 ac_status=$? 10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10274 (exit $ac_status); }; }; then 10275 ac_cv_have_decl_getc_unlocked=yes 10276else 10277 echo "$as_me: failed program was:" >&5 10278sed 's/^/| /' conftest.$ac_ext >&5 10279 10280 ac_cv_have_decl_getc_unlocked=no 10281fi 10282 10283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10284fi 10285{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 10286echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } 10287 if test $ac_cv_have_decl_getc_unlocked = yes; then 10288 gt_value=1 10289 else 10290 gt_value=0 10291 fi 10292 10293cat >>confdefs.h <<_ACEOF 10294#define HAVE_DECL_GETC_UNLOCKED $gt_value 10295_ACEOF 10296 10297 10298 10299 case $gt_cv_func_printf_posix in 10300 *yes) HAVE_POSIX_PRINTF=1 ;; 10301 *) HAVE_POSIX_PRINTF=0 ;; 10302 esac 10303 10304 if test "$ac_cv_func_asprintf" = yes; then 10305 HAVE_ASPRINTF=1 10306 else 10307 HAVE_ASPRINTF=0 10308 fi 10309 10310 if test "$ac_cv_func_snprintf" = yes; then 10311 HAVE_SNPRINTF=1 10312 else 10313 HAVE_SNPRINTF=0 10314 fi 10315 10316 if test "$ac_cv_func_wprintf" = yes; then 10317 HAVE_WPRINTF=1 10318 else 10319 HAVE_WPRINTF=0 10320 fi 10321 10322 10323 10324 10325 10326 10327 10328 am_save_CPPFLAGS="$CPPFLAGS" 10329 10330 for element in $INCICONV; do 10331 haveit= 10332 for x in $CPPFLAGS; do 10333 10334 acl_save_prefix="$prefix" 10335 prefix="$acl_final_prefix" 10336 acl_save_exec_prefix="$exec_prefix" 10337 exec_prefix="$acl_final_exec_prefix" 10338 eval x=\"$x\" 10339 exec_prefix="$acl_save_exec_prefix" 10340 prefix="$acl_save_prefix" 10341 10342 if test "X$x" = "X$element"; then 10343 haveit=yes 10344 break 10345 fi 10346 done 10347 if test -z "$haveit"; then 10348 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 10349 fi 10350 done 10351 10352 10353 { echo "$as_me:$LINENO: checking for iconv" >&5 10354echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } 10355if test "${am_cv_func_iconv+set}" = set; then 10356 echo $ECHO_N "(cached) $ECHO_C" >&6 10357else 10358 10359 am_cv_func_iconv="no, consider installing GNU libiconv" 10360 am_cv_lib_iconv=no 10361 cat >conftest.$ac_ext <<_ACEOF 10362/* confdefs.h. */ 10363_ACEOF 10364cat confdefs.h >>conftest.$ac_ext 10365cat >>conftest.$ac_ext <<_ACEOF 10366/* end confdefs.h. */ 10367#include <stdlib.h> 10368#include <iconv.h> 10369int 10370main () 10371{ 10372iconv_t cd = iconv_open("",""); 10373 iconv(cd,NULL,NULL,NULL,NULL); 10374 iconv_close(cd); 10375 ; 10376 return 0; 10377} 10378_ACEOF 10379rm -f conftest.$ac_objext conftest$ac_exeext 10380if { (ac_try="$ac_link" 10381case "(($ac_try" in 10382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10383 *) ac_try_echo=$ac_try;; 10384esac 10385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10386 (eval "$ac_link") 2>conftest.er1 10387 ac_status=$? 10388 grep -v '^ *+' conftest.er1 >conftest.err 10389 rm -f conftest.er1 10390 cat conftest.err >&5 10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10392 (exit $ac_status); } && 10393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10394 { (case "(($ac_try" in 10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10396 *) ac_try_echo=$ac_try;; 10397esac 10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10399 (eval "$ac_try") 2>&5 10400 ac_status=$? 10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10402 (exit $ac_status); }; } && 10403 { ac_try='test -s conftest$ac_exeext' 10404 { (case "(($ac_try" in 10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10406 *) ac_try_echo=$ac_try;; 10407esac 10408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10409 (eval "$ac_try") 2>&5 10410 ac_status=$? 10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10412 (exit $ac_status); }; }; then 10413 am_cv_func_iconv=yes 10414else 10415 echo "$as_me: failed program was:" >&5 10416sed 's/^/| /' conftest.$ac_ext >&5 10417 10418 10419fi 10420 10421rm -f core conftest.err conftest.$ac_objext \ 10422 conftest$ac_exeext conftest.$ac_ext 10423 if test "$am_cv_func_iconv" != yes; then 10424 am_save_LIBS="$LIBS" 10425 LIBS="$LIBS $LIBICONV" 10426 cat >conftest.$ac_ext <<_ACEOF 10427/* confdefs.h. */ 10428_ACEOF 10429cat confdefs.h >>conftest.$ac_ext 10430cat >>conftest.$ac_ext <<_ACEOF 10431/* end confdefs.h. */ 10432#include <stdlib.h> 10433#include <iconv.h> 10434int 10435main () 10436{ 10437iconv_t cd = iconv_open("",""); 10438 iconv(cd,NULL,NULL,NULL,NULL); 10439 iconv_close(cd); 10440 ; 10441 return 0; 10442} 10443_ACEOF 10444rm -f conftest.$ac_objext conftest$ac_exeext 10445if { (ac_try="$ac_link" 10446case "(($ac_try" in 10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10448 *) ac_try_echo=$ac_try;; 10449esac 10450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10451 (eval "$ac_link") 2>conftest.er1 10452 ac_status=$? 10453 grep -v '^ *+' conftest.er1 >conftest.err 10454 rm -f conftest.er1 10455 cat conftest.err >&5 10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10457 (exit $ac_status); } && 10458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10459 { (case "(($ac_try" in 10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10461 *) ac_try_echo=$ac_try;; 10462esac 10463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10464 (eval "$ac_try") 2>&5 10465 ac_status=$? 10466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10467 (exit $ac_status); }; } && 10468 { ac_try='test -s conftest$ac_exeext' 10469 { (case "(($ac_try" in 10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10471 *) ac_try_echo=$ac_try;; 10472esac 10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10474 (eval "$ac_try") 2>&5 10475 ac_status=$? 10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10477 (exit $ac_status); }; }; then 10478 am_cv_lib_iconv=yes 10479 am_cv_func_iconv=yes 10480else 10481 echo "$as_me: failed program was:" >&5 10482sed 's/^/| /' conftest.$ac_ext >&5 10483 10484 10485fi 10486 10487rm -f core conftest.err conftest.$ac_objext \ 10488 conftest$ac_exeext conftest.$ac_ext 10489 LIBS="$am_save_LIBS" 10490 fi 10491 10492fi 10493{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 10494echo "${ECHO_T}$am_cv_func_iconv" >&6; } 10495 if test "$am_cv_func_iconv" = yes; then 10496 10497cat >>confdefs.h <<\_ACEOF 10498#define HAVE_ICONV 1 10499_ACEOF 10500 10501 fi 10502 if test "$am_cv_lib_iconv" = yes; then 10503 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 10504echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } 10505 { echo "$as_me:$LINENO: result: $LIBICONV" >&5 10506echo "${ECHO_T}$LIBICONV" >&6; } 10507 else 10508 CPPFLAGS="$am_save_CPPFLAGS" 10509 LIBICONV= 10510 LTLIBICONV= 10511 fi 10512 10513 10514 10515 if test "$am_cv_func_iconv" = yes; then 10516 { echo "$as_me:$LINENO: checking for iconv declaration" >&5 10517echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } 10518 if test "${am_cv_proto_iconv+set}" = set; then 10519 echo $ECHO_N "(cached) $ECHO_C" >&6 10520else 10521 10522 cat >conftest.$ac_ext <<_ACEOF 10523/* confdefs.h. */ 10524_ACEOF 10525cat confdefs.h >>conftest.$ac_ext 10526cat >>conftest.$ac_ext <<_ACEOF 10527/* end confdefs.h. */ 10528 10529#include <stdlib.h> 10530#include <iconv.h> 10531extern 10532#ifdef __cplusplus 10533"C" 10534#endif 10535#if defined(__STDC__) || defined(__cplusplus) 10536size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 10537#else 10538size_t iconv(); 10539#endif 10540 10541int 10542main () 10543{ 10544 10545 ; 10546 return 0; 10547} 10548_ACEOF 10549rm -f conftest.$ac_objext 10550if { (ac_try="$ac_compile" 10551case "(($ac_try" in 10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10553 *) ac_try_echo=$ac_try;; 10554esac 10555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10556 (eval "$ac_compile") 2>conftest.er1 10557 ac_status=$? 10558 grep -v '^ *+' conftest.er1 >conftest.err 10559 rm -f conftest.er1 10560 cat conftest.err >&5 10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10562 (exit $ac_status); } && 10563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10564 { (case "(($ac_try" in 10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10566 *) ac_try_echo=$ac_try;; 10567esac 10568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10569 (eval "$ac_try") 2>&5 10570 ac_status=$? 10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10572 (exit $ac_status); }; } && 10573 { ac_try='test -s conftest.$ac_objext' 10574 { (case "(($ac_try" in 10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10576 *) ac_try_echo=$ac_try;; 10577esac 10578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10579 (eval "$ac_try") 2>&5 10580 ac_status=$? 10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10582 (exit $ac_status); }; }; then 10583 am_cv_proto_iconv_arg1="" 10584else 10585 echo "$as_me: failed program was:" >&5 10586sed 's/^/| /' conftest.$ac_ext >&5 10587 10588 am_cv_proto_iconv_arg1="const" 10589fi 10590 10591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10592 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);" 10593fi 10594 10595 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 10596 { echo "$as_me:$LINENO: result: ${ac_t:- 10597 }$am_cv_proto_iconv" >&5 10598echo "${ECHO_T}${ac_t:- 10599 }$am_cv_proto_iconv" >&6; } 10600 10601cat >>confdefs.h <<_ACEOF 10602#define ICONV_CONST $am_cv_proto_iconv_arg1 10603_ACEOF 10604 10605 fi 10606 10607 10608 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 10609echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } 10610if test "${am_cv_langinfo_codeset+set}" = set; then 10611 echo $ECHO_N "(cached) $ECHO_C" >&6 10612else 10613 cat >conftest.$ac_ext <<_ACEOF 10614/* confdefs.h. */ 10615_ACEOF 10616cat confdefs.h >>conftest.$ac_ext 10617cat >>conftest.$ac_ext <<_ACEOF 10618/* end confdefs.h. */ 10619#include <langinfo.h> 10620int 10621main () 10622{ 10623char* cs = nl_langinfo(CODESET); 10624 ; 10625 return 0; 10626} 10627_ACEOF 10628rm -f conftest.$ac_objext conftest$ac_exeext 10629if { (ac_try="$ac_link" 10630case "(($ac_try" in 10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10632 *) ac_try_echo=$ac_try;; 10633esac 10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10635 (eval "$ac_link") 2>conftest.er1 10636 ac_status=$? 10637 grep -v '^ *+' conftest.er1 >conftest.err 10638 rm -f conftest.er1 10639 cat conftest.err >&5 10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10641 (exit $ac_status); } && 10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10643 { (case "(($ac_try" in 10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10645 *) ac_try_echo=$ac_try;; 10646esac 10647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10648 (eval "$ac_try") 2>&5 10649 ac_status=$? 10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10651 (exit $ac_status); }; } && 10652 { ac_try='test -s conftest$ac_exeext' 10653 { (case "(($ac_try" in 10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10655 *) ac_try_echo=$ac_try;; 10656esac 10657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10658 (eval "$ac_try") 2>&5 10659 ac_status=$? 10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10661 (exit $ac_status); }; }; then 10662 am_cv_langinfo_codeset=yes 10663else 10664 echo "$as_me: failed program was:" >&5 10665sed 's/^/| /' conftest.$ac_ext >&5 10666 10667 am_cv_langinfo_codeset=no 10668fi 10669 10670rm -f core conftest.err conftest.$ac_objext \ 10671 conftest$ac_exeext conftest.$ac_ext 10672 10673fi 10674{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 10675echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } 10676 if test $am_cv_langinfo_codeset = yes; then 10677 10678cat >>confdefs.h <<\_ACEOF 10679#define HAVE_LANGINFO_CODESET 1 10680_ACEOF 10681 10682 fi 10683 10684 if test $ac_cv_header_locale_h = yes; then 10685 10686 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 10687echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } 10688if test "${gt_cv_val_LC_MESSAGES+set}" = set; then 10689 echo $ECHO_N "(cached) $ECHO_C" >&6 10690else 10691 cat >conftest.$ac_ext <<_ACEOF 10692/* confdefs.h. */ 10693_ACEOF 10694cat confdefs.h >>conftest.$ac_ext 10695cat >>conftest.$ac_ext <<_ACEOF 10696/* end confdefs.h. */ 10697#include <locale.h> 10698int 10699main () 10700{ 10701return LC_MESSAGES 10702 ; 10703 return 0; 10704} 10705_ACEOF 10706rm -f conftest.$ac_objext conftest$ac_exeext 10707if { (ac_try="$ac_link" 10708case "(($ac_try" in 10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10710 *) ac_try_echo=$ac_try;; 10711esac 10712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10713 (eval "$ac_link") 2>conftest.er1 10714 ac_status=$? 10715 grep -v '^ *+' conftest.er1 >conftest.err 10716 rm -f conftest.er1 10717 cat conftest.err >&5 10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10719 (exit $ac_status); } && 10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10721 { (case "(($ac_try" in 10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10723 *) ac_try_echo=$ac_try;; 10724esac 10725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10726 (eval "$ac_try") 2>&5 10727 ac_status=$? 10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10729 (exit $ac_status); }; } && 10730 { ac_try='test -s conftest$ac_exeext' 10731 { (case "(($ac_try" in 10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10733 *) ac_try_echo=$ac_try;; 10734esac 10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10736 (eval "$ac_try") 2>&5 10737 ac_status=$? 10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10739 (exit $ac_status); }; }; then 10740 gt_cv_val_LC_MESSAGES=yes 10741else 10742 echo "$as_me: failed program was:" >&5 10743sed 's/^/| /' conftest.$ac_ext >&5 10744 10745 gt_cv_val_LC_MESSAGES=no 10746fi 10747 10748rm -f core conftest.err conftest.$ac_objext \ 10749 conftest$ac_exeext conftest.$ac_ext 10750fi 10751{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5 10752echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; } 10753 if test $gt_cv_val_LC_MESSAGES = yes; then 10754 10755cat >>confdefs.h <<\_ACEOF 10756#define HAVE_LC_MESSAGES 1 10757_ACEOF 10758 10759 fi 10760 10761 fi 10762 10763 if test -n "$INTL_MACOSX_LIBS"; then 10764 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 10765 fi 10766 10767 for ac_prog in bison 10768do 10769 # Extract the first word of "$ac_prog", so it can be a program name with args. 10770set dummy $ac_prog; ac_word=$2 10771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 10772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 10773if test "${ac_cv_prog_INTLBISON+set}" = set; then 10774 echo $ECHO_N "(cached) $ECHO_C" >&6 10775else 10776 if test -n "$INTLBISON"; then 10777 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 10778else 10779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10780for as_dir in $PATH 10781do 10782 IFS=$as_save_IFS 10783 test -z "$as_dir" && as_dir=. 10784 for ac_exec_ext in '' $ac_executable_extensions; do 10785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 10786 ac_cv_prog_INTLBISON="$ac_prog" 10787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10788 break 2 10789 fi 10790done 10791done 10792IFS=$as_save_IFS 10793 10794fi 10795fi 10796INTLBISON=$ac_cv_prog_INTLBISON 10797if test -n "$INTLBISON"; then 10798 { echo "$as_me:$LINENO: result: $INTLBISON" >&5 10799echo "${ECHO_T}$INTLBISON" >&6; } 10800else 10801 { echo "$as_me:$LINENO: result: no" >&5 10802echo "${ECHO_T}no" >&6; } 10803fi 10804 10805 10806 test -n "$INTLBISON" && break 10807done 10808 10809 if test -z "$INTLBISON"; then 10810 ac_verc_fail=yes 10811 else 10812 { echo "$as_me:$LINENO: checking version of bison" >&5 10813echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } 10814 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 10815 case $ac_prog_version in 10816 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 10817 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 10818 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 10819 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 10820 esac 10821 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 10822echo "${ECHO_T}$ac_prog_version" >&6; } 10823 fi 10824 if test $ac_verc_fail = yes; then 10825 INTLBISON=: 10826 fi 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 10844echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } 10845if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then 10846 echo $ECHO_N "(cached) $ECHO_C" >&6 10847else 10848 gt_save_CPPFLAGS="$CPPFLAGS" 10849 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 10850 gt_save_LIBS="$LIBS" 10851 LIBS="$LIBS -framework CoreFoundation" 10852 cat >conftest.$ac_ext <<_ACEOF 10853/* confdefs.h. */ 10854_ACEOF 10855cat confdefs.h >>conftest.$ac_ext 10856cat >>conftest.$ac_ext <<_ACEOF 10857/* end confdefs.h. */ 10858#include <CFPreferences.h> 10859int 10860main () 10861{ 10862CFPreferencesCopyAppValue(NULL, NULL) 10863 ; 10864 return 0; 10865} 10866_ACEOF 10867rm -f conftest.$ac_objext conftest$ac_exeext 10868if { (ac_try="$ac_link" 10869case "(($ac_try" in 10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10871 *) ac_try_echo=$ac_try;; 10872esac 10873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10874 (eval "$ac_link") 2>conftest.er1 10875 ac_status=$? 10876 grep -v '^ *+' conftest.er1 >conftest.err 10877 rm -f conftest.er1 10878 cat conftest.err >&5 10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10880 (exit $ac_status); } && 10881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10882 { (case "(($ac_try" in 10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10884 *) ac_try_echo=$ac_try;; 10885esac 10886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10887 (eval "$ac_try") 2>&5 10888 ac_status=$? 10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10890 (exit $ac_status); }; } && 10891 { ac_try='test -s conftest$ac_exeext' 10892 { (case "(($ac_try" in 10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10894 *) ac_try_echo=$ac_try;; 10895esac 10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10897 (eval "$ac_try") 2>&5 10898 ac_status=$? 10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10900 (exit $ac_status); }; }; then 10901 gt_cv_func_CFPreferencesCopyAppValue=yes 10902else 10903 echo "$as_me: failed program was:" >&5 10904sed 's/^/| /' conftest.$ac_ext >&5 10905 10906 gt_cv_func_CFPreferencesCopyAppValue=no 10907fi 10908 10909rm -f core conftest.err conftest.$ac_objext \ 10910 conftest$ac_exeext conftest.$ac_ext 10911 CPPFLAGS="$gt_save_CPPFLAGS" 10912 LIBS="$gt_save_LIBS" 10913fi 10914{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 10915echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 10916 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 10917 10918cat >>confdefs.h <<\_ACEOF 10919#define HAVE_CFPREFERENCESCOPYAPPVALUE 1 10920_ACEOF 10921 10922 fi 10923 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 10924echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } 10925if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then 10926 echo $ECHO_N "(cached) $ECHO_C" >&6 10927else 10928 gt_save_CPPFLAGS="$CPPFLAGS" 10929 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers" 10930 gt_save_LIBS="$LIBS" 10931 LIBS="$LIBS -framework CoreFoundation" 10932 cat >conftest.$ac_ext <<_ACEOF 10933/* confdefs.h. */ 10934_ACEOF 10935cat confdefs.h >>conftest.$ac_ext 10936cat >>conftest.$ac_ext <<_ACEOF 10937/* end confdefs.h. */ 10938#include <CFLocale.h> 10939int 10940main () 10941{ 10942CFLocaleCopyCurrent(); 10943 ; 10944 return 0; 10945} 10946_ACEOF 10947rm -f conftest.$ac_objext conftest$ac_exeext 10948if { (ac_try="$ac_link" 10949case "(($ac_try" in 10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10951 *) ac_try_echo=$ac_try;; 10952esac 10953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10954 (eval "$ac_link") 2>conftest.er1 10955 ac_status=$? 10956 grep -v '^ *+' conftest.er1 >conftest.err 10957 rm -f conftest.er1 10958 cat conftest.err >&5 10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10960 (exit $ac_status); } && 10961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10962 { (case "(($ac_try" in 10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10964 *) ac_try_echo=$ac_try;; 10965esac 10966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10967 (eval "$ac_try") 2>&5 10968 ac_status=$? 10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10970 (exit $ac_status); }; } && 10971 { ac_try='test -s conftest$ac_exeext' 10972 { (case "(($ac_try" in 10973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10974 *) ac_try_echo=$ac_try;; 10975esac 10976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10977 (eval "$ac_try") 2>&5 10978 ac_status=$? 10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10980 (exit $ac_status); }; }; then 10981 gt_cv_func_CFLocaleCopyCurrent=yes 10982else 10983 echo "$as_me: failed program was:" >&5 10984sed 's/^/| /' conftest.$ac_ext >&5 10985 10986 gt_cv_func_CFLocaleCopyCurrent=no 10987fi 10988 10989rm -f core conftest.err conftest.$ac_objext \ 10990 conftest$ac_exeext conftest.$ac_ext 10991 CPPFLAGS="$gt_save_CPPFLAGS" 10992 LIBS="$gt_save_LIBS" 10993fi 10994{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 10995echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } 10996 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 10997 10998cat >>confdefs.h <<\_ACEOF 10999#define HAVE_CFLOCALECOPYCURRENT 1 11000_ACEOF 11001 11002 fi 11003 INTL_MACOSX_LIBS= 11004 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 11005 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 11006 fi 11007 11008 11009 11010 11011 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 11012echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } 11013 # Check whether --enable-nls was given. 11014if test "${enable_nls+set}" = set; then 11015 enableval=$enable_nls; USE_NLS=$enableval 11016else 11017 USE_NLS=yes 11018fi 11019 11020 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 11021echo "${ECHO_T}$USE_NLS" >&6; } 11022 11023 11024 11025 11026 BUILD_INCLUDED_LIBINTL=no 11027 USE_INCLUDED_LIBINTL=no 11028 11029 LIBINTL= 11030 LTLIBINTL= 11031 POSUB= 11032 11033 if test "$USE_NLS" = "yes"; then 11034 gt_use_preinstalled_gnugettext=no 11035 11036 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 11037echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } 11038 11039# Check whether --with-included-gettext was given. 11040if test "${with_included_gettext+set}" = set; then 11041 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 11042else 11043 nls_cv_force_use_gnu_gettext=no 11044fi 11045 11046 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 11047echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } 11048 11049 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 11050 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 11051 11052 11053 11054 11055 11056 11057 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 11058echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } 11059if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 11060 echo $ECHO_N "(cached) $ECHO_C" >&6 11061else 11062 cat >conftest.$ac_ext <<_ACEOF 11063/* confdefs.h. */ 11064_ACEOF 11065cat confdefs.h >>conftest.$ac_ext 11066cat >>conftest.$ac_ext <<_ACEOF 11067/* end confdefs.h. */ 11068#include <libintl.h> 11069extern int _nl_msg_cat_cntr; 11070extern int *_nl_domain_bindings; 11071int 11072main () 11073{ 11074bindtextdomain ("", ""); 11075return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 11076 ; 11077 return 0; 11078} 11079_ACEOF 11080rm -f conftest.$ac_objext conftest$ac_exeext 11081if { (ac_try="$ac_link" 11082case "(($ac_try" in 11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11084 *) ac_try_echo=$ac_try;; 11085esac 11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11087 (eval "$ac_link") 2>conftest.er1 11088 ac_status=$? 11089 grep -v '^ *+' conftest.er1 >conftest.err 11090 rm -f conftest.er1 11091 cat conftest.err >&5 11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11093 (exit $ac_status); } && 11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11095 { (case "(($ac_try" in 11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11097 *) ac_try_echo=$ac_try;; 11098esac 11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11100 (eval "$ac_try") 2>&5 11101 ac_status=$? 11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11103 (exit $ac_status); }; } && 11104 { ac_try='test -s conftest$ac_exeext' 11105 { (case "(($ac_try" in 11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11107 *) ac_try_echo=$ac_try;; 11108esac 11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11110 (eval "$ac_try") 2>&5 11111 ac_status=$? 11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11113 (exit $ac_status); }; }; then 11114 gt_cv_func_gnugettext1_libc=yes 11115else 11116 echo "$as_me: failed program was:" >&5 11117sed 's/^/| /' conftest.$ac_ext >&5 11118 11119 gt_cv_func_gnugettext1_libc=no 11120fi 11121 11122rm -f core conftest.err conftest.$ac_objext \ 11123 conftest$ac_exeext conftest.$ac_ext 11124fi 11125{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 11126echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } 11127 11128 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 11129 11130 11131 11132 use_additional=yes 11133 11134 acl_save_prefix="$prefix" 11135 prefix="$acl_final_prefix" 11136 acl_save_exec_prefix="$exec_prefix" 11137 exec_prefix="$acl_final_exec_prefix" 11138 11139 eval additional_includedir=\"$includedir\" 11140 eval additional_libdir=\"$libdir\" 11141 11142 exec_prefix="$acl_save_exec_prefix" 11143 prefix="$acl_save_prefix" 11144 11145 11146# Check whether --with-libintl-prefix was given. 11147if test "${with_libintl_prefix+set}" = set; then 11148 withval=$with_libintl_prefix; 11149 if test "X$withval" = "Xno"; then 11150 use_additional=no 11151 else 11152 if test "X$withval" = "X"; then 11153 11154 acl_save_prefix="$prefix" 11155 prefix="$acl_final_prefix" 11156 acl_save_exec_prefix="$exec_prefix" 11157 exec_prefix="$acl_final_exec_prefix" 11158 11159 eval additional_includedir=\"$includedir\" 11160 eval additional_libdir=\"$libdir\" 11161 11162 exec_prefix="$acl_save_exec_prefix" 11163 prefix="$acl_save_prefix" 11164 11165 else 11166 additional_includedir="$withval/include" 11167 additional_libdir="$withval/lib" 11168 fi 11169 fi 11170 11171fi 11172 11173 LIBINTL= 11174 LTLIBINTL= 11175 INCINTL= 11176 rpathdirs= 11177 ltrpathdirs= 11178 names_already_handled= 11179 names_next_round='intl ' 11180 while test -n "$names_next_round"; do 11181 names_this_round="$names_next_round" 11182 names_next_round= 11183 for name in $names_this_round; do 11184 already_handled= 11185 for n in $names_already_handled; do 11186 if test "$n" = "$name"; then 11187 already_handled=yes 11188 break 11189 fi 11190 done 11191 if test -z "$already_handled"; then 11192 names_already_handled="$names_already_handled $name" 11193 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 11194 eval value=\"\$HAVE_LIB$uppername\" 11195 if test -n "$value"; then 11196 if test "$value" = yes; then 11197 eval value=\"\$LIB$uppername\" 11198 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 11199 eval value=\"\$LTLIB$uppername\" 11200 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 11201 else 11202 : 11203 fi 11204 else 11205 found_dir= 11206 found_la= 11207 found_so= 11208 found_a= 11209 if test $use_additional = yes; then 11210 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 11211 found_dir="$additional_libdir" 11212 found_so="$additional_libdir/lib$name.$shlibext" 11213 if test -f "$additional_libdir/lib$name.la"; then 11214 found_la="$additional_libdir/lib$name.la" 11215 fi 11216 else 11217 if test -f "$additional_libdir/lib$name.$libext"; then 11218 found_dir="$additional_libdir" 11219 found_a="$additional_libdir/lib$name.$libext" 11220 if test -f "$additional_libdir/lib$name.la"; then 11221 found_la="$additional_libdir/lib$name.la" 11222 fi 11223 fi 11224 fi 11225 fi 11226 if test "X$found_dir" = "X"; then 11227 for x in $LDFLAGS $LTLIBINTL; do 11228 11229 acl_save_prefix="$prefix" 11230 prefix="$acl_final_prefix" 11231 acl_save_exec_prefix="$exec_prefix" 11232 exec_prefix="$acl_final_exec_prefix" 11233 eval x=\"$x\" 11234 exec_prefix="$acl_save_exec_prefix" 11235 prefix="$acl_save_prefix" 11236 11237 case "$x" in 11238 -L*) 11239 dir=`echo "X$x" | sed -e 's/^X-L//'` 11240 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 11241 found_dir="$dir" 11242 found_so="$dir/lib$name.$shlibext" 11243 if test -f "$dir/lib$name.la"; then 11244 found_la="$dir/lib$name.la" 11245 fi 11246 else 11247 if test -f "$dir/lib$name.$libext"; then 11248 found_dir="$dir" 11249 found_a="$dir/lib$name.$libext" 11250 if test -f "$dir/lib$name.la"; then 11251 found_la="$dir/lib$name.la" 11252 fi 11253 fi 11254 fi 11255 ;; 11256 esac 11257 if test "X$found_dir" != "X"; then 11258 break 11259 fi 11260 done 11261 fi 11262 if test "X$found_dir" != "X"; then 11263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 11264 if test "X$found_so" != "X"; then 11265 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 11266 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11267 else 11268 haveit= 11269 for x in $ltrpathdirs; do 11270 if test "X$x" = "X$found_dir"; then 11271 haveit=yes 11272 break 11273 fi 11274 done 11275 if test -z "$haveit"; then 11276 ltrpathdirs="$ltrpathdirs $found_dir" 11277 fi 11278 if test "$hardcode_direct" = yes; then 11279 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11280 else 11281 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 11282 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11283 haveit= 11284 for x in $rpathdirs; do 11285 if test "X$x" = "X$found_dir"; then 11286 haveit=yes 11287 break 11288 fi 11289 done 11290 if test -z "$haveit"; then 11291 rpathdirs="$rpathdirs $found_dir" 11292 fi 11293 else 11294 haveit= 11295 for x in $LDFLAGS $LIBINTL; do 11296 11297 acl_save_prefix="$prefix" 11298 prefix="$acl_final_prefix" 11299 acl_save_exec_prefix="$exec_prefix" 11300 exec_prefix="$acl_final_exec_prefix" 11301 eval x=\"$x\" 11302 exec_prefix="$acl_save_exec_prefix" 11303 prefix="$acl_save_prefix" 11304 11305 if test "X$x" = "X-L$found_dir"; then 11306 haveit=yes 11307 break 11308 fi 11309 done 11310 if test -z "$haveit"; then 11311 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 11312 fi 11313 if test "$hardcode_minus_L" != no; then 11314 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11315 else 11316 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 11317 fi 11318 fi 11319 fi 11320 fi 11321 else 11322 if test "X$found_a" != "X"; then 11323 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 11324 else 11325 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 11326 fi 11327 fi 11328 additional_includedir= 11329 case "$found_dir" in 11330 */lib | */lib/) 11331 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 11332 additional_includedir="$basedir/include" 11333 ;; 11334 esac 11335 if test "X$additional_includedir" != "X"; then 11336 if test "X$additional_includedir" != "X/usr/include"; then 11337 haveit= 11338 if test "X$additional_includedir" = "X/usr/local/include"; then 11339 if test -n "$GCC"; then 11340 case $host_os in 11341 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 11342 esac 11343 fi 11344 fi 11345 if test -z "$haveit"; then 11346 for x in $CPPFLAGS $INCINTL; do 11347 11348 acl_save_prefix="$prefix" 11349 prefix="$acl_final_prefix" 11350 acl_save_exec_prefix="$exec_prefix" 11351 exec_prefix="$acl_final_exec_prefix" 11352 eval x=\"$x\" 11353 exec_prefix="$acl_save_exec_prefix" 11354 prefix="$acl_save_prefix" 11355 11356 if test "X$x" = "X-I$additional_includedir"; then 11357 haveit=yes 11358 break 11359 fi 11360 done 11361 if test -z "$haveit"; then 11362 if test -d "$additional_includedir"; then 11363 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 11364 fi 11365 fi 11366 fi 11367 fi 11368 fi 11369 if test -n "$found_la"; then 11370 save_libdir="$libdir" 11371 case "$found_la" in 11372 */* | *\\*) . "$found_la" ;; 11373 *) . "./$found_la" ;; 11374 esac 11375 libdir="$save_libdir" 11376 for dep in $dependency_libs; do 11377 case "$dep" in 11378 -L*) 11379 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11380 if test "X$additional_libdir" != "X/usr/lib"; then 11381 haveit= 11382 if test "X$additional_libdir" = "X/usr/local/lib"; then 11383 if test -n "$GCC"; then 11384 case $host_os in 11385 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 11386 esac 11387 fi 11388 fi 11389 if test -z "$haveit"; then 11390 haveit= 11391 for x in $LDFLAGS $LIBINTL; do 11392 11393 acl_save_prefix="$prefix" 11394 prefix="$acl_final_prefix" 11395 acl_save_exec_prefix="$exec_prefix" 11396 exec_prefix="$acl_final_exec_prefix" 11397 eval x=\"$x\" 11398 exec_prefix="$acl_save_exec_prefix" 11399 prefix="$acl_save_prefix" 11400 11401 if test "X$x" = "X-L$additional_libdir"; then 11402 haveit=yes 11403 break 11404 fi 11405 done 11406 if test -z "$haveit"; then 11407 if test -d "$additional_libdir"; then 11408 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 11409 fi 11410 fi 11411 haveit= 11412 for x in $LDFLAGS $LTLIBINTL; do 11413 11414 acl_save_prefix="$prefix" 11415 prefix="$acl_final_prefix" 11416 acl_save_exec_prefix="$exec_prefix" 11417 exec_prefix="$acl_final_exec_prefix" 11418 eval x=\"$x\" 11419 exec_prefix="$acl_save_exec_prefix" 11420 prefix="$acl_save_prefix" 11421 11422 if test "X$x" = "X-L$additional_libdir"; then 11423 haveit=yes 11424 break 11425 fi 11426 done 11427 if test -z "$haveit"; then 11428 if test -d "$additional_libdir"; then 11429 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 11430 fi 11431 fi 11432 fi 11433 fi 11434 ;; 11435 -R*) 11436 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11437 if test "$enable_rpath" != no; then 11438 haveit= 11439 for x in $rpathdirs; do 11440 if test "X$x" = "X$dir"; then 11441 haveit=yes 11442 break 11443 fi 11444 done 11445 if test -z "$haveit"; then 11446 rpathdirs="$rpathdirs $dir" 11447 fi 11448 haveit= 11449 for x in $ltrpathdirs; do 11450 if test "X$x" = "X$dir"; then 11451 haveit=yes 11452 break 11453 fi 11454 done 11455 if test -z "$haveit"; then 11456 ltrpathdirs="$ltrpathdirs $dir" 11457 fi 11458 fi 11459 ;; 11460 -l*) 11461 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11462 ;; 11463 *.la) 11464 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11465 ;; 11466 *) 11467 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 11468 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 11469 ;; 11470 esac 11471 done 11472 fi 11473 else 11474 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 11475 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 11476 fi 11477 fi 11478 fi 11479 done 11480 done 11481 if test "X$rpathdirs" != "X"; then 11482 if test -n "$hardcode_libdir_separator"; then 11483 alldirs= 11484 for found_dir in $rpathdirs; do 11485 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 11486 done 11487 acl_save_libdir="$libdir" 11488 libdir="$alldirs" 11489 eval flag=\"$hardcode_libdir_flag_spec\" 11490 libdir="$acl_save_libdir" 11491 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 11492 else 11493 for found_dir in $rpathdirs; do 11494 acl_save_libdir="$libdir" 11495 libdir="$found_dir" 11496 eval flag=\"$hardcode_libdir_flag_spec\" 11497 libdir="$acl_save_libdir" 11498 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 11499 done 11500 fi 11501 fi 11502 if test "X$ltrpathdirs" != "X"; then 11503 for found_dir in $ltrpathdirs; do 11504 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 11505 done 11506 fi 11507 11508 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 11509echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } 11510if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 11511 echo $ECHO_N "(cached) $ECHO_C" >&6 11512else 11513 gt_save_CPPFLAGS="$CPPFLAGS" 11514 CPPFLAGS="$CPPFLAGS $INCINTL" 11515 gt_save_LIBS="$LIBS" 11516 LIBS="$LIBS $LIBINTL" 11517 cat >conftest.$ac_ext <<_ACEOF 11518/* confdefs.h. */ 11519_ACEOF 11520cat confdefs.h >>conftest.$ac_ext 11521cat >>conftest.$ac_ext <<_ACEOF 11522/* end confdefs.h. */ 11523#include <libintl.h> 11524extern int _nl_msg_cat_cntr; 11525extern 11526#ifdef __cplusplus 11527"C" 11528#endif 11529const char *_nl_expand_alias (const char *); 11530int 11531main () 11532{ 11533bindtextdomain ("", ""); 11534return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 11535 ; 11536 return 0; 11537} 11538_ACEOF 11539rm -f conftest.$ac_objext conftest$ac_exeext 11540if { (ac_try="$ac_link" 11541case "(($ac_try" in 11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11543 *) ac_try_echo=$ac_try;; 11544esac 11545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11546 (eval "$ac_link") 2>conftest.er1 11547 ac_status=$? 11548 grep -v '^ *+' conftest.er1 >conftest.err 11549 rm -f conftest.er1 11550 cat conftest.err >&5 11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11552 (exit $ac_status); } && 11553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11554 { (case "(($ac_try" in 11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11556 *) ac_try_echo=$ac_try;; 11557esac 11558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11559 (eval "$ac_try") 2>&5 11560 ac_status=$? 11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11562 (exit $ac_status); }; } && 11563 { ac_try='test -s conftest$ac_exeext' 11564 { (case "(($ac_try" in 11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11566 *) ac_try_echo=$ac_try;; 11567esac 11568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11569 (eval "$ac_try") 2>&5 11570 ac_status=$? 11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11572 (exit $ac_status); }; }; then 11573 gt_cv_func_gnugettext1_libintl=yes 11574else 11575 echo "$as_me: failed program was:" >&5 11576sed 's/^/| /' conftest.$ac_ext >&5 11577 11578 gt_cv_func_gnugettext1_libintl=no 11579fi 11580 11581rm -f core conftest.err conftest.$ac_objext \ 11582 conftest$ac_exeext conftest.$ac_ext 11583 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 11584 LIBS="$LIBS $LIBICONV" 11585 cat >conftest.$ac_ext <<_ACEOF 11586/* confdefs.h. */ 11587_ACEOF 11588cat confdefs.h >>conftest.$ac_ext 11589cat >>conftest.$ac_ext <<_ACEOF 11590/* end confdefs.h. */ 11591#include <libintl.h> 11592extern int _nl_msg_cat_cntr; 11593extern 11594#ifdef __cplusplus 11595"C" 11596#endif 11597const char *_nl_expand_alias (const char *); 11598int 11599main () 11600{ 11601bindtextdomain ("", ""); 11602return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("") 11603 ; 11604 return 0; 11605} 11606_ACEOF 11607rm -f conftest.$ac_objext conftest$ac_exeext 11608if { (ac_try="$ac_link" 11609case "(($ac_try" in 11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11611 *) ac_try_echo=$ac_try;; 11612esac 11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11614 (eval "$ac_link") 2>conftest.er1 11615 ac_status=$? 11616 grep -v '^ *+' conftest.er1 >conftest.err 11617 rm -f conftest.er1 11618 cat conftest.err >&5 11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11620 (exit $ac_status); } && 11621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11622 { (case "(($ac_try" in 11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11624 *) ac_try_echo=$ac_try;; 11625esac 11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11627 (eval "$ac_try") 2>&5 11628 ac_status=$? 11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11630 (exit $ac_status); }; } && 11631 { ac_try='test -s conftest$ac_exeext' 11632 { (case "(($ac_try" in 11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11634 *) ac_try_echo=$ac_try;; 11635esac 11636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11637 (eval "$ac_try") 2>&5 11638 ac_status=$? 11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11640 (exit $ac_status); }; }; then 11641 LIBINTL="$LIBINTL $LIBICONV" 11642 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 11643 gt_cv_func_gnugettext1_libintl=yes 11644 11645else 11646 echo "$as_me: failed program was:" >&5 11647sed 's/^/| /' conftest.$ac_ext >&5 11648 11649 11650fi 11651 11652rm -f core conftest.err conftest.$ac_objext \ 11653 conftest$ac_exeext conftest.$ac_ext 11654 fi 11655 CPPFLAGS="$gt_save_CPPFLAGS" 11656 LIBS="$gt_save_LIBS" 11657fi 11658{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 11659echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } 11660 fi 11661 11662 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 11663 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 11664 && test "$PACKAGE" != gettext-runtime \ 11665 && test "$PACKAGE" != gettext-tools; }; then 11666 gt_use_preinstalled_gnugettext=yes 11667 else 11668 LIBINTL= 11669 LTLIBINTL= 11670 INCINTL= 11671 fi 11672 11673 11674 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 11675 nls_cv_use_gnu_gettext=yes 11676 fi 11677 fi 11678 11679 if test "$nls_cv_use_gnu_gettext" = "yes"; then 11680 BUILD_INCLUDED_LIBINTL=yes 11681 USE_INCLUDED_LIBINTL=yes 11682 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 11683 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 11684 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 11685 fi 11686 11687 CATOBJEXT= 11688 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 11689 || test "$nls_cv_use_gnu_gettext" = "yes"; then 11690 CATOBJEXT=.gmo 11691 fi 11692 11693 11694 if test -n "$INTL_MACOSX_LIBS"; then 11695 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 11696 || test "$nls_cv_use_gnu_gettext" = "yes"; then 11697 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 11698 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 11699 fi 11700 fi 11701 11702 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 11703 || test "$nls_cv_use_gnu_gettext" = "yes"; then 11704 11705cat >>confdefs.h <<\_ACEOF 11706#define ENABLE_NLS 1 11707_ACEOF 11708 11709 else 11710 USE_NLS=no 11711 fi 11712 fi 11713 11714 { echo "$as_me:$LINENO: checking whether to use NLS" >&5 11715echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } 11716 { echo "$as_me:$LINENO: result: $USE_NLS" >&5 11717echo "${ECHO_T}$USE_NLS" >&6; } 11718 if test "$USE_NLS" = "yes"; then 11719 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 11720echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } 11721 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 11722 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 11723 gt_source="external libintl" 11724 else 11725 gt_source="libc" 11726 fi 11727 else 11728 gt_source="included intl directory" 11729 fi 11730 { echo "$as_me:$LINENO: result: $gt_source" >&5 11731echo "${ECHO_T}$gt_source" >&6; } 11732 fi 11733 11734 if test "$USE_NLS" = "yes"; then 11735 11736 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 11737 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 11738 { echo "$as_me:$LINENO: checking how to link with libintl" >&5 11739echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } 11740 { echo "$as_me:$LINENO: result: $LIBINTL" >&5 11741echo "${ECHO_T}$LIBINTL" >&6; } 11742 11743 for element in $INCINTL; do 11744 haveit= 11745 for x in $CPPFLAGS; do 11746 11747 acl_save_prefix="$prefix" 11748 prefix="$acl_final_prefix" 11749 acl_save_exec_prefix="$exec_prefix" 11750 exec_prefix="$acl_final_exec_prefix" 11751 eval x=\"$x\" 11752 exec_prefix="$acl_save_exec_prefix" 11753 prefix="$acl_save_prefix" 11754 11755 if test "X$x" = "X$element"; then 11756 haveit=yes 11757 break 11758 fi 11759 done 11760 if test -z "$haveit"; then 11761 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 11762 fi 11763 done 11764 11765 fi 11766 11767 11768cat >>confdefs.h <<\_ACEOF 11769#define HAVE_GETTEXT 1 11770_ACEOF 11771 11772 11773cat >>confdefs.h <<\_ACEOF 11774#define HAVE_DCGETTEXT 1 11775_ACEOF 11776 11777 fi 11778 11779 POSUB=po 11780 fi 11781 11782 11783 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 11784 BUILD_INCLUDED_LIBINTL=yes 11785 fi 11786 11787 11788 11789 11790 11791 nls_cv_header_intl= 11792 nls_cv_header_libgt= 11793 11794 DATADIRNAME=share 11795 11796 11797 INSTOBJEXT=.mo 11798 11799 11800 GENCAT=gencat 11801 11802 11803 INTLOBJS= 11804 if test "$USE_INCLUDED_LIBINTL" = yes; then 11805 INTLOBJS="\$(GETTOBJS)" 11806 fi 11807 11808 11809 INTL_LIBTOOL_SUFFIX_PREFIX= 11810 11811 11812 11813 INTLLIBS="$LIBINTL" 11814 11815 11816 11817 11818 11819 11820 11821ALL_LINGUAS="" 11822 11823 11824 11825SDL_VERSION=1.2.0 11826 11827# Check whether --with-sdl-prefix was given. 11828if test "${with_sdl_prefix+set}" = set; then 11829 withval=$with_sdl_prefix; sdl_prefix="$withval" 11830else 11831 sdl_prefix="" 11832fi 11833 11834 11835# Check whether --with-sdl-exec-prefix was given. 11836if test "${with_sdl_exec_prefix+set}" = set; then 11837 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 11838else 11839 sdl_exec_prefix="" 11840fi 11841 11842# Check whether --enable-sdltest was given. 11843if test "${enable_sdltest+set}" = set; then 11844 enableval=$enable_sdltest; 11845else 11846 enable_sdltest=yes 11847fi 11848 11849 11850 if test x$sdl_exec_prefix != x ; then 11851 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 11852 if test x${SDL_CONFIG+set} != xset ; then 11853 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 11854 fi 11855 fi 11856 if test x$sdl_prefix != x ; then 11857 sdl_args="$sdl_args --prefix=$sdl_prefix" 11858 if test x${SDL_CONFIG+set} != xset ; then 11859 SDL_CONFIG=$sdl_prefix/bin/sdl-config 11860 fi 11861 fi 11862 11863 if test "x$prefix" != xNONE; then 11864 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 11865 fi 11866 # Extract the first word of "sdl-config", so it can be a program name with args. 11867set dummy sdl-config; ac_word=$2 11868{ echo "$as_me:$LINENO: checking for $ac_word" >&5 11869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 11870if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 11871 echo $ECHO_N "(cached) $ECHO_C" >&6 11872else 11873 case $SDL_CONFIG in 11874 [\\/]* | ?:[\\/]*) 11875 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 11876 ;; 11877 *) 11878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11879for as_dir in $PATH 11880do 11881 IFS=$as_save_IFS 11882 test -z "$as_dir" && as_dir=. 11883 for ac_exec_ext in '' $ac_executable_extensions; do 11884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 11885 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 11887 break 2 11888 fi 11889done 11890done 11891IFS=$as_save_IFS 11892 11893 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 11894 ;; 11895esac 11896fi 11897SDL_CONFIG=$ac_cv_path_SDL_CONFIG 11898if test -n "$SDL_CONFIG"; then 11899 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 11900echo "${ECHO_T}$SDL_CONFIG" >&6; } 11901else 11902 { echo "$as_me:$LINENO: result: no" >&5 11903echo "${ECHO_T}no" >&6; } 11904fi 11905 11906 11907 min_sdl_version=$SDL_VERSION 11908 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 11909echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; } 11910 no_sdl="" 11911 if test "$SDL_CONFIG" = "no" ; then 11912 no_sdl=yes 11913 else 11914 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 11915 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 11916 11917 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 11918 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 11919 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 11920 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 11921 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 11922 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 11923 if test "x$enable_sdltest" = "xyes" ; then 11924 ac_save_CFLAGS="$CFLAGS" 11925 ac_save_CXXFLAGS="$CXXFLAGS" 11926 ac_save_LIBS="$LIBS" 11927 CFLAGS="$CFLAGS $SDL_CFLAGS" 11928 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 11929 LIBS="$LIBS $SDL_LIBS" 11930 rm -f conf.sdltest 11931 if test "$cross_compiling" = yes; then 11932 echo $ac_n "cross compiling; assumed OK... $ac_c" 11933else 11934 cat >conftest.$ac_ext <<_ACEOF 11935/* confdefs.h. */ 11936_ACEOF 11937cat confdefs.h >>conftest.$ac_ext 11938cat >>conftest.$ac_ext <<_ACEOF 11939/* end confdefs.h. */ 11940 11941#include <stdio.h> 11942#include <stdlib.h> 11943#include <string.h> 11944#include "SDL.h" 11945 11946char* 11947my_strdup (char *str) 11948{ 11949 char *new_str; 11950 11951 if (str) 11952 { 11953 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 11954 strcpy (new_str, str); 11955 } 11956 else 11957 new_str = NULL; 11958 11959 return new_str; 11960} 11961 11962int main (int argc, char *argv[]) 11963{ 11964 int major, minor, micro; 11965 char *tmp_version; 11966 11967 /* This hangs on some systems (?) 11968 system ("touch conf.sdltest"); 11969 */ 11970 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 11971 11972 /* HP/UX 9 (%@#!) writes to sscanf strings */ 11973 tmp_version = my_strdup("$min_sdl_version"); 11974 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 11975 printf("%s, bad version string\n", "$min_sdl_version"); 11976 exit(1); 11977 } 11978 11979 if (($sdl_major_version > major) || 11980 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 11981 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 11982 { 11983 return 0; 11984 } 11985 else 11986 { 11987 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 11988 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 11989 printf("*** best to upgrade to the required version.\n"); 11990 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 11991 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 11992 printf("*** config.cache before re-running configure\n"); 11993 return 1; 11994 } 11995} 11996 11997 11998_ACEOF 11999rm -f conftest$ac_exeext 12000if { (ac_try="$ac_link" 12001case "(($ac_try" in 12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12003 *) ac_try_echo=$ac_try;; 12004esac 12005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12006 (eval "$ac_link") 2>&5 12007 ac_status=$? 12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12010 { (case "(($ac_try" in 12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12012 *) ac_try_echo=$ac_try;; 12013esac 12014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12015 (eval "$ac_try") 2>&5 12016 ac_status=$? 12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12018 (exit $ac_status); }; }; then 12019 : 12020else 12021 echo "$as_me: program exited with status $ac_status" >&5 12022echo "$as_me: failed program was:" >&5 12023sed 's/^/| /' conftest.$ac_ext >&5 12024 12025( exit $ac_status ) 12026no_sdl=yes 12027fi 12028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12029fi 12030 12031 12032 CFLAGS="$ac_save_CFLAGS" 12033 CXXFLAGS="$ac_save_CXXFLAGS" 12034 LIBS="$ac_save_LIBS" 12035 fi 12036 fi 12037 if test "x$no_sdl" = x ; then 12038 { echo "$as_me:$LINENO: result: yes" >&5 12039echo "${ECHO_T}yes" >&6; } 12040 : 12041 else 12042 { echo "$as_me:$LINENO: result: no" >&5 12043echo "${ECHO_T}no" >&6; } 12044 if test "$SDL_CONFIG" = "no" ; then 12045 echo "*** The sdl-config script installed by SDL could not be found" 12046 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 12047 echo "*** your path, or set the SDL_CONFIG environment variable to the" 12048 echo "*** full path to sdl-config." 12049 else 12050 if test -f conf.sdltest ; then 12051 : 12052 else 12053 echo "*** Could not run SDL test program, checking why..." 12054 CFLAGS="$CFLAGS $SDL_CFLAGS" 12055 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 12056 LIBS="$LIBS $SDL_LIBS" 12057 cat >conftest.$ac_ext <<_ACEOF 12058/* confdefs.h. */ 12059_ACEOF 12060cat confdefs.h >>conftest.$ac_ext 12061cat >>conftest.$ac_ext <<_ACEOF 12062/* end confdefs.h. */ 12063 12064#include <stdio.h> 12065#include "SDL.h" 12066 12067int main(int argc, char *argv[]) 12068{ return 0; } 12069#undef main 12070#define main K_and_R_C_main 12071 12072int 12073main () 12074{ 12075 return 0; 12076 ; 12077 return 0; 12078} 12079_ACEOF 12080rm -f conftest.$ac_objext conftest$ac_exeext 12081if { (ac_try="$ac_link" 12082case "(($ac_try" in 12083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12084 *) ac_try_echo=$ac_try;; 12085esac 12086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12087 (eval "$ac_link") 2>conftest.er1 12088 ac_status=$? 12089 grep -v '^ *+' conftest.er1 >conftest.err 12090 rm -f conftest.er1 12091 cat conftest.err >&5 12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12093 (exit $ac_status); } && 12094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12095 { (case "(($ac_try" in 12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12097 *) ac_try_echo=$ac_try;; 12098esac 12099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12100 (eval "$ac_try") 2>&5 12101 ac_status=$? 12102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12103 (exit $ac_status); }; } && 12104 { ac_try='test -s conftest$ac_exeext' 12105 { (case "(($ac_try" in 12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12107 *) ac_try_echo=$ac_try;; 12108esac 12109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12110 (eval "$ac_try") 2>&5 12111 ac_status=$? 12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12113 (exit $ac_status); }; }; then 12114 echo "*** The test program compiled, but did not run. This usually means" 12115 echo "*** that the run-time linker is not finding SDL or finding the wrong" 12116 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 12117 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 12118 echo "*** to the installed location Also, make sure you have run ldconfig if that" 12119 echo "*** is required on your system" 12120 echo "***" 12121 echo "*** If you have an old version installed, it is best to remove it, although" 12122 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 12123else 12124 echo "$as_me: failed program was:" >&5 12125sed 's/^/| /' conftest.$ac_ext >&5 12126 12127 echo "*** The test program failed to compile or link. See the file config.log for the" 12128 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 12129 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 12130 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 12131fi 12132 12133rm -f core conftest.err conftest.$ac_objext \ 12134 conftest$ac_exeext conftest.$ac_ext 12135 CFLAGS="$ac_save_CFLAGS" 12136 CXXFLAGS="$ac_save_CXXFLAGS" 12137 LIBS="$ac_save_LIBS" 12138 fi 12139 fi 12140 SDL_CFLAGS="" 12141 SDL_LIBS="" 12142 { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION required!" >&5 12143echo "$as_me: error: *** SDL version $SDL_VERSION required!" >&2;} 12144 { (exit 1); exit 1; }; } 12145 12146 fi 12147 12148 12149 rm -f conf.sdltest 12150 12151CFLAGS="$CFLAGS $SDL_CFLAGS" 12152LIBS="$LIBS $SDL_LIBS" 12153 12154have_SDLmixer=no 12155{ echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5 12156echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; } 12157if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then 12158 echo $ECHO_N "(cached) $ECHO_C" >&6 12159else 12160 ac_check_lib_save_LIBS=$LIBS 12161LIBS="-lSDL_mixer $LIBS" 12162cat >conftest.$ac_ext <<_ACEOF 12163/* confdefs.h. */ 12164_ACEOF 12165cat confdefs.h >>conftest.$ac_ext 12166cat >>conftest.$ac_ext <<_ACEOF 12167/* end confdefs.h. */ 12168 12169/* Override any GCC internal prototype to avoid an error. 12170 Use char because int might match the return type of a GCC 12171 builtin and then its argument prototype would still apply. */ 12172#ifdef __cplusplus 12173extern "C" 12174#endif 12175char Mix_OpenAudio (); 12176int 12177main () 12178{ 12179return Mix_OpenAudio (); 12180 ; 12181 return 0; 12182} 12183_ACEOF 12184rm -f conftest.$ac_objext conftest$ac_exeext 12185if { (ac_try="$ac_link" 12186case "(($ac_try" in 12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12188 *) ac_try_echo=$ac_try;; 12189esac 12190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12191 (eval "$ac_link") 2>conftest.er1 12192 ac_status=$? 12193 grep -v '^ *+' conftest.er1 >conftest.err 12194 rm -f conftest.er1 12195 cat conftest.err >&5 12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12197 (exit $ac_status); } && 12198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12199 { (case "(($ac_try" in 12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12201 *) ac_try_echo=$ac_try;; 12202esac 12203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12204 (eval "$ac_try") 2>&5 12205 ac_status=$? 12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12207 (exit $ac_status); }; } && 12208 { ac_try='test -s conftest$ac_exeext' 12209 { (case "(($ac_try" in 12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12211 *) ac_try_echo=$ac_try;; 12212esac 12213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12214 (eval "$ac_try") 2>&5 12215 ac_status=$? 12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12217 (exit $ac_status); }; }; then 12218 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes 12219else 12220 echo "$as_me: failed program was:" >&5 12221sed 's/^/| /' conftest.$ac_ext >&5 12222 12223 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no 12224fi 12225 12226rm -f core conftest.err conftest.$ac_objext \ 12227 conftest$ac_exeext conftest.$ac_ext 12228LIBS=$ac_check_lib_save_LIBS 12229fi 12230{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5 12231echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; } 12232if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then 12233 have_SDLmixer=yes 12234fi 12235 12236 12237 if test x$have_SDLmixer != xyes; then 12238 { { echo "$as_me:$LINENO: error: *** Can't find the SDL_mixer library 12239 Try: http://www.libsdl.org/projects/SDL_mixer/ 12240 " >&5 12241echo "$as_me: error: *** Can't find the SDL_mixer library 12242 Try: http://www.libsdl.org/projects/SDL_mixer/ 12243 " >&2;} 12244 { (exit 1); exit 1; }; } 12245 fi 12246 12247have_SDLimage=no 12248{ echo "$as_me:$LINENO: checking for IMG_Load_RW in -lSDL_image" >&5 12249echo $ECHO_N "checking for IMG_Load_RW in -lSDL_image... $ECHO_C" >&6; } 12250if test "${ac_cv_lib_SDL_image_IMG_Load_RW+set}" = set; then 12251 echo $ECHO_N "(cached) $ECHO_C" >&6 12252else 12253 ac_check_lib_save_LIBS=$LIBS 12254LIBS="-lSDL_image $LIBS" 12255cat >conftest.$ac_ext <<_ACEOF 12256/* confdefs.h. */ 12257_ACEOF 12258cat confdefs.h >>conftest.$ac_ext 12259cat >>conftest.$ac_ext <<_ACEOF 12260/* end confdefs.h. */ 12261 12262/* Override any GCC internal prototype to avoid an error. 12263 Use char because int might match the return type of a GCC 12264 builtin and then its argument prototype would still apply. */ 12265#ifdef __cplusplus 12266extern "C" 12267#endif 12268char IMG_Load_RW (); 12269int 12270main () 12271{ 12272return IMG_Load_RW (); 12273 ; 12274 return 0; 12275} 12276_ACEOF 12277rm -f conftest.$ac_objext conftest$ac_exeext 12278if { (ac_try="$ac_link" 12279case "(($ac_try" in 12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12281 *) ac_try_echo=$ac_try;; 12282esac 12283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12284 (eval "$ac_link") 2>conftest.er1 12285 ac_status=$? 12286 grep -v '^ *+' conftest.er1 >conftest.err 12287 rm -f conftest.er1 12288 cat conftest.err >&5 12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12290 (exit $ac_status); } && 12291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12292 { (case "(($ac_try" in 12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12294 *) ac_try_echo=$ac_try;; 12295esac 12296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12297 (eval "$ac_try") 2>&5 12298 ac_status=$? 12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12300 (exit $ac_status); }; } && 12301 { ac_try='test -s conftest$ac_exeext' 12302 { (case "(($ac_try" in 12303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12304 *) ac_try_echo=$ac_try;; 12305esac 12306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12307 (eval "$ac_try") 2>&5 12308 ac_status=$? 12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12310 (exit $ac_status); }; }; then 12311 ac_cv_lib_SDL_image_IMG_Load_RW=yes 12312else 12313 echo "$as_me: failed program was:" >&5 12314sed 's/^/| /' conftest.$ac_ext >&5 12315 12316 ac_cv_lib_SDL_image_IMG_Load_RW=no 12317fi 12318 12319rm -f core conftest.err conftest.$ac_objext \ 12320 conftest$ac_exeext conftest.$ac_ext 12321LIBS=$ac_check_lib_save_LIBS 12322fi 12323{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load_RW" >&5 12324echo "${ECHO_T}$ac_cv_lib_SDL_image_IMG_Load_RW" >&6; } 12325if test $ac_cv_lib_SDL_image_IMG_Load_RW = yes; then 12326 have_SDLimage=yes 12327fi 12328 12329 12330 if test x$have_SDLimage != xyes; then 12331 { { echo "$as_me:$LINENO: error: *** Can't find the SDL_image library 12332 Try: http://www.libsdl.org/projects/SDL_image/ 12333 " >&5 12334echo "$as_me: error: *** Can't find the SDL_image library 12335 Try: http://www.libsdl.org/projects/SDL_image/ 12336 " >&2;} 12337 { (exit 1); exit 1; }; } 12338 fi 12339 12340 12341LIBS="$LIBS -lSDL_image -lSDL_mixer" 12342 12343CFLAGS="$CFLAGS $SDL_CFLAGS" 12344LIBS="$LIBS $SDL_LIBS" 12345 12346 12347 12348 12349 12350ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/src/Makefile intl/Makefile po/Makefile.in" 12351 12352cat >confcache <<\_ACEOF 12353# This file is a shell script that caches the results of configure 12354# tests run on this system so they can be shared between configure 12355# scripts and configure runs, see configure's option --config-cache. 12356# It is not useful on other systems. If it contains results you don't 12357# want to keep, you may remove or edit it. 12358# 12359# config.status only pays attention to the cache file if you give it 12360# the --recheck option to rerun configure. 12361# 12362# `ac_cv_env_foo' variables (set or unset) will be overridden when 12363# loading this file, other *unset* `ac_cv_foo' will be assigned the 12364# following values. 12365 12366_ACEOF 12367 12368# The following way of writing the cache mishandles newlines in values, 12369# but we know of no workaround that is simple, portable, and efficient. 12370# So, we kill variables containing newlines. 12371# Ultrix sh set writes to stderr and can't be redirected directly, 12372# and sets the high bit in the cache file unless we assign to the vars. 12373( 12374 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12375 eval ac_val=\$$ac_var 12376 case $ac_val in #( 12377 *${as_nl}*) 12378 case $ac_var in #( 12379 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 12380echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 12381 esac 12382 case $ac_var in #( 12383 _ | IFS | as_nl) ;; #( 12384 *) $as_unset $ac_var ;; 12385 esac ;; 12386 esac 12387 done 12388 12389 (set) 2>&1 | 12390 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12391 *${as_nl}ac_space=\ *) 12392 # `set' does not quote correctly, so add quotes (double-quote 12393 # substitution turns \\\\ into \\, and sed turns \\ into \). 12394 sed -n \ 12395 "s/'/'\\\\''/g; 12396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12397 ;; #( 12398 *) 12399 # `set' quotes correctly as required by POSIX, so do not add quotes. 12400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12401 ;; 12402 esac | 12403 sort 12404) | 12405 sed ' 12406 /^ac_cv_env_/b end 12407 t clear 12408 :clear 12409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12410 t end 12411 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12412 :end' >>confcache 12413if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12414 if test -w "$cache_file"; then 12415 test "x$cache_file" != "x/dev/null" && 12416 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 12417echo "$as_me: updating cache $cache_file" >&6;} 12418 cat confcache >$cache_file 12419 else 12420 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 12421echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12422 fi 12423fi 12424rm -f confcache 12425 12426test "x$prefix" = xNONE && prefix=$ac_default_prefix 12427# Let make expand exec_prefix. 12428test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12429 12430DEFS=-DHAVE_CONFIG_H 12431 12432ac_libobjs= 12433ac_ltlibobjs= 12434for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12435 # 1. Remove the extension, and $U if already installed. 12436 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12437 ac_i=`echo "$ac_i" | sed "$ac_script"` 12438 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12439 # will be set to the directory where LIBOBJS objects are built. 12440 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12441 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 12442done 12443LIBOBJS=$ac_libobjs 12444 12445LTLIBOBJS=$ac_ltlibobjs 12446 12447 12448if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12449 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 12450Usually this means the macro was only invoked conditionally." >&5 12451echo "$as_me: error: conditional \"AMDEP\" was never defined. 12452Usually this means the macro was only invoked conditionally." >&2;} 12453 { (exit 1); exit 1; }; } 12454fi 12455if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12456 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 12457Usually this means the macro was only invoked conditionally." >&5 12458echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 12459Usually this means the macro was only invoked conditionally." >&2;} 12460 { (exit 1); exit 1; }; } 12461fi 12462 12463: ${CONFIG_STATUS=./config.status} 12464ac_clean_files_save=$ac_clean_files 12465ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12466{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 12467echo "$as_me: creating $CONFIG_STATUS" >&6;} 12468cat >$CONFIG_STATUS <<_ACEOF 12469#! $SHELL 12470# Generated by $as_me. 12471# Run this file to recreate the current configuration. 12472# Compiler output produced by configure, useful for debugging 12473# configure, is in config.log if it exists. 12474 12475debug=false 12476ac_cs_recheck=false 12477ac_cs_silent=false 12478SHELL=\${CONFIG_SHELL-$SHELL} 12479_ACEOF 12480 12481cat >>$CONFIG_STATUS <<\_ACEOF 12482## --------------------- ## 12483## M4sh Initialization. ## 12484## --------------------- ## 12485 12486# Be Bourne compatible 12487if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 12488 emulate sh 12489 NULLCMD=: 12490 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 12491 # is contrary to our usage. Disable this feature. 12492 alias -g '${1+"$@"}'='"$@"' 12493 setopt NO_GLOB_SUBST 12494else 12495 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 12496fi 12497BIN_SH=xpg4; export BIN_SH # for Tru64 12498DUALCASE=1; export DUALCASE # for MKS sh 12499 12500 12501# PATH needs CR 12502# Avoid depending upon Character Ranges. 12503as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12504as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12505as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12506as_cr_digits='0123456789' 12507as_cr_alnum=$as_cr_Letters$as_cr_digits 12508 12509# The user is always right. 12510if test "${PATH_SEPARATOR+set}" != set; then 12511 echo "#! /bin/sh" >conf$$.sh 12512 echo "exit 0" >>conf$$.sh 12513 chmod +x conf$$.sh 12514 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 12515 PATH_SEPARATOR=';' 12516 else 12517 PATH_SEPARATOR=: 12518 fi 12519 rm -f conf$$.sh 12520fi 12521 12522# Support unset when possible. 12523if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12524 as_unset=unset 12525else 12526 as_unset=false 12527fi 12528 12529 12530# IFS 12531# We need space, tab and new line, in precisely that order. Quoting is 12532# there to prevent editors from complaining about space-tab. 12533# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12534# splitting by setting IFS to empty value.) 12535as_nl=' 12536' 12537IFS=" "" $as_nl" 12538 12539# Find who we are. Look in the path if we contain no directory separator. 12540case $0 in 12541 *[\\/]* ) as_myself=$0 ;; 12542 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12543for as_dir in $PATH 12544do 12545 IFS=$as_save_IFS 12546 test -z "$as_dir" && as_dir=. 12547 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12548done 12549IFS=$as_save_IFS 12550 12551 ;; 12552esac 12553# We did not find ourselves, most probably we were run as `sh COMMAND' 12554# in which case we are not to be found in the path. 12555if test "x$as_myself" = x; then 12556 as_myself=$0 12557fi 12558if test ! -f "$as_myself"; then 12559 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12560 { (exit 1); exit 1; } 12561fi 12562 12563# Work around bugs in pre-3.0 UWIN ksh. 12564for as_var in ENV MAIL MAILPATH 12565do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12566done 12567PS1='$ ' 12568PS2='> ' 12569PS4='+ ' 12570 12571# NLS nuisances. 12572for as_var in \ 12573 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 12574 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 12575 LC_TELEPHONE LC_TIME 12576do 12577 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 12578 eval $as_var=C; export $as_var 12579 else 12580 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 12581 fi 12582done 12583 12584# Required to use basename. 12585if expr a : '\(a\)' >/dev/null 2>&1 && 12586 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12587 as_expr=expr 12588else 12589 as_expr=false 12590fi 12591 12592if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12593 as_basename=basename 12594else 12595 as_basename=false 12596fi 12597 12598 12599# Name of the executable. 12600as_me=`$as_basename -- "$0" || 12601$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12602 X"$0" : 'X\(//\)$' \| \ 12603 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12604echo X/"$0" | 12605 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12606 s//\1/ 12607 q 12608 } 12609 /^X\/\(\/\/\)$/{ 12610 s//\1/ 12611 q 12612 } 12613 /^X\/\(\/\).*/{ 12614 s//\1/ 12615 q 12616 } 12617 s/.*/./; q'` 12618 12619# CDPATH. 12620$as_unset CDPATH 12621 12622 12623 12624 as_lineno_1=$LINENO 12625 as_lineno_2=$LINENO 12626 test "x$as_lineno_1" != "x$as_lineno_2" && 12627 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 12628 12629 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 12630 # uniformly replaced by the line number. The first 'sed' inserts a 12631 # line-number line after each line using $LINENO; the second 'sed' 12632 # does the real work. The second script uses 'N' to pair each 12633 # line-number line with the line containing $LINENO, and appends 12634 # trailing '-' during substitution so that $LINENO is not a special 12635 # case at line end. 12636 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 12637 # scripts with optimization help from Paolo Bonzini. Blame Lee 12638 # E. McMahon (1931-1989) for sed's syntax. :-) 12639 sed -n ' 12640 p 12641 /[$]LINENO/= 12642 ' <$as_myself | 12643 sed ' 12644 s/[$]LINENO.*/&-/ 12645 t lineno 12646 b 12647 :lineno 12648 N 12649 :loop 12650 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 12651 t loop 12652 s/-\n.*// 12653 ' >$as_me.lineno && 12654 chmod +x "$as_me.lineno" || 12655 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 12656 { (exit 1); exit 1; }; } 12657 12658 # Don't try to exec as it changes $[0], causing all sort of problems 12659 # (the dirname of $[0] is not the place where we might find the 12660 # original and so on. Autoconf is especially sensitive to this). 12661 . "./$as_me.lineno" 12662 # Exit status is that of the last command. 12663 exit 12664} 12665 12666 12667if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12668 as_dirname=dirname 12669else 12670 as_dirname=false 12671fi 12672 12673ECHO_C= ECHO_N= ECHO_T= 12674case `echo -n x` in 12675-n*) 12676 case `echo 'x\c'` in 12677 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12678 *) ECHO_C='\c';; 12679 esac;; 12680*) 12681 ECHO_N='-n';; 12682esac 12683 12684if expr a : '\(a\)' >/dev/null 2>&1 && 12685 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12686 as_expr=expr 12687else 12688 as_expr=false 12689fi 12690 12691rm -f conf$$ conf$$.exe conf$$.file 12692if test -d conf$$.dir; then 12693 rm -f conf$$.dir/conf$$.file 12694else 12695 rm -f conf$$.dir 12696 mkdir conf$$.dir 12697fi 12698echo >conf$$.file 12699if ln -s conf$$.file conf$$ 2>/dev/null; then 12700 as_ln_s='ln -s' 12701 # ... but there are two gotchas: 12702 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12703 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12704 # In both cases, we have to default to `cp -p'. 12705 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12706 as_ln_s='cp -p' 12707elif ln conf$$.file conf$$ 2>/dev/null; then 12708 as_ln_s=ln 12709else 12710 as_ln_s='cp -p' 12711fi 12712rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12713rmdir conf$$.dir 2>/dev/null 12714 12715if mkdir -p . 2>/dev/null; then 12716 as_mkdir_p=: 12717else 12718 test -d ./-p && rmdir ./-p 12719 as_mkdir_p=false 12720fi 12721 12722# Find out whether ``test -x'' works. Don't use a zero-byte file, as 12723# systems may use methods other than mode bits to determine executability. 12724cat >conf$$.file <<_ASEOF 12725#! /bin/sh 12726exit 0 12727_ASEOF 12728chmod +x conf$$.file 12729if test -x conf$$.file >/dev/null 2>&1; then 12730 as_executable_p="test -x" 12731else 12732 as_executable_p=: 12733fi 12734rm -f conf$$.file 12735 12736# Sed expression to map a string onto a valid CPP name. 12737as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12738 12739# Sed expression to map a string onto a valid variable name. 12740as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12741 12742 12743exec 6>&1 12744 12745# Save the log message, to keep $[0] and so on meaningful, and to 12746# report actual input values of CONFIG_FILES etc. instead of their 12747# values after options handling. 12748ac_log=" 12749This file was extended by volleyball $as_me 0.8.6, which was 12750generated by GNU Autoconf 2.60. Invocation command line was 12751 12752 CONFIG_FILES = $CONFIG_FILES 12753 CONFIG_HEADERS = $CONFIG_HEADERS 12754 CONFIG_LINKS = $CONFIG_LINKS 12755 CONFIG_COMMANDS = $CONFIG_COMMANDS 12756 $ $0 $@ 12757 12758on `(hostname || uname -n) 2>/dev/null | sed 1q` 12759" 12760 12761_ACEOF 12762 12763cat >>$CONFIG_STATUS <<_ACEOF 12764# Files that config.status was made for. 12765config_files="$ac_config_files" 12766config_headers="$ac_config_headers" 12767config_commands="$ac_config_commands" 12768 12769_ACEOF 12770 12771cat >>$CONFIG_STATUS <<\_ACEOF 12772ac_cs_usage="\ 12773\`$as_me' instantiates files from templates according to the 12774current configuration. 12775 12776Usage: $0 [OPTIONS] [FILE]... 12777 12778 -h, --help print this help, then exit 12779 -V, --version print version number, then exit 12780 -q, --quiet do not print progress messages 12781 -d, --debug don't remove temporary files 12782 --recheck update $as_me by reconfiguring in the same conditions 12783 --file=FILE[:TEMPLATE] 12784 instantiate the configuration file FILE 12785 --header=FILE[:TEMPLATE] 12786 instantiate the configuration header FILE 12787 12788Configuration files: 12789$config_files 12790 12791Configuration headers: 12792$config_headers 12793 12794Configuration commands: 12795$config_commands 12796 12797Report bugs to <bug-autoconf@gnu.org>." 12798 12799_ACEOF 12800cat >>$CONFIG_STATUS <<_ACEOF 12801ac_cs_version="\\ 12802volleyball config.status 0.8.6 12803configured by $0, generated by GNU Autoconf 2.60, 12804 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12805 12806Copyright (C) 2006 Free Software Foundation, Inc. 12807This config.status script is free software; the Free Software Foundation 12808gives unlimited permission to copy, distribute and modify it." 12809 12810ac_pwd='$ac_pwd' 12811srcdir='$srcdir' 12812INSTALL='$INSTALL' 12813_ACEOF 12814 12815cat >>$CONFIG_STATUS <<\_ACEOF 12816# If no file are specified by the user, then we need to provide default 12817# value. By we need to know if files were specified by the user. 12818ac_need_defaults=: 12819while test $# != 0 12820do 12821 case $1 in 12822 --*=*) 12823 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12824 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12825 ac_shift=: 12826 ;; 12827 *) 12828 ac_option=$1 12829 ac_optarg=$2 12830 ac_shift=shift 12831 ;; 12832 esac 12833 12834 case $ac_option in 12835 # Handling of the options. 12836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12837 ac_cs_recheck=: ;; 12838 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12839 echo "$ac_cs_version"; exit ;; 12840 --debug | --debu | --deb | --de | --d | -d ) 12841 debug=: ;; 12842 --file | --fil | --fi | --f ) 12843 $ac_shift 12844 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 12845 ac_need_defaults=false;; 12846 --header | --heade | --head | --hea ) 12847 $ac_shift 12848 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 12849 ac_need_defaults=false;; 12850 --he | --h) 12851 # Conflict between --help and --header 12852 { echo "$as_me: error: ambiguous option: $1 12853Try \`$0 --help' for more information." >&2 12854 { (exit 1); exit 1; }; };; 12855 --help | --hel | -h ) 12856 echo "$ac_cs_usage"; exit ;; 12857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12858 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12859 ac_cs_silent=: ;; 12860 12861 # This is an error. 12862 -*) { echo "$as_me: error: unrecognized option: $1 12863Try \`$0 --help' for more information." >&2 12864 { (exit 1); exit 1; }; } ;; 12865 12866 *) ac_config_targets="$ac_config_targets $1" 12867 ac_need_defaults=false ;; 12868 12869 esac 12870 shift 12871done 12872 12873ac_configure_extra_args= 12874 12875if $ac_cs_silent; then 12876 exec 6>/dev/null 12877 ac_configure_extra_args="$ac_configure_extra_args --silent" 12878fi 12879 12880_ACEOF 12881cat >>$CONFIG_STATUS <<_ACEOF 12882if \$ac_cs_recheck; then 12883 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 12884 CONFIG_SHELL=$SHELL 12885 export CONFIG_SHELL 12886 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12887fi 12888 12889_ACEOF 12890cat >>$CONFIG_STATUS <<\_ACEOF 12891exec 5>>config.log 12892{ 12893 echo 12894 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12895## Running $as_me. ## 12896_ASBOX 12897 echo "$ac_log" 12898} >&5 12899 12900_ACEOF 12901cat >>$CONFIG_STATUS <<_ACEOF 12902# 12903# INIT-COMMANDS 12904# 12905AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12906# Capture the value of obsolete ALL_LINGUAS because we need it to compute 12907 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 12908 # from automake. 12909 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 12910 # Capture the value of LINGUAS because we need it to compute CATALOGS. 12911 LINGUAS="${LINGUAS-%UNSET%}" 12912 12913 12914_ACEOF 12915 12916cat >>$CONFIG_STATUS <<\_ACEOF 12917 12918# Handling of arguments. 12919for ac_config_target in $ac_config_targets 12920do 12921 case $ac_config_target in 12922 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12923 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12924 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12925 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12926 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12927 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 12928 "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;; 12929 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 12930 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 12931 12932 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 12933echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 12934 { (exit 1); exit 1; }; };; 12935 esac 12936done 12937 12938 12939# If the user did not use the arguments to specify the items to instantiate, 12940# then the envvar interface is used. Set only those that are not. 12941# We use the long form for the default assignment because of an extremely 12942# bizarre bug on SunOS 4.1.3. 12943if $ac_need_defaults; then 12944 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12945 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12946 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12947fi 12948 12949# Have a temporary directory for convenience. Make it in the build tree 12950# simply because there is no reason against having it here, and in addition, 12951# creating and moving files from /tmp can sometimes cause problems. 12952# Hook for its removal unless debugging. 12953# Note that there is a small window in which the directory will not be cleaned: 12954# after its creation but before its name has been assigned to `$tmp'. 12955$debug || 12956{ 12957 tmp= 12958 trap 'exit_status=$? 12959 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12960' 0 12961 trap '{ (exit 1); exit 1; }' 1 2 13 15 12962} 12963# Create a (secure) tmp directory for tmp files. 12964 12965{ 12966 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12967 test -n "$tmp" && test -d "$tmp" 12968} || 12969{ 12970 tmp=./conf$$-$RANDOM 12971 (umask 077 && mkdir "$tmp") 12972} || 12973{ 12974 echo "$me: cannot create a temporary directory in ." >&2 12975 { (exit 1); exit 1; } 12976} 12977 12978# 12979# Set up the sed scripts for CONFIG_FILES section. 12980# 12981 12982# No need to generate the scripts if there are no CONFIG_FILES. 12983# This happens for instance when ./config.status config.h 12984if test -n "$CONFIG_FILES"; then 12985 12986_ACEOF 12987 12988 12989 12990ac_delim='%!_!# ' 12991for ac_last_try in false false false false false :; do 12992 cat >conf$$subs.sed <<_ACEOF 12993SHELL!$SHELL$ac_delim 12994PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 12995PACKAGE_NAME!$PACKAGE_NAME$ac_delim 12996PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 12997PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 12998PACKAGE_STRING!$PACKAGE_STRING$ac_delim 12999PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 13000exec_prefix!$exec_prefix$ac_delim 13001prefix!$prefix$ac_delim 13002program_transform_name!$program_transform_name$ac_delim 13003bindir!$bindir$ac_delim 13004sbindir!$sbindir$ac_delim 13005libexecdir!$libexecdir$ac_delim 13006datarootdir!$datarootdir$ac_delim 13007datadir!$datadir$ac_delim 13008sysconfdir!$sysconfdir$ac_delim 13009sharedstatedir!$sharedstatedir$ac_delim 13010localstatedir!$localstatedir$ac_delim 13011includedir!$includedir$ac_delim 13012oldincludedir!$oldincludedir$ac_delim 13013docdir!$docdir$ac_delim 13014infodir!$infodir$ac_delim 13015htmldir!$htmldir$ac_delim 13016dvidir!$dvidir$ac_delim 13017pdfdir!$pdfdir$ac_delim 13018psdir!$psdir$ac_delim 13019libdir!$libdir$ac_delim 13020localedir!$localedir$ac_delim 13021mandir!$mandir$ac_delim 13022DEFS!$DEFS$ac_delim 13023ECHO_C!$ECHO_C$ac_delim 13024ECHO_N!$ECHO_N$ac_delim 13025ECHO_T!$ECHO_T$ac_delim 13026LIBS!$LIBS$ac_delim 13027build_alias!$build_alias$ac_delim 13028host_alias!$host_alias$ac_delim 13029target_alias!$target_alias$ac_delim 13030build!$build$ac_delim 13031build_cpu!$build_cpu$ac_delim 13032build_vendor!$build_vendor$ac_delim 13033build_os!$build_os$ac_delim 13034host!$host$ac_delim 13035host_cpu!$host_cpu$ac_delim 13036host_vendor!$host_vendor$ac_delim 13037host_os!$host_os$ac_delim 13038target!$target$ac_delim 13039target_cpu!$target_cpu$ac_delim 13040target_vendor!$target_vendor$ac_delim 13041target_os!$target_os$ac_delim 13042INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 13043INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 13044INSTALL_DATA!$INSTALL_DATA$ac_delim 13045CYGPATH_W!$CYGPATH_W$ac_delim 13046PACKAGE!$PACKAGE$ac_delim 13047VERSION!$VERSION$ac_delim 13048ACLOCAL!$ACLOCAL$ac_delim 13049AUTOCONF!$AUTOCONF$ac_delim 13050AUTOMAKE!$AUTOMAKE$ac_delim 13051AUTOHEADER!$AUTOHEADER$ac_delim 13052MAKEINFO!$MAKEINFO$ac_delim 13053install_sh!$install_sh$ac_delim 13054STRIP!$STRIP$ac_delim 13055INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 13056mkdir_p!$mkdir_p$ac_delim 13057AWK!$AWK$ac_delim 13058SET_MAKE!$SET_MAKE$ac_delim 13059am__leading_dot!$am__leading_dot$ac_delim 13060AMTAR!$AMTAR$ac_delim 13061am__tar!$am__tar$ac_delim 13062am__untar!$am__untar$ac_delim 13063CC!$CC$ac_delim 13064CFLAGS!$CFLAGS$ac_delim 13065LDFLAGS!$LDFLAGS$ac_delim 13066CPPFLAGS!$CPPFLAGS$ac_delim 13067ac_ct_CC!$ac_ct_CC$ac_delim 13068EXEEXT!$EXEEXT$ac_delim 13069OBJEXT!$OBJEXT$ac_delim 13070DEPDIR!$DEPDIR$ac_delim 13071am__include!$am__include$ac_delim 13072am__quote!$am__quote$ac_delim 13073AMDEP_TRUE!$AMDEP_TRUE$ac_delim 13074AMDEP_FALSE!$AMDEP_FALSE$ac_delim 13075AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 13076CCDEPMODE!$CCDEPMODE$ac_delim 13077am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 13078am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 13079MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim 13080USE_NLS!$USE_NLS$ac_delim 13081MSGFMT!$MSGFMT$ac_delim 13082GMSGFMT!$GMSGFMT$ac_delim 13083XGETTEXT!$XGETTEXT$ac_delim 13084MSGMERGE!$MSGMERGE$ac_delim 13085CPP!$CPP$ac_delim 13086GREP!$GREP$ac_delim 13087EGREP!$EGREP$ac_delim 13088GLIBC2!$GLIBC2$ac_delim 13089RANLIB!$RANLIB$ac_delim 13090_ACEOF 13091 13092 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 13093 break 13094 elif $ac_last_try; then 13095 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13096echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13097 { (exit 1); exit 1; }; } 13098 else 13099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13100 fi 13101done 13102 13103ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 13104if test -n "$ac_eof"; then 13105 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 13106 ac_eof=`expr $ac_eof + 1` 13107fi 13108 13109cat >>$CONFIG_STATUS <<_ACEOF 13110cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 13111/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13112_ACEOF 13113sed ' 13114s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 13115s/^/s,@/; s/!/@,|#_!!_#|/ 13116:n 13117t n 13118s/'"$ac_delim"'$/,g/; t 13119s/$/\\/; p 13120N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 13121' >>$CONFIG_STATUS <conf$$subs.sed 13122rm -f conf$$subs.sed 13123cat >>$CONFIG_STATUS <<_ACEOF 13124CEOF$ac_eof 13125_ACEOF 13126 13127 13128ac_delim='%!_!# ' 13129for ac_last_try in false false false false false :; do 13130 cat >conf$$subs.sed <<_ACEOF 13131ALLOCA!$ALLOCA$ac_delim 13132GLIBC21!$GLIBC21$ac_delim 13133INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim 13134HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim 13135HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim 13136HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim 13137HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim 13138LIBICONV!$LIBICONV$ac_delim 13139LTLIBICONV!$LTLIBICONV$ac_delim 13140INTLBISON!$INTLBISON$ac_delim 13141BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim 13142USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim 13143CATOBJEXT!$CATOBJEXT$ac_delim 13144DATADIRNAME!$DATADIRNAME$ac_delim 13145INSTOBJEXT!$INSTOBJEXT$ac_delim 13146GENCAT!$GENCAT$ac_delim 13147INTLOBJS!$INTLOBJS$ac_delim 13148INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim 13149INTLLIBS!$INTLLIBS$ac_delim 13150LIBINTL!$LIBINTL$ac_delim 13151LTLIBINTL!$LTLIBINTL$ac_delim 13152POSUB!$POSUB$ac_delim 13153SDL_CONFIG!$SDL_CONFIG$ac_delim 13154SDL_CFLAGS!$SDL_CFLAGS$ac_delim 13155SDL_LIBS!$SDL_LIBS$ac_delim 13156DEPS_CFLAGS!$DEPS_CFLAGS$ac_delim 13157DEPS_LIBS!$DEPS_LIBS$ac_delim 13158LIBOBJS!$LIBOBJS$ac_delim 13159LTLIBOBJS!$LTLIBOBJS$ac_delim 13160_ACEOF 13161 13162 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then 13163 break 13164 elif $ac_last_try; then 13165 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 13166echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 13167 { (exit 1); exit 1; }; } 13168 else 13169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13170 fi 13171done 13172 13173ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 13174if test -n "$ac_eof"; then 13175 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 13176 ac_eof=`expr $ac_eof + 1` 13177fi 13178 13179cat >>$CONFIG_STATUS <<_ACEOF 13180cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 13181/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 13182_ACEOF 13183sed ' 13184s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 13185s/^/s,@/; s/!/@,|#_!!_#|/ 13186:n 13187t n 13188s/'"$ac_delim"'$/,g/; t 13189s/$/\\/; p 13190N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 13191' >>$CONFIG_STATUS <conf$$subs.sed 13192rm -f conf$$subs.sed 13193cat >>$CONFIG_STATUS <<_ACEOF 13194:end 13195s/|#_!!_#|//g 13196CEOF$ac_eof 13197_ACEOF 13198 13199 13200# VPATH may cause trouble with some makes, so we remove $(srcdir), 13201# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13202# trailing colons and then remove the whole line if VPATH becomes empty 13203# (actually we leave an empty line to preserve line numbers). 13204if test "x$srcdir" = x.; then 13205 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13206s/:*\$(srcdir):*/:/ 13207s/:*\${srcdir}:*/:/ 13208s/:*@srcdir@:*/:/ 13209s/^\([^=]*=[ ]*\):*/\1/ 13210s/:*$// 13211s/^[^=]*=[ ]*$// 13212}' 13213fi 13214 13215cat >>$CONFIG_STATUS <<\_ACEOF 13216fi # test -n "$CONFIG_FILES" 13217 13218 13219for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 13220do 13221 case $ac_tag in 13222 :[FHLC]) ac_mode=$ac_tag; continue;; 13223 esac 13224 case $ac_mode$ac_tag in 13225 :[FHL]*:*);; 13226 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 13227echo "$as_me: error: Invalid tag $ac_tag." >&2;} 13228 { (exit 1); exit 1; }; };; 13229 :[FH]-) ac_tag=-:-;; 13230 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13231 esac 13232 ac_save_IFS=$IFS 13233 IFS=: 13234 set x $ac_tag 13235 IFS=$ac_save_IFS 13236 shift 13237 ac_file=$1 13238 shift 13239 13240 case $ac_mode in 13241 :L) ac_source=$1;; 13242 :[FH]) 13243 ac_file_inputs= 13244 for ac_f 13245 do 13246 case $ac_f in 13247 -) ac_f="$tmp/stdin";; 13248 *) # Look for the file first in the build tree, then in the source tree 13249 # (if the path is not absolute). The absolute path cannot be DOS-style, 13250 # because $ac_f cannot contain `:'. 13251 test -f "$ac_f" || 13252 case $ac_f in 13253 [\\/$]*) false;; 13254 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13255 esac || 13256 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 13257echo "$as_me: error: cannot find input file: $ac_f" >&2;} 13258 { (exit 1); exit 1; }; };; 13259 esac 13260 ac_file_inputs="$ac_file_inputs $ac_f" 13261 done 13262 13263 # Let's still pretend it is `configure' which instantiates (i.e., don't 13264 # use $as_me), people would be surprised to read: 13265 # /* config.h. Generated by config.status. */ 13266 configure_input="Generated from "`IFS=: 13267 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 13268 if test x"$ac_file" != x-; then 13269 configure_input="$ac_file. $configure_input" 13270 { echo "$as_me:$LINENO: creating $ac_file" >&5 13271echo "$as_me: creating $ac_file" >&6;} 13272 fi 13273 13274 case $ac_tag in 13275 *:-:* | *:-) cat >"$tmp/stdin";; 13276 esac 13277 ;; 13278 esac 13279 13280 ac_dir=`$as_dirname -- "$ac_file" || 13281$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13282 X"$ac_file" : 'X\(//\)[^/]' \| \ 13283 X"$ac_file" : 'X\(//\)$' \| \ 13284 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13285echo X"$ac_file" | 13286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13287 s//\1/ 13288 q 13289 } 13290 /^X\(\/\/\)[^/].*/{ 13291 s//\1/ 13292 q 13293 } 13294 /^X\(\/\/\)$/{ 13295 s//\1/ 13296 q 13297 } 13298 /^X\(\/\).*/{ 13299 s//\1/ 13300 q 13301 } 13302 s/.*/./; q'` 13303 { as_dir="$ac_dir" 13304 case $as_dir in #( 13305 -*) as_dir=./$as_dir;; 13306 esac 13307 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13308 as_dirs= 13309 while :; do 13310 case $as_dir in #( 13311 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 13312 *) as_qdir=$as_dir;; 13313 esac 13314 as_dirs="'$as_qdir' $as_dirs" 13315 as_dir=`$as_dirname -- "$as_dir" || 13316$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13317 X"$as_dir" : 'X\(//\)[^/]' \| \ 13318 X"$as_dir" : 'X\(//\)$' \| \ 13319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13320echo X"$as_dir" | 13321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13322 s//\1/ 13323 q 13324 } 13325 /^X\(\/\/\)[^/].*/{ 13326 s//\1/ 13327 q 13328 } 13329 /^X\(\/\/\)$/{ 13330 s//\1/ 13331 q 13332 } 13333 /^X\(\/\).*/{ 13334 s//\1/ 13335 q 13336 } 13337 s/.*/./; q'` 13338 test -d "$as_dir" && break 13339 done 13340 test -z "$as_dirs" || eval "mkdir $as_dirs" 13341 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13342echo "$as_me: error: cannot create directory $as_dir" >&2;} 13343 { (exit 1); exit 1; }; }; } 13344 ac_builddir=. 13345 13346case "$ac_dir" in 13347.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13348*) 13349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 13350 # A ".." for each directory in $ac_dir_suffix. 13351 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 13352 case $ac_top_builddir_sub in 13353 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13354 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13355 esac ;; 13356esac 13357ac_abs_top_builddir=$ac_pwd 13358ac_abs_builddir=$ac_pwd$ac_dir_suffix 13359# for backward compatibility: 13360ac_top_builddir=$ac_top_build_prefix 13361 13362case $srcdir in 13363 .) # We are building in place. 13364 ac_srcdir=. 13365 ac_top_srcdir=$ac_top_builddir_sub 13366 ac_abs_top_srcdir=$ac_pwd ;; 13367 [\\/]* | ?:[\\/]* ) # Absolute name. 13368 ac_srcdir=$srcdir$ac_dir_suffix; 13369 ac_top_srcdir=$srcdir 13370 ac_abs_top_srcdir=$srcdir ;; 13371 *) # Relative name. 13372 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13373 ac_top_srcdir=$ac_top_build_prefix$srcdir 13374 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13375esac 13376ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13377 13378 13379 case $ac_mode in 13380 :F) 13381 # 13382 # CONFIG_FILE 13383 # 13384 13385 case $INSTALL in 13386 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13387 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13388 esac 13389_ACEOF 13390 13391cat >>$CONFIG_STATUS <<\_ACEOF 13392# If the template does not know about datarootdir, expand it. 13393# FIXME: This hack should be removed a few years after 2.60. 13394ac_datarootdir_hack=; ac_datarootdir_seen= 13395 13396case `sed -n '/datarootdir/ { 13397 p 13398 q 13399} 13400/@datadir@/p 13401/@docdir@/p 13402/@infodir@/p 13403/@localedir@/p 13404/@mandir@/p 13405' $ac_file_inputs` in 13406*datarootdir*) ac_datarootdir_seen=yes;; 13407*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13408 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13409echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13410_ACEOF 13411cat >>$CONFIG_STATUS <<_ACEOF 13412 ac_datarootdir_hack=' 13413 s&@datadir@&$datadir&g 13414 s&@docdir@&$docdir&g 13415 s&@infodir@&$infodir&g 13416 s&@localedir@&$localedir&g 13417 s&@mandir@&$mandir&g 13418 s&\\\${datarootdir}&$datarootdir&g' ;; 13419esac 13420_ACEOF 13421 13422# Neutralize VPATH when `$srcdir' = `.'. 13423# Shell code in configure.ac might set extrasub. 13424# FIXME: do we really want to maintain this feature? 13425cat >>$CONFIG_STATUS <<_ACEOF 13426 sed "$ac_vpsub 13427$extrasub 13428_ACEOF 13429cat >>$CONFIG_STATUS <<\_ACEOF 13430:t 13431/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13432s&@configure_input@&$configure_input&;t t 13433s&@top_builddir@&$ac_top_builddir_sub&;t t 13434s&@srcdir@&$ac_srcdir&;t t 13435s&@abs_srcdir@&$ac_abs_srcdir&;t t 13436s&@top_srcdir@&$ac_top_srcdir&;t t 13437s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13438s&@builddir@&$ac_builddir&;t t 13439s&@abs_builddir@&$ac_abs_builddir&;t t 13440s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13441s&@INSTALL@&$ac_INSTALL&;t t 13442$ac_datarootdir_hack 13443" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 13444 13445test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13446 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13447 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13448 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13449which seems to be undefined. Please make sure it is defined." >&5 13450echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13451which seems to be undefined. Please make sure it is defined." >&2;} 13452 13453 rm -f "$tmp/stdin" 13454 case $ac_file in 13455 -) cat "$tmp/out"; rm -f "$tmp/out";; 13456 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 13457 esac 13458 ;; 13459 :H) 13460 # 13461 # CONFIG_HEADER 13462 # 13463_ACEOF 13464 13465# Transform confdefs.h into a sed script `conftest.defines', that 13466# substitutes the proper values into config.h.in to produce config.h. 13467rm -f conftest.defines conftest.tail 13468# First, append a space to every undef/define line, to ease matching. 13469echo 's/$/ /' >conftest.defines 13470# Then, protect against being on the right side of a sed subst, or in 13471# an unquoted here document, in config.status. If some macros were 13472# called several times there might be several #defines for the same 13473# symbol, which is useless. But do not sort them, since the last 13474# AC_DEFINE must be honored. 13475ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13476# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 13477# NAME is the cpp macro being defined, VALUE is the value it is being given. 13478# PARAMS is the parameter list in the macro definition--in most cases, it's 13479# just an empty string. 13480ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 13481ac_dB='\\)[ (].*,\\1define\\2' 13482ac_dC=' ' 13483ac_dD=' ,' 13484 13485uniq confdefs.h | 13486 sed -n ' 13487 t rset 13488 :rset 13489 s/^[ ]*#[ ]*define[ ][ ]*// 13490 t ok 13491 d 13492 :ok 13493 s/[\\&,]/\\&/g 13494 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 13495 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 13496 ' >>conftest.defines 13497 13498# Remove the space that was appended to ease matching. 13499# Then replace #undef with comments. This is necessary, for 13500# example, in the case of _POSIX_SOURCE, which is predefined and required 13501# on some systems where configure will not decide to define it. 13502# (The regexp can be short, since the line contains either #define or #undef.) 13503echo 's/ $// 13504s,^[ #]*u.*,/* & */,' >>conftest.defines 13505 13506# Break up conftest.defines: 13507ac_max_sed_lines=50 13508 13509# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 13510# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 13511# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 13512# et cetera. 13513ac_in='$ac_file_inputs' 13514ac_out='"$tmp/out1"' 13515ac_nxt='"$tmp/out2"' 13516 13517while : 13518do 13519 # Write a here document: 13520 cat >>$CONFIG_STATUS <<_ACEOF 13521 # First, check the format of the line: 13522 cat >"\$tmp/defines.sed" <<\\CEOF 13523/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 13524/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 13525b 13526:def 13527_ACEOF 13528 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 13529 echo 'CEOF 13530 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 13531 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 13532 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 13533 grep . conftest.tail >/dev/null || break 13534 rm -f conftest.defines 13535 mv conftest.tail conftest.defines 13536done 13537rm -f conftest.defines conftest.tail 13538 13539echo "ac_result=$ac_in" >>$CONFIG_STATUS 13540cat >>$CONFIG_STATUS <<\_ACEOF 13541 if test x"$ac_file" != x-; then 13542 echo "/* $configure_input */" >"$tmp/config.h" 13543 cat "$ac_result" >>"$tmp/config.h" 13544 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 13545 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 13546echo "$as_me: $ac_file is unchanged" >&6;} 13547 else 13548 rm -f $ac_file 13549 mv "$tmp/config.h" $ac_file 13550 fi 13551 else 13552 echo "/* $configure_input */" 13553 cat "$ac_result" 13554 fi 13555 rm -f "$tmp/out12" 13556# Compute $ac_file's index in $config_headers. 13557_am_stamp_count=1 13558for _am_header in $config_headers :; do 13559 case $_am_header in 13560 $ac_file | $ac_file:* ) 13561 break ;; 13562 * ) 13563 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13564 esac 13565done 13566echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 13567$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13568 X$ac_file : 'X\(//\)[^/]' \| \ 13569 X$ac_file : 'X\(//\)$' \| \ 13570 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 13571echo X$ac_file | 13572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13573 s//\1/ 13574 q 13575 } 13576 /^X\(\/\/\)[^/].*/{ 13577 s//\1/ 13578 q 13579 } 13580 /^X\(\/\/\)$/{ 13581 s//\1/ 13582 q 13583 } 13584 /^X\(\/\).*/{ 13585 s//\1/ 13586 q 13587 } 13588 s/.*/./; q'`/stamp-h$_am_stamp_count 13589 ;; 13590 13591 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 13592echo "$as_me: executing $ac_file commands" >&6;} 13593 ;; 13594 esac 13595 13596 13597 case $ac_file$ac_mode in 13598 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 13599 # Strip MF so we end up with the name of the file. 13600 mf=`echo "$mf" | sed -e 's/:.*$//'` 13601 # Check whether this is an Automake generated Makefile or not. 13602 # We used to match only the files named `Makefile.in', but 13603 # some people rename them; so instead we look at the file content. 13604 # Grep'ing the first line is not enough: some people post-process 13605 # each Makefile.in and add a new line on top of each file to say so. 13606 # So let's grep whole file. 13607 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 13608 dirpart=`$as_dirname -- "$mf" || 13609$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13610 X"$mf" : 'X\(//\)[^/]' \| \ 13611 X"$mf" : 'X\(//\)$' \| \ 13612 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13613echo X"$mf" | 13614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13615 s//\1/ 13616 q 13617 } 13618 /^X\(\/\/\)[^/].*/{ 13619 s//\1/ 13620 q 13621 } 13622 /^X\(\/\/\)$/{ 13623 s//\1/ 13624 q 13625 } 13626 /^X\(\/\).*/{ 13627 s//\1/ 13628 q 13629 } 13630 s/.*/./; q'` 13631 else 13632 continue 13633 fi 13634 # Extract the definition of DEPDIR, am__include, and am__quote 13635 # from the Makefile without running `make'. 13636 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13637 test -z "$DEPDIR" && continue 13638 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13639 test -z "am__include" && continue 13640 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13641 # When using ansi2knr, U may be empty or an underscore; expand it 13642 U=`sed -n 's/^U = //p' < "$mf"` 13643 # Find all dependency output files, they are included files with 13644 # $(DEPDIR) in their names. We invoke sed twice because it is the 13645 # simplest approach to changing $(DEPDIR) to its actual value in the 13646 # expansion. 13647 for file in `sed -n " 13648 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13649 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13650 # Make sure the directory exists. 13651 test -f "$dirpart/$file" && continue 13652 fdir=`$as_dirname -- "$file" || 13653$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13654 X"$file" : 'X\(//\)[^/]' \| \ 13655 X"$file" : 'X\(//\)$' \| \ 13656 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13657echo X"$file" | 13658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13659 s//\1/ 13660 q 13661 } 13662 /^X\(\/\/\)[^/].*/{ 13663 s//\1/ 13664 q 13665 } 13666 /^X\(\/\/\)$/{ 13667 s//\1/ 13668 q 13669 } 13670 /^X\(\/\).*/{ 13671 s//\1/ 13672 q 13673 } 13674 s/.*/./; q'` 13675 { as_dir=$dirpart/$fdir 13676 case $as_dir in #( 13677 -*) as_dir=./$as_dir;; 13678 esac 13679 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 13680 as_dirs= 13681 while :; do 13682 case $as_dir in #( 13683 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 13684 *) as_qdir=$as_dir;; 13685 esac 13686 as_dirs="'$as_qdir' $as_dirs" 13687 as_dir=`$as_dirname -- "$as_dir" || 13688$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13689 X"$as_dir" : 'X\(//\)[^/]' \| \ 13690 X"$as_dir" : 'X\(//\)$' \| \ 13691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13692echo X"$as_dir" | 13693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13694 s//\1/ 13695 q 13696 } 13697 /^X\(\/\/\)[^/].*/{ 13698 s//\1/ 13699 q 13700 } 13701 /^X\(\/\/\)$/{ 13702 s//\1/ 13703 q 13704 } 13705 /^X\(\/\).*/{ 13706 s//\1/ 13707 q 13708 } 13709 s/.*/./; q'` 13710 test -d "$as_dir" && break 13711 done 13712 test -z "$as_dirs" || eval "mkdir $as_dirs" 13713 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 13714echo "$as_me: error: cannot create directory $as_dir" >&2;} 13715 { (exit 1); exit 1; }; }; } 13716 # echo "creating $dirpart/$file" 13717 echo '# dummy' > "$dirpart/$file" 13718 done 13719done 13720 ;; 13721 "default-1":C) 13722 for ac_file in $CONFIG_FILES; do 13723 # Support "outfile[:infile[:infile...]]" 13724 case "$ac_file" in 13725 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 13726 esac 13727 # PO directories have a Makefile.in generated from Makefile.in.in. 13728 case "$ac_file" in */Makefile.in) 13729 # Adjust a relative srcdir. 13730 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 13731 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 13732 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 13733 # In autoconf-2.13 it is called $ac_given_srcdir. 13734 # In autoconf-2.50 it is called $srcdir. 13735 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 13736 case "$ac_given_srcdir" in 13737 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 13738 /*) top_srcdir="$ac_given_srcdir" ;; 13739 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 13740 esac 13741 # Treat a directory as a PO directory if and only if it has a 13742 # POTFILES.in file. This allows packages to have multiple PO 13743 # directories under different names or in different locations. 13744 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 13745 rm -f "$ac_dir/POTFILES" 13746 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 13747 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 13748 POMAKEFILEDEPS="POTFILES.in" 13749 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 13750 # on $ac_dir but don't depend on user-specified configuration 13751 # parameters. 13752 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 13753 # The LINGUAS file contains the set of available languages. 13754 if test -n "$OBSOLETE_ALL_LINGUAS"; then 13755 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 13756 fi 13757 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 13758 # Hide the ALL_LINGUAS assigment from automake. 13759 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 13760 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 13761 else 13762 # The set of available languages was given in configure.in. 13763 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 13764 fi 13765 # Compute POFILES 13766 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 13767 # Compute UPDATEPOFILES 13768 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 13769 # Compute DUMMYPOFILES 13770 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 13771 # Compute GMOFILES 13772 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 13773 case "$ac_given_srcdir" in 13774 .) srcdirpre= ;; 13775 *) srcdirpre='$(srcdir)/' ;; 13776 esac 13777 POFILES= 13778 UPDATEPOFILES= 13779 DUMMYPOFILES= 13780 GMOFILES= 13781 for lang in $ALL_LINGUAS; do 13782 POFILES="$POFILES $srcdirpre$lang.po" 13783 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 13784 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 13785 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 13786 done 13787 # CATALOGS depends on both $ac_dir and the user's LINGUAS 13788 # environment variable. 13789 INST_LINGUAS= 13790 if test -n "$ALL_LINGUAS"; then 13791 for presentlang in $ALL_LINGUAS; do 13792 useit=no 13793 if test "%UNSET%" != "$LINGUAS"; then 13794 desiredlanguages="$LINGUAS" 13795 else 13796 desiredlanguages="$ALL_LINGUAS" 13797 fi 13798 for desiredlang in $desiredlanguages; do 13799 # Use the presentlang catalog if desiredlang is 13800 # a. equal to presentlang, or 13801 # b. a variant of presentlang (because in this case, 13802 # presentlang can be used as a fallback for messages 13803 # which are not translated in the desiredlang catalog). 13804 case "$desiredlang" in 13805 "$presentlang"*) useit=yes;; 13806 esac 13807 done 13808 if test $useit = yes; then 13809 INST_LINGUAS="$INST_LINGUAS $presentlang" 13810 fi 13811 done 13812 fi 13813 CATALOGS= 13814 if test -n "$INST_LINGUAS"; then 13815 for lang in $INST_LINGUAS; do 13816 CATALOGS="$CATALOGS $lang.gmo" 13817 done 13818 fi 13819 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 13820 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" 13821 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 13822 if test -f "$f"; then 13823 case "$f" in 13824 *.orig | *.bak | *~) ;; 13825 *) cat "$f" >> "$ac_dir/Makefile" ;; 13826 esac 13827 fi 13828 done 13829 fi 13830 ;; 13831 esac 13832 done ;; 13833 13834 esac 13835done # for ac_tag 13836 13837 13838{ (exit 0); exit 0; } 13839_ACEOF 13840chmod +x $CONFIG_STATUS 13841ac_clean_files=$ac_clean_files_save 13842 13843 13844# configure is writing to config.log, and then calls config.status. 13845# config.status does its own redirection, appending to config.log. 13846# Unfortunately, on DOS this fails, as config.log is still kept open 13847# by configure, so config.status won't be able to write to it; its 13848# output is simply discarded. So we exec the FD to /dev/null, 13849# effectively closing config.log, so it can be properly (re)opened and 13850# appended to by config.status. When coming back to configure, we 13851# need to make the FD available again. 13852if test "$no_create" != yes; then 13853 ac_cs_success=: 13854 ac_config_status_args= 13855 test "$silent" = yes && 13856 ac_config_status_args="$ac_config_status_args --quiet" 13857 exec 5>/dev/null 13858 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13859 exec 5>>config.log 13860 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13861 # would make configure fail if this is the last instruction. 13862 $ac_cs_success || { (exit 1); exit 1; } 13863fi 13864 13865