1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME= 574PACKAGE_TARNAME= 575PACKAGE_VERSION= 576PACKAGE_STRING= 577PACKAGE_BUGREPORT= 578 579ac_unique_file="data.h" 580ac_default_prefix=/usr/local/lib/xgalaga 581# Factoring default headers for most tests. 582ac_includes_default="\ 583#include <stdio.h> 584#ifdef HAVE_SYS_TYPES_H 585# include <sys/types.h> 586#endif 587#ifdef HAVE_SYS_STAT_H 588# include <sys/stat.h> 589#endif 590#ifdef STDC_HEADERS 591# include <stdlib.h> 592# include <stddef.h> 593#else 594# ifdef HAVE_STDLIB_H 595# include <stdlib.h> 596# endif 597#endif 598#ifdef HAVE_STRING_H 599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 600# include <memory.h> 601# endif 602# include <string.h> 603#endif 604#ifdef HAVE_STRINGS_H 605# include <strings.h> 606#endif 607#ifdef HAVE_INTTYPES_H 608# include <inttypes.h> 609#endif 610#ifdef HAVE_STDINT_H 611# include <stdint.h> 612#endif 613#ifdef HAVE_UNISTD_H 614# include <unistd.h> 615#endif" 616 617ac_subst_vars='SHELL 618PATH_SEPARATOR 619PACKAGE_NAME 620PACKAGE_TARNAME 621PACKAGE_VERSION 622PACKAGE_STRING 623PACKAGE_BUGREPORT 624exec_prefix 625prefix 626program_transform_name 627bindir 628sbindir 629libexecdir 630datarootdir 631datadir 632sysconfdir 633sharedstatedir 634localstatedir 635includedir 636oldincludedir 637docdir 638infodir 639htmldir 640dvidir 641pdfdir 642psdir 643libdir 644localedir 645mandir 646DEFS 647ECHO_C 648ECHO_N 649ECHO_T 650LIBS 651build_alias 652host_alias 653target_alias 654build 655build_cpu 656build_vendor 657build_os 658host 659host_cpu 660host_vendor 661host_os 662CC 663CFLAGS 664LDFLAGS 665CPPFLAGS 666ac_ct_CC 667EXEEXT 668OBJEXT 669CPP 670INSTALL_PROGRAM 671INSTALL_SCRIPT 672INSTALL_DATA 673LN_S 674SET_MAKE 675RANLIB 676XMKMF 677X_CFLAGS 678X_PRE_LIBS 679X_LIBS 680X_EXTRA_LIBS 681GREP 682EGREP 683SOUNDSERVER 684SOUNDSRVDIR 685SOUNDDEV 686SOUND 687CREDITSFILE 688LIBOBJS 689LTLIBOBJS' 690ac_subst_files='' 691 ac_precious_vars='build_alias 692host_alias 693target_alias 694CC 695CFLAGS 696LDFLAGS 697LIBS 698CPPFLAGS 699CPP 700XMKMF' 701 702 703# Initialize some variables set by options. 704ac_init_help= 705ac_init_version=false 706# The variables have the same names as the options, with 707# dashes changed to underlines. 708cache_file=/dev/null 709exec_prefix=NONE 710no_create= 711no_recursion= 712prefix=NONE 713program_prefix=NONE 714program_suffix=NONE 715program_transform_name=s,x,x, 716silent= 717site= 718srcdir= 719verbose= 720x_includes=NONE 721x_libraries=NONE 722 723# Installation directory options. 724# These are left unexpanded so users can "make install exec_prefix=/foo" 725# and all the variables that are supposed to be based on exec_prefix 726# by default will actually change. 727# Use braces instead of parens because sh, perl, etc. also accept them. 728# (The list follows the same order as the GNU Coding Standards.) 729bindir='${exec_prefix}/bin' 730sbindir='${exec_prefix}/sbin' 731libexecdir='${exec_prefix}/libexec' 732datarootdir='${prefix}/share' 733datadir='${datarootdir}' 734sysconfdir='${prefix}/etc' 735sharedstatedir='${prefix}/com' 736localstatedir='${prefix}/var' 737includedir='${prefix}/include' 738oldincludedir='/usr/include' 739docdir='${datarootdir}/doc/${PACKAGE}' 740infodir='${datarootdir}/info' 741htmldir='${docdir}' 742dvidir='${docdir}' 743pdfdir='${docdir}' 744psdir='${docdir}' 745libdir='${exec_prefix}/lib' 746localedir='${datarootdir}/locale' 747mandir='${datarootdir}/man' 748 749ac_prev= 750ac_dashdash= 751for ac_option 752do 753 # If the previous option needs an argument, assign it. 754 if test -n "$ac_prev"; then 755 eval $ac_prev=\$ac_option 756 ac_prev= 757 continue 758 fi 759 760 case $ac_option in 761 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 762 *) ac_optarg=yes ;; 763 esac 764 765 # Accept the important Cygnus configure options, so we can diagnose typos. 766 767 case $ac_dashdash$ac_option in 768 --) 769 ac_dashdash=yes ;; 770 771 -bindir | --bindir | --bindi | --bind | --bin | --bi) 772 ac_prev=bindir ;; 773 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 774 bindir=$ac_optarg ;; 775 776 -build | --build | --buil | --bui | --bu) 777 ac_prev=build_alias ;; 778 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 779 build_alias=$ac_optarg ;; 780 781 -cache-file | --cache-file | --cache-fil | --cache-fi \ 782 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 783 ac_prev=cache_file ;; 784 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 785 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 786 cache_file=$ac_optarg ;; 787 788 --config-cache | -C) 789 cache_file=config.cache ;; 790 791 -datadir | --datadir | --datadi | --datad) 792 ac_prev=datadir ;; 793 -datadir=* | --datadir=* | --datadi=* | --datad=*) 794 datadir=$ac_optarg ;; 795 796 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 797 | --dataroo | --dataro | --datar) 798 ac_prev=datarootdir ;; 799 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 800 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 801 datarootdir=$ac_optarg ;; 802 803 -disable-* | --disable-*) 804 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 805 # Reject names that are not valid shell variable names. 806 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 807 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 808 { (exit 1); exit 1; }; } 809 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 810 eval enable_$ac_feature=no ;; 811 812 -docdir | --docdir | --docdi | --doc | --do) 813 ac_prev=docdir ;; 814 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 815 docdir=$ac_optarg ;; 816 817 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 818 ac_prev=dvidir ;; 819 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 820 dvidir=$ac_optarg ;; 821 822 -enable-* | --enable-*) 823 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 824 # Reject names that are not valid shell variable names. 825 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 826 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 827 { (exit 1); exit 1; }; } 828 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 829 eval enable_$ac_feature=\$ac_optarg ;; 830 831 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 832 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 833 | --exec | --exe | --ex) 834 ac_prev=exec_prefix ;; 835 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 836 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 837 | --exec=* | --exe=* | --ex=*) 838 exec_prefix=$ac_optarg ;; 839 840 -gas | --gas | --ga | --g) 841 # Obsolete; use --with-gas. 842 with_gas=yes ;; 843 844 -help | --help | --hel | --he | -h) 845 ac_init_help=long ;; 846 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 847 ac_init_help=recursive ;; 848 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 849 ac_init_help=short ;; 850 851 -host | --host | --hos | --ho) 852 ac_prev=host_alias ;; 853 -host=* | --host=* | --hos=* | --ho=*) 854 host_alias=$ac_optarg ;; 855 856 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 857 ac_prev=htmldir ;; 858 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 859 | --ht=*) 860 htmldir=$ac_optarg ;; 861 862 -includedir | --includedir | --includedi | --included | --include \ 863 | --includ | --inclu | --incl | --inc) 864 ac_prev=includedir ;; 865 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 866 | --includ=* | --inclu=* | --incl=* | --inc=*) 867 includedir=$ac_optarg ;; 868 869 -infodir | --infodir | --infodi | --infod | --info | --inf) 870 ac_prev=infodir ;; 871 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 872 infodir=$ac_optarg ;; 873 874 -libdir | --libdir | --libdi | --libd) 875 ac_prev=libdir ;; 876 -libdir=* | --libdir=* | --libdi=* | --libd=*) 877 libdir=$ac_optarg ;; 878 879 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 880 | --libexe | --libex | --libe) 881 ac_prev=libexecdir ;; 882 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 883 | --libexe=* | --libex=* | --libe=*) 884 libexecdir=$ac_optarg ;; 885 886 -localedir | --localedir | --localedi | --localed | --locale) 887 ac_prev=localedir ;; 888 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 889 localedir=$ac_optarg ;; 890 891 -localstatedir | --localstatedir | --localstatedi | --localstated \ 892 | --localstate | --localstat | --localsta | --localst | --locals) 893 ac_prev=localstatedir ;; 894 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 895 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 896 localstatedir=$ac_optarg ;; 897 898 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 899 ac_prev=mandir ;; 900 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 901 mandir=$ac_optarg ;; 902 903 -nfp | --nfp | --nf) 904 # Obsolete; use --without-fp. 905 with_fp=no ;; 906 907 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 908 | --no-cr | --no-c | -n) 909 no_create=yes ;; 910 911 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 912 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 913 no_recursion=yes ;; 914 915 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 916 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 917 | --oldin | --oldi | --old | --ol | --o) 918 ac_prev=oldincludedir ;; 919 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 920 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 921 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 922 oldincludedir=$ac_optarg ;; 923 924 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 925 ac_prev=prefix ;; 926 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 927 prefix=$ac_optarg ;; 928 929 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 930 | --program-pre | --program-pr | --program-p) 931 ac_prev=program_prefix ;; 932 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 933 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 934 program_prefix=$ac_optarg ;; 935 936 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 937 | --program-suf | --program-su | --program-s) 938 ac_prev=program_suffix ;; 939 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 940 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 941 program_suffix=$ac_optarg ;; 942 943 -program-transform-name | --program-transform-name \ 944 | --program-transform-nam | --program-transform-na \ 945 | --program-transform-n | --program-transform- \ 946 | --program-transform | --program-transfor \ 947 | --program-transfo | --program-transf \ 948 | --program-trans | --program-tran \ 949 | --progr-tra | --program-tr | --program-t) 950 ac_prev=program_transform_name ;; 951 -program-transform-name=* | --program-transform-name=* \ 952 | --program-transform-nam=* | --program-transform-na=* \ 953 | --program-transform-n=* | --program-transform-=* \ 954 | --program-transform=* | --program-transfor=* \ 955 | --program-transfo=* | --program-transf=* \ 956 | --program-trans=* | --program-tran=* \ 957 | --progr-tra=* | --program-tr=* | --program-t=*) 958 program_transform_name=$ac_optarg ;; 959 960 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 961 ac_prev=pdfdir ;; 962 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 963 pdfdir=$ac_optarg ;; 964 965 -psdir | --psdir | --psdi | --psd | --ps) 966 ac_prev=psdir ;; 967 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 968 psdir=$ac_optarg ;; 969 970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 971 | -silent | --silent | --silen | --sile | --sil) 972 silent=yes ;; 973 974 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 975 ac_prev=sbindir ;; 976 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 977 | --sbi=* | --sb=*) 978 sbindir=$ac_optarg ;; 979 980 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 981 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 982 | --sharedst | --shareds | --shared | --share | --shar \ 983 | --sha | --sh) 984 ac_prev=sharedstatedir ;; 985 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 986 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 987 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 988 | --sha=* | --sh=*) 989 sharedstatedir=$ac_optarg ;; 990 991 -site | --site | --sit) 992 ac_prev=site ;; 993 -site=* | --site=* | --sit=*) 994 site=$ac_optarg ;; 995 996 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 997 ac_prev=srcdir ;; 998 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 999 srcdir=$ac_optarg ;; 1000 1001 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1002 | --syscon | --sysco | --sysc | --sys | --sy) 1003 ac_prev=sysconfdir ;; 1004 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1005 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1006 sysconfdir=$ac_optarg ;; 1007 1008 -target | --target | --targe | --targ | --tar | --ta | --t) 1009 ac_prev=target_alias ;; 1010 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1011 target_alias=$ac_optarg ;; 1012 1013 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1014 verbose=yes ;; 1015 1016 -version | --version | --versio | --versi | --vers | -V) 1017 ac_init_version=: ;; 1018 1019 -with-* | --with-*) 1020 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1021 # Reject names that are not valid shell variable names. 1022 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1023 { echo "$as_me: error: invalid package name: $ac_package" >&2 1024 { (exit 1); exit 1; }; } 1025 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1026 eval with_$ac_package=\$ac_optarg ;; 1027 1028 -without-* | --without-*) 1029 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1030 # Reject names that are not valid shell variable names. 1031 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1032 { echo "$as_me: error: invalid package name: $ac_package" >&2 1033 { (exit 1); exit 1; }; } 1034 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1035 eval with_$ac_package=no ;; 1036 1037 --x) 1038 # Obsolete; use --with-x. 1039 with_x=yes ;; 1040 1041 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1042 | --x-incl | --x-inc | --x-in | --x-i) 1043 ac_prev=x_includes ;; 1044 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1045 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1046 x_includes=$ac_optarg ;; 1047 1048 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1049 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1050 ac_prev=x_libraries ;; 1051 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1052 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1053 x_libraries=$ac_optarg ;; 1054 1055 -*) { echo "$as_me: error: unrecognized option: $ac_option 1056Try \`$0 --help' for more information." >&2 1057 { (exit 1); exit 1; }; } 1058 ;; 1059 1060 *=*) 1061 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1062 # Reject names that are not valid shell variable names. 1063 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1064 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1065 { (exit 1); exit 1; }; } 1066 eval $ac_envvar=\$ac_optarg 1067 export $ac_envvar ;; 1068 1069 *) 1070 # FIXME: should be removed in autoconf 3.0. 1071 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1072 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1073 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1074 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1075 ;; 1076 1077 esac 1078done 1079 1080if test -n "$ac_prev"; then 1081 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1082 { echo "$as_me: error: missing argument to $ac_option" >&2 1083 { (exit 1); exit 1; }; } 1084fi 1085 1086# Be sure to have absolute directory names. 1087for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1088 datadir sysconfdir sharedstatedir localstatedir includedir \ 1089 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1090 libdir localedir mandir 1091do 1092 eval ac_val=\$$ac_var 1093 case $ac_val in 1094 [\\/$]* | ?:[\\/]* ) continue;; 1095 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1096 esac 1097 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1098 { (exit 1); exit 1; }; } 1099done 1100 1101# There might be people who depend on the old broken behavior: `$host' 1102# used to hold the argument of --host etc. 1103# FIXME: To remove some day. 1104build=$build_alias 1105host=$host_alias 1106target=$target_alias 1107 1108# FIXME: To remove some day. 1109if test "x$host_alias" != x; then 1110 if test "x$build_alias" = x; then 1111 cross_compiling=maybe 1112 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1113 If a cross compiler is detected then cross compile mode will be used." >&2 1114 elif test "x$build_alias" != "x$host_alias"; then 1115 cross_compiling=yes 1116 fi 1117fi 1118 1119ac_tool_prefix= 1120test -n "$host_alias" && ac_tool_prefix=$host_alias- 1121 1122test "$silent" = yes && exec 6>/dev/null 1123 1124 1125ac_pwd=`pwd` && test -n "$ac_pwd" && 1126ac_ls_di=`ls -di .` && 1127ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1128 { echo "$as_me: error: Working directory cannot be determined" >&2 1129 { (exit 1); exit 1; }; } 1130test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1131 { echo "$as_me: error: pwd does not report name of working directory" >&2 1132 { (exit 1); exit 1; }; } 1133 1134 1135# Find the source files, if location was not specified. 1136if test -z "$srcdir"; then 1137 ac_srcdir_defaulted=yes 1138 # Try the directory containing this script, then the parent directory. 1139 ac_confdir=`$as_dirname -- "$0" || 1140$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1141 X"$0" : 'X\(//\)[^/]' \| \ 1142 X"$0" : 'X\(//\)$' \| \ 1143 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1144echo X"$0" | 1145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1146 s//\1/ 1147 q 1148 } 1149 /^X\(\/\/\)[^/].*/{ 1150 s//\1/ 1151 q 1152 } 1153 /^X\(\/\/\)$/{ 1154 s//\1/ 1155 q 1156 } 1157 /^X\(\/\).*/{ 1158 s//\1/ 1159 q 1160 } 1161 s/.*/./; q'` 1162 srcdir=$ac_confdir 1163 if test ! -r "$srcdir/$ac_unique_file"; then 1164 srcdir=.. 1165 fi 1166else 1167 ac_srcdir_defaulted=no 1168fi 1169if test ! -r "$srcdir/$ac_unique_file"; then 1170 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1171 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1172 { (exit 1); exit 1; }; } 1173fi 1174ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1175ac_abs_confdir=`( 1176 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1177 { (exit 1); exit 1; }; } 1178 pwd)` 1179# When building in place, set srcdir=. 1180if test "$ac_abs_confdir" = "$ac_pwd"; then 1181 srcdir=. 1182fi 1183# Remove unnecessary trailing slashes from srcdir. 1184# Double slashes in file names in object file debugging info 1185# mess up M-x gdb in Emacs. 1186case $srcdir in 1187*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1188esac 1189for ac_var in $ac_precious_vars; do 1190 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1191 eval ac_env_${ac_var}_value=\$${ac_var} 1192 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1193 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1194done 1195 1196# 1197# Report the --help message. 1198# 1199if test "$ac_init_help" = "long"; then 1200 # Omit some internal or obsolete options to make the list less imposing. 1201 # This message is too long to be a string in the A/UX 3.1 sh. 1202 cat <<_ACEOF 1203\`configure' configures this package to adapt to many kinds of systems. 1204 1205Usage: $0 [OPTION]... [VAR=VALUE]... 1206 1207To assign environment variables (e.g., CC, CFLAGS...), specify them as 1208VAR=VALUE. See below for descriptions of some of the useful variables. 1209 1210Defaults for the options are specified in brackets. 1211 1212Configuration: 1213 -h, --help display this help and exit 1214 --help=short display options specific to this package 1215 --help=recursive display the short help of all the included packages 1216 -V, --version display version information and exit 1217 -q, --quiet, --silent do not print \`checking...' messages 1218 --cache-file=FILE cache test results in FILE [disabled] 1219 -C, --config-cache alias for \`--cache-file=config.cache' 1220 -n, --no-create do not create output files 1221 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1222 1223Installation directories: 1224 --prefix=PREFIX install architecture-independent files in PREFIX 1225 [$ac_default_prefix] 1226 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1227 [PREFIX] 1228 1229By default, \`make install' will install all the files in 1230\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1231an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1232for instance \`--prefix=\$HOME'. 1233 1234For better control, use the options below. 1235 1236Fine tuning of the installation directories: 1237 --bindir=DIR user executables [EPREFIX/bin] 1238 --sbindir=DIR system admin executables [EPREFIX/sbin] 1239 --libexecdir=DIR program executables [EPREFIX/libexec] 1240 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1241 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1242 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1243 --libdir=DIR object code libraries [EPREFIX/lib] 1244 --includedir=DIR C header files [PREFIX/include] 1245 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1246 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1247 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1248 --infodir=DIR info documentation [DATAROOTDIR/info] 1249 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1250 --mandir=DIR man documentation [DATAROOTDIR/man] 1251 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1252 --htmldir=DIR html documentation [DOCDIR] 1253 --dvidir=DIR dvi documentation [DOCDIR] 1254 --pdfdir=DIR pdf documentation [DOCDIR] 1255 --psdir=DIR ps documentation [DOCDIR] 1256_ACEOF 1257 1258 cat <<\_ACEOF 1259 1260X features: 1261 --x-includes=DIR X include files are in DIR 1262 --x-libraries=DIR X library files are in DIR 1263 1264System types: 1265 --build=BUILD configure for building on BUILD [guessed] 1266 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1267_ACEOF 1268fi 1269 1270if test -n "$ac_init_help"; then 1271 1272 cat <<\_ACEOF 1273 1274Optional Packages: 1275 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1276 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1277 --with-xpm-lib Directory containing libXpm (may be autodetected) 1278 --with-sound Type of sound to use (native or nas) 1279 --with-x use the X Window System 1280 1281Some influential environment variables: 1282 CC C compiler command 1283 CFLAGS C compiler flags 1284 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1285 nonstandard directory <lib dir> 1286 LIBS libraries to pass to the linker, e.g. -l<library> 1287 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1288 you have headers in a nonstandard directory <include dir> 1289 CPP C preprocessor 1290 XMKMF Path to xmkmf, Makefile generator for X Window System 1291 1292Use these variables to override the choices made by `configure' or to help 1293it to find libraries and programs with nonstandard names/locations. 1294 1295_ACEOF 1296ac_status=$? 1297fi 1298 1299if test "$ac_init_help" = "recursive"; then 1300 # If there are subdirs, report their specific --help. 1301 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1302 test -d "$ac_dir" || continue 1303 ac_builddir=. 1304 1305case "$ac_dir" in 1306.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1307*) 1308 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1309 # A ".." for each directory in $ac_dir_suffix. 1310 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1311 case $ac_top_builddir_sub in 1312 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1313 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1314 esac ;; 1315esac 1316ac_abs_top_builddir=$ac_pwd 1317ac_abs_builddir=$ac_pwd$ac_dir_suffix 1318# for backward compatibility: 1319ac_top_builddir=$ac_top_build_prefix 1320 1321case $srcdir in 1322 .) # We are building in place. 1323 ac_srcdir=. 1324 ac_top_srcdir=$ac_top_builddir_sub 1325 ac_abs_top_srcdir=$ac_pwd ;; 1326 [\\/]* | ?:[\\/]* ) # Absolute name. 1327 ac_srcdir=$srcdir$ac_dir_suffix; 1328 ac_top_srcdir=$srcdir 1329 ac_abs_top_srcdir=$srcdir ;; 1330 *) # Relative name. 1331 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1332 ac_top_srcdir=$ac_top_build_prefix$srcdir 1333 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1334esac 1335ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1336 1337 cd "$ac_dir" || { ac_status=$?; continue; } 1338 # Check for guested configure. 1339 if test -f "$ac_srcdir/configure.gnu"; then 1340 echo && 1341 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1342 elif test -f "$ac_srcdir/configure"; then 1343 echo && 1344 $SHELL "$ac_srcdir/configure" --help=recursive 1345 else 1346 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1347 fi || ac_status=$? 1348 cd "$ac_pwd" || { ac_status=$?; break; } 1349 done 1350fi 1351 1352test -n "$ac_init_help" && exit $ac_status 1353if $ac_init_version; then 1354 cat <<\_ACEOF 1355configure 1356generated by GNU Autoconf 2.61 1357 1358Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1360This configure script is free software; the Free Software Foundation 1361gives unlimited permission to copy, distribute and modify it. 1362_ACEOF 1363 exit 1364fi 1365cat >config.log <<_ACEOF 1366This file contains any messages produced by compilers while 1367running configure, to aid debugging if configure makes a mistake. 1368 1369It was created by $as_me, which was 1370generated by GNU Autoconf 2.61. Invocation command line was 1371 1372 $ $0 $@ 1373 1374_ACEOF 1375exec 5>>config.log 1376{ 1377cat <<_ASUNAME 1378## --------- ## 1379## Platform. ## 1380## --------- ## 1381 1382hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1383uname -m = `(uname -m) 2>/dev/null || echo unknown` 1384uname -r = `(uname -r) 2>/dev/null || echo unknown` 1385uname -s = `(uname -s) 2>/dev/null || echo unknown` 1386uname -v = `(uname -v) 2>/dev/null || echo unknown` 1387 1388/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1389/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1390 1391/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1392/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1393/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1394/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1395/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1396/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1397/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1398 1399_ASUNAME 1400 1401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1402for as_dir in $PATH 1403do 1404 IFS=$as_save_IFS 1405 test -z "$as_dir" && as_dir=. 1406 echo "PATH: $as_dir" 1407done 1408IFS=$as_save_IFS 1409 1410} >&5 1411 1412cat >&5 <<_ACEOF 1413 1414 1415## ----------- ## 1416## Core tests. ## 1417## ----------- ## 1418 1419_ACEOF 1420 1421 1422# Keep a trace of the command line. 1423# Strip out --no-create and --no-recursion so they do not pile up. 1424# Strip out --silent because we don't want to record it for future runs. 1425# Also quote any args containing shell meta-characters. 1426# Make two passes to allow for proper duplicate-argument suppression. 1427ac_configure_args= 1428ac_configure_args0= 1429ac_configure_args1= 1430ac_must_keep_next=false 1431for ac_pass in 1 2 1432do 1433 for ac_arg 1434 do 1435 case $ac_arg in 1436 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1438 | -silent | --silent | --silen | --sile | --sil) 1439 continue ;; 1440 *\'*) 1441 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1442 esac 1443 case $ac_pass in 1444 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1445 2) 1446 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1447 if test $ac_must_keep_next = true; then 1448 ac_must_keep_next=false # Got value, back to normal. 1449 else 1450 case $ac_arg in 1451 *=* | --config-cache | -C | -disable-* | --disable-* \ 1452 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1453 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1454 | -with-* | --with-* | -without-* | --without-* | --x) 1455 case "$ac_configure_args0 " in 1456 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1457 esac 1458 ;; 1459 -* ) ac_must_keep_next=true ;; 1460 esac 1461 fi 1462 ac_configure_args="$ac_configure_args '$ac_arg'" 1463 ;; 1464 esac 1465 done 1466done 1467$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1468$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1469 1470# When interrupted or exit'd, cleanup temporary files, and complete 1471# config.log. We remove comments because anyway the quotes in there 1472# would cause problems or look ugly. 1473# WARNING: Use '\'' to represent an apostrophe within the trap. 1474# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1475trap 'exit_status=$? 1476 # Save into config.log some information that might help in debugging. 1477 { 1478 echo 1479 1480 cat <<\_ASBOX 1481## ---------------- ## 1482## Cache variables. ## 1483## ---------------- ## 1484_ASBOX 1485 echo 1486 # The following way of writing the cache mishandles newlines in values, 1487( 1488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1489 eval ac_val=\$$ac_var 1490 case $ac_val in #( 1491 *${as_nl}*) 1492 case $ac_var in #( 1493 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1494echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1495 esac 1496 case $ac_var in #( 1497 _ | IFS | as_nl) ;; #( 1498 *) $as_unset $ac_var ;; 1499 esac ;; 1500 esac 1501 done 1502 (set) 2>&1 | 1503 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1504 *${as_nl}ac_space=\ *) 1505 sed -n \ 1506 "s/'\''/'\''\\\\'\'''\''/g; 1507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1508 ;; #( 1509 *) 1510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1511 ;; 1512 esac | 1513 sort 1514) 1515 echo 1516 1517 cat <<\_ASBOX 1518## ----------------- ## 1519## Output variables. ## 1520## ----------------- ## 1521_ASBOX 1522 echo 1523 for ac_var in $ac_subst_vars 1524 do 1525 eval ac_val=\$$ac_var 1526 case $ac_val in 1527 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1528 esac 1529 echo "$ac_var='\''$ac_val'\''" 1530 done | sort 1531 echo 1532 1533 if test -n "$ac_subst_files"; then 1534 cat <<\_ASBOX 1535## ------------------- ## 1536## File substitutions. ## 1537## ------------------- ## 1538_ASBOX 1539 echo 1540 for ac_var in $ac_subst_files 1541 do 1542 eval ac_val=\$$ac_var 1543 case $ac_val in 1544 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1545 esac 1546 echo "$ac_var='\''$ac_val'\''" 1547 done | sort 1548 echo 1549 fi 1550 1551 if test -s confdefs.h; then 1552 cat <<\_ASBOX 1553## ----------- ## 1554## confdefs.h. ## 1555## ----------- ## 1556_ASBOX 1557 echo 1558 cat confdefs.h 1559 echo 1560 fi 1561 test "$ac_signal" != 0 && 1562 echo "$as_me: caught signal $ac_signal" 1563 echo "$as_me: exit $exit_status" 1564 } >&5 1565 rm -f core *.core core.conftest.* && 1566 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1567 exit $exit_status 1568' 0 1569for ac_signal in 1 2 13 15; do 1570 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1571done 1572ac_signal=0 1573 1574# confdefs.h avoids OS command line length limits that DEFS can exceed. 1575rm -f -r conftest* confdefs.h 1576 1577# Predefined preprocessor variables. 1578 1579cat >>confdefs.h <<_ACEOF 1580#define PACKAGE_NAME "$PACKAGE_NAME" 1581_ACEOF 1582 1583 1584cat >>confdefs.h <<_ACEOF 1585#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1586_ACEOF 1587 1588 1589cat >>confdefs.h <<_ACEOF 1590#define PACKAGE_VERSION "$PACKAGE_VERSION" 1591_ACEOF 1592 1593 1594cat >>confdefs.h <<_ACEOF 1595#define PACKAGE_STRING "$PACKAGE_STRING" 1596_ACEOF 1597 1598 1599cat >>confdefs.h <<_ACEOF 1600#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1601_ACEOF 1602 1603 1604# Let the site file select an alternate cache file if it wants to. 1605# Prefer explicitly selected file to automatically selected ones. 1606if test -n "$CONFIG_SITE"; then 1607 set x "$CONFIG_SITE" 1608elif test "x$prefix" != xNONE; then 1609 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1610else 1611 set x "$ac_default_prefix/share/config.site" \ 1612 "$ac_default_prefix/etc/config.site" 1613fi 1614shift 1615for ac_site_file 1616do 1617 if test -r "$ac_site_file"; then 1618 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1619echo "$as_me: loading site script $ac_site_file" >&6;} 1620 sed 's/^/| /' "$ac_site_file" >&5 1621 . "$ac_site_file" 1622 fi 1623done 1624 1625if test -r "$cache_file"; then 1626 # Some versions of bash will fail to source /dev/null (special 1627 # files actually), so we avoid doing that. 1628 if test -f "$cache_file"; then 1629 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1630echo "$as_me: loading cache $cache_file" >&6;} 1631 case $cache_file in 1632 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1633 *) . "./$cache_file";; 1634 esac 1635 fi 1636else 1637 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1638echo "$as_me: creating cache $cache_file" >&6;} 1639 >$cache_file 1640fi 1641 1642# Check that the precious variables saved in the cache have kept the same 1643# value. 1644ac_cache_corrupted=false 1645for ac_var in $ac_precious_vars; do 1646 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1647 eval ac_new_set=\$ac_env_${ac_var}_set 1648 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1649 eval ac_new_val=\$ac_env_${ac_var}_value 1650 case $ac_old_set,$ac_new_set in 1651 set,) 1652 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1653echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1654 ac_cache_corrupted=: ;; 1655 ,set) 1656 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1657echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1658 ac_cache_corrupted=: ;; 1659 ,);; 1660 *) 1661 if test "x$ac_old_val" != "x$ac_new_val"; then 1662 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1663echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1664 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1665echo "$as_me: former value: $ac_old_val" >&2;} 1666 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1667echo "$as_me: current value: $ac_new_val" >&2;} 1668 ac_cache_corrupted=: 1669 fi;; 1670 esac 1671 # Pass precious variables to config.status. 1672 if test "$ac_new_set" = set; then 1673 case $ac_new_val in 1674 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1675 *) ac_arg=$ac_var=$ac_new_val ;; 1676 esac 1677 case " $ac_configure_args " in 1678 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1679 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1680 esac 1681 fi 1682done 1683if $ac_cache_corrupted; then 1684 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1685echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1686 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1687echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1688 { (exit 1); exit 1; }; } 1689fi 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707ac_ext=c 1708ac_cpp='$CPP $CPPFLAGS' 1709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1711ac_compiler_gnu=$ac_cv_c_compiler_gnu 1712 1713 1714 1715 1716test "$prefix" = NONE && prefix=/usr/local/lib/xgalaga 1717test "$exec_prefix" = NONE && exec_prefix=/usr/local/bin 1718 1719ac_aux_dir= 1720for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1721 if test -f "$ac_dir/install-sh"; then 1722 ac_aux_dir=$ac_dir 1723 ac_install_sh="$ac_aux_dir/install-sh -c" 1724 break 1725 elif test -f "$ac_dir/install.sh"; then 1726 ac_aux_dir=$ac_dir 1727 ac_install_sh="$ac_aux_dir/install.sh -c" 1728 break 1729 elif test -f "$ac_dir/shtool"; then 1730 ac_aux_dir=$ac_dir 1731 ac_install_sh="$ac_aux_dir/shtool install -c" 1732 break 1733 fi 1734done 1735if test -z "$ac_aux_dir"; then 1736 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1737echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1738 { (exit 1); exit 1; }; } 1739fi 1740 1741# These three variables are undocumented and unsupported, 1742# and are intended to be withdrawn in a future Autoconf release. 1743# They can cause serious problems if a builder's source tree is in a directory 1744# whose full name contains unusual characters. 1745ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1746ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1747ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1748 1749 1750# Make sure we can run config.sub. 1751$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1752 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1753echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1754 { (exit 1); exit 1; }; } 1755 1756{ echo "$as_me:$LINENO: checking build system type" >&5 1757echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1758if test "${ac_cv_build+set}" = set; then 1759 echo $ECHO_N "(cached) $ECHO_C" >&6 1760else 1761 ac_build_alias=$build_alias 1762test "x$ac_build_alias" = x && 1763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1764test "x$ac_build_alias" = x && 1765 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1766echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1767 { (exit 1); exit 1; }; } 1768ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1769 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1770echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1771 { (exit 1); exit 1; }; } 1772 1773fi 1774{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1775echo "${ECHO_T}$ac_cv_build" >&6; } 1776case $ac_cv_build in 1777*-*-*) ;; 1778*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1779echo "$as_me: error: invalid value of canonical build" >&2;} 1780 { (exit 1); exit 1; }; };; 1781esac 1782build=$ac_cv_build 1783ac_save_IFS=$IFS; IFS='-' 1784set x $ac_cv_build 1785shift 1786build_cpu=$1 1787build_vendor=$2 1788shift; shift 1789# Remember, the first character of IFS is used to create $*, 1790# except with old shells: 1791build_os=$* 1792IFS=$ac_save_IFS 1793case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1794 1795 1796{ echo "$as_me:$LINENO: checking host system type" >&5 1797echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1798if test "${ac_cv_host+set}" = set; then 1799 echo $ECHO_N "(cached) $ECHO_C" >&6 1800else 1801 if test "x$host_alias" = x; then 1802 ac_cv_host=$ac_cv_build 1803else 1804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1805 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1806echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1807 { (exit 1); exit 1; }; } 1808fi 1809 1810fi 1811{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1812echo "${ECHO_T}$ac_cv_host" >&6; } 1813case $ac_cv_host in 1814*-*-*) ;; 1815*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1816echo "$as_me: error: invalid value of canonical host" >&2;} 1817 { (exit 1); exit 1; }; };; 1818esac 1819host=$ac_cv_host 1820ac_save_IFS=$IFS; IFS='-' 1821set x $ac_cv_host 1822shift 1823host_cpu=$1 1824host_vendor=$2 1825shift; shift 1826# Remember, the first character of IFS is used to create $*, 1827# except with old shells: 1828host_os=$* 1829IFS=$ac_save_IFS 1830case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1831 1832 1833 1834ac_ext=c 1835ac_cpp='$CPP $CPPFLAGS' 1836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1838ac_compiler_gnu=$ac_cv_c_compiler_gnu 1839if test -n "$ac_tool_prefix"; then 1840 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1841set dummy ${ac_tool_prefix}gcc; ac_word=$2 1842{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1844if test "${ac_cv_prog_CC+set}" = set; then 1845 echo $ECHO_N "(cached) $ECHO_C" >&6 1846else 1847 if test -n "$CC"; then 1848 ac_cv_prog_CC="$CC" # Let the user override the test. 1849else 1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1851for as_dir in $PATH 1852do 1853 IFS=$as_save_IFS 1854 test -z "$as_dir" && as_dir=. 1855 for ac_exec_ext in '' $ac_executable_extensions; do 1856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1857 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1859 break 2 1860 fi 1861done 1862done 1863IFS=$as_save_IFS 1864 1865fi 1866fi 1867CC=$ac_cv_prog_CC 1868if test -n "$CC"; then 1869 { echo "$as_me:$LINENO: result: $CC" >&5 1870echo "${ECHO_T}$CC" >&6; } 1871else 1872 { echo "$as_me:$LINENO: result: no" >&5 1873echo "${ECHO_T}no" >&6; } 1874fi 1875 1876 1877fi 1878if test -z "$ac_cv_prog_CC"; then 1879 ac_ct_CC=$CC 1880 # Extract the first word of "gcc", so it can be a program name with args. 1881set dummy gcc; ac_word=$2 1882{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1885 echo $ECHO_N "(cached) $ECHO_C" >&6 1886else 1887 if test -n "$ac_ct_CC"; then 1888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1889else 1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1891for as_dir in $PATH 1892do 1893 IFS=$as_save_IFS 1894 test -z "$as_dir" && as_dir=. 1895 for ac_exec_ext in '' $ac_executable_extensions; do 1896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1897 ac_cv_prog_ac_ct_CC="gcc" 1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1899 break 2 1900 fi 1901done 1902done 1903IFS=$as_save_IFS 1904 1905fi 1906fi 1907ac_ct_CC=$ac_cv_prog_ac_ct_CC 1908if test -n "$ac_ct_CC"; then 1909 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1910echo "${ECHO_T}$ac_ct_CC" >&6; } 1911else 1912 { echo "$as_me:$LINENO: result: no" >&5 1913echo "${ECHO_T}no" >&6; } 1914fi 1915 1916 if test "x$ac_ct_CC" = x; then 1917 CC="" 1918 else 1919 case $cross_compiling:$ac_tool_warned in 1920yes:) 1921{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1922whose name does not start with the host triplet. If you think this 1923configuration is useful to you, please write to autoconf@gnu.org." >&5 1924echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1925whose name does not start with the host triplet. If you think this 1926configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1927ac_tool_warned=yes ;; 1928esac 1929 CC=$ac_ct_CC 1930 fi 1931else 1932 CC="$ac_cv_prog_CC" 1933fi 1934 1935if test -z "$CC"; then 1936 if test -n "$ac_tool_prefix"; then 1937 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1938set dummy ${ac_tool_prefix}cc; ac_word=$2 1939{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1941if test "${ac_cv_prog_CC+set}" = set; then 1942 echo $ECHO_N "(cached) $ECHO_C" >&6 1943else 1944 if test -n "$CC"; then 1945 ac_cv_prog_CC="$CC" # Let the user override the test. 1946else 1947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1948for as_dir in $PATH 1949do 1950 IFS=$as_save_IFS 1951 test -z "$as_dir" && as_dir=. 1952 for ac_exec_ext in '' $ac_executable_extensions; do 1953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1954 ac_cv_prog_CC="${ac_tool_prefix}cc" 1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1956 break 2 1957 fi 1958done 1959done 1960IFS=$as_save_IFS 1961 1962fi 1963fi 1964CC=$ac_cv_prog_CC 1965if test -n "$CC"; then 1966 { echo "$as_me:$LINENO: result: $CC" >&5 1967echo "${ECHO_T}$CC" >&6; } 1968else 1969 { echo "$as_me:$LINENO: result: no" >&5 1970echo "${ECHO_T}no" >&6; } 1971fi 1972 1973 1974 fi 1975fi 1976if test -z "$CC"; then 1977 # Extract the first word of "cc", so it can be a program name with args. 1978set dummy cc; ac_word=$2 1979{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1981if test "${ac_cv_prog_CC+set}" = set; then 1982 echo $ECHO_N "(cached) $ECHO_C" >&6 1983else 1984 if test -n "$CC"; then 1985 ac_cv_prog_CC="$CC" # Let the user override the test. 1986else 1987 ac_prog_rejected=no 1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1989for as_dir in $PATH 1990do 1991 IFS=$as_save_IFS 1992 test -z "$as_dir" && as_dir=. 1993 for ac_exec_ext in '' $ac_executable_extensions; do 1994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1996 ac_prog_rejected=yes 1997 continue 1998 fi 1999 ac_cv_prog_CC="cc" 2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2001 break 2 2002 fi 2003done 2004done 2005IFS=$as_save_IFS 2006 2007if test $ac_prog_rejected = yes; then 2008 # We found a bogon in the path, so make sure we never use it. 2009 set dummy $ac_cv_prog_CC 2010 shift 2011 if test $# != 0; then 2012 # We chose a different compiler from the bogus one. 2013 # However, it has the same basename, so the bogon will be chosen 2014 # first if we set CC to just the basename; use the full file name. 2015 shift 2016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2017 fi 2018fi 2019fi 2020fi 2021CC=$ac_cv_prog_CC 2022if test -n "$CC"; then 2023 { echo "$as_me:$LINENO: result: $CC" >&5 2024echo "${ECHO_T}$CC" >&6; } 2025else 2026 { echo "$as_me:$LINENO: result: no" >&5 2027echo "${ECHO_T}no" >&6; } 2028fi 2029 2030 2031fi 2032if test -z "$CC"; then 2033 if test -n "$ac_tool_prefix"; then 2034 for ac_prog in cl.exe 2035 do 2036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2037set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2038{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2040if test "${ac_cv_prog_CC+set}" = set; then 2041 echo $ECHO_N "(cached) $ECHO_C" >&6 2042else 2043 if test -n "$CC"; then 2044 ac_cv_prog_CC="$CC" # Let the user override the test. 2045else 2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2047for as_dir in $PATH 2048do 2049 IFS=$as_save_IFS 2050 test -z "$as_dir" && as_dir=. 2051 for ac_exec_ext in '' $ac_executable_extensions; do 2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2053 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2055 break 2 2056 fi 2057done 2058done 2059IFS=$as_save_IFS 2060 2061fi 2062fi 2063CC=$ac_cv_prog_CC 2064if test -n "$CC"; then 2065 { echo "$as_me:$LINENO: result: $CC" >&5 2066echo "${ECHO_T}$CC" >&6; } 2067else 2068 { echo "$as_me:$LINENO: result: no" >&5 2069echo "${ECHO_T}no" >&6; } 2070fi 2071 2072 2073 test -n "$CC" && break 2074 done 2075fi 2076if test -z "$CC"; then 2077 ac_ct_CC=$CC 2078 for ac_prog in cl.exe 2079do 2080 # Extract the first word of "$ac_prog", so it can be a program name with args. 2081set dummy $ac_prog; ac_word=$2 2082{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2085 echo $ECHO_N "(cached) $ECHO_C" >&6 2086else 2087 if test -n "$ac_ct_CC"; then 2088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2089else 2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2091for as_dir in $PATH 2092do 2093 IFS=$as_save_IFS 2094 test -z "$as_dir" && as_dir=. 2095 for ac_exec_ext in '' $ac_executable_extensions; do 2096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2097 ac_cv_prog_ac_ct_CC="$ac_prog" 2098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2099 break 2 2100 fi 2101done 2102done 2103IFS=$as_save_IFS 2104 2105fi 2106fi 2107ac_ct_CC=$ac_cv_prog_ac_ct_CC 2108if test -n "$ac_ct_CC"; then 2109 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2110echo "${ECHO_T}$ac_ct_CC" >&6; } 2111else 2112 { echo "$as_me:$LINENO: result: no" >&5 2113echo "${ECHO_T}no" >&6; } 2114fi 2115 2116 2117 test -n "$ac_ct_CC" && break 2118done 2119 2120 if test "x$ac_ct_CC" = x; then 2121 CC="" 2122 else 2123 case $cross_compiling:$ac_tool_warned in 2124yes:) 2125{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2126whose name does not start with the host triplet. If you think this 2127configuration is useful to you, please write to autoconf@gnu.org." >&5 2128echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2129whose name does not start with the host triplet. If you think this 2130configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2131ac_tool_warned=yes ;; 2132esac 2133 CC=$ac_ct_CC 2134 fi 2135fi 2136 2137fi 2138 2139 2140test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2141See \`config.log' for more details." >&5 2142echo "$as_me: error: no acceptable C compiler found in \$PATH 2143See \`config.log' for more details." >&2;} 2144 { (exit 1); exit 1; }; } 2145 2146# Provide some information about the compiler. 2147echo "$as_me:$LINENO: checking for C compiler version" >&5 2148ac_compiler=`set X $ac_compile; echo $2` 2149{ (ac_try="$ac_compiler --version >&5" 2150case "(($ac_try" in 2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2152 *) ac_try_echo=$ac_try;; 2153esac 2154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2155 (eval "$ac_compiler --version >&5") 2>&5 2156 ac_status=$? 2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2158 (exit $ac_status); } 2159{ (ac_try="$ac_compiler -v >&5" 2160case "(($ac_try" in 2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2162 *) ac_try_echo=$ac_try;; 2163esac 2164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2165 (eval "$ac_compiler -v >&5") 2>&5 2166 ac_status=$? 2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2168 (exit $ac_status); } 2169{ (ac_try="$ac_compiler -V >&5" 2170case "(($ac_try" in 2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2172 *) ac_try_echo=$ac_try;; 2173esac 2174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2175 (eval "$ac_compiler -V >&5") 2>&5 2176 ac_status=$? 2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2178 (exit $ac_status); } 2179 2180cat >conftest.$ac_ext <<_ACEOF 2181/* confdefs.h. */ 2182_ACEOF 2183cat confdefs.h >>conftest.$ac_ext 2184cat >>conftest.$ac_ext <<_ACEOF 2185/* end confdefs.h. */ 2186 2187int 2188main () 2189{ 2190 2191 ; 2192 return 0; 2193} 2194_ACEOF 2195ac_clean_files_save=$ac_clean_files 2196ac_clean_files="$ac_clean_files a.out a.exe b.out" 2197# Try to create an executable without -o first, disregard a.out. 2198# It will help us diagnose broken compilers, and finding out an intuition 2199# of exeext. 2200{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2201echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2202ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2203# 2204# List of possible output files, starting from the most likely. 2205# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2206# only as a last resort. b.out is created by i960 compilers. 2207ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2208# 2209# The IRIX 6 linker writes into existing files which may not be 2210# executable, retaining their permissions. Remove them first so a 2211# subsequent execution test works. 2212ac_rmfiles= 2213for ac_file in $ac_files 2214do 2215 case $ac_file in 2216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2217 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2218 esac 2219done 2220rm -f $ac_rmfiles 2221 2222if { (ac_try="$ac_link_default" 2223case "(($ac_try" in 2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2225 *) ac_try_echo=$ac_try;; 2226esac 2227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2228 (eval "$ac_link_default") 2>&5 2229 ac_status=$? 2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2231 (exit $ac_status); }; then 2232 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2233# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2234# in a Makefile. We should not override ac_cv_exeext if it was cached, 2235# so that the user can short-circuit this test for compilers unknown to 2236# Autoconf. 2237for ac_file in $ac_files '' 2238do 2239 test -f "$ac_file" || continue 2240 case $ac_file in 2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2242 ;; 2243 [ab].out ) 2244 # We found the default executable, but exeext='' is most 2245 # certainly right. 2246 break;; 2247 *.* ) 2248 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2249 then :; else 2250 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2251 fi 2252 # We set ac_cv_exeext here because the later test for it is not 2253 # safe: cross compilers may not add the suffix if given an `-o' 2254 # argument, so we may need to know it at that point already. 2255 # Even if this section looks crufty: it has the advantage of 2256 # actually working. 2257 break;; 2258 * ) 2259 break;; 2260 esac 2261done 2262test "$ac_cv_exeext" = no && ac_cv_exeext= 2263 2264else 2265 ac_file='' 2266fi 2267 2268{ echo "$as_me:$LINENO: result: $ac_file" >&5 2269echo "${ECHO_T}$ac_file" >&6; } 2270if test -z "$ac_file"; then 2271 echo "$as_me: failed program was:" >&5 2272sed 's/^/| /' conftest.$ac_ext >&5 2273 2274{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2275See \`config.log' for more details." >&5 2276echo "$as_me: error: C compiler cannot create executables 2277See \`config.log' for more details." >&2;} 2278 { (exit 77); exit 77; }; } 2279fi 2280 2281ac_exeext=$ac_cv_exeext 2282 2283# Check that the compiler produces executables we can run. If not, either 2284# the compiler is broken, or we cross compile. 2285{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2286echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2287# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2288# If not cross compiling, check that we can run a simple program. 2289if test "$cross_compiling" != yes; then 2290 if { ac_try='./$ac_file' 2291 { (case "(($ac_try" in 2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2293 *) ac_try_echo=$ac_try;; 2294esac 2295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2296 (eval "$ac_try") 2>&5 2297 ac_status=$? 2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2299 (exit $ac_status); }; }; then 2300 cross_compiling=no 2301 else 2302 if test "$cross_compiling" = maybe; then 2303 cross_compiling=yes 2304 else 2305 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2306If you meant to cross compile, use \`--host'. 2307See \`config.log' for more details." >&5 2308echo "$as_me: error: cannot run C compiled programs. 2309If you meant to cross compile, use \`--host'. 2310See \`config.log' for more details." >&2;} 2311 { (exit 1); exit 1; }; } 2312 fi 2313 fi 2314fi 2315{ echo "$as_me:$LINENO: result: yes" >&5 2316echo "${ECHO_T}yes" >&6; } 2317 2318rm -f a.out a.exe conftest$ac_cv_exeext b.out 2319ac_clean_files=$ac_clean_files_save 2320# Check that the compiler produces executables we can run. If not, either 2321# the compiler is broken, or we cross compile. 2322{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2323echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2324{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2325echo "${ECHO_T}$cross_compiling" >&6; } 2326 2327{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2328echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2329if { (ac_try="$ac_link" 2330case "(($ac_try" in 2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2332 *) ac_try_echo=$ac_try;; 2333esac 2334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2335 (eval "$ac_link") 2>&5 2336 ac_status=$? 2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2338 (exit $ac_status); }; then 2339 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2340# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2341# work properly (i.e., refer to `conftest.exe'), while it won't with 2342# `rm'. 2343for ac_file in conftest.exe conftest conftest.*; do 2344 test -f "$ac_file" || continue 2345 case $ac_file in 2346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2347 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2348 break;; 2349 * ) break;; 2350 esac 2351done 2352else 2353 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2354See \`config.log' for more details." >&5 2355echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2356See \`config.log' for more details." >&2;} 2357 { (exit 1); exit 1; }; } 2358fi 2359 2360rm -f conftest$ac_cv_exeext 2361{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2362echo "${ECHO_T}$ac_cv_exeext" >&6; } 2363 2364rm -f conftest.$ac_ext 2365EXEEXT=$ac_cv_exeext 2366ac_exeext=$EXEEXT 2367{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2368echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2369if test "${ac_cv_objext+set}" = set; then 2370 echo $ECHO_N "(cached) $ECHO_C" >&6 2371else 2372 cat >conftest.$ac_ext <<_ACEOF 2373/* confdefs.h. */ 2374_ACEOF 2375cat confdefs.h >>conftest.$ac_ext 2376cat >>conftest.$ac_ext <<_ACEOF 2377/* end confdefs.h. */ 2378 2379int 2380main () 2381{ 2382 2383 ; 2384 return 0; 2385} 2386_ACEOF 2387rm -f conftest.o conftest.obj 2388if { (ac_try="$ac_compile" 2389case "(($ac_try" in 2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2391 *) ac_try_echo=$ac_try;; 2392esac 2393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2394 (eval "$ac_compile") 2>&5 2395 ac_status=$? 2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2397 (exit $ac_status); }; then 2398 for ac_file in conftest.o conftest.obj conftest.*; do 2399 test -f "$ac_file" || continue; 2400 case $ac_file in 2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2403 break;; 2404 esac 2405done 2406else 2407 echo "$as_me: failed program was:" >&5 2408sed 's/^/| /' conftest.$ac_ext >&5 2409 2410{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2411See \`config.log' for more details." >&5 2412echo "$as_me: error: cannot compute suffix of object files: cannot compile 2413See \`config.log' for more details." >&2;} 2414 { (exit 1); exit 1; }; } 2415fi 2416 2417rm -f conftest.$ac_cv_objext conftest.$ac_ext 2418fi 2419{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2420echo "${ECHO_T}$ac_cv_objext" >&6; } 2421OBJEXT=$ac_cv_objext 2422ac_objext=$OBJEXT 2423{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2424echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2425if test "${ac_cv_c_compiler_gnu+set}" = set; then 2426 echo $ECHO_N "(cached) $ECHO_C" >&6 2427else 2428 cat >conftest.$ac_ext <<_ACEOF 2429/* confdefs.h. */ 2430_ACEOF 2431cat confdefs.h >>conftest.$ac_ext 2432cat >>conftest.$ac_ext <<_ACEOF 2433/* end confdefs.h. */ 2434 2435int 2436main () 2437{ 2438#ifndef __GNUC__ 2439 choke me 2440#endif 2441 2442 ; 2443 return 0; 2444} 2445_ACEOF 2446rm -f conftest.$ac_objext 2447if { (ac_try="$ac_compile" 2448case "(($ac_try" in 2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2450 *) ac_try_echo=$ac_try;; 2451esac 2452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2453 (eval "$ac_compile") 2>conftest.er1 2454 ac_status=$? 2455 grep -v '^ *+' conftest.er1 >conftest.err 2456 rm -f conftest.er1 2457 cat conftest.err >&5 2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2459 (exit $ac_status); } && { 2460 test -z "$ac_c_werror_flag" || 2461 test ! -s conftest.err 2462 } && test -s conftest.$ac_objext; then 2463 ac_compiler_gnu=yes 2464else 2465 echo "$as_me: failed program was:" >&5 2466sed 's/^/| /' conftest.$ac_ext >&5 2467 2468 ac_compiler_gnu=no 2469fi 2470 2471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2472ac_cv_c_compiler_gnu=$ac_compiler_gnu 2473 2474fi 2475{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2476echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2477GCC=`test $ac_compiler_gnu = yes && echo yes` 2478ac_test_CFLAGS=${CFLAGS+set} 2479ac_save_CFLAGS=$CFLAGS 2480{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2481echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2482if test "${ac_cv_prog_cc_g+set}" = set; then 2483 echo $ECHO_N "(cached) $ECHO_C" >&6 2484else 2485 ac_save_c_werror_flag=$ac_c_werror_flag 2486 ac_c_werror_flag=yes 2487 ac_cv_prog_cc_g=no 2488 CFLAGS="-g" 2489 cat >conftest.$ac_ext <<_ACEOF 2490/* confdefs.h. */ 2491_ACEOF 2492cat confdefs.h >>conftest.$ac_ext 2493cat >>conftest.$ac_ext <<_ACEOF 2494/* end confdefs.h. */ 2495 2496int 2497main () 2498{ 2499 2500 ; 2501 return 0; 2502} 2503_ACEOF 2504rm -f conftest.$ac_objext 2505if { (ac_try="$ac_compile" 2506case "(($ac_try" in 2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2508 *) ac_try_echo=$ac_try;; 2509esac 2510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2511 (eval "$ac_compile") 2>conftest.er1 2512 ac_status=$? 2513 grep -v '^ *+' conftest.er1 >conftest.err 2514 rm -f conftest.er1 2515 cat conftest.err >&5 2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2517 (exit $ac_status); } && { 2518 test -z "$ac_c_werror_flag" || 2519 test ! -s conftest.err 2520 } && test -s conftest.$ac_objext; then 2521 ac_cv_prog_cc_g=yes 2522else 2523 echo "$as_me: failed program was:" >&5 2524sed 's/^/| /' conftest.$ac_ext >&5 2525 2526 CFLAGS="" 2527 cat >conftest.$ac_ext <<_ACEOF 2528/* confdefs.h. */ 2529_ACEOF 2530cat confdefs.h >>conftest.$ac_ext 2531cat >>conftest.$ac_ext <<_ACEOF 2532/* end confdefs.h. */ 2533 2534int 2535main () 2536{ 2537 2538 ; 2539 return 0; 2540} 2541_ACEOF 2542rm -f conftest.$ac_objext 2543if { (ac_try="$ac_compile" 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_compile") 2>conftest.er1 2550 ac_status=$? 2551 grep -v '^ *+' conftest.er1 >conftest.err 2552 rm -f conftest.er1 2553 cat conftest.err >&5 2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2555 (exit $ac_status); } && { 2556 test -z "$ac_c_werror_flag" || 2557 test ! -s conftest.err 2558 } && test -s conftest.$ac_objext; then 2559 : 2560else 2561 echo "$as_me: failed program was:" >&5 2562sed 's/^/| /' conftest.$ac_ext >&5 2563 2564 ac_c_werror_flag=$ac_save_c_werror_flag 2565 CFLAGS="-g" 2566 cat >conftest.$ac_ext <<_ACEOF 2567/* confdefs.h. */ 2568_ACEOF 2569cat confdefs.h >>conftest.$ac_ext 2570cat >>conftest.$ac_ext <<_ACEOF 2571/* end confdefs.h. */ 2572 2573int 2574main () 2575{ 2576 2577 ; 2578 return 0; 2579} 2580_ACEOF 2581rm -f conftest.$ac_objext 2582if { (ac_try="$ac_compile" 2583case "(($ac_try" in 2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2585 *) ac_try_echo=$ac_try;; 2586esac 2587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2588 (eval "$ac_compile") 2>conftest.er1 2589 ac_status=$? 2590 grep -v '^ *+' conftest.er1 >conftest.err 2591 rm -f conftest.er1 2592 cat conftest.err >&5 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); } && { 2595 test -z "$ac_c_werror_flag" || 2596 test ! -s conftest.err 2597 } && test -s conftest.$ac_objext; then 2598 ac_cv_prog_cc_g=yes 2599else 2600 echo "$as_me: failed program was:" >&5 2601sed 's/^/| /' conftest.$ac_ext >&5 2602 2603 2604fi 2605 2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2607fi 2608 2609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2610fi 2611 2612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2613 ac_c_werror_flag=$ac_save_c_werror_flag 2614fi 2615{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2616echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 2617if test "$ac_test_CFLAGS" = set; then 2618 CFLAGS=$ac_save_CFLAGS 2619elif test $ac_cv_prog_cc_g = yes; then 2620 if test "$GCC" = yes; then 2621 CFLAGS="-g -O2" 2622 else 2623 CFLAGS="-g" 2624 fi 2625else 2626 if test "$GCC" = yes; then 2627 CFLAGS="-O2" 2628 else 2629 CFLAGS= 2630 fi 2631fi 2632{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2633echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2634if test "${ac_cv_prog_cc_c89+set}" = set; then 2635 echo $ECHO_N "(cached) $ECHO_C" >&6 2636else 2637 ac_cv_prog_cc_c89=no 2638ac_save_CC=$CC 2639cat >conftest.$ac_ext <<_ACEOF 2640/* confdefs.h. */ 2641_ACEOF 2642cat confdefs.h >>conftest.$ac_ext 2643cat >>conftest.$ac_ext <<_ACEOF 2644/* end confdefs.h. */ 2645#include <stdarg.h> 2646#include <stdio.h> 2647#include <sys/types.h> 2648#include <sys/stat.h> 2649/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2650struct buf { int x; }; 2651FILE * (*rcsopen) (struct buf *, struct stat *, int); 2652static char *e (p, i) 2653 char **p; 2654 int i; 2655{ 2656 return p[i]; 2657} 2658static char *f (char * (*g) (char **, int), char **p, ...) 2659{ 2660 char *s; 2661 va_list v; 2662 va_start (v,p); 2663 s = g (p, va_arg (v,int)); 2664 va_end (v); 2665 return s; 2666} 2667 2668/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2669 function prototypes and stuff, but not '\xHH' hex character constants. 2670 These don't provoke an error unfortunately, instead are silently treated 2671 as 'x'. The following induces an error, until -std is added to get 2672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2673 array size at least. It's necessary to write '\x00'==0 to get something 2674 that's true only with -std. */ 2675int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2676 2677/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2678 inside strings and character constants. */ 2679#define FOO(x) 'x' 2680int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2681 2682int test (int i, double x); 2683struct s1 {int (*f) (int a);}; 2684struct s2 {int (*f) (double a);}; 2685int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2686int argc; 2687char **argv; 2688int 2689main () 2690{ 2691return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2692 ; 2693 return 0; 2694} 2695_ACEOF 2696for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2698do 2699 CC="$ac_save_CC $ac_arg" 2700 rm -f conftest.$ac_objext 2701if { (ac_try="$ac_compile" 2702case "(($ac_try" in 2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2704 *) ac_try_echo=$ac_try;; 2705esac 2706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2707 (eval "$ac_compile") 2>conftest.er1 2708 ac_status=$? 2709 grep -v '^ *+' conftest.er1 >conftest.err 2710 rm -f conftest.er1 2711 cat conftest.err >&5 2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2713 (exit $ac_status); } && { 2714 test -z "$ac_c_werror_flag" || 2715 test ! -s conftest.err 2716 } && test -s conftest.$ac_objext; then 2717 ac_cv_prog_cc_c89=$ac_arg 2718else 2719 echo "$as_me: failed program was:" >&5 2720sed 's/^/| /' conftest.$ac_ext >&5 2721 2722 2723fi 2724 2725rm -f core conftest.err conftest.$ac_objext 2726 test "x$ac_cv_prog_cc_c89" != "xno" && break 2727done 2728rm -f conftest.$ac_ext 2729CC=$ac_save_CC 2730 2731fi 2732# AC_CACHE_VAL 2733case "x$ac_cv_prog_cc_c89" in 2734 x) 2735 { echo "$as_me:$LINENO: result: none needed" >&5 2736echo "${ECHO_T}none needed" >&6; } ;; 2737 xno) 2738 { echo "$as_me:$LINENO: result: unsupported" >&5 2739echo "${ECHO_T}unsupported" >&6; } ;; 2740 *) 2741 CC="$CC $ac_cv_prog_cc_c89" 2742 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2743echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2744esac 2745 2746 2747ac_ext=c 2748ac_cpp='$CPP $CPPFLAGS' 2749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2751ac_compiler_gnu=$ac_cv_c_compiler_gnu 2752 2753ac_ext=c 2754ac_cpp='$CPP $CPPFLAGS' 2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2757ac_compiler_gnu=$ac_cv_c_compiler_gnu 2758{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2759echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 2760# On Suns, sometimes $CPP names a directory. 2761if test -n "$CPP" && test -d "$CPP"; then 2762 CPP= 2763fi 2764if test -z "$CPP"; then 2765 if test "${ac_cv_prog_CPP+set}" = set; then 2766 echo $ECHO_N "(cached) $ECHO_C" >&6 2767else 2768 # Double quotes because CPP needs to be expanded 2769 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2770 do 2771 ac_preproc_ok=false 2772for ac_c_preproc_warn_flag in '' yes 2773do 2774 # Use a header file that comes with gcc, so configuring glibc 2775 # with a fresh cross-compiler works. 2776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2777 # <limits.h> exists even on freestanding compilers. 2778 # On the NeXT, cc -E runs the code through the compiler's parser, 2779 # not just through cpp. "Syntax error" is here to catch this case. 2780 cat >conftest.$ac_ext <<_ACEOF 2781/* confdefs.h. */ 2782_ACEOF 2783cat confdefs.h >>conftest.$ac_ext 2784cat >>conftest.$ac_ext <<_ACEOF 2785/* end confdefs.h. */ 2786#ifdef __STDC__ 2787# include <limits.h> 2788#else 2789# include <assert.h> 2790#endif 2791 Syntax error 2792_ACEOF 2793if { (ac_try="$ac_cpp conftest.$ac_ext" 2794case "(($ac_try" in 2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2796 *) ac_try_echo=$ac_try;; 2797esac 2798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2800 ac_status=$? 2801 grep -v '^ *+' conftest.er1 >conftest.err 2802 rm -f conftest.er1 2803 cat conftest.err >&5 2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2805 (exit $ac_status); } >/dev/null && { 2806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2807 test ! -s conftest.err 2808 }; then 2809 : 2810else 2811 echo "$as_me: failed program was:" >&5 2812sed 's/^/| /' conftest.$ac_ext >&5 2813 2814 # Broken: fails on valid input. 2815continue 2816fi 2817 2818rm -f conftest.err conftest.$ac_ext 2819 2820 # OK, works on sane cases. Now check whether nonexistent headers 2821 # can be detected and how. 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#include <ac_nonexistent.h> 2829_ACEOF 2830if { (ac_try="$ac_cpp conftest.$ac_ext" 2831case "(($ac_try" in 2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2833 *) ac_try_echo=$ac_try;; 2834esac 2835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2837 ac_status=$? 2838 grep -v '^ *+' conftest.er1 >conftest.err 2839 rm -f conftest.er1 2840 cat conftest.err >&5 2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2842 (exit $ac_status); } >/dev/null && { 2843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2844 test ! -s conftest.err 2845 }; then 2846 # Broken: success on invalid input. 2847continue 2848else 2849 echo "$as_me: failed program was:" >&5 2850sed 's/^/| /' conftest.$ac_ext >&5 2851 2852 # Passes both tests. 2853ac_preproc_ok=: 2854break 2855fi 2856 2857rm -f conftest.err conftest.$ac_ext 2858 2859done 2860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2861rm -f conftest.err conftest.$ac_ext 2862if $ac_preproc_ok; then 2863 break 2864fi 2865 2866 done 2867 ac_cv_prog_CPP=$CPP 2868 2869fi 2870 CPP=$ac_cv_prog_CPP 2871else 2872 ac_cv_prog_CPP=$CPP 2873fi 2874{ echo "$as_me:$LINENO: result: $CPP" >&5 2875echo "${ECHO_T}$CPP" >&6; } 2876ac_preproc_ok=false 2877for ac_c_preproc_warn_flag in '' yes 2878do 2879 # Use a header file that comes with gcc, so configuring glibc 2880 # with a fresh cross-compiler works. 2881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2882 # <limits.h> exists even on freestanding compilers. 2883 # On the NeXT, cc -E runs the code through the compiler's parser, 2884 # not just through cpp. "Syntax error" is here to catch this case. 2885 cat >conftest.$ac_ext <<_ACEOF 2886/* confdefs.h. */ 2887_ACEOF 2888cat confdefs.h >>conftest.$ac_ext 2889cat >>conftest.$ac_ext <<_ACEOF 2890/* end confdefs.h. */ 2891#ifdef __STDC__ 2892# include <limits.h> 2893#else 2894# include <assert.h> 2895#endif 2896 Syntax error 2897_ACEOF 2898if { (ac_try="$ac_cpp conftest.$ac_ext" 2899case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902esac 2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2905 ac_status=$? 2906 grep -v '^ *+' conftest.er1 >conftest.err 2907 rm -f conftest.er1 2908 cat conftest.err >&5 2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2910 (exit $ac_status); } >/dev/null && { 2911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2912 test ! -s conftest.err 2913 }; then 2914 : 2915else 2916 echo "$as_me: failed program was:" >&5 2917sed 's/^/| /' conftest.$ac_ext >&5 2918 2919 # Broken: fails on valid input. 2920continue 2921fi 2922 2923rm -f conftest.err conftest.$ac_ext 2924 2925 # OK, works on sane cases. Now check whether nonexistent headers 2926 # can be detected and how. 2927 cat >conftest.$ac_ext <<_ACEOF 2928/* confdefs.h. */ 2929_ACEOF 2930cat confdefs.h >>conftest.$ac_ext 2931cat >>conftest.$ac_ext <<_ACEOF 2932/* end confdefs.h. */ 2933#include <ac_nonexistent.h> 2934_ACEOF 2935if { (ac_try="$ac_cpp conftest.$ac_ext" 2936case "(($ac_try" in 2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2938 *) ac_try_echo=$ac_try;; 2939esac 2940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2942 ac_status=$? 2943 grep -v '^ *+' conftest.er1 >conftest.err 2944 rm -f conftest.er1 2945 cat conftest.err >&5 2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2947 (exit $ac_status); } >/dev/null && { 2948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2949 test ! -s conftest.err 2950 }; then 2951 # Broken: success on invalid input. 2952continue 2953else 2954 echo "$as_me: failed program was:" >&5 2955sed 's/^/| /' conftest.$ac_ext >&5 2956 2957 # Passes both tests. 2958ac_preproc_ok=: 2959break 2960fi 2961 2962rm -f conftest.err conftest.$ac_ext 2963 2964done 2965# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2966rm -f conftest.err conftest.$ac_ext 2967if $ac_preproc_ok; then 2968 : 2969else 2970 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2971See \`config.log' for more details." >&5 2972echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2973See \`config.log' for more details." >&2;} 2974 { (exit 1); exit 1; }; } 2975fi 2976 2977ac_ext=c 2978ac_cpp='$CPP $CPPFLAGS' 2979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2981ac_compiler_gnu=$ac_cv_c_compiler_gnu 2982 2983# Find a good install program. We prefer a C program (faster), 2984# so one script is as good as another. But avoid the broken or 2985# incompatible versions: 2986# SysV /etc/install, /usr/sbin/install 2987# SunOS /usr/etc/install 2988# IRIX /sbin/install 2989# AIX /bin/install 2990# AmigaOS /C/install, which installs bootblocks on floppy discs 2991# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2992# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2993# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2994# OS/2's system install, which has a completely different semantic 2995# ./install, which can be erroneously created by make from ./install.sh. 2996{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2997echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2998if test -z "$INSTALL"; then 2999if test "${ac_cv_path_install+set}" = set; then 3000 echo $ECHO_N "(cached) $ECHO_C" >&6 3001else 3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3003for as_dir in $PATH 3004do 3005 IFS=$as_save_IFS 3006 test -z "$as_dir" && as_dir=. 3007 # Account for people who put trailing slashes in PATH elements. 3008case $as_dir/ in 3009 ./ | .// | /cC/* | \ 3010 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3011 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3012 /usr/ucb/* ) ;; 3013 *) 3014 # OSF1 and SCO ODT 3.0 have their own names for install. 3015 # Don't use installbsd from OSF since it installs stuff as root 3016 # by default. 3017 for ac_prog in ginstall scoinst install; do 3018 for ac_exec_ext in '' $ac_executable_extensions; do 3019 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3020 if test $ac_prog = install && 3021 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3022 # AIX install. It has an incompatible calling convention. 3023 : 3024 elif test $ac_prog = install && 3025 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3026 # program-specific install script used by HP pwplus--don't use. 3027 : 3028 else 3029 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3030 break 3 3031 fi 3032 fi 3033 done 3034 done 3035 ;; 3036esac 3037done 3038IFS=$as_save_IFS 3039 3040 3041fi 3042 if test "${ac_cv_path_install+set}" = set; then 3043 INSTALL=$ac_cv_path_install 3044 else 3045 # As a last resort, use the slow shell script. Don't cache a 3046 # value for INSTALL within a source directory, because that will 3047 # break other packages using the cache if that directory is 3048 # removed, or if the value is a relative name. 3049 INSTALL=$ac_install_sh 3050 fi 3051fi 3052{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3053echo "${ECHO_T}$INSTALL" >&6; } 3054 3055# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3056# It thinks the first close brace ends the variable substitution. 3057test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3058 3059test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3060 3061test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3062 3063{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 3064echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 3065LN_S=$as_ln_s 3066if test "$LN_S" = "ln -s"; then 3067 { echo "$as_me:$LINENO: result: yes" >&5 3068echo "${ECHO_T}yes" >&6; } 3069else 3070 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3071echo "${ECHO_T}no, using $LN_S" >&6; } 3072fi 3073 3074{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3075echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3076set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3077if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3078 echo $ECHO_N "(cached) $ECHO_C" >&6 3079else 3080 cat >conftest.make <<\_ACEOF 3081SHELL = /bin/sh 3082all: 3083 @echo '@@@%%%=$(MAKE)=@@@%%%' 3084_ACEOF 3085# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3086case `${MAKE-make} -f conftest.make 2>/dev/null` in 3087 *@@@%%%=?*=@@@%%%*) 3088 eval ac_cv_prog_make_${ac_make}_set=yes;; 3089 *) 3090 eval ac_cv_prog_make_${ac_make}_set=no;; 3091esac 3092rm -f conftest.make 3093fi 3094if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3095 { echo "$as_me:$LINENO: result: yes" >&5 3096echo "${ECHO_T}yes" >&6; } 3097 SET_MAKE= 3098else 3099 { echo "$as_me:$LINENO: result: no" >&5 3100echo "${ECHO_T}no" >&6; } 3101 SET_MAKE="MAKE=${MAKE-make}" 3102fi 3103 3104if test -n "$ac_tool_prefix"; then 3105 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3106set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3107{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3109if test "${ac_cv_prog_RANLIB+set}" = set; then 3110 echo $ECHO_N "(cached) $ECHO_C" >&6 3111else 3112 if test -n "$RANLIB"; then 3113 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3114else 3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3116for as_dir in $PATH 3117do 3118 IFS=$as_save_IFS 3119 test -z "$as_dir" && as_dir=. 3120 for ac_exec_ext in '' $ac_executable_extensions; do 3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3122 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3124 break 2 3125 fi 3126done 3127done 3128IFS=$as_save_IFS 3129 3130fi 3131fi 3132RANLIB=$ac_cv_prog_RANLIB 3133if test -n "$RANLIB"; then 3134 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3135echo "${ECHO_T}$RANLIB" >&6; } 3136else 3137 { echo "$as_me:$LINENO: result: no" >&5 3138echo "${ECHO_T}no" >&6; } 3139fi 3140 3141 3142fi 3143if test -z "$ac_cv_prog_RANLIB"; then 3144 ac_ct_RANLIB=$RANLIB 3145 # Extract the first word of "ranlib", so it can be a program name with args. 3146set dummy ranlib; ac_word=$2 3147{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3149if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3150 echo $ECHO_N "(cached) $ECHO_C" >&6 3151else 3152 if test -n "$ac_ct_RANLIB"; then 3153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3154else 3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3156for as_dir in $PATH 3157do 3158 IFS=$as_save_IFS 3159 test -z "$as_dir" && as_dir=. 3160 for ac_exec_ext in '' $ac_executable_extensions; do 3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3162 ac_cv_prog_ac_ct_RANLIB="ranlib" 3163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3164 break 2 3165 fi 3166done 3167done 3168IFS=$as_save_IFS 3169 3170fi 3171fi 3172ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3173if test -n "$ac_ct_RANLIB"; then 3174 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3175echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3176else 3177 { echo "$as_me:$LINENO: result: no" >&5 3178echo "${ECHO_T}no" >&6; } 3179fi 3180 3181 if test "x$ac_ct_RANLIB" = x; then 3182 RANLIB=":" 3183 else 3184 case $cross_compiling:$ac_tool_warned in 3185yes:) 3186{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3187whose name does not start with the host triplet. If you think this 3188configuration is useful to you, please write to autoconf@gnu.org." >&5 3189echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3190whose name does not start with the host triplet. If you think this 3191configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3192ac_tool_warned=yes ;; 3193esac 3194 RANLIB=$ac_ct_RANLIB 3195 fi 3196else 3197 RANLIB="$ac_cv_prog_RANLIB" 3198fi 3199 3200 3201 3202# Check whether --with-xpm-lib was given. 3203if test "${with_xpm_lib+set}" = set; then 3204 withval=$with_xpm_lib; xpm_lib=$withval 3205fi 3206 3207 3208# Check whether --with-sound was given. 3209if test "${with_sound+set}" = set; then 3210 withval=$with_sound; sound_type=$withval 3211fi 3212 3213 3214 3215 3216{ echo "$as_me:$LINENO: checking for X" >&5 3217echo $ECHO_N "checking for X... $ECHO_C" >&6; } 3218 3219 3220# Check whether --with-x was given. 3221if test "${with_x+set}" = set; then 3222 withval=$with_x; 3223fi 3224 3225# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 3226if test "x$with_x" = xno; then 3227 # The user explicitly disabled X. 3228 have_x=disabled 3229else 3230 case $x_includes,$x_libraries in #( 3231 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 3232echo "$as_me: error: Cannot use X directory names containing '" >&2;} 3233 { (exit 1); exit 1; }; };; #( 3234 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 3235 echo $ECHO_N "(cached) $ECHO_C" >&6 3236else 3237 # One or both of the vars are not set, and there is no cached value. 3238ac_x_includes=no ac_x_libraries=no 3239rm -f -r conftest.dir 3240if mkdir conftest.dir; then 3241 cd conftest.dir 3242 cat >Imakefile <<'_ACEOF' 3243incroot: 3244 @echo incroot='${INCROOT}' 3245usrlibdir: 3246 @echo usrlibdir='${USRLIBDIR}' 3247libdir: 3248 @echo libdir='${LIBDIR}' 3249_ACEOF 3250 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 3251 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3252 for ac_var in incroot usrlibdir libdir; do 3253 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 3254 done 3255 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 3256 for ac_extension in a so sl; do 3257 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 3258 test -f "$ac_im_libdir/libX11.$ac_extension"; then 3259 ac_im_usrlibdir=$ac_im_libdir; break 3260 fi 3261 done 3262 # Screen out bogus values from the imake configuration. They are 3263 # bogus both because they are the default anyway, and because 3264 # using them would break gcc on systems where it needs fixed includes. 3265 case $ac_im_incroot in 3266 /usr/include) ac_x_includes= ;; 3267 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 3268 esac 3269 case $ac_im_usrlibdir in 3270 /usr/lib | /lib) ;; 3271 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 3272 esac 3273 fi 3274 cd .. 3275 rm -f -r conftest.dir 3276fi 3277 3278# Standard set of common directories for X headers. 3279# Check X11 before X11Rn because it is often a symlink to the current release. 3280ac_x_header_dirs=' 3281/usr/X11/include 3282/usr/X11R6/include 3283/usr/X11R5/include 3284/usr/X11R4/include 3285 3286/usr/include/X11 3287/usr/include/X11R6 3288/usr/include/X11R5 3289/usr/include/X11R4 3290 3291/usr/local/X11/include 3292/usr/local/X11R6/include 3293/usr/local/X11R5/include 3294/usr/local/X11R4/include 3295 3296/usr/local/include/X11 3297/usr/local/include/X11R6 3298/usr/local/include/X11R5 3299/usr/local/include/X11R4 3300 3301/usr/X386/include 3302/usr/x386/include 3303/usr/XFree86/include/X11 3304 3305/usr/include 3306/usr/local/include 3307/usr/unsupported/include 3308/usr/athena/include 3309/usr/local/x11r5/include 3310/usr/lpp/Xamples/include 3311 3312/usr/openwin/include 3313/usr/openwin/share/include' 3314 3315if test "$ac_x_includes" = no; then 3316 # Guess where to find include files, by looking for Xlib.h. 3317 # First, try using that file with no special directory specified. 3318 cat >conftest.$ac_ext <<_ACEOF 3319/* confdefs.h. */ 3320_ACEOF 3321cat confdefs.h >>conftest.$ac_ext 3322cat >>conftest.$ac_ext <<_ACEOF 3323/* end confdefs.h. */ 3324#include <X11/Xlib.h> 3325_ACEOF 3326if { (ac_try="$ac_cpp conftest.$ac_ext" 3327case "(($ac_try" in 3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3329 *) ac_try_echo=$ac_try;; 3330esac 3331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3333 ac_status=$? 3334 grep -v '^ *+' conftest.er1 >conftest.err 3335 rm -f conftest.er1 3336 cat conftest.err >&5 3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3338 (exit $ac_status); } >/dev/null && { 3339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3340 test ! -s conftest.err 3341 }; then 3342 # We can compile using X headers with no special include directory. 3343ac_x_includes= 3344else 3345 echo "$as_me: failed program was:" >&5 3346sed 's/^/| /' conftest.$ac_ext >&5 3347 3348 for ac_dir in $ac_x_header_dirs; do 3349 if test -r "$ac_dir/X11/Xlib.h"; then 3350 ac_x_includes=$ac_dir 3351 break 3352 fi 3353done 3354fi 3355 3356rm -f conftest.err conftest.$ac_ext 3357fi # $ac_x_includes = no 3358 3359if test "$ac_x_libraries" = no; then 3360 # Check for the libraries. 3361 # See if we find them without any special options. 3362 # Don't add to $LIBS permanently. 3363 ac_save_LIBS=$LIBS 3364 LIBS="-lX11 $LIBS" 3365 cat >conftest.$ac_ext <<_ACEOF 3366/* confdefs.h. */ 3367_ACEOF 3368cat confdefs.h >>conftest.$ac_ext 3369cat >>conftest.$ac_ext <<_ACEOF 3370/* end confdefs.h. */ 3371#include <X11/Xlib.h> 3372int 3373main () 3374{ 3375XrmInitialize () 3376 ; 3377 return 0; 3378} 3379_ACEOF 3380rm -f conftest.$ac_objext conftest$ac_exeext 3381if { (ac_try="$ac_link" 3382case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385esac 3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3387 (eval "$ac_link") 2>conftest.er1 3388 ac_status=$? 3389 grep -v '^ *+' conftest.er1 >conftest.err 3390 rm -f conftest.er1 3391 cat conftest.err >&5 3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3393 (exit $ac_status); } && { 3394 test -z "$ac_c_werror_flag" || 3395 test ! -s conftest.err 3396 } && test -s conftest$ac_exeext && 3397 $as_test_x conftest$ac_exeext; then 3398 LIBS=$ac_save_LIBS 3399# We can link X programs with no special library path. 3400ac_x_libraries= 3401else 3402 echo "$as_me: failed program was:" >&5 3403sed 's/^/| /' conftest.$ac_ext >&5 3404 3405 LIBS=$ac_save_LIBS 3406for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 3407do 3408 # Don't even attempt the hair of trying to link an X program! 3409 for ac_extension in a so sl; do 3410 if test -r "$ac_dir/libX11.$ac_extension"; then 3411 ac_x_libraries=$ac_dir 3412 break 2 3413 fi 3414 done 3415done 3416fi 3417 3418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3419 conftest$ac_exeext conftest.$ac_ext 3420fi # $ac_x_libraries = no 3421 3422case $ac_x_includes,$ac_x_libraries in #( 3423 no,* | *,no | *\'*) 3424 # Didn't find X, or a directory has "'" in its name. 3425 ac_cv_have_x="have_x=no";; #( 3426 *) 3427 # Record where we found X for the cache. 3428 ac_cv_have_x="have_x=yes\ 3429 ac_x_includes='$ac_x_includes'\ 3430 ac_x_libraries='$ac_x_libraries'" 3431esac 3432fi 3433;; #( 3434 *) have_x=yes;; 3435 esac 3436 eval "$ac_cv_have_x" 3437fi # $with_x != no 3438 3439if test "$have_x" != yes; then 3440 { echo "$as_me:$LINENO: result: $have_x" >&5 3441echo "${ECHO_T}$have_x" >&6; } 3442 no_x=yes 3443else 3444 # If each of the values was on the command line, it overrides each guess. 3445 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 3446 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 3447 # Update the cache value to reflect the command line values. 3448 ac_cv_have_x="have_x=yes\ 3449 ac_x_includes='$x_includes'\ 3450 ac_x_libraries='$x_libraries'" 3451 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 3452echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 3453fi 3454 3455if test "$no_x" = yes; then 3456 # Not all programs may use this symbol, but it does not hurt to define it. 3457 3458cat >>confdefs.h <<\_ACEOF 3459#define X_DISPLAY_MISSING 1 3460_ACEOF 3461 3462 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 3463else 3464 if test -n "$x_includes"; then 3465 X_CFLAGS="$X_CFLAGS -I$x_includes" 3466 fi 3467 3468 # It would also be nice to do this for all -L options, not just this one. 3469 if test -n "$x_libraries"; then 3470 X_LIBS="$X_LIBS -L$x_libraries" 3471 # For Solaris; some versions of Sun CC require a space after -R and 3472 # others require no space. Words are not sufficient . . . . 3473 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 3474echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 3475 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 3476 ac_xsave_c_werror_flag=$ac_c_werror_flag 3477 ac_c_werror_flag=yes 3478 cat >conftest.$ac_ext <<_ACEOF 3479/* confdefs.h. */ 3480_ACEOF 3481cat confdefs.h >>conftest.$ac_ext 3482cat >>conftest.$ac_ext <<_ACEOF 3483/* end confdefs.h. */ 3484 3485int 3486main () 3487{ 3488 3489 ; 3490 return 0; 3491} 3492_ACEOF 3493rm -f conftest.$ac_objext conftest$ac_exeext 3494if { (ac_try="$ac_link" 3495case "(($ac_try" in 3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3497 *) ac_try_echo=$ac_try;; 3498esac 3499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3500 (eval "$ac_link") 2>conftest.er1 3501 ac_status=$? 3502 grep -v '^ *+' conftest.er1 >conftest.err 3503 rm -f conftest.er1 3504 cat conftest.err >&5 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3506 (exit $ac_status); } && { 3507 test -z "$ac_c_werror_flag" || 3508 test ! -s conftest.err 3509 } && test -s conftest$ac_exeext && 3510 $as_test_x conftest$ac_exeext; then 3511 { echo "$as_me:$LINENO: result: no" >&5 3512echo "${ECHO_T}no" >&6; } 3513 X_LIBS="$X_LIBS -R$x_libraries" 3514else 3515 echo "$as_me: failed program was:" >&5 3516sed 's/^/| /' conftest.$ac_ext >&5 3517 3518 LIBS="$ac_xsave_LIBS -R $x_libraries" 3519 cat >conftest.$ac_ext <<_ACEOF 3520/* confdefs.h. */ 3521_ACEOF 3522cat confdefs.h >>conftest.$ac_ext 3523cat >>conftest.$ac_ext <<_ACEOF 3524/* end confdefs.h. */ 3525 3526int 3527main () 3528{ 3529 3530 ; 3531 return 0; 3532} 3533_ACEOF 3534rm -f conftest.$ac_objext conftest$ac_exeext 3535if { (ac_try="$ac_link" 3536case "(($ac_try" in 3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3538 *) ac_try_echo=$ac_try;; 3539esac 3540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3541 (eval "$ac_link") 2>conftest.er1 3542 ac_status=$? 3543 grep -v '^ *+' conftest.er1 >conftest.err 3544 rm -f conftest.er1 3545 cat conftest.err >&5 3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3547 (exit $ac_status); } && { 3548 test -z "$ac_c_werror_flag" || 3549 test ! -s conftest.err 3550 } && test -s conftest$ac_exeext && 3551 $as_test_x conftest$ac_exeext; then 3552 { echo "$as_me:$LINENO: result: yes" >&5 3553echo "${ECHO_T}yes" >&6; } 3554 X_LIBS="$X_LIBS -R $x_libraries" 3555else 3556 echo "$as_me: failed program was:" >&5 3557sed 's/^/| /' conftest.$ac_ext >&5 3558 3559 { echo "$as_me:$LINENO: result: neither works" >&5 3560echo "${ECHO_T}neither works" >&6; } 3561fi 3562 3563rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3564 conftest$ac_exeext conftest.$ac_ext 3565fi 3566 3567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3568 conftest$ac_exeext conftest.$ac_ext 3569 ac_c_werror_flag=$ac_xsave_c_werror_flag 3570 LIBS=$ac_xsave_LIBS 3571 fi 3572 3573 # Check for system-dependent libraries X programs must link with. 3574 # Do this before checking for the system-independent R6 libraries 3575 # (-lICE), since we may need -lsocket or whatever for X linking. 3576 3577 if test "$ISC" = yes; then 3578 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 3579 else 3580 # Martyn Johnson says this is needed for Ultrix, if the X 3581 # libraries were built with DECnet support. And Karl Berry says 3582 # the Alpha needs dnet_stub (dnet does not exist). 3583 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 3584 cat >conftest.$ac_ext <<_ACEOF 3585/* confdefs.h. */ 3586_ACEOF 3587cat confdefs.h >>conftest.$ac_ext 3588cat >>conftest.$ac_ext <<_ACEOF 3589/* end confdefs.h. */ 3590 3591/* Override any GCC internal prototype to avoid an error. 3592 Use char because int might match the return type of a GCC 3593 builtin and then its argument prototype would still apply. */ 3594#ifdef __cplusplus 3595extern "C" 3596#endif 3597char XOpenDisplay (); 3598int 3599main () 3600{ 3601return XOpenDisplay (); 3602 ; 3603 return 0; 3604} 3605_ACEOF 3606rm -f conftest.$ac_objext conftest$ac_exeext 3607if { (ac_try="$ac_link" 3608case "(($ac_try" in 3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3610 *) ac_try_echo=$ac_try;; 3611esac 3612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3613 (eval "$ac_link") 2>conftest.er1 3614 ac_status=$? 3615 grep -v '^ *+' conftest.er1 >conftest.err 3616 rm -f conftest.er1 3617 cat conftest.err >&5 3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3619 (exit $ac_status); } && { 3620 test -z "$ac_c_werror_flag" || 3621 test ! -s conftest.err 3622 } && test -s conftest$ac_exeext && 3623 $as_test_x conftest$ac_exeext; then 3624 : 3625else 3626 echo "$as_me: failed program was:" >&5 3627sed 's/^/| /' conftest.$ac_ext >&5 3628 3629 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 3630echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 3631if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 3632 echo $ECHO_N "(cached) $ECHO_C" >&6 3633else 3634 ac_check_lib_save_LIBS=$LIBS 3635LIBS="-ldnet $LIBS" 3636cat >conftest.$ac_ext <<_ACEOF 3637/* confdefs.h. */ 3638_ACEOF 3639cat confdefs.h >>conftest.$ac_ext 3640cat >>conftest.$ac_ext <<_ACEOF 3641/* end confdefs.h. */ 3642 3643/* Override any GCC internal prototype to avoid an error. 3644 Use char because int might match the return type of a GCC 3645 builtin and then its argument prototype would still apply. */ 3646#ifdef __cplusplus 3647extern "C" 3648#endif 3649char dnet_ntoa (); 3650int 3651main () 3652{ 3653return dnet_ntoa (); 3654 ; 3655 return 0; 3656} 3657_ACEOF 3658rm -f conftest.$ac_objext conftest$ac_exeext 3659if { (ac_try="$ac_link" 3660case "(($ac_try" in 3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3662 *) ac_try_echo=$ac_try;; 3663esac 3664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3665 (eval "$ac_link") 2>conftest.er1 3666 ac_status=$? 3667 grep -v '^ *+' conftest.er1 >conftest.err 3668 rm -f conftest.er1 3669 cat conftest.err >&5 3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3671 (exit $ac_status); } && { 3672 test -z "$ac_c_werror_flag" || 3673 test ! -s conftest.err 3674 } && test -s conftest$ac_exeext && 3675 $as_test_x conftest$ac_exeext; then 3676 ac_cv_lib_dnet_dnet_ntoa=yes 3677else 3678 echo "$as_me: failed program was:" >&5 3679sed 's/^/| /' conftest.$ac_ext >&5 3680 3681 ac_cv_lib_dnet_dnet_ntoa=no 3682fi 3683 3684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3685 conftest$ac_exeext conftest.$ac_ext 3686LIBS=$ac_check_lib_save_LIBS 3687fi 3688{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 3689echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 3690if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 3691 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 3692fi 3693 3694 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 3695 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 3696echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 3697if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 3698 echo $ECHO_N "(cached) $ECHO_C" >&6 3699else 3700 ac_check_lib_save_LIBS=$LIBS 3701LIBS="-ldnet_stub $LIBS" 3702cat >conftest.$ac_ext <<_ACEOF 3703/* confdefs.h. */ 3704_ACEOF 3705cat confdefs.h >>conftest.$ac_ext 3706cat >>conftest.$ac_ext <<_ACEOF 3707/* end confdefs.h. */ 3708 3709/* Override any GCC internal prototype to avoid an error. 3710 Use char because int might match the return type of a GCC 3711 builtin and then its argument prototype would still apply. */ 3712#ifdef __cplusplus 3713extern "C" 3714#endif 3715char dnet_ntoa (); 3716int 3717main () 3718{ 3719return dnet_ntoa (); 3720 ; 3721 return 0; 3722} 3723_ACEOF 3724rm -f conftest.$ac_objext conftest$ac_exeext 3725if { (ac_try="$ac_link" 3726case "(($ac_try" in 3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3728 *) ac_try_echo=$ac_try;; 3729esac 3730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3731 (eval "$ac_link") 2>conftest.er1 3732 ac_status=$? 3733 grep -v '^ *+' conftest.er1 >conftest.err 3734 rm -f conftest.er1 3735 cat conftest.err >&5 3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3737 (exit $ac_status); } && { 3738 test -z "$ac_c_werror_flag" || 3739 test ! -s conftest.err 3740 } && test -s conftest$ac_exeext && 3741 $as_test_x conftest$ac_exeext; then 3742 ac_cv_lib_dnet_stub_dnet_ntoa=yes 3743else 3744 echo "$as_me: failed program was:" >&5 3745sed 's/^/| /' conftest.$ac_ext >&5 3746 3747 ac_cv_lib_dnet_stub_dnet_ntoa=no 3748fi 3749 3750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3751 conftest$ac_exeext conftest.$ac_ext 3752LIBS=$ac_check_lib_save_LIBS 3753fi 3754{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 3755echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 3756if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 3757 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 3758fi 3759 3760 fi 3761fi 3762 3763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3764 conftest$ac_exeext conftest.$ac_ext 3765 LIBS="$ac_xsave_LIBS" 3766 3767 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 3768 # to get the SysV transport functions. 3769 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 3770 # needs -lnsl. 3771 # The nsl library prevents programs from opening the X display 3772 # on Irix 5.2, according to T.E. Dickey. 3773 # The functions gethostbyname, getservbyname, and inet_addr are 3774 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 3775 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 3776echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 3777if test "${ac_cv_func_gethostbyname+set}" = set; then 3778 echo $ECHO_N "(cached) $ECHO_C" >&6 3779else 3780 cat >conftest.$ac_ext <<_ACEOF 3781/* confdefs.h. */ 3782_ACEOF 3783cat confdefs.h >>conftest.$ac_ext 3784cat >>conftest.$ac_ext <<_ACEOF 3785/* end confdefs.h. */ 3786/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 3787 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3788#define gethostbyname innocuous_gethostbyname 3789 3790/* System header to define __stub macros and hopefully few prototypes, 3791 which can conflict with char gethostbyname (); below. 3792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3793 <limits.h> exists even on freestanding compilers. */ 3794 3795#ifdef __STDC__ 3796# include <limits.h> 3797#else 3798# include <assert.h> 3799#endif 3800 3801#undef gethostbyname 3802 3803/* Override any GCC internal prototype to avoid an error. 3804 Use char because int might match the return type of a GCC 3805 builtin and then its argument prototype would still apply. */ 3806#ifdef __cplusplus 3807extern "C" 3808#endif 3809char gethostbyname (); 3810/* The GNU C library defines this for functions which it implements 3811 to always fail with ENOSYS. Some functions are actually named 3812 something starting with __ and the normal name is an alias. */ 3813#if defined __stub_gethostbyname || defined __stub___gethostbyname 3814choke me 3815#endif 3816 3817int 3818main () 3819{ 3820return gethostbyname (); 3821 ; 3822 return 0; 3823} 3824_ACEOF 3825rm -f conftest.$ac_objext conftest$ac_exeext 3826if { (ac_try="$ac_link" 3827case "(($ac_try" in 3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3829 *) ac_try_echo=$ac_try;; 3830esac 3831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3832 (eval "$ac_link") 2>conftest.er1 3833 ac_status=$? 3834 grep -v '^ *+' conftest.er1 >conftest.err 3835 rm -f conftest.er1 3836 cat conftest.err >&5 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3838 (exit $ac_status); } && { 3839 test -z "$ac_c_werror_flag" || 3840 test ! -s conftest.err 3841 } && test -s conftest$ac_exeext && 3842 $as_test_x conftest$ac_exeext; then 3843 ac_cv_func_gethostbyname=yes 3844else 3845 echo "$as_me: failed program was:" >&5 3846sed 's/^/| /' conftest.$ac_ext >&5 3847 3848 ac_cv_func_gethostbyname=no 3849fi 3850 3851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3852 conftest$ac_exeext conftest.$ac_ext 3853fi 3854{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 3855echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 3856 3857 if test $ac_cv_func_gethostbyname = no; then 3858 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3859echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 3860if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3861 echo $ECHO_N "(cached) $ECHO_C" >&6 3862else 3863 ac_check_lib_save_LIBS=$LIBS 3864LIBS="-lnsl $LIBS" 3865cat >conftest.$ac_ext <<_ACEOF 3866/* confdefs.h. */ 3867_ACEOF 3868cat confdefs.h >>conftest.$ac_ext 3869cat >>conftest.$ac_ext <<_ACEOF 3870/* end confdefs.h. */ 3871 3872/* Override any GCC internal prototype to avoid an error. 3873 Use char because int might match the return type of a GCC 3874 builtin and then its argument prototype would still apply. */ 3875#ifdef __cplusplus 3876extern "C" 3877#endif 3878char gethostbyname (); 3879int 3880main () 3881{ 3882return gethostbyname (); 3883 ; 3884 return 0; 3885} 3886_ACEOF 3887rm -f conftest.$ac_objext conftest$ac_exeext 3888if { (ac_try="$ac_link" 3889case "(($ac_try" in 3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3891 *) ac_try_echo=$ac_try;; 3892esac 3893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3894 (eval "$ac_link") 2>conftest.er1 3895 ac_status=$? 3896 grep -v '^ *+' conftest.er1 >conftest.err 3897 rm -f conftest.er1 3898 cat conftest.err >&5 3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3900 (exit $ac_status); } && { 3901 test -z "$ac_c_werror_flag" || 3902 test ! -s conftest.err 3903 } && test -s conftest$ac_exeext && 3904 $as_test_x conftest$ac_exeext; then 3905 ac_cv_lib_nsl_gethostbyname=yes 3906else 3907 echo "$as_me: failed program was:" >&5 3908sed 's/^/| /' conftest.$ac_ext >&5 3909 3910 ac_cv_lib_nsl_gethostbyname=no 3911fi 3912 3913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3914 conftest$ac_exeext conftest.$ac_ext 3915LIBS=$ac_check_lib_save_LIBS 3916fi 3917{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 3918echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 3919if test $ac_cv_lib_nsl_gethostbyname = yes; then 3920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 3921fi 3922 3923 if test $ac_cv_lib_nsl_gethostbyname = no; then 3924 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 3925echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 3926if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 3927 echo $ECHO_N "(cached) $ECHO_C" >&6 3928else 3929 ac_check_lib_save_LIBS=$LIBS 3930LIBS="-lbsd $LIBS" 3931cat >conftest.$ac_ext <<_ACEOF 3932/* confdefs.h. */ 3933_ACEOF 3934cat confdefs.h >>conftest.$ac_ext 3935cat >>conftest.$ac_ext <<_ACEOF 3936/* end confdefs.h. */ 3937 3938/* Override any GCC internal prototype to avoid an error. 3939 Use char because int might match the return type of a GCC 3940 builtin and then its argument prototype would still apply. */ 3941#ifdef __cplusplus 3942extern "C" 3943#endif 3944char gethostbyname (); 3945int 3946main () 3947{ 3948return gethostbyname (); 3949 ; 3950 return 0; 3951} 3952_ACEOF 3953rm -f conftest.$ac_objext conftest$ac_exeext 3954if { (ac_try="$ac_link" 3955case "(($ac_try" in 3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3957 *) ac_try_echo=$ac_try;; 3958esac 3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3960 (eval "$ac_link") 2>conftest.er1 3961 ac_status=$? 3962 grep -v '^ *+' conftest.er1 >conftest.err 3963 rm -f conftest.er1 3964 cat conftest.err >&5 3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3966 (exit $ac_status); } && { 3967 test -z "$ac_c_werror_flag" || 3968 test ! -s conftest.err 3969 } && test -s conftest$ac_exeext && 3970 $as_test_x conftest$ac_exeext; then 3971 ac_cv_lib_bsd_gethostbyname=yes 3972else 3973 echo "$as_me: failed program was:" >&5 3974sed 's/^/| /' conftest.$ac_ext >&5 3975 3976 ac_cv_lib_bsd_gethostbyname=no 3977fi 3978 3979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3980 conftest$ac_exeext conftest.$ac_ext 3981LIBS=$ac_check_lib_save_LIBS 3982fi 3983{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 3984echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 3985if test $ac_cv_lib_bsd_gethostbyname = yes; then 3986 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 3987fi 3988 3989 fi 3990 fi 3991 3992 # lieder@skyler.mavd.honeywell.com says without -lsocket, 3993 # socket/setsockopt and other routines are undefined under SCO ODT 3994 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 3995 # on later versions), says Simon Leinen: it contains gethostby* 3996 # variants that don't use the name server (or something). -lsocket 3997 # must be given before -lnsl if both are needed. We assume that 3998 # if connect needs -lnsl, so does gethostbyname. 3999 { echo "$as_me:$LINENO: checking for connect" >&5 4000echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4001if test "${ac_cv_func_connect+set}" = set; then 4002 echo $ECHO_N "(cached) $ECHO_C" >&6 4003else 4004 cat >conftest.$ac_ext <<_ACEOF 4005/* confdefs.h. */ 4006_ACEOF 4007cat confdefs.h >>conftest.$ac_ext 4008cat >>conftest.$ac_ext <<_ACEOF 4009/* end confdefs.h. */ 4010/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4011 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4012#define connect innocuous_connect 4013 4014/* System header to define __stub macros and hopefully few prototypes, 4015 which can conflict with char connect (); below. 4016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4017 <limits.h> exists even on freestanding compilers. */ 4018 4019#ifdef __STDC__ 4020# include <limits.h> 4021#else 4022# include <assert.h> 4023#endif 4024 4025#undef connect 4026 4027/* Override any GCC internal prototype to avoid an error. 4028 Use char because int might match the return type of a GCC 4029 builtin and then its argument prototype would still apply. */ 4030#ifdef __cplusplus 4031extern "C" 4032#endif 4033char connect (); 4034/* The GNU C library defines this for functions which it implements 4035 to always fail with ENOSYS. Some functions are actually named 4036 something starting with __ and the normal name is an alias. */ 4037#if defined __stub_connect || defined __stub___connect 4038choke me 4039#endif 4040 4041int 4042main () 4043{ 4044return connect (); 4045 ; 4046 return 0; 4047} 4048_ACEOF 4049rm -f conftest.$ac_objext conftest$ac_exeext 4050if { (ac_try="$ac_link" 4051case "(($ac_try" in 4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4053 *) ac_try_echo=$ac_try;; 4054esac 4055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4056 (eval "$ac_link") 2>conftest.er1 4057 ac_status=$? 4058 grep -v '^ *+' conftest.er1 >conftest.err 4059 rm -f conftest.er1 4060 cat conftest.err >&5 4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4062 (exit $ac_status); } && { 4063 test -z "$ac_c_werror_flag" || 4064 test ! -s conftest.err 4065 } && test -s conftest$ac_exeext && 4066 $as_test_x conftest$ac_exeext; then 4067 ac_cv_func_connect=yes 4068else 4069 echo "$as_me: failed program was:" >&5 4070sed 's/^/| /' conftest.$ac_ext >&5 4071 4072 ac_cv_func_connect=no 4073fi 4074 4075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4076 conftest$ac_exeext conftest.$ac_ext 4077fi 4078{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4079echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4080 4081 if test $ac_cv_func_connect = no; then 4082 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 4083echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 4084if test "${ac_cv_lib_socket_connect+set}" = set; then 4085 echo $ECHO_N "(cached) $ECHO_C" >&6 4086else 4087 ac_check_lib_save_LIBS=$LIBS 4088LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 4089cat >conftest.$ac_ext <<_ACEOF 4090/* confdefs.h. */ 4091_ACEOF 4092cat confdefs.h >>conftest.$ac_ext 4093cat >>conftest.$ac_ext <<_ACEOF 4094/* end confdefs.h. */ 4095 4096/* Override any GCC internal prototype to avoid an error. 4097 Use char because int might match the return type of a GCC 4098 builtin and then its argument prototype would still apply. */ 4099#ifdef __cplusplus 4100extern "C" 4101#endif 4102char connect (); 4103int 4104main () 4105{ 4106return connect (); 4107 ; 4108 return 0; 4109} 4110_ACEOF 4111rm -f conftest.$ac_objext conftest$ac_exeext 4112if { (ac_try="$ac_link" 4113case "(($ac_try" in 4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4115 *) ac_try_echo=$ac_try;; 4116esac 4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4118 (eval "$ac_link") 2>conftest.er1 4119 ac_status=$? 4120 grep -v '^ *+' conftest.er1 >conftest.err 4121 rm -f conftest.er1 4122 cat conftest.err >&5 4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4124 (exit $ac_status); } && { 4125 test -z "$ac_c_werror_flag" || 4126 test ! -s conftest.err 4127 } && test -s conftest$ac_exeext && 4128 $as_test_x conftest$ac_exeext; then 4129 ac_cv_lib_socket_connect=yes 4130else 4131 echo "$as_me: failed program was:" >&5 4132sed 's/^/| /' conftest.$ac_ext >&5 4133 4134 ac_cv_lib_socket_connect=no 4135fi 4136 4137rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4138 conftest$ac_exeext conftest.$ac_ext 4139LIBS=$ac_check_lib_save_LIBS 4140fi 4141{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 4142echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 4143if test $ac_cv_lib_socket_connect = yes; then 4144 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 4145fi 4146 4147 fi 4148 4149 # Guillermo Gomez says -lposix is necessary on A/UX. 4150 { echo "$as_me:$LINENO: checking for remove" >&5 4151echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 4152if test "${ac_cv_func_remove+set}" = set; then 4153 echo $ECHO_N "(cached) $ECHO_C" >&6 4154else 4155 cat >conftest.$ac_ext <<_ACEOF 4156/* confdefs.h. */ 4157_ACEOF 4158cat confdefs.h >>conftest.$ac_ext 4159cat >>conftest.$ac_ext <<_ACEOF 4160/* end confdefs.h. */ 4161/* Define remove to an innocuous variant, in case <limits.h> declares remove. 4162 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4163#define remove innocuous_remove 4164 4165/* System header to define __stub macros and hopefully few prototypes, 4166 which can conflict with char remove (); below. 4167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4168 <limits.h> exists even on freestanding compilers. */ 4169 4170#ifdef __STDC__ 4171# include <limits.h> 4172#else 4173# include <assert.h> 4174#endif 4175 4176#undef remove 4177 4178/* Override any GCC internal prototype to avoid an error. 4179 Use char because int might match the return type of a GCC 4180 builtin and then its argument prototype would still apply. */ 4181#ifdef __cplusplus 4182extern "C" 4183#endif 4184char remove (); 4185/* The GNU C library defines this for functions which it implements 4186 to always fail with ENOSYS. Some functions are actually named 4187 something starting with __ and the normal name is an alias. */ 4188#if defined __stub_remove || defined __stub___remove 4189choke me 4190#endif 4191 4192int 4193main () 4194{ 4195return remove (); 4196 ; 4197 return 0; 4198} 4199_ACEOF 4200rm -f conftest.$ac_objext conftest$ac_exeext 4201if { (ac_try="$ac_link" 4202case "(($ac_try" in 4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4204 *) ac_try_echo=$ac_try;; 4205esac 4206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4207 (eval "$ac_link") 2>conftest.er1 4208 ac_status=$? 4209 grep -v '^ *+' conftest.er1 >conftest.err 4210 rm -f conftest.er1 4211 cat conftest.err >&5 4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4213 (exit $ac_status); } && { 4214 test -z "$ac_c_werror_flag" || 4215 test ! -s conftest.err 4216 } && test -s conftest$ac_exeext && 4217 $as_test_x conftest$ac_exeext; then 4218 ac_cv_func_remove=yes 4219else 4220 echo "$as_me: failed program was:" >&5 4221sed 's/^/| /' conftest.$ac_ext >&5 4222 4223 ac_cv_func_remove=no 4224fi 4225 4226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4227 conftest$ac_exeext conftest.$ac_ext 4228fi 4229{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 4230echo "${ECHO_T}$ac_cv_func_remove" >&6; } 4231 4232 if test $ac_cv_func_remove = no; then 4233 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 4234echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 4235if test "${ac_cv_lib_posix_remove+set}" = set; then 4236 echo $ECHO_N "(cached) $ECHO_C" >&6 4237else 4238 ac_check_lib_save_LIBS=$LIBS 4239LIBS="-lposix $LIBS" 4240cat >conftest.$ac_ext <<_ACEOF 4241/* confdefs.h. */ 4242_ACEOF 4243cat confdefs.h >>conftest.$ac_ext 4244cat >>conftest.$ac_ext <<_ACEOF 4245/* end confdefs.h. */ 4246 4247/* Override any GCC internal prototype to avoid an error. 4248 Use char because int might match the return type of a GCC 4249 builtin and then its argument prototype would still apply. */ 4250#ifdef __cplusplus 4251extern "C" 4252#endif 4253char remove (); 4254int 4255main () 4256{ 4257return remove (); 4258 ; 4259 return 0; 4260} 4261_ACEOF 4262rm -f conftest.$ac_objext conftest$ac_exeext 4263if { (ac_try="$ac_link" 4264case "(($ac_try" in 4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4266 *) ac_try_echo=$ac_try;; 4267esac 4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4269 (eval "$ac_link") 2>conftest.er1 4270 ac_status=$? 4271 grep -v '^ *+' conftest.er1 >conftest.err 4272 rm -f conftest.er1 4273 cat conftest.err >&5 4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4275 (exit $ac_status); } && { 4276 test -z "$ac_c_werror_flag" || 4277 test ! -s conftest.err 4278 } && test -s conftest$ac_exeext && 4279 $as_test_x conftest$ac_exeext; then 4280 ac_cv_lib_posix_remove=yes 4281else 4282 echo "$as_me: failed program was:" >&5 4283sed 's/^/| /' conftest.$ac_ext >&5 4284 4285 ac_cv_lib_posix_remove=no 4286fi 4287 4288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4289 conftest$ac_exeext conftest.$ac_ext 4290LIBS=$ac_check_lib_save_LIBS 4291fi 4292{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 4293echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 4294if test $ac_cv_lib_posix_remove = yes; then 4295 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 4296fi 4297 4298 fi 4299 4300 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4301 { echo "$as_me:$LINENO: checking for shmat" >&5 4302echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 4303if test "${ac_cv_func_shmat+set}" = set; then 4304 echo $ECHO_N "(cached) $ECHO_C" >&6 4305else 4306 cat >conftest.$ac_ext <<_ACEOF 4307/* confdefs.h. */ 4308_ACEOF 4309cat confdefs.h >>conftest.$ac_ext 4310cat >>conftest.$ac_ext <<_ACEOF 4311/* end confdefs.h. */ 4312/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 4313 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4314#define shmat innocuous_shmat 4315 4316/* System header to define __stub macros and hopefully few prototypes, 4317 which can conflict with char shmat (); below. 4318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4319 <limits.h> exists even on freestanding compilers. */ 4320 4321#ifdef __STDC__ 4322# include <limits.h> 4323#else 4324# include <assert.h> 4325#endif 4326 4327#undef shmat 4328 4329/* Override any GCC internal prototype to avoid an error. 4330 Use char because int might match the return type of a GCC 4331 builtin and then its argument prototype would still apply. */ 4332#ifdef __cplusplus 4333extern "C" 4334#endif 4335char shmat (); 4336/* The GNU C library defines this for functions which it implements 4337 to always fail with ENOSYS. Some functions are actually named 4338 something starting with __ and the normal name is an alias. */ 4339#if defined __stub_shmat || defined __stub___shmat 4340choke me 4341#endif 4342 4343int 4344main () 4345{ 4346return shmat (); 4347 ; 4348 return 0; 4349} 4350_ACEOF 4351rm -f conftest.$ac_objext conftest$ac_exeext 4352if { (ac_try="$ac_link" 4353case "(($ac_try" in 4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4355 *) ac_try_echo=$ac_try;; 4356esac 4357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4358 (eval "$ac_link") 2>conftest.er1 4359 ac_status=$? 4360 grep -v '^ *+' conftest.er1 >conftest.err 4361 rm -f conftest.er1 4362 cat conftest.err >&5 4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4364 (exit $ac_status); } && { 4365 test -z "$ac_c_werror_flag" || 4366 test ! -s conftest.err 4367 } && test -s conftest$ac_exeext && 4368 $as_test_x conftest$ac_exeext; then 4369 ac_cv_func_shmat=yes 4370else 4371 echo "$as_me: failed program was:" >&5 4372sed 's/^/| /' conftest.$ac_ext >&5 4373 4374 ac_cv_func_shmat=no 4375fi 4376 4377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4378 conftest$ac_exeext conftest.$ac_ext 4379fi 4380{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 4381echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 4382 4383 if test $ac_cv_func_shmat = no; then 4384 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 4385echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 4386if test "${ac_cv_lib_ipc_shmat+set}" = set; then 4387 echo $ECHO_N "(cached) $ECHO_C" >&6 4388else 4389 ac_check_lib_save_LIBS=$LIBS 4390LIBS="-lipc $LIBS" 4391cat >conftest.$ac_ext <<_ACEOF 4392/* confdefs.h. */ 4393_ACEOF 4394cat confdefs.h >>conftest.$ac_ext 4395cat >>conftest.$ac_ext <<_ACEOF 4396/* end confdefs.h. */ 4397 4398/* Override any GCC internal prototype to avoid an error. 4399 Use char because int might match the return type of a GCC 4400 builtin and then its argument prototype would still apply. */ 4401#ifdef __cplusplus 4402extern "C" 4403#endif 4404char shmat (); 4405int 4406main () 4407{ 4408return shmat (); 4409 ; 4410 return 0; 4411} 4412_ACEOF 4413rm -f conftest.$ac_objext conftest$ac_exeext 4414if { (ac_try="$ac_link" 4415case "(($ac_try" in 4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4417 *) ac_try_echo=$ac_try;; 4418esac 4419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4420 (eval "$ac_link") 2>conftest.er1 4421 ac_status=$? 4422 grep -v '^ *+' conftest.er1 >conftest.err 4423 rm -f conftest.er1 4424 cat conftest.err >&5 4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4426 (exit $ac_status); } && { 4427 test -z "$ac_c_werror_flag" || 4428 test ! -s conftest.err 4429 } && test -s conftest$ac_exeext && 4430 $as_test_x conftest$ac_exeext; then 4431 ac_cv_lib_ipc_shmat=yes 4432else 4433 echo "$as_me: failed program was:" >&5 4434sed 's/^/| /' conftest.$ac_ext >&5 4435 4436 ac_cv_lib_ipc_shmat=no 4437fi 4438 4439rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4440 conftest$ac_exeext conftest.$ac_ext 4441LIBS=$ac_check_lib_save_LIBS 4442fi 4443{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 4444echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 4445if test $ac_cv_lib_ipc_shmat = yes; then 4446 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 4447fi 4448 4449 fi 4450 fi 4451 4452 # Check for libraries that X11R6 Xt/Xaw programs need. 4453 ac_save_LDFLAGS=$LDFLAGS 4454 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 4455 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 4456 # check for ICE first), but we must link in the order -lSM -lICE or 4457 # we get undefined symbols. So assume we have SM if we have ICE. 4458 # These have to be linked with before -lX11, unlike the other 4459 # libraries we check for below, so use a different variable. 4460 # John Interrante, Karl Berry 4461 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 4462echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 4463if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 4464 echo $ECHO_N "(cached) $ECHO_C" >&6 4465else 4466 ac_check_lib_save_LIBS=$LIBS 4467LIBS="-lICE $X_EXTRA_LIBS $LIBS" 4468cat >conftest.$ac_ext <<_ACEOF 4469/* confdefs.h. */ 4470_ACEOF 4471cat confdefs.h >>conftest.$ac_ext 4472cat >>conftest.$ac_ext <<_ACEOF 4473/* end confdefs.h. */ 4474 4475/* Override any GCC internal prototype to avoid an error. 4476 Use char because int might match the return type of a GCC 4477 builtin and then its argument prototype would still apply. */ 4478#ifdef __cplusplus 4479extern "C" 4480#endif 4481char IceConnectionNumber (); 4482int 4483main () 4484{ 4485return IceConnectionNumber (); 4486 ; 4487 return 0; 4488} 4489_ACEOF 4490rm -f conftest.$ac_objext conftest$ac_exeext 4491if { (ac_try="$ac_link" 4492case "(($ac_try" in 4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4494 *) ac_try_echo=$ac_try;; 4495esac 4496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4497 (eval "$ac_link") 2>conftest.er1 4498 ac_status=$? 4499 grep -v '^ *+' conftest.er1 >conftest.err 4500 rm -f conftest.er1 4501 cat conftest.err >&5 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); } && { 4504 test -z "$ac_c_werror_flag" || 4505 test ! -s conftest.err 4506 } && test -s conftest$ac_exeext && 4507 $as_test_x conftest$ac_exeext; then 4508 ac_cv_lib_ICE_IceConnectionNumber=yes 4509else 4510 echo "$as_me: failed program was:" >&5 4511sed 's/^/| /' conftest.$ac_ext >&5 4512 4513 ac_cv_lib_ICE_IceConnectionNumber=no 4514fi 4515 4516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4517 conftest$ac_exeext conftest.$ac_ext 4518LIBS=$ac_check_lib_save_LIBS 4519fi 4520{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 4521echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 4522if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 4523 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 4524fi 4525 4526 LDFLAGS=$ac_save_LDFLAGS 4527 4528fi 4529 4530if test -n "$no_x"; then 4531 { { echo "$as_me:$LINENO: error: Can't find X, you need X!" >&5 4532echo "$as_me: error: Can't find X, you need X!" >&2;} 4533 { (exit 1); exit 1; }; } 4534else 4535 INCS="$INCS -I$x_includes" 4536 if test -n "$x_libraries"; then 4537 LIBS="-L$x_libraries" 4538 fi 4539 4540 if test -n "$xpm_lib"; then 4541 LIBS="$LIBS -L$xpm_lib" 4542 fi 4543fi 4544 4545{ echo "$as_me:$LINENO: host os is detected as $host_os " >&5 4546echo "$as_me: host os is detected as $host_os " >&6;} 4547if test "$sound-type" != "no" ; then 4548 case $host_os in 4549 *linux*) 4550 sound_type=native 4551 ;; 4552 *dragonfly*) 4553 sound_type=native 4554 ;; 4555 *freebsd*) 4556 sound_type=native 4557 ;; 4558 *netbsd*) 4559 sound_type=native 4560 ;; 4561 *sunos*) 4562 sound_type=native 4563 ;; 4564 *solaris*) 4565 sound_type=native 4566 ;; 4567 *) 4568 sound_type=none 4569 ;; 4570 esac 4571fi 4572 4573{ echo "$as_me:$LINENO: sound type choosen as $sound_type " >&5 4574echo "$as_me: sound type choosen as $sound_type " >&6;} 4575case $sound_type in 4576 native) 4577 case $host_os in 4578 *linux*) 4579 SOUNDSERVER=xgal.sndsrv.oss 4580 4581cat >>confdefs.h <<\_ACEOF 4582#define SOUNDDEV "/dev/dsp" 4583_ACEOF 4584 4585 SOUNDSRVDIR="" 4586 4587cat >>confdefs.h <<\_ACEOF 4588#define SOUND 1 4589_ACEOF 4590 4591 ;; 4592 *freebsd* | *dragonfly*) 4593 SOUNDSERVER=xgal.sndsrv.freebsd 4594 cat >>confdefs.h <<\_ACEOF 4595#define SOUNDDEV "/dev/dsp" 4596_ACEOF 4597 4598 SOUNDSRVDIR="" 4599 cat >>confdefs.h <<\_ACEOF 4600#define SOUND 1 4601_ACEOF 4602 4603 ;; 4604 *netbsd*) 4605 SOUNDSERVER=xgal.sndsrv.linux 4606 cat >>confdefs.h <<\_ACEOF 4607#define SOUNDDEV "/dev/audio" 4608_ACEOF 4609 4610 SOUNDSRVDIR="/libexec" 4611 cat >>confdefs.h <<\_ACEOF 4612#define SOUND 1 4613_ACEOF 4614 4615 ;; 4616 *sunos*) 4617 SOUNDSERVER=xgal.sndsrv.sun.c 4618 cat >>confdefs.h <<\_ACEOF 4619#define SOUNDDEV "/dev/audio" 4620_ACEOF 4621 4622 SOUNDSRVDIR="" 4623 cat >>confdefs.h <<\_ACEOF 4624#define SOUND 1 4625_ACEOF 4626 4627 ;; 4628 *solaris*) 4629 SOUNDSERVER=xgal.sndsrv.sun.c 4630 cat >>confdefs.h <<\_ACEOF 4631#define SOUNDDEV "/dev/audio" 4632_ACEOF 4633 4634 SOUNDSRVDIR="" 4635 cat >>confdefs.h <<\_ACEOF 4636#define SOUND 1 4637_ACEOF 4638 4639 ;; 4640 *) 4641 { echo "$as_me:$LINENO: WARNING: Native sound selected but not supported for $host_os" >&5 4642echo "$as_me: WARNING: Native sound selected but not supported for $host_os" >&2;} 4643 ;; 4644 esac 4645 ;; 4646 nas) 4647 cat >>confdefs.h <<\_ACEOF 4648#define SOUND 1 4649_ACEOF 4650 4651 cat >>confdefs.h <<\_ACEOF 4652#define NAS_SOUND 1 4653_ACEOF 4654 4655 ;; 4656 *) 4657 { echo "$as_me:$LINENO: WARNING: Sound type set to $sound_type for $host_os. Sound will not work" >&5 4658echo "$as_me: WARNING: Sound type set to $sound_type for $host_os. Sound will not work" >&2;} 4659 ;; 4660esac 4661 4662cat >>confdefs.h <<_ACEOF 4663#define SCOREFILE "$prefix/scores" 4664_ACEOF 4665 4666cat >>confdefs.h <<_ACEOF 4667#define SOUNDDIR "$prefix/sounds/" 4668_ACEOF 4669 4670CREDITSFILE="$prefix/CREDITS" 4671cat >>confdefs.h <<_ACEOF 4672#define CREDITSFILE "$CREDITSFILE" 4673_ACEOF 4674 4675cat >>confdefs.h <<\_ACEOF 4676#define IMAGEDIR "images" 4677_ACEOF 4678 4679cat >>confdefs.h <<_ACEOF 4680#define LEVELDIR "$prefix/levels/" 4681_ACEOF 4682 4683 4684{ echo "$as_me:$LINENO: checking for main in -lX11" >&5 4685echo $ECHO_N "checking for main in -lX11... $ECHO_C" >&6; } 4686if test "${ac_cv_lib_X11_main+set}" = set; then 4687 echo $ECHO_N "(cached) $ECHO_C" >&6 4688else 4689 ac_check_lib_save_LIBS=$LIBS 4690LIBS="-lX11 $LIBS" 4691cat >conftest.$ac_ext <<_ACEOF 4692/* confdefs.h. */ 4693_ACEOF 4694cat confdefs.h >>conftest.$ac_ext 4695cat >>conftest.$ac_ext <<_ACEOF 4696/* end confdefs.h. */ 4697 4698 4699int 4700main () 4701{ 4702return main (); 4703 ; 4704 return 0; 4705} 4706_ACEOF 4707rm -f conftest.$ac_objext conftest$ac_exeext 4708if { (ac_try="$ac_link" 4709case "(($ac_try" in 4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4711 *) ac_try_echo=$ac_try;; 4712esac 4713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4714 (eval "$ac_link") 2>conftest.er1 4715 ac_status=$? 4716 grep -v '^ *+' conftest.er1 >conftest.err 4717 rm -f conftest.er1 4718 cat conftest.err >&5 4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4720 (exit $ac_status); } && { 4721 test -z "$ac_c_werror_flag" || 4722 test ! -s conftest.err 4723 } && test -s conftest$ac_exeext && 4724 $as_test_x conftest$ac_exeext; then 4725 ac_cv_lib_X11_main=yes 4726else 4727 echo "$as_me: failed program was:" >&5 4728sed 's/^/| /' conftest.$ac_ext >&5 4729 4730 ac_cv_lib_X11_main=no 4731fi 4732 4733rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4734 conftest$ac_exeext conftest.$ac_ext 4735LIBS=$ac_check_lib_save_LIBS 4736fi 4737{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_main" >&5 4738echo "${ECHO_T}$ac_cv_lib_X11_main" >&6; } 4739if test $ac_cv_lib_X11_main = yes; then 4740 LIBS="$LIBS -lX11" 4741fi 4742 4743{ echo "$as_me:$LINENO: checking for main in -lXmu" >&5 4744echo $ECHO_N "checking for main in -lXmu... $ECHO_C" >&6; } 4745if test "${ac_cv_lib_Xmu_main+set}" = set; then 4746 echo $ECHO_N "(cached) $ECHO_C" >&6 4747else 4748 ac_check_lib_save_LIBS=$LIBS 4749LIBS="-lXmu -lX11 $LIBS" 4750cat >conftest.$ac_ext <<_ACEOF 4751/* confdefs.h. */ 4752_ACEOF 4753cat confdefs.h >>conftest.$ac_ext 4754cat >>conftest.$ac_ext <<_ACEOF 4755/* end confdefs.h. */ 4756 4757 4758int 4759main () 4760{ 4761return main (); 4762 ; 4763 return 0; 4764} 4765_ACEOF 4766rm -f conftest.$ac_objext conftest$ac_exeext 4767if { (ac_try="$ac_link" 4768case "(($ac_try" in 4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4770 *) ac_try_echo=$ac_try;; 4771esac 4772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4773 (eval "$ac_link") 2>conftest.er1 4774 ac_status=$? 4775 grep -v '^ *+' conftest.er1 >conftest.err 4776 rm -f conftest.er1 4777 cat conftest.err >&5 4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4779 (exit $ac_status); } && { 4780 test -z "$ac_c_werror_flag" || 4781 test ! -s conftest.err 4782 } && test -s conftest$ac_exeext && 4783 $as_test_x conftest$ac_exeext; then 4784 ac_cv_lib_Xmu_main=yes 4785else 4786 echo "$as_me: failed program was:" >&5 4787sed 's/^/| /' conftest.$ac_ext >&5 4788 4789 ac_cv_lib_Xmu_main=no 4790fi 4791 4792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4793 conftest$ac_exeext conftest.$ac_ext 4794LIBS=$ac_check_lib_save_LIBS 4795fi 4796{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_main" >&5 4797echo "${ECHO_T}$ac_cv_lib_Xmu_main" >&6; } 4798if test $ac_cv_lib_Xmu_main = yes; then 4799 LIBS="$LIBS -lXmu" 4800fi 4801 4802{ echo "$as_me:$LINENO: checking for main in -lXt" >&5 4803echo $ECHO_N "checking for main in -lXt... $ECHO_C" >&6; } 4804if test "${ac_cv_lib_Xt_main+set}" = set; then 4805 echo $ECHO_N "(cached) $ECHO_C" >&6 4806else 4807 ac_check_lib_save_LIBS=$LIBS 4808LIBS="-lXt -lX11 $LIBS" 4809cat >conftest.$ac_ext <<_ACEOF 4810/* confdefs.h. */ 4811_ACEOF 4812cat confdefs.h >>conftest.$ac_ext 4813cat >>conftest.$ac_ext <<_ACEOF 4814/* end confdefs.h. */ 4815 4816 4817int 4818main () 4819{ 4820return main (); 4821 ; 4822 return 0; 4823} 4824_ACEOF 4825rm -f conftest.$ac_objext conftest$ac_exeext 4826if { (ac_try="$ac_link" 4827case "(($ac_try" in 4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4829 *) ac_try_echo=$ac_try;; 4830esac 4831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4832 (eval "$ac_link") 2>conftest.er1 4833 ac_status=$? 4834 grep -v '^ *+' conftest.er1 >conftest.err 4835 rm -f conftest.er1 4836 cat conftest.err >&5 4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4838 (exit $ac_status); } && { 4839 test -z "$ac_c_werror_flag" || 4840 test ! -s conftest.err 4841 } && test -s conftest$ac_exeext && 4842 $as_test_x conftest$ac_exeext; then 4843 ac_cv_lib_Xt_main=yes 4844else 4845 echo "$as_me: failed program was:" >&5 4846sed 's/^/| /' conftest.$ac_ext >&5 4847 4848 ac_cv_lib_Xt_main=no 4849fi 4850 4851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4852 conftest$ac_exeext conftest.$ac_ext 4853LIBS=$ac_check_lib_save_LIBS 4854fi 4855{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_main" >&5 4856echo "${ECHO_T}$ac_cv_lib_Xt_main" >&6; } 4857if test $ac_cv_lib_Xt_main = yes; then 4858 LIBS="$LIBS -lXt" 4859fi 4860 4861{ echo "$as_me:$LINENO: checking for main in -lXext" >&5 4862echo $ECHO_N "checking for main in -lXext... $ECHO_C" >&6; } 4863if test "${ac_cv_lib_Xext_main+set}" = set; then 4864 echo $ECHO_N "(cached) $ECHO_C" >&6 4865else 4866 ac_check_lib_save_LIBS=$LIBS 4867LIBS="-lXext -lX11 $LIBS" 4868cat >conftest.$ac_ext <<_ACEOF 4869/* confdefs.h. */ 4870_ACEOF 4871cat confdefs.h >>conftest.$ac_ext 4872cat >>conftest.$ac_ext <<_ACEOF 4873/* end confdefs.h. */ 4874 4875 4876int 4877main () 4878{ 4879return main (); 4880 ; 4881 return 0; 4882} 4883_ACEOF 4884rm -f conftest.$ac_objext conftest$ac_exeext 4885if { (ac_try="$ac_link" 4886case "(($ac_try" in 4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4888 *) ac_try_echo=$ac_try;; 4889esac 4890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4891 (eval "$ac_link") 2>conftest.er1 4892 ac_status=$? 4893 grep -v '^ *+' conftest.er1 >conftest.err 4894 rm -f conftest.er1 4895 cat conftest.err >&5 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4897 (exit $ac_status); } && { 4898 test -z "$ac_c_werror_flag" || 4899 test ! -s conftest.err 4900 } && test -s conftest$ac_exeext && 4901 $as_test_x conftest$ac_exeext; then 4902 ac_cv_lib_Xext_main=yes 4903else 4904 echo "$as_me: failed program was:" >&5 4905sed 's/^/| /' conftest.$ac_ext >&5 4906 4907 ac_cv_lib_Xext_main=no 4908fi 4909 4910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4911 conftest$ac_exeext conftest.$ac_ext 4912LIBS=$ac_check_lib_save_LIBS 4913fi 4914{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_main" >&5 4915echo "${ECHO_T}$ac_cv_lib_Xext_main" >&6; } 4916if test $ac_cv_lib_Xext_main = yes; then 4917 LIBS="$LIBS -lXext" 4918fi 4919 4920{ echo "$as_me:$LINENO: checking for main in -lXExExt" >&5 4921echo $ECHO_N "checking for main in -lXExExt... $ECHO_C" >&6; } 4922if test "${ac_cv_lib_XExExt_main+set}" = set; then 4923 echo $ECHO_N "(cached) $ECHO_C" >&6 4924else 4925 ac_check_lib_save_LIBS=$LIBS 4926LIBS="-lXExExt -lX11 $LIBS" 4927cat >conftest.$ac_ext <<_ACEOF 4928/* confdefs.h. */ 4929_ACEOF 4930cat confdefs.h >>conftest.$ac_ext 4931cat >>conftest.$ac_ext <<_ACEOF 4932/* end confdefs.h. */ 4933 4934 4935int 4936main () 4937{ 4938return main (); 4939 ; 4940 return 0; 4941} 4942_ACEOF 4943rm -f conftest.$ac_objext conftest$ac_exeext 4944if { (ac_try="$ac_link" 4945case "(($ac_try" in 4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4947 *) ac_try_echo=$ac_try;; 4948esac 4949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4950 (eval "$ac_link") 2>conftest.er1 4951 ac_status=$? 4952 grep -v '^ *+' conftest.er1 >conftest.err 4953 rm -f conftest.er1 4954 cat conftest.err >&5 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4956 (exit $ac_status); } && { 4957 test -z "$ac_c_werror_flag" || 4958 test ! -s conftest.err 4959 } && test -s conftest$ac_exeext && 4960 $as_test_x conftest$ac_exeext; then 4961 ac_cv_lib_XExExt_main=yes 4962else 4963 echo "$as_me: failed program was:" >&5 4964sed 's/^/| /' conftest.$ac_ext >&5 4965 4966 ac_cv_lib_XExExt_main=no 4967fi 4968 4969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4970 conftest$ac_exeext conftest.$ac_ext 4971LIBS=$ac_check_lib_save_LIBS 4972fi 4973{ echo "$as_me:$LINENO: result: $ac_cv_lib_XExExt_main" >&5 4974echo "${ECHO_T}$ac_cv_lib_XExExt_main" >&6; } 4975if test $ac_cv_lib_XExExt_main = yes; then 4976 LIBS="$LIBS -lXExExt" 4977fi 4978 4979{ echo "$as_me:$LINENO: checking for main in -lXpm" >&5 4980echo $ECHO_N "checking for main in -lXpm... $ECHO_C" >&6; } 4981if test "${ac_cv_lib_Xpm_main+set}" = set; then 4982 echo $ECHO_N "(cached) $ECHO_C" >&6 4983else 4984 ac_check_lib_save_LIBS=$LIBS 4985LIBS="-lXpm -lX11 $LIBS" 4986cat >conftest.$ac_ext <<_ACEOF 4987/* confdefs.h. */ 4988_ACEOF 4989cat confdefs.h >>conftest.$ac_ext 4990cat >>conftest.$ac_ext <<_ACEOF 4991/* end confdefs.h. */ 4992 4993 4994int 4995main () 4996{ 4997return main (); 4998 ; 4999 return 0; 5000} 5001_ACEOF 5002rm -f conftest.$ac_objext conftest$ac_exeext 5003if { (ac_try="$ac_link" 5004case "(($ac_try" in 5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5006 *) ac_try_echo=$ac_try;; 5007esac 5008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5009 (eval "$ac_link") 2>conftest.er1 5010 ac_status=$? 5011 grep -v '^ *+' conftest.er1 >conftest.err 5012 rm -f conftest.er1 5013 cat conftest.err >&5 5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5015 (exit $ac_status); } && { 5016 test -z "$ac_c_werror_flag" || 5017 test ! -s conftest.err 5018 } && test -s conftest$ac_exeext && 5019 $as_test_x conftest$ac_exeext; then 5020 ac_cv_lib_Xpm_main=yes 5021else 5022 echo "$as_me: failed program was:" >&5 5023sed 's/^/| /' conftest.$ac_ext >&5 5024 5025 ac_cv_lib_Xpm_main=no 5026fi 5027 5028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5029 conftest$ac_exeext conftest.$ac_ext 5030LIBS=$ac_check_lib_save_LIBS 5031fi 5032{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_main" >&5 5033echo "${ECHO_T}$ac_cv_lib_Xpm_main" >&6; } 5034if test $ac_cv_lib_Xpm_main = yes; then 5035 LIBS="$LIBS -lXpm" 5036else 5037 { { echo "$as_me:$LINENO: error: libXpm can't be found. Get it from ftp://ftp.x.org/contrib/libraries or specify the location with --with-xpm-lib=DIR." >&5 5038echo "$as_me: error: libXpm can't be found. Get it from ftp://ftp.x.org/contrib/libraries or specify the location with --with-xpm-lib=DIR." >&2;} 5039 { (exit 1); exit 1; }; } 5040fi 5041 5042 5043{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 5044echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 5045if test "${ac_cv_path_GREP+set}" = set; then 5046 echo $ECHO_N "(cached) $ECHO_C" >&6 5047else 5048 # Extract the first word of "grep ggrep" to use in msg output 5049if test -z "$GREP"; then 5050set dummy grep ggrep; ac_prog_name=$2 5051if test "${ac_cv_path_GREP+set}" = set; then 5052 echo $ECHO_N "(cached) $ECHO_C" >&6 5053else 5054 ac_path_GREP_found=false 5055# Loop through the user's path and test for each of PROGNAME-LIST 5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5057for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5058do 5059 IFS=$as_save_IFS 5060 test -z "$as_dir" && as_dir=. 5061 for ac_prog in grep ggrep; do 5062 for ac_exec_ext in '' $ac_executable_extensions; do 5063 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5064 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5065 # Check for GNU ac_path_GREP and select it if it is found. 5066 # Check for GNU $ac_path_GREP 5067case `"$ac_path_GREP" --version 2>&1` in 5068*GNU*) 5069 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5070*) 5071 ac_count=0 5072 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5073 while : 5074 do 5075 cat "conftest.in" "conftest.in" >"conftest.tmp" 5076 mv "conftest.tmp" "conftest.in" 5077 cp "conftest.in" "conftest.nl" 5078 echo 'GREP' >> "conftest.nl" 5079 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5081 ac_count=`expr $ac_count + 1` 5082 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5083 # Best one so far, save it but keep looking for a better one 5084 ac_cv_path_GREP="$ac_path_GREP" 5085 ac_path_GREP_max=$ac_count 5086 fi 5087 # 10*(2^10) chars as input seems more than enough 5088 test $ac_count -gt 10 && break 5089 done 5090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5091esac 5092 5093 5094 $ac_path_GREP_found && break 3 5095 done 5096done 5097 5098done 5099IFS=$as_save_IFS 5100 5101 5102fi 5103 5104GREP="$ac_cv_path_GREP" 5105if test -z "$GREP"; then 5106 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5107echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5108 { (exit 1); exit 1; }; } 5109fi 5110 5111else 5112 ac_cv_path_GREP=$GREP 5113fi 5114 5115 5116fi 5117{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 5118echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 5119 GREP="$ac_cv_path_GREP" 5120 5121 5122{ echo "$as_me:$LINENO: checking for egrep" >&5 5123echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 5124if test "${ac_cv_path_EGREP+set}" = set; then 5125 echo $ECHO_N "(cached) $ECHO_C" >&6 5126else 5127 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5128 then ac_cv_path_EGREP="$GREP -E" 5129 else 5130 # Extract the first word of "egrep" to use in msg output 5131if test -z "$EGREP"; then 5132set dummy egrep; ac_prog_name=$2 5133if test "${ac_cv_path_EGREP+set}" = set; then 5134 echo $ECHO_N "(cached) $ECHO_C" >&6 5135else 5136 ac_path_EGREP_found=false 5137# Loop through the user's path and test for each of PROGNAME-LIST 5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5140do 5141 IFS=$as_save_IFS 5142 test -z "$as_dir" && as_dir=. 5143 for ac_prog in egrep; do 5144 for ac_exec_ext in '' $ac_executable_extensions; do 5145 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5146 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5147 # Check for GNU ac_path_EGREP and select it if it is found. 5148 # Check for GNU $ac_path_EGREP 5149case `"$ac_path_EGREP" --version 2>&1` in 5150*GNU*) 5151 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5152*) 5153 ac_count=0 5154 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5155 while : 5156 do 5157 cat "conftest.in" "conftest.in" >"conftest.tmp" 5158 mv "conftest.tmp" "conftest.in" 5159 cp "conftest.in" "conftest.nl" 5160 echo 'EGREP' >> "conftest.nl" 5161 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5163 ac_count=`expr $ac_count + 1` 5164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5165 # Best one so far, save it but keep looking for a better one 5166 ac_cv_path_EGREP="$ac_path_EGREP" 5167 ac_path_EGREP_max=$ac_count 5168 fi 5169 # 10*(2^10) chars as input seems more than enough 5170 test $ac_count -gt 10 && break 5171 done 5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5173esac 5174 5175 5176 $ac_path_EGREP_found && break 3 5177 done 5178done 5179 5180done 5181IFS=$as_save_IFS 5182 5183 5184fi 5185 5186EGREP="$ac_cv_path_EGREP" 5187if test -z "$EGREP"; then 5188 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5189echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5190 { (exit 1); exit 1; }; } 5191fi 5192 5193else 5194 ac_cv_path_EGREP=$EGREP 5195fi 5196 5197 5198 fi 5199fi 5200{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 5201echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 5202 EGREP="$ac_cv_path_EGREP" 5203 5204 5205{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5206echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5207if test "${ac_cv_header_stdc+set}" = set; then 5208 echo $ECHO_N "(cached) $ECHO_C" >&6 5209else 5210 cat >conftest.$ac_ext <<_ACEOF 5211/* confdefs.h. */ 5212_ACEOF 5213cat confdefs.h >>conftest.$ac_ext 5214cat >>conftest.$ac_ext <<_ACEOF 5215/* end confdefs.h. */ 5216#include <stdlib.h> 5217#include <stdarg.h> 5218#include <string.h> 5219#include <float.h> 5220 5221int 5222main () 5223{ 5224 5225 ; 5226 return 0; 5227} 5228_ACEOF 5229rm -f conftest.$ac_objext 5230if { (ac_try="$ac_compile" 5231case "(($ac_try" in 5232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5233 *) ac_try_echo=$ac_try;; 5234esac 5235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5236 (eval "$ac_compile") 2>conftest.er1 5237 ac_status=$? 5238 grep -v '^ *+' conftest.er1 >conftest.err 5239 rm -f conftest.er1 5240 cat conftest.err >&5 5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5242 (exit $ac_status); } && { 5243 test -z "$ac_c_werror_flag" || 5244 test ! -s conftest.err 5245 } && test -s conftest.$ac_objext; then 5246 ac_cv_header_stdc=yes 5247else 5248 echo "$as_me: failed program was:" >&5 5249sed 's/^/| /' conftest.$ac_ext >&5 5250 5251 ac_cv_header_stdc=no 5252fi 5253 5254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5255 5256if test $ac_cv_header_stdc = yes; then 5257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5258 cat >conftest.$ac_ext <<_ACEOF 5259/* confdefs.h. */ 5260_ACEOF 5261cat confdefs.h >>conftest.$ac_ext 5262cat >>conftest.$ac_ext <<_ACEOF 5263/* end confdefs.h. */ 5264#include <string.h> 5265 5266_ACEOF 5267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5268 $EGREP "memchr" >/dev/null 2>&1; then 5269 : 5270else 5271 ac_cv_header_stdc=no 5272fi 5273rm -f conftest* 5274 5275fi 5276 5277if test $ac_cv_header_stdc = yes; then 5278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5279 cat >conftest.$ac_ext <<_ACEOF 5280/* confdefs.h. */ 5281_ACEOF 5282cat confdefs.h >>conftest.$ac_ext 5283cat >>conftest.$ac_ext <<_ACEOF 5284/* end confdefs.h. */ 5285#include <stdlib.h> 5286 5287_ACEOF 5288if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5289 $EGREP "free" >/dev/null 2>&1; then 5290 : 5291else 5292 ac_cv_header_stdc=no 5293fi 5294rm -f conftest* 5295 5296fi 5297 5298if test $ac_cv_header_stdc = yes; then 5299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5300 if test "$cross_compiling" = yes; then 5301 : 5302else 5303 cat >conftest.$ac_ext <<_ACEOF 5304/* confdefs.h. */ 5305_ACEOF 5306cat confdefs.h >>conftest.$ac_ext 5307cat >>conftest.$ac_ext <<_ACEOF 5308/* end confdefs.h. */ 5309#include <ctype.h> 5310#include <stdlib.h> 5311#if ((' ' & 0x0FF) == 0x020) 5312# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5313# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5314#else 5315# define ISLOWER(c) \ 5316 (('a' <= (c) && (c) <= 'i') \ 5317 || ('j' <= (c) && (c) <= 'r') \ 5318 || ('s' <= (c) && (c) <= 'z')) 5319# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5320#endif 5321 5322#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5323int 5324main () 5325{ 5326 int i; 5327 for (i = 0; i < 256; i++) 5328 if (XOR (islower (i), ISLOWER (i)) 5329 || toupper (i) != TOUPPER (i)) 5330 return 2; 5331 return 0; 5332} 5333_ACEOF 5334rm -f conftest$ac_exeext 5335if { (ac_try="$ac_link" 5336case "(($ac_try" in 5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5338 *) ac_try_echo=$ac_try;; 5339esac 5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5341 (eval "$ac_link") 2>&5 5342 ac_status=$? 5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5345 { (case "(($ac_try" in 5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5347 *) ac_try_echo=$ac_try;; 5348esac 5349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5350 (eval "$ac_try") 2>&5 5351 ac_status=$? 5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5353 (exit $ac_status); }; }; then 5354 : 5355else 5356 echo "$as_me: program exited with status $ac_status" >&5 5357echo "$as_me: failed program was:" >&5 5358sed 's/^/| /' conftest.$ac_ext >&5 5359 5360( exit $ac_status ) 5361ac_cv_header_stdc=no 5362fi 5363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5364fi 5365 5366 5367fi 5368fi 5369{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5370echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5371if test $ac_cv_header_stdc = yes; then 5372 5373cat >>confdefs.h <<\_ACEOF 5374#define STDC_HEADERS 1 5375_ACEOF 5376 5377fi 5378 5379# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5390 inttypes.h stdint.h unistd.h 5391do 5392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5393{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5395if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5396 echo $ECHO_N "(cached) $ECHO_C" >&6 5397else 5398 cat >conftest.$ac_ext <<_ACEOF 5399/* confdefs.h. */ 5400_ACEOF 5401cat confdefs.h >>conftest.$ac_ext 5402cat >>conftest.$ac_ext <<_ACEOF 5403/* end confdefs.h. */ 5404$ac_includes_default 5405 5406#include <$ac_header> 5407_ACEOF 5408rm -f conftest.$ac_objext 5409if { (ac_try="$ac_compile" 5410case "(($ac_try" in 5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5412 *) ac_try_echo=$ac_try;; 5413esac 5414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5415 (eval "$ac_compile") 2>conftest.er1 5416 ac_status=$? 5417 grep -v '^ *+' conftest.er1 >conftest.err 5418 rm -f conftest.er1 5419 cat conftest.err >&5 5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5421 (exit $ac_status); } && { 5422 test -z "$ac_c_werror_flag" || 5423 test ! -s conftest.err 5424 } && test -s conftest.$ac_objext; then 5425 eval "$as_ac_Header=yes" 5426else 5427 echo "$as_me: failed program was:" >&5 5428sed 's/^/| /' conftest.$ac_ext >&5 5429 5430 eval "$as_ac_Header=no" 5431fi 5432 5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5434fi 5435ac_res=`eval echo '${'$as_ac_Header'}'` 5436 { echo "$as_me:$LINENO: result: $ac_res" >&5 5437echo "${ECHO_T}$ac_res" >&6; } 5438if test `eval echo '${'$as_ac_Header'}'` = yes; then 5439 cat >>confdefs.h <<_ACEOF 5440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5441_ACEOF 5442 5443fi 5444 5445done 5446 5447 5448 5449 5450 5451 5452 5453 5454for ac_header in fcntl.h malloc.h strings.h sys/ioctl.h sys/time.h unistd.h 5455do 5456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5458 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5461 echo $ECHO_N "(cached) $ECHO_C" >&6 5462fi 5463ac_res=`eval echo '${'$as_ac_Header'}'` 5464 { echo "$as_me:$LINENO: result: $ac_res" >&5 5465echo "${ECHO_T}$ac_res" >&6; } 5466else 5467 # Is the header compilable? 5468{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5470cat >conftest.$ac_ext <<_ACEOF 5471/* confdefs.h. */ 5472_ACEOF 5473cat confdefs.h >>conftest.$ac_ext 5474cat >>conftest.$ac_ext <<_ACEOF 5475/* end confdefs.h. */ 5476$ac_includes_default 5477#include <$ac_header> 5478_ACEOF 5479rm -f conftest.$ac_objext 5480if { (ac_try="$ac_compile" 5481case "(($ac_try" in 5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5483 *) ac_try_echo=$ac_try;; 5484esac 5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5486 (eval "$ac_compile") 2>conftest.er1 5487 ac_status=$? 5488 grep -v '^ *+' conftest.er1 >conftest.err 5489 rm -f conftest.er1 5490 cat conftest.err >&5 5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5492 (exit $ac_status); } && { 5493 test -z "$ac_c_werror_flag" || 5494 test ! -s conftest.err 5495 } && test -s conftest.$ac_objext; then 5496 ac_header_compiler=yes 5497else 5498 echo "$as_me: failed program was:" >&5 5499sed 's/^/| /' conftest.$ac_ext >&5 5500 5501 ac_header_compiler=no 5502fi 5503 5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5505{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5506echo "${ECHO_T}$ac_header_compiler" >&6; } 5507 5508# Is the header present? 5509{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5510echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5511cat >conftest.$ac_ext <<_ACEOF 5512/* confdefs.h. */ 5513_ACEOF 5514cat confdefs.h >>conftest.$ac_ext 5515cat >>conftest.$ac_ext <<_ACEOF 5516/* end confdefs.h. */ 5517#include <$ac_header> 5518_ACEOF 5519if { (ac_try="$ac_cpp conftest.$ac_ext" 5520case "(($ac_try" in 5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5522 *) ac_try_echo=$ac_try;; 5523esac 5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5526 ac_status=$? 5527 grep -v '^ *+' conftest.er1 >conftest.err 5528 rm -f conftest.er1 5529 cat conftest.err >&5 5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5531 (exit $ac_status); } >/dev/null && { 5532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5533 test ! -s conftest.err 5534 }; then 5535 ac_header_preproc=yes 5536else 5537 echo "$as_me: failed program was:" >&5 5538sed 's/^/| /' conftest.$ac_ext >&5 5539 5540 ac_header_preproc=no 5541fi 5542 5543rm -f conftest.err conftest.$ac_ext 5544{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5545echo "${ECHO_T}$ac_header_preproc" >&6; } 5546 5547# So? What about this header? 5548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5549 yes:no: ) 5550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5551echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5553echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5554 ac_header_preproc=yes 5555 ;; 5556 no:yes:* ) 5557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5560echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5562echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5564echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5568echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5569 5570 ;; 5571esac 5572{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5575 echo $ECHO_N "(cached) $ECHO_C" >&6 5576else 5577 eval "$as_ac_Header=\$ac_header_preproc" 5578fi 5579ac_res=`eval echo '${'$as_ac_Header'}'` 5580 { echo "$as_me:$LINENO: result: $ac_res" >&5 5581echo "${ECHO_T}$ac_res" >&6; } 5582 5583fi 5584if test `eval echo '${'$as_ac_Header'}'` = yes; then 5585 cat >>confdefs.h <<_ACEOF 5586#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5587_ACEOF 5588 5589fi 5590 5591done 5592 5593 5594{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5595echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } 5596if test "${ac_cv_c_const+set}" = set; then 5597 echo $ECHO_N "(cached) $ECHO_C" >&6 5598else 5599 cat >conftest.$ac_ext <<_ACEOF 5600/* confdefs.h. */ 5601_ACEOF 5602cat confdefs.h >>conftest.$ac_ext 5603cat >>conftest.$ac_ext <<_ACEOF 5604/* end confdefs.h. */ 5605 5606int 5607main () 5608{ 5609/* FIXME: Include the comments suggested by Paul. */ 5610#ifndef __cplusplus 5611 /* Ultrix mips cc rejects this. */ 5612 typedef int charset[2]; 5613 const charset cs; 5614 /* SunOS 4.1.1 cc rejects this. */ 5615 char const *const *pcpcc; 5616 char **ppc; 5617 /* NEC SVR4.0.2 mips cc rejects this. */ 5618 struct point {int x, y;}; 5619 static struct point const zero = {0,0}; 5620 /* AIX XL C 1.02.0.0 rejects this. 5621 It does not let you subtract one const X* pointer from another in 5622 an arm of an if-expression whose if-part is not a constant 5623 expression */ 5624 const char *g = "string"; 5625 pcpcc = &g + (g ? g-g : 0); 5626 /* HPUX 7.0 cc rejects these. */ 5627 ++pcpcc; 5628 ppc = (char**) pcpcc; 5629 pcpcc = (char const *const *) ppc; 5630 { /* SCO 3.2v4 cc rejects this. */ 5631 char *t; 5632 char const *s = 0 ? (char *) 0 : (char const *) 0; 5633 5634 *t++ = 0; 5635 if (s) return 0; 5636 } 5637 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5638 int x[] = {25, 17}; 5639 const int *foo = &x[0]; 5640 ++foo; 5641 } 5642 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5643 typedef const int *iptr; 5644 iptr p = 0; 5645 ++p; 5646 } 5647 { /* AIX XL C 1.02.0.0 rejects this saying 5648 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5649 struct s { int j; const int *ap[3]; }; 5650 struct s *b; b->j = 5; 5651 } 5652 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5653 const int foo = 10; 5654 if (!foo) return 0; 5655 } 5656 return !cs[0] && !zero.x; 5657#endif 5658 5659 ; 5660 return 0; 5661} 5662_ACEOF 5663rm -f conftest.$ac_objext 5664if { (ac_try="$ac_compile" 5665case "(($ac_try" in 5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5667 *) ac_try_echo=$ac_try;; 5668esac 5669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5670 (eval "$ac_compile") 2>conftest.er1 5671 ac_status=$? 5672 grep -v '^ *+' conftest.er1 >conftest.err 5673 rm -f conftest.er1 5674 cat conftest.err >&5 5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5676 (exit $ac_status); } && { 5677 test -z "$ac_c_werror_flag" || 5678 test ! -s conftest.err 5679 } && test -s conftest.$ac_objext; then 5680 ac_cv_c_const=yes 5681else 5682 echo "$as_me: failed program was:" >&5 5683sed 's/^/| /' conftest.$ac_ext >&5 5684 5685 ac_cv_c_const=no 5686fi 5687 5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5689fi 5690{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5691echo "${ECHO_T}$ac_cv_c_const" >&6; } 5692if test $ac_cv_c_const = no; then 5693 5694cat >>confdefs.h <<\_ACEOF 5695#define const 5696_ACEOF 5697 5698fi 5699 5700{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 5701echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 5702if test "${ac_cv_header_time+set}" = set; then 5703 echo $ECHO_N "(cached) $ECHO_C" >&6 5704else 5705 cat >conftest.$ac_ext <<_ACEOF 5706/* confdefs.h. */ 5707_ACEOF 5708cat confdefs.h >>conftest.$ac_ext 5709cat >>conftest.$ac_ext <<_ACEOF 5710/* end confdefs.h. */ 5711#include <sys/types.h> 5712#include <sys/time.h> 5713#include <time.h> 5714 5715int 5716main () 5717{ 5718if ((struct tm *) 0) 5719return 0; 5720 ; 5721 return 0; 5722} 5723_ACEOF 5724rm -f conftest.$ac_objext 5725if { (ac_try="$ac_compile" 5726case "(($ac_try" in 5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5728 *) ac_try_echo=$ac_try;; 5729esac 5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5731 (eval "$ac_compile") 2>conftest.er1 5732 ac_status=$? 5733 grep -v '^ *+' conftest.er1 >conftest.err 5734 rm -f conftest.er1 5735 cat conftest.err >&5 5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5737 (exit $ac_status); } && { 5738 test -z "$ac_c_werror_flag" || 5739 test ! -s conftest.err 5740 } && test -s conftest.$ac_objext; then 5741 ac_cv_header_time=yes 5742else 5743 echo "$as_me: failed program was:" >&5 5744sed 's/^/| /' conftest.$ac_ext >&5 5745 5746 ac_cv_header_time=no 5747fi 5748 5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5750fi 5751{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 5752echo "${ECHO_T}$ac_cv_header_time" >&6; } 5753if test $ac_cv_header_time = yes; then 5754 5755cat >>confdefs.h <<\_ACEOF 5756#define TIME_WITH_SYS_TIME 1 5757_ACEOF 5758 5759fi 5760 5761 5762if test $ac_cv_c_compiler_gnu = yes; then 5763 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 5764echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } 5765if test "${ac_cv_prog_gcc_traditional+set}" = set; then 5766 echo $ECHO_N "(cached) $ECHO_C" >&6 5767else 5768 ac_pattern="Autoconf.*'x'" 5769 cat >conftest.$ac_ext <<_ACEOF 5770/* confdefs.h. */ 5771_ACEOF 5772cat confdefs.h >>conftest.$ac_ext 5773cat >>conftest.$ac_ext <<_ACEOF 5774/* end confdefs.h. */ 5775#include <sgtty.h> 5776Autoconf TIOCGETP 5777_ACEOF 5778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5779 $EGREP "$ac_pattern" >/dev/null 2>&1; then 5780 ac_cv_prog_gcc_traditional=yes 5781else 5782 ac_cv_prog_gcc_traditional=no 5783fi 5784rm -f conftest* 5785 5786 5787 if test $ac_cv_prog_gcc_traditional = no; then 5788 cat >conftest.$ac_ext <<_ACEOF 5789/* confdefs.h. */ 5790_ACEOF 5791cat confdefs.h >>conftest.$ac_ext 5792cat >>conftest.$ac_ext <<_ACEOF 5793/* end confdefs.h. */ 5794#include <termio.h> 5795Autoconf TCGETA 5796_ACEOF 5797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5798 $EGREP "$ac_pattern" >/dev/null 2>&1; then 5799 ac_cv_prog_gcc_traditional=yes 5800fi 5801rm -f conftest* 5802 5803 fi 5804fi 5805{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 5806echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } 5807 if test $ac_cv_prog_gcc_traditional = yes; then 5808 CC="$CC -traditional" 5809 fi 5810fi 5811 5812{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5 5813echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } 5814if test "${ac_cv_type_signal+set}" = set; then 5815 echo $ECHO_N "(cached) $ECHO_C" >&6 5816else 5817 cat >conftest.$ac_ext <<_ACEOF 5818/* confdefs.h. */ 5819_ACEOF 5820cat confdefs.h >>conftest.$ac_ext 5821cat >>conftest.$ac_ext <<_ACEOF 5822/* end confdefs.h. */ 5823#include <sys/types.h> 5824#include <signal.h> 5825 5826int 5827main () 5828{ 5829return *(signal (0, 0)) (0) == 1; 5830 ; 5831 return 0; 5832} 5833_ACEOF 5834rm -f conftest.$ac_objext 5835if { (ac_try="$ac_compile" 5836case "(($ac_try" in 5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5838 *) ac_try_echo=$ac_try;; 5839esac 5840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5841 (eval "$ac_compile") 2>conftest.er1 5842 ac_status=$? 5843 grep -v '^ *+' conftest.er1 >conftest.err 5844 rm -f conftest.er1 5845 cat conftest.err >&5 5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5847 (exit $ac_status); } && { 5848 test -z "$ac_c_werror_flag" || 5849 test ! -s conftest.err 5850 } && test -s conftest.$ac_objext; then 5851 ac_cv_type_signal=int 5852else 5853 echo "$as_me: failed program was:" >&5 5854sed 's/^/| /' conftest.$ac_ext >&5 5855 5856 ac_cv_type_signal=void 5857fi 5858 5859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5860fi 5861{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 5862echo "${ECHO_T}$ac_cv_type_signal" >&6; } 5863 5864cat >>confdefs.h <<_ACEOF 5865#define RETSIGTYPE $ac_cv_type_signal 5866_ACEOF 5867 5868 5869 5870 5871 5872 5873for ac_func in gettimeofday select random lrand48 5874do 5875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5876{ echo "$as_me:$LINENO: checking for $ac_func" >&5 5877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 5878if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5879 echo $ECHO_N "(cached) $ECHO_C" >&6 5880else 5881 cat >conftest.$ac_ext <<_ACEOF 5882/* confdefs.h. */ 5883_ACEOF 5884cat confdefs.h >>conftest.$ac_ext 5885cat >>conftest.$ac_ext <<_ACEOF 5886/* end confdefs.h. */ 5887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5888 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5889#define $ac_func innocuous_$ac_func 5890 5891/* System header to define __stub macros and hopefully few prototypes, 5892 which can conflict with char $ac_func (); below. 5893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5894 <limits.h> exists even on freestanding compilers. */ 5895 5896#ifdef __STDC__ 5897# include <limits.h> 5898#else 5899# include <assert.h> 5900#endif 5901 5902#undef $ac_func 5903 5904/* Override any GCC internal prototype to avoid an error. 5905 Use char because int might match the return type of a GCC 5906 builtin and then its argument prototype would still apply. */ 5907#ifdef __cplusplus 5908extern "C" 5909#endif 5910char $ac_func (); 5911/* The GNU C library defines this for functions which it implements 5912 to always fail with ENOSYS. Some functions are actually named 5913 something starting with __ and the normal name is an alias. */ 5914#if defined __stub_$ac_func || defined __stub___$ac_func 5915choke me 5916#endif 5917 5918int 5919main () 5920{ 5921return $ac_func (); 5922 ; 5923 return 0; 5924} 5925_ACEOF 5926rm -f conftest.$ac_objext conftest$ac_exeext 5927if { (ac_try="$ac_link" 5928case "(($ac_try" in 5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5930 *) ac_try_echo=$ac_try;; 5931esac 5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5933 (eval "$ac_link") 2>conftest.er1 5934 ac_status=$? 5935 grep -v '^ *+' conftest.er1 >conftest.err 5936 rm -f conftest.er1 5937 cat conftest.err >&5 5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5939 (exit $ac_status); } && { 5940 test -z "$ac_c_werror_flag" || 5941 test ! -s conftest.err 5942 } && test -s conftest$ac_exeext && 5943 $as_test_x conftest$ac_exeext; then 5944 eval "$as_ac_var=yes" 5945else 5946 echo "$as_me: failed program was:" >&5 5947sed 's/^/| /' conftest.$ac_ext >&5 5948 5949 eval "$as_ac_var=no" 5950fi 5951 5952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5953 conftest$ac_exeext conftest.$ac_ext 5954fi 5955ac_res=`eval echo '${'$as_ac_var'}'` 5956 { echo "$as_me:$LINENO: result: $ac_res" >&5 5957echo "${ECHO_T}$ac_res" >&6; } 5958if test `eval echo '${'$as_ac_var'}'` = yes; then 5959 cat >>confdefs.h <<_ACEOF 5960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5961_ACEOF 5962 5963fi 5964done 5965 5966 5967 5968 5969 5970 5971 5972 5973ac_config_headers="$ac_config_headers config.h" 5974 5975ac_config_files="$ac_config_files Makefile libsprite/Makefile" 5976 5977cat >confcache <<\_ACEOF 5978# This file is a shell script that caches the results of configure 5979# tests run on this system so they can be shared between configure 5980# scripts and configure runs, see configure's option --config-cache. 5981# It is not useful on other systems. If it contains results you don't 5982# want to keep, you may remove or edit it. 5983# 5984# config.status only pays attention to the cache file if you give it 5985# the --recheck option to rerun configure. 5986# 5987# `ac_cv_env_foo' variables (set or unset) will be overridden when 5988# loading this file, other *unset* `ac_cv_foo' will be assigned the 5989# following values. 5990 5991_ACEOF 5992 5993# The following way of writing the cache mishandles newlines in values, 5994# but we know of no workaround that is simple, portable, and efficient. 5995# So, we kill variables containing newlines. 5996# Ultrix sh set writes to stderr and can't be redirected directly, 5997# and sets the high bit in the cache file unless we assign to the vars. 5998( 5999 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6000 eval ac_val=\$$ac_var 6001 case $ac_val in #( 6002 *${as_nl}*) 6003 case $ac_var in #( 6004 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 6005echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 6006 esac 6007 case $ac_var in #( 6008 _ | IFS | as_nl) ;; #( 6009 *) $as_unset $ac_var ;; 6010 esac ;; 6011 esac 6012 done 6013 6014 (set) 2>&1 | 6015 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6016 *${as_nl}ac_space=\ *) 6017 # `set' does not quote correctly, so add quotes (double-quote 6018 # substitution turns \\\\ into \\, and sed turns \\ into \). 6019 sed -n \ 6020 "s/'/'\\\\''/g; 6021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6022 ;; #( 6023 *) 6024 # `set' quotes correctly as required by POSIX, so do not add quotes. 6025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6026 ;; 6027 esac | 6028 sort 6029) | 6030 sed ' 6031 /^ac_cv_env_/b end 6032 t clear 6033 :clear 6034 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6035 t end 6036 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6037 :end' >>confcache 6038if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6039 if test -w "$cache_file"; then 6040 test "x$cache_file" != "x/dev/null" && 6041 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 6042echo "$as_me: updating cache $cache_file" >&6;} 6043 cat confcache >$cache_file 6044 else 6045 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 6046echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6047 fi 6048fi 6049rm -f confcache 6050 6051test "x$prefix" = xNONE && prefix=$ac_default_prefix 6052# Let make expand exec_prefix. 6053test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6054 6055DEFS=-DHAVE_CONFIG_H 6056 6057ac_libobjs= 6058ac_ltlibobjs= 6059for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6060 # 1. Remove the extension, and $U if already installed. 6061 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6062 ac_i=`echo "$ac_i" | sed "$ac_script"` 6063 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6064 # will be set to the directory where LIBOBJS objects are built. 6065 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6066 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 6067done 6068LIBOBJS=$ac_libobjs 6069 6070LTLIBOBJS=$ac_ltlibobjs 6071 6072 6073 6074: ${CONFIG_STATUS=./config.status} 6075ac_clean_files_save=$ac_clean_files 6076ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6077{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6078echo "$as_me: creating $CONFIG_STATUS" >&6;} 6079cat >$CONFIG_STATUS <<_ACEOF 6080#! $SHELL 6081# Generated by $as_me. 6082# Run this file to recreate the current configuration. 6083# Compiler output produced by configure, useful for debugging 6084# configure, is in config.log if it exists. 6085 6086debug=false 6087ac_cs_recheck=false 6088ac_cs_silent=false 6089SHELL=\${CONFIG_SHELL-$SHELL} 6090_ACEOF 6091 6092cat >>$CONFIG_STATUS <<\_ACEOF 6093## --------------------- ## 6094## M4sh Initialization. ## 6095## --------------------- ## 6096 6097# Be more Bourne compatible 6098DUALCASE=1; export DUALCASE # for MKS sh 6099if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 6100 emulate sh 6101 NULLCMD=: 6102 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6103 # is contrary to our usage. Disable this feature. 6104 alias -g '${1+"$@"}'='"$@"' 6105 setopt NO_GLOB_SUBST 6106else 6107 case `(set -o) 2>/dev/null` in 6108 *posix*) set -o posix ;; 6109esac 6110 6111fi 6112 6113 6114 6115 6116# PATH needs CR 6117# Avoid depending upon Character Ranges. 6118as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6119as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6120as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6121as_cr_digits='0123456789' 6122as_cr_alnum=$as_cr_Letters$as_cr_digits 6123 6124# The user is always right. 6125if test "${PATH_SEPARATOR+set}" != set; then 6126 echo "#! /bin/sh" >conf$$.sh 6127 echo "exit 0" >>conf$$.sh 6128 chmod +x conf$$.sh 6129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6130 PATH_SEPARATOR=';' 6131 else 6132 PATH_SEPARATOR=: 6133 fi 6134 rm -f conf$$.sh 6135fi 6136 6137# Support unset when possible. 6138if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6139 as_unset=unset 6140else 6141 as_unset=false 6142fi 6143 6144 6145# IFS 6146# We need space, tab and new line, in precisely that order. Quoting is 6147# there to prevent editors from complaining about space-tab. 6148# (If _AS_PATH_WALK were called with IFS unset, it would disable word 6149# splitting by setting IFS to empty value.) 6150as_nl=' 6151' 6152IFS=" "" $as_nl" 6153 6154# Find who we are. Look in the path if we contain no directory separator. 6155case $0 in 6156 *[\\/]* ) as_myself=$0 ;; 6157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6158for as_dir in $PATH 6159do 6160 IFS=$as_save_IFS 6161 test -z "$as_dir" && as_dir=. 6162 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6163done 6164IFS=$as_save_IFS 6165 6166 ;; 6167esac 6168# We did not find ourselves, most probably we were run as `sh COMMAND' 6169# in which case we are not to be found in the path. 6170if test "x$as_myself" = x; then 6171 as_myself=$0 6172fi 6173if test ! -f "$as_myself"; then 6174 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6175 { (exit 1); exit 1; } 6176fi 6177 6178# Work around bugs in pre-3.0 UWIN ksh. 6179for as_var in ENV MAIL MAILPATH 6180do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 6181done 6182PS1='$ ' 6183PS2='> ' 6184PS4='+ ' 6185 6186# NLS nuisances. 6187for as_var in \ 6188 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6189 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 6190 LC_TELEPHONE LC_TIME 6191do 6192 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 6193 eval $as_var=C; export $as_var 6194 else 6195 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 6196 fi 6197done 6198 6199# Required to use basename. 6200if expr a : '\(a\)' >/dev/null 2>&1 && 6201 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6202 as_expr=expr 6203else 6204 as_expr=false 6205fi 6206 6207if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6208 as_basename=basename 6209else 6210 as_basename=false 6211fi 6212 6213 6214# Name of the executable. 6215as_me=`$as_basename -- "$0" || 6216$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6217 X"$0" : 'X\(//\)$' \| \ 6218 X"$0" : 'X\(/\)' \| . 2>/dev/null || 6219echo X/"$0" | 6220 sed '/^.*\/\([^/][^/]*\)\/*$/{ 6221 s//\1/ 6222 q 6223 } 6224 /^X\/\(\/\/\)$/{ 6225 s//\1/ 6226 q 6227 } 6228 /^X\/\(\/\).*/{ 6229 s//\1/ 6230 q 6231 } 6232 s/.*/./; q'` 6233 6234# CDPATH. 6235$as_unset CDPATH 6236 6237 6238 6239 as_lineno_1=$LINENO 6240 as_lineno_2=$LINENO 6241 test "x$as_lineno_1" != "x$as_lineno_2" && 6242 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 6243 6244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6245 # uniformly replaced by the line number. The first 'sed' inserts a 6246 # line-number line after each line using $LINENO; the second 'sed' 6247 # does the real work. The second script uses 'N' to pair each 6248 # line-number line with the line containing $LINENO, and appends 6249 # trailing '-' during substitution so that $LINENO is not a special 6250 # case at line end. 6251 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6252 # scripts with optimization help from Paolo Bonzini. Blame Lee 6253 # E. McMahon (1931-1989) for sed's syntax. :-) 6254 sed -n ' 6255 p 6256 /[$]LINENO/= 6257 ' <$as_myself | 6258 sed ' 6259 s/[$]LINENO.*/&-/ 6260 t lineno 6261 b 6262 :lineno 6263 N 6264 :loop 6265 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 6266 t loop 6267 s/-\n.*// 6268 ' >$as_me.lineno && 6269 chmod +x "$as_me.lineno" || 6270 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 6271 { (exit 1); exit 1; }; } 6272 6273 # Don't try to exec as it changes $[0], causing all sort of problems 6274 # (the dirname of $[0] is not the place where we might find the 6275 # original and so on. Autoconf is especially sensitive to this). 6276 . "./$as_me.lineno" 6277 # Exit status is that of the last command. 6278 exit 6279} 6280 6281 6282if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6283 as_dirname=dirname 6284else 6285 as_dirname=false 6286fi 6287 6288ECHO_C= ECHO_N= ECHO_T= 6289case `echo -n x` in 6290-n*) 6291 case `echo 'x\c'` in 6292 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6293 *) ECHO_C='\c';; 6294 esac;; 6295*) 6296 ECHO_N='-n';; 6297esac 6298 6299if expr a : '\(a\)' >/dev/null 2>&1 && 6300 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6301 as_expr=expr 6302else 6303 as_expr=false 6304fi 6305 6306rm -f conf$$ conf$$.exe conf$$.file 6307if test -d conf$$.dir; then 6308 rm -f conf$$.dir/conf$$.file 6309else 6310 rm -f conf$$.dir 6311 mkdir conf$$.dir 6312fi 6313echo >conf$$.file 6314if ln -s conf$$.file conf$$ 2>/dev/null; then 6315 as_ln_s='ln -s' 6316 # ... but there are two gotchas: 6317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6319 # In both cases, we have to default to `cp -p'. 6320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6321 as_ln_s='cp -p' 6322elif ln conf$$.file conf$$ 2>/dev/null; then 6323 as_ln_s=ln 6324else 6325 as_ln_s='cp -p' 6326fi 6327rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6328rmdir conf$$.dir 2>/dev/null 6329 6330if mkdir -p . 2>/dev/null; then 6331 as_mkdir_p=: 6332else 6333 test -d ./-p && rmdir ./-p 6334 as_mkdir_p=false 6335fi 6336 6337if test -x / >/dev/null 2>&1; then 6338 as_test_x='test -x' 6339else 6340 if ls -dL / >/dev/null 2>&1; then 6341 as_ls_L_option=L 6342 else 6343 as_ls_L_option= 6344 fi 6345 as_test_x=' 6346 eval sh -c '\'' 6347 if test -d "$1"; then 6348 test -d "$1/."; 6349 else 6350 case $1 in 6351 -*)set "./$1";; 6352 esac; 6353 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 6354 ???[sx]*):;;*)false;;esac;fi 6355 '\'' sh 6356 ' 6357fi 6358as_executable_p=$as_test_x 6359 6360# Sed expression to map a string onto a valid CPP name. 6361as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6362 6363# Sed expression to map a string onto a valid variable name. 6364as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6365 6366 6367exec 6>&1 6368 6369# Save the log message, to keep $[0] and so on meaningful, and to 6370# report actual input values of CONFIG_FILES etc. instead of their 6371# values after options handling. 6372ac_log=" 6373This file was extended by $as_me, which was 6374generated by GNU Autoconf 2.61. Invocation command line was 6375 6376 CONFIG_FILES = $CONFIG_FILES 6377 CONFIG_HEADERS = $CONFIG_HEADERS 6378 CONFIG_LINKS = $CONFIG_LINKS 6379 CONFIG_COMMANDS = $CONFIG_COMMANDS 6380 $ $0 $@ 6381 6382on `(hostname || uname -n) 2>/dev/null | sed 1q` 6383" 6384 6385_ACEOF 6386 6387cat >>$CONFIG_STATUS <<_ACEOF 6388# Files that config.status was made for. 6389config_files="$ac_config_files" 6390config_headers="$ac_config_headers" 6391 6392_ACEOF 6393 6394cat >>$CONFIG_STATUS <<\_ACEOF 6395ac_cs_usage="\ 6396\`$as_me' instantiates files from templates according to the 6397current configuration. 6398 6399Usage: $0 [OPTIONS] [FILE]... 6400 6401 -h, --help print this help, then exit 6402 -V, --version print version number and configuration settings, then exit 6403 -q, --quiet do not print progress messages 6404 -d, --debug don't remove temporary files 6405 --recheck update $as_me by reconfiguring in the same conditions 6406 --file=FILE[:TEMPLATE] 6407 instantiate the configuration file FILE 6408 --header=FILE[:TEMPLATE] 6409 instantiate the configuration header FILE 6410 6411Configuration files: 6412$config_files 6413 6414Configuration headers: 6415$config_headers 6416 6417Report bugs to <bug-autoconf@gnu.org>." 6418 6419_ACEOF 6420cat >>$CONFIG_STATUS <<_ACEOF 6421ac_cs_version="\\ 6422config.status 6423configured by $0, generated by GNU Autoconf 2.61, 6424 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 6425 6426Copyright (C) 2006 Free Software Foundation, Inc. 6427This config.status script is free software; the Free Software Foundation 6428gives unlimited permission to copy, distribute and modify it." 6429 6430ac_pwd='$ac_pwd' 6431srcdir='$srcdir' 6432INSTALL='$INSTALL' 6433_ACEOF 6434 6435cat >>$CONFIG_STATUS <<\_ACEOF 6436# If no file are specified by the user, then we need to provide default 6437# value. By we need to know if files were specified by the user. 6438ac_need_defaults=: 6439while test $# != 0 6440do 6441 case $1 in 6442 --*=*) 6443 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6444 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6445 ac_shift=: 6446 ;; 6447 *) 6448 ac_option=$1 6449 ac_optarg=$2 6450 ac_shift=shift 6451 ;; 6452 esac 6453 6454 case $ac_option in 6455 # Handling of the options. 6456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6457 ac_cs_recheck=: ;; 6458 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6459 echo "$ac_cs_version"; exit ;; 6460 --debug | --debu | --deb | --de | --d | -d ) 6461 debug=: ;; 6462 --file | --fil | --fi | --f ) 6463 $ac_shift 6464 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 6465 ac_need_defaults=false;; 6466 --header | --heade | --head | --hea ) 6467 $ac_shift 6468 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 6469 ac_need_defaults=false;; 6470 --he | --h) 6471 # Conflict between --help and --header 6472 { echo "$as_me: error: ambiguous option: $1 6473Try \`$0 --help' for more information." >&2 6474 { (exit 1); exit 1; }; };; 6475 --help | --hel | -h ) 6476 echo "$ac_cs_usage"; exit ;; 6477 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6478 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6479 ac_cs_silent=: ;; 6480 6481 # This is an error. 6482 -*) { echo "$as_me: error: unrecognized option: $1 6483Try \`$0 --help' for more information." >&2 6484 { (exit 1); exit 1; }; } ;; 6485 6486 *) ac_config_targets="$ac_config_targets $1" 6487 ac_need_defaults=false ;; 6488 6489 esac 6490 shift 6491done 6492 6493ac_configure_extra_args= 6494 6495if $ac_cs_silent; then 6496 exec 6>/dev/null 6497 ac_configure_extra_args="$ac_configure_extra_args --silent" 6498fi 6499 6500_ACEOF 6501cat >>$CONFIG_STATUS <<_ACEOF 6502if \$ac_cs_recheck; then 6503 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6504 CONFIG_SHELL=$SHELL 6505 export CONFIG_SHELL 6506 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6507fi 6508 6509_ACEOF 6510cat >>$CONFIG_STATUS <<\_ACEOF 6511exec 5>>config.log 6512{ 6513 echo 6514 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6515## Running $as_me. ## 6516_ASBOX 6517 echo "$ac_log" 6518} >&5 6519 6520_ACEOF 6521cat >>$CONFIG_STATUS <<_ACEOF 6522_ACEOF 6523 6524cat >>$CONFIG_STATUS <<\_ACEOF 6525 6526# Handling of arguments. 6527for ac_config_target in $ac_config_targets 6528do 6529 case $ac_config_target in 6530 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6531 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6532 "libsprite/Makefile") CONFIG_FILES="$CONFIG_FILES libsprite/Makefile" ;; 6533 6534 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6535echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6536 { (exit 1); exit 1; }; };; 6537 esac 6538done 6539 6540 6541# If the user did not use the arguments to specify the items to instantiate, 6542# then the envvar interface is used. Set only those that are not. 6543# We use the long form for the default assignment because of an extremely 6544# bizarre bug on SunOS 4.1.3. 6545if $ac_need_defaults; then 6546 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6547 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6548fi 6549 6550# Have a temporary directory for convenience. Make it in the build tree 6551# simply because there is no reason against having it here, and in addition, 6552# creating and moving files from /tmp can sometimes cause problems. 6553# Hook for its removal unless debugging. 6554# Note that there is a small window in which the directory will not be cleaned: 6555# after its creation but before its name has been assigned to `$tmp'. 6556$debug || 6557{ 6558 tmp= 6559 trap 'exit_status=$? 6560 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6561' 0 6562 trap '{ (exit 1); exit 1; }' 1 2 13 15 6563} 6564# Create a (secure) tmp directory for tmp files. 6565 6566{ 6567 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6568 test -n "$tmp" && test -d "$tmp" 6569} || 6570{ 6571 tmp=./conf$$-$RANDOM 6572 (umask 077 && mkdir "$tmp") 6573} || 6574{ 6575 echo "$me: cannot create a temporary directory in ." >&2 6576 { (exit 1); exit 1; } 6577} 6578 6579# 6580# Set up the sed scripts for CONFIG_FILES section. 6581# 6582 6583# No need to generate the scripts if there are no CONFIG_FILES. 6584# This happens for instance when ./config.status config.h 6585if test -n "$CONFIG_FILES"; then 6586 6587_ACEOF 6588 6589 6590 6591ac_delim='%!_!# ' 6592for ac_last_try in false false false false false :; do 6593 cat >conf$$subs.sed <<_ACEOF 6594SHELL!$SHELL$ac_delim 6595PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 6596PACKAGE_NAME!$PACKAGE_NAME$ac_delim 6597PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 6598PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 6599PACKAGE_STRING!$PACKAGE_STRING$ac_delim 6600PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 6601exec_prefix!$exec_prefix$ac_delim 6602prefix!$prefix$ac_delim 6603program_transform_name!$program_transform_name$ac_delim 6604bindir!$bindir$ac_delim 6605sbindir!$sbindir$ac_delim 6606libexecdir!$libexecdir$ac_delim 6607datarootdir!$datarootdir$ac_delim 6608datadir!$datadir$ac_delim 6609sysconfdir!$sysconfdir$ac_delim 6610sharedstatedir!$sharedstatedir$ac_delim 6611localstatedir!$localstatedir$ac_delim 6612includedir!$includedir$ac_delim 6613oldincludedir!$oldincludedir$ac_delim 6614docdir!$docdir$ac_delim 6615infodir!$infodir$ac_delim 6616htmldir!$htmldir$ac_delim 6617dvidir!$dvidir$ac_delim 6618pdfdir!$pdfdir$ac_delim 6619psdir!$psdir$ac_delim 6620libdir!$libdir$ac_delim 6621localedir!$localedir$ac_delim 6622mandir!$mandir$ac_delim 6623DEFS!$DEFS$ac_delim 6624ECHO_C!$ECHO_C$ac_delim 6625ECHO_N!$ECHO_N$ac_delim 6626ECHO_T!$ECHO_T$ac_delim 6627LIBS!$LIBS$ac_delim 6628build_alias!$build_alias$ac_delim 6629host_alias!$host_alias$ac_delim 6630target_alias!$target_alias$ac_delim 6631build!$build$ac_delim 6632build_cpu!$build_cpu$ac_delim 6633build_vendor!$build_vendor$ac_delim 6634build_os!$build_os$ac_delim 6635host!$host$ac_delim 6636host_cpu!$host_cpu$ac_delim 6637host_vendor!$host_vendor$ac_delim 6638host_os!$host_os$ac_delim 6639CC!$CC$ac_delim 6640CFLAGS!$CFLAGS$ac_delim 6641LDFLAGS!$LDFLAGS$ac_delim 6642CPPFLAGS!$CPPFLAGS$ac_delim 6643ac_ct_CC!$ac_ct_CC$ac_delim 6644EXEEXT!$EXEEXT$ac_delim 6645OBJEXT!$OBJEXT$ac_delim 6646CPP!$CPP$ac_delim 6647INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 6648INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 6649INSTALL_DATA!$INSTALL_DATA$ac_delim 6650LN_S!$LN_S$ac_delim 6651SET_MAKE!$SET_MAKE$ac_delim 6652RANLIB!$RANLIB$ac_delim 6653XMKMF!$XMKMF$ac_delim 6654X_CFLAGS!$X_CFLAGS$ac_delim 6655X_PRE_LIBS!$X_PRE_LIBS$ac_delim 6656X_LIBS!$X_LIBS$ac_delim 6657X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 6658GREP!$GREP$ac_delim 6659EGREP!$EGREP$ac_delim 6660SOUNDSERVER!$SOUNDSERVER$ac_delim 6661SOUNDSRVDIR!$SOUNDSRVDIR$ac_delim 6662SOUNDDEV!$SOUNDDEV$ac_delim 6663SOUND!$SOUND$ac_delim 6664CREDITSFILE!$CREDITSFILE$ac_delim 6665LIBOBJS!$LIBOBJS$ac_delim 6666LTLIBOBJS!$LTLIBOBJS$ac_delim 6667_ACEOF 6668 6669 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then 6670 break 6671 elif $ac_last_try; then 6672 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6673echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6674 { (exit 1); exit 1; }; } 6675 else 6676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6677 fi 6678done 6679 6680ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 6681if test -n "$ac_eof"; then 6682 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 6683 ac_eof=`expr $ac_eof + 1` 6684fi 6685 6686cat >>$CONFIG_STATUS <<_ACEOF 6687cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 6688/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 6689_ACEOF 6690sed ' 6691s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 6692s/^/s,@/; s/!/@,|#_!!_#|/ 6693:n 6694t n 6695s/'"$ac_delim"'$/,g/; t 6696s/$/\\/; p 6697N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 6698' >>$CONFIG_STATUS <conf$$subs.sed 6699rm -f conf$$subs.sed 6700cat >>$CONFIG_STATUS <<_ACEOF 6701:end 6702s/|#_!!_#|//g 6703CEOF$ac_eof 6704_ACEOF 6705 6706 6707# VPATH may cause trouble with some makes, so we remove $(srcdir), 6708# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6709# trailing colons and then remove the whole line if VPATH becomes empty 6710# (actually we leave an empty line to preserve line numbers). 6711if test "x$srcdir" = x.; then 6712 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6713s/:*\$(srcdir):*/:/ 6714s/:*\${srcdir}:*/:/ 6715s/:*@srcdir@:*/:/ 6716s/^\([^=]*=[ ]*\):*/\1/ 6717s/:*$// 6718s/^[^=]*=[ ]*$// 6719}' 6720fi 6721 6722cat >>$CONFIG_STATUS <<\_ACEOF 6723fi # test -n "$CONFIG_FILES" 6724 6725 6726for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 6727do 6728 case $ac_tag in 6729 :[FHLC]) ac_mode=$ac_tag; continue;; 6730 esac 6731 case $ac_mode$ac_tag in 6732 :[FHL]*:*);; 6733 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 6734echo "$as_me: error: Invalid tag $ac_tag." >&2;} 6735 { (exit 1); exit 1; }; };; 6736 :[FH]-) ac_tag=-:-;; 6737 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6738 esac 6739 ac_save_IFS=$IFS 6740 IFS=: 6741 set x $ac_tag 6742 IFS=$ac_save_IFS 6743 shift 6744 ac_file=$1 6745 shift 6746 6747 case $ac_mode in 6748 :L) ac_source=$1;; 6749 :[FH]) 6750 ac_file_inputs= 6751 for ac_f 6752 do 6753 case $ac_f in 6754 -) ac_f="$tmp/stdin";; 6755 *) # Look for the file first in the build tree, then in the source tree 6756 # (if the path is not absolute). The absolute path cannot be DOS-style, 6757 # because $ac_f cannot contain `:'. 6758 test -f "$ac_f" || 6759 case $ac_f in 6760 [\\/$]*) false;; 6761 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6762 esac || 6763 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 6764echo "$as_me: error: cannot find input file: $ac_f" >&2;} 6765 { (exit 1); exit 1; }; };; 6766 esac 6767 ac_file_inputs="$ac_file_inputs $ac_f" 6768 done 6769 6770 # Let's still pretend it is `configure' which instantiates (i.e., don't 6771 # use $as_me), people would be surprised to read: 6772 # /* config.h. Generated by config.status. */ 6773 configure_input="Generated from "`IFS=: 6774 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 6775 if test x"$ac_file" != x-; then 6776 configure_input="$ac_file. $configure_input" 6777 { echo "$as_me:$LINENO: creating $ac_file" >&5 6778echo "$as_me: creating $ac_file" >&6;} 6779 fi 6780 6781 case $ac_tag in 6782 *:-:* | *:-) cat >"$tmp/stdin";; 6783 esac 6784 ;; 6785 esac 6786 6787 ac_dir=`$as_dirname -- "$ac_file" || 6788$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6789 X"$ac_file" : 'X\(//\)[^/]' \| \ 6790 X"$ac_file" : 'X\(//\)$' \| \ 6791 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6792echo X"$ac_file" | 6793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6794 s//\1/ 6795 q 6796 } 6797 /^X\(\/\/\)[^/].*/{ 6798 s//\1/ 6799 q 6800 } 6801 /^X\(\/\/\)$/{ 6802 s//\1/ 6803 q 6804 } 6805 /^X\(\/\).*/{ 6806 s//\1/ 6807 q 6808 } 6809 s/.*/./; q'` 6810 { as_dir="$ac_dir" 6811 case $as_dir in #( 6812 -*) as_dir=./$as_dir;; 6813 esac 6814 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 6815 as_dirs= 6816 while :; do 6817 case $as_dir in #( 6818 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 6819 *) as_qdir=$as_dir;; 6820 esac 6821 as_dirs="'$as_qdir' $as_dirs" 6822 as_dir=`$as_dirname -- "$as_dir" || 6823$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6824 X"$as_dir" : 'X\(//\)[^/]' \| \ 6825 X"$as_dir" : 'X\(//\)$' \| \ 6826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 6827echo X"$as_dir" | 6828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6829 s//\1/ 6830 q 6831 } 6832 /^X\(\/\/\)[^/].*/{ 6833 s//\1/ 6834 q 6835 } 6836 /^X\(\/\/\)$/{ 6837 s//\1/ 6838 q 6839 } 6840 /^X\(\/\).*/{ 6841 s//\1/ 6842 q 6843 } 6844 s/.*/./; q'` 6845 test -d "$as_dir" && break 6846 done 6847 test -z "$as_dirs" || eval "mkdir $as_dirs" 6848 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 6849echo "$as_me: error: cannot create directory $as_dir" >&2;} 6850 { (exit 1); exit 1; }; }; } 6851 ac_builddir=. 6852 6853case "$ac_dir" in 6854.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6855*) 6856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 6857 # A ".." for each directory in $ac_dir_suffix. 6858 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 6859 case $ac_top_builddir_sub in 6860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6862 esac ;; 6863esac 6864ac_abs_top_builddir=$ac_pwd 6865ac_abs_builddir=$ac_pwd$ac_dir_suffix 6866# for backward compatibility: 6867ac_top_builddir=$ac_top_build_prefix 6868 6869case $srcdir in 6870 .) # We are building in place. 6871 ac_srcdir=. 6872 ac_top_srcdir=$ac_top_builddir_sub 6873 ac_abs_top_srcdir=$ac_pwd ;; 6874 [\\/]* | ?:[\\/]* ) # Absolute name. 6875 ac_srcdir=$srcdir$ac_dir_suffix; 6876 ac_top_srcdir=$srcdir 6877 ac_abs_top_srcdir=$srcdir ;; 6878 *) # Relative name. 6879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6880 ac_top_srcdir=$ac_top_build_prefix$srcdir 6881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6882esac 6883ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6884 6885 6886 case $ac_mode in 6887 :F) 6888 # 6889 # CONFIG_FILE 6890 # 6891 6892 case $INSTALL in 6893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6894 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6895 esac 6896_ACEOF 6897 6898cat >>$CONFIG_STATUS <<\_ACEOF 6899# If the template does not know about datarootdir, expand it. 6900# FIXME: This hack should be removed a few years after 2.60. 6901ac_datarootdir_hack=; ac_datarootdir_seen= 6902 6903case `sed -n '/datarootdir/ { 6904 p 6905 q 6906} 6907/@datadir@/p 6908/@docdir@/p 6909/@infodir@/p 6910/@localedir@/p 6911/@mandir@/p 6912' $ac_file_inputs` in 6913*datarootdir*) ac_datarootdir_seen=yes;; 6914*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6915 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6916echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6917_ACEOF 6918cat >>$CONFIG_STATUS <<_ACEOF 6919 ac_datarootdir_hack=' 6920 s&@datadir@&$datadir&g 6921 s&@docdir@&$docdir&g 6922 s&@infodir@&$infodir&g 6923 s&@localedir@&$localedir&g 6924 s&@mandir@&$mandir&g 6925 s&\\\${datarootdir}&$datarootdir&g' ;; 6926esac 6927_ACEOF 6928 6929# Neutralize VPATH when `$srcdir' = `.'. 6930# Shell code in configure.ac might set extrasub. 6931# FIXME: do we really want to maintain this feature? 6932cat >>$CONFIG_STATUS <<_ACEOF 6933 sed "$ac_vpsub 6934$extrasub 6935_ACEOF 6936cat >>$CONFIG_STATUS <<\_ACEOF 6937:t 6938/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6939s&@configure_input@&$configure_input&;t t 6940s&@top_builddir@&$ac_top_builddir_sub&;t t 6941s&@srcdir@&$ac_srcdir&;t t 6942s&@abs_srcdir@&$ac_abs_srcdir&;t t 6943s&@top_srcdir@&$ac_top_srcdir&;t t 6944s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6945s&@builddir@&$ac_builddir&;t t 6946s&@abs_builddir@&$ac_abs_builddir&;t t 6947s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6948s&@INSTALL@&$ac_INSTALL&;t t 6949$ac_datarootdir_hack 6950" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 6951 6952test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6953 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6955 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6956which seems to be undefined. Please make sure it is defined." >&5 6957echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6958which seems to be undefined. Please make sure it is defined." >&2;} 6959 6960 rm -f "$tmp/stdin" 6961 case $ac_file in 6962 -) cat "$tmp/out"; rm -f "$tmp/out";; 6963 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 6964 esac 6965 ;; 6966 :H) 6967 # 6968 # CONFIG_HEADER 6969 # 6970_ACEOF 6971 6972# Transform confdefs.h into a sed script `conftest.defines', that 6973# substitutes the proper values into config.h.in to produce config.h. 6974rm -f conftest.defines conftest.tail 6975# First, append a space to every undef/define line, to ease matching. 6976echo 's/$/ /' >conftest.defines 6977# Then, protect against being on the right side of a sed subst, or in 6978# an unquoted here document, in config.status. If some macros were 6979# called several times there might be several #defines for the same 6980# symbol, which is useless. But do not sort them, since the last 6981# AC_DEFINE must be honored. 6982ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6983# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 6984# NAME is the cpp macro being defined, VALUE is the value it is being given. 6985# PARAMS is the parameter list in the macro definition--in most cases, it's 6986# just an empty string. 6987ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 6988ac_dB='\\)[ (].*,\\1define\\2' 6989ac_dC=' ' 6990ac_dD=' ,' 6991 6992uniq confdefs.h | 6993 sed -n ' 6994 t rset 6995 :rset 6996 s/^[ ]*#[ ]*define[ ][ ]*// 6997 t ok 6998 d 6999 :ok 7000 s/[\\&,]/\\&/g 7001 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 7002 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 7003 ' >>conftest.defines 7004 7005# Remove the space that was appended to ease matching. 7006# Then replace #undef with comments. This is necessary, for 7007# example, in the case of _POSIX_SOURCE, which is predefined and required 7008# on some systems where configure will not decide to define it. 7009# (The regexp can be short, since the line contains either #define or #undef.) 7010echo 's/ $// 7011s,^[ #]*u.*,/* & */,' >>conftest.defines 7012 7013# Break up conftest.defines: 7014ac_max_sed_lines=50 7015 7016# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 7017# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 7018# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 7019# et cetera. 7020ac_in='$ac_file_inputs' 7021ac_out='"$tmp/out1"' 7022ac_nxt='"$tmp/out2"' 7023 7024while : 7025do 7026 # Write a here document: 7027 cat >>$CONFIG_STATUS <<_ACEOF 7028 # First, check the format of the line: 7029 cat >"\$tmp/defines.sed" <<\\CEOF 7030/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 7031/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 7032b 7033:def 7034_ACEOF 7035 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 7036 echo 'CEOF 7037 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 7038 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 7039 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 7040 grep . conftest.tail >/dev/null || break 7041 rm -f conftest.defines 7042 mv conftest.tail conftest.defines 7043done 7044rm -f conftest.defines conftest.tail 7045 7046echo "ac_result=$ac_in" >>$CONFIG_STATUS 7047cat >>$CONFIG_STATUS <<\_ACEOF 7048 if test x"$ac_file" != x-; then 7049 echo "/* $configure_input */" >"$tmp/config.h" 7050 cat "$ac_result" >>"$tmp/config.h" 7051 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 7052 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 7053echo "$as_me: $ac_file is unchanged" >&6;} 7054 else 7055 rm -f $ac_file 7056 mv "$tmp/config.h" $ac_file 7057 fi 7058 else 7059 echo "/* $configure_input */" 7060 cat "$ac_result" 7061 fi 7062 rm -f "$tmp/out12" 7063 ;; 7064 7065 7066 esac 7067 7068done # for ac_tag 7069 7070 7071{ (exit 0); exit 0; } 7072_ACEOF 7073chmod +x $CONFIG_STATUS 7074ac_clean_files=$ac_clean_files_save 7075 7076 7077# configure is writing to config.log, and then calls config.status. 7078# config.status does its own redirection, appending to config.log. 7079# Unfortunately, on DOS this fails, as config.log is still kept open 7080# by configure, so config.status won't be able to write to it; its 7081# output is simply discarded. So we exec the FD to /dev/null, 7082# effectively closing config.log, so it can be properly (re)opened and 7083# appended to by config.status. When coming back to configure, we 7084# need to make the FD available again. 7085if test "$no_create" != yes; then 7086 ac_cs_success=: 7087 ac_config_status_args= 7088 test "$silent" = yes && 7089 ac_config_status_args="$ac_config_status_args --quiet" 7090 exec 5>/dev/null 7091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7092 exec 5>>config.log 7093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7094 # would make configure fail if this is the last instruction. 7095 $ac_cs_success || { (exit 1); exit 1; } 7096fi 7097 7098 7099