1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for tgif 4.2.5. 4# 5# Report bugs to <bill.cheng@acm.org>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554exec 7<&0 </dev/null 6>&1 555 556# Name of the host. 557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 558# so uname gets run too. 559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 560 561# 562# Initializations. 563# 564ac_default_prefix=/usr/local 565ac_clean_files= 566ac_config_libobj_dir=. 567LIBOBJS= 568cross_compiling=no 569subdirs= 570MFLAGS= 571MAKEFLAGS= 572SHELL=${CONFIG_SHELL-/bin/sh} 573 574# Identity of this package. 575PACKAGE_NAME='tgif' 576PACKAGE_TARNAME='tgif' 577PACKAGE_VERSION='4.2.5' 578PACKAGE_STRING='tgif 4.2.5' 579PACKAGE_BUGREPORT='bill.cheng@acm.org' 580 581ac_unique_file="wb_seg.c" 582# Factoring default headers for most tests. 583ac_includes_default="\ 584#include <stdio.h> 585#ifdef HAVE_SYS_TYPES_H 586# include <sys/types.h> 587#endif 588#ifdef HAVE_SYS_STAT_H 589# include <sys/stat.h> 590#endif 591#ifdef STDC_HEADERS 592# include <stdlib.h> 593# include <stddef.h> 594#else 595# ifdef HAVE_STDLIB_H 596# include <stdlib.h> 597# endif 598#endif 599#ifdef HAVE_STRING_H 600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 601# include <memory.h> 602# endif 603# include <string.h> 604#endif 605#ifdef HAVE_STRINGS_H 606# include <strings.h> 607#endif 608#ifdef HAVE_INTTYPES_H 609# include <inttypes.h> 610#endif 611#ifdef HAVE_STDINT_H 612# include <stdint.h> 613#endif 614#ifdef HAVE_UNISTD_H 615# include <unistd.h> 616#endif" 617 618ac_subst_vars='SHELL 619PATH_SEPARATOR 620PACKAGE_NAME 621PACKAGE_TARNAME 622PACKAGE_VERSION 623PACKAGE_STRING 624PACKAGE_BUGREPORT 625exec_prefix 626prefix 627program_transform_name 628bindir 629sbindir 630libexecdir 631datarootdir 632datadir 633sysconfdir 634sharedstatedir 635localstatedir 636includedir 637oldincludedir 638docdir 639infodir 640htmldir 641dvidir 642pdfdir 643psdir 644libdir 645localedir 646mandir 647DEFS 648ECHO_C 649ECHO_N 650ECHO_T 651LIBS 652build_alias 653host_alias 654target_alias 655INSTALL_PROGRAM 656INSTALL_SCRIPT 657INSTALL_DATA 658am__isrc 659CYGPATH_W 660PACKAGE 661VERSION 662ACLOCAL 663AUTOCONF 664AUTOMAKE 665AUTOHEADER 666MAKEINFO 667install_sh 668STRIP 669INSTALL_STRIP_PROGRAM 670mkdir_p 671AWK 672SET_MAKE 673am__leading_dot 674AMTAR 675am__tar 676am__untar 677CC 678CFLAGS 679LDFLAGS 680CPPFLAGS 681ac_ct_CC 682EXEEXT 683OBJEXT 684DEPDIR 685am__include 686am__quote 687AMDEP_TRUE 688AMDEP_FALSE 689AMDEPBACKSLASH 690CCDEPMODE 691am__fastdepCC_TRUE 692am__fastdepCC_FALSE 693XMKMF 694CPP 695GREP 696EGREP 697LIBOBJS 698POW_LIB 699LTLIBOBJS' 700ac_subst_files='' 701 ac_precious_vars='build_alias 702host_alias 703target_alias 704CC 705CFLAGS 706LDFLAGS 707LIBS 708CPPFLAGS 709XMKMF 710CPP' 711 712 713# Initialize some variables set by options. 714ac_init_help= 715ac_init_version=false 716# The variables have the same names as the options, with 717# dashes changed to underlines. 718cache_file=/dev/null 719exec_prefix=NONE 720no_create= 721no_recursion= 722prefix=NONE 723program_prefix=NONE 724program_suffix=NONE 725program_transform_name=s,x,x, 726silent= 727site= 728srcdir= 729verbose= 730x_includes=NONE 731x_libraries=NONE 732 733# Installation directory options. 734# These are left unexpanded so users can "make install exec_prefix=/foo" 735# and all the variables that are supposed to be based on exec_prefix 736# by default will actually change. 737# Use braces instead of parens because sh, perl, etc. also accept them. 738# (The list follows the same order as the GNU Coding Standards.) 739bindir='${exec_prefix}/bin' 740sbindir='${exec_prefix}/sbin' 741libexecdir='${exec_prefix}/libexec' 742datarootdir='${prefix}/share' 743datadir='${datarootdir}' 744sysconfdir='${prefix}/etc' 745sharedstatedir='${prefix}/com' 746localstatedir='${prefix}/var' 747includedir='${prefix}/include' 748oldincludedir='/usr/include' 749docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 750infodir='${datarootdir}/info' 751htmldir='${docdir}' 752dvidir='${docdir}' 753pdfdir='${docdir}' 754psdir='${docdir}' 755libdir='${exec_prefix}/lib' 756localedir='${datarootdir}/locale' 757mandir='${datarootdir}/man' 758 759ac_prev= 760ac_dashdash= 761for ac_option 762do 763 # If the previous option needs an argument, assign it. 764 if test -n "$ac_prev"; then 765 eval $ac_prev=\$ac_option 766 ac_prev= 767 continue 768 fi 769 770 case $ac_option in 771 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 772 *) ac_optarg=yes ;; 773 esac 774 775 # Accept the important Cygnus configure options, so we can diagnose typos. 776 777 case $ac_dashdash$ac_option in 778 --) 779 ac_dashdash=yes ;; 780 781 -bindir | --bindir | --bindi | --bind | --bin | --bi) 782 ac_prev=bindir ;; 783 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 784 bindir=$ac_optarg ;; 785 786 -build | --build | --buil | --bui | --bu) 787 ac_prev=build_alias ;; 788 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 789 build_alias=$ac_optarg ;; 790 791 -cache-file | --cache-file | --cache-fil | --cache-fi \ 792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 793 ac_prev=cache_file ;; 794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 796 cache_file=$ac_optarg ;; 797 798 --config-cache | -C) 799 cache_file=config.cache ;; 800 801 -datadir | --datadir | --datadi | --datad) 802 ac_prev=datadir ;; 803 -datadir=* | --datadir=* | --datadi=* | --datad=*) 804 datadir=$ac_optarg ;; 805 806 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 807 | --dataroo | --dataro | --datar) 808 ac_prev=datarootdir ;; 809 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 810 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 811 datarootdir=$ac_optarg ;; 812 813 -disable-* | --disable-*) 814 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 815 # Reject names that are not valid shell variable names. 816 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 817 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 818 { (exit 1); exit 1; }; } 819 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 820 eval enable_$ac_feature=no ;; 821 822 -docdir | --docdir | --docdi | --doc | --do) 823 ac_prev=docdir ;; 824 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 825 docdir=$ac_optarg ;; 826 827 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 828 ac_prev=dvidir ;; 829 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 830 dvidir=$ac_optarg ;; 831 832 -enable-* | --enable-*) 833 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 834 # Reject names that are not valid shell variable names. 835 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 836 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 837 { (exit 1); exit 1; }; } 838 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 839 eval enable_$ac_feature=\$ac_optarg ;; 840 841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 843 | --exec | --exe | --ex) 844 ac_prev=exec_prefix ;; 845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 847 | --exec=* | --exe=* | --ex=*) 848 exec_prefix=$ac_optarg ;; 849 850 -gas | --gas | --ga | --g) 851 # Obsolete; use --with-gas. 852 with_gas=yes ;; 853 854 -help | --help | --hel | --he | -h) 855 ac_init_help=long ;; 856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 857 ac_init_help=recursive ;; 858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 859 ac_init_help=short ;; 860 861 -host | --host | --hos | --ho) 862 ac_prev=host_alias ;; 863 -host=* | --host=* | --hos=* | --ho=*) 864 host_alias=$ac_optarg ;; 865 866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 867 ac_prev=htmldir ;; 868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 869 | --ht=*) 870 htmldir=$ac_optarg ;; 871 872 -includedir | --includedir | --includedi | --included | --include \ 873 | --includ | --inclu | --incl | --inc) 874 ac_prev=includedir ;; 875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 876 | --includ=* | --inclu=* | --incl=* | --inc=*) 877 includedir=$ac_optarg ;; 878 879 -infodir | --infodir | --infodi | --infod | --info | --inf) 880 ac_prev=infodir ;; 881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 882 infodir=$ac_optarg ;; 883 884 -libdir | --libdir | --libdi | --libd) 885 ac_prev=libdir ;; 886 -libdir=* | --libdir=* | --libdi=* | --libd=*) 887 libdir=$ac_optarg ;; 888 889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 890 | --libexe | --libex | --libe) 891 ac_prev=libexecdir ;; 892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 893 | --libexe=* | --libex=* | --libe=*) 894 libexecdir=$ac_optarg ;; 895 896 -localedir | --localedir | --localedi | --localed | --locale) 897 ac_prev=localedir ;; 898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 899 localedir=$ac_optarg ;; 900 901 -localstatedir | --localstatedir | --localstatedi | --localstated \ 902 | --localstate | --localstat | --localsta | --localst | --locals) 903 ac_prev=localstatedir ;; 904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 906 localstatedir=$ac_optarg ;; 907 908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 909 ac_prev=mandir ;; 910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 911 mandir=$ac_optarg ;; 912 913 -nfp | --nfp | --nf) 914 # Obsolete; use --without-fp. 915 with_fp=no ;; 916 917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 918 | --no-cr | --no-c | -n) 919 no_create=yes ;; 920 921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 923 no_recursion=yes ;; 924 925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 927 | --oldin | --oldi | --old | --ol | --o) 928 ac_prev=oldincludedir ;; 929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 932 oldincludedir=$ac_optarg ;; 933 934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 935 ac_prev=prefix ;; 936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 937 prefix=$ac_optarg ;; 938 939 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 940 | --program-pre | --program-pr | --program-p) 941 ac_prev=program_prefix ;; 942 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 944 program_prefix=$ac_optarg ;; 945 946 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 947 | --program-suf | --program-su | --program-s) 948 ac_prev=program_suffix ;; 949 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 951 program_suffix=$ac_optarg ;; 952 953 -program-transform-name | --program-transform-name \ 954 | --program-transform-nam | --program-transform-na \ 955 | --program-transform-n | --program-transform- \ 956 | --program-transform | --program-transfor \ 957 | --program-transfo | --program-transf \ 958 | --program-trans | --program-tran \ 959 | --progr-tra | --program-tr | --program-t) 960 ac_prev=program_transform_name ;; 961 -program-transform-name=* | --program-transform-name=* \ 962 | --program-transform-nam=* | --program-transform-na=* \ 963 | --program-transform-n=* | --program-transform-=* \ 964 | --program-transform=* | --program-transfor=* \ 965 | --program-transfo=* | --program-transf=* \ 966 | --program-trans=* | --program-tran=* \ 967 | --progr-tra=* | --program-tr=* | --program-t=*) 968 program_transform_name=$ac_optarg ;; 969 970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 971 ac_prev=pdfdir ;; 972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 973 pdfdir=$ac_optarg ;; 974 975 -psdir | --psdir | --psdi | --psd | --ps) 976 ac_prev=psdir ;; 977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 978 psdir=$ac_optarg ;; 979 980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 981 | -silent | --silent | --silen | --sile | --sil) 982 silent=yes ;; 983 984 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 985 ac_prev=sbindir ;; 986 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 987 | --sbi=* | --sb=*) 988 sbindir=$ac_optarg ;; 989 990 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 991 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 992 | --sharedst | --shareds | --shared | --share | --shar \ 993 | --sha | --sh) 994 ac_prev=sharedstatedir ;; 995 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 996 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 997 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 998 | --sha=* | --sh=*) 999 sharedstatedir=$ac_optarg ;; 1000 1001 -site | --site | --sit) 1002 ac_prev=site ;; 1003 -site=* | --site=* | --sit=*) 1004 site=$ac_optarg ;; 1005 1006 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1007 ac_prev=srcdir ;; 1008 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1009 srcdir=$ac_optarg ;; 1010 1011 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1012 | --syscon | --sysco | --sysc | --sys | --sy) 1013 ac_prev=sysconfdir ;; 1014 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1015 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1016 sysconfdir=$ac_optarg ;; 1017 1018 -target | --target | --targe | --targ | --tar | --ta | --t) 1019 ac_prev=target_alias ;; 1020 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1021 target_alias=$ac_optarg ;; 1022 1023 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1024 verbose=yes ;; 1025 1026 -version | --version | --versio | --versi | --vers | -V) 1027 ac_init_version=: ;; 1028 1029 -with-* | --with-*) 1030 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1031 # Reject names that are not valid shell variable names. 1032 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1033 { echo "$as_me: error: invalid package name: $ac_package" >&2 1034 { (exit 1); exit 1; }; } 1035 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1036 eval with_$ac_package=\$ac_optarg ;; 1037 1038 -without-* | --without-*) 1039 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1040 # Reject names that are not valid shell variable names. 1041 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1042 { echo "$as_me: error: invalid package name: $ac_package" >&2 1043 { (exit 1); exit 1; }; } 1044 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1045 eval with_$ac_package=no ;; 1046 1047 --x) 1048 # Obsolete; use --with-x. 1049 with_x=yes ;; 1050 1051 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1052 | --x-incl | --x-inc | --x-in | --x-i) 1053 ac_prev=x_includes ;; 1054 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1055 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1056 x_includes=$ac_optarg ;; 1057 1058 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1059 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1060 ac_prev=x_libraries ;; 1061 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1062 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1063 x_libraries=$ac_optarg ;; 1064 1065 -*) { echo "$as_me: error: unrecognized option: $ac_option 1066Try \`$0 --help' for more information." >&2 1067 { (exit 1); exit 1; }; } 1068 ;; 1069 1070 *=*) 1071 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1072 # Reject names that are not valid shell variable names. 1073 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1074 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1075 { (exit 1); exit 1; }; } 1076 eval $ac_envvar=\$ac_optarg 1077 export $ac_envvar ;; 1078 1079 *) 1080 # FIXME: should be removed in autoconf 3.0. 1081 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1082 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1083 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1084 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1085 ;; 1086 1087 esac 1088done 1089 1090if test -n "$ac_prev"; then 1091 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1092 { echo "$as_me: error: missing argument to $ac_option" >&2 1093 { (exit 1); exit 1; }; } 1094fi 1095 1096# Be sure to have absolute directory names. 1097for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1098 datadir sysconfdir sharedstatedir localstatedir includedir \ 1099 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1100 libdir localedir mandir 1101do 1102 eval ac_val=\$$ac_var 1103 case $ac_val in 1104 [\\/$]* | ?:[\\/]* ) continue;; 1105 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1106 esac 1107 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1108 { (exit 1); exit 1; }; } 1109done 1110 1111# There might be people who depend on the old broken behavior: `$host' 1112# used to hold the argument of --host etc. 1113# FIXME: To remove some day. 1114build=$build_alias 1115host=$host_alias 1116target=$target_alias 1117 1118# FIXME: To remove some day. 1119if test "x$host_alias" != x; then 1120 if test "x$build_alias" = x; then 1121 cross_compiling=maybe 1122 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1123 If a cross compiler is detected then cross compile mode will be used." >&2 1124 elif test "x$build_alias" != "x$host_alias"; then 1125 cross_compiling=yes 1126 fi 1127fi 1128 1129ac_tool_prefix= 1130test -n "$host_alias" && ac_tool_prefix=$host_alias- 1131 1132test "$silent" = yes && exec 6>/dev/null 1133 1134 1135ac_pwd=`pwd` && test -n "$ac_pwd" && 1136ac_ls_di=`ls -di .` && 1137ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1138 { echo "$as_me: error: Working directory cannot be determined" >&2 1139 { (exit 1); exit 1; }; } 1140test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1141 { echo "$as_me: error: pwd does not report name of working directory" >&2 1142 { (exit 1); exit 1; }; } 1143 1144 1145# Find the source files, if location was not specified. 1146if test -z "$srcdir"; then 1147 ac_srcdir_defaulted=yes 1148 # Try the directory containing this script, then the parent directory. 1149 ac_confdir=`$as_dirname -- "$0" || 1150$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1151 X"$0" : 'X\(//\)[^/]' \| \ 1152 X"$0" : 'X\(//\)$' \| \ 1153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1154echo X"$0" | 1155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1156 s//\1/ 1157 q 1158 } 1159 /^X\(\/\/\)[^/].*/{ 1160 s//\1/ 1161 q 1162 } 1163 /^X\(\/\/\)$/{ 1164 s//\1/ 1165 q 1166 } 1167 /^X\(\/\).*/{ 1168 s//\1/ 1169 q 1170 } 1171 s/.*/./; q'` 1172 srcdir=$ac_confdir 1173 if test ! -r "$srcdir/$ac_unique_file"; then 1174 srcdir=.. 1175 fi 1176else 1177 ac_srcdir_defaulted=no 1178fi 1179if test ! -r "$srcdir/$ac_unique_file"; then 1180 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1181 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1182 { (exit 1); exit 1; }; } 1183fi 1184ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1185ac_abs_confdir=`( 1186 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1187 { (exit 1); exit 1; }; } 1188 pwd)` 1189# When building in place, set srcdir=. 1190if test "$ac_abs_confdir" = "$ac_pwd"; then 1191 srcdir=. 1192fi 1193# Remove unnecessary trailing slashes from srcdir. 1194# Double slashes in file names in object file debugging info 1195# mess up M-x gdb in Emacs. 1196case $srcdir in 1197*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1198esac 1199for ac_var in $ac_precious_vars; do 1200 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1201 eval ac_env_${ac_var}_value=\$${ac_var} 1202 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1203 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1204done 1205 1206# 1207# Report the --help message. 1208# 1209if test "$ac_init_help" = "long"; then 1210 # Omit some internal or obsolete options to make the list less imposing. 1211 # This message is too long to be a string in the A/UX 3.1 sh. 1212 cat <<_ACEOF 1213\`configure' configures tgif 4.2.5 to adapt to many kinds of systems. 1214 1215Usage: $0 [OPTION]... [VAR=VALUE]... 1216 1217To assign environment variables (e.g., CC, CFLAGS...), specify them as 1218VAR=VALUE. See below for descriptions of some of the useful variables. 1219 1220Defaults for the options are specified in brackets. 1221 1222Configuration: 1223 -h, --help display this help and exit 1224 --help=short display options specific to this package 1225 --help=recursive display the short help of all the included packages 1226 -V, --version display version information and exit 1227 -q, --quiet, --silent do not print \`checking...' messages 1228 --cache-file=FILE cache test results in FILE [disabled] 1229 -C, --config-cache alias for \`--cache-file=config.cache' 1230 -n, --no-create do not create output files 1231 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1232 1233Installation directories: 1234 --prefix=PREFIX install architecture-independent files in PREFIX 1235 [$ac_default_prefix] 1236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1237 [PREFIX] 1238 1239By default, \`make install' will install all the files in 1240\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1241an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1242for instance \`--prefix=\$HOME'. 1243 1244For better control, use the options below. 1245 1246Fine tuning of the installation directories: 1247 --bindir=DIR user executables [EPREFIX/bin] 1248 --sbindir=DIR system admin executables [EPREFIX/sbin] 1249 --libexecdir=DIR program executables [EPREFIX/libexec] 1250 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1251 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1252 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1253 --libdir=DIR object code libraries [EPREFIX/lib] 1254 --includedir=DIR C header files [PREFIX/include] 1255 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1256 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1257 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1258 --infodir=DIR info documentation [DATAROOTDIR/info] 1259 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1260 --mandir=DIR man documentation [DATAROOTDIR/man] 1261 --docdir=DIR documentation root [DATAROOTDIR/doc/tgif] 1262 --htmldir=DIR html documentation [DOCDIR] 1263 --dvidir=DIR dvi documentation [DOCDIR] 1264 --pdfdir=DIR pdf documentation [DOCDIR] 1265 --psdir=DIR ps documentation [DOCDIR] 1266_ACEOF 1267 1268 cat <<\_ACEOF 1269 1270Program names: 1271 --program-prefix=PREFIX prepend PREFIX to installed program names 1272 --program-suffix=SUFFIX append SUFFIX to installed program names 1273 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1274 1275X features: 1276 --x-includes=DIR X include files are in DIR 1277 --x-libraries=DIR X library files are in DIR 1278_ACEOF 1279fi 1280 1281if test -n "$ac_init_help"; then 1282 case $ac_init_help in 1283 short | recursive ) echo "Configuration of tgif 4.2.5:";; 1284 esac 1285 cat <<\_ACEOF 1286 1287Optional Features: 1288 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1289 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1290 --disable-dependency-tracking speeds up one-time build 1291 --enable-dependency-tracking do not reject slow dependency extractors 1292 1293Optional Packages: 1294 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1295 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1296 --with-x use the X Window System 1297 1298Some influential environment variables: 1299 CC C compiler command 1300 CFLAGS C compiler flags 1301 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1302 nonstandard directory <lib dir> 1303 LIBS libraries to pass to the linker, e.g. -l<library> 1304 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1305 you have headers in a nonstandard directory <include dir> 1306 XMKMF Path to xmkmf, Makefile generator for X Window System 1307 CPP C preprocessor 1308 1309Use these variables to override the choices made by `configure' or to help 1310it to find libraries and programs with nonstandard names/locations. 1311 1312Report bugs to <bill.cheng@acm.org>. 1313_ACEOF 1314ac_status=$? 1315fi 1316 1317if test "$ac_init_help" = "recursive"; then 1318 # If there are subdirs, report their specific --help. 1319 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1320 test -d "$ac_dir" || continue 1321 ac_builddir=. 1322 1323case "$ac_dir" in 1324.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1325*) 1326 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1327 # A ".." for each directory in $ac_dir_suffix. 1328 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1329 case $ac_top_builddir_sub in 1330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1332 esac ;; 1333esac 1334ac_abs_top_builddir=$ac_pwd 1335ac_abs_builddir=$ac_pwd$ac_dir_suffix 1336# for backward compatibility: 1337ac_top_builddir=$ac_top_build_prefix 1338 1339case $srcdir in 1340 .) # We are building in place. 1341 ac_srcdir=. 1342 ac_top_srcdir=$ac_top_builddir_sub 1343 ac_abs_top_srcdir=$ac_pwd ;; 1344 [\\/]* | ?:[\\/]* ) # Absolute name. 1345 ac_srcdir=$srcdir$ac_dir_suffix; 1346 ac_top_srcdir=$srcdir 1347 ac_abs_top_srcdir=$srcdir ;; 1348 *) # Relative name. 1349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1350 ac_top_srcdir=$ac_top_build_prefix$srcdir 1351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1352esac 1353ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1354 1355 cd "$ac_dir" || { ac_status=$?; continue; } 1356 # Check for guested configure. 1357 if test -f "$ac_srcdir/configure.gnu"; then 1358 echo && 1359 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1360 elif test -f "$ac_srcdir/configure"; then 1361 echo && 1362 $SHELL "$ac_srcdir/configure" --help=recursive 1363 else 1364 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1365 fi || ac_status=$? 1366 cd "$ac_pwd" || { ac_status=$?; break; } 1367 done 1368fi 1369 1370test -n "$ac_init_help" && exit $ac_status 1371if $ac_init_version; then 1372 cat <<\_ACEOF 1373tgif configure 4.2.5 1374generated by GNU Autoconf 2.61 1375 1376Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13772002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1378This configure script is free software; the Free Software Foundation 1379gives unlimited permission to copy, distribute and modify it. 1380_ACEOF 1381 exit 1382fi 1383cat >config.log <<_ACEOF 1384This file contains any messages produced by compilers while 1385running configure, to aid debugging if configure makes a mistake. 1386 1387It was created by tgif $as_me 4.2.5, which was 1388generated by GNU Autoconf 2.61. Invocation command line was 1389 1390 $ $0 $@ 1391 1392_ACEOF 1393exec 5>>config.log 1394{ 1395cat <<_ASUNAME 1396## --------- ## 1397## Platform. ## 1398## --------- ## 1399 1400hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1401uname -m = `(uname -m) 2>/dev/null || echo unknown` 1402uname -r = `(uname -r) 2>/dev/null || echo unknown` 1403uname -s = `(uname -s) 2>/dev/null || echo unknown` 1404uname -v = `(uname -v) 2>/dev/null || echo unknown` 1405 1406/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1407/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1408 1409/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1410/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1411/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1412/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1413/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1414/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1415/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1416 1417_ASUNAME 1418 1419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1420for as_dir in $PATH 1421do 1422 IFS=$as_save_IFS 1423 test -z "$as_dir" && as_dir=. 1424 echo "PATH: $as_dir" 1425done 1426IFS=$as_save_IFS 1427 1428} >&5 1429 1430cat >&5 <<_ACEOF 1431 1432 1433## ----------- ## 1434## Core tests. ## 1435## ----------- ## 1436 1437_ACEOF 1438 1439 1440# Keep a trace of the command line. 1441# Strip out --no-create and --no-recursion so they do not pile up. 1442# Strip out --silent because we don't want to record it for future runs. 1443# Also quote any args containing shell meta-characters. 1444# Make two passes to allow for proper duplicate-argument suppression. 1445ac_configure_args= 1446ac_configure_args0= 1447ac_configure_args1= 1448ac_must_keep_next=false 1449for ac_pass in 1 2 1450do 1451 for ac_arg 1452 do 1453 case $ac_arg in 1454 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1455 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1456 | -silent | --silent | --silen | --sile | --sil) 1457 continue ;; 1458 *\'*) 1459 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1460 esac 1461 case $ac_pass in 1462 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1463 2) 1464 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1465 if test $ac_must_keep_next = true; then 1466 ac_must_keep_next=false # Got value, back to normal. 1467 else 1468 case $ac_arg in 1469 *=* | --config-cache | -C | -disable-* | --disable-* \ 1470 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1471 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1472 | -with-* | --with-* | -without-* | --without-* | --x) 1473 case "$ac_configure_args0 " in 1474 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1475 esac 1476 ;; 1477 -* ) ac_must_keep_next=true ;; 1478 esac 1479 fi 1480 ac_configure_args="$ac_configure_args '$ac_arg'" 1481 ;; 1482 esac 1483 done 1484done 1485$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1486$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1487 1488# When interrupted or exit'd, cleanup temporary files, and complete 1489# config.log. We remove comments because anyway the quotes in there 1490# would cause problems or look ugly. 1491# WARNING: Use '\'' to represent an apostrophe within the trap. 1492# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1493trap 'exit_status=$? 1494 # Save into config.log some information that might help in debugging. 1495 { 1496 echo 1497 1498 cat <<\_ASBOX 1499## ---------------- ## 1500## Cache variables. ## 1501## ---------------- ## 1502_ASBOX 1503 echo 1504 # The following way of writing the cache mishandles newlines in values, 1505( 1506 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1507 eval ac_val=\$$ac_var 1508 case $ac_val in #( 1509 *${as_nl}*) 1510 case $ac_var in #( 1511 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1512echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1513 esac 1514 case $ac_var in #( 1515 _ | IFS | as_nl) ;; #( 1516 *) $as_unset $ac_var ;; 1517 esac ;; 1518 esac 1519 done 1520 (set) 2>&1 | 1521 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1522 *${as_nl}ac_space=\ *) 1523 sed -n \ 1524 "s/'\''/'\''\\\\'\'''\''/g; 1525 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1526 ;; #( 1527 *) 1528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1529 ;; 1530 esac | 1531 sort 1532) 1533 echo 1534 1535 cat <<\_ASBOX 1536## ----------------- ## 1537## Output variables. ## 1538## ----------------- ## 1539_ASBOX 1540 echo 1541 for ac_var in $ac_subst_vars 1542 do 1543 eval ac_val=\$$ac_var 1544 case $ac_val in 1545 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1546 esac 1547 echo "$ac_var='\''$ac_val'\''" 1548 done | sort 1549 echo 1550 1551 if test -n "$ac_subst_files"; then 1552 cat <<\_ASBOX 1553## ------------------- ## 1554## File substitutions. ## 1555## ------------------- ## 1556_ASBOX 1557 echo 1558 for ac_var in $ac_subst_files 1559 do 1560 eval ac_val=\$$ac_var 1561 case $ac_val in 1562 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1563 esac 1564 echo "$ac_var='\''$ac_val'\''" 1565 done | sort 1566 echo 1567 fi 1568 1569 if test -s confdefs.h; then 1570 cat <<\_ASBOX 1571## ----------- ## 1572## confdefs.h. ## 1573## ----------- ## 1574_ASBOX 1575 echo 1576 cat confdefs.h 1577 echo 1578 fi 1579 test "$ac_signal" != 0 && 1580 echo "$as_me: caught signal $ac_signal" 1581 echo "$as_me: exit $exit_status" 1582 } >&5 1583 rm -f core *.core core.conftest.* && 1584 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1585 exit $exit_status 1586' 0 1587for ac_signal in 1 2 13 15; do 1588 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1589done 1590ac_signal=0 1591 1592# confdefs.h avoids OS command line length limits that DEFS can exceed. 1593rm -f -r conftest* confdefs.h 1594 1595# Predefined preprocessor variables. 1596 1597cat >>confdefs.h <<_ACEOF 1598#define PACKAGE_NAME "$PACKAGE_NAME" 1599_ACEOF 1600 1601 1602cat >>confdefs.h <<_ACEOF 1603#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1604_ACEOF 1605 1606 1607cat >>confdefs.h <<_ACEOF 1608#define PACKAGE_VERSION "$PACKAGE_VERSION" 1609_ACEOF 1610 1611 1612cat >>confdefs.h <<_ACEOF 1613#define PACKAGE_STRING "$PACKAGE_STRING" 1614_ACEOF 1615 1616 1617cat >>confdefs.h <<_ACEOF 1618#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1619_ACEOF 1620 1621 1622# Let the site file select an alternate cache file if it wants to. 1623# Prefer explicitly selected file to automatically selected ones. 1624if test -n "$CONFIG_SITE"; then 1625 set x "$CONFIG_SITE" 1626elif test "x$prefix" != xNONE; then 1627 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1628else 1629 set x "$ac_default_prefix/share/config.site" \ 1630 "$ac_default_prefix/etc/config.site" 1631fi 1632shift 1633for ac_site_file 1634do 1635 if test -r "$ac_site_file"; then 1636 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1637echo "$as_me: loading site script $ac_site_file" >&6;} 1638 sed 's/^/| /' "$ac_site_file" >&5 1639 . "$ac_site_file" 1640 fi 1641done 1642 1643if test -r "$cache_file"; then 1644 # Some versions of bash will fail to source /dev/null (special 1645 # files actually), so we avoid doing that. 1646 if test -f "$cache_file"; then 1647 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1648echo "$as_me: loading cache $cache_file" >&6;} 1649 case $cache_file in 1650 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1651 *) . "./$cache_file";; 1652 esac 1653 fi 1654else 1655 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1656echo "$as_me: creating cache $cache_file" >&6;} 1657 >$cache_file 1658fi 1659 1660# Check that the precious variables saved in the cache have kept the same 1661# value. 1662ac_cache_corrupted=false 1663for ac_var in $ac_precious_vars; do 1664 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1665 eval ac_new_set=\$ac_env_${ac_var}_set 1666 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1667 eval ac_new_val=\$ac_env_${ac_var}_value 1668 case $ac_old_set,$ac_new_set in 1669 set,) 1670 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1671echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1672 ac_cache_corrupted=: ;; 1673 ,set) 1674 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1675echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1676 ac_cache_corrupted=: ;; 1677 ,);; 1678 *) 1679 if test "x$ac_old_val" != "x$ac_new_val"; then 1680 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1681echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1682 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1683echo "$as_me: former value: $ac_old_val" >&2;} 1684 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1685echo "$as_me: current value: $ac_new_val" >&2;} 1686 ac_cache_corrupted=: 1687 fi;; 1688 esac 1689 # Pass precious variables to config.status. 1690 if test "$ac_new_set" = set; then 1691 case $ac_new_val in 1692 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1693 *) ac_arg=$ac_var=$ac_new_val ;; 1694 esac 1695 case " $ac_configure_args " in 1696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1697 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1698 esac 1699 fi 1700done 1701if $ac_cache_corrupted; then 1702 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1703echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1704 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1705echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1706 { (exit 1); exit 1; }; } 1707fi 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733ac_ext=c 1734ac_cpp='$CPP $CPPFLAGS' 1735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1737ac_compiler_gnu=$ac_cv_c_compiler_gnu 1738 1739 1740 1741am__api_version='1.10' 1742 1743ac_aux_dir= 1744for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1745 if test -f "$ac_dir/install-sh"; then 1746 ac_aux_dir=$ac_dir 1747 ac_install_sh="$ac_aux_dir/install-sh -c" 1748 break 1749 elif test -f "$ac_dir/install.sh"; then 1750 ac_aux_dir=$ac_dir 1751 ac_install_sh="$ac_aux_dir/install.sh -c" 1752 break 1753 elif test -f "$ac_dir/shtool"; then 1754 ac_aux_dir=$ac_dir 1755 ac_install_sh="$ac_aux_dir/shtool install -c" 1756 break 1757 fi 1758done 1759if test -z "$ac_aux_dir"; then 1760 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1761echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1762 { (exit 1); exit 1; }; } 1763fi 1764 1765# These three variables are undocumented and unsupported, 1766# and are intended to be withdrawn in a future Autoconf release. 1767# They can cause serious problems if a builder's source tree is in a directory 1768# whose full name contains unusual characters. 1769ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1770ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1771ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1772 1773 1774# Find a good install program. We prefer a C program (faster), 1775# so one script is as good as another. But avoid the broken or 1776# incompatible versions: 1777# SysV /etc/install, /usr/sbin/install 1778# SunOS /usr/etc/install 1779# IRIX /sbin/install 1780# AIX /bin/install 1781# AmigaOS /C/install, which installs bootblocks on floppy discs 1782# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1783# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1784# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1785# OS/2's system install, which has a completely different semantic 1786# ./install, which can be erroneously created by make from ./install.sh. 1787{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1788echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1789if test -z "$INSTALL"; then 1790if test "${ac_cv_path_install+set}" = set; then 1791 echo $ECHO_N "(cached) $ECHO_C" >&6 1792else 1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1794for as_dir in $PATH 1795do 1796 IFS=$as_save_IFS 1797 test -z "$as_dir" && as_dir=. 1798 # Account for people who put trailing slashes in PATH elements. 1799case $as_dir/ in 1800 ./ | .// | /cC/* | \ 1801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1802 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1803 /usr/ucb/* ) ;; 1804 *) 1805 # OSF1 and SCO ODT 3.0 have their own names for install. 1806 # Don't use installbsd from OSF since it installs stuff as root 1807 # by default. 1808 for ac_prog in ginstall scoinst install; do 1809 for ac_exec_ext in '' $ac_executable_extensions; do 1810 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1811 if test $ac_prog = install && 1812 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1813 # AIX install. It has an incompatible calling convention. 1814 : 1815 elif test $ac_prog = install && 1816 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1817 # program-specific install script used by HP pwplus--don't use. 1818 : 1819 else 1820 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1821 break 3 1822 fi 1823 fi 1824 done 1825 done 1826 ;; 1827esac 1828done 1829IFS=$as_save_IFS 1830 1831 1832fi 1833 if test "${ac_cv_path_install+set}" = set; then 1834 INSTALL=$ac_cv_path_install 1835 else 1836 # As a last resort, use the slow shell script. Don't cache a 1837 # value for INSTALL within a source directory, because that will 1838 # break other packages using the cache if that directory is 1839 # removed, or if the value is a relative name. 1840 INSTALL=$ac_install_sh 1841 fi 1842fi 1843{ echo "$as_me:$LINENO: result: $INSTALL" >&5 1844echo "${ECHO_T}$INSTALL" >&6; } 1845 1846# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1847# It thinks the first close brace ends the variable substitution. 1848test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1849 1850test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1851 1852test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1853 1854{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1855echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 1856# Just in case 1857sleep 1 1858echo timestamp > conftest.file 1859# Do `set' in a subshell so we don't clobber the current shell's 1860# arguments. Must try -L first in case configure is actually a 1861# symlink; some systems play weird games with the mod time of symlinks 1862# (eg FreeBSD returns the mod time of the symlink's containing 1863# directory). 1864if ( 1865 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1866 if test "$*" = "X"; then 1867 # -L didn't work. 1868 set X `ls -t $srcdir/configure conftest.file` 1869 fi 1870 rm -f conftest.file 1871 if test "$*" != "X $srcdir/configure conftest.file" \ 1872 && test "$*" != "X conftest.file $srcdir/configure"; then 1873 1874 # If neither matched, then we have a broken ls. This can happen 1875 # if, for instance, CONFIG_SHELL is bash and it inherits a 1876 # broken ls alias from the environment. This has actually 1877 # happened. Such a system could not be considered "sane". 1878 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1879alias in your environment" >&5 1880echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1881alias in your environment" >&2;} 1882 { (exit 1); exit 1; }; } 1883 fi 1884 1885 test "$2" = conftest.file 1886 ) 1887then 1888 # Ok. 1889 : 1890else 1891 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1892Check your system clock" >&5 1893echo "$as_me: error: newly created file is older than distributed files! 1894Check your system clock" >&2;} 1895 { (exit 1); exit 1; }; } 1896fi 1897{ echo "$as_me:$LINENO: result: yes" >&5 1898echo "${ECHO_T}yes" >&6; } 1899test "$program_prefix" != NONE && 1900 program_transform_name="s&^&$program_prefix&;$program_transform_name" 1901# Use a double $ so make ignores it. 1902test "$program_suffix" != NONE && 1903 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 1904# Double any \ or $. echo might interpret backslashes. 1905# By default was `s,x,x', remove it if useless. 1906cat <<\_ACEOF >conftest.sed 1907s/[\\$]/&&/g;s/;s,x,x,$// 1908_ACEOF 1909program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1910rm -f conftest.sed 1911 1912# expand $ac_aux_dir to an absolute path 1913am_aux_dir=`cd $ac_aux_dir && pwd` 1914 1915test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1916# Use eval to expand $SHELL 1917if eval "$MISSING --run true"; then 1918 am_missing_run="$MISSING --run " 1919else 1920 am_missing_run= 1921 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1922echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1923fi 1924 1925{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 1926echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 1927if test -z "$MKDIR_P"; then 1928 if test "${ac_cv_path_mkdir+set}" = set; then 1929 echo $ECHO_N "(cached) $ECHO_C" >&6 1930else 1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1932for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 1933do 1934 IFS=$as_save_IFS 1935 test -z "$as_dir" && as_dir=. 1936 for ac_prog in mkdir gmkdir; do 1937 for ac_exec_ext in '' $ac_executable_extensions; do 1938 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 1939 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 1940 'mkdir (GNU coreutils) '* | \ 1941 'mkdir (coreutils) '* | \ 1942 'mkdir (fileutils) '4.1*) 1943 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 1944 break 3;; 1945 esac 1946 done 1947 done 1948done 1949IFS=$as_save_IFS 1950 1951fi 1952 1953 if test "${ac_cv_path_mkdir+set}" = set; then 1954 MKDIR_P="$ac_cv_path_mkdir -p" 1955 else 1956 # As a last resort, use the slow shell script. Don't cache a 1957 # value for MKDIR_P within a source directory, because that will 1958 # break other packages using the cache if that directory is 1959 # removed, or if the value is a relative name. 1960 test -d ./--version && rmdir ./--version 1961 MKDIR_P="$ac_install_sh -d" 1962 fi 1963fi 1964{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 1965echo "${ECHO_T}$MKDIR_P" >&6; } 1966 1967mkdir_p="$MKDIR_P" 1968case $mkdir_p in 1969 [\\/$]* | ?:[\\/]*) ;; 1970 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 1971esac 1972 1973for ac_prog in gawk mawk nawk awk 1974do 1975 # Extract the first word of "$ac_prog", so it can be a program name with args. 1976set dummy $ac_prog; ac_word=$2 1977{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1979if test "${ac_cv_prog_AWK+set}" = set; then 1980 echo $ECHO_N "(cached) $ECHO_C" >&6 1981else 1982 if test -n "$AWK"; then 1983 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1984else 1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1986for as_dir in $PATH 1987do 1988 IFS=$as_save_IFS 1989 test -z "$as_dir" && as_dir=. 1990 for ac_exec_ext in '' $ac_executable_extensions; do 1991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1992 ac_cv_prog_AWK="$ac_prog" 1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1994 break 2 1995 fi 1996done 1997done 1998IFS=$as_save_IFS 1999 2000fi 2001fi 2002AWK=$ac_cv_prog_AWK 2003if test -n "$AWK"; then 2004 { echo "$as_me:$LINENO: result: $AWK" >&5 2005echo "${ECHO_T}$AWK" >&6; } 2006else 2007 { echo "$as_me:$LINENO: result: no" >&5 2008echo "${ECHO_T}no" >&6; } 2009fi 2010 2011 2012 test -n "$AWK" && break 2013done 2014 2015{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2016echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2017set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2018if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2019 echo $ECHO_N "(cached) $ECHO_C" >&6 2020else 2021 cat >conftest.make <<\_ACEOF 2022SHELL = /bin/sh 2023all: 2024 @echo '@@@%%%=$(MAKE)=@@@%%%' 2025_ACEOF 2026# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2027case `${MAKE-make} -f conftest.make 2>/dev/null` in 2028 *@@@%%%=?*=@@@%%%*) 2029 eval ac_cv_prog_make_${ac_make}_set=yes;; 2030 *) 2031 eval ac_cv_prog_make_${ac_make}_set=no;; 2032esac 2033rm -f conftest.make 2034fi 2035if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2036 { echo "$as_me:$LINENO: result: yes" >&5 2037echo "${ECHO_T}yes" >&6; } 2038 SET_MAKE= 2039else 2040 { echo "$as_me:$LINENO: result: no" >&5 2041echo "${ECHO_T}no" >&6; } 2042 SET_MAKE="MAKE=${MAKE-make}" 2043fi 2044 2045rm -rf .tst 2>/dev/null 2046mkdir .tst 2>/dev/null 2047if test -d .tst; then 2048 am__leading_dot=. 2049else 2050 am__leading_dot=_ 2051fi 2052rmdir .tst 2>/dev/null 2053 2054if test "`cd $srcdir && pwd`" != "`pwd`"; then 2055 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2056 # is not polluted with repeated "-I." 2057 am__isrc=' -I$(srcdir)' 2058 # test to see if srcdir already configured 2059 if test -f $srcdir/config.status; then 2060 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2061echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2062 { (exit 1); exit 1; }; } 2063 fi 2064fi 2065 2066# test whether we have cygpath 2067if test -z "$CYGPATH_W"; then 2068 if (cygpath --version) >/dev/null 2>/dev/null; then 2069 CYGPATH_W='cygpath -w' 2070 else 2071 CYGPATH_W=echo 2072 fi 2073fi 2074 2075 2076# Define the identity of the package. 2077 PACKAGE='tgif' 2078 VERSION='4.2.5' 2079 2080 2081cat >>confdefs.h <<_ACEOF 2082#define PACKAGE "$PACKAGE" 2083_ACEOF 2084 2085 2086cat >>confdefs.h <<_ACEOF 2087#define VERSION "$VERSION" 2088_ACEOF 2089 2090# Some tools Automake needs. 2091 2092ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2093 2094 2095AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2096 2097 2098AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2099 2100 2101AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2102 2103 2104MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2105 2106install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2107 2108# Installed binaries are usually stripped using `strip' when the user 2109# run `make install-strip'. However `strip' might not be the right 2110# tool to use in cross-compilation environments, therefore Automake 2111# will honor the `STRIP' environment variable to overrule this program. 2112if test "$cross_compiling" != no; then 2113 if test -n "$ac_tool_prefix"; then 2114 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2115set dummy ${ac_tool_prefix}strip; ac_word=$2 2116{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2118if test "${ac_cv_prog_STRIP+set}" = set; then 2119 echo $ECHO_N "(cached) $ECHO_C" >&6 2120else 2121 if test -n "$STRIP"; then 2122 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2123else 2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2125for as_dir in $PATH 2126do 2127 IFS=$as_save_IFS 2128 test -z "$as_dir" && as_dir=. 2129 for ac_exec_ext in '' $ac_executable_extensions; do 2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2131 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2133 break 2 2134 fi 2135done 2136done 2137IFS=$as_save_IFS 2138 2139fi 2140fi 2141STRIP=$ac_cv_prog_STRIP 2142if test -n "$STRIP"; then 2143 { echo "$as_me:$LINENO: result: $STRIP" >&5 2144echo "${ECHO_T}$STRIP" >&6; } 2145else 2146 { echo "$as_me:$LINENO: result: no" >&5 2147echo "${ECHO_T}no" >&6; } 2148fi 2149 2150 2151fi 2152if test -z "$ac_cv_prog_STRIP"; then 2153 ac_ct_STRIP=$STRIP 2154 # Extract the first word of "strip", so it can be a program name with args. 2155set dummy strip; ac_word=$2 2156{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2158if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2159 echo $ECHO_N "(cached) $ECHO_C" >&6 2160else 2161 if test -n "$ac_ct_STRIP"; then 2162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2163else 2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2165for as_dir in $PATH 2166do 2167 IFS=$as_save_IFS 2168 test -z "$as_dir" && as_dir=. 2169 for ac_exec_ext in '' $ac_executable_extensions; do 2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2171 ac_cv_prog_ac_ct_STRIP="strip" 2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2173 break 2 2174 fi 2175done 2176done 2177IFS=$as_save_IFS 2178 2179fi 2180fi 2181ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2182if test -n "$ac_ct_STRIP"; then 2183 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2184echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2185else 2186 { echo "$as_me:$LINENO: result: no" >&5 2187echo "${ECHO_T}no" >&6; } 2188fi 2189 2190 if test "x$ac_ct_STRIP" = x; then 2191 STRIP=":" 2192 else 2193 case $cross_compiling:$ac_tool_warned in 2194yes:) 2195{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2196whose name does not start with the host triplet. If you think this 2197configuration is useful to you, please write to autoconf@gnu.org." >&5 2198echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2199whose name does not start with the host triplet. If you think this 2200configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2201ac_tool_warned=yes ;; 2202esac 2203 STRIP=$ac_ct_STRIP 2204 fi 2205else 2206 STRIP="$ac_cv_prog_STRIP" 2207fi 2208 2209fi 2210INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2211 2212# We need awk for the "check" target. The system "awk" is bad on 2213# some platforms. 2214# Always define AMTAR for backward compatibility. 2215 2216AMTAR=${AMTAR-"${am_missing_run}tar"} 2217 2218am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2219 2220 2221 2222 2223 2224ac_config_headers="$ac_config_headers config.h" 2225 2226 2227# Checks for programs. 2228ac_ext=c 2229ac_cpp='$CPP $CPPFLAGS' 2230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2232ac_compiler_gnu=$ac_cv_c_compiler_gnu 2233if test -n "$ac_tool_prefix"; then 2234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2235set dummy ${ac_tool_prefix}gcc; ac_word=$2 2236{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2238if test "${ac_cv_prog_CC+set}" = set; then 2239 echo $ECHO_N "(cached) $ECHO_C" >&6 2240else 2241 if test -n "$CC"; then 2242 ac_cv_prog_CC="$CC" # Let the user override the test. 2243else 2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2245for as_dir in $PATH 2246do 2247 IFS=$as_save_IFS 2248 test -z "$as_dir" && as_dir=. 2249 for ac_exec_ext in '' $ac_executable_extensions; do 2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2251 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2253 break 2 2254 fi 2255done 2256done 2257IFS=$as_save_IFS 2258 2259fi 2260fi 2261CC=$ac_cv_prog_CC 2262if test -n "$CC"; then 2263 { echo "$as_me:$LINENO: result: $CC" >&5 2264echo "${ECHO_T}$CC" >&6; } 2265else 2266 { echo "$as_me:$LINENO: result: no" >&5 2267echo "${ECHO_T}no" >&6; } 2268fi 2269 2270 2271fi 2272if test -z "$ac_cv_prog_CC"; then 2273 ac_ct_CC=$CC 2274 # Extract the first word of "gcc", so it can be a program name with args. 2275set dummy gcc; ac_word=$2 2276{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2278if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2279 echo $ECHO_N "(cached) $ECHO_C" >&6 2280else 2281 if test -n "$ac_ct_CC"; then 2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2283else 2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2285for as_dir in $PATH 2286do 2287 IFS=$as_save_IFS 2288 test -z "$as_dir" && as_dir=. 2289 for ac_exec_ext in '' $ac_executable_extensions; do 2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2291 ac_cv_prog_ac_ct_CC="gcc" 2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2293 break 2 2294 fi 2295done 2296done 2297IFS=$as_save_IFS 2298 2299fi 2300fi 2301ac_ct_CC=$ac_cv_prog_ac_ct_CC 2302if test -n "$ac_ct_CC"; then 2303 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2304echo "${ECHO_T}$ac_ct_CC" >&6; } 2305else 2306 { echo "$as_me:$LINENO: result: no" >&5 2307echo "${ECHO_T}no" >&6; } 2308fi 2309 2310 if test "x$ac_ct_CC" = x; then 2311 CC="" 2312 else 2313 case $cross_compiling:$ac_tool_warned in 2314yes:) 2315{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2316whose name does not start with the host triplet. If you think this 2317configuration is useful to you, please write to autoconf@gnu.org." >&5 2318echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2319whose name does not start with the host triplet. If you think this 2320configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2321ac_tool_warned=yes ;; 2322esac 2323 CC=$ac_ct_CC 2324 fi 2325else 2326 CC="$ac_cv_prog_CC" 2327fi 2328 2329if test -z "$CC"; then 2330 if test -n "$ac_tool_prefix"; then 2331 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2332set dummy ${ac_tool_prefix}cc; ac_word=$2 2333{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2335if test "${ac_cv_prog_CC+set}" = set; then 2336 echo $ECHO_N "(cached) $ECHO_C" >&6 2337else 2338 if test -n "$CC"; then 2339 ac_cv_prog_CC="$CC" # Let the user override the test. 2340else 2341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2342for as_dir in $PATH 2343do 2344 IFS=$as_save_IFS 2345 test -z "$as_dir" && as_dir=. 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2348 ac_cv_prog_CC="${ac_tool_prefix}cc" 2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2350 break 2 2351 fi 2352done 2353done 2354IFS=$as_save_IFS 2355 2356fi 2357fi 2358CC=$ac_cv_prog_CC 2359if test -n "$CC"; then 2360 { echo "$as_me:$LINENO: result: $CC" >&5 2361echo "${ECHO_T}$CC" >&6; } 2362else 2363 { echo "$as_me:$LINENO: result: no" >&5 2364echo "${ECHO_T}no" >&6; } 2365fi 2366 2367 2368 fi 2369fi 2370if test -z "$CC"; then 2371 # Extract the first word of "cc", so it can be a program name with args. 2372set dummy cc; 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 2381 ac_prog_rejected=no 2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383for as_dir in $PATH 2384do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 for ac_exec_ext in '' $ac_executable_extensions; do 2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2390 ac_prog_rejected=yes 2391 continue 2392 fi 2393 ac_cv_prog_CC="cc" 2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2395 break 2 2396 fi 2397done 2398done 2399IFS=$as_save_IFS 2400 2401if test $ac_prog_rejected = yes; then 2402 # We found a bogon in the path, so make sure we never use it. 2403 set dummy $ac_cv_prog_CC 2404 shift 2405 if test $# != 0; then 2406 # We chose a different compiler from the bogus one. 2407 # However, it has the same basename, so the bogon will be chosen 2408 # first if we set CC to just the basename; use the full file name. 2409 shift 2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2411 fi 2412fi 2413fi 2414fi 2415CC=$ac_cv_prog_CC 2416if test -n "$CC"; then 2417 { echo "$as_me:$LINENO: result: $CC" >&5 2418echo "${ECHO_T}$CC" >&6; } 2419else 2420 { echo "$as_me:$LINENO: result: no" >&5 2421echo "${ECHO_T}no" >&6; } 2422fi 2423 2424 2425fi 2426if test -z "$CC"; then 2427 if test -n "$ac_tool_prefix"; then 2428 for ac_prog in cl.exe 2429 do 2430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2431set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2432{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2434if test "${ac_cv_prog_CC+set}" = set; then 2435 echo $ECHO_N "(cached) $ECHO_C" >&6 2436else 2437 if test -n "$CC"; then 2438 ac_cv_prog_CC="$CC" # Let the user override the test. 2439else 2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2441for as_dir in $PATH 2442do 2443 IFS=$as_save_IFS 2444 test -z "$as_dir" && as_dir=. 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2449 break 2 2450 fi 2451done 2452done 2453IFS=$as_save_IFS 2454 2455fi 2456fi 2457CC=$ac_cv_prog_CC 2458if test -n "$CC"; then 2459 { echo "$as_me:$LINENO: result: $CC" >&5 2460echo "${ECHO_T}$CC" >&6; } 2461else 2462 { echo "$as_me:$LINENO: result: no" >&5 2463echo "${ECHO_T}no" >&6; } 2464fi 2465 2466 2467 test -n "$CC" && break 2468 done 2469fi 2470if test -z "$CC"; then 2471 ac_ct_CC=$CC 2472 for ac_prog in cl.exe 2473do 2474 # Extract the first word of "$ac_prog", so it can be a program name with args. 2475set dummy $ac_prog; ac_word=$2 2476{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2479 echo $ECHO_N "(cached) $ECHO_C" >&6 2480else 2481 if test -n "$ac_ct_CC"; then 2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2483else 2484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2485for as_dir in $PATH 2486do 2487 IFS=$as_save_IFS 2488 test -z "$as_dir" && as_dir=. 2489 for ac_exec_ext in '' $ac_executable_extensions; do 2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2491 ac_cv_prog_ac_ct_CC="$ac_prog" 2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2493 break 2 2494 fi 2495done 2496done 2497IFS=$as_save_IFS 2498 2499fi 2500fi 2501ac_ct_CC=$ac_cv_prog_ac_ct_CC 2502if test -n "$ac_ct_CC"; then 2503 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2504echo "${ECHO_T}$ac_ct_CC" >&6; } 2505else 2506 { echo "$as_me:$LINENO: result: no" >&5 2507echo "${ECHO_T}no" >&6; } 2508fi 2509 2510 2511 test -n "$ac_ct_CC" && break 2512done 2513 2514 if test "x$ac_ct_CC" = x; then 2515 CC="" 2516 else 2517 case $cross_compiling:$ac_tool_warned in 2518yes:) 2519{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2520whose name does not start with the host triplet. If you think this 2521configuration is useful to you, please write to autoconf@gnu.org." >&5 2522echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2523whose name does not start with the host triplet. If you think this 2524configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2525ac_tool_warned=yes ;; 2526esac 2527 CC=$ac_ct_CC 2528 fi 2529fi 2530 2531fi 2532 2533 2534test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2535See \`config.log' for more details." >&5 2536echo "$as_me: error: no acceptable C compiler found in \$PATH 2537See \`config.log' for more details." >&2;} 2538 { (exit 1); exit 1; }; } 2539 2540# Provide some information about the compiler. 2541echo "$as_me:$LINENO: checking for C compiler version" >&5 2542ac_compiler=`set X $ac_compile; echo $2` 2543{ (ac_try="$ac_compiler --version >&5" 2544case "(($ac_try" in 2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2546 *) ac_try_echo=$ac_try;; 2547esac 2548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2549 (eval "$ac_compiler --version >&5") 2>&5 2550 ac_status=$? 2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2552 (exit $ac_status); } 2553{ (ac_try="$ac_compiler -v >&5" 2554case "(($ac_try" in 2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2556 *) ac_try_echo=$ac_try;; 2557esac 2558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2559 (eval "$ac_compiler -v >&5") 2>&5 2560 ac_status=$? 2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2562 (exit $ac_status); } 2563{ (ac_try="$ac_compiler -V >&5" 2564case "(($ac_try" in 2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2566 *) ac_try_echo=$ac_try;; 2567esac 2568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2569 (eval "$ac_compiler -V >&5") 2>&5 2570 ac_status=$? 2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2572 (exit $ac_status); } 2573 2574cat >conftest.$ac_ext <<_ACEOF 2575/* confdefs.h. */ 2576_ACEOF 2577cat confdefs.h >>conftest.$ac_ext 2578cat >>conftest.$ac_ext <<_ACEOF 2579/* end confdefs.h. */ 2580 2581int 2582main () 2583{ 2584 2585 ; 2586 return 0; 2587} 2588_ACEOF 2589ac_clean_files_save=$ac_clean_files 2590ac_clean_files="$ac_clean_files a.out a.exe b.out" 2591# Try to create an executable without -o first, disregard a.out. 2592# It will help us diagnose broken compilers, and finding out an intuition 2593# of exeext. 2594{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2595echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2596ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2597# 2598# List of possible output files, starting from the most likely. 2599# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2600# only as a last resort. b.out is created by i960 compilers. 2601ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2602# 2603# The IRIX 6 linker writes into existing files which may not be 2604# executable, retaining their permissions. Remove them first so a 2605# subsequent execution test works. 2606ac_rmfiles= 2607for ac_file in $ac_files 2608do 2609 case $ac_file in 2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2611 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2612 esac 2613done 2614rm -f $ac_rmfiles 2615 2616if { (ac_try="$ac_link_default" 2617case "(($ac_try" in 2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2619 *) ac_try_echo=$ac_try;; 2620esac 2621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2622 (eval "$ac_link_default") 2>&5 2623 ac_status=$? 2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2625 (exit $ac_status); }; then 2626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2627# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2628# in a Makefile. We should not override ac_cv_exeext if it was cached, 2629# so that the user can short-circuit this test for compilers unknown to 2630# Autoconf. 2631for ac_file in $ac_files '' 2632do 2633 test -f "$ac_file" || continue 2634 case $ac_file in 2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2636 ;; 2637 [ab].out ) 2638 # We found the default executable, but exeext='' is most 2639 # certainly right. 2640 break;; 2641 *.* ) 2642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2643 then :; else 2644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2645 fi 2646 # We set ac_cv_exeext here because the later test for it is not 2647 # safe: cross compilers may not add the suffix if given an `-o' 2648 # argument, so we may need to know it at that point already. 2649 # Even if this section looks crufty: it has the advantage of 2650 # actually working. 2651 break;; 2652 * ) 2653 break;; 2654 esac 2655done 2656test "$ac_cv_exeext" = no && ac_cv_exeext= 2657 2658else 2659 ac_file='' 2660fi 2661 2662{ echo "$as_me:$LINENO: result: $ac_file" >&5 2663echo "${ECHO_T}$ac_file" >&6; } 2664if test -z "$ac_file"; then 2665 echo "$as_me: failed program was:" >&5 2666sed 's/^/| /' conftest.$ac_ext >&5 2667 2668{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2669See \`config.log' for more details." >&5 2670echo "$as_me: error: C compiler cannot create executables 2671See \`config.log' for more details." >&2;} 2672 { (exit 77); exit 77; }; } 2673fi 2674 2675ac_exeext=$ac_cv_exeext 2676 2677# Check that the compiler produces executables we can run. If not, either 2678# the compiler is broken, or we cross compile. 2679{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2680echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2681# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2682# If not cross compiling, check that we can run a simple program. 2683if test "$cross_compiling" != yes; then 2684 if { ac_try='./$ac_file' 2685 { (case "(($ac_try" in 2686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2687 *) ac_try_echo=$ac_try;; 2688esac 2689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2690 (eval "$ac_try") 2>&5 2691 ac_status=$? 2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2693 (exit $ac_status); }; }; then 2694 cross_compiling=no 2695 else 2696 if test "$cross_compiling" = maybe; then 2697 cross_compiling=yes 2698 else 2699 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2700If you meant to cross compile, use \`--host'. 2701See \`config.log' for more details." >&5 2702echo "$as_me: error: cannot run C compiled programs. 2703If you meant to cross compile, use \`--host'. 2704See \`config.log' for more details." >&2;} 2705 { (exit 1); exit 1; }; } 2706 fi 2707 fi 2708fi 2709{ echo "$as_me:$LINENO: result: yes" >&5 2710echo "${ECHO_T}yes" >&6; } 2711 2712rm -f a.out a.exe conftest$ac_cv_exeext b.out 2713ac_clean_files=$ac_clean_files_save 2714# Check that the compiler produces executables we can run. If not, either 2715# the compiler is broken, or we cross compile. 2716{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2717echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2718{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2719echo "${ECHO_T}$cross_compiling" >&6; } 2720 2721{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2722echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2723if { (ac_try="$ac_link" 2724case "(($ac_try" in 2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2726 *) ac_try_echo=$ac_try;; 2727esac 2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2729 (eval "$ac_link") 2>&5 2730 ac_status=$? 2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2732 (exit $ac_status); }; then 2733 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2734# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2735# work properly (i.e., refer to `conftest.exe'), while it won't with 2736# `rm'. 2737for ac_file in conftest.exe conftest conftest.*; do 2738 test -f "$ac_file" || continue 2739 case $ac_file in 2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2742 break;; 2743 * ) break;; 2744 esac 2745done 2746else 2747 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2748See \`config.log' for more details." >&5 2749echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2750See \`config.log' for more details." >&2;} 2751 { (exit 1); exit 1; }; } 2752fi 2753 2754rm -f conftest$ac_cv_exeext 2755{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2756echo "${ECHO_T}$ac_cv_exeext" >&6; } 2757 2758rm -f conftest.$ac_ext 2759EXEEXT=$ac_cv_exeext 2760ac_exeext=$EXEEXT 2761{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2762echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2763if test "${ac_cv_objext+set}" = set; then 2764 echo $ECHO_N "(cached) $ECHO_C" >&6 2765else 2766 cat >conftest.$ac_ext <<_ACEOF 2767/* confdefs.h. */ 2768_ACEOF 2769cat confdefs.h >>conftest.$ac_ext 2770cat >>conftest.$ac_ext <<_ACEOF 2771/* end confdefs.h. */ 2772 2773int 2774main () 2775{ 2776 2777 ; 2778 return 0; 2779} 2780_ACEOF 2781rm -f conftest.o conftest.obj 2782if { (ac_try="$ac_compile" 2783case "(($ac_try" in 2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2785 *) ac_try_echo=$ac_try;; 2786esac 2787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2788 (eval "$ac_compile") 2>&5 2789 ac_status=$? 2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2791 (exit $ac_status); }; then 2792 for ac_file in conftest.o conftest.obj conftest.*; do 2793 test -f "$ac_file" || continue; 2794 case $ac_file in 2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2797 break;; 2798 esac 2799done 2800else 2801 echo "$as_me: failed program was:" >&5 2802sed 's/^/| /' conftest.$ac_ext >&5 2803 2804{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2805See \`config.log' for more details." >&5 2806echo "$as_me: error: cannot compute suffix of object files: cannot compile 2807See \`config.log' for more details." >&2;} 2808 { (exit 1); exit 1; }; } 2809fi 2810 2811rm -f conftest.$ac_cv_objext conftest.$ac_ext 2812fi 2813{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2814echo "${ECHO_T}$ac_cv_objext" >&6; } 2815OBJEXT=$ac_cv_objext 2816ac_objext=$OBJEXT 2817{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2818echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2819if test "${ac_cv_c_compiler_gnu+set}" = set; then 2820 echo $ECHO_N "(cached) $ECHO_C" >&6 2821else 2822 cat >conftest.$ac_ext <<_ACEOF 2823/* confdefs.h. */ 2824_ACEOF 2825cat confdefs.h >>conftest.$ac_ext 2826cat >>conftest.$ac_ext <<_ACEOF 2827/* end confdefs.h. */ 2828 2829int 2830main () 2831{ 2832#ifndef __GNUC__ 2833 choke me 2834#endif 2835 2836 ; 2837 return 0; 2838} 2839_ACEOF 2840rm -f conftest.$ac_objext 2841if { (ac_try="$ac_compile" 2842case "(($ac_try" in 2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2844 *) ac_try_echo=$ac_try;; 2845esac 2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2847 (eval "$ac_compile") 2>conftest.er1 2848 ac_status=$? 2849 grep -v '^ *+' conftest.er1 >conftest.err 2850 rm -f conftest.er1 2851 cat conftest.err >&5 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); } && { 2854 test -z "$ac_c_werror_flag" || 2855 test ! -s conftest.err 2856 } && test -s conftest.$ac_objext; then 2857 ac_compiler_gnu=yes 2858else 2859 echo "$as_me: failed program was:" >&5 2860sed 's/^/| /' conftest.$ac_ext >&5 2861 2862 ac_compiler_gnu=no 2863fi 2864 2865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2866ac_cv_c_compiler_gnu=$ac_compiler_gnu 2867 2868fi 2869{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2870echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2871GCC=`test $ac_compiler_gnu = yes && echo yes` 2872ac_test_CFLAGS=${CFLAGS+set} 2873ac_save_CFLAGS=$CFLAGS 2874{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2875echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2876if test "${ac_cv_prog_cc_g+set}" = set; then 2877 echo $ECHO_N "(cached) $ECHO_C" >&6 2878else 2879 ac_save_c_werror_flag=$ac_c_werror_flag 2880 ac_c_werror_flag=yes 2881 ac_cv_prog_cc_g=no 2882 CFLAGS="-g" 2883 cat >conftest.$ac_ext <<_ACEOF 2884/* confdefs.h. */ 2885_ACEOF 2886cat confdefs.h >>conftest.$ac_ext 2887cat >>conftest.$ac_ext <<_ACEOF 2888/* end confdefs.h. */ 2889 2890int 2891main () 2892{ 2893 2894 ; 2895 return 0; 2896} 2897_ACEOF 2898rm -f conftest.$ac_objext 2899if { (ac_try="$ac_compile" 2900case "(($ac_try" in 2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2902 *) ac_try_echo=$ac_try;; 2903esac 2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2905 (eval "$ac_compile") 2>conftest.er1 2906 ac_status=$? 2907 grep -v '^ *+' conftest.er1 >conftest.err 2908 rm -f conftest.er1 2909 cat conftest.err >&5 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); } && { 2912 test -z "$ac_c_werror_flag" || 2913 test ! -s conftest.err 2914 } && test -s conftest.$ac_objext; then 2915 ac_cv_prog_cc_g=yes 2916else 2917 echo "$as_me: failed program was:" >&5 2918sed 's/^/| /' conftest.$ac_ext >&5 2919 2920 CFLAGS="" 2921 cat >conftest.$ac_ext <<_ACEOF 2922/* confdefs.h. */ 2923_ACEOF 2924cat confdefs.h >>conftest.$ac_ext 2925cat >>conftest.$ac_ext <<_ACEOF 2926/* end confdefs.h. */ 2927 2928int 2929main () 2930{ 2931 2932 ; 2933 return 0; 2934} 2935_ACEOF 2936rm -f conftest.$ac_objext 2937if { (ac_try="$ac_compile" 2938case "(($ac_try" in 2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2940 *) ac_try_echo=$ac_try;; 2941esac 2942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2943 (eval "$ac_compile") 2>conftest.er1 2944 ac_status=$? 2945 grep -v '^ *+' conftest.er1 >conftest.err 2946 rm -f conftest.er1 2947 cat conftest.err >&5 2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2949 (exit $ac_status); } && { 2950 test -z "$ac_c_werror_flag" || 2951 test ! -s conftest.err 2952 } && test -s conftest.$ac_objext; then 2953 : 2954else 2955 echo "$as_me: failed program was:" >&5 2956sed 's/^/| /' conftest.$ac_ext >&5 2957 2958 ac_c_werror_flag=$ac_save_c_werror_flag 2959 CFLAGS="-g" 2960 cat >conftest.$ac_ext <<_ACEOF 2961/* confdefs.h. */ 2962_ACEOF 2963cat confdefs.h >>conftest.$ac_ext 2964cat >>conftest.$ac_ext <<_ACEOF 2965/* end confdefs.h. */ 2966 2967int 2968main () 2969{ 2970 2971 ; 2972 return 0; 2973} 2974_ACEOF 2975rm -f conftest.$ac_objext 2976if { (ac_try="$ac_compile" 2977case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980esac 2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2982 (eval "$ac_compile") 2>conftest.er1 2983 ac_status=$? 2984 grep -v '^ *+' conftest.er1 >conftest.err 2985 rm -f conftest.er1 2986 cat conftest.err >&5 2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2988 (exit $ac_status); } && { 2989 test -z "$ac_c_werror_flag" || 2990 test ! -s conftest.err 2991 } && test -s conftest.$ac_objext; then 2992 ac_cv_prog_cc_g=yes 2993else 2994 echo "$as_me: failed program was:" >&5 2995sed 's/^/| /' conftest.$ac_ext >&5 2996 2997 2998fi 2999 3000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3001fi 3002 3003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3004fi 3005 3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3007 ac_c_werror_flag=$ac_save_c_werror_flag 3008fi 3009{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3010echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3011if test "$ac_test_CFLAGS" = set; then 3012 CFLAGS=$ac_save_CFLAGS 3013elif test $ac_cv_prog_cc_g = yes; then 3014 if test "$GCC" = yes; then 3015 CFLAGS="-g -O2" 3016 else 3017 CFLAGS="-g" 3018 fi 3019else 3020 if test "$GCC" = yes; then 3021 CFLAGS="-O2" 3022 else 3023 CFLAGS= 3024 fi 3025fi 3026{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3027echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3028if test "${ac_cv_prog_cc_c89+set}" = set; then 3029 echo $ECHO_N "(cached) $ECHO_C" >&6 3030else 3031 ac_cv_prog_cc_c89=no 3032ac_save_CC=$CC 3033cat >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#include <stdarg.h> 3040#include <stdio.h> 3041#include <sys/types.h> 3042#include <sys/stat.h> 3043/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3044struct buf { int x; }; 3045FILE * (*rcsopen) (struct buf *, struct stat *, int); 3046static char *e (p, i) 3047 char **p; 3048 int i; 3049{ 3050 return p[i]; 3051} 3052static char *f (char * (*g) (char **, int), char **p, ...) 3053{ 3054 char *s; 3055 va_list v; 3056 va_start (v,p); 3057 s = g (p, va_arg (v,int)); 3058 va_end (v); 3059 return s; 3060} 3061 3062/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3063 function prototypes and stuff, but not '\xHH' hex character constants. 3064 These don't provoke an error unfortunately, instead are silently treated 3065 as 'x'. The following induces an error, until -std is added to get 3066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3067 array size at least. It's necessary to write '\x00'==0 to get something 3068 that's true only with -std. */ 3069int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3070 3071/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3072 inside strings and character constants. */ 3073#define FOO(x) 'x' 3074int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3075 3076int test (int i, double x); 3077struct s1 {int (*f) (int a);}; 3078struct s2 {int (*f) (double a);}; 3079int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3080int argc; 3081char **argv; 3082int 3083main () 3084{ 3085return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3086 ; 3087 return 0; 3088} 3089_ACEOF 3090for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3092do 3093 CC="$ac_save_CC $ac_arg" 3094 rm -f conftest.$ac_objext 3095if { (ac_try="$ac_compile" 3096case "(($ac_try" in 3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3098 *) ac_try_echo=$ac_try;; 3099esac 3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3101 (eval "$ac_compile") 2>conftest.er1 3102 ac_status=$? 3103 grep -v '^ *+' conftest.er1 >conftest.err 3104 rm -f conftest.er1 3105 cat conftest.err >&5 3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3107 (exit $ac_status); } && { 3108 test -z "$ac_c_werror_flag" || 3109 test ! -s conftest.err 3110 } && test -s conftest.$ac_objext; then 3111 ac_cv_prog_cc_c89=$ac_arg 3112else 3113 echo "$as_me: failed program was:" >&5 3114sed 's/^/| /' conftest.$ac_ext >&5 3115 3116 3117fi 3118 3119rm -f core conftest.err conftest.$ac_objext 3120 test "x$ac_cv_prog_cc_c89" != "xno" && break 3121done 3122rm -f conftest.$ac_ext 3123CC=$ac_save_CC 3124 3125fi 3126# AC_CACHE_VAL 3127case "x$ac_cv_prog_cc_c89" in 3128 x) 3129 { echo "$as_me:$LINENO: result: none needed" >&5 3130echo "${ECHO_T}none needed" >&6; } ;; 3131 xno) 3132 { echo "$as_me:$LINENO: result: unsupported" >&5 3133echo "${ECHO_T}unsupported" >&6; } ;; 3134 *) 3135 CC="$CC $ac_cv_prog_cc_c89" 3136 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3137echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3138esac 3139 3140 3141ac_ext=c 3142ac_cpp='$CPP $CPPFLAGS' 3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3145ac_compiler_gnu=$ac_cv_c_compiler_gnu 3146DEPDIR="${am__leading_dot}deps" 3147 3148ac_config_commands="$ac_config_commands depfiles" 3149 3150 3151am_make=${MAKE-make} 3152cat > confinc << 'END' 3153am__doit: 3154 @echo done 3155.PHONY: am__doit 3156END 3157# If we don't find an include directive, just comment out the code. 3158{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3159echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3160am__include="#" 3161am__quote= 3162_am_result=none 3163# First try GNU make style include. 3164echo "include confinc" > confmf 3165# We grep out `Entering directory' and `Leaving directory' 3166# messages which can occur if `w' ends up in MAKEFLAGS. 3167# In particular we don't look at `^make:' because GNU make might 3168# be invoked under some other name (usually "gmake"), in which 3169# case it prints its new name instead of `make'. 3170if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3171 am__include=include 3172 am__quote= 3173 _am_result=GNU 3174fi 3175# Now try BSD make style include. 3176if test "$am__include" = "#"; then 3177 echo '.include "confinc"' > confmf 3178 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3179 am__include=.include 3180 am__quote="\"" 3181 _am_result=BSD 3182 fi 3183fi 3184 3185 3186{ echo "$as_me:$LINENO: result: $_am_result" >&5 3187echo "${ECHO_T}$_am_result" >&6; } 3188rm -f confinc confmf 3189 3190# Check whether --enable-dependency-tracking was given. 3191if test "${enable_dependency_tracking+set}" = set; then 3192 enableval=$enable_dependency_tracking; 3193fi 3194 3195if test "x$enable_dependency_tracking" != xno; then 3196 am_depcomp="$ac_aux_dir/depcomp" 3197 AMDEPBACKSLASH='\' 3198fi 3199 if test "x$enable_dependency_tracking" != xno; then 3200 AMDEP_TRUE= 3201 AMDEP_FALSE='#' 3202else 3203 AMDEP_TRUE='#' 3204 AMDEP_FALSE= 3205fi 3206 3207 3208 3209depcc="$CC" am_compiler_list= 3210 3211{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3212echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3213if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3214 echo $ECHO_N "(cached) $ECHO_C" >&6 3215else 3216 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3217 # We make a subdir and do the tests there. Otherwise we can end up 3218 # making bogus files that we don't know about and never remove. For 3219 # instance it was reported that on HP-UX the gcc test will end up 3220 # making a dummy file named `D' -- because `-MD' means `put the output 3221 # in D'. 3222 mkdir conftest.dir 3223 # Copy depcomp to subdir because otherwise we won't find it if we're 3224 # using a relative directory. 3225 cp "$am_depcomp" conftest.dir 3226 cd conftest.dir 3227 # We will build objects and dependencies in a subdirectory because 3228 # it helps to detect inapplicable dependency modes. For instance 3229 # both Tru64's cc and ICC support -MD to output dependencies as a 3230 # side effect of compilation, but ICC will put the dependencies in 3231 # the current directory while Tru64 will put them in the object 3232 # directory. 3233 mkdir sub 3234 3235 am_cv_CC_dependencies_compiler_type=none 3236 if test "$am_compiler_list" = ""; then 3237 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3238 fi 3239 for depmode in $am_compiler_list; do 3240 # Setup a source with many dependencies, because some compilers 3241 # like to wrap large dependency lists on column 80 (with \), and 3242 # we should not choose a depcomp mode which is confused by this. 3243 # 3244 # We need to recreate these files for each test, as the compiler may 3245 # overwrite some of them when testing with obscure command lines. 3246 # This happens at least with the AIX C compiler. 3247 : > sub/conftest.c 3248 for i in 1 2 3 4 5 6; do 3249 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3250 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3251 # Solaris 8's {/usr,}/bin/sh. 3252 touch sub/conftst$i.h 3253 done 3254 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3255 3256 case $depmode in 3257 nosideeffect) 3258 # after this tag, mechanisms are not by side-effect, so they'll 3259 # only be used when explicitly requested 3260 if test "x$enable_dependency_tracking" = xyes; then 3261 continue 3262 else 3263 break 3264 fi 3265 ;; 3266 none) break ;; 3267 esac 3268 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3269 # mode. It turns out that the SunPro C++ compiler does not properly 3270 # handle `-M -o', and we need to detect this. 3271 if depmode=$depmode \ 3272 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3273 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3274 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3275 >/dev/null 2>conftest.err && 3276 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3277 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3278 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3279 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3280 # icc doesn't choke on unknown options, it will just issue warnings 3281 # or remarks (even with -Werror). So we grep stderr for any message 3282 # that says an option was ignored or not supported. 3283 # When given -MP, icc 7.0 and 7.1 complain thusly: 3284 # icc: Command line warning: ignoring option '-M'; no argument required 3285 # The diagnosis changed in icc 8.0: 3286 # icc: Command line remark: option '-MP' not supported 3287 if (grep 'ignoring option' conftest.err || 3288 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3289 am_cv_CC_dependencies_compiler_type=$depmode 3290 break 3291 fi 3292 fi 3293 done 3294 3295 cd .. 3296 rm -rf conftest.dir 3297else 3298 am_cv_CC_dependencies_compiler_type=none 3299fi 3300 3301fi 3302{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3303echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3304CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3305 3306 if 3307 test "x$enable_dependency_tracking" != xno \ 3308 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3309 am__fastdepCC_TRUE= 3310 am__fastdepCC_FALSE='#' 3311else 3312 am__fastdepCC_TRUE='#' 3313 am__fastdepCC_FALSE= 3314fi 3315 3316 3317 3318# Checks for libraries. 3319 3320 3321{ echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5 3322echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; } 3323if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then 3324 echo $ECHO_N "(cached) $ECHO_C" >&6 3325else 3326 ac_check_lib_save_LIBS=$LIBS 3327LIBS="-lX11 $LIBS" 3328cat >conftest.$ac_ext <<_ACEOF 3329/* confdefs.h. */ 3330_ACEOF 3331cat confdefs.h >>conftest.$ac_ext 3332cat >>conftest.$ac_ext <<_ACEOF 3333/* end confdefs.h. */ 3334 3335/* Override any GCC internal prototype to avoid an error. 3336 Use char because int might match the return type of a GCC 3337 builtin and then its argument prototype would still apply. */ 3338#ifdef __cplusplus 3339extern "C" 3340#endif 3341char XOpenDisplay (); 3342int 3343main () 3344{ 3345return XOpenDisplay (); 3346 ; 3347 return 0; 3348} 3349_ACEOF 3350rm -f conftest.$ac_objext conftest$ac_exeext 3351if { (ac_try="$ac_link" 3352case "(($ac_try" in 3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3354 *) ac_try_echo=$ac_try;; 3355esac 3356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3357 (eval "$ac_link") 2>conftest.er1 3358 ac_status=$? 3359 grep -v '^ *+' conftest.er1 >conftest.err 3360 rm -f conftest.er1 3361 cat conftest.err >&5 3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3363 (exit $ac_status); } && { 3364 test -z "$ac_c_werror_flag" || 3365 test ! -s conftest.err 3366 } && test -s conftest$ac_exeext && 3367 $as_test_x conftest$ac_exeext; then 3368 ac_cv_lib_X11_XOpenDisplay=yes 3369else 3370 echo "$as_me: failed program was:" >&5 3371sed 's/^/| /' conftest.$ac_ext >&5 3372 3373 ac_cv_lib_X11_XOpenDisplay=no 3374fi 3375 3376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3377 conftest$ac_exeext conftest.$ac_ext 3378LIBS=$ac_check_lib_save_LIBS 3379fi 3380{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5 3381echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; } 3382if test $ac_cv_lib_X11_XOpenDisplay = yes; then 3383 cat >>confdefs.h <<_ACEOF 3384#define HAVE_LIBX11 1 3385_ACEOF 3386 3387 LIBS="-lX11 $LIBS" 3388 3389fi 3390 3391 3392{ echo "$as_me:$LINENO: checking for XtInitialize in -lXt" >&5 3393echo $ECHO_N "checking for XtInitialize in -lXt... $ECHO_C" >&6; } 3394if test "${ac_cv_lib_Xt_XtInitialize+set}" = set; then 3395 echo $ECHO_N "(cached) $ECHO_C" >&6 3396else 3397 ac_check_lib_save_LIBS=$LIBS 3398LIBS="-lXt $LIBS" 3399cat >conftest.$ac_ext <<_ACEOF 3400/* confdefs.h. */ 3401_ACEOF 3402cat confdefs.h >>conftest.$ac_ext 3403cat >>conftest.$ac_ext <<_ACEOF 3404/* end confdefs.h. */ 3405 3406/* Override any GCC internal prototype to avoid an error. 3407 Use char because int might match the return type of a GCC 3408 builtin and then its argument prototype would still apply. */ 3409#ifdef __cplusplus 3410extern "C" 3411#endif 3412char XtInitialize (); 3413int 3414main () 3415{ 3416return XtInitialize (); 3417 ; 3418 return 0; 3419} 3420_ACEOF 3421rm -f conftest.$ac_objext conftest$ac_exeext 3422if { (ac_try="$ac_link" 3423case "(($ac_try" in 3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3425 *) ac_try_echo=$ac_try;; 3426esac 3427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3428 (eval "$ac_link") 2>conftest.er1 3429 ac_status=$? 3430 grep -v '^ *+' conftest.er1 >conftest.err 3431 rm -f conftest.er1 3432 cat conftest.err >&5 3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3434 (exit $ac_status); } && { 3435 test -z "$ac_c_werror_flag" || 3436 test ! -s conftest.err 3437 } && test -s conftest$ac_exeext && 3438 $as_test_x conftest$ac_exeext; then 3439 ac_cv_lib_Xt_XtInitialize=yes 3440else 3441 echo "$as_me: failed program was:" >&5 3442sed 's/^/| /' conftest.$ac_ext >&5 3443 3444 ac_cv_lib_Xt_XtInitialize=no 3445fi 3446 3447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3448 conftest$ac_exeext conftest.$ac_ext 3449LIBS=$ac_check_lib_save_LIBS 3450fi 3451{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtInitialize" >&5 3452echo "${ECHO_T}$ac_cv_lib_Xt_XtInitialize" >&6; } 3453if test $ac_cv_lib_Xt_XtInitialize = yes; then 3454 cat >>confdefs.h <<_ACEOF 3455#define HAVE_LIBXT 1 3456_ACEOF 3457 3458 LIBS="-lXt $LIBS" 3459 3460fi 3461 3462 3463{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 3464echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 3465if test "${ac_cv_lib_socket_socket+set}" = set; then 3466 echo $ECHO_N "(cached) $ECHO_C" >&6 3467else 3468 ac_check_lib_save_LIBS=$LIBS 3469LIBS="-lsocket $LIBS" 3470cat >conftest.$ac_ext <<_ACEOF 3471/* confdefs.h. */ 3472_ACEOF 3473cat confdefs.h >>conftest.$ac_ext 3474cat >>conftest.$ac_ext <<_ACEOF 3475/* end confdefs.h. */ 3476 3477/* Override any GCC internal prototype to avoid an error. 3478 Use char because int might match the return type of a GCC 3479 builtin and then its argument prototype would still apply. */ 3480#ifdef __cplusplus 3481extern "C" 3482#endif 3483char socket (); 3484int 3485main () 3486{ 3487return socket (); 3488 ; 3489 return 0; 3490} 3491_ACEOF 3492rm -f conftest.$ac_objext conftest$ac_exeext 3493if { (ac_try="$ac_link" 3494case "(($ac_try" in 3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3496 *) ac_try_echo=$ac_try;; 3497esac 3498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3499 (eval "$ac_link") 2>conftest.er1 3500 ac_status=$? 3501 grep -v '^ *+' conftest.er1 >conftest.err 3502 rm -f conftest.er1 3503 cat conftest.err >&5 3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3505 (exit $ac_status); } && { 3506 test -z "$ac_c_werror_flag" || 3507 test ! -s conftest.err 3508 } && test -s conftest$ac_exeext && 3509 $as_test_x conftest$ac_exeext; then 3510 ac_cv_lib_socket_socket=yes 3511else 3512 echo "$as_me: failed program was:" >&5 3513sed 's/^/| /' conftest.$ac_ext >&5 3514 3515 ac_cv_lib_socket_socket=no 3516fi 3517 3518rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3519 conftest$ac_exeext conftest.$ac_ext 3520LIBS=$ac_check_lib_save_LIBS 3521fi 3522{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 3523echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 3524if test $ac_cv_lib_socket_socket = yes; then 3525 cat >>confdefs.h <<_ACEOF 3526#define HAVE_LIBSOCKET 1 3527_ACEOF 3528 3529 LIBS="-lsocket $LIBS" 3530 3531fi 3532 3533 3534{ echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 3535echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; } 3536if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then 3537 echo $ECHO_N "(cached) $ECHO_C" >&6 3538else 3539 ac_check_lib_save_LIBS=$LIBS 3540LIBS="-lnsl $LIBS" 3541cat >conftest.$ac_ext <<_ACEOF 3542/* confdefs.h. */ 3543_ACEOF 3544cat confdefs.h >>conftest.$ac_ext 3545cat >>conftest.$ac_ext <<_ACEOF 3546/* end confdefs.h. */ 3547 3548/* Override any GCC internal prototype to avoid an error. 3549 Use char because int might match the return type of a GCC 3550 builtin and then its argument prototype would still apply. */ 3551#ifdef __cplusplus 3552extern "C" 3553#endif 3554char inet_addr (); 3555int 3556main () 3557{ 3558return inet_addr (); 3559 ; 3560 return 0; 3561} 3562_ACEOF 3563rm -f conftest.$ac_objext conftest$ac_exeext 3564if { (ac_try="$ac_link" 3565case "(($ac_try" in 3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3567 *) ac_try_echo=$ac_try;; 3568esac 3569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3570 (eval "$ac_link") 2>conftest.er1 3571 ac_status=$? 3572 grep -v '^ *+' conftest.er1 >conftest.err 3573 rm -f conftest.er1 3574 cat conftest.err >&5 3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3576 (exit $ac_status); } && { 3577 test -z "$ac_c_werror_flag" || 3578 test ! -s conftest.err 3579 } && test -s conftest$ac_exeext && 3580 $as_test_x conftest$ac_exeext; then 3581 ac_cv_lib_nsl_inet_addr=yes 3582else 3583 echo "$as_me: failed program was:" >&5 3584sed 's/^/| /' conftest.$ac_ext >&5 3585 3586 ac_cv_lib_nsl_inet_addr=no 3587fi 3588 3589rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3590 conftest$ac_exeext conftest.$ac_ext 3591LIBS=$ac_check_lib_save_LIBS 3592fi 3593{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 3594echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; } 3595if test $ac_cv_lib_nsl_inet_addr = yes; then 3596 cat >>confdefs.h <<_ACEOF 3597#define HAVE_LIBNSL 1 3598_ACEOF 3599 3600 LIBS="-lnsl $LIBS" 3601 3602fi 3603 3604 3605{ echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 3606echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6; } 3607if test "${ac_cv_lib_dl_dlsym+set}" = set; then 3608 echo $ECHO_N "(cached) $ECHO_C" >&6 3609else 3610 ac_check_lib_save_LIBS=$LIBS 3611LIBS="-ldl $LIBS" 3612cat >conftest.$ac_ext <<_ACEOF 3613/* confdefs.h. */ 3614_ACEOF 3615cat confdefs.h >>conftest.$ac_ext 3616cat >>conftest.$ac_ext <<_ACEOF 3617/* end confdefs.h. */ 3618 3619/* Override any GCC internal prototype to avoid an error. 3620 Use char because int might match the return type of a GCC 3621 builtin and then its argument prototype would still apply. */ 3622#ifdef __cplusplus 3623extern "C" 3624#endif 3625char dlsym (); 3626int 3627main () 3628{ 3629return dlsym (); 3630 ; 3631 return 0; 3632} 3633_ACEOF 3634rm -f conftest.$ac_objext conftest$ac_exeext 3635if { (ac_try="$ac_link" 3636case "(($ac_try" in 3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3638 *) ac_try_echo=$ac_try;; 3639esac 3640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3641 (eval "$ac_link") 2>conftest.er1 3642 ac_status=$? 3643 grep -v '^ *+' conftest.er1 >conftest.err 3644 rm -f conftest.er1 3645 cat conftest.err >&5 3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3647 (exit $ac_status); } && { 3648 test -z "$ac_c_werror_flag" || 3649 test ! -s conftest.err 3650 } && test -s conftest$ac_exeext && 3651 $as_test_x conftest$ac_exeext; then 3652 ac_cv_lib_dl_dlsym=yes 3653else 3654 echo "$as_me: failed program was:" >&5 3655sed 's/^/| /' conftest.$ac_ext >&5 3656 3657 ac_cv_lib_dl_dlsym=no 3658fi 3659 3660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3661 conftest$ac_exeext conftest.$ac_ext 3662LIBS=$ac_check_lib_save_LIBS 3663fi 3664{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 3665echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6; } 3666if test $ac_cv_lib_dl_dlsym = yes; then 3667 cat >>confdefs.h <<_ACEOF 3668#define HAVE_LIBDL 1 3669_ACEOF 3670 3671 LIBS="-ldl $LIBS" 3672 3673fi 3674 3675 3676{ echo "$as_me:$LINENO: checking for stringprep_convert in -lidn" >&5 3677echo $ECHO_N "checking for stringprep_convert in -lidn... $ECHO_C" >&6; } 3678if test "${ac_cv_lib_idn_stringprep_convert+set}" = set; then 3679 echo $ECHO_N "(cached) $ECHO_C" >&6 3680else 3681 ac_check_lib_save_LIBS=$LIBS 3682LIBS="-lidn $LIBS" 3683cat >conftest.$ac_ext <<_ACEOF 3684/* confdefs.h. */ 3685_ACEOF 3686cat confdefs.h >>conftest.$ac_ext 3687cat >>conftest.$ac_ext <<_ACEOF 3688/* end confdefs.h. */ 3689 3690/* Override any GCC internal prototype to avoid an error. 3691 Use char because int might match the return type of a GCC 3692 builtin and then its argument prototype would still apply. */ 3693#ifdef __cplusplus 3694extern "C" 3695#endif 3696char stringprep_convert (); 3697int 3698main () 3699{ 3700return stringprep_convert (); 3701 ; 3702 return 0; 3703} 3704_ACEOF 3705rm -f conftest.$ac_objext conftest$ac_exeext 3706if { (ac_try="$ac_link" 3707case "(($ac_try" in 3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3709 *) ac_try_echo=$ac_try;; 3710esac 3711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3712 (eval "$ac_link") 2>conftest.er1 3713 ac_status=$? 3714 grep -v '^ *+' conftest.er1 >conftest.err 3715 rm -f conftest.er1 3716 cat conftest.err >&5 3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3718 (exit $ac_status); } && { 3719 test -z "$ac_c_werror_flag" || 3720 test ! -s conftest.err 3721 } && test -s conftest$ac_exeext && 3722 $as_test_x conftest$ac_exeext; then 3723 ac_cv_lib_idn_stringprep_convert=yes 3724else 3725 echo "$as_me: failed program was:" >&5 3726sed 's/^/| /' conftest.$ac_ext >&5 3727 3728 ac_cv_lib_idn_stringprep_convert=no 3729fi 3730 3731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3732 conftest$ac_exeext conftest.$ac_ext 3733LIBS=$ac_check_lib_save_LIBS 3734fi 3735{ echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_convert" >&5 3736echo "${ECHO_T}$ac_cv_lib_idn_stringprep_convert" >&6; } 3737if test $ac_cv_lib_idn_stringprep_convert = yes; then 3738 cat >>confdefs.h <<_ACEOF 3739#define HAVE_LIBIDN 1 3740_ACEOF 3741 3742 LIBS="-lidn $LIBS" 3743 3744fi 3745 3746 3747{ echo "$as_me:$LINENO: checking for pow in -lm" >&5 3748echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } 3749if test "${ac_cv_lib_m_pow+set}" = set; then 3750 echo $ECHO_N "(cached) $ECHO_C" >&6 3751else 3752 ac_check_lib_save_LIBS=$LIBS 3753LIBS="-lm $LIBS" 3754cat >conftest.$ac_ext <<_ACEOF 3755/* confdefs.h. */ 3756_ACEOF 3757cat confdefs.h >>conftest.$ac_ext 3758cat >>conftest.$ac_ext <<_ACEOF 3759/* end confdefs.h. */ 3760 3761/* Override any GCC internal prototype to avoid an error. 3762 Use char because int might match the return type of a GCC 3763 builtin and then its argument prototype would still apply. */ 3764#ifdef __cplusplus 3765extern "C" 3766#endif 3767char pow (); 3768int 3769main () 3770{ 3771return pow (); 3772 ; 3773 return 0; 3774} 3775_ACEOF 3776rm -f conftest.$ac_objext conftest$ac_exeext 3777if { (ac_try="$ac_link" 3778case "(($ac_try" in 3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3780 *) ac_try_echo=$ac_try;; 3781esac 3782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3783 (eval "$ac_link") 2>conftest.er1 3784 ac_status=$? 3785 grep -v '^ *+' conftest.er1 >conftest.err 3786 rm -f conftest.er1 3787 cat conftest.err >&5 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3789 (exit $ac_status); } && { 3790 test -z "$ac_c_werror_flag" || 3791 test ! -s conftest.err 3792 } && test -s conftest$ac_exeext && 3793 $as_test_x conftest$ac_exeext; then 3794 ac_cv_lib_m_pow=yes 3795else 3796 echo "$as_me: failed program was:" >&5 3797sed 's/^/| /' conftest.$ac_ext >&5 3798 3799 ac_cv_lib_m_pow=no 3800fi 3801 3802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3803 conftest$ac_exeext conftest.$ac_ext 3804LIBS=$ac_check_lib_save_LIBS 3805fi 3806{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 3807echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } 3808if test $ac_cv_lib_m_pow = yes; then 3809 cat >>confdefs.h <<_ACEOF 3810#define HAVE_LIBM 1 3811_ACEOF 3812 3813 LIBS="-lm $LIBS" 3814 3815fi 3816 3817 3818{ echo "$as_me:$LINENO: checking for deflate in -lz" >&5 3819echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; } 3820if test "${ac_cv_lib_z_deflate+set}" = set; then 3821 echo $ECHO_N "(cached) $ECHO_C" >&6 3822else 3823 ac_check_lib_save_LIBS=$LIBS 3824LIBS="-lz $LIBS" 3825cat >conftest.$ac_ext <<_ACEOF 3826/* confdefs.h. */ 3827_ACEOF 3828cat confdefs.h >>conftest.$ac_ext 3829cat >>conftest.$ac_ext <<_ACEOF 3830/* end confdefs.h. */ 3831 3832/* Override any GCC internal prototype to avoid an error. 3833 Use char because int might match the return type of a GCC 3834 builtin and then its argument prototype would still apply. */ 3835#ifdef __cplusplus 3836extern "C" 3837#endif 3838char deflate (); 3839int 3840main () 3841{ 3842return deflate (); 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847rm -f conftest.$ac_objext conftest$ac_exeext 3848if { (ac_try="$ac_link" 3849case "(($ac_try" in 3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3851 *) ac_try_echo=$ac_try;; 3852esac 3853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3854 (eval "$ac_link") 2>conftest.er1 3855 ac_status=$? 3856 grep -v '^ *+' conftest.er1 >conftest.err 3857 rm -f conftest.er1 3858 cat conftest.err >&5 3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3860 (exit $ac_status); } && { 3861 test -z "$ac_c_werror_flag" || 3862 test ! -s conftest.err 3863 } && test -s conftest$ac_exeext && 3864 $as_test_x conftest$ac_exeext; then 3865 ac_cv_lib_z_deflate=yes 3866else 3867 echo "$as_me: failed program was:" >&5 3868sed 's/^/| /' conftest.$ac_ext >&5 3869 3870 ac_cv_lib_z_deflate=no 3871fi 3872 3873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3874 conftest$ac_exeext conftest.$ac_ext 3875LIBS=$ac_check_lib_save_LIBS 3876fi 3877{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 3878echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; } 3879if test $ac_cv_lib_z_deflate = yes; then 3880 cat >>confdefs.h <<_ACEOF 3881#define HAVE_LIBZ 1 3882_ACEOF 3883 3884 LIBS="-lz $LIBS" 3885 3886fi 3887 3888 3889{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 3890echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } 3891if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 3892 echo $ECHO_N "(cached) $ECHO_C" >&6 3893else 3894 ac_check_lib_save_LIBS=$LIBS 3895LIBS="-lpthread $LIBS" 3896cat >conftest.$ac_ext <<_ACEOF 3897/* confdefs.h. */ 3898_ACEOF 3899cat confdefs.h >>conftest.$ac_ext 3900cat >>conftest.$ac_ext <<_ACEOF 3901/* end confdefs.h. */ 3902 3903/* Override any GCC internal prototype to avoid an error. 3904 Use char because int might match the return type of a GCC 3905 builtin and then its argument prototype would still apply. */ 3906#ifdef __cplusplus 3907extern "C" 3908#endif 3909char pthread_create (); 3910int 3911main () 3912{ 3913return pthread_create (); 3914 ; 3915 return 0; 3916} 3917_ACEOF 3918rm -f conftest.$ac_objext conftest$ac_exeext 3919if { (ac_try="$ac_link" 3920case "(($ac_try" in 3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3922 *) ac_try_echo=$ac_try;; 3923esac 3924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3925 (eval "$ac_link") 2>conftest.er1 3926 ac_status=$? 3927 grep -v '^ *+' conftest.er1 >conftest.err 3928 rm -f conftest.er1 3929 cat conftest.err >&5 3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3931 (exit $ac_status); } && { 3932 test -z "$ac_c_werror_flag" || 3933 test ! -s conftest.err 3934 } && test -s conftest$ac_exeext && 3935 $as_test_x conftest$ac_exeext; then 3936 ac_cv_lib_pthread_pthread_create=yes 3937else 3938 echo "$as_me: failed program was:" >&5 3939sed 's/^/| /' conftest.$ac_ext >&5 3940 3941 ac_cv_lib_pthread_pthread_create=no 3942fi 3943 3944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3945 conftest$ac_exeext conftest.$ac_ext 3946LIBS=$ac_check_lib_save_LIBS 3947fi 3948{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 3949echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } 3950if test $ac_cv_lib_pthread_pthread_create = yes; then 3951 cat >>confdefs.h <<_ACEOF 3952#define HAVE_LIBPTHREAD 1 3953_ACEOF 3954 3955 LIBS="-lpthread $LIBS" 3956 3957fi 3958 3959 3960# Checks for header files. 3961ac_ext=c 3962ac_cpp='$CPP $CPPFLAGS' 3963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3965ac_compiler_gnu=$ac_cv_c_compiler_gnu 3966{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3967echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3968# On Suns, sometimes $CPP names a directory. 3969if test -n "$CPP" && test -d "$CPP"; then 3970 CPP= 3971fi 3972if test -z "$CPP"; then 3973 if test "${ac_cv_prog_CPP+set}" = set; then 3974 echo $ECHO_N "(cached) $ECHO_C" >&6 3975else 3976 # Double quotes because CPP needs to be expanded 3977 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3978 do 3979 ac_preproc_ok=false 3980for ac_c_preproc_warn_flag in '' yes 3981do 3982 # Use a header file that comes with gcc, so configuring glibc 3983 # with a fresh cross-compiler works. 3984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3985 # <limits.h> exists even on freestanding compilers. 3986 # On the NeXT, cc -E runs the code through the compiler's parser, 3987 # not just through cpp. "Syntax error" is here to catch this case. 3988 cat >conftest.$ac_ext <<_ACEOF 3989/* confdefs.h. */ 3990_ACEOF 3991cat confdefs.h >>conftest.$ac_ext 3992cat >>conftest.$ac_ext <<_ACEOF 3993/* end confdefs.h. */ 3994#ifdef __STDC__ 3995# include <limits.h> 3996#else 3997# include <assert.h> 3998#endif 3999 Syntax error 4000_ACEOF 4001if { (ac_try="$ac_cpp conftest.$ac_ext" 4002case "(($ac_try" in 4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4004 *) ac_try_echo=$ac_try;; 4005esac 4006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4008 ac_status=$? 4009 grep -v '^ *+' conftest.er1 >conftest.err 4010 rm -f conftest.er1 4011 cat conftest.err >&5 4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4013 (exit $ac_status); } >/dev/null && { 4014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4015 test ! -s conftest.err 4016 }; then 4017 : 4018else 4019 echo "$as_me: failed program was:" >&5 4020sed 's/^/| /' conftest.$ac_ext >&5 4021 4022 # Broken: fails on valid input. 4023continue 4024fi 4025 4026rm -f conftest.err conftest.$ac_ext 4027 4028 # OK, works on sane cases. Now check whether nonexistent headers 4029 # can be detected and how. 4030 cat >conftest.$ac_ext <<_ACEOF 4031/* confdefs.h. */ 4032_ACEOF 4033cat confdefs.h >>conftest.$ac_ext 4034cat >>conftest.$ac_ext <<_ACEOF 4035/* end confdefs.h. */ 4036#include <ac_nonexistent.h> 4037_ACEOF 4038if { (ac_try="$ac_cpp conftest.$ac_ext" 4039case "(($ac_try" in 4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4041 *) ac_try_echo=$ac_try;; 4042esac 4043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4045 ac_status=$? 4046 grep -v '^ *+' conftest.er1 >conftest.err 4047 rm -f conftest.er1 4048 cat conftest.err >&5 4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4050 (exit $ac_status); } >/dev/null && { 4051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4052 test ! -s conftest.err 4053 }; then 4054 # Broken: success on invalid input. 4055continue 4056else 4057 echo "$as_me: failed program was:" >&5 4058sed 's/^/| /' conftest.$ac_ext >&5 4059 4060 # Passes both tests. 4061ac_preproc_ok=: 4062break 4063fi 4064 4065rm -f conftest.err conftest.$ac_ext 4066 4067done 4068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4069rm -f conftest.err conftest.$ac_ext 4070if $ac_preproc_ok; then 4071 break 4072fi 4073 4074 done 4075 ac_cv_prog_CPP=$CPP 4076 4077fi 4078 CPP=$ac_cv_prog_CPP 4079else 4080 ac_cv_prog_CPP=$CPP 4081fi 4082{ echo "$as_me:$LINENO: result: $CPP" >&5 4083echo "${ECHO_T}$CPP" >&6; } 4084ac_preproc_ok=false 4085for ac_c_preproc_warn_flag in '' yes 4086do 4087 # Use a header file that comes with gcc, so configuring glibc 4088 # with a fresh cross-compiler works. 4089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4090 # <limits.h> exists even on freestanding compilers. 4091 # On the NeXT, cc -E runs the code through the compiler's parser, 4092 # not just through cpp. "Syntax error" is here to catch this case. 4093 cat >conftest.$ac_ext <<_ACEOF 4094/* confdefs.h. */ 4095_ACEOF 4096cat confdefs.h >>conftest.$ac_ext 4097cat >>conftest.$ac_ext <<_ACEOF 4098/* end confdefs.h. */ 4099#ifdef __STDC__ 4100# include <limits.h> 4101#else 4102# include <assert.h> 4103#endif 4104 Syntax error 4105_ACEOF 4106if { (ac_try="$ac_cpp conftest.$ac_ext" 4107case "(($ac_try" in 4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4109 *) ac_try_echo=$ac_try;; 4110esac 4111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4113 ac_status=$? 4114 grep -v '^ *+' conftest.er1 >conftest.err 4115 rm -f conftest.er1 4116 cat conftest.err >&5 4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4118 (exit $ac_status); } >/dev/null && { 4119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4120 test ! -s conftest.err 4121 }; then 4122 : 4123else 4124 echo "$as_me: failed program was:" >&5 4125sed 's/^/| /' conftest.$ac_ext >&5 4126 4127 # Broken: fails on valid input. 4128continue 4129fi 4130 4131rm -f conftest.err conftest.$ac_ext 4132 4133 # OK, works on sane cases. Now check whether nonexistent headers 4134 # can be detected and how. 4135 cat >conftest.$ac_ext <<_ACEOF 4136/* confdefs.h. */ 4137_ACEOF 4138cat confdefs.h >>conftest.$ac_ext 4139cat >>conftest.$ac_ext <<_ACEOF 4140/* end confdefs.h. */ 4141#include <ac_nonexistent.h> 4142_ACEOF 4143if { (ac_try="$ac_cpp conftest.$ac_ext" 4144case "(($ac_try" in 4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4146 *) ac_try_echo=$ac_try;; 4147esac 4148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4150 ac_status=$? 4151 grep -v '^ *+' conftest.er1 >conftest.err 4152 rm -f conftest.er1 4153 cat conftest.err >&5 4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4155 (exit $ac_status); } >/dev/null && { 4156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4157 test ! -s conftest.err 4158 }; then 4159 # Broken: success on invalid input. 4160continue 4161else 4162 echo "$as_me: failed program was:" >&5 4163sed 's/^/| /' conftest.$ac_ext >&5 4164 4165 # Passes both tests. 4166ac_preproc_ok=: 4167break 4168fi 4169 4170rm -f conftest.err conftest.$ac_ext 4171 4172done 4173# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4174rm -f conftest.err conftest.$ac_ext 4175if $ac_preproc_ok; then 4176 : 4177else 4178 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4179See \`config.log' for more details." >&5 4180echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4181See \`config.log' for more details." >&2;} 4182 { (exit 1); exit 1; }; } 4183fi 4184 4185ac_ext=c 4186ac_cpp='$CPP $CPPFLAGS' 4187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4189ac_compiler_gnu=$ac_cv_c_compiler_gnu 4190 4191 4192{ echo "$as_me:$LINENO: checking for X" >&5 4193echo $ECHO_N "checking for X... $ECHO_C" >&6; } 4194 4195 4196# Check whether --with-x was given. 4197if test "${with_x+set}" = set; then 4198 withval=$with_x; 4199fi 4200 4201# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4202if test "x$with_x" = xno; then 4203 # The user explicitly disabled X. 4204 have_x=disabled 4205else 4206 case $x_includes,$x_libraries in #( 4207 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 4208echo "$as_me: error: Cannot use X directory names containing '" >&2;} 4209 { (exit 1); exit 1; }; };; #( 4210 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 4211 echo $ECHO_N "(cached) $ECHO_C" >&6 4212else 4213 # One or both of the vars are not set, and there is no cached value. 4214ac_x_includes=no ac_x_libraries=no 4215rm -f -r conftest.dir 4216if mkdir conftest.dir; then 4217 cd conftest.dir 4218 cat >Imakefile <<'_ACEOF' 4219incroot: 4220 @echo incroot='${INCROOT}' 4221usrlibdir: 4222 @echo usrlibdir='${USRLIBDIR}' 4223libdir: 4224 @echo libdir='${LIBDIR}' 4225_ACEOF 4226 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 4227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4228 for ac_var in incroot usrlibdir libdir; do 4229 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 4230 done 4231 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 4232 for ac_extension in a so sl; do 4233 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 4234 test -f "$ac_im_libdir/libX11.$ac_extension"; then 4235 ac_im_usrlibdir=$ac_im_libdir; break 4236 fi 4237 done 4238 # Screen out bogus values from the imake configuration. They are 4239 # bogus both because they are the default anyway, and because 4240 # using them would break gcc on systems where it needs fixed includes. 4241 case $ac_im_incroot in 4242 /usr/include) ac_x_includes= ;; 4243 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 4244 esac 4245 case $ac_im_usrlibdir in 4246 /usr/lib | /lib) ;; 4247 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 4248 esac 4249 fi 4250 cd .. 4251 rm -f -r conftest.dir 4252fi 4253 4254# Standard set of common directories for X headers. 4255# Check X11 before X11Rn because it is often a symlink to the current release. 4256ac_x_header_dirs=' 4257/usr/X11/include 4258/usr/X11R6/include 4259/usr/X11R5/include 4260/usr/X11R4/include 4261 4262/usr/include/X11 4263/usr/include/X11R6 4264/usr/include/X11R5 4265/usr/include/X11R4 4266 4267/usr/local/X11/include 4268/usr/local/X11R6/include 4269/usr/local/X11R5/include 4270/usr/local/X11R4/include 4271 4272/usr/local/include/X11 4273/usr/local/include/X11R6 4274/usr/local/include/X11R5 4275/usr/local/include/X11R4 4276 4277/usr/X386/include 4278/usr/x386/include 4279/usr/XFree86/include/X11 4280 4281/usr/include 4282/usr/local/include 4283/usr/unsupported/include 4284/usr/athena/include 4285/usr/local/x11r5/include 4286/usr/lpp/Xamples/include 4287 4288/usr/openwin/include 4289/usr/openwin/share/include' 4290 4291if test "$ac_x_includes" = no; then 4292 # Guess where to find include files, by looking for Xlib.h. 4293 # First, try using that file with no special directory specified. 4294 cat >conftest.$ac_ext <<_ACEOF 4295/* confdefs.h. */ 4296_ACEOF 4297cat confdefs.h >>conftest.$ac_ext 4298cat >>conftest.$ac_ext <<_ACEOF 4299/* end confdefs.h. */ 4300#include <X11/Xlib.h> 4301_ACEOF 4302if { (ac_try="$ac_cpp conftest.$ac_ext" 4303case "(($ac_try" in 4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4305 *) ac_try_echo=$ac_try;; 4306esac 4307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4309 ac_status=$? 4310 grep -v '^ *+' conftest.er1 >conftest.err 4311 rm -f conftest.er1 4312 cat conftest.err >&5 4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4314 (exit $ac_status); } >/dev/null && { 4315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4316 test ! -s conftest.err 4317 }; then 4318 # We can compile using X headers with no special include directory. 4319ac_x_includes= 4320else 4321 echo "$as_me: failed program was:" >&5 4322sed 's/^/| /' conftest.$ac_ext >&5 4323 4324 for ac_dir in $ac_x_header_dirs; do 4325 if test -r "$ac_dir/X11/Xlib.h"; then 4326 ac_x_includes=$ac_dir 4327 break 4328 fi 4329done 4330fi 4331 4332rm -f conftest.err conftest.$ac_ext 4333fi # $ac_x_includes = no 4334 4335if test "$ac_x_libraries" = no; then 4336 # Check for the libraries. 4337 # See if we find them without any special options. 4338 # Don't add to $LIBS permanently. 4339 ac_save_LIBS=$LIBS 4340 LIBS="-lX11 $LIBS" 4341 cat >conftest.$ac_ext <<_ACEOF 4342/* confdefs.h. */ 4343_ACEOF 4344cat confdefs.h >>conftest.$ac_ext 4345cat >>conftest.$ac_ext <<_ACEOF 4346/* end confdefs.h. */ 4347#include <X11/Xlib.h> 4348int 4349main () 4350{ 4351XrmInitialize () 4352 ; 4353 return 0; 4354} 4355_ACEOF 4356rm -f conftest.$ac_objext conftest$ac_exeext 4357if { (ac_try="$ac_link" 4358case "(($ac_try" in 4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4360 *) ac_try_echo=$ac_try;; 4361esac 4362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4363 (eval "$ac_link") 2>conftest.er1 4364 ac_status=$? 4365 grep -v '^ *+' conftest.er1 >conftest.err 4366 rm -f conftest.er1 4367 cat conftest.err >&5 4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4369 (exit $ac_status); } && { 4370 test -z "$ac_c_werror_flag" || 4371 test ! -s conftest.err 4372 } && test -s conftest$ac_exeext && 4373 $as_test_x conftest$ac_exeext; then 4374 LIBS=$ac_save_LIBS 4375# We can link X programs with no special library path. 4376ac_x_libraries= 4377else 4378 echo "$as_me: failed program was:" >&5 4379sed 's/^/| /' conftest.$ac_ext >&5 4380 4381 LIBS=$ac_save_LIBS 4382for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4383do 4384 # Don't even attempt the hair of trying to link an X program! 4385 for ac_extension in a so sl; do 4386 if test -r "$ac_dir/libX11.$ac_extension"; then 4387 ac_x_libraries=$ac_dir 4388 break 2 4389 fi 4390 done 4391done 4392fi 4393 4394rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4395 conftest$ac_exeext conftest.$ac_ext 4396fi # $ac_x_libraries = no 4397 4398case $ac_x_includes,$ac_x_libraries in #( 4399 no,* | *,no | *\'*) 4400 # Didn't find X, or a directory has "'" in its name. 4401 ac_cv_have_x="have_x=no";; #( 4402 *) 4403 # Record where we found X for the cache. 4404 ac_cv_have_x="have_x=yes\ 4405 ac_x_includes='$ac_x_includes'\ 4406 ac_x_libraries='$ac_x_libraries'" 4407esac 4408fi 4409;; #( 4410 *) have_x=yes;; 4411 esac 4412 eval "$ac_cv_have_x" 4413fi # $with_x != no 4414 4415if test "$have_x" != yes; then 4416 { echo "$as_me:$LINENO: result: $have_x" >&5 4417echo "${ECHO_T}$have_x" >&6; } 4418 no_x=yes 4419else 4420 # If each of the values was on the command line, it overrides each guess. 4421 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4422 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4423 # Update the cache value to reflect the command line values. 4424 ac_cv_have_x="have_x=yes\ 4425 ac_x_includes='$x_includes'\ 4426 ac_x_libraries='$x_libraries'" 4427 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 4428echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 4429fi 4430 4431 4432 4433 4434 4435 4436ac_header_dirent=no 4437for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 4438 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 4439{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 4440echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } 4441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4442 echo $ECHO_N "(cached) $ECHO_C" >&6 4443else 4444 cat >conftest.$ac_ext <<_ACEOF 4445/* confdefs.h. */ 4446_ACEOF 4447cat confdefs.h >>conftest.$ac_ext 4448cat >>conftest.$ac_ext <<_ACEOF 4449/* end confdefs.h. */ 4450#include <sys/types.h> 4451#include <$ac_hdr> 4452 4453int 4454main () 4455{ 4456if ((DIR *) 0) 4457return 0; 4458 ; 4459 return 0; 4460} 4461_ACEOF 4462rm -f conftest.$ac_objext 4463if { (ac_try="$ac_compile" 4464case "(($ac_try" in 4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4466 *) ac_try_echo=$ac_try;; 4467esac 4468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4469 (eval "$ac_compile") 2>conftest.er1 4470 ac_status=$? 4471 grep -v '^ *+' conftest.er1 >conftest.err 4472 rm -f conftest.er1 4473 cat conftest.err >&5 4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4475 (exit $ac_status); } && { 4476 test -z "$ac_c_werror_flag" || 4477 test ! -s conftest.err 4478 } && test -s conftest.$ac_objext; then 4479 eval "$as_ac_Header=yes" 4480else 4481 echo "$as_me: failed program was:" >&5 4482sed 's/^/| /' conftest.$ac_ext >&5 4483 4484 eval "$as_ac_Header=no" 4485fi 4486 4487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4488fi 4489ac_res=`eval echo '${'$as_ac_Header'}'` 4490 { echo "$as_me:$LINENO: result: $ac_res" >&5 4491echo "${ECHO_T}$ac_res" >&6; } 4492if test `eval echo '${'$as_ac_Header'}'` = yes; then 4493 cat >>confdefs.h <<_ACEOF 4494#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 4495_ACEOF 4496 4497ac_header_dirent=$ac_hdr; break 4498fi 4499 4500done 4501# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 4502if test $ac_header_dirent = dirent.h; then 4503 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 4504echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 4505if test "${ac_cv_search_opendir+set}" = set; then 4506 echo $ECHO_N "(cached) $ECHO_C" >&6 4507else 4508 ac_func_search_save_LIBS=$LIBS 4509cat >conftest.$ac_ext <<_ACEOF 4510/* confdefs.h. */ 4511_ACEOF 4512cat confdefs.h >>conftest.$ac_ext 4513cat >>conftest.$ac_ext <<_ACEOF 4514/* end confdefs.h. */ 4515 4516/* Override any GCC internal prototype to avoid an error. 4517 Use char because int might match the return type of a GCC 4518 builtin and then its argument prototype would still apply. */ 4519#ifdef __cplusplus 4520extern "C" 4521#endif 4522char opendir (); 4523int 4524main () 4525{ 4526return opendir (); 4527 ; 4528 return 0; 4529} 4530_ACEOF 4531for ac_lib in '' dir; do 4532 if test -z "$ac_lib"; then 4533 ac_res="none required" 4534 else 4535 ac_res=-l$ac_lib 4536 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4537 fi 4538 rm -f conftest.$ac_objext conftest$ac_exeext 4539if { (ac_try="$ac_link" 4540case "(($ac_try" in 4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4542 *) ac_try_echo=$ac_try;; 4543esac 4544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4545 (eval "$ac_link") 2>conftest.er1 4546 ac_status=$? 4547 grep -v '^ *+' conftest.er1 >conftest.err 4548 rm -f conftest.er1 4549 cat conftest.err >&5 4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4551 (exit $ac_status); } && { 4552 test -z "$ac_c_werror_flag" || 4553 test ! -s conftest.err 4554 } && test -s conftest$ac_exeext && 4555 $as_test_x conftest$ac_exeext; then 4556 ac_cv_search_opendir=$ac_res 4557else 4558 echo "$as_me: failed program was:" >&5 4559sed 's/^/| /' conftest.$ac_ext >&5 4560 4561 4562fi 4563 4564rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4565 conftest$ac_exeext 4566 if test "${ac_cv_search_opendir+set}" = set; then 4567 break 4568fi 4569done 4570if test "${ac_cv_search_opendir+set}" = set; then 4571 : 4572else 4573 ac_cv_search_opendir=no 4574fi 4575rm conftest.$ac_ext 4576LIBS=$ac_func_search_save_LIBS 4577fi 4578{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4579echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 4580ac_res=$ac_cv_search_opendir 4581if test "$ac_res" != no; then 4582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4583 4584fi 4585 4586else 4587 { echo "$as_me:$LINENO: checking for library containing opendir" >&5 4588echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } 4589if test "${ac_cv_search_opendir+set}" = set; then 4590 echo $ECHO_N "(cached) $ECHO_C" >&6 4591else 4592 ac_func_search_save_LIBS=$LIBS 4593cat >conftest.$ac_ext <<_ACEOF 4594/* confdefs.h. */ 4595_ACEOF 4596cat confdefs.h >>conftest.$ac_ext 4597cat >>conftest.$ac_ext <<_ACEOF 4598/* end confdefs.h. */ 4599 4600/* Override any GCC internal prototype to avoid an error. 4601 Use char because int might match the return type of a GCC 4602 builtin and then its argument prototype would still apply. */ 4603#ifdef __cplusplus 4604extern "C" 4605#endif 4606char opendir (); 4607int 4608main () 4609{ 4610return opendir (); 4611 ; 4612 return 0; 4613} 4614_ACEOF 4615for ac_lib in '' x; do 4616 if test -z "$ac_lib"; then 4617 ac_res="none required" 4618 else 4619 ac_res=-l$ac_lib 4620 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4621 fi 4622 rm -f conftest.$ac_objext conftest$ac_exeext 4623if { (ac_try="$ac_link" 4624case "(($ac_try" in 4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4626 *) ac_try_echo=$ac_try;; 4627esac 4628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4629 (eval "$ac_link") 2>conftest.er1 4630 ac_status=$? 4631 grep -v '^ *+' conftest.er1 >conftest.err 4632 rm -f conftest.er1 4633 cat conftest.err >&5 4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4635 (exit $ac_status); } && { 4636 test -z "$ac_c_werror_flag" || 4637 test ! -s conftest.err 4638 } && test -s conftest$ac_exeext && 4639 $as_test_x conftest$ac_exeext; then 4640 ac_cv_search_opendir=$ac_res 4641else 4642 echo "$as_me: failed program was:" >&5 4643sed 's/^/| /' conftest.$ac_ext >&5 4644 4645 4646fi 4647 4648rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4649 conftest$ac_exeext 4650 if test "${ac_cv_search_opendir+set}" = set; then 4651 break 4652fi 4653done 4654if test "${ac_cv_search_opendir+set}" = set; then 4655 : 4656else 4657 ac_cv_search_opendir=no 4658fi 4659rm conftest.$ac_ext 4660LIBS=$ac_func_search_save_LIBS 4661fi 4662{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 4663echo "${ECHO_T}$ac_cv_search_opendir" >&6; } 4664ac_res=$ac_cv_search_opendir 4665if test "$ac_res" != no; then 4666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4667 4668fi 4669 4670fi 4671 4672{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4673echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4674if test "${ac_cv_path_GREP+set}" = set; then 4675 echo $ECHO_N "(cached) $ECHO_C" >&6 4676else 4677 # Extract the first word of "grep ggrep" to use in msg output 4678if test -z "$GREP"; then 4679set dummy grep ggrep; ac_prog_name=$2 4680if test "${ac_cv_path_GREP+set}" = set; then 4681 echo $ECHO_N "(cached) $ECHO_C" >&6 4682else 4683 ac_path_GREP_found=false 4684# Loop through the user's path and test for each of PROGNAME-LIST 4685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4686for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4687do 4688 IFS=$as_save_IFS 4689 test -z "$as_dir" && as_dir=. 4690 for ac_prog in grep ggrep; do 4691 for ac_exec_ext in '' $ac_executable_extensions; do 4692 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4693 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4694 # Check for GNU ac_path_GREP and select it if it is found. 4695 # Check for GNU $ac_path_GREP 4696case `"$ac_path_GREP" --version 2>&1` in 4697*GNU*) 4698 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4699*) 4700 ac_count=0 4701 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4702 while : 4703 do 4704 cat "conftest.in" "conftest.in" >"conftest.tmp" 4705 mv "conftest.tmp" "conftest.in" 4706 cp "conftest.in" "conftest.nl" 4707 echo 'GREP' >> "conftest.nl" 4708 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4710 ac_count=`expr $ac_count + 1` 4711 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4712 # Best one so far, save it but keep looking for a better one 4713 ac_cv_path_GREP="$ac_path_GREP" 4714 ac_path_GREP_max=$ac_count 4715 fi 4716 # 10*(2^10) chars as input seems more than enough 4717 test $ac_count -gt 10 && break 4718 done 4719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4720esac 4721 4722 4723 $ac_path_GREP_found && break 3 4724 done 4725done 4726 4727done 4728IFS=$as_save_IFS 4729 4730 4731fi 4732 4733GREP="$ac_cv_path_GREP" 4734if test -z "$GREP"; then 4735 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4736echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4737 { (exit 1); exit 1; }; } 4738fi 4739 4740else 4741 ac_cv_path_GREP=$GREP 4742fi 4743 4744 4745fi 4746{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4747echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4748 GREP="$ac_cv_path_GREP" 4749 4750 4751{ echo "$as_me:$LINENO: checking for egrep" >&5 4752echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4753if test "${ac_cv_path_EGREP+set}" = set; then 4754 echo $ECHO_N "(cached) $ECHO_C" >&6 4755else 4756 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4757 then ac_cv_path_EGREP="$GREP -E" 4758 else 4759 # Extract the first word of "egrep" to use in msg output 4760if test -z "$EGREP"; then 4761set dummy egrep; ac_prog_name=$2 4762if test "${ac_cv_path_EGREP+set}" = set; then 4763 echo $ECHO_N "(cached) $ECHO_C" >&6 4764else 4765 ac_path_EGREP_found=false 4766# Loop through the user's path and test for each of PROGNAME-LIST 4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4768for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4769do 4770 IFS=$as_save_IFS 4771 test -z "$as_dir" && as_dir=. 4772 for ac_prog in egrep; do 4773 for ac_exec_ext in '' $ac_executable_extensions; do 4774 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4775 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4776 # Check for GNU ac_path_EGREP and select it if it is found. 4777 # Check for GNU $ac_path_EGREP 4778case `"$ac_path_EGREP" --version 2>&1` in 4779*GNU*) 4780 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4781*) 4782 ac_count=0 4783 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4784 while : 4785 do 4786 cat "conftest.in" "conftest.in" >"conftest.tmp" 4787 mv "conftest.tmp" "conftest.in" 4788 cp "conftest.in" "conftest.nl" 4789 echo 'EGREP' >> "conftest.nl" 4790 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4791 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4792 ac_count=`expr $ac_count + 1` 4793 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4794 # Best one so far, save it but keep looking for a better one 4795 ac_cv_path_EGREP="$ac_path_EGREP" 4796 ac_path_EGREP_max=$ac_count 4797 fi 4798 # 10*(2^10) chars as input seems more than enough 4799 test $ac_count -gt 10 && break 4800 done 4801 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4802esac 4803 4804 4805 $ac_path_EGREP_found && break 3 4806 done 4807done 4808 4809done 4810IFS=$as_save_IFS 4811 4812 4813fi 4814 4815EGREP="$ac_cv_path_EGREP" 4816if test -z "$EGREP"; then 4817 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4818echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4819 { (exit 1); exit 1; }; } 4820fi 4821 4822else 4823 ac_cv_path_EGREP=$EGREP 4824fi 4825 4826 4827 fi 4828fi 4829{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4830echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4831 EGREP="$ac_cv_path_EGREP" 4832 4833 4834{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4835echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4836if test "${ac_cv_header_stdc+set}" = set; then 4837 echo $ECHO_N "(cached) $ECHO_C" >&6 4838else 4839 cat >conftest.$ac_ext <<_ACEOF 4840/* confdefs.h. */ 4841_ACEOF 4842cat confdefs.h >>conftest.$ac_ext 4843cat >>conftest.$ac_ext <<_ACEOF 4844/* end confdefs.h. */ 4845#include <stdlib.h> 4846#include <stdarg.h> 4847#include <string.h> 4848#include <float.h> 4849 4850int 4851main () 4852{ 4853 4854 ; 4855 return 0; 4856} 4857_ACEOF 4858rm -f conftest.$ac_objext 4859if { (ac_try="$ac_compile" 4860case "(($ac_try" in 4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4862 *) ac_try_echo=$ac_try;; 4863esac 4864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4865 (eval "$ac_compile") 2>conftest.er1 4866 ac_status=$? 4867 grep -v '^ *+' conftest.er1 >conftest.err 4868 rm -f conftest.er1 4869 cat conftest.err >&5 4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4871 (exit $ac_status); } && { 4872 test -z "$ac_c_werror_flag" || 4873 test ! -s conftest.err 4874 } && test -s conftest.$ac_objext; then 4875 ac_cv_header_stdc=yes 4876else 4877 echo "$as_me: failed program was:" >&5 4878sed 's/^/| /' conftest.$ac_ext >&5 4879 4880 ac_cv_header_stdc=no 4881fi 4882 4883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4884 4885if test $ac_cv_header_stdc = yes; then 4886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4887 cat >conftest.$ac_ext <<_ACEOF 4888/* confdefs.h. */ 4889_ACEOF 4890cat confdefs.h >>conftest.$ac_ext 4891cat >>conftest.$ac_ext <<_ACEOF 4892/* end confdefs.h. */ 4893#include <string.h> 4894 4895_ACEOF 4896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4897 $EGREP "memchr" >/dev/null 2>&1; then 4898 : 4899else 4900 ac_cv_header_stdc=no 4901fi 4902rm -f conftest* 4903 4904fi 4905 4906if test $ac_cv_header_stdc = yes; then 4907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4908 cat >conftest.$ac_ext <<_ACEOF 4909/* confdefs.h. */ 4910_ACEOF 4911cat confdefs.h >>conftest.$ac_ext 4912cat >>conftest.$ac_ext <<_ACEOF 4913/* end confdefs.h. */ 4914#include <stdlib.h> 4915 4916_ACEOF 4917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4918 $EGREP "free" >/dev/null 2>&1; then 4919 : 4920else 4921 ac_cv_header_stdc=no 4922fi 4923rm -f conftest* 4924 4925fi 4926 4927if test $ac_cv_header_stdc = yes; then 4928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4929 if test "$cross_compiling" = yes; then 4930 : 4931else 4932 cat >conftest.$ac_ext <<_ACEOF 4933/* confdefs.h. */ 4934_ACEOF 4935cat confdefs.h >>conftest.$ac_ext 4936cat >>conftest.$ac_ext <<_ACEOF 4937/* end confdefs.h. */ 4938#include <ctype.h> 4939#include <stdlib.h> 4940#if ((' ' & 0x0FF) == 0x020) 4941# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4942# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4943#else 4944# define ISLOWER(c) \ 4945 (('a' <= (c) && (c) <= 'i') \ 4946 || ('j' <= (c) && (c) <= 'r') \ 4947 || ('s' <= (c) && (c) <= 'z')) 4948# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4949#endif 4950 4951#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4952int 4953main () 4954{ 4955 int i; 4956 for (i = 0; i < 256; i++) 4957 if (XOR (islower (i), ISLOWER (i)) 4958 || toupper (i) != TOUPPER (i)) 4959 return 2; 4960 return 0; 4961} 4962_ACEOF 4963rm -f conftest$ac_exeext 4964if { (ac_try="$ac_link" 4965case "(($ac_try" in 4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4967 *) ac_try_echo=$ac_try;; 4968esac 4969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4970 (eval "$ac_link") 2>&5 4971 ac_status=$? 4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4974 { (case "(($ac_try" in 4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4976 *) ac_try_echo=$ac_try;; 4977esac 4978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4979 (eval "$ac_try") 2>&5 4980 ac_status=$? 4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4982 (exit $ac_status); }; }; then 4983 : 4984else 4985 echo "$as_me: program exited with status $ac_status" >&5 4986echo "$as_me: failed program was:" >&5 4987sed 's/^/| /' conftest.$ac_ext >&5 4988 4989( exit $ac_status ) 4990ac_cv_header_stdc=no 4991fi 4992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4993fi 4994 4995 4996fi 4997fi 4998{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4999echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5000if test $ac_cv_header_stdc = yes; then 5001 5002cat >>confdefs.h <<\_ACEOF 5003#define STDC_HEADERS 1 5004_ACEOF 5005 5006fi 5007 5008{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 5009echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 5010if test "${ac_cv_header_sys_wait_h+set}" = set; then 5011 echo $ECHO_N "(cached) $ECHO_C" >&6 5012else 5013 cat >conftest.$ac_ext <<_ACEOF 5014/* confdefs.h. */ 5015_ACEOF 5016cat confdefs.h >>conftest.$ac_ext 5017cat >>conftest.$ac_ext <<_ACEOF 5018/* end confdefs.h. */ 5019#include <sys/types.h> 5020#include <sys/wait.h> 5021#ifndef WEXITSTATUS 5022# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 5023#endif 5024#ifndef WIFEXITED 5025# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5026#endif 5027 5028int 5029main () 5030{ 5031 int s; 5032 wait (&s); 5033 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 5034 ; 5035 return 0; 5036} 5037_ACEOF 5038rm -f conftest.$ac_objext 5039if { (ac_try="$ac_compile" 5040case "(($ac_try" in 5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5042 *) ac_try_echo=$ac_try;; 5043esac 5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5045 (eval "$ac_compile") 2>conftest.er1 5046 ac_status=$? 5047 grep -v '^ *+' conftest.er1 >conftest.err 5048 rm -f conftest.er1 5049 cat conftest.err >&5 5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5051 (exit $ac_status); } && { 5052 test -z "$ac_c_werror_flag" || 5053 test ! -s conftest.err 5054 } && test -s conftest.$ac_objext; then 5055 ac_cv_header_sys_wait_h=yes 5056else 5057 echo "$as_me: failed program was:" >&5 5058sed 's/^/| /' conftest.$ac_ext >&5 5059 5060 ac_cv_header_sys_wait_h=no 5061fi 5062 5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5064fi 5065{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 5066echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 5067if test $ac_cv_header_sys_wait_h = yes; then 5068 5069cat >>confdefs.h <<\_ACEOF 5070#define HAVE_SYS_WAIT_H 1 5071_ACEOF 5072 5073fi 5074 5075# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5086 inttypes.h stdint.h unistd.h 5087do 5088as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5089{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5091if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5092 echo $ECHO_N "(cached) $ECHO_C" >&6 5093else 5094 cat >conftest.$ac_ext <<_ACEOF 5095/* confdefs.h. */ 5096_ACEOF 5097cat confdefs.h >>conftest.$ac_ext 5098cat >>conftest.$ac_ext <<_ACEOF 5099/* end confdefs.h. */ 5100$ac_includes_default 5101 5102#include <$ac_header> 5103_ACEOF 5104rm -f conftest.$ac_objext 5105if { (ac_try="$ac_compile" 5106case "(($ac_try" in 5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5108 *) ac_try_echo=$ac_try;; 5109esac 5110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5111 (eval "$ac_compile") 2>conftest.er1 5112 ac_status=$? 5113 grep -v '^ *+' conftest.er1 >conftest.err 5114 rm -f conftest.er1 5115 cat conftest.err >&5 5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5117 (exit $ac_status); } && { 5118 test -z "$ac_c_werror_flag" || 5119 test ! -s conftest.err 5120 } && test -s conftest.$ac_objext; then 5121 eval "$as_ac_Header=yes" 5122else 5123 echo "$as_me: failed program was:" >&5 5124sed 's/^/| /' conftest.$ac_ext >&5 5125 5126 eval "$as_ac_Header=no" 5127fi 5128 5129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5130fi 5131ac_res=`eval echo '${'$as_ac_Header'}'` 5132 { echo "$as_me:$LINENO: result: $ac_res" >&5 5133echo "${ECHO_T}$ac_res" >&6; } 5134if test `eval echo '${'$as_ac_Header'}'` = yes; then 5135 cat >>confdefs.h <<_ACEOF 5136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5137_ACEOF 5138 5139fi 5140 5141done 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158for ac_header in arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h sys/timeb.h unistd.h 5159do 5160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5162 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5165 echo $ECHO_N "(cached) $ECHO_C" >&6 5166fi 5167ac_res=`eval echo '${'$as_ac_Header'}'` 5168 { echo "$as_me:$LINENO: result: $ac_res" >&5 5169echo "${ECHO_T}$ac_res" >&6; } 5170else 5171 # Is the header compilable? 5172{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5173echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5174cat >conftest.$ac_ext <<_ACEOF 5175/* confdefs.h. */ 5176_ACEOF 5177cat confdefs.h >>conftest.$ac_ext 5178cat >>conftest.$ac_ext <<_ACEOF 5179/* end confdefs.h. */ 5180$ac_includes_default 5181#include <$ac_header> 5182_ACEOF 5183rm -f conftest.$ac_objext 5184if { (ac_try="$ac_compile" 5185case "(($ac_try" in 5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5187 *) ac_try_echo=$ac_try;; 5188esac 5189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5190 (eval "$ac_compile") 2>conftest.er1 5191 ac_status=$? 5192 grep -v '^ *+' conftest.er1 >conftest.err 5193 rm -f conftest.er1 5194 cat conftest.err >&5 5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5196 (exit $ac_status); } && { 5197 test -z "$ac_c_werror_flag" || 5198 test ! -s conftest.err 5199 } && test -s conftest.$ac_objext; then 5200 ac_header_compiler=yes 5201else 5202 echo "$as_me: failed program was:" >&5 5203sed 's/^/| /' conftest.$ac_ext >&5 5204 5205 ac_header_compiler=no 5206fi 5207 5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5209{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5210echo "${ECHO_T}$ac_header_compiler" >&6; } 5211 5212# Is the header present? 5213{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5215cat >conftest.$ac_ext <<_ACEOF 5216/* confdefs.h. */ 5217_ACEOF 5218cat confdefs.h >>conftest.$ac_ext 5219cat >>conftest.$ac_ext <<_ACEOF 5220/* end confdefs.h. */ 5221#include <$ac_header> 5222_ACEOF 5223if { (ac_try="$ac_cpp conftest.$ac_ext" 5224case "(($ac_try" in 5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5226 *) ac_try_echo=$ac_try;; 5227esac 5228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5230 ac_status=$? 5231 grep -v '^ *+' conftest.er1 >conftest.err 5232 rm -f conftest.er1 5233 cat conftest.err >&5 5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5235 (exit $ac_status); } >/dev/null && { 5236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5237 test ! -s conftest.err 5238 }; then 5239 ac_header_preproc=yes 5240else 5241 echo "$as_me: failed program was:" >&5 5242sed 's/^/| /' conftest.$ac_ext >&5 5243 5244 ac_header_preproc=no 5245fi 5246 5247rm -f conftest.err conftest.$ac_ext 5248{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5249echo "${ECHO_T}$ac_header_preproc" >&6; } 5250 5251# So? What about this header? 5252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5253 yes:no: ) 5254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5255echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5257echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5258 ac_header_preproc=yes 5259 ;; 5260 no:yes:* ) 5261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5262echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5264echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5266echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5268echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5270echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5272echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5273 ( cat <<\_ASBOX 5274## --------------------------------- ## 5275## Report this to bill.cheng@acm.org ## 5276## --------------------------------- ## 5277_ASBOX 5278 ) | sed "s/^/$as_me: WARNING: /" >&2 5279 ;; 5280esac 5281{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5284 echo $ECHO_N "(cached) $ECHO_C" >&6 5285else 5286 eval "$as_ac_Header=\$ac_header_preproc" 5287fi 5288ac_res=`eval echo '${'$as_ac_Header'}'` 5289 { echo "$as_me:$LINENO: result: $ac_res" >&5 5290echo "${ECHO_T}$ac_res" >&6; } 5291 5292fi 5293if test `eval echo '${'$as_ac_Header'}'` = yes; then 5294 cat >>confdefs.h <<_ACEOF 5295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5296_ACEOF 5297 5298fi 5299 5300done 5301 5302 5303# Checks for typedefs, structures, and compiler characteristics. 5304{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5305echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 5306if test "${ac_cv_c_const+set}" = set; then 5307 echo $ECHO_N "(cached) $ECHO_C" >&6 5308else 5309 cat >conftest.$ac_ext <<_ACEOF 5310/* confdefs.h. */ 5311_ACEOF 5312cat confdefs.h >>conftest.$ac_ext 5313cat >>conftest.$ac_ext <<_ACEOF 5314/* end confdefs.h. */ 5315 5316int 5317main () 5318{ 5319/* FIXME: Include the comments suggested by Paul. */ 5320#ifndef __cplusplus 5321 /* Ultrix mips cc rejects this. */ 5322 typedef int charset[2]; 5323 const charset cs; 5324 /* SunOS 4.1.1 cc rejects this. */ 5325 char const *const *pcpcc; 5326 char **ppc; 5327 /* NEC SVR4.0.2 mips cc rejects this. */ 5328 struct point {int x, y;}; 5329 static struct point const zero = {0,0}; 5330 /* AIX XL C 1.02.0.0 rejects this. 5331 It does not let you subtract one const X* pointer from another in 5332 an arm of an if-expression whose if-part is not a constant 5333 expression */ 5334 const char *g = "string"; 5335 pcpcc = &g + (g ? g-g : 0); 5336 /* HPUX 7.0 cc rejects these. */ 5337 ++pcpcc; 5338 ppc = (char**) pcpcc; 5339 pcpcc = (char const *const *) ppc; 5340 { /* SCO 3.2v4 cc rejects this. */ 5341 char *t; 5342 char const *s = 0 ? (char *) 0 : (char const *) 0; 5343 5344 *t++ = 0; 5345 if (s) return 0; 5346 } 5347 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5348 int x[] = {25, 17}; 5349 const int *foo = &x[0]; 5350 ++foo; 5351 } 5352 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5353 typedef const int *iptr; 5354 iptr p = 0; 5355 ++p; 5356 } 5357 { /* AIX XL C 1.02.0.0 rejects this saying 5358 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5359 struct s { int j; const int *ap[3]; }; 5360 struct s *b; b->j = 5; 5361 } 5362 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5363 const int foo = 10; 5364 if (!foo) return 0; 5365 } 5366 return !cs[0] && !zero.x; 5367#endif 5368 5369 ; 5370 return 0; 5371} 5372_ACEOF 5373rm -f conftest.$ac_objext 5374if { (ac_try="$ac_compile" 5375case "(($ac_try" in 5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5377 *) ac_try_echo=$ac_try;; 5378esac 5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5380 (eval "$ac_compile") 2>conftest.er1 5381 ac_status=$? 5382 grep -v '^ *+' conftest.er1 >conftest.err 5383 rm -f conftest.er1 5384 cat conftest.err >&5 5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5386 (exit $ac_status); } && { 5387 test -z "$ac_c_werror_flag" || 5388 test ! -s conftest.err 5389 } && test -s conftest.$ac_objext; then 5390 ac_cv_c_const=yes 5391else 5392 echo "$as_me: failed program was:" >&5 5393sed 's/^/| /' conftest.$ac_ext >&5 5394 5395 ac_cv_c_const=no 5396fi 5397 5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5399fi 5400{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5401echo "${ECHO_T}$ac_cv_c_const" >&6; } 5402if test $ac_cv_c_const = no; then 5403 5404cat >>confdefs.h <<\_ACEOF 5405#define const 5406_ACEOF 5407 5408fi 5409 5410{ echo "$as_me:$LINENO: checking for mode_t" >&5 5411echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } 5412if test "${ac_cv_type_mode_t+set}" = set; then 5413 echo $ECHO_N "(cached) $ECHO_C" >&6 5414else 5415 cat >conftest.$ac_ext <<_ACEOF 5416/* confdefs.h. */ 5417_ACEOF 5418cat confdefs.h >>conftest.$ac_ext 5419cat >>conftest.$ac_ext <<_ACEOF 5420/* end confdefs.h. */ 5421$ac_includes_default 5422typedef mode_t ac__type_new_; 5423int 5424main () 5425{ 5426if ((ac__type_new_ *) 0) 5427 return 0; 5428if (sizeof (ac__type_new_)) 5429 return 0; 5430 ; 5431 return 0; 5432} 5433_ACEOF 5434rm -f conftest.$ac_objext 5435if { (ac_try="$ac_compile" 5436case "(($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_compile") 2>conftest.er1 5442 ac_status=$? 5443 grep -v '^ *+' conftest.er1 >conftest.err 5444 rm -f conftest.er1 5445 cat conftest.err >&5 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); } && { 5448 test -z "$ac_c_werror_flag" || 5449 test ! -s conftest.err 5450 } && test -s conftest.$ac_objext; then 5451 ac_cv_type_mode_t=yes 5452else 5453 echo "$as_me: failed program was:" >&5 5454sed 's/^/| /' conftest.$ac_ext >&5 5455 5456 ac_cv_type_mode_t=no 5457fi 5458 5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5460fi 5461{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 5462echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } 5463if test $ac_cv_type_mode_t = yes; then 5464 : 5465else 5466 5467cat >>confdefs.h <<_ACEOF 5468#define mode_t int 5469_ACEOF 5470 5471fi 5472 5473{ echo "$as_me:$LINENO: checking for size_t" >&5 5474echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } 5475if test "${ac_cv_type_size_t+set}" = set; then 5476 echo $ECHO_N "(cached) $ECHO_C" >&6 5477else 5478 cat >conftest.$ac_ext <<_ACEOF 5479/* confdefs.h. */ 5480_ACEOF 5481cat confdefs.h >>conftest.$ac_ext 5482cat >>conftest.$ac_ext <<_ACEOF 5483/* end confdefs.h. */ 5484$ac_includes_default 5485typedef size_t ac__type_new_; 5486int 5487main () 5488{ 5489if ((ac__type_new_ *) 0) 5490 return 0; 5491if (sizeof (ac__type_new_)) 5492 return 0; 5493 ; 5494 return 0; 5495} 5496_ACEOF 5497rm -f conftest.$ac_objext 5498if { (ac_try="$ac_compile" 5499case "(($ac_try" in 5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5501 *) ac_try_echo=$ac_try;; 5502esac 5503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5504 (eval "$ac_compile") 2>conftest.er1 5505 ac_status=$? 5506 grep -v '^ *+' conftest.er1 >conftest.err 5507 rm -f conftest.er1 5508 cat conftest.err >&5 5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5510 (exit $ac_status); } && { 5511 test -z "$ac_c_werror_flag" || 5512 test ! -s conftest.err 5513 } && test -s conftest.$ac_objext; then 5514 ac_cv_type_size_t=yes 5515else 5516 echo "$as_me: failed program was:" >&5 5517sed 's/^/| /' conftest.$ac_ext >&5 5518 5519 ac_cv_type_size_t=no 5520fi 5521 5522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5523fi 5524{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 5525echo "${ECHO_T}$ac_cv_type_size_t" >&6; } 5526if test $ac_cv_type_size_t = yes; then 5527 : 5528else 5529 5530cat >>confdefs.h <<_ACEOF 5531#define size_t unsigned int 5532_ACEOF 5533 5534fi 5535 5536{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 5537echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 5538if test "${ac_cv_header_time+set}" = set; then 5539 echo $ECHO_N "(cached) $ECHO_C" >&6 5540else 5541 cat >conftest.$ac_ext <<_ACEOF 5542/* confdefs.h. */ 5543_ACEOF 5544cat confdefs.h >>conftest.$ac_ext 5545cat >>conftest.$ac_ext <<_ACEOF 5546/* end confdefs.h. */ 5547#include <sys/types.h> 5548#include <sys/time.h> 5549#include <time.h> 5550 5551int 5552main () 5553{ 5554if ((struct tm *) 0) 5555return 0; 5556 ; 5557 return 0; 5558} 5559_ACEOF 5560rm -f conftest.$ac_objext 5561if { (ac_try="$ac_compile" 5562case "(($ac_try" in 5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5564 *) ac_try_echo=$ac_try;; 5565esac 5566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5567 (eval "$ac_compile") 2>conftest.er1 5568 ac_status=$? 5569 grep -v '^ *+' conftest.er1 >conftest.err 5570 rm -f conftest.er1 5571 cat conftest.err >&5 5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5573 (exit $ac_status); } && { 5574 test -z "$ac_c_werror_flag" || 5575 test ! -s conftest.err 5576 } && test -s conftest.$ac_objext; then 5577 ac_cv_header_time=yes 5578else 5579 echo "$as_me: failed program was:" >&5 5580sed 's/^/| /' conftest.$ac_ext >&5 5581 5582 ac_cv_header_time=no 5583fi 5584 5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5586fi 5587{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 5588echo "${ECHO_T}$ac_cv_header_time" >&6; } 5589if test $ac_cv_header_time = yes; then 5590 5591cat >>confdefs.h <<\_ACEOF 5592#define TIME_WITH_SYS_TIME 1 5593_ACEOF 5594 5595fi 5596 5597 5598 { echo "$as_me:$LINENO: checking for uint16_t" >&5 5599echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; } 5600if test "${ac_cv_c_uint16_t+set}" = set; then 5601 echo $ECHO_N "(cached) $ECHO_C" >&6 5602else 5603 ac_cv_c_uint16_t=no 5604 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \ 5605 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 5606 cat >conftest.$ac_ext <<_ACEOF 5607/* confdefs.h. */ 5608_ACEOF 5609cat confdefs.h >>conftest.$ac_ext 5610cat >>conftest.$ac_ext <<_ACEOF 5611/* end confdefs.h. */ 5612$ac_includes_default 5613int 5614main () 5615{ 5616static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)]; 5617test_array [0] = 0 5618 5619 ; 5620 return 0; 5621} 5622_ACEOF 5623rm -f conftest.$ac_objext 5624if { (ac_try="$ac_compile" 5625case "(($ac_try" in 5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5627 *) ac_try_echo=$ac_try;; 5628esac 5629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5630 (eval "$ac_compile") 2>conftest.er1 5631 ac_status=$? 5632 grep -v '^ *+' conftest.er1 >conftest.err 5633 rm -f conftest.er1 5634 cat conftest.err >&5 5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); } && { 5637 test -z "$ac_c_werror_flag" || 5638 test ! -s conftest.err 5639 } && test -s conftest.$ac_objext; then 5640 case $ac_type in 5641 uint16_t) ac_cv_c_uint16_t=yes ;; 5642 *) ac_cv_c_uint16_t=$ac_type ;; 5643esac 5644 5645else 5646 echo "$as_me: failed program was:" >&5 5647sed 's/^/| /' conftest.$ac_ext >&5 5648 5649 5650fi 5651 5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5653 test "$ac_cv_c_uint16_t" != no && break 5654 done 5655fi 5656{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5 5657echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; } 5658 case $ac_cv_c_uint16_t in #( 5659 no|yes) ;; #( 5660 *) 5661 5662 5663cat >>confdefs.h <<_ACEOF 5664#define uint16_t $ac_cv_c_uint16_t 5665_ACEOF 5666;; 5667 esac 5668 5669 5670 { echo "$as_me:$LINENO: checking for uint32_t" >&5 5671echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; } 5672if test "${ac_cv_c_uint32_t+set}" = set; then 5673 echo $ECHO_N "(cached) $ECHO_C" >&6 5674else 5675 ac_cv_c_uint32_t=no 5676 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \ 5677 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 5678 cat >conftest.$ac_ext <<_ACEOF 5679/* confdefs.h. */ 5680_ACEOF 5681cat confdefs.h >>conftest.$ac_ext 5682cat >>conftest.$ac_ext <<_ACEOF 5683/* end confdefs.h. */ 5684$ac_includes_default 5685int 5686main () 5687{ 5688static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)]; 5689test_array [0] = 0 5690 5691 ; 5692 return 0; 5693} 5694_ACEOF 5695rm -f conftest.$ac_objext 5696if { (ac_try="$ac_compile" 5697case "(($ac_try" in 5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5699 *) ac_try_echo=$ac_try;; 5700esac 5701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5702 (eval "$ac_compile") 2>conftest.er1 5703 ac_status=$? 5704 grep -v '^ *+' conftest.er1 >conftest.err 5705 rm -f conftest.er1 5706 cat conftest.err >&5 5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5708 (exit $ac_status); } && { 5709 test -z "$ac_c_werror_flag" || 5710 test ! -s conftest.err 5711 } && test -s conftest.$ac_objext; then 5712 case $ac_type in 5713 uint32_t) ac_cv_c_uint32_t=yes ;; 5714 *) ac_cv_c_uint32_t=$ac_type ;; 5715esac 5716 5717else 5718 echo "$as_me: failed program was:" >&5 5719sed 's/^/| /' conftest.$ac_ext >&5 5720 5721 5722fi 5723 5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5725 test "$ac_cv_c_uint32_t" != no && break 5726 done 5727fi 5728{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5 5729echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; } 5730 case $ac_cv_c_uint32_t in #( 5731 no|yes) ;; #( 5732 *) 5733 5734cat >>confdefs.h <<\_ACEOF 5735#define _UINT32_T 1 5736_ACEOF 5737 5738 5739cat >>confdefs.h <<_ACEOF 5740#define uint32_t $ac_cv_c_uint32_t 5741_ACEOF 5742;; 5743 esac 5744 5745 5746# Checks for library functions. 5747{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5 5748echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } 5749if test "${ac_cv_func_closedir_void+set}" = set; then 5750 echo $ECHO_N "(cached) $ECHO_C" >&6 5751else 5752 if test "$cross_compiling" = yes; then 5753 ac_cv_func_closedir_void=yes 5754else 5755 cat >conftest.$ac_ext <<_ACEOF 5756/* confdefs.h. */ 5757_ACEOF 5758cat confdefs.h >>conftest.$ac_ext 5759cat >>conftest.$ac_ext <<_ACEOF 5760/* end confdefs.h. */ 5761$ac_includes_default 5762#include <$ac_header_dirent> 5763#ifndef __cplusplus 5764int closedir (); 5765#endif 5766 5767int 5768main () 5769{ 5770return closedir (opendir (".")) != 0; 5771 ; 5772 return 0; 5773} 5774_ACEOF 5775rm -f conftest$ac_exeext 5776if { (ac_try="$ac_link" 5777case "(($ac_try" in 5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5779 *) ac_try_echo=$ac_try;; 5780esac 5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5782 (eval "$ac_link") 2>&5 5783 ac_status=$? 5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5786 { (case "(($ac_try" in 5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5788 *) ac_try_echo=$ac_try;; 5789esac 5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5791 (eval "$ac_try") 2>&5 5792 ac_status=$? 5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5794 (exit $ac_status); }; }; then 5795 ac_cv_func_closedir_void=no 5796else 5797 echo "$as_me: program exited with status $ac_status" >&5 5798echo "$as_me: failed program was:" >&5 5799sed 's/^/| /' conftest.$ac_ext >&5 5800 5801( exit $ac_status ) 5802ac_cv_func_closedir_void=yes 5803fi 5804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5805fi 5806 5807 5808fi 5809{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 5810echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } 5811if test $ac_cv_func_closedir_void = yes; then 5812 5813cat >>confdefs.h <<\_ACEOF 5814#define CLOSEDIR_VOID 1 5815_ACEOF 5816 5817fi 5818 5819{ echo "$as_me:$LINENO: checking for pid_t" >&5 5820echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } 5821if test "${ac_cv_type_pid_t+set}" = set; then 5822 echo $ECHO_N "(cached) $ECHO_C" >&6 5823else 5824 cat >conftest.$ac_ext <<_ACEOF 5825/* confdefs.h. */ 5826_ACEOF 5827cat confdefs.h >>conftest.$ac_ext 5828cat >>conftest.$ac_ext <<_ACEOF 5829/* end confdefs.h. */ 5830$ac_includes_default 5831typedef pid_t ac__type_new_; 5832int 5833main () 5834{ 5835if ((ac__type_new_ *) 0) 5836 return 0; 5837if (sizeof (ac__type_new_)) 5838 return 0; 5839 ; 5840 return 0; 5841} 5842_ACEOF 5843rm -f conftest.$ac_objext 5844if { (ac_try="$ac_compile" 5845case "(($ac_try" in 5846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5847 *) ac_try_echo=$ac_try;; 5848esac 5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5850 (eval "$ac_compile") 2>conftest.er1 5851 ac_status=$? 5852 grep -v '^ *+' conftest.er1 >conftest.err 5853 rm -f conftest.er1 5854 cat conftest.err >&5 5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5856 (exit $ac_status); } && { 5857 test -z "$ac_c_werror_flag" || 5858 test ! -s conftest.err 5859 } && test -s conftest.$ac_objext; then 5860 ac_cv_type_pid_t=yes 5861else 5862 echo "$as_me: failed program was:" >&5 5863sed 's/^/| /' conftest.$ac_ext >&5 5864 5865 ac_cv_type_pid_t=no 5866fi 5867 5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5869fi 5870{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 5871echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } 5872if test $ac_cv_type_pid_t = yes; then 5873 : 5874else 5875 5876cat >>confdefs.h <<_ACEOF 5877#define pid_t int 5878_ACEOF 5879 5880fi 5881 5882 5883for ac_header in vfork.h 5884do 5885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5886if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5887 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5890 echo $ECHO_N "(cached) $ECHO_C" >&6 5891fi 5892ac_res=`eval echo '${'$as_ac_Header'}'` 5893 { echo "$as_me:$LINENO: result: $ac_res" >&5 5894echo "${ECHO_T}$ac_res" >&6; } 5895else 5896 # Is the header compilable? 5897{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5899cat >conftest.$ac_ext <<_ACEOF 5900/* confdefs.h. */ 5901_ACEOF 5902cat confdefs.h >>conftest.$ac_ext 5903cat >>conftest.$ac_ext <<_ACEOF 5904/* end confdefs.h. */ 5905$ac_includes_default 5906#include <$ac_header> 5907_ACEOF 5908rm -f conftest.$ac_objext 5909if { (ac_try="$ac_compile" 5910case "(($ac_try" in 5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5912 *) ac_try_echo=$ac_try;; 5913esac 5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5915 (eval "$ac_compile") 2>conftest.er1 5916 ac_status=$? 5917 grep -v '^ *+' conftest.er1 >conftest.err 5918 rm -f conftest.er1 5919 cat conftest.err >&5 5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5921 (exit $ac_status); } && { 5922 test -z "$ac_c_werror_flag" || 5923 test ! -s conftest.err 5924 } && test -s conftest.$ac_objext; then 5925 ac_header_compiler=yes 5926else 5927 echo "$as_me: failed program was:" >&5 5928sed 's/^/| /' conftest.$ac_ext >&5 5929 5930 ac_header_compiler=no 5931fi 5932 5933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5934{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5935echo "${ECHO_T}$ac_header_compiler" >&6; } 5936 5937# Is the header present? 5938{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5940cat >conftest.$ac_ext <<_ACEOF 5941/* confdefs.h. */ 5942_ACEOF 5943cat confdefs.h >>conftest.$ac_ext 5944cat >>conftest.$ac_ext <<_ACEOF 5945/* end confdefs.h. */ 5946#include <$ac_header> 5947_ACEOF 5948if { (ac_try="$ac_cpp conftest.$ac_ext" 5949case "(($ac_try" in 5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5951 *) ac_try_echo=$ac_try;; 5952esac 5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5955 ac_status=$? 5956 grep -v '^ *+' conftest.er1 >conftest.err 5957 rm -f conftest.er1 5958 cat conftest.err >&5 5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5960 (exit $ac_status); } >/dev/null && { 5961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5962 test ! -s conftest.err 5963 }; then 5964 ac_header_preproc=yes 5965else 5966 echo "$as_me: failed program was:" >&5 5967sed 's/^/| /' conftest.$ac_ext >&5 5968 5969 ac_header_preproc=no 5970fi 5971 5972rm -f conftest.err conftest.$ac_ext 5973{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5974echo "${ECHO_T}$ac_header_preproc" >&6; } 5975 5976# So? What about this header? 5977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5978 yes:no: ) 5979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5980echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5982echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5983 ac_header_preproc=yes 5984 ;; 5985 no:yes:* ) 5986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5987echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5989echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5991echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5993echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5995echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5997echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5998 ( cat <<\_ASBOX 5999## --------------------------------- ## 6000## Report this to bill.cheng@acm.org ## 6001## --------------------------------- ## 6002_ASBOX 6003 ) | sed "s/^/$as_me: WARNING: /" >&2 6004 ;; 6005esac 6006{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6009 echo $ECHO_N "(cached) $ECHO_C" >&6 6010else 6011 eval "$as_ac_Header=\$ac_header_preproc" 6012fi 6013ac_res=`eval echo '${'$as_ac_Header'}'` 6014 { echo "$as_me:$LINENO: result: $ac_res" >&5 6015echo "${ECHO_T}$ac_res" >&6; } 6016 6017fi 6018if test `eval echo '${'$as_ac_Header'}'` = yes; then 6019 cat >>confdefs.h <<_ACEOF 6020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6021_ACEOF 6022 6023fi 6024 6025done 6026 6027 6028 6029for ac_func in fork vfork 6030do 6031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6032{ echo "$as_me:$LINENO: checking for $ac_func" >&5 6033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 6034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 6035 echo $ECHO_N "(cached) $ECHO_C" >&6 6036else 6037 cat >conftest.$ac_ext <<_ACEOF 6038/* confdefs.h. */ 6039_ACEOF 6040cat confdefs.h >>conftest.$ac_ext 6041cat >>conftest.$ac_ext <<_ACEOF 6042/* end confdefs.h. */ 6043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6044 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6045#define $ac_func innocuous_$ac_func 6046 6047/* System header to define __stub macros and hopefully few prototypes, 6048 which can conflict with char $ac_func (); below. 6049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6050 <limits.h> exists even on freestanding compilers. */ 6051 6052#ifdef __STDC__ 6053# include <limits.h> 6054#else 6055# include <assert.h> 6056#endif 6057 6058#undef $ac_func 6059 6060/* Override any GCC internal prototype to avoid an error. 6061 Use char because int might match the return type of a GCC 6062 builtin and then its argument prototype would still apply. */ 6063#ifdef __cplusplus 6064extern "C" 6065#endif 6066char $ac_func (); 6067/* The GNU C library defines this for functions which it implements 6068 to always fail with ENOSYS. Some functions are actually named 6069 something starting with __ and the normal name is an alias. */ 6070#if defined __stub_$ac_func || defined __stub___$ac_func 6071choke me 6072#endif 6073 6074int 6075main () 6076{ 6077return $ac_func (); 6078 ; 6079 return 0; 6080} 6081_ACEOF 6082rm -f conftest.$ac_objext conftest$ac_exeext 6083if { (ac_try="$ac_link" 6084case "(($ac_try" in 6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6086 *) ac_try_echo=$ac_try;; 6087esac 6088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6089 (eval "$ac_link") 2>conftest.er1 6090 ac_status=$? 6091 grep -v '^ *+' conftest.er1 >conftest.err 6092 rm -f conftest.er1 6093 cat conftest.err >&5 6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6095 (exit $ac_status); } && { 6096 test -z "$ac_c_werror_flag" || 6097 test ! -s conftest.err 6098 } && test -s conftest$ac_exeext && 6099 $as_test_x conftest$ac_exeext; then 6100 eval "$as_ac_var=yes" 6101else 6102 echo "$as_me: failed program was:" >&5 6103sed 's/^/| /' conftest.$ac_ext >&5 6104 6105 eval "$as_ac_var=no" 6106fi 6107 6108rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6109 conftest$ac_exeext conftest.$ac_ext 6110fi 6111ac_res=`eval echo '${'$as_ac_var'}'` 6112 { echo "$as_me:$LINENO: result: $ac_res" >&5 6113echo "${ECHO_T}$ac_res" >&6; } 6114if test `eval echo '${'$as_ac_var'}'` = yes; then 6115 cat >>confdefs.h <<_ACEOF 6116#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6117_ACEOF 6118 6119fi 6120done 6121 6122if test "x$ac_cv_func_fork" = xyes; then 6123 { echo "$as_me:$LINENO: checking for working fork" >&5 6124echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } 6125if test "${ac_cv_func_fork_works+set}" = set; then 6126 echo $ECHO_N "(cached) $ECHO_C" >&6 6127else 6128 if test "$cross_compiling" = yes; then 6129 ac_cv_func_fork_works=cross 6130else 6131 cat >conftest.$ac_ext <<_ACEOF 6132/* confdefs.h. */ 6133_ACEOF 6134cat confdefs.h >>conftest.$ac_ext 6135cat >>conftest.$ac_ext <<_ACEOF 6136/* end confdefs.h. */ 6137$ac_includes_default 6138int 6139main () 6140{ 6141 6142 /* By Ruediger Kuhlmann. */ 6143 return fork () < 0; 6144 6145 ; 6146 return 0; 6147} 6148_ACEOF 6149rm -f conftest$ac_exeext 6150if { (ac_try="$ac_link" 6151case "(($ac_try" in 6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6153 *) ac_try_echo=$ac_try;; 6154esac 6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6156 (eval "$ac_link") 2>&5 6157 ac_status=$? 6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6159 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 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); }; }; then 6169 ac_cv_func_fork_works=yes 6170else 6171 echo "$as_me: program exited with status $ac_status" >&5 6172echo "$as_me: failed program was:" >&5 6173sed 's/^/| /' conftest.$ac_ext >&5 6174 6175( exit $ac_status ) 6176ac_cv_func_fork_works=no 6177fi 6178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6179fi 6180 6181 6182fi 6183{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 6184echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } 6185 6186else 6187 ac_cv_func_fork_works=$ac_cv_func_fork 6188fi 6189if test "x$ac_cv_func_fork_works" = xcross; then 6190 case $host in 6191 *-*-amigaos* | *-*-msdosdjgpp*) 6192 # Override, as these systems have only a dummy fork() stub 6193 ac_cv_func_fork_works=no 6194 ;; 6195 *) 6196 ac_cv_func_fork_works=yes 6197 ;; 6198 esac 6199 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 6200echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 6201fi 6202ac_cv_func_vfork_works=$ac_cv_func_vfork 6203if test "x$ac_cv_func_vfork" = xyes; then 6204 { echo "$as_me:$LINENO: checking for working vfork" >&5 6205echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } 6206if test "${ac_cv_func_vfork_works+set}" = set; then 6207 echo $ECHO_N "(cached) $ECHO_C" >&6 6208else 6209 if test "$cross_compiling" = yes; then 6210 ac_cv_func_vfork_works=cross 6211else 6212 cat >conftest.$ac_ext <<_ACEOF 6213/* confdefs.h. */ 6214_ACEOF 6215cat confdefs.h >>conftest.$ac_ext 6216cat >>conftest.$ac_ext <<_ACEOF 6217/* end confdefs.h. */ 6218/* Thanks to Paul Eggert for this test. */ 6219$ac_includes_default 6220#include <sys/wait.h> 6221#ifdef HAVE_VFORK_H 6222# include <vfork.h> 6223#endif 6224/* On some sparc systems, changes by the child to local and incoming 6225 argument registers are propagated back to the parent. The compiler 6226 is told about this with #include <vfork.h>, but some compilers 6227 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 6228 static variable whose address is put into a register that is 6229 clobbered by the vfork. */ 6230static void 6231#ifdef __cplusplus 6232sparc_address_test (int arg) 6233# else 6234sparc_address_test (arg) int arg; 6235#endif 6236{ 6237 static pid_t child; 6238 if (!child) { 6239 child = vfork (); 6240 if (child < 0) { 6241 perror ("vfork"); 6242 _exit(2); 6243 } 6244 if (!child) { 6245 arg = getpid(); 6246 write(-1, "", 0); 6247 _exit (arg); 6248 } 6249 } 6250} 6251 6252int 6253main () 6254{ 6255 pid_t parent = getpid (); 6256 pid_t child; 6257 6258 sparc_address_test (0); 6259 6260 child = vfork (); 6261 6262 if (child == 0) { 6263 /* Here is another test for sparc vfork register problems. This 6264 test uses lots of local variables, at least as many local 6265 variables as main has allocated so far including compiler 6266 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 6267 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 6268 reuse the register of parent for one of the local variables, 6269 since it will think that parent can't possibly be used any more 6270 in this routine. Assigning to the local variable will thus 6271 munge parent in the parent process. */ 6272 pid_t 6273 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 6274 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 6275 /* Convince the compiler that p..p7 are live; otherwise, it might 6276 use the same hardware register for all 8 local variables. */ 6277 if (p != p1 || p != p2 || p != p3 || p != p4 6278 || p != p5 || p != p6 || p != p7) 6279 _exit(1); 6280 6281 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 6282 from child file descriptors. If the child closes a descriptor 6283 before it execs or exits, this munges the parent's descriptor 6284 as well. Test for this by closing stdout in the child. */ 6285 _exit(close(fileno(stdout)) != 0); 6286 } else { 6287 int status; 6288 struct stat st; 6289 6290 while (wait(&status) != child) 6291 ; 6292 return ( 6293 /* Was there some problem with vforking? */ 6294 child < 0 6295 6296 /* Did the child fail? (This shouldn't happen.) */ 6297 || status 6298 6299 /* Did the vfork/compiler bug occur? */ 6300 || parent != getpid() 6301 6302 /* Did the file descriptor bug occur? */ 6303 || fstat(fileno(stdout), &st) != 0 6304 ); 6305 } 6306} 6307_ACEOF 6308rm -f conftest$ac_exeext 6309if { (ac_try="$ac_link" 6310case "(($ac_try" in 6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6312 *) ac_try_echo=$ac_try;; 6313esac 6314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6315 (eval "$ac_link") 2>&5 6316 ac_status=$? 6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6319 { (case "(($ac_try" in 6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6321 *) ac_try_echo=$ac_try;; 6322esac 6323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6324 (eval "$ac_try") 2>&5 6325 ac_status=$? 6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6327 (exit $ac_status); }; }; then 6328 ac_cv_func_vfork_works=yes 6329else 6330 echo "$as_me: program exited with status $ac_status" >&5 6331echo "$as_me: failed program was:" >&5 6332sed 's/^/| /' conftest.$ac_ext >&5 6333 6334( exit $ac_status ) 6335ac_cv_func_vfork_works=no 6336fi 6337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6338fi 6339 6340 6341fi 6342{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 6343echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } 6344 6345fi; 6346if test "x$ac_cv_func_fork_works" = xcross; then 6347 ac_cv_func_vfork_works=$ac_cv_func_vfork 6348 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 6349echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 6350fi 6351 6352if test "x$ac_cv_func_vfork_works" = xyes; then 6353 6354cat >>confdefs.h <<\_ACEOF 6355#define HAVE_WORKING_VFORK 1 6356_ACEOF 6357 6358else 6359 6360cat >>confdefs.h <<\_ACEOF 6361#define vfork fork 6362_ACEOF 6363 6364fi 6365if test "x$ac_cv_func_fork_works" = xyes; then 6366 6367cat >>confdefs.h <<\_ACEOF 6368#define HAVE_WORKING_FORK 1 6369_ACEOF 6370 6371fi 6372 6373if test $ac_cv_c_compiler_gnu = yes; then 6374 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 6375echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } 6376if test "${ac_cv_prog_gcc_traditional+set}" = set; then 6377 echo $ECHO_N "(cached) $ECHO_C" >&6 6378else 6379 ac_pattern="Autoconf.*'x'" 6380 cat >conftest.$ac_ext <<_ACEOF 6381/* confdefs.h. */ 6382_ACEOF 6383cat confdefs.h >>conftest.$ac_ext 6384cat >>conftest.$ac_ext <<_ACEOF 6385/* end confdefs.h. */ 6386#include <sgtty.h> 6387Autoconf TIOCGETP 6388_ACEOF 6389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6390 $EGREP "$ac_pattern" >/dev/null 2>&1; then 6391 ac_cv_prog_gcc_traditional=yes 6392else 6393 ac_cv_prog_gcc_traditional=no 6394fi 6395rm -f conftest* 6396 6397 6398 if test $ac_cv_prog_gcc_traditional = no; then 6399 cat >conftest.$ac_ext <<_ACEOF 6400/* confdefs.h. */ 6401_ACEOF 6402cat confdefs.h >>conftest.$ac_ext 6403cat >>conftest.$ac_ext <<_ACEOF 6404/* end confdefs.h. */ 6405#include <termio.h> 6406Autoconf TCGETA 6407_ACEOF 6408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6409 $EGREP "$ac_pattern" >/dev/null 2>&1; then 6410 ac_cv_prog_gcc_traditional=yes 6411fi 6412rm -f conftest* 6413 6414 fi 6415fi 6416{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 6417echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } 6418 if test $ac_cv_prog_gcc_traditional = yes; then 6419 CC="$CC -traditional" 6420 fi 6421fi 6422 6423{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 6424echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } 6425if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then 6426 echo $ECHO_N "(cached) $ECHO_C" >&6 6427else 6428 rm -f conftest.sym conftest.file 6429echo >conftest.file 6430if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 6431 if test "$cross_compiling" = yes; then 6432 ac_cv_func_lstat_dereferences_slashed_symlink=no 6433else 6434 cat >conftest.$ac_ext <<_ACEOF 6435/* confdefs.h. */ 6436_ACEOF 6437cat confdefs.h >>conftest.$ac_ext 6438cat >>conftest.$ac_ext <<_ACEOF 6439/* end confdefs.h. */ 6440$ac_includes_default 6441int 6442main () 6443{ 6444struct stat sbuf; 6445 /* Linux will dereference the symlink and fail. 6446 That is better in the sense that it means we will not 6447 have to compile and use the lstat wrapper. */ 6448 return lstat ("conftest.sym/", &sbuf) == 0; 6449 ; 6450 return 0; 6451} 6452_ACEOF 6453rm -f conftest$ac_exeext 6454if { (ac_try="$ac_link" 6455case "(($ac_try" in 6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6457 *) ac_try_echo=$ac_try;; 6458esac 6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6460 (eval "$ac_link") 2>&5 6461 ac_status=$? 6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6464 { (case "(($ac_try" in 6465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6466 *) ac_try_echo=$ac_try;; 6467esac 6468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6469 (eval "$ac_try") 2>&5 6470 ac_status=$? 6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6472 (exit $ac_status); }; }; then 6473 ac_cv_func_lstat_dereferences_slashed_symlink=yes 6474else 6475 echo "$as_me: program exited with status $ac_status" >&5 6476echo "$as_me: failed program was:" >&5 6477sed 's/^/| /' conftest.$ac_ext >&5 6478 6479( exit $ac_status ) 6480ac_cv_func_lstat_dereferences_slashed_symlink=no 6481fi 6482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6483fi 6484 6485 6486else 6487 # If the `ln -s' command failed, then we probably don't even 6488 # have an lstat function. 6489 ac_cv_func_lstat_dereferences_slashed_symlink=no 6490fi 6491rm -f conftest.sym conftest.file 6492 6493fi 6494{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 6495echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 6496 6497test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 6498 6499cat >>confdefs.h <<_ACEOF 6500#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 6501_ACEOF 6502 6503 6504if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then 6505 case " $LIBOBJS " in 6506 *" lstat.$ac_objext "* ) ;; 6507 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 6508 ;; 6509esac 6510 6511fi 6512 6513{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 6514echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } 6515if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then 6516 echo $ECHO_N "(cached) $ECHO_C" >&6 6517else 6518 if test "$cross_compiling" = yes; then 6519 ac_cv_func_lstat_empty_string_bug=yes 6520else 6521 cat >conftest.$ac_ext <<_ACEOF 6522/* confdefs.h. */ 6523_ACEOF 6524cat confdefs.h >>conftest.$ac_ext 6525cat >>conftest.$ac_ext <<_ACEOF 6526/* end confdefs.h. */ 6527$ac_includes_default 6528int 6529main () 6530{ 6531struct stat sbuf; 6532 return lstat ("", &sbuf) == 0; 6533 ; 6534 return 0; 6535} 6536_ACEOF 6537rm -f conftest$ac_exeext 6538if { (ac_try="$ac_link" 6539case "(($ac_try" in 6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6541 *) ac_try_echo=$ac_try;; 6542esac 6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6544 (eval "$ac_link") 2>&5 6545 ac_status=$? 6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6548 { (case "(($ac_try" in 6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6550 *) ac_try_echo=$ac_try;; 6551esac 6552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6553 (eval "$ac_try") 2>&5 6554 ac_status=$? 6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6556 (exit $ac_status); }; }; then 6557 ac_cv_func_lstat_empty_string_bug=no 6558else 6559 echo "$as_me: program exited with status $ac_status" >&5 6560echo "$as_me: failed program was:" >&5 6561sed 's/^/| /' conftest.$ac_ext >&5 6562 6563( exit $ac_status ) 6564ac_cv_func_lstat_empty_string_bug=yes 6565fi 6566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6567fi 6568 6569 6570fi 6571{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 6572echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } 6573if test $ac_cv_func_lstat_empty_string_bug = yes; then 6574 case " $LIBOBJS " in 6575 *" lstat.$ac_objext "* ) ;; 6576 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 6577 ;; 6578esac 6579 6580 6581cat >>confdefs.h <<_ACEOF 6582#define HAVE_LSTAT_EMPTY_STRING_BUG 1 6583_ACEOF 6584 6585fi 6586 6587{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 6588echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } 6589if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then 6590 echo $ECHO_N "(cached) $ECHO_C" >&6 6591else 6592 rm -f conftest.sym conftest.file 6593echo >conftest.file 6594if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 6595 if test "$cross_compiling" = yes; then 6596 ac_cv_func_lstat_dereferences_slashed_symlink=no 6597else 6598 cat >conftest.$ac_ext <<_ACEOF 6599/* confdefs.h. */ 6600_ACEOF 6601cat confdefs.h >>conftest.$ac_ext 6602cat >>conftest.$ac_ext <<_ACEOF 6603/* end confdefs.h. */ 6604$ac_includes_default 6605int 6606main () 6607{ 6608struct stat sbuf; 6609 /* Linux will dereference the symlink and fail. 6610 That is better in the sense that it means we will not 6611 have to compile and use the lstat wrapper. */ 6612 return lstat ("conftest.sym/", &sbuf) == 0; 6613 ; 6614 return 0; 6615} 6616_ACEOF 6617rm -f conftest$ac_exeext 6618if { (ac_try="$ac_link" 6619case "(($ac_try" in 6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6621 *) ac_try_echo=$ac_try;; 6622esac 6623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6624 (eval "$ac_link") 2>&5 6625 ac_status=$? 6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6628 { (case "(($ac_try" in 6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6630 *) ac_try_echo=$ac_try;; 6631esac 6632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6633 (eval "$ac_try") 2>&5 6634 ac_status=$? 6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6636 (exit $ac_status); }; }; then 6637 ac_cv_func_lstat_dereferences_slashed_symlink=yes 6638else 6639 echo "$as_me: program exited with status $ac_status" >&5 6640echo "$as_me: failed program was:" >&5 6641sed 's/^/| /' conftest.$ac_ext >&5 6642 6643( exit $ac_status ) 6644ac_cv_func_lstat_dereferences_slashed_symlink=no 6645fi 6646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6647fi 6648 6649 6650else 6651 # If the `ln -s' command failed, then we probably don't even 6652 # have an lstat function. 6653 ac_cv_func_lstat_dereferences_slashed_symlink=no 6654fi 6655rm -f conftest.sym conftest.file 6656 6657fi 6658{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 6659echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 6660 6661test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 6662 6663cat >>confdefs.h <<_ACEOF 6664#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 6665_ACEOF 6666 6667 6668if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then 6669 case " $LIBOBJS " in 6670 *" lstat.$ac_objext "* ) ;; 6671 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 6672 ;; 6673esac 6674 6675fi 6676 6677 6678for ac_header in stdlib.h 6679do 6680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6682 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6685 echo $ECHO_N "(cached) $ECHO_C" >&6 6686fi 6687ac_res=`eval echo '${'$as_ac_Header'}'` 6688 { echo "$as_me:$LINENO: result: $ac_res" >&5 6689echo "${ECHO_T}$ac_res" >&6; } 6690else 6691 # Is the header compilable? 6692{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6694cat >conftest.$ac_ext <<_ACEOF 6695/* confdefs.h. */ 6696_ACEOF 6697cat confdefs.h >>conftest.$ac_ext 6698cat >>conftest.$ac_ext <<_ACEOF 6699/* end confdefs.h. */ 6700$ac_includes_default 6701#include <$ac_header> 6702_ACEOF 6703rm -f conftest.$ac_objext 6704if { (ac_try="$ac_compile" 6705case "(($ac_try" in 6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6707 *) ac_try_echo=$ac_try;; 6708esac 6709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6710 (eval "$ac_compile") 2>conftest.er1 6711 ac_status=$? 6712 grep -v '^ *+' conftest.er1 >conftest.err 6713 rm -f conftest.er1 6714 cat conftest.err >&5 6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6716 (exit $ac_status); } && { 6717 test -z "$ac_c_werror_flag" || 6718 test ! -s conftest.err 6719 } && test -s conftest.$ac_objext; then 6720 ac_header_compiler=yes 6721else 6722 echo "$as_me: failed program was:" >&5 6723sed 's/^/| /' conftest.$ac_ext >&5 6724 6725 ac_header_compiler=no 6726fi 6727 6728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6729{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6730echo "${ECHO_T}$ac_header_compiler" >&6; } 6731 6732# Is the header present? 6733{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6734echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6735cat >conftest.$ac_ext <<_ACEOF 6736/* confdefs.h. */ 6737_ACEOF 6738cat confdefs.h >>conftest.$ac_ext 6739cat >>conftest.$ac_ext <<_ACEOF 6740/* end confdefs.h. */ 6741#include <$ac_header> 6742_ACEOF 6743if { (ac_try="$ac_cpp conftest.$ac_ext" 6744case "(($ac_try" in 6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6746 *) ac_try_echo=$ac_try;; 6747esac 6748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6750 ac_status=$? 6751 grep -v '^ *+' conftest.er1 >conftest.err 6752 rm -f conftest.er1 6753 cat conftest.err >&5 6754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6755 (exit $ac_status); } >/dev/null && { 6756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6757 test ! -s conftest.err 6758 }; then 6759 ac_header_preproc=yes 6760else 6761 echo "$as_me: failed program was:" >&5 6762sed 's/^/| /' conftest.$ac_ext >&5 6763 6764 ac_header_preproc=no 6765fi 6766 6767rm -f conftest.err conftest.$ac_ext 6768{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6769echo "${ECHO_T}$ac_header_preproc" >&6; } 6770 6771# So? What about this header? 6772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6773 yes:no: ) 6774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6775echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6777echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6778 ac_header_preproc=yes 6779 ;; 6780 no:yes:* ) 6781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6782echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6784echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6786echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6788echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6790echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6792echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6793 ( cat <<\_ASBOX 6794## --------------------------------- ## 6795## Report this to bill.cheng@acm.org ## 6796## --------------------------------- ## 6797_ASBOX 6798 ) | sed "s/^/$as_me: WARNING: /" >&2 6799 ;; 6800esac 6801{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6804 echo $ECHO_N "(cached) $ECHO_C" >&6 6805else 6806 eval "$as_ac_Header=\$ac_header_preproc" 6807fi 6808ac_res=`eval echo '${'$as_ac_Header'}'` 6809 { echo "$as_me:$LINENO: result: $ac_res" >&5 6810echo "${ECHO_T}$ac_res" >&6; } 6811 6812fi 6813if test `eval echo '${'$as_ac_Header'}'` = yes; then 6814 cat >>confdefs.h <<_ACEOF 6815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6816_ACEOF 6817 6818fi 6819 6820done 6821 6822{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 6823echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; } 6824if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 6825 echo $ECHO_N "(cached) $ECHO_C" >&6 6826else 6827 if test "$cross_compiling" = yes; then 6828 ac_cv_func_malloc_0_nonnull=no 6829else 6830 cat >conftest.$ac_ext <<_ACEOF 6831/* confdefs.h. */ 6832_ACEOF 6833cat confdefs.h >>conftest.$ac_ext 6834cat >>conftest.$ac_ext <<_ACEOF 6835/* end confdefs.h. */ 6836#if defined STDC_HEADERS || defined HAVE_STDLIB_H 6837# include <stdlib.h> 6838#else 6839char *malloc (); 6840#endif 6841 6842int 6843main () 6844{ 6845return ! malloc (0); 6846 ; 6847 return 0; 6848} 6849_ACEOF 6850rm -f conftest$ac_exeext 6851if { (ac_try="$ac_link" 6852case "(($ac_try" in 6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6854 *) ac_try_echo=$ac_try;; 6855esac 6856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6857 (eval "$ac_link") 2>&5 6858 ac_status=$? 6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6861 { (case "(($ac_try" in 6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6863 *) ac_try_echo=$ac_try;; 6864esac 6865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6866 (eval "$ac_try") 2>&5 6867 ac_status=$? 6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6869 (exit $ac_status); }; }; then 6870 ac_cv_func_malloc_0_nonnull=yes 6871else 6872 echo "$as_me: program exited with status $ac_status" >&5 6873echo "$as_me: failed program was:" >&5 6874sed 's/^/| /' conftest.$ac_ext >&5 6875 6876( exit $ac_status ) 6877ac_cv_func_malloc_0_nonnull=no 6878fi 6879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6880fi 6881 6882 6883fi 6884{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 6885echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; } 6886if test $ac_cv_func_malloc_0_nonnull = yes; then 6887 6888cat >>confdefs.h <<\_ACEOF 6889#define HAVE_MALLOC 1 6890_ACEOF 6891 6892else 6893 cat >>confdefs.h <<\_ACEOF 6894#define HAVE_MALLOC 0 6895_ACEOF 6896 6897 case " $LIBOBJS " in 6898 *" malloc.$ac_objext "* ) ;; 6899 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 6900 ;; 6901esac 6902 6903 6904cat >>confdefs.h <<\_ACEOF 6905#define malloc rpl_malloc 6906_ACEOF 6907 6908fi 6909 6910 6911 6912{ echo "$as_me:$LINENO: checking for working memcmp" >&5 6913echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } 6914if test "${ac_cv_func_memcmp_working+set}" = set; then 6915 echo $ECHO_N "(cached) $ECHO_C" >&6 6916else 6917 if test "$cross_compiling" = yes; then 6918 ac_cv_func_memcmp_working=no 6919else 6920 cat >conftest.$ac_ext <<_ACEOF 6921/* confdefs.h. */ 6922_ACEOF 6923cat confdefs.h >>conftest.$ac_ext 6924cat >>conftest.$ac_ext <<_ACEOF 6925/* end confdefs.h. */ 6926$ac_includes_default 6927int 6928main () 6929{ 6930 6931 /* Some versions of memcmp are not 8-bit clean. */ 6932 char c0 = '\100', c1 = '\200', c2 = '\201'; 6933 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 6934 return 1; 6935 6936 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 6937 or more and with at least one buffer not starting on a 4-byte boundary. 6938 William Lewis provided this test program. */ 6939 { 6940 char foo[21]; 6941 char bar[21]; 6942 int i; 6943 for (i = 0; i < 4; i++) 6944 { 6945 char *a = foo + i; 6946 char *b = bar + i; 6947 strcpy (a, "--------01111111"); 6948 strcpy (b, "--------10000000"); 6949 if (memcmp (a, b, 16) >= 0) 6950 return 1; 6951 } 6952 return 0; 6953 } 6954 6955 ; 6956 return 0; 6957} 6958_ACEOF 6959rm -f conftest$ac_exeext 6960if { (ac_try="$ac_link" 6961case "(($ac_try" in 6962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6963 *) ac_try_echo=$ac_try;; 6964esac 6965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6966 (eval "$ac_link") 2>&5 6967 ac_status=$? 6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6970 { (case "(($ac_try" in 6971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6972 *) ac_try_echo=$ac_try;; 6973esac 6974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6975 (eval "$ac_try") 2>&5 6976 ac_status=$? 6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6978 (exit $ac_status); }; }; then 6979 ac_cv_func_memcmp_working=yes 6980else 6981 echo "$as_me: program exited with status $ac_status" >&5 6982echo "$as_me: failed program was:" >&5 6983sed 's/^/| /' conftest.$ac_ext >&5 6984 6985( exit $ac_status ) 6986ac_cv_func_memcmp_working=no 6987fi 6988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6989fi 6990 6991 6992fi 6993{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 6994echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } 6995test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 6996 *" memcmp.$ac_objext "* ) ;; 6997 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 6998 ;; 6999esac 7000 7001 7002 7003for ac_header in stdlib.h 7004do 7005as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7006if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7007 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7010 echo $ECHO_N "(cached) $ECHO_C" >&6 7011fi 7012ac_res=`eval echo '${'$as_ac_Header'}'` 7013 { echo "$as_me:$LINENO: result: $ac_res" >&5 7014echo "${ECHO_T}$ac_res" >&6; } 7015else 7016 # Is the header compilable? 7017{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7019cat >conftest.$ac_ext <<_ACEOF 7020/* confdefs.h. */ 7021_ACEOF 7022cat confdefs.h >>conftest.$ac_ext 7023cat >>conftest.$ac_ext <<_ACEOF 7024/* end confdefs.h. */ 7025$ac_includes_default 7026#include <$ac_header> 7027_ACEOF 7028rm -f conftest.$ac_objext 7029if { (ac_try="$ac_compile" 7030case "(($ac_try" in 7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7032 *) ac_try_echo=$ac_try;; 7033esac 7034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7035 (eval "$ac_compile") 2>conftest.er1 7036 ac_status=$? 7037 grep -v '^ *+' conftest.er1 >conftest.err 7038 rm -f conftest.er1 7039 cat conftest.err >&5 7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7041 (exit $ac_status); } && { 7042 test -z "$ac_c_werror_flag" || 7043 test ! -s conftest.err 7044 } && test -s conftest.$ac_objext; then 7045 ac_header_compiler=yes 7046else 7047 echo "$as_me: failed program was:" >&5 7048sed 's/^/| /' conftest.$ac_ext >&5 7049 7050 ac_header_compiler=no 7051fi 7052 7053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7054{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7055echo "${ECHO_T}$ac_header_compiler" >&6; } 7056 7057# Is the header present? 7058{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7059echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7060cat >conftest.$ac_ext <<_ACEOF 7061/* confdefs.h. */ 7062_ACEOF 7063cat confdefs.h >>conftest.$ac_ext 7064cat >>conftest.$ac_ext <<_ACEOF 7065/* end confdefs.h. */ 7066#include <$ac_header> 7067_ACEOF 7068if { (ac_try="$ac_cpp conftest.$ac_ext" 7069case "(($ac_try" in 7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7071 *) ac_try_echo=$ac_try;; 7072esac 7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7075 ac_status=$? 7076 grep -v '^ *+' conftest.er1 >conftest.err 7077 rm -f conftest.er1 7078 cat conftest.err >&5 7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7080 (exit $ac_status); } >/dev/null && { 7081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7082 test ! -s conftest.err 7083 }; then 7084 ac_header_preproc=yes 7085else 7086 echo "$as_me: failed program was:" >&5 7087sed 's/^/| /' conftest.$ac_ext >&5 7088 7089 ac_header_preproc=no 7090fi 7091 7092rm -f conftest.err conftest.$ac_ext 7093{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7094echo "${ECHO_T}$ac_header_preproc" >&6; } 7095 7096# So? What about this header? 7097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7098 yes:no: ) 7099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7103 ac_header_preproc=yes 7104 ;; 7105 no:yes:* ) 7106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7118 ( cat <<\_ASBOX 7119## --------------------------------- ## 7120## Report this to bill.cheng@acm.org ## 7121## --------------------------------- ## 7122_ASBOX 7123 ) | sed "s/^/$as_me: WARNING: /" >&2 7124 ;; 7125esac 7126{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7129 echo $ECHO_N "(cached) $ECHO_C" >&6 7130else 7131 eval "$as_ac_Header=\$ac_header_preproc" 7132fi 7133ac_res=`eval echo '${'$as_ac_Header'}'` 7134 { echo "$as_me:$LINENO: result: $ac_res" >&5 7135echo "${ECHO_T}$ac_res" >&6; } 7136 7137fi 7138if test `eval echo '${'$as_ac_Header'}'` = yes; then 7139 cat >>confdefs.h <<_ACEOF 7140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7141_ACEOF 7142 7143fi 7144 7145done 7146 7147{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5 7148echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; } 7149if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then 7150 echo $ECHO_N "(cached) $ECHO_C" >&6 7151else 7152 if test "$cross_compiling" = yes; then 7153 ac_cv_func_realloc_0_nonnull=no 7154else 7155 cat >conftest.$ac_ext <<_ACEOF 7156/* confdefs.h. */ 7157_ACEOF 7158cat confdefs.h >>conftest.$ac_ext 7159cat >>conftest.$ac_ext <<_ACEOF 7160/* end confdefs.h. */ 7161#if defined STDC_HEADERS || defined HAVE_STDLIB_H 7162# include <stdlib.h> 7163#else 7164char *realloc (); 7165#endif 7166 7167int 7168main () 7169{ 7170return ! realloc (0, 0); 7171 ; 7172 return 0; 7173} 7174_ACEOF 7175rm -f conftest$ac_exeext 7176if { (ac_try="$ac_link" 7177case "(($ac_try" in 7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7179 *) ac_try_echo=$ac_try;; 7180esac 7181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7182 (eval "$ac_link") 2>&5 7183 ac_status=$? 7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7186 { (case "(($ac_try" in 7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7188 *) ac_try_echo=$ac_try;; 7189esac 7190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7191 (eval "$ac_try") 2>&5 7192 ac_status=$? 7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7194 (exit $ac_status); }; }; then 7195 ac_cv_func_realloc_0_nonnull=yes 7196else 7197 echo "$as_me: program exited with status $ac_status" >&5 7198echo "$as_me: failed program was:" >&5 7199sed 's/^/| /' conftest.$ac_ext >&5 7200 7201( exit $ac_status ) 7202ac_cv_func_realloc_0_nonnull=no 7203fi 7204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7205fi 7206 7207 7208fi 7209{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5 7210echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; } 7211if test $ac_cv_func_realloc_0_nonnull = yes; then 7212 7213cat >>confdefs.h <<\_ACEOF 7214#define HAVE_REALLOC 1 7215_ACEOF 7216 7217else 7218 cat >>confdefs.h <<\_ACEOF 7219#define HAVE_REALLOC 0 7220_ACEOF 7221 7222 case " $LIBOBJS " in 7223 *" realloc.$ac_objext "* ) ;; 7224 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 7225 ;; 7226esac 7227 7228 7229cat >>confdefs.h <<\_ACEOF 7230#define realloc rpl_realloc 7231_ACEOF 7232 7233fi 7234 7235 7236 7237 7238 7239for ac_header in sys/select.h sys/socket.h 7240do 7241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7243 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7246 echo $ECHO_N "(cached) $ECHO_C" >&6 7247fi 7248ac_res=`eval echo '${'$as_ac_Header'}'` 7249 { echo "$as_me:$LINENO: result: $ac_res" >&5 7250echo "${ECHO_T}$ac_res" >&6; } 7251else 7252 # Is the header compilable? 7253{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 7254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 7255cat >conftest.$ac_ext <<_ACEOF 7256/* confdefs.h. */ 7257_ACEOF 7258cat confdefs.h >>conftest.$ac_ext 7259cat >>conftest.$ac_ext <<_ACEOF 7260/* end confdefs.h. */ 7261$ac_includes_default 7262#include <$ac_header> 7263_ACEOF 7264rm -f conftest.$ac_objext 7265if { (ac_try="$ac_compile" 7266case "(($ac_try" in 7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7268 *) ac_try_echo=$ac_try;; 7269esac 7270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7271 (eval "$ac_compile") 2>conftest.er1 7272 ac_status=$? 7273 grep -v '^ *+' conftest.er1 >conftest.err 7274 rm -f conftest.er1 7275 cat conftest.err >&5 7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7277 (exit $ac_status); } && { 7278 test -z "$ac_c_werror_flag" || 7279 test ! -s conftest.err 7280 } && test -s conftest.$ac_objext; then 7281 ac_header_compiler=yes 7282else 7283 echo "$as_me: failed program was:" >&5 7284sed 's/^/| /' conftest.$ac_ext >&5 7285 7286 ac_header_compiler=no 7287fi 7288 7289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7291echo "${ECHO_T}$ac_header_compiler" >&6; } 7292 7293# Is the header present? 7294{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 7295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 7296cat >conftest.$ac_ext <<_ACEOF 7297/* confdefs.h. */ 7298_ACEOF 7299cat confdefs.h >>conftest.$ac_ext 7300cat >>conftest.$ac_ext <<_ACEOF 7301/* end confdefs.h. */ 7302#include <$ac_header> 7303_ACEOF 7304if { (ac_try="$ac_cpp conftest.$ac_ext" 7305case "(($ac_try" in 7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7307 *) ac_try_echo=$ac_try;; 7308esac 7309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 7311 ac_status=$? 7312 grep -v '^ *+' conftest.er1 >conftest.err 7313 rm -f conftest.er1 7314 cat conftest.err >&5 7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7316 (exit $ac_status); } >/dev/null && { 7317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 7318 test ! -s conftest.err 7319 }; then 7320 ac_header_preproc=yes 7321else 7322 echo "$as_me: failed program was:" >&5 7323sed 's/^/| /' conftest.$ac_ext >&5 7324 7325 ac_header_preproc=no 7326fi 7327 7328rm -f conftest.err conftest.$ac_ext 7329{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7330echo "${ECHO_T}$ac_header_preproc" >&6; } 7331 7332# So? What about this header? 7333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7334 yes:no: ) 7335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7339 ac_header_preproc=yes 7340 ;; 7341 no:yes:* ) 7342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7354 ( cat <<\_ASBOX 7355## --------------------------------- ## 7356## Report this to bill.cheng@acm.org ## 7357## --------------------------------- ## 7358_ASBOX 7359 ) | sed "s/^/$as_me: WARNING: /" >&2 7360 ;; 7361esac 7362{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7364if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7365 echo $ECHO_N "(cached) $ECHO_C" >&6 7366else 7367 eval "$as_ac_Header=\$ac_header_preproc" 7368fi 7369ac_res=`eval echo '${'$as_ac_Header'}'` 7370 { echo "$as_me:$LINENO: result: $ac_res" >&5 7371echo "${ECHO_T}$ac_res" >&6; } 7372 7373fi 7374if test `eval echo '${'$as_ac_Header'}'` = yes; then 7375 cat >>confdefs.h <<_ACEOF 7376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7377_ACEOF 7378 7379fi 7380 7381done 7382 7383{ echo "$as_me:$LINENO: checking types of arguments for select" >&5 7384echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } 7385if test "${ac_cv_func_select_args+set}" = set; then 7386 echo $ECHO_N "(cached) $ECHO_C" >&6 7387else 7388 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 7389 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 7390 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 7391 cat >conftest.$ac_ext <<_ACEOF 7392/* confdefs.h. */ 7393_ACEOF 7394cat confdefs.h >>conftest.$ac_ext 7395cat >>conftest.$ac_ext <<_ACEOF 7396/* end confdefs.h. */ 7397$ac_includes_default 7398#ifdef HAVE_SYS_SELECT_H 7399# include <sys/select.h> 7400#endif 7401#ifdef HAVE_SYS_SOCKET_H 7402# include <sys/socket.h> 7403#endif 7404 7405int 7406main () 7407{ 7408extern int select ($ac_arg1, 7409 $ac_arg234, $ac_arg234, $ac_arg234, 7410 $ac_arg5); 7411 ; 7412 return 0; 7413} 7414_ACEOF 7415rm -f conftest.$ac_objext 7416if { (ac_try="$ac_compile" 7417case "(($ac_try" in 7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7419 *) ac_try_echo=$ac_try;; 7420esac 7421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7422 (eval "$ac_compile") 2>conftest.er1 7423 ac_status=$? 7424 grep -v '^ *+' conftest.er1 >conftest.err 7425 rm -f conftest.er1 7426 cat conftest.err >&5 7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7428 (exit $ac_status); } && { 7429 test -z "$ac_c_werror_flag" || 7430 test ! -s conftest.err 7431 } && test -s conftest.$ac_objext; then 7432 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 7433else 7434 echo "$as_me: failed program was:" >&5 7435sed 's/^/| /' conftest.$ac_ext >&5 7436 7437 7438fi 7439 7440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7441 done 7442 done 7443done 7444# Provide a safe default value. 7445: ${ac_cv_func_select_args='int,int *,struct timeval *'} 7446 7447fi 7448{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 7449echo "${ECHO_T}$ac_cv_func_select_args" >&6; } 7450ac_save_IFS=$IFS; IFS=',' 7451set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 7452IFS=$ac_save_IFS 7453shift 7454 7455cat >>confdefs.h <<_ACEOF 7456#define SELECT_TYPE_ARG1 $1 7457_ACEOF 7458 7459 7460cat >>confdefs.h <<_ACEOF 7461#define SELECT_TYPE_ARG234 ($2) 7462_ACEOF 7463 7464 7465cat >>confdefs.h <<_ACEOF 7466#define SELECT_TYPE_ARG5 ($3) 7467_ACEOF 7468 7469rm -f conftest* 7470 7471{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 7472echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 7473if test "${ac_cv_type_signal+set}" = set; then 7474 echo $ECHO_N "(cached) $ECHO_C" >&6 7475else 7476 cat >conftest.$ac_ext <<_ACEOF 7477/* confdefs.h. */ 7478_ACEOF 7479cat confdefs.h >>conftest.$ac_ext 7480cat >>conftest.$ac_ext <<_ACEOF 7481/* end confdefs.h. */ 7482#include <sys/types.h> 7483#include <signal.h> 7484 7485int 7486main () 7487{ 7488return *(signal (0, 0)) (0) == 1; 7489 ; 7490 return 0; 7491} 7492_ACEOF 7493rm -f conftest.$ac_objext 7494if { (ac_try="$ac_compile" 7495case "(($ac_try" in 7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7497 *) ac_try_echo=$ac_try;; 7498esac 7499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7500 (eval "$ac_compile") 2>conftest.er1 7501 ac_status=$? 7502 grep -v '^ *+' conftest.er1 >conftest.err 7503 rm -f conftest.er1 7504 cat conftest.err >&5 7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7506 (exit $ac_status); } && { 7507 test -z "$ac_c_werror_flag" || 7508 test ! -s conftest.err 7509 } && test -s conftest.$ac_objext; then 7510 ac_cv_type_signal=int 7511else 7512 echo "$as_me: failed program was:" >&5 7513sed 's/^/| /' conftest.$ac_ext >&5 7514 7515 ac_cv_type_signal=void 7516fi 7517 7518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7519fi 7520{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 7521echo "${ECHO_T}$ac_cv_type_signal" >&6; } 7522 7523cat >>confdefs.h <<_ACEOF 7524#define RETSIGTYPE $ac_cv_type_signal 7525_ACEOF 7526 7527 7528{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 7529echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } 7530if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then 7531 echo $ECHO_N "(cached) $ECHO_C" >&6 7532else 7533 if test "$cross_compiling" = yes; then 7534 ac_cv_func_stat_empty_string_bug=yes 7535else 7536 cat >conftest.$ac_ext <<_ACEOF 7537/* confdefs.h. */ 7538_ACEOF 7539cat confdefs.h >>conftest.$ac_ext 7540cat >>conftest.$ac_ext <<_ACEOF 7541/* end confdefs.h. */ 7542$ac_includes_default 7543int 7544main () 7545{ 7546struct stat sbuf; 7547 return stat ("", &sbuf) == 0; 7548 ; 7549 return 0; 7550} 7551_ACEOF 7552rm -f conftest$ac_exeext 7553if { (ac_try="$ac_link" 7554case "(($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_link") 2>&5 7560 ac_status=$? 7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7563 { (case "(($ac_try" in 7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7565 *) ac_try_echo=$ac_try;; 7566esac 7567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7568 (eval "$ac_try") 2>&5 7569 ac_status=$? 7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7571 (exit $ac_status); }; }; then 7572 ac_cv_func_stat_empty_string_bug=no 7573else 7574 echo "$as_me: program exited with status $ac_status" >&5 7575echo "$as_me: failed program was:" >&5 7576sed 's/^/| /' conftest.$ac_ext >&5 7577 7578( exit $ac_status ) 7579ac_cv_func_stat_empty_string_bug=yes 7580fi 7581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7582fi 7583 7584 7585fi 7586{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 7587echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } 7588if test $ac_cv_func_stat_empty_string_bug = yes; then 7589 case " $LIBOBJS " in 7590 *" stat.$ac_objext "* ) ;; 7591 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 7592 ;; 7593esac 7594 7595 7596cat >>confdefs.h <<_ACEOF 7597#define HAVE_STAT_EMPTY_STRING_BUG 1 7598_ACEOF 7599 7600fi 7601 7602{ echo "$as_me:$LINENO: checking for working strtod" >&5 7603echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } 7604if test "${ac_cv_func_strtod+set}" = set; then 7605 echo $ECHO_N "(cached) $ECHO_C" >&6 7606else 7607 if test "$cross_compiling" = yes; then 7608 ac_cv_func_strtod=no 7609else 7610 cat >conftest.$ac_ext <<_ACEOF 7611/* confdefs.h. */ 7612_ACEOF 7613cat confdefs.h >>conftest.$ac_ext 7614cat >>conftest.$ac_ext <<_ACEOF 7615/* end confdefs.h. */ 7616 7617$ac_includes_default 7618#ifndef strtod 7619double strtod (); 7620#endif 7621int 7622main() 7623{ 7624 { 7625 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 7626 char *string = " +69"; 7627 char *term; 7628 double value; 7629 value = strtod (string, &term); 7630 if (value != 69 || term != (string + 4)) 7631 return 1; 7632 } 7633 7634 { 7635 /* Under Solaris 2.4, strtod returns the wrong value for the 7636 terminating character under some conditions. */ 7637 char *string = "NaN"; 7638 char *term; 7639 strtod (string, &term); 7640 if (term != string && *(term - 1) == 0) 7641 return 1; 7642 } 7643 return 0; 7644} 7645 7646_ACEOF 7647rm -f conftest$ac_exeext 7648if { (ac_try="$ac_link" 7649case "(($ac_try" in 7650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7651 *) ac_try_echo=$ac_try;; 7652esac 7653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7654 (eval "$ac_link") 2>&5 7655 ac_status=$? 7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7658 { (case "(($ac_try" in 7659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7660 *) ac_try_echo=$ac_try;; 7661esac 7662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7663 (eval "$ac_try") 2>&5 7664 ac_status=$? 7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7666 (exit $ac_status); }; }; then 7667 ac_cv_func_strtod=yes 7668else 7669 echo "$as_me: program exited with status $ac_status" >&5 7670echo "$as_me: failed program was:" >&5 7671sed 's/^/| /' conftest.$ac_ext >&5 7672 7673( exit $ac_status ) 7674ac_cv_func_strtod=no 7675fi 7676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7677fi 7678 7679 7680fi 7681{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 7682echo "${ECHO_T}$ac_cv_func_strtod" >&6; } 7683if test $ac_cv_func_strtod = no; then 7684 case " $LIBOBJS " in 7685 *" strtod.$ac_objext "* ) ;; 7686 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 7687 ;; 7688esac 7689 7690{ echo "$as_me:$LINENO: checking for pow" >&5 7691echo $ECHO_N "checking for pow... $ECHO_C" >&6; } 7692if test "${ac_cv_func_pow+set}" = set; then 7693 echo $ECHO_N "(cached) $ECHO_C" >&6 7694else 7695 cat >conftest.$ac_ext <<_ACEOF 7696/* confdefs.h. */ 7697_ACEOF 7698cat confdefs.h >>conftest.$ac_ext 7699cat >>conftest.$ac_ext <<_ACEOF 7700/* end confdefs.h. */ 7701/* Define pow to an innocuous variant, in case <limits.h> declares pow. 7702 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7703#define pow innocuous_pow 7704 7705/* System header to define __stub macros and hopefully few prototypes, 7706 which can conflict with char pow (); below. 7707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7708 <limits.h> exists even on freestanding compilers. */ 7709 7710#ifdef __STDC__ 7711# include <limits.h> 7712#else 7713# include <assert.h> 7714#endif 7715 7716#undef pow 7717 7718/* Override any GCC internal prototype to avoid an error. 7719 Use char because int might match the return type of a GCC 7720 builtin and then its argument prototype would still apply. */ 7721#ifdef __cplusplus 7722extern "C" 7723#endif 7724char pow (); 7725/* The GNU C library defines this for functions which it implements 7726 to always fail with ENOSYS. Some functions are actually named 7727 something starting with __ and the normal name is an alias. */ 7728#if defined __stub_pow || defined __stub___pow 7729choke me 7730#endif 7731 7732int 7733main () 7734{ 7735return pow (); 7736 ; 7737 return 0; 7738} 7739_ACEOF 7740rm -f conftest.$ac_objext conftest$ac_exeext 7741if { (ac_try="$ac_link" 7742case "(($ac_try" in 7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7744 *) ac_try_echo=$ac_try;; 7745esac 7746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7747 (eval "$ac_link") 2>conftest.er1 7748 ac_status=$? 7749 grep -v '^ *+' conftest.er1 >conftest.err 7750 rm -f conftest.er1 7751 cat conftest.err >&5 7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7753 (exit $ac_status); } && { 7754 test -z "$ac_c_werror_flag" || 7755 test ! -s conftest.err 7756 } && test -s conftest$ac_exeext && 7757 $as_test_x conftest$ac_exeext; then 7758 ac_cv_func_pow=yes 7759else 7760 echo "$as_me: failed program was:" >&5 7761sed 's/^/| /' conftest.$ac_ext >&5 7762 7763 ac_cv_func_pow=no 7764fi 7765 7766rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7767 conftest$ac_exeext conftest.$ac_ext 7768fi 7769{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 7770echo "${ECHO_T}$ac_cv_func_pow" >&6; } 7771 7772if test $ac_cv_func_pow = no; then 7773 { echo "$as_me:$LINENO: checking for pow in -lm" >&5 7774echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } 7775if test "${ac_cv_lib_m_pow+set}" = set; then 7776 echo $ECHO_N "(cached) $ECHO_C" >&6 7777else 7778 ac_check_lib_save_LIBS=$LIBS 7779LIBS="-lm $LIBS" 7780cat >conftest.$ac_ext <<_ACEOF 7781/* confdefs.h. */ 7782_ACEOF 7783cat confdefs.h >>conftest.$ac_ext 7784cat >>conftest.$ac_ext <<_ACEOF 7785/* end confdefs.h. */ 7786 7787/* Override any GCC internal prototype to avoid an error. 7788 Use char because int might match the return type of a GCC 7789 builtin and then its argument prototype would still apply. */ 7790#ifdef __cplusplus 7791extern "C" 7792#endif 7793char pow (); 7794int 7795main () 7796{ 7797return pow (); 7798 ; 7799 return 0; 7800} 7801_ACEOF 7802rm -f conftest.$ac_objext conftest$ac_exeext 7803if { (ac_try="$ac_link" 7804case "(($ac_try" in 7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7806 *) ac_try_echo=$ac_try;; 7807esac 7808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7809 (eval "$ac_link") 2>conftest.er1 7810 ac_status=$? 7811 grep -v '^ *+' conftest.er1 >conftest.err 7812 rm -f conftest.er1 7813 cat conftest.err >&5 7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7815 (exit $ac_status); } && { 7816 test -z "$ac_c_werror_flag" || 7817 test ! -s conftest.err 7818 } && test -s conftest$ac_exeext && 7819 $as_test_x conftest$ac_exeext; then 7820 ac_cv_lib_m_pow=yes 7821else 7822 echo "$as_me: failed program was:" >&5 7823sed 's/^/| /' conftest.$ac_ext >&5 7824 7825 ac_cv_lib_m_pow=no 7826fi 7827 7828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7829 conftest$ac_exeext conftest.$ac_ext 7830LIBS=$ac_check_lib_save_LIBS 7831fi 7832{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 7833echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } 7834if test $ac_cv_lib_m_pow = yes; then 7835 POW_LIB=-lm 7836else 7837 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 7838echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 7839fi 7840 7841fi 7842 7843fi 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864for ac_func in ftime getcwd gethostbyname gethostname gettimeofday memmove memset mkdir pow putenv select setlocale socket sqrt strchr strpbrk strrchr strstr strtol 7865do 7866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7867{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7869if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7870 echo $ECHO_N "(cached) $ECHO_C" >&6 7871else 7872 cat >conftest.$ac_ext <<_ACEOF 7873/* confdefs.h. */ 7874_ACEOF 7875cat confdefs.h >>conftest.$ac_ext 7876cat >>conftest.$ac_ext <<_ACEOF 7877/* end confdefs.h. */ 7878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7879 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7880#define $ac_func innocuous_$ac_func 7881 7882/* System header to define __stub macros and hopefully few prototypes, 7883 which can conflict with char $ac_func (); below. 7884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7885 <limits.h> exists even on freestanding compilers. */ 7886 7887#ifdef __STDC__ 7888# include <limits.h> 7889#else 7890# include <assert.h> 7891#endif 7892 7893#undef $ac_func 7894 7895/* Override any GCC internal prototype to avoid an error. 7896 Use char because int might match the return type of a GCC 7897 builtin and then its argument prototype would still apply. */ 7898#ifdef __cplusplus 7899extern "C" 7900#endif 7901char $ac_func (); 7902/* The GNU C library defines this for functions which it implements 7903 to always fail with ENOSYS. Some functions are actually named 7904 something starting with __ and the normal name is an alias. */ 7905#if defined __stub_$ac_func || defined __stub___$ac_func 7906choke me 7907#endif 7908 7909int 7910main () 7911{ 7912return $ac_func (); 7913 ; 7914 return 0; 7915} 7916_ACEOF 7917rm -f conftest.$ac_objext conftest$ac_exeext 7918if { (ac_try="$ac_link" 7919case "(($ac_try" in 7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7921 *) ac_try_echo=$ac_try;; 7922esac 7923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7924 (eval "$ac_link") 2>conftest.er1 7925 ac_status=$? 7926 grep -v '^ *+' conftest.er1 >conftest.err 7927 rm -f conftest.er1 7928 cat conftest.err >&5 7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7930 (exit $ac_status); } && { 7931 test -z "$ac_c_werror_flag" || 7932 test ! -s conftest.err 7933 } && test -s conftest$ac_exeext && 7934 $as_test_x conftest$ac_exeext; then 7935 eval "$as_ac_var=yes" 7936else 7937 echo "$as_me: failed program was:" >&5 7938sed 's/^/| /' conftest.$ac_ext >&5 7939 7940 eval "$as_ac_var=no" 7941fi 7942 7943rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7944 conftest$ac_exeext conftest.$ac_ext 7945fi 7946ac_res=`eval echo '${'$as_ac_var'}'` 7947 { echo "$as_me:$LINENO: result: $ac_res" >&5 7948echo "${ECHO_T}$ac_res" >&6; } 7949if test `eval echo '${'$as_ac_var'}'` = yes; then 7950 cat >>confdefs.h <<_ACEOF 7951#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7952_ACEOF 7953 7954fi 7955done 7956 7957 7958ac_config_files="$ac_config_files Makefile" 7959 7960# BC: skipping AC_CONFIG_SUBDIRS([rmcast]) 7961cat >confcache <<\_ACEOF 7962# This file is a shell script that caches the results of configure 7963# tests run on this system so they can be shared between configure 7964# scripts and configure runs, see configure's option --config-cache. 7965# It is not useful on other systems. If it contains results you don't 7966# want to keep, you may remove or edit it. 7967# 7968# config.status only pays attention to the cache file if you give it 7969# the --recheck option to rerun configure. 7970# 7971# `ac_cv_env_foo' variables (set or unset) will be overridden when 7972# loading this file, other *unset* `ac_cv_foo' will be assigned the 7973# following values. 7974 7975_ACEOF 7976 7977# The following way of writing the cache mishandles newlines in values, 7978# but we know of no workaround that is simple, portable, and efficient. 7979# So, we kill variables containing newlines. 7980# Ultrix sh set writes to stderr and can't be redirected directly, 7981# and sets the high bit in the cache file unless we assign to the vars. 7982( 7983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 7984 eval ac_val=\$$ac_var 7985 case $ac_val in #( 7986 *${as_nl}*) 7987 case $ac_var in #( 7988 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 7989echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 7990 esac 7991 case $ac_var in #( 7992 _ | IFS | as_nl) ;; #( 7993 *) $as_unset $ac_var ;; 7994 esac ;; 7995 esac 7996 done 7997 7998 (set) 2>&1 | 7999 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8000 *${as_nl}ac_space=\ *) 8001 # `set' does not quote correctly, so add quotes (double-quote 8002 # substitution turns \\\\ into \\, and sed turns \\ into \). 8003 sed -n \ 8004 "s/'/'\\\\''/g; 8005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8006 ;; #( 8007 *) 8008 # `set' quotes correctly as required by POSIX, so do not add quotes. 8009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8010 ;; 8011 esac | 8012 sort 8013) | 8014 sed ' 8015 /^ac_cv_env_/b end 8016 t clear 8017 :clear 8018 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8019 t end 8020 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8021 :end' >>confcache 8022if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8023 if test -w "$cache_file"; then 8024 test "x$cache_file" != "x/dev/null" && 8025 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 8026echo "$as_me: updating cache $cache_file" >&6;} 8027 cat confcache >$cache_file 8028 else 8029 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8030echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8031 fi 8032fi 8033rm -f confcache 8034 8035test "x$prefix" = xNONE && prefix=$ac_default_prefix 8036# Let make expand exec_prefix. 8037test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8038 8039DEFS=-DHAVE_CONFIG_H 8040 8041ac_libobjs= 8042ac_ltlibobjs= 8043for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8044 # 1. Remove the extension, and $U if already installed. 8045 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8046 ac_i=`echo "$ac_i" | sed "$ac_script"` 8047 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8048 # will be set to the directory where LIBOBJS objects are built. 8049 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8050 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8051done 8052LIBOBJS=$ac_libobjs 8053 8054LTLIBOBJS=$ac_ltlibobjs 8055 8056 8057if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 8058 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 8059Usually this means the macro was only invoked conditionally." >&5 8060echo "$as_me: error: conditional \"AMDEP\" was never defined. 8061Usually this means the macro was only invoked conditionally." >&2;} 8062 { (exit 1); exit 1; }; } 8063fi 8064if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 8065 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 8066Usually this means the macro was only invoked conditionally." >&5 8067echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 8068Usually this means the macro was only invoked conditionally." >&2;} 8069 { (exit 1); exit 1; }; } 8070fi 8071 8072: ${CONFIG_STATUS=./config.status} 8073ac_clean_files_save=$ac_clean_files 8074ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8075{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8076echo "$as_me: creating $CONFIG_STATUS" >&6;} 8077cat >$CONFIG_STATUS <<_ACEOF 8078#! $SHELL 8079# Generated by $as_me. 8080# Run this file to recreate the current configuration. 8081# Compiler output produced by configure, useful for debugging 8082# configure, is in config.log if it exists. 8083 8084debug=false 8085ac_cs_recheck=false 8086ac_cs_silent=false 8087SHELL=\${CONFIG_SHELL-$SHELL} 8088_ACEOF 8089 8090cat >>$CONFIG_STATUS <<\_ACEOF 8091## --------------------- ## 8092## M4sh Initialization. ## 8093## --------------------- ## 8094 8095# Be more Bourne compatible 8096DUALCASE=1; export DUALCASE # for MKS sh 8097if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8098 emulate sh 8099 NULLCMD=: 8100 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8101 # is contrary to our usage. Disable this feature. 8102 alias -g '${1+"$@"}'='"$@"' 8103 setopt NO_GLOB_SUBST 8104else 8105 case `(set -o) 2>/dev/null` in 8106 *posix*) set -o posix ;; 8107esac 8108 8109fi 8110 8111 8112 8113 8114# PATH needs CR 8115# Avoid depending upon Character Ranges. 8116as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8117as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8118as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8119as_cr_digits='0123456789' 8120as_cr_alnum=$as_cr_Letters$as_cr_digits 8121 8122# The user is always right. 8123if test "${PATH_SEPARATOR+set}" != set; then 8124 echo "#! /bin/sh" >conf$$.sh 8125 echo "exit 0" >>conf$$.sh 8126 chmod +x conf$$.sh 8127 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8128 PATH_SEPARATOR=';' 8129 else 8130 PATH_SEPARATOR=: 8131 fi 8132 rm -f conf$$.sh 8133fi 8134 8135# Support unset when possible. 8136if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8137 as_unset=unset 8138else 8139 as_unset=false 8140fi 8141 8142 8143# IFS 8144# We need space, tab and new line, in precisely that order. Quoting is 8145# there to prevent editors from complaining about space-tab. 8146# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8147# splitting by setting IFS to empty value.) 8148as_nl=' 8149' 8150IFS=" "" $as_nl" 8151 8152# Find who we are. Look in the path if we contain no directory separator. 8153case $0 in 8154 *[\\/]* ) as_myself=$0 ;; 8155 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8156for as_dir in $PATH 8157do 8158 IFS=$as_save_IFS 8159 test -z "$as_dir" && as_dir=. 8160 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8161done 8162IFS=$as_save_IFS 8163 8164 ;; 8165esac 8166# We did not find ourselves, most probably we were run as `sh COMMAND' 8167# in which case we are not to be found in the path. 8168if test "x$as_myself" = x; then 8169 as_myself=$0 8170fi 8171if test ! -f "$as_myself"; then 8172 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8173 { (exit 1); exit 1; } 8174fi 8175 8176# Work around bugs in pre-3.0 UWIN ksh. 8177for as_var in ENV MAIL MAILPATH 8178do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8179done 8180PS1='$ ' 8181PS2='> ' 8182PS4='+ ' 8183 8184# NLS nuisances. 8185for as_var in \ 8186 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8187 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8188 LC_TELEPHONE LC_TIME 8189do 8190 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8191 eval $as_var=C; export $as_var 8192 else 8193 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8194 fi 8195done 8196 8197# Required to use basename. 8198if expr a : '\(a\)' >/dev/null 2>&1 && 8199 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8200 as_expr=expr 8201else 8202 as_expr=false 8203fi 8204 8205if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8206 as_basename=basename 8207else 8208 as_basename=false 8209fi 8210 8211 8212# Name of the executable. 8213as_me=`$as_basename -- "$0" || 8214$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8215 X"$0" : 'X\(//\)$' \| \ 8216 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8217echo X/"$0" | 8218 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8219 s//\1/ 8220 q 8221 } 8222 /^X\/\(\/\/\)$/{ 8223 s//\1/ 8224 q 8225 } 8226 /^X\/\(\/\).*/{ 8227 s//\1/ 8228 q 8229 } 8230 s/.*/./; q'` 8231 8232# CDPATH. 8233$as_unset CDPATH 8234 8235 8236 8237 as_lineno_1=$LINENO 8238 as_lineno_2=$LINENO 8239 test "x$as_lineno_1" != "x$as_lineno_2" && 8240 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 8241 8242 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 8243 # uniformly replaced by the line number. The first 'sed' inserts a 8244 # line-number line after each line using $LINENO; the second 'sed' 8245 # does the real work. The second script uses 'N' to pair each 8246 # line-number line with the line containing $LINENO, and appends 8247 # trailing '-' during substitution so that $LINENO is not a special 8248 # case at line end. 8249 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 8250 # scripts with optimization help from Paolo Bonzini. Blame Lee 8251 # E. McMahon (1931-1989) for sed's syntax. :-) 8252 sed -n ' 8253 p 8254 /[$]LINENO/= 8255 ' <$as_myself | 8256 sed ' 8257 s/[$]LINENO.*/&-/ 8258 t lineno 8259 b 8260 :lineno 8261 N 8262 :loop 8263 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 8264 t loop 8265 s/-\n.*// 8266 ' >$as_me.lineno && 8267 chmod +x "$as_me.lineno" || 8268 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 8269 { (exit 1); exit 1; }; } 8270 8271 # Don't try to exec as it changes $[0], causing all sort of problems 8272 # (the dirname of $[0] is not the place where we might find the 8273 # original and so on. Autoconf is especially sensitive to this). 8274 . "./$as_me.lineno" 8275 # Exit status is that of the last command. 8276 exit 8277} 8278 8279 8280if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8281 as_dirname=dirname 8282else 8283 as_dirname=false 8284fi 8285 8286ECHO_C= ECHO_N= ECHO_T= 8287case `echo -n x` in 8288-n*) 8289 case `echo 'x\c'` in 8290 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8291 *) ECHO_C='\c';; 8292 esac;; 8293*) 8294 ECHO_N='-n';; 8295esac 8296 8297if expr a : '\(a\)' >/dev/null 2>&1 && 8298 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8299 as_expr=expr 8300else 8301 as_expr=false 8302fi 8303 8304rm -f conf$$ conf$$.exe conf$$.file 8305if test -d conf$$.dir; then 8306 rm -f conf$$.dir/conf$$.file 8307else 8308 rm -f conf$$.dir 8309 mkdir conf$$.dir 8310fi 8311echo >conf$$.file 8312if ln -s conf$$.file conf$$ 2>/dev/null; then 8313 as_ln_s='ln -s' 8314 # ... but there are two gotchas: 8315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8317 # In both cases, we have to default to `cp -p'. 8318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8319 as_ln_s='cp -p' 8320elif ln conf$$.file conf$$ 2>/dev/null; then 8321 as_ln_s=ln 8322else 8323 as_ln_s='cp -p' 8324fi 8325rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8326rmdir conf$$.dir 2>/dev/null 8327 8328if mkdir -p . 2>/dev/null; then 8329 as_mkdir_p=: 8330else 8331 test -d ./-p && rmdir ./-p 8332 as_mkdir_p=false 8333fi 8334 8335if test -x / >/dev/null 2>&1; then 8336 as_test_x='test -x' 8337else 8338 if ls -dL / >/dev/null 2>&1; then 8339 as_ls_L_option=L 8340 else 8341 as_ls_L_option= 8342 fi 8343 as_test_x=' 8344 eval sh -c '\'' 8345 if test -d "$1"; then 8346 test -d "$1/."; 8347 else 8348 case $1 in 8349 -*)set "./$1";; 8350 esac; 8351 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 8352 ???[sx]*):;;*)false;;esac;fi 8353 '\'' sh 8354 ' 8355fi 8356as_executable_p=$as_test_x 8357 8358# Sed expression to map a string onto a valid CPP name. 8359as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8360 8361# Sed expression to map a string onto a valid variable name. 8362as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8363 8364 8365exec 6>&1 8366 8367# Save the log message, to keep $[0] and so on meaningful, and to 8368# report actual input values of CONFIG_FILES etc. instead of their 8369# values after options handling. 8370ac_log=" 8371This file was extended by tgif $as_me 4.2.5, which was 8372generated by GNU Autoconf 2.61. Invocation command line was 8373 8374 CONFIG_FILES = $CONFIG_FILES 8375 CONFIG_HEADERS = $CONFIG_HEADERS 8376 CONFIG_LINKS = $CONFIG_LINKS 8377 CONFIG_COMMANDS = $CONFIG_COMMANDS 8378 $ $0 $@ 8379 8380on `(hostname || uname -n) 2>/dev/null | sed 1q` 8381" 8382 8383_ACEOF 8384 8385cat >>$CONFIG_STATUS <<_ACEOF 8386# Files that config.status was made for. 8387config_files="$ac_config_files" 8388config_headers="$ac_config_headers" 8389config_commands="$ac_config_commands" 8390 8391_ACEOF 8392 8393cat >>$CONFIG_STATUS <<\_ACEOF 8394ac_cs_usage="\ 8395\`$as_me' instantiates files from templates according to the 8396current configuration. 8397 8398Usage: $0 [OPTIONS] [FILE]... 8399 8400 -h, --help print this help, then exit 8401 -V, --version print version number and configuration settings, then exit 8402 -q, --quiet do not print progress messages 8403 -d, --debug don't remove temporary files 8404 --recheck update $as_me by reconfiguring in the same conditions 8405 --file=FILE[:TEMPLATE] 8406 instantiate the configuration file FILE 8407 --header=FILE[:TEMPLATE] 8408 instantiate the configuration header FILE 8409 8410Configuration files: 8411$config_files 8412 8413Configuration headers: 8414$config_headers 8415 8416Configuration commands: 8417$config_commands 8418 8419Report bugs to <bug-autoconf@gnu.org>." 8420 8421_ACEOF 8422cat >>$CONFIG_STATUS <<_ACEOF 8423ac_cs_version="\\ 8424tgif config.status 4.2.5 8425configured by $0, generated by GNU Autoconf 2.61, 8426 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 8427 8428Copyright (C) 2006 Free Software Foundation, Inc. 8429This config.status script is free software; the Free Software Foundation 8430gives unlimited permission to copy, distribute and modify it." 8431 8432ac_pwd='$ac_pwd' 8433srcdir='$srcdir' 8434INSTALL='$INSTALL' 8435MKDIR_P='$MKDIR_P' 8436_ACEOF 8437 8438cat >>$CONFIG_STATUS <<\_ACEOF 8439# If no file are specified by the user, then we need to provide default 8440# value. By we need to know if files were specified by the user. 8441ac_need_defaults=: 8442while test $# != 0 8443do 8444 case $1 in 8445 --*=*) 8446 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8447 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8448 ac_shift=: 8449 ;; 8450 *) 8451 ac_option=$1 8452 ac_optarg=$2 8453 ac_shift=shift 8454 ;; 8455 esac 8456 8457 case $ac_option in 8458 # Handling of the options. 8459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8460 ac_cs_recheck=: ;; 8461 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8462 echo "$ac_cs_version"; exit ;; 8463 --debug | --debu | --deb | --de | --d | -d ) 8464 debug=: ;; 8465 --file | --fil | --fi | --f ) 8466 $ac_shift 8467 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 8468 ac_need_defaults=false;; 8469 --header | --heade | --head | --hea ) 8470 $ac_shift 8471 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 8472 ac_need_defaults=false;; 8473 --he | --h) 8474 # Conflict between --help and --header 8475 { echo "$as_me: error: ambiguous option: $1 8476Try \`$0 --help' for more information." >&2 8477 { (exit 1); exit 1; }; };; 8478 --help | --hel | -h ) 8479 echo "$ac_cs_usage"; exit ;; 8480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8481 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8482 ac_cs_silent=: ;; 8483 8484 # This is an error. 8485 -*) { echo "$as_me: error: unrecognized option: $1 8486Try \`$0 --help' for more information." >&2 8487 { (exit 1); exit 1; }; } ;; 8488 8489 *) ac_config_targets="$ac_config_targets $1" 8490 ac_need_defaults=false ;; 8491 8492 esac 8493 shift 8494done 8495 8496ac_configure_extra_args= 8497 8498if $ac_cs_silent; then 8499 exec 6>/dev/null 8500 ac_configure_extra_args="$ac_configure_extra_args --silent" 8501fi 8502 8503_ACEOF 8504cat >>$CONFIG_STATUS <<_ACEOF 8505if \$ac_cs_recheck; then 8506 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 8507 CONFIG_SHELL=$SHELL 8508 export CONFIG_SHELL 8509 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8510fi 8511 8512_ACEOF 8513cat >>$CONFIG_STATUS <<\_ACEOF 8514exec 5>>config.log 8515{ 8516 echo 8517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8518## Running $as_me. ## 8519_ASBOX 8520 echo "$ac_log" 8521} >&5 8522 8523_ACEOF 8524cat >>$CONFIG_STATUS <<_ACEOF 8525# 8526# INIT-COMMANDS 8527# 8528AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 8529 8530_ACEOF 8531 8532cat >>$CONFIG_STATUS <<\_ACEOF 8533 8534# Handling of arguments. 8535for ac_config_target in $ac_config_targets 8536do 8537 case $ac_config_target in 8538 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 8539 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 8540 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8541 8542 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 8543echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 8544 { (exit 1); exit 1; }; };; 8545 esac 8546done 8547 8548 8549# If the user did not use the arguments to specify the items to instantiate, 8550# then the envvar interface is used. Set only those that are not. 8551# We use the long form for the default assignment because of an extremely 8552# bizarre bug on SunOS 4.1.3. 8553if $ac_need_defaults; then 8554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8555 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8556 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 8557fi 8558 8559# Have a temporary directory for convenience. Make it in the build tree 8560# simply because there is no reason against having it here, and in addition, 8561# creating and moving files from /tmp can sometimes cause problems. 8562# Hook for its removal unless debugging. 8563# Note that there is a small window in which the directory will not be cleaned: 8564# after its creation but before its name has been assigned to `$tmp'. 8565$debug || 8566{ 8567 tmp= 8568 trap 'exit_status=$? 8569 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 8570' 0 8571 trap '{ (exit 1); exit 1; }' 1 2 13 15 8572} 8573# Create a (secure) tmp directory for tmp files. 8574 8575{ 8576 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8577 test -n "$tmp" && test -d "$tmp" 8578} || 8579{ 8580 tmp=./conf$$-$RANDOM 8581 (umask 077 && mkdir "$tmp") 8582} || 8583{ 8584 echo "$me: cannot create a temporary directory in ." >&2 8585 { (exit 1); exit 1; } 8586} 8587 8588# 8589# Set up the sed scripts for CONFIG_FILES section. 8590# 8591 8592# No need to generate the scripts if there are no CONFIG_FILES. 8593# This happens for instance when ./config.status config.h 8594if test -n "$CONFIG_FILES"; then 8595 8596_ACEOF 8597 8598 8599 8600ac_delim='%!_!# ' 8601for ac_last_try in false false false false false :; do 8602 cat >conf$$subs.sed <<_ACEOF 8603SHELL!$SHELL$ac_delim 8604PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 8605PACKAGE_NAME!$PACKAGE_NAME$ac_delim 8606PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 8607PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 8608PACKAGE_STRING!$PACKAGE_STRING$ac_delim 8609PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 8610exec_prefix!$exec_prefix$ac_delim 8611prefix!$prefix$ac_delim 8612program_transform_name!$program_transform_name$ac_delim 8613bindir!$bindir$ac_delim 8614sbindir!$sbindir$ac_delim 8615libexecdir!$libexecdir$ac_delim 8616datarootdir!$datarootdir$ac_delim 8617datadir!$datadir$ac_delim 8618sysconfdir!$sysconfdir$ac_delim 8619sharedstatedir!$sharedstatedir$ac_delim 8620localstatedir!$localstatedir$ac_delim 8621includedir!$includedir$ac_delim 8622oldincludedir!$oldincludedir$ac_delim 8623docdir!$docdir$ac_delim 8624infodir!$infodir$ac_delim 8625htmldir!$htmldir$ac_delim 8626dvidir!$dvidir$ac_delim 8627pdfdir!$pdfdir$ac_delim 8628psdir!$psdir$ac_delim 8629libdir!$libdir$ac_delim 8630localedir!$localedir$ac_delim 8631mandir!$mandir$ac_delim 8632DEFS!$DEFS$ac_delim 8633ECHO_C!$ECHO_C$ac_delim 8634ECHO_N!$ECHO_N$ac_delim 8635ECHO_T!$ECHO_T$ac_delim 8636LIBS!$LIBS$ac_delim 8637build_alias!$build_alias$ac_delim 8638host_alias!$host_alias$ac_delim 8639target_alias!$target_alias$ac_delim 8640INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 8641INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 8642INSTALL_DATA!$INSTALL_DATA$ac_delim 8643am__isrc!$am__isrc$ac_delim 8644CYGPATH_W!$CYGPATH_W$ac_delim 8645PACKAGE!$PACKAGE$ac_delim 8646VERSION!$VERSION$ac_delim 8647ACLOCAL!$ACLOCAL$ac_delim 8648AUTOCONF!$AUTOCONF$ac_delim 8649AUTOMAKE!$AUTOMAKE$ac_delim 8650AUTOHEADER!$AUTOHEADER$ac_delim 8651MAKEINFO!$MAKEINFO$ac_delim 8652install_sh!$install_sh$ac_delim 8653STRIP!$STRIP$ac_delim 8654INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 8655mkdir_p!$mkdir_p$ac_delim 8656AWK!$AWK$ac_delim 8657SET_MAKE!$SET_MAKE$ac_delim 8658am__leading_dot!$am__leading_dot$ac_delim 8659AMTAR!$AMTAR$ac_delim 8660am__tar!$am__tar$ac_delim 8661am__untar!$am__untar$ac_delim 8662CC!$CC$ac_delim 8663CFLAGS!$CFLAGS$ac_delim 8664LDFLAGS!$LDFLAGS$ac_delim 8665CPPFLAGS!$CPPFLAGS$ac_delim 8666ac_ct_CC!$ac_ct_CC$ac_delim 8667EXEEXT!$EXEEXT$ac_delim 8668OBJEXT!$OBJEXT$ac_delim 8669DEPDIR!$DEPDIR$ac_delim 8670am__include!$am__include$ac_delim 8671am__quote!$am__quote$ac_delim 8672AMDEP_TRUE!$AMDEP_TRUE$ac_delim 8673AMDEP_FALSE!$AMDEP_FALSE$ac_delim 8674AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 8675CCDEPMODE!$CCDEPMODE$ac_delim 8676am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 8677am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 8678XMKMF!$XMKMF$ac_delim 8679CPP!$CPP$ac_delim 8680GREP!$GREP$ac_delim 8681EGREP!$EGREP$ac_delim 8682LIBOBJS!$LIBOBJS$ac_delim 8683POW_LIB!$POW_LIB$ac_delim 8684LTLIBOBJS!$LTLIBOBJS$ac_delim 8685_ACEOF 8686 8687 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then 8688 break 8689 elif $ac_last_try; then 8690 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 8691echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 8692 { (exit 1); exit 1; }; } 8693 else 8694 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8695 fi 8696done 8697 8698ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 8699if test -n "$ac_eof"; then 8700 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 8701 ac_eof=`expr $ac_eof + 1` 8702fi 8703 8704cat >>$CONFIG_STATUS <<_ACEOF 8705cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 8706/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 8707_ACEOF 8708sed ' 8709s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 8710s/^/s,@/; s/!/@,|#_!!_#|/ 8711:n 8712t n 8713s/'"$ac_delim"'$/,g/; t 8714s/$/\\/; p 8715N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 8716' >>$CONFIG_STATUS <conf$$subs.sed 8717rm -f conf$$subs.sed 8718cat >>$CONFIG_STATUS <<_ACEOF 8719:end 8720s/|#_!!_#|//g 8721CEOF$ac_eof 8722_ACEOF 8723 8724 8725# VPATH may cause trouble with some makes, so we remove $(srcdir), 8726# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8727# trailing colons and then remove the whole line if VPATH becomes empty 8728# (actually we leave an empty line to preserve line numbers). 8729if test "x$srcdir" = x.; then 8730 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8731s/:*\$(srcdir):*/:/ 8732s/:*\${srcdir}:*/:/ 8733s/:*@srcdir@:*/:/ 8734s/^\([^=]*=[ ]*\):*/\1/ 8735s/:*$// 8736s/^[^=]*=[ ]*$// 8737}' 8738fi 8739 8740cat >>$CONFIG_STATUS <<\_ACEOF 8741fi # test -n "$CONFIG_FILES" 8742 8743 8744for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 8745do 8746 case $ac_tag in 8747 :[FHLC]) ac_mode=$ac_tag; continue;; 8748 esac 8749 case $ac_mode$ac_tag in 8750 :[FHL]*:*);; 8751 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 8752echo "$as_me: error: Invalid tag $ac_tag." >&2;} 8753 { (exit 1); exit 1; }; };; 8754 :[FH]-) ac_tag=-:-;; 8755 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8756 esac 8757 ac_save_IFS=$IFS 8758 IFS=: 8759 set x $ac_tag 8760 IFS=$ac_save_IFS 8761 shift 8762 ac_file=$1 8763 shift 8764 8765 case $ac_mode in 8766 :L) ac_source=$1;; 8767 :[FH]) 8768 ac_file_inputs= 8769 for ac_f 8770 do 8771 case $ac_f in 8772 -) ac_f="$tmp/stdin";; 8773 *) # Look for the file first in the build tree, then in the source tree 8774 # (if the path is not absolute). The absolute path cannot be DOS-style, 8775 # because $ac_f cannot contain `:'. 8776 test -f "$ac_f" || 8777 case $ac_f in 8778 [\\/$]*) false;; 8779 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8780 esac || 8781 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 8782echo "$as_me: error: cannot find input file: $ac_f" >&2;} 8783 { (exit 1); exit 1; }; };; 8784 esac 8785 ac_file_inputs="$ac_file_inputs $ac_f" 8786 done 8787 8788 # Let's still pretend it is `configure' which instantiates (i.e., don't 8789 # use $as_me), people would be surprised to read: 8790 # /* config.h. Generated by config.status. */ 8791 configure_input="Generated from "`IFS=: 8792 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 8793 if test x"$ac_file" != x-; then 8794 configure_input="$ac_file. $configure_input" 8795 { echo "$as_me:$LINENO: creating $ac_file" >&5 8796echo "$as_me: creating $ac_file" >&6;} 8797 fi 8798 8799 case $ac_tag in 8800 *:-:* | *:-) cat >"$tmp/stdin";; 8801 esac 8802 ;; 8803 esac 8804 8805 ac_dir=`$as_dirname -- "$ac_file" || 8806$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8807 X"$ac_file" : 'X\(//\)[^/]' \| \ 8808 X"$ac_file" : 'X\(//\)$' \| \ 8809 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8810echo X"$ac_file" | 8811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8812 s//\1/ 8813 q 8814 } 8815 /^X\(\/\/\)[^/].*/{ 8816 s//\1/ 8817 q 8818 } 8819 /^X\(\/\/\)$/{ 8820 s//\1/ 8821 q 8822 } 8823 /^X\(\/\).*/{ 8824 s//\1/ 8825 q 8826 } 8827 s/.*/./; q'` 8828 { as_dir="$ac_dir" 8829 case $as_dir in #( 8830 -*) as_dir=./$as_dir;; 8831 esac 8832 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 8833 as_dirs= 8834 while :; do 8835 case $as_dir in #( 8836 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 8837 *) as_qdir=$as_dir;; 8838 esac 8839 as_dirs="'$as_qdir' $as_dirs" 8840 as_dir=`$as_dirname -- "$as_dir" || 8841$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8842 X"$as_dir" : 'X\(//\)[^/]' \| \ 8843 X"$as_dir" : 'X\(//\)$' \| \ 8844 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8845echo X"$as_dir" | 8846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8847 s//\1/ 8848 q 8849 } 8850 /^X\(\/\/\)[^/].*/{ 8851 s//\1/ 8852 q 8853 } 8854 /^X\(\/\/\)$/{ 8855 s//\1/ 8856 q 8857 } 8858 /^X\(\/\).*/{ 8859 s//\1/ 8860 q 8861 } 8862 s/.*/./; q'` 8863 test -d "$as_dir" && break 8864 done 8865 test -z "$as_dirs" || eval "mkdir $as_dirs" 8866 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 8867echo "$as_me: error: cannot create directory $as_dir" >&2;} 8868 { (exit 1); exit 1; }; }; } 8869 ac_builddir=. 8870 8871case "$ac_dir" in 8872.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 8873*) 8874 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 8875 # A ".." for each directory in $ac_dir_suffix. 8876 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 8877 case $ac_top_builddir_sub in 8878 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 8879 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 8880 esac ;; 8881esac 8882ac_abs_top_builddir=$ac_pwd 8883ac_abs_builddir=$ac_pwd$ac_dir_suffix 8884# for backward compatibility: 8885ac_top_builddir=$ac_top_build_prefix 8886 8887case $srcdir in 8888 .) # We are building in place. 8889 ac_srcdir=. 8890 ac_top_srcdir=$ac_top_builddir_sub 8891 ac_abs_top_srcdir=$ac_pwd ;; 8892 [\\/]* | ?:[\\/]* ) # Absolute name. 8893 ac_srcdir=$srcdir$ac_dir_suffix; 8894 ac_top_srcdir=$srcdir 8895 ac_abs_top_srcdir=$srcdir ;; 8896 *) # Relative name. 8897 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 8898 ac_top_srcdir=$ac_top_build_prefix$srcdir 8899 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 8900esac 8901ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 8902 8903 8904 case $ac_mode in 8905 :F) 8906 # 8907 # CONFIG_FILE 8908 # 8909 8910 case $INSTALL in 8911 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 8912 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 8913 esac 8914 ac_MKDIR_P=$MKDIR_P 8915 case $MKDIR_P in 8916 [\\/$]* | ?:[\\/]* ) ;; 8917 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 8918 esac 8919_ACEOF 8920 8921cat >>$CONFIG_STATUS <<\_ACEOF 8922# If the template does not know about datarootdir, expand it. 8923# FIXME: This hack should be removed a few years after 2.60. 8924ac_datarootdir_hack=; ac_datarootdir_seen= 8925 8926case `sed -n '/datarootdir/ { 8927 p 8928 q 8929} 8930/@datadir@/p 8931/@docdir@/p 8932/@infodir@/p 8933/@localedir@/p 8934/@mandir@/p 8935' $ac_file_inputs` in 8936*datarootdir*) ac_datarootdir_seen=yes;; 8937*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 8938 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 8939echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 8940_ACEOF 8941cat >>$CONFIG_STATUS <<_ACEOF 8942 ac_datarootdir_hack=' 8943 s&@datadir@&$datadir&g 8944 s&@docdir@&$docdir&g 8945 s&@infodir@&$infodir&g 8946 s&@localedir@&$localedir&g 8947 s&@mandir@&$mandir&g 8948 s&\\\${datarootdir}&$datarootdir&g' ;; 8949esac 8950_ACEOF 8951 8952# Neutralize VPATH when `$srcdir' = `.'. 8953# Shell code in configure.ac might set extrasub. 8954# FIXME: do we really want to maintain this feature? 8955cat >>$CONFIG_STATUS <<_ACEOF 8956 sed "$ac_vpsub 8957$extrasub 8958_ACEOF 8959cat >>$CONFIG_STATUS <<\_ACEOF 8960:t 8961/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 8962s&@configure_input@&$configure_input&;t t 8963s&@top_builddir@&$ac_top_builddir_sub&;t t 8964s&@srcdir@&$ac_srcdir&;t t 8965s&@abs_srcdir@&$ac_abs_srcdir&;t t 8966s&@top_srcdir@&$ac_top_srcdir&;t t 8967s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 8968s&@builddir@&$ac_builddir&;t t 8969s&@abs_builddir@&$ac_abs_builddir&;t t 8970s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 8971s&@INSTALL@&$ac_INSTALL&;t t 8972s&@MKDIR_P@&$ac_MKDIR_P&;t t 8973$ac_datarootdir_hack 8974" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 8975 8976test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 8977 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 8978 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 8979 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8980which seems to be undefined. Please make sure it is defined." >&5 8981echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 8982which seems to be undefined. Please make sure it is defined." >&2;} 8983 8984 rm -f "$tmp/stdin" 8985 case $ac_file in 8986 -) cat "$tmp/out"; rm -f "$tmp/out";; 8987 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 8988 esac 8989 ;; 8990 :H) 8991 # 8992 # CONFIG_HEADER 8993 # 8994_ACEOF 8995 8996# Transform confdefs.h into a sed script `conftest.defines', that 8997# substitutes the proper values into config.h.in to produce config.h. 8998rm -f conftest.defines conftest.tail 8999# First, append a space to every undef/define line, to ease matching. 9000echo 's/$/ /' >conftest.defines 9001# Then, protect against being on the right side of a sed subst, or in 9002# an unquoted here document, in config.status. If some macros were 9003# called several times there might be several #defines for the same 9004# symbol, which is useless. But do not sort them, since the last 9005# AC_DEFINE must be honored. 9006ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9007# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 9008# NAME is the cpp macro being defined, VALUE is the value it is being given. 9009# PARAMS is the parameter list in the macro definition--in most cases, it's 9010# just an empty string. 9011ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 9012ac_dB='\\)[ (].*,\\1define\\2' 9013ac_dC=' ' 9014ac_dD=' ,' 9015 9016uniq confdefs.h | 9017 sed -n ' 9018 t rset 9019 :rset 9020 s/^[ ]*#[ ]*define[ ][ ]*// 9021 t ok 9022 d 9023 :ok 9024 s/[\\&,]/\\&/g 9025 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 9026 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 9027 ' >>conftest.defines 9028 9029# Remove the space that was appended to ease matching. 9030# Then replace #undef with comments. This is necessary, for 9031# example, in the case of _POSIX_SOURCE, which is predefined and required 9032# on some systems where configure will not decide to define it. 9033# (The regexp can be short, since the line contains either #define or #undef.) 9034echo 's/ $// 9035s,^[ #]*u.*,/* & */,' >>conftest.defines 9036 9037# Break up conftest.defines: 9038ac_max_sed_lines=50 9039 9040# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 9041# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 9042# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 9043# et cetera. 9044ac_in='$ac_file_inputs' 9045ac_out='"$tmp/out1"' 9046ac_nxt='"$tmp/out2"' 9047 9048while : 9049do 9050 # Write a here document: 9051 cat >>$CONFIG_STATUS <<_ACEOF 9052 # First, check the format of the line: 9053 cat >"\$tmp/defines.sed" <<\\CEOF 9054/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 9055/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 9056b 9057:def 9058_ACEOF 9059 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 9060 echo 'CEOF 9061 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 9062 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 9063 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 9064 grep . conftest.tail >/dev/null || break 9065 rm -f conftest.defines 9066 mv conftest.tail conftest.defines 9067done 9068rm -f conftest.defines conftest.tail 9069 9070echo "ac_result=$ac_in" >>$CONFIG_STATUS 9071cat >>$CONFIG_STATUS <<\_ACEOF 9072 if test x"$ac_file" != x-; then 9073 echo "/* $configure_input */" >"$tmp/config.h" 9074 cat "$ac_result" >>"$tmp/config.h" 9075 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 9076 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9077echo "$as_me: $ac_file is unchanged" >&6;} 9078 else 9079 rm -f $ac_file 9080 mv "$tmp/config.h" $ac_file 9081 fi 9082 else 9083 echo "/* $configure_input */" 9084 cat "$ac_result" 9085 fi 9086 rm -f "$tmp/out12" 9087# Compute $ac_file's index in $config_headers. 9088_am_stamp_count=1 9089for _am_header in $config_headers :; do 9090 case $_am_header in 9091 $ac_file | $ac_file:* ) 9092 break ;; 9093 * ) 9094 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 9095 esac 9096done 9097echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 9098$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9099 X$ac_file : 'X\(//\)[^/]' \| \ 9100 X$ac_file : 'X\(//\)$' \| \ 9101 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 9102echo X$ac_file | 9103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9104 s//\1/ 9105 q 9106 } 9107 /^X\(\/\/\)[^/].*/{ 9108 s//\1/ 9109 q 9110 } 9111 /^X\(\/\/\)$/{ 9112 s//\1/ 9113 q 9114 } 9115 /^X\(\/\).*/{ 9116 s//\1/ 9117 q 9118 } 9119 s/.*/./; q'`/stamp-h$_am_stamp_count 9120 ;; 9121 9122 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 9123echo "$as_me: executing $ac_file commands" >&6;} 9124 ;; 9125 esac 9126 9127 9128 case $ac_file$ac_mode in 9129 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 9130 # Strip MF so we end up with the name of the file. 9131 mf=`echo "$mf" | sed -e 's/:.*$//'` 9132 # Check whether this is an Automake generated Makefile or not. 9133 # We used to match only the files named `Makefile.in', but 9134 # some people rename them; so instead we look at the file content. 9135 # Grep'ing the first line is not enough: some people post-process 9136 # each Makefile.in and add a new line on top of each file to say so. 9137 # Grep'ing the whole file is not good either: AIX grep has a line 9138 # limit of 2048, but all sed's we know have understand at least 4000. 9139 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 9140 dirpart=`$as_dirname -- "$mf" || 9141$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9142 X"$mf" : 'X\(//\)[^/]' \| \ 9143 X"$mf" : 'X\(//\)$' \| \ 9144 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 9145echo X"$mf" | 9146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9147 s//\1/ 9148 q 9149 } 9150 /^X\(\/\/\)[^/].*/{ 9151 s//\1/ 9152 q 9153 } 9154 /^X\(\/\/\)$/{ 9155 s//\1/ 9156 q 9157 } 9158 /^X\(\/\).*/{ 9159 s//\1/ 9160 q 9161 } 9162 s/.*/./; q'` 9163 else 9164 continue 9165 fi 9166 # Extract the definition of DEPDIR, am__include, and am__quote 9167 # from the Makefile without running `make'. 9168 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 9169 test -z "$DEPDIR" && continue 9170 am__include=`sed -n 's/^am__include = //p' < "$mf"` 9171 test -z "am__include" && continue 9172 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 9173 # When using ansi2knr, U may be empty or an underscore; expand it 9174 U=`sed -n 's/^U = //p' < "$mf"` 9175 # Find all dependency output files, they are included files with 9176 # $(DEPDIR) in their names. We invoke sed twice because it is the 9177 # simplest approach to changing $(DEPDIR) to its actual value in the 9178 # expansion. 9179 for file in `sed -n " 9180 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 9181 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 9182 # Make sure the directory exists. 9183 test -f "$dirpart/$file" && continue 9184 fdir=`$as_dirname -- "$file" || 9185$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9186 X"$file" : 'X\(//\)[^/]' \| \ 9187 X"$file" : 'X\(//\)$' \| \ 9188 X"$file" : 'X\(/\)' \| . 2>/dev/null || 9189echo X"$file" | 9190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9191 s//\1/ 9192 q 9193 } 9194 /^X\(\/\/\)[^/].*/{ 9195 s//\1/ 9196 q 9197 } 9198 /^X\(\/\/\)$/{ 9199 s//\1/ 9200 q 9201 } 9202 /^X\(\/\).*/{ 9203 s//\1/ 9204 q 9205 } 9206 s/.*/./; q'` 9207 { as_dir=$dirpart/$fdir 9208 case $as_dir in #( 9209 -*) as_dir=./$as_dir;; 9210 esac 9211 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 9212 as_dirs= 9213 while :; do 9214 case $as_dir in #( 9215 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 9216 *) as_qdir=$as_dir;; 9217 esac 9218 as_dirs="'$as_qdir' $as_dirs" 9219 as_dir=`$as_dirname -- "$as_dir" || 9220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9221 X"$as_dir" : 'X\(//\)[^/]' \| \ 9222 X"$as_dir" : 'X\(//\)$' \| \ 9223 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9224echo X"$as_dir" | 9225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9226 s//\1/ 9227 q 9228 } 9229 /^X\(\/\/\)[^/].*/{ 9230 s//\1/ 9231 q 9232 } 9233 /^X\(\/\/\)$/{ 9234 s//\1/ 9235 q 9236 } 9237 /^X\(\/\).*/{ 9238 s//\1/ 9239 q 9240 } 9241 s/.*/./; q'` 9242 test -d "$as_dir" && break 9243 done 9244 test -z "$as_dirs" || eval "mkdir $as_dirs" 9245 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 9246echo "$as_me: error: cannot create directory $as_dir" >&2;} 9247 { (exit 1); exit 1; }; }; } 9248 # echo "creating $dirpart/$file" 9249 echo '# dummy' > "$dirpart/$file" 9250 done 9251done 9252 ;; 9253 9254 esac 9255done # for ac_tag 9256 9257 9258{ (exit 0); exit 0; } 9259_ACEOF 9260chmod +x $CONFIG_STATUS 9261ac_clean_files=$ac_clean_files_save 9262 9263 9264# configure is writing to config.log, and then calls config.status. 9265# config.status does its own redirection, appending to config.log. 9266# Unfortunately, on DOS this fails, as config.log is still kept open 9267# by configure, so config.status won't be able to write to it; its 9268# output is simply discarded. So we exec the FD to /dev/null, 9269# effectively closing config.log, so it can be properly (re)opened and 9270# appended to by config.status. When coming back to configure, we 9271# need to make the FD available again. 9272if test "$no_create" != yes; then 9273 ac_cs_success=: 9274 ac_config_status_args= 9275 test "$silent" = yes && 9276 ac_config_status_args="$ac_config_status_args --quiet" 9277 exec 5>/dev/null 9278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9279 exec 5>>config.log 9280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9281 # would make configure fail if this is the last instruction. 9282 $ac_cs_success || { (exit 1); exit 1; } 9283fi 9284 9285