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