1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.57. 4# 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 6# Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be Bourne compatible 14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 15 emulate sh 16 NULLCMD=: 17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18 # is contrary to our usage. Disable this feature. 19 alias -g '${1+"$@"}'='"$@"' 20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 21 set -o posix 22fi 23 24# Support unset when possible. 25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 as_mkdir_p=false 222fi 223 224as_executable_p="test -f" 225 226# Sed expression to map a string onto a valid CPP name. 227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 228 229# Sed expression to map a string onto a valid variable name. 230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 231 232 233# IFS 234# We need space, tab and new line, in precisely that order. 235as_nl=' 236' 237IFS=" $as_nl" 238 239# CDPATH. 240$as_unset CDPATH 241 242 243# Name of the host. 244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# so uname gets run too. 246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247 248exec 6>&1 249 250# 251# Initializations. 252# 253ac_default_prefix=/usr/local 254ac_config_libobj_dir=. 255cross_compiling=no 256subdirs= 257MFLAGS= 258MAKEFLAGS= 259SHELL=${CONFIG_SHELL-/bin/sh} 260 261# Maximum number of lines to put in a shell here document. 262# This variable seems obsolete. It should probably be removed, and 263# only ac_max_sed_lines should be used. 264: ${ac_max_here_lines=38} 265 266# Identity of this package. 267PACKAGE_NAME= 268PACKAGE_TARNAME= 269PACKAGE_VERSION= 270PACKAGE_STRING= 271PACKAGE_BUGREPORT= 272 273ac_unique_file="src/torrent.c" 274# Factoring default headers for most tests. 275ac_includes_default="\ 276#include <stdio.h> 277#if HAVE_SYS_TYPES_H 278# include <sys/types.h> 279#endif 280#if HAVE_SYS_STAT_H 281# include <sys/stat.h> 282#endif 283#if STDC_HEADERS 284# include <stdlib.h> 285# include <stddef.h> 286#else 287# if HAVE_STDLIB_H 288# include <stdlib.h> 289# endif 290#endif 291#if HAVE_STRING_H 292# if !STDC_HEADERS && HAVE_MEMORY_H 293# include <memory.h> 294# endif 295# include <string.h> 296#endif 297#if HAVE_STRINGS_H 298# include <strings.h> 299#endif 300#if HAVE_INTTYPES_H 301# include <inttypes.h> 302#else 303# if HAVE_STDINT_H 304# include <stdint.h> 305# endif 306#endif 307#if HAVE_UNISTD_H 308# include <unistd.h> 309#endif" 310 311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS SDL_CONFIG SDL_CFLAGS SDL_LIBS LTLIBOBJS' 312ac_subst_files='' 313 314# Initialize some variables set by options. 315ac_init_help= 316ac_init_version=false 317# The variables have the same names as the options, with 318# dashes changed to underlines. 319cache_file=/dev/null 320exec_prefix=NONE 321no_create= 322no_recursion= 323prefix=NONE 324program_prefix=NONE 325program_suffix=NONE 326program_transform_name=s,x,x, 327silent= 328site= 329srcdir= 330verbose= 331x_includes=NONE 332x_libraries=NONE 333 334# Installation directory options. 335# These are left unexpanded so users can "make install exec_prefix=/foo" 336# and all the variables that are supposed to be based on exec_prefix 337# by default will actually change. 338# Use braces instead of parens because sh, perl, etc. also accept them. 339bindir='${exec_prefix}/bin' 340sbindir='${exec_prefix}/sbin' 341libexecdir='${exec_prefix}/libexec' 342datadir='${prefix}/share' 343sysconfdir='${prefix}/etc' 344sharedstatedir='${prefix}/com' 345localstatedir='${prefix}/var' 346libdir='${exec_prefix}/lib' 347includedir='${prefix}/include' 348oldincludedir='/usr/include' 349infodir='${prefix}/info' 350mandir='${prefix}/man' 351 352ac_prev= 353for ac_option 354do 355 # If the previous option needs an argument, assign it. 356 if test -n "$ac_prev"; then 357 eval "$ac_prev=\$ac_option" 358 ac_prev= 359 continue 360 fi 361 362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 363 364 # Accept the important Cygnus configure options, so we can diagnose typos. 365 366 case $ac_option in 367 368 -bindir | --bindir | --bindi | --bind | --bin | --bi) 369 ac_prev=bindir ;; 370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 371 bindir=$ac_optarg ;; 372 373 -build | --build | --buil | --bui | --bu) 374 ac_prev=build_alias ;; 375 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 376 build_alias=$ac_optarg ;; 377 378 -cache-file | --cache-file | --cache-fil | --cache-fi \ 379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 380 ac_prev=cache_file ;; 381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 383 cache_file=$ac_optarg ;; 384 385 --config-cache | -C) 386 cache_file=config.cache ;; 387 388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 389 ac_prev=datadir ;; 390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 391 | --da=*) 392 datadir=$ac_optarg ;; 393 394 -disable-* | --disable-*) 395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 396 # Reject names that are not valid shell variable names. 397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 399 { (exit 1); exit 1; }; } 400 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 401 eval "enable_$ac_feature=no" ;; 402 403 -enable-* | --enable-*) 404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 405 # Reject names that are not valid shell variable names. 406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 408 { (exit 1); exit 1; }; } 409 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 410 case $ac_option in 411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 412 *) ac_optarg=yes ;; 413 esac 414 eval "enable_$ac_feature='$ac_optarg'" ;; 415 416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 418 | --exec | --exe | --ex) 419 ac_prev=exec_prefix ;; 420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 422 | --exec=* | --exe=* | --ex=*) 423 exec_prefix=$ac_optarg ;; 424 425 -gas | --gas | --ga | --g) 426 # Obsolete; use --with-gas. 427 with_gas=yes ;; 428 429 -help | --help | --hel | --he | -h) 430 ac_init_help=long ;; 431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 432 ac_init_help=recursive ;; 433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 434 ac_init_help=short ;; 435 436 -host | --host | --hos | --ho) 437 ac_prev=host_alias ;; 438 -host=* | --host=* | --hos=* | --ho=*) 439 host_alias=$ac_optarg ;; 440 441 -includedir | --includedir | --includedi | --included | --include \ 442 | --includ | --inclu | --incl | --inc) 443 ac_prev=includedir ;; 444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 445 | --includ=* | --inclu=* | --incl=* | --inc=*) 446 includedir=$ac_optarg ;; 447 448 -infodir | --infodir | --infodi | --infod | --info | --inf) 449 ac_prev=infodir ;; 450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 451 infodir=$ac_optarg ;; 452 453 -libdir | --libdir | --libdi | --libd) 454 ac_prev=libdir ;; 455 -libdir=* | --libdir=* | --libdi=* | --libd=*) 456 libdir=$ac_optarg ;; 457 458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 459 | --libexe | --libex | --libe) 460 ac_prev=libexecdir ;; 461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 462 | --libexe=* | --libex=* | --libe=*) 463 libexecdir=$ac_optarg ;; 464 465 -localstatedir | --localstatedir | --localstatedi | --localstated \ 466 | --localstate | --localstat | --localsta | --localst \ 467 | --locals | --local | --loca | --loc | --lo) 468 ac_prev=localstatedir ;; 469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 472 localstatedir=$ac_optarg ;; 473 474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 475 ac_prev=mandir ;; 476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 477 mandir=$ac_optarg ;; 478 479 -nfp | --nfp | --nf) 480 # Obsolete; use --without-fp. 481 with_fp=no ;; 482 483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 484 | --no-cr | --no-c | -n) 485 no_create=yes ;; 486 487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 489 no_recursion=yes ;; 490 491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 493 | --oldin | --oldi | --old | --ol | --o) 494 ac_prev=oldincludedir ;; 495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 498 oldincludedir=$ac_optarg ;; 499 500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 501 ac_prev=prefix ;; 502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 503 prefix=$ac_optarg ;; 504 505 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 506 | --program-pre | --program-pr | --program-p) 507 ac_prev=program_prefix ;; 508 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 510 program_prefix=$ac_optarg ;; 511 512 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 513 | --program-suf | --program-su | --program-s) 514 ac_prev=program_suffix ;; 515 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 517 program_suffix=$ac_optarg ;; 518 519 -program-transform-name | --program-transform-name \ 520 | --program-transform-nam | --program-transform-na \ 521 | --program-transform-n | --program-transform- \ 522 | --program-transform | --program-transfor \ 523 | --program-transfo | --program-transf \ 524 | --program-trans | --program-tran \ 525 | --progr-tra | --program-tr | --program-t) 526 ac_prev=program_transform_name ;; 527 -program-transform-name=* | --program-transform-name=* \ 528 | --program-transform-nam=* | --program-transform-na=* \ 529 | --program-transform-n=* | --program-transform-=* \ 530 | --program-transform=* | --program-transfor=* \ 531 | --program-transfo=* | --program-transf=* \ 532 | --program-trans=* | --program-tran=* \ 533 | --progr-tra=* | --program-tr=* | --program-t=*) 534 program_transform_name=$ac_optarg ;; 535 536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 537 | -silent | --silent | --silen | --sile | --sil) 538 silent=yes ;; 539 540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 541 ac_prev=sbindir ;; 542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 543 | --sbi=* | --sb=*) 544 sbindir=$ac_optarg ;; 545 546 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 548 | --sharedst | --shareds | --shared | --share | --shar \ 549 | --sha | --sh) 550 ac_prev=sharedstatedir ;; 551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 554 | --sha=* | --sh=*) 555 sharedstatedir=$ac_optarg ;; 556 557 -site | --site | --sit) 558 ac_prev=site ;; 559 -site=* | --site=* | --sit=*) 560 site=$ac_optarg ;; 561 562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 563 ac_prev=srcdir ;; 564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 565 srcdir=$ac_optarg ;; 566 567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 568 | --syscon | --sysco | --sysc | --sys | --sy) 569 ac_prev=sysconfdir ;; 570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 572 sysconfdir=$ac_optarg ;; 573 574 -target | --target | --targe | --targ | --tar | --ta | --t) 575 ac_prev=target_alias ;; 576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 577 target_alias=$ac_optarg ;; 578 579 -v | -verbose | --verbose | --verbos | --verbo | --verb) 580 verbose=yes ;; 581 582 -version | --version | --versio | --versi | --vers | -V) 583 ac_init_version=: ;; 584 585 -with-* | --with-*) 586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 587 # Reject names that are not valid shell variable names. 588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 589 { echo "$as_me: error: invalid package name: $ac_package" >&2 590 { (exit 1); exit 1; }; } 591 ac_package=`echo $ac_package| sed 's/-/_/g'` 592 case $ac_option in 593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 594 *) ac_optarg=yes ;; 595 esac 596 eval "with_$ac_package='$ac_optarg'" ;; 597 598 -without-* | --without-*) 599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 600 # Reject names that are not valid shell variable names. 601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 602 { echo "$as_me: error: invalid package name: $ac_package" >&2 603 { (exit 1); exit 1; }; } 604 ac_package=`echo $ac_package | sed 's/-/_/g'` 605 eval "with_$ac_package=no" ;; 606 607 --x) 608 # Obsolete; use --with-x. 609 with_x=yes ;; 610 611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 612 | --x-incl | --x-inc | --x-in | --x-i) 613 ac_prev=x_includes ;; 614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 616 x_includes=$ac_optarg ;; 617 618 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 620 ac_prev=x_libraries ;; 621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 623 x_libraries=$ac_optarg ;; 624 625 -*) { echo "$as_me: error: unrecognized option: $ac_option 626Try \`$0 --help' for more information." >&2 627 { (exit 1); exit 1; }; } 628 ;; 629 630 *=*) 631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 632 # Reject names that are not valid shell variable names. 633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 635 { (exit 1); exit 1; }; } 636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 637 eval "$ac_envvar='$ac_optarg'" 638 export $ac_envvar ;; 639 640 *) 641 # FIXME: should be removed in autoconf 3.0. 642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 646 ;; 647 648 esac 649done 650 651if test -n "$ac_prev"; then 652 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 653 { echo "$as_me: error: missing argument to $ac_option" >&2 654 { (exit 1); exit 1; }; } 655fi 656 657# Be sure to have absolute paths. 658for ac_var in exec_prefix prefix 659do 660 eval ac_val=$`echo $ac_var` 661 case $ac_val in 662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 664 { (exit 1); exit 1; }; };; 665 esac 666done 667 668# Be sure to have absolute paths. 669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 670 localstatedir libdir includedir oldincludedir infodir mandir 671do 672 eval ac_val=$`echo $ac_var` 673 case $ac_val in 674 [\\/$]* | ?:[\\/]* ) ;; 675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 676 { (exit 1); exit 1; }; };; 677 esac 678done 679 680# There might be people who depend on the old broken behavior: `$host' 681# used to hold the argument of --host etc. 682# FIXME: To remove some day. 683build=$build_alias 684host=$host_alias 685target=$target_alias 686 687# FIXME: To remove some day. 688if test "x$host_alias" != x; then 689 if test "x$build_alias" = x; then 690 cross_compiling=maybe 691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 692 If a cross compiler is detected then cross compile mode will be used." >&2 693 elif test "x$build_alias" != "x$host_alias"; then 694 cross_compiling=yes 695 fi 696fi 697 698ac_tool_prefix= 699test -n "$host_alias" && ac_tool_prefix=$host_alias- 700 701test "$silent" = yes && exec 6>/dev/null 702 703 704# Find the source files, if location was not specified. 705if test -z "$srcdir"; then 706 ac_srcdir_defaulted=yes 707 # Try the directory containing this script, then its parent. 708 ac_confdir=`(dirname "$0") 2>/dev/null || 709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 710 X"$0" : 'X\(//\)[^/]' \| \ 711 X"$0" : 'X\(//\)$' \| \ 712 X"$0" : 'X\(/\)' \| \ 713 . : '\(.\)' 2>/dev/null || 714echo X"$0" | 715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 716 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 717 /^X\(\/\/\)$/{ s//\1/; q; } 718 /^X\(\/\).*/{ s//\1/; q; } 719 s/.*/./; q'` 720 srcdir=$ac_confdir 721 if test ! -r $srcdir/$ac_unique_file; then 722 srcdir=.. 723 fi 724else 725 ac_srcdir_defaulted=no 726fi 727if test ! -r $srcdir/$ac_unique_file; then 728 if test "$ac_srcdir_defaulted" = yes; then 729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 730 { (exit 1); exit 1; }; } 731 else 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 733 { (exit 1); exit 1; }; } 734 fi 735fi 736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 738 { (exit 1); exit 1; }; } 739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 740ac_env_build_alias_set=${build_alias+set} 741ac_env_build_alias_value=$build_alias 742ac_cv_env_build_alias_set=${build_alias+set} 743ac_cv_env_build_alias_value=$build_alias 744ac_env_host_alias_set=${host_alias+set} 745ac_env_host_alias_value=$host_alias 746ac_cv_env_host_alias_set=${host_alias+set} 747ac_cv_env_host_alias_value=$host_alias 748ac_env_target_alias_set=${target_alias+set} 749ac_env_target_alias_value=$target_alias 750ac_cv_env_target_alias_set=${target_alias+set} 751ac_cv_env_target_alias_value=$target_alias 752ac_env_CC_set=${CC+set} 753ac_env_CC_value=$CC 754ac_cv_env_CC_set=${CC+set} 755ac_cv_env_CC_value=$CC 756ac_env_CFLAGS_set=${CFLAGS+set} 757ac_env_CFLAGS_value=$CFLAGS 758ac_cv_env_CFLAGS_set=${CFLAGS+set} 759ac_cv_env_CFLAGS_value=$CFLAGS 760ac_env_LDFLAGS_set=${LDFLAGS+set} 761ac_env_LDFLAGS_value=$LDFLAGS 762ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 763ac_cv_env_LDFLAGS_value=$LDFLAGS 764ac_env_CPPFLAGS_set=${CPPFLAGS+set} 765ac_env_CPPFLAGS_value=$CPPFLAGS 766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 767ac_cv_env_CPPFLAGS_value=$CPPFLAGS 768ac_env_CPP_set=${CPP+set} 769ac_env_CPP_value=$CPP 770ac_cv_env_CPP_set=${CPP+set} 771ac_cv_env_CPP_value=$CPP 772 773# 774# Report the --help message. 775# 776if test "$ac_init_help" = "long"; then 777 # Omit some internal or obsolete options to make the list less imposing. 778 # This message is too long to be a string in the A/UX 3.1 sh. 779 cat <<_ACEOF 780\`configure' configures this package to adapt to many kinds of systems. 781 782Usage: $0 [OPTION]... [VAR=VALUE]... 783 784To assign environment variables (e.g., CC, CFLAGS...), specify them as 785VAR=VALUE. See below for descriptions of some of the useful variables. 786 787Defaults for the options are specified in brackets. 788 789Configuration: 790 -h, --help display this help and exit 791 --help=short display options specific to this package 792 --help=recursive display the short help of all the included packages 793 -V, --version display version information and exit 794 -q, --quiet, --silent do not print \`checking...' messages 795 --cache-file=FILE cache test results in FILE [disabled] 796 -C, --config-cache alias for \`--cache-file=config.cache' 797 -n, --no-create do not create output files 798 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 799 800_ACEOF 801 802 cat <<_ACEOF 803Installation directories: 804 --prefix=PREFIX install architecture-independent files in PREFIX 805 [$ac_default_prefix] 806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 807 [PREFIX] 808 809By default, \`make install' will install all the files in 810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 811an installation prefix other than \`$ac_default_prefix' using \`--prefix', 812for instance \`--prefix=\$HOME'. 813 814For better control, use the options below. 815 816Fine tuning of the installation directories: 817 --bindir=DIR user executables [EPREFIX/bin] 818 --sbindir=DIR system admin executables [EPREFIX/sbin] 819 --libexecdir=DIR program executables [EPREFIX/libexec] 820 --datadir=DIR read-only architecture-independent data [PREFIX/share] 821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 823 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 824 --libdir=DIR object code libraries [EPREFIX/lib] 825 --includedir=DIR C header files [PREFIX/include] 826 --oldincludedir=DIR C header files for non-gcc [/usr/include] 827 --infodir=DIR info documentation [PREFIX/info] 828 --mandir=DIR man documentation [PREFIX/man] 829_ACEOF 830 831 cat <<\_ACEOF 832 833Program names: 834 --program-prefix=PREFIX prepend PREFIX to installed program names 835 --program-suffix=SUFFIX append SUFFIX to installed program names 836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 837 838System types: 839 --build=BUILD configure for building on BUILD [guessed] 840 --host=HOST cross-compile to build programs to run on HOST [BUILD] 841 --target=TARGET configure for building compilers for TARGET [HOST] 842_ACEOF 843fi 844 845if test -n "$ac_init_help"; then 846 847 cat <<\_ACEOF 848 849Optional Features: 850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 852 --disable-dependency-tracking Speeds up one-time builds 853 --enable-dependency-tracking Do not reject slow dependency extractors 854 --disable-sdltest Do not try to compile and run a test SDL program 855 856Optional Packages: 857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 859 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 860 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 861 862Some influential environment variables: 863 CC C compiler command 864 CFLAGS C compiler flags 865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 866 nonstandard directory <lib dir> 867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 868 headers in a nonstandard directory <include dir> 869 CPP C preprocessor 870 871Use these variables to override the choices made by `configure' or to help 872it to find libraries and programs with nonstandard names/locations. 873 874_ACEOF 875fi 876 877if test "$ac_init_help" = "recursive"; then 878 # If there are subdirs, report their specific --help. 879 ac_popdir=`pwd` 880 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 881 test -d $ac_dir || continue 882 ac_builddir=. 883 884if test "$ac_dir" != .; then 885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 886 # A "../" for each directory in $ac_dir_suffix. 887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 888else 889 ac_dir_suffix= ac_top_builddir= 890fi 891 892case $srcdir in 893 .) # No --srcdir option. We are building in place. 894 ac_srcdir=. 895 if test -z "$ac_top_builddir"; then 896 ac_top_srcdir=. 897 else 898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 899 fi ;; 900 [\\/]* | ?:[\\/]* ) # Absolute path. 901 ac_srcdir=$srcdir$ac_dir_suffix; 902 ac_top_srcdir=$srcdir ;; 903 *) # Relative path. 904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 905 ac_top_srcdir=$ac_top_builddir$srcdir ;; 906esac 907# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 908# absolute. 909ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 910ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 911ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 912ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 913 914 cd $ac_dir 915 # Check for guested configure; otherwise get Cygnus style configure. 916 if test -f $ac_srcdir/configure.gnu; then 917 echo 918 $SHELL $ac_srcdir/configure.gnu --help=recursive 919 elif test -f $ac_srcdir/configure; then 920 echo 921 $SHELL $ac_srcdir/configure --help=recursive 922 elif test -f $ac_srcdir/configure.ac || 923 test -f $ac_srcdir/configure.in; then 924 echo 925 $ac_configure --help 926 else 927 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 928 fi 929 cd $ac_popdir 930 done 931fi 932 933test -n "$ac_init_help" && exit 0 934if $ac_init_version; then 935 cat <<\_ACEOF 936 937Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 938Free Software Foundation, Inc. 939This configure script is free software; the Free Software Foundation 940gives unlimited permission to copy, distribute and modify it. 941_ACEOF 942 exit 0 943fi 944exec 5>config.log 945cat >&5 <<_ACEOF 946This file contains any messages produced by compilers while 947running configure, to aid debugging if configure makes a mistake. 948 949It was created by $as_me, which was 950generated by GNU Autoconf 2.57. Invocation command line was 951 952 $ $0 $@ 953 954_ACEOF 955{ 956cat <<_ASUNAME 957## --------- ## 958## Platform. ## 959## --------- ## 960 961hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 962uname -m = `(uname -m) 2>/dev/null || echo unknown` 963uname -r = `(uname -r) 2>/dev/null || echo unknown` 964uname -s = `(uname -s) 2>/dev/null || echo unknown` 965uname -v = `(uname -v) 2>/dev/null || echo unknown` 966 967/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 968/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 969 970/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 971/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 972/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 973hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 974/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 975/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 976/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 977 978_ASUNAME 979 980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 981for as_dir in $PATH 982do 983 IFS=$as_save_IFS 984 test -z "$as_dir" && as_dir=. 985 echo "PATH: $as_dir" 986done 987 988} >&5 989 990cat >&5 <<_ACEOF 991 992 993## ----------- ## 994## Core tests. ## 995## ----------- ## 996 997_ACEOF 998 999 1000# Keep a trace of the command line. 1001# Strip out --no-create and --no-recursion so they do not pile up. 1002# Strip out --silent because we don't want to record it for future runs. 1003# Also quote any args containing shell meta-characters. 1004# Make two passes to allow for proper duplicate-argument suppression. 1005ac_configure_args= 1006ac_configure_args0= 1007ac_configure_args1= 1008ac_sep= 1009ac_must_keep_next=false 1010for ac_pass in 1 2 1011do 1012 for ac_arg 1013 do 1014 case $ac_arg in 1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1017 | -silent | --silent | --silen | --sile | --sil) 1018 continue ;; 1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1021 esac 1022 case $ac_pass in 1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1024 2) 1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1026 if test $ac_must_keep_next = true; then 1027 ac_must_keep_next=false # Got value, back to normal. 1028 else 1029 case $ac_arg in 1030 *=* | --config-cache | -C | -disable-* | --disable-* \ 1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1033 | -with-* | --with-* | -without-* | --without-* | --x) 1034 case "$ac_configure_args0 " in 1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1036 esac 1037 ;; 1038 -* ) ac_must_keep_next=true ;; 1039 esac 1040 fi 1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1042 # Get rid of the leading space. 1043 ac_sep=" " 1044 ;; 1045 esac 1046 done 1047done 1048$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1049$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1050 1051# When interrupted or exit'd, cleanup temporary files, and complete 1052# config.log. We remove comments because anyway the quotes in there 1053# would cause problems or look ugly. 1054# WARNING: Be sure not to use single quotes in there, as some shells, 1055# such as our DU 5.0 friend, will then `close' the trap. 1056trap 'exit_status=$? 1057 # Save into config.log some information that might help in debugging. 1058 { 1059 echo 1060 1061 cat <<\_ASBOX 1062## ---------------- ## 1063## Cache variables. ## 1064## ---------------- ## 1065_ASBOX 1066 echo 1067 # The following way of writing the cache mishandles newlines in values, 1068{ 1069 (set) 2>&1 | 1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1071 *ac_space=\ *) 1072 sed -n \ 1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1075 ;; 1076 *) 1077 sed -n \ 1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1079 ;; 1080 esac; 1081} 1082 echo 1083 1084 cat <<\_ASBOX 1085## ----------------- ## 1086## Output variables. ## 1087## ----------------- ## 1088_ASBOX 1089 echo 1090 for ac_var in $ac_subst_vars 1091 do 1092 eval ac_val=$`echo $ac_var` 1093 echo "$ac_var='"'"'$ac_val'"'"'" 1094 done | sort 1095 echo 1096 1097 if test -n "$ac_subst_files"; then 1098 cat <<\_ASBOX 1099## ------------- ## 1100## Output files. ## 1101## ------------- ## 1102_ASBOX 1103 echo 1104 for ac_var in $ac_subst_files 1105 do 1106 eval ac_val=$`echo $ac_var` 1107 echo "$ac_var='"'"'$ac_val'"'"'" 1108 done | sort 1109 echo 1110 fi 1111 1112 if test -s confdefs.h; then 1113 cat <<\_ASBOX 1114## ----------- ## 1115## confdefs.h. ## 1116## ----------- ## 1117_ASBOX 1118 echo 1119 sed "/^$/d" confdefs.h | sort 1120 echo 1121 fi 1122 test "$ac_signal" != 0 && 1123 echo "$as_me: caught signal $ac_signal" 1124 echo "$as_me: exit $exit_status" 1125 } >&5 1126 rm -f core core.* *.core && 1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1128 exit $exit_status 1129 ' 0 1130for ac_signal in 1 2 13 15; do 1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1132done 1133ac_signal=0 1134 1135# confdefs.h avoids OS command line length limits that DEFS can exceed. 1136rm -rf conftest* confdefs.h 1137# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1138echo >confdefs.h 1139 1140# Predefined preprocessor variables. 1141 1142cat >>confdefs.h <<_ACEOF 1143#define PACKAGE_NAME "$PACKAGE_NAME" 1144_ACEOF 1145 1146 1147cat >>confdefs.h <<_ACEOF 1148#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1149_ACEOF 1150 1151 1152cat >>confdefs.h <<_ACEOF 1153#define PACKAGE_VERSION "$PACKAGE_VERSION" 1154_ACEOF 1155 1156 1157cat >>confdefs.h <<_ACEOF 1158#define PACKAGE_STRING "$PACKAGE_STRING" 1159_ACEOF 1160 1161 1162cat >>confdefs.h <<_ACEOF 1163#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1164_ACEOF 1165 1166 1167# Let the site file select an alternate cache file if it wants to. 1168# Prefer explicitly selected file to automatically selected ones. 1169if test -z "$CONFIG_SITE"; then 1170 if test "x$prefix" != xNONE; then 1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1172 else 1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1174 fi 1175fi 1176for ac_site_file in $CONFIG_SITE; do 1177 if test -r "$ac_site_file"; then 1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1179echo "$as_me: loading site script $ac_site_file" >&6;} 1180 sed 's/^/| /' "$ac_site_file" >&5 1181 . "$ac_site_file" 1182 fi 1183done 1184 1185if test -r "$cache_file"; then 1186 # Some versions of bash will fail to source /dev/null (special 1187 # files actually), so we avoid doing that. 1188 if test -f "$cache_file"; then 1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1190echo "$as_me: loading cache $cache_file" >&6;} 1191 case $cache_file in 1192 [\\/]* | ?:[\\/]* ) . $cache_file;; 1193 *) . ./$cache_file;; 1194 esac 1195 fi 1196else 1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1198echo "$as_me: creating cache $cache_file" >&6;} 1199 >$cache_file 1200fi 1201 1202# Check that the precious variables saved in the cache have kept the same 1203# value. 1204ac_cache_corrupted=false 1205for ac_var in `(set) 2>&1 | 1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1208 eval ac_new_set=\$ac_env_${ac_var}_set 1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1210 eval ac_new_val="\$ac_env_${ac_var}_value" 1211 case $ac_old_set,$ac_new_set in 1212 set,) 1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1214echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1215 ac_cache_corrupted=: ;; 1216 ,set) 1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1218echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1219 ac_cache_corrupted=: ;; 1220 ,);; 1221 *) 1222 if test "x$ac_old_val" != "x$ac_new_val"; then 1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1224echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1226echo "$as_me: former value: $ac_old_val" >&2;} 1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1228echo "$as_me: current value: $ac_new_val" >&2;} 1229 ac_cache_corrupted=: 1230 fi;; 1231 esac 1232 # Pass precious variables to config.status. 1233 if test "$ac_new_set" = set; then 1234 case $ac_new_val in 1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1237 *) ac_arg=$ac_var=$ac_new_val ;; 1238 esac 1239 case " $ac_configure_args " in 1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1242 esac 1243 fi 1244done 1245if $ac_cache_corrupted; then 1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1247echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1249echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1250 { (exit 1); exit 1; }; } 1251fi 1252 1253ac_ext=c 1254ac_cpp='$CPP $CPPFLAGS' 1255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1257ac_compiler_gnu=$ac_cv_c_compiler_gnu 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277ac_aux_dir= 1278for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1279 if test -f $ac_dir/install-sh; then 1280 ac_aux_dir=$ac_dir 1281 ac_install_sh="$ac_aux_dir/install-sh -c" 1282 break 1283 elif test -f $ac_dir/install.sh; then 1284 ac_aux_dir=$ac_dir 1285 ac_install_sh="$ac_aux_dir/install.sh -c" 1286 break 1287 elif test -f $ac_dir/shtool; then 1288 ac_aux_dir=$ac_dir 1289 ac_install_sh="$ac_aux_dir/shtool install -c" 1290 break 1291 fi 1292done 1293if test -z "$ac_aux_dir"; then 1294 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1295echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1296 { (exit 1); exit 1; }; } 1297fi 1298ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1299ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1300ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1301 1302# Make sure we can run config.sub. 1303$ac_config_sub sun4 >/dev/null 2>&1 || 1304 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1305echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1306 { (exit 1); exit 1; }; } 1307 1308echo "$as_me:$LINENO: checking build system type" >&5 1309echo $ECHO_N "checking build system type... $ECHO_C" >&6 1310if test "${ac_cv_build+set}" = set; then 1311 echo $ECHO_N "(cached) $ECHO_C" >&6 1312else 1313 ac_cv_build_alias=$build_alias 1314test -z "$ac_cv_build_alias" && 1315 ac_cv_build_alias=`$ac_config_guess` 1316test -z "$ac_cv_build_alias" && 1317 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1318echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1319 { (exit 1); exit 1; }; } 1320ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1321 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1322echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1323 { (exit 1); exit 1; }; } 1324 1325fi 1326echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1327echo "${ECHO_T}$ac_cv_build" >&6 1328build=$ac_cv_build 1329build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1330build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1331build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1332 1333 1334echo "$as_me:$LINENO: checking host system type" >&5 1335echo $ECHO_N "checking host system type... $ECHO_C" >&6 1336if test "${ac_cv_host+set}" = set; then 1337 echo $ECHO_N "(cached) $ECHO_C" >&6 1338else 1339 ac_cv_host_alias=$host_alias 1340test -z "$ac_cv_host_alias" && 1341 ac_cv_host_alias=$ac_cv_build_alias 1342ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1343 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1344echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1345 { (exit 1); exit 1; }; } 1346 1347fi 1348echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1349echo "${ECHO_T}$ac_cv_host" >&6 1350host=$ac_cv_host 1351host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1352host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1353host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1354 1355 1356echo "$as_me:$LINENO: checking target system type" >&5 1357echo $ECHO_N "checking target system type... $ECHO_C" >&6 1358if test "${ac_cv_target+set}" = set; then 1359 echo $ECHO_N "(cached) $ECHO_C" >&6 1360else 1361 ac_cv_target_alias=$target_alias 1362test "x$ac_cv_target_alias" = "x" && 1363 ac_cv_target_alias=$ac_cv_host_alias 1364ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1365 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1366echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1367 { (exit 1); exit 1; }; } 1368 1369fi 1370echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1371echo "${ECHO_T}$ac_cv_target" >&6 1372target=$ac_cv_target 1373target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1374target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1375target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1376 1377 1378# The aliases save the names the user supplied, while $host etc. 1379# will get canonicalized. 1380test -n "$target_alias" && 1381 test "$program_prefix$program_suffix$program_transform_name" = \ 1382 NONENONEs,x,x, && 1383 program_prefix=${target_alias}- 1384am__api_version="1.7" 1385# Find a good install program. We prefer a C program (faster), 1386# so one script is as good as another. But avoid the broken or 1387# incompatible versions: 1388# SysV /etc/install, /usr/sbin/install 1389# SunOS /usr/etc/install 1390# IRIX /sbin/install 1391# AIX /bin/install 1392# AmigaOS /C/install, which installs bootblocks on floppy discs 1393# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1394# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1395# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1396# ./install, which can be erroneously created by make from ./install.sh. 1397echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1398echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1399if test -z "$INSTALL"; then 1400if test "${ac_cv_path_install+set}" = set; then 1401 echo $ECHO_N "(cached) $ECHO_C" >&6 1402else 1403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1404for as_dir in $PATH 1405do 1406 IFS=$as_save_IFS 1407 test -z "$as_dir" && as_dir=. 1408 # Account for people who put trailing slashes in PATH elements. 1409case $as_dir/ in 1410 ./ | .// | /cC/* | \ 1411 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1412 /usr/ucb/* ) ;; 1413 *) 1414 # OSF1 and SCO ODT 3.0 have their own names for install. 1415 # Don't use installbsd from OSF since it installs stuff as root 1416 # by default. 1417 for ac_prog in ginstall scoinst install; do 1418 for ac_exec_ext in '' $ac_executable_extensions; do 1419 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1420 if test $ac_prog = install && 1421 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1422 # AIX install. It has an incompatible calling convention. 1423 : 1424 elif test $ac_prog = install && 1425 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1426 # program-specific install script used by HP pwplus--don't use. 1427 : 1428 else 1429 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1430 break 3 1431 fi 1432 fi 1433 done 1434 done 1435 ;; 1436esac 1437done 1438 1439 1440fi 1441 if test "${ac_cv_path_install+set}" = set; then 1442 INSTALL=$ac_cv_path_install 1443 else 1444 # As a last resort, use the slow shell script. We don't cache a 1445 # path for INSTALL within a source directory, because that will 1446 # break other packages using the cache if that directory is 1447 # removed, or if the path is relative. 1448 INSTALL=$ac_install_sh 1449 fi 1450fi 1451echo "$as_me:$LINENO: result: $INSTALL" >&5 1452echo "${ECHO_T}$INSTALL" >&6 1453 1454# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1455# It thinks the first close brace ends the variable substitution. 1456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1457 1458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1459 1460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1461 1462echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1463echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1464# Just in case 1465sleep 1 1466echo timestamp > conftest.file 1467# Do `set' in a subshell so we don't clobber the current shell's 1468# arguments. Must try -L first in case configure is actually a 1469# symlink; some systems play weird games with the mod time of symlinks 1470# (eg FreeBSD returns the mod time of the symlink's containing 1471# directory). 1472if ( 1473 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1474 if test "$*" = "X"; then 1475 # -L didn't work. 1476 set X `ls -t $srcdir/configure conftest.file` 1477 fi 1478 rm -f conftest.file 1479 if test "$*" != "X $srcdir/configure conftest.file" \ 1480 && test "$*" != "X conftest.file $srcdir/configure"; then 1481 1482 # If neither matched, then we have a broken ls. This can happen 1483 # if, for instance, CONFIG_SHELL is bash and it inherits a 1484 # broken ls alias from the environment. This has actually 1485 # happened. Such a system could not be considered "sane". 1486 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1487alias in your environment" >&5 1488echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1489alias in your environment" >&2;} 1490 { (exit 1); exit 1; }; } 1491 fi 1492 1493 test "$2" = conftest.file 1494 ) 1495then 1496 # Ok. 1497 : 1498else 1499 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1500Check your system clock" >&5 1501echo "$as_me: error: newly created file is older than distributed files! 1502Check your system clock" >&2;} 1503 { (exit 1); exit 1; }; } 1504fi 1505echo "$as_me:$LINENO: result: yes" >&5 1506echo "${ECHO_T}yes" >&6 1507test "$program_prefix" != NONE && 1508 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1509# Use a double $ so make ignores it. 1510test "$program_suffix" != NONE && 1511 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1512# Double any \ or $. echo might interpret backslashes. 1513# By default was `s,x,x', remove it if useless. 1514cat <<\_ACEOF >conftest.sed 1515s/[\\$]/&&/g;s/;s,x,x,$// 1516_ACEOF 1517program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1518rm conftest.sed 1519 1520 1521# expand $ac_aux_dir to an absolute path 1522am_aux_dir=`cd $ac_aux_dir && pwd` 1523 1524test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1525# Use eval to expand $SHELL 1526if eval "$MISSING --run true"; then 1527 am_missing_run="$MISSING --run " 1528else 1529 am_missing_run= 1530 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1531echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1532fi 1533 1534for ac_prog in gawk mawk nawk awk 1535do 1536 # Extract the first word of "$ac_prog", so it can be a program name with args. 1537set dummy $ac_prog; ac_word=$2 1538echo "$as_me:$LINENO: checking for $ac_word" >&5 1539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1540if test "${ac_cv_prog_AWK+set}" = set; then 1541 echo $ECHO_N "(cached) $ECHO_C" >&6 1542else 1543 if test -n "$AWK"; then 1544 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1545else 1546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1547for as_dir in $PATH 1548do 1549 IFS=$as_save_IFS 1550 test -z "$as_dir" && as_dir=. 1551 for ac_exec_ext in '' $ac_executable_extensions; do 1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1553 ac_cv_prog_AWK="$ac_prog" 1554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1555 break 2 1556 fi 1557done 1558done 1559 1560fi 1561fi 1562AWK=$ac_cv_prog_AWK 1563if test -n "$AWK"; then 1564 echo "$as_me:$LINENO: result: $AWK" >&5 1565echo "${ECHO_T}$AWK" >&6 1566else 1567 echo "$as_me:$LINENO: result: no" >&5 1568echo "${ECHO_T}no" >&6 1569fi 1570 1571 test -n "$AWK" && break 1572done 1573 1574echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1575echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1576set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 1577if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1578 echo $ECHO_N "(cached) $ECHO_C" >&6 1579else 1580 cat >conftest.make <<\_ACEOF 1581all: 1582 @echo 'ac_maketemp="$(MAKE)"' 1583_ACEOF 1584# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1585eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1586if test -n "$ac_maketemp"; then 1587 eval ac_cv_prog_make_${ac_make}_set=yes 1588else 1589 eval ac_cv_prog_make_${ac_make}_set=no 1590fi 1591rm -f conftest.make 1592fi 1593if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1594 echo "$as_me:$LINENO: result: yes" >&5 1595echo "${ECHO_T}yes" >&6 1596 SET_MAKE= 1597else 1598 echo "$as_me:$LINENO: result: no" >&5 1599echo "${ECHO_T}no" >&6 1600 SET_MAKE="MAKE=${MAKE-make}" 1601fi 1602 1603rm -rf .tst 2>/dev/null 1604mkdir .tst 2>/dev/null 1605if test -d .tst; then 1606 am__leading_dot=. 1607else 1608 am__leading_dot=_ 1609fi 1610rmdir .tst 2>/dev/null 1611 1612 # test to see if srcdir already configured 1613if test "`cd $srcdir && pwd`" != "`pwd`" && 1614 test -f $srcdir/config.status; then 1615 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1616echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1617 { (exit 1); exit 1; }; } 1618fi 1619 1620# test whether we have cygpath 1621if test -z "$CYGPATH_W"; then 1622 if (cygpath --version) >/dev/null 2>/dev/null; then 1623 CYGPATH_W='cygpath -w' 1624 else 1625 CYGPATH_W=echo 1626 fi 1627fi 1628 1629 1630# Define the identity of the package. 1631 PACKAGE=torrent 1632 VERSION=0.8.2 1633 1634 1635cat >>confdefs.h <<_ACEOF 1636#define PACKAGE "$PACKAGE" 1637_ACEOF 1638 1639 1640cat >>confdefs.h <<_ACEOF 1641#define VERSION "$VERSION" 1642_ACEOF 1643 1644# Some tools Automake needs. 1645 1646ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1647 1648 1649AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1650 1651 1652AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1653 1654 1655AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1656 1657 1658MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1659 1660 1661AMTAR=${AMTAR-"${am_missing_run}tar"} 1662 1663install_sh=${install_sh-"$am_aux_dir/install-sh"} 1664 1665# Installed binaries are usually stripped using `strip' when the user 1666# run `make install-strip'. However `strip' might not be the right 1667# tool to use in cross-compilation environments, therefore Automake 1668# will honor the `STRIP' environment variable to overrule this program. 1669if test "$cross_compiling" != no; then 1670 if test -n "$ac_tool_prefix"; then 1671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1672set dummy ${ac_tool_prefix}strip; ac_word=$2 1673echo "$as_me:$LINENO: checking for $ac_word" >&5 1674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1675if test "${ac_cv_prog_STRIP+set}" = set; then 1676 echo $ECHO_N "(cached) $ECHO_C" >&6 1677else 1678 if test -n "$STRIP"; then 1679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1680else 1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1682for as_dir in $PATH 1683do 1684 IFS=$as_save_IFS 1685 test -z "$as_dir" && as_dir=. 1686 for ac_exec_ext in '' $ac_executable_extensions; do 1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1688 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1690 break 2 1691 fi 1692done 1693done 1694 1695fi 1696fi 1697STRIP=$ac_cv_prog_STRIP 1698if test -n "$STRIP"; then 1699 echo "$as_me:$LINENO: result: $STRIP" >&5 1700echo "${ECHO_T}$STRIP" >&6 1701else 1702 echo "$as_me:$LINENO: result: no" >&5 1703echo "${ECHO_T}no" >&6 1704fi 1705 1706fi 1707if test -z "$ac_cv_prog_STRIP"; then 1708 ac_ct_STRIP=$STRIP 1709 # Extract the first word of "strip", so it can be a program name with args. 1710set dummy strip; ac_word=$2 1711echo "$as_me:$LINENO: checking for $ac_word" >&5 1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1713if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1714 echo $ECHO_N "(cached) $ECHO_C" >&6 1715else 1716 if test -n "$ac_ct_STRIP"; then 1717 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1718else 1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1720for as_dir in $PATH 1721do 1722 IFS=$as_save_IFS 1723 test -z "$as_dir" && as_dir=. 1724 for ac_exec_ext in '' $ac_executable_extensions; do 1725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1726 ac_cv_prog_ac_ct_STRIP="strip" 1727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1728 break 2 1729 fi 1730done 1731done 1732 1733 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1734fi 1735fi 1736ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1737if test -n "$ac_ct_STRIP"; then 1738 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1739echo "${ECHO_T}$ac_ct_STRIP" >&6 1740else 1741 echo "$as_me:$LINENO: result: no" >&5 1742echo "${ECHO_T}no" >&6 1743fi 1744 1745 STRIP=$ac_ct_STRIP 1746else 1747 STRIP="$ac_cv_prog_STRIP" 1748fi 1749 1750fi 1751INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1752 1753# We need awk for the "check" target. The system "awk" is bad on 1754# some platforms. 1755 1756 1757 1758 1759ac_ext=c 1760ac_cpp='$CPP $CPPFLAGS' 1761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1763ac_compiler_gnu=$ac_cv_c_compiler_gnu 1764if test -n "$ac_tool_prefix"; then 1765 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1766set dummy ${ac_tool_prefix}gcc; ac_word=$2 1767echo "$as_me:$LINENO: checking for $ac_word" >&5 1768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1769if test "${ac_cv_prog_CC+set}" = set; then 1770 echo $ECHO_N "(cached) $ECHO_C" >&6 1771else 1772 if test -n "$CC"; then 1773 ac_cv_prog_CC="$CC" # Let the user override the test. 1774else 1775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1776for as_dir in $PATH 1777do 1778 IFS=$as_save_IFS 1779 test -z "$as_dir" && as_dir=. 1780 for ac_exec_ext in '' $ac_executable_extensions; do 1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1782 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1784 break 2 1785 fi 1786done 1787done 1788 1789fi 1790fi 1791CC=$ac_cv_prog_CC 1792if test -n "$CC"; then 1793 echo "$as_me:$LINENO: result: $CC" >&5 1794echo "${ECHO_T}$CC" >&6 1795else 1796 echo "$as_me:$LINENO: result: no" >&5 1797echo "${ECHO_T}no" >&6 1798fi 1799 1800fi 1801if test -z "$ac_cv_prog_CC"; then 1802 ac_ct_CC=$CC 1803 # Extract the first word of "gcc", so it can be a program name with args. 1804set dummy gcc; ac_word=$2 1805echo "$as_me:$LINENO: checking for $ac_word" >&5 1806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1807if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1808 echo $ECHO_N "(cached) $ECHO_C" >&6 1809else 1810 if test -n "$ac_ct_CC"; then 1811 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1812else 1813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1814for as_dir in $PATH 1815do 1816 IFS=$as_save_IFS 1817 test -z "$as_dir" && as_dir=. 1818 for ac_exec_ext in '' $ac_executable_extensions; do 1819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1820 ac_cv_prog_ac_ct_CC="gcc" 1821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1822 break 2 1823 fi 1824done 1825done 1826 1827fi 1828fi 1829ac_ct_CC=$ac_cv_prog_ac_ct_CC 1830if test -n "$ac_ct_CC"; then 1831 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1832echo "${ECHO_T}$ac_ct_CC" >&6 1833else 1834 echo "$as_me:$LINENO: result: no" >&5 1835echo "${ECHO_T}no" >&6 1836fi 1837 1838 CC=$ac_ct_CC 1839else 1840 CC="$ac_cv_prog_CC" 1841fi 1842 1843if test -z "$CC"; then 1844 if test -n "$ac_tool_prefix"; then 1845 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1846set dummy ${ac_tool_prefix}cc; ac_word=$2 1847echo "$as_me:$LINENO: checking for $ac_word" >&5 1848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1849if test "${ac_cv_prog_CC+set}" = set; then 1850 echo $ECHO_N "(cached) $ECHO_C" >&6 1851else 1852 if test -n "$CC"; then 1853 ac_cv_prog_CC="$CC" # Let the user override the test. 1854else 1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1856for as_dir in $PATH 1857do 1858 IFS=$as_save_IFS 1859 test -z "$as_dir" && as_dir=. 1860 for ac_exec_ext in '' $ac_executable_extensions; do 1861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1862 ac_cv_prog_CC="${ac_tool_prefix}cc" 1863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1864 break 2 1865 fi 1866done 1867done 1868 1869fi 1870fi 1871CC=$ac_cv_prog_CC 1872if test -n "$CC"; then 1873 echo "$as_me:$LINENO: result: $CC" >&5 1874echo "${ECHO_T}$CC" >&6 1875else 1876 echo "$as_me:$LINENO: result: no" >&5 1877echo "${ECHO_T}no" >&6 1878fi 1879 1880fi 1881if test -z "$ac_cv_prog_CC"; then 1882 ac_ct_CC=$CC 1883 # Extract the first word of "cc", so it can be a program name with args. 1884set dummy cc; ac_word=$2 1885echo "$as_me:$LINENO: checking for $ac_word" >&5 1886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1887if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1888 echo $ECHO_N "(cached) $ECHO_C" >&6 1889else 1890 if test -n "$ac_ct_CC"; then 1891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1892else 1893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1894for as_dir in $PATH 1895do 1896 IFS=$as_save_IFS 1897 test -z "$as_dir" && as_dir=. 1898 for ac_exec_ext in '' $ac_executable_extensions; do 1899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1900 ac_cv_prog_ac_ct_CC="cc" 1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1902 break 2 1903 fi 1904done 1905done 1906 1907fi 1908fi 1909ac_ct_CC=$ac_cv_prog_ac_ct_CC 1910if test -n "$ac_ct_CC"; then 1911 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1912echo "${ECHO_T}$ac_ct_CC" >&6 1913else 1914 echo "$as_me:$LINENO: result: no" >&5 1915echo "${ECHO_T}no" >&6 1916fi 1917 1918 CC=$ac_ct_CC 1919else 1920 CC="$ac_cv_prog_CC" 1921fi 1922 1923fi 1924if test -z "$CC"; then 1925 # Extract the first word of "cc", so it can be a program name with args. 1926set dummy cc; ac_word=$2 1927echo "$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 1935 ac_prog_rejected=no 1936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1937for as_dir in $PATH 1938do 1939 IFS=$as_save_IFS 1940 test -z "$as_dir" && as_dir=. 1941 for ac_exec_ext in '' $ac_executable_extensions; do 1942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1944 ac_prog_rejected=yes 1945 continue 1946 fi 1947 ac_cv_prog_CC="cc" 1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1949 break 2 1950 fi 1951done 1952done 1953 1954if test $ac_prog_rejected = yes; then 1955 # We found a bogon in the path, so make sure we never use it. 1956 set dummy $ac_cv_prog_CC 1957 shift 1958 if test $# != 0; then 1959 # We chose a different compiler from the bogus one. 1960 # However, it has the same basename, so the bogon will be chosen 1961 # first if we set CC to just the basename; use the full file name. 1962 shift 1963 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1964 fi 1965fi 1966fi 1967fi 1968CC=$ac_cv_prog_CC 1969if test -n "$CC"; then 1970 echo "$as_me:$LINENO: result: $CC" >&5 1971echo "${ECHO_T}$CC" >&6 1972else 1973 echo "$as_me:$LINENO: result: no" >&5 1974echo "${ECHO_T}no" >&6 1975fi 1976 1977fi 1978if test -z "$CC"; then 1979 if test -n "$ac_tool_prefix"; then 1980 for ac_prog in cl 1981 do 1982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1983set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1984echo "$as_me:$LINENO: checking for $ac_word" >&5 1985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1986if test "${ac_cv_prog_CC+set}" = set; then 1987 echo $ECHO_N "(cached) $ECHO_C" >&6 1988else 1989 if test -n "$CC"; then 1990 ac_cv_prog_CC="$CC" # Let the user override the test. 1991else 1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1993for as_dir in $PATH 1994do 1995 IFS=$as_save_IFS 1996 test -z "$as_dir" && as_dir=. 1997 for ac_exec_ext in '' $ac_executable_extensions; do 1998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1999 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2001 break 2 2002 fi 2003done 2004done 2005 2006fi 2007fi 2008CC=$ac_cv_prog_CC 2009if test -n "$CC"; then 2010 echo "$as_me:$LINENO: result: $CC" >&5 2011echo "${ECHO_T}$CC" >&6 2012else 2013 echo "$as_me:$LINENO: result: no" >&5 2014echo "${ECHO_T}no" >&6 2015fi 2016 2017 test -n "$CC" && break 2018 done 2019fi 2020if test -z "$CC"; then 2021 ac_ct_CC=$CC 2022 for ac_prog in cl 2023do 2024 # Extract the first word of "$ac_prog", so it can be a program name with args. 2025set dummy $ac_prog; ac_word=$2 2026echo "$as_me:$LINENO: checking for $ac_word" >&5 2027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2028if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2029 echo $ECHO_N "(cached) $ECHO_C" >&6 2030else 2031 if test -n "$ac_ct_CC"; then 2032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2033else 2034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2035for as_dir in $PATH 2036do 2037 IFS=$as_save_IFS 2038 test -z "$as_dir" && as_dir=. 2039 for ac_exec_ext in '' $ac_executable_extensions; do 2040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2041 ac_cv_prog_ac_ct_CC="$ac_prog" 2042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2043 break 2 2044 fi 2045done 2046done 2047 2048fi 2049fi 2050ac_ct_CC=$ac_cv_prog_ac_ct_CC 2051if test -n "$ac_ct_CC"; then 2052 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2053echo "${ECHO_T}$ac_ct_CC" >&6 2054else 2055 echo "$as_me:$LINENO: result: no" >&5 2056echo "${ECHO_T}no" >&6 2057fi 2058 2059 test -n "$ac_ct_CC" && break 2060done 2061 2062 CC=$ac_ct_CC 2063fi 2064 2065fi 2066 2067 2068test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2069See \`config.log' for more details." >&5 2070echo "$as_me: error: no acceptable C compiler found in \$PATH 2071See \`config.log' for more details." >&2;} 2072 { (exit 1); exit 1; }; } 2073 2074# Provide some information about the compiler. 2075echo "$as_me:$LINENO:" \ 2076 "checking for C compiler version" >&5 2077ac_compiler=`set X $ac_compile; echo $2` 2078{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2079 (eval $ac_compiler --version </dev/null >&5) 2>&5 2080 ac_status=$? 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2082 (exit $ac_status); } 2083{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2084 (eval $ac_compiler -v </dev/null >&5) 2>&5 2085 ac_status=$? 2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2087 (exit $ac_status); } 2088{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2089 (eval $ac_compiler -V </dev/null >&5) 2>&5 2090 ac_status=$? 2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2092 (exit $ac_status); } 2093 2094cat >conftest.$ac_ext <<_ACEOF 2095#line $LINENO "configure" 2096/* confdefs.h. */ 2097_ACEOF 2098cat confdefs.h >>conftest.$ac_ext 2099cat >>conftest.$ac_ext <<_ACEOF 2100/* end confdefs.h. */ 2101 2102int 2103main () 2104{ 2105 2106 ; 2107 return 0; 2108} 2109_ACEOF 2110ac_clean_files_save=$ac_clean_files 2111ac_clean_files="$ac_clean_files a.out a.exe b.out" 2112# Try to create an executable without -o first, disregard a.out. 2113# It will help us diagnose broken compilers, and finding out an intuition 2114# of exeext. 2115echo "$as_me:$LINENO: checking for C compiler default output" >&5 2116echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 2117ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2118if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2119 (eval $ac_link_default) 2>&5 2120 ac_status=$? 2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2122 (exit $ac_status); }; then 2123 # Find the output, starting from the most likely. This scheme is 2124# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2125# resort. 2126 2127# Be careful to initialize this variable, since it used to be cached. 2128# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2129ac_cv_exeext= 2130# b.out is created by i960 compilers. 2131for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2132do 2133 test -f "$ac_file" || continue 2134 case $ac_file in 2135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2136 ;; 2137 conftest.$ac_ext ) 2138 # This is the source file. 2139 ;; 2140 [ab].out ) 2141 # We found the default executable, but exeext='' is most 2142 # certainly right. 2143 break;; 2144 *.* ) 2145 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2146 # FIXME: I believe we export ac_cv_exeext for Libtool, 2147 # but it would be cool to find out if it's true. Does anybody 2148 # maintain Libtool? --akim. 2149 export ac_cv_exeext 2150 break;; 2151 * ) 2152 break;; 2153 esac 2154done 2155else 2156 echo "$as_me: failed program was:" >&5 2157sed 's/^/| /' conftest.$ac_ext >&5 2158 2159{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2160See \`config.log' for more details." >&5 2161echo "$as_me: error: C compiler cannot create executables 2162See \`config.log' for more details." >&2;} 2163 { (exit 77); exit 77; }; } 2164fi 2165 2166ac_exeext=$ac_cv_exeext 2167echo "$as_me:$LINENO: result: $ac_file" >&5 2168echo "${ECHO_T}$ac_file" >&6 2169 2170# Check the compiler produces executables we can run. If not, either 2171# the compiler is broken, or we cross compile. 2172echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2173echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2174# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2175# If not cross compiling, check that we can run a simple program. 2176if test "$cross_compiling" != yes; then 2177 if { ac_try='./$ac_file' 2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2179 (eval $ac_try) 2>&5 2180 ac_status=$? 2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2182 (exit $ac_status); }; }; then 2183 cross_compiling=no 2184 else 2185 if test "$cross_compiling" = maybe; then 2186 cross_compiling=yes 2187 else 2188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2189If you meant to cross compile, use \`--host'. 2190See \`config.log' for more details." >&5 2191echo "$as_me: error: cannot run C compiled programs. 2192If you meant to cross compile, use \`--host'. 2193See \`config.log' for more details." >&2;} 2194 { (exit 1); exit 1; }; } 2195 fi 2196 fi 2197fi 2198echo "$as_me:$LINENO: result: yes" >&5 2199echo "${ECHO_T}yes" >&6 2200 2201rm -f a.out a.exe conftest$ac_cv_exeext b.out 2202ac_clean_files=$ac_clean_files_save 2203# Check the compiler produces executables we can run. If not, either 2204# the compiler is broken, or we cross compile. 2205echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2206echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2207echo "$as_me:$LINENO: result: $cross_compiling" >&5 2208echo "${ECHO_T}$cross_compiling" >&6 2209 2210echo "$as_me:$LINENO: checking for suffix of executables" >&5 2211echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2213 (eval $ac_link) 2>&5 2214 ac_status=$? 2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2216 (exit $ac_status); }; then 2217 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2218# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2219# work properly (i.e., refer to `conftest.exe'), while it won't with 2220# `rm'. 2221for ac_file in conftest.exe conftest conftest.*; do 2222 test -f "$ac_file" || continue 2223 case $ac_file in 2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2226 export ac_cv_exeext 2227 break;; 2228 * ) break;; 2229 esac 2230done 2231else 2232 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2233See \`config.log' for more details." >&5 2234echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2235See \`config.log' for more details." >&2;} 2236 { (exit 1); exit 1; }; } 2237fi 2238 2239rm -f conftest$ac_cv_exeext 2240echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2241echo "${ECHO_T}$ac_cv_exeext" >&6 2242 2243rm -f conftest.$ac_ext 2244EXEEXT=$ac_cv_exeext 2245ac_exeext=$EXEEXT 2246echo "$as_me:$LINENO: checking for suffix of object files" >&5 2247echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2248if test "${ac_cv_objext+set}" = set; then 2249 echo $ECHO_N "(cached) $ECHO_C" >&6 2250else 2251 cat >conftest.$ac_ext <<_ACEOF 2252#line $LINENO "configure" 2253/* confdefs.h. */ 2254_ACEOF 2255cat confdefs.h >>conftest.$ac_ext 2256cat >>conftest.$ac_ext <<_ACEOF 2257/* end confdefs.h. */ 2258 2259int 2260main () 2261{ 2262 2263 ; 2264 return 0; 2265} 2266_ACEOF 2267rm -f conftest.o conftest.obj 2268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2269 (eval $ac_compile) 2>&5 2270 ac_status=$? 2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2272 (exit $ac_status); }; then 2273 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2274 case $ac_file in 2275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2276 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2277 break;; 2278 esac 2279done 2280else 2281 echo "$as_me: failed program was:" >&5 2282sed 's/^/| /' conftest.$ac_ext >&5 2283 2284{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2285See \`config.log' for more details." >&5 2286echo "$as_me: error: cannot compute suffix of object files: cannot compile 2287See \`config.log' for more details." >&2;} 2288 { (exit 1); exit 1; }; } 2289fi 2290 2291rm -f conftest.$ac_cv_objext conftest.$ac_ext 2292fi 2293echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2294echo "${ECHO_T}$ac_cv_objext" >&6 2295OBJEXT=$ac_cv_objext 2296ac_objext=$OBJEXT 2297echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2298echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2299if test "${ac_cv_c_compiler_gnu+set}" = set; then 2300 echo $ECHO_N "(cached) $ECHO_C" >&6 2301else 2302 cat >conftest.$ac_ext <<_ACEOF 2303#line $LINENO "configure" 2304/* confdefs.h. */ 2305_ACEOF 2306cat confdefs.h >>conftest.$ac_ext 2307cat >>conftest.$ac_ext <<_ACEOF 2308/* end confdefs.h. */ 2309 2310int 2311main () 2312{ 2313#ifndef __GNUC__ 2314 choke me 2315#endif 2316 2317 ; 2318 return 0; 2319} 2320_ACEOF 2321rm -f conftest.$ac_objext 2322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2323 (eval $ac_compile) 2>&5 2324 ac_status=$? 2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2326 (exit $ac_status); } && 2327 { ac_try='test -s conftest.$ac_objext' 2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2329 (eval $ac_try) 2>&5 2330 ac_status=$? 2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2332 (exit $ac_status); }; }; then 2333 ac_compiler_gnu=yes 2334else 2335 echo "$as_me: failed program was:" >&5 2336sed 's/^/| /' conftest.$ac_ext >&5 2337 2338ac_compiler_gnu=no 2339fi 2340rm -f conftest.$ac_objext conftest.$ac_ext 2341ac_cv_c_compiler_gnu=$ac_compiler_gnu 2342 2343fi 2344echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2345echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2346GCC=`test $ac_compiler_gnu = yes && echo yes` 2347ac_test_CFLAGS=${CFLAGS+set} 2348ac_save_CFLAGS=$CFLAGS 2349CFLAGS="-g" 2350echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2351echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2352if test "${ac_cv_prog_cc_g+set}" = set; then 2353 echo $ECHO_N "(cached) $ECHO_C" >&6 2354else 2355 cat >conftest.$ac_ext <<_ACEOF 2356#line $LINENO "configure" 2357/* confdefs.h. */ 2358_ACEOF 2359cat confdefs.h >>conftest.$ac_ext 2360cat >>conftest.$ac_ext <<_ACEOF 2361/* end confdefs.h. */ 2362 2363int 2364main () 2365{ 2366 2367 ; 2368 return 0; 2369} 2370_ACEOF 2371rm -f conftest.$ac_objext 2372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2373 (eval $ac_compile) 2>&5 2374 ac_status=$? 2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2376 (exit $ac_status); } && 2377 { ac_try='test -s conftest.$ac_objext' 2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2379 (eval $ac_try) 2>&5 2380 ac_status=$? 2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2382 (exit $ac_status); }; }; then 2383 ac_cv_prog_cc_g=yes 2384else 2385 echo "$as_me: failed program was:" >&5 2386sed 's/^/| /' conftest.$ac_ext >&5 2387 2388ac_cv_prog_cc_g=no 2389fi 2390rm -f conftest.$ac_objext conftest.$ac_ext 2391fi 2392echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2393echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2394if test "$ac_test_CFLAGS" = set; then 2395 CFLAGS=$ac_save_CFLAGS 2396elif test $ac_cv_prog_cc_g = yes; then 2397 if test "$GCC" = yes; then 2398 CFLAGS="-g -O2" 2399 else 2400 CFLAGS="-g" 2401 fi 2402else 2403 if test "$GCC" = yes; then 2404 CFLAGS="-O2" 2405 else 2406 CFLAGS= 2407 fi 2408fi 2409echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2410echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2411if test "${ac_cv_prog_cc_stdc+set}" = set; then 2412 echo $ECHO_N "(cached) $ECHO_C" >&6 2413else 2414 ac_cv_prog_cc_stdc=no 2415ac_save_CC=$CC 2416cat >conftest.$ac_ext <<_ACEOF 2417#line $LINENO "configure" 2418/* confdefs.h. */ 2419_ACEOF 2420cat confdefs.h >>conftest.$ac_ext 2421cat >>conftest.$ac_ext <<_ACEOF 2422/* end confdefs.h. */ 2423#include <stdarg.h> 2424#include <stdio.h> 2425#include <sys/types.h> 2426#include <sys/stat.h> 2427/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2428struct buf { int x; }; 2429FILE * (*rcsopen) (struct buf *, struct stat *, int); 2430static char *e (p, i) 2431 char **p; 2432 int i; 2433{ 2434 return p[i]; 2435} 2436static char *f (char * (*g) (char **, int), char **p, ...) 2437{ 2438 char *s; 2439 va_list v; 2440 va_start (v,p); 2441 s = g (p, va_arg (v,int)); 2442 va_end (v); 2443 return s; 2444} 2445int test (int i, double x); 2446struct s1 {int (*f) (int a);}; 2447struct s2 {int (*f) (double a);}; 2448int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2449int argc; 2450char **argv; 2451int 2452main () 2453{ 2454return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2455 ; 2456 return 0; 2457} 2458_ACEOF 2459# Don't try gcc -ansi; that turns off useful extensions and 2460# breaks some systems' header files. 2461# AIX -qlanglvl=ansi 2462# Ultrix and OSF/1 -std1 2463# HP-UX 10.20 and later -Ae 2464# HP-UX older versions -Aa -D_HPUX_SOURCE 2465# SVR4 -Xc -D__EXTENSIONS__ 2466for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2467do 2468 CC="$ac_save_CC $ac_arg" 2469 rm -f conftest.$ac_objext 2470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2471 (eval $ac_compile) 2>&5 2472 ac_status=$? 2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2474 (exit $ac_status); } && 2475 { ac_try='test -s conftest.$ac_objext' 2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2477 (eval $ac_try) 2>&5 2478 ac_status=$? 2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2480 (exit $ac_status); }; }; then 2481 ac_cv_prog_cc_stdc=$ac_arg 2482break 2483else 2484 echo "$as_me: failed program was:" >&5 2485sed 's/^/| /' conftest.$ac_ext >&5 2486 2487fi 2488rm -f conftest.$ac_objext 2489done 2490rm -f conftest.$ac_ext conftest.$ac_objext 2491CC=$ac_save_CC 2492 2493fi 2494 2495case "x$ac_cv_prog_cc_stdc" in 2496 x|xno) 2497 echo "$as_me:$LINENO: result: none needed" >&5 2498echo "${ECHO_T}none needed" >&6 ;; 2499 *) 2500 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2501echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2502 CC="$CC $ac_cv_prog_cc_stdc" ;; 2503esac 2504 2505# Some people use a C++ compiler to compile C. Since we use `exit', 2506# in C++ we need to declare it. In case someone uses the same compiler 2507# for both compiling C and C++ we need to have the C++ compiler decide 2508# the declaration of exit, since it's the most demanding environment. 2509cat >conftest.$ac_ext <<_ACEOF 2510#ifndef __cplusplus 2511 choke me 2512#endif 2513_ACEOF 2514rm -f conftest.$ac_objext 2515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2516 (eval $ac_compile) 2>&5 2517 ac_status=$? 2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2519 (exit $ac_status); } && 2520 { ac_try='test -s conftest.$ac_objext' 2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2522 (eval $ac_try) 2>&5 2523 ac_status=$? 2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2525 (exit $ac_status); }; }; then 2526 for ac_declaration in \ 2527 ''\ 2528 '#include <stdlib.h>' \ 2529 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2530 'extern "C" void std::exit (int); using std::exit;' \ 2531 'extern "C" void exit (int) throw ();' \ 2532 'extern "C" void exit (int);' \ 2533 'void exit (int);' 2534do 2535 cat >conftest.$ac_ext <<_ACEOF 2536#line $LINENO "configure" 2537/* confdefs.h. */ 2538_ACEOF 2539cat confdefs.h >>conftest.$ac_ext 2540cat >>conftest.$ac_ext <<_ACEOF 2541/* end confdefs.h. */ 2542#include <stdlib.h> 2543$ac_declaration 2544int 2545main () 2546{ 2547exit (42); 2548 ; 2549 return 0; 2550} 2551_ACEOF 2552rm -f conftest.$ac_objext 2553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2554 (eval $ac_compile) 2>&5 2555 ac_status=$? 2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2557 (exit $ac_status); } && 2558 { ac_try='test -s conftest.$ac_objext' 2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2560 (eval $ac_try) 2>&5 2561 ac_status=$? 2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2563 (exit $ac_status); }; }; then 2564 : 2565else 2566 echo "$as_me: failed program was:" >&5 2567sed 's/^/| /' conftest.$ac_ext >&5 2568 2569continue 2570fi 2571rm -f conftest.$ac_objext conftest.$ac_ext 2572 cat >conftest.$ac_ext <<_ACEOF 2573#line $LINENO "configure" 2574/* confdefs.h. */ 2575_ACEOF 2576cat confdefs.h >>conftest.$ac_ext 2577cat >>conftest.$ac_ext <<_ACEOF 2578/* end confdefs.h. */ 2579$ac_declaration 2580int 2581main () 2582{ 2583exit (42); 2584 ; 2585 return 0; 2586} 2587_ACEOF 2588rm -f conftest.$ac_objext 2589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2590 (eval $ac_compile) 2>&5 2591 ac_status=$? 2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2593 (exit $ac_status); } && 2594 { ac_try='test -s conftest.$ac_objext' 2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2596 (eval $ac_try) 2>&5 2597 ac_status=$? 2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2599 (exit $ac_status); }; }; then 2600 break 2601else 2602 echo "$as_me: failed program was:" >&5 2603sed 's/^/| /' conftest.$ac_ext >&5 2604 2605fi 2606rm -f conftest.$ac_objext conftest.$ac_ext 2607done 2608rm -f conftest* 2609if test -n "$ac_declaration"; then 2610 echo '#ifdef __cplusplus' >>confdefs.h 2611 echo $ac_declaration >>confdefs.h 2612 echo '#endif' >>confdefs.h 2613fi 2614 2615else 2616 echo "$as_me: failed program was:" >&5 2617sed 's/^/| /' conftest.$ac_ext >&5 2618 2619fi 2620rm -f conftest.$ac_objext conftest.$ac_ext 2621ac_ext=c 2622ac_cpp='$CPP $CPPFLAGS' 2623ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2624ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2625ac_compiler_gnu=$ac_cv_c_compiler_gnu 2626DEPDIR="${am__leading_dot}deps" 2627 2628 ac_config_commands="$ac_config_commands depfiles" 2629 2630 2631am_make=${MAKE-make} 2632cat > confinc << 'END' 2633am__doit: 2634 @echo done 2635.PHONY: am__doit 2636END 2637# If we don't find an include directive, just comment out the code. 2638echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2639echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2640am__include="#" 2641am__quote= 2642_am_result=none 2643# First try GNU make style include. 2644echo "include confinc" > confmf 2645# We grep out `Entering directory' and `Leaving directory' 2646# messages which can occur if `w' ends up in MAKEFLAGS. 2647# In particular we don't look at `^make:' because GNU make might 2648# be invoked under some other name (usually "gmake"), in which 2649# case it prints its new name instead of `make'. 2650if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2651 am__include=include 2652 am__quote= 2653 _am_result=GNU 2654fi 2655# Now try BSD make style include. 2656if test "$am__include" = "#"; then 2657 echo '.include "confinc"' > confmf 2658 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2659 am__include=.include 2660 am__quote="\"" 2661 _am_result=BSD 2662 fi 2663fi 2664 2665 2666echo "$as_me:$LINENO: result: $_am_result" >&5 2667echo "${ECHO_T}$_am_result" >&6 2668rm -f confinc confmf 2669 2670# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2671if test "${enable_dependency_tracking+set}" = set; then 2672 enableval="$enable_dependency_tracking" 2673 2674fi; 2675if test "x$enable_dependency_tracking" != xno; then 2676 am_depcomp="$ac_aux_dir/depcomp" 2677 AMDEPBACKSLASH='\' 2678fi 2679 2680 2681if test "x$enable_dependency_tracking" != xno; then 2682 AMDEP_TRUE= 2683 AMDEP_FALSE='#' 2684else 2685 AMDEP_TRUE='#' 2686 AMDEP_FALSE= 2687fi 2688 2689 2690 2691 2692depcc="$CC" am_compiler_list= 2693 2694echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2695echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2696if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2697 echo $ECHO_N "(cached) $ECHO_C" >&6 2698else 2699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2700 # We make a subdir and do the tests there. Otherwise we can end up 2701 # making bogus files that we don't know about and never remove. For 2702 # instance it was reported that on HP-UX the gcc test will end up 2703 # making a dummy file named `D' -- because `-MD' means `put the output 2704 # in D'. 2705 mkdir conftest.dir 2706 # Copy depcomp to subdir because otherwise we won't find it if we're 2707 # using a relative directory. 2708 cp "$am_depcomp" conftest.dir 2709 cd conftest.dir 2710 # We will build objects and dependencies in a subdirectory because 2711 # it helps to detect inapplicable dependency modes. For instance 2712 # both Tru64's cc and ICC support -MD to output dependencies as a 2713 # side effect of compilation, but ICC will put the dependencies in 2714 # the current directory while Tru64 will put them in the object 2715 # directory. 2716 mkdir sub 2717 2718 am_cv_CC_dependencies_compiler_type=none 2719 if test "$am_compiler_list" = ""; then 2720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2721 fi 2722 for depmode in $am_compiler_list; do 2723 # Setup a source with many dependencies, because some compilers 2724 # like to wrap large dependency lists on column 80 (with \), and 2725 # we should not choose a depcomp mode which is confused by this. 2726 # 2727 # We need to recreate these files for each test, as the compiler may 2728 # overwrite some of them when testing with obscure command lines. 2729 # This happens at least with the AIX C compiler. 2730 : > sub/conftest.c 2731 for i in 1 2 3 4 5 6; do 2732 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2733 : > sub/conftst$i.h 2734 done 2735 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2736 2737 case $depmode in 2738 nosideeffect) 2739 # after this tag, mechanisms are not by side-effect, so they'll 2740 # only be used when explicitly requested 2741 if test "x$enable_dependency_tracking" = xyes; then 2742 continue 2743 else 2744 break 2745 fi 2746 ;; 2747 none) break ;; 2748 esac 2749 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2750 # mode. It turns out that the SunPro C++ compiler does not properly 2751 # handle `-M -o', and we need to detect this. 2752 if depmode=$depmode \ 2753 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2754 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2755 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2756 >/dev/null 2>conftest.err && 2757 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2758 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2759 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2760 # icc doesn't choke on unknown options, it will just issue warnings 2761 # (even with -Werror). So we grep stderr for any message 2762 # that says an option was ignored. 2763 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 2764 am_cv_CC_dependencies_compiler_type=$depmode 2765 break 2766 fi 2767 fi 2768 done 2769 2770 cd .. 2771 rm -rf conftest.dir 2772else 2773 am_cv_CC_dependencies_compiler_type=none 2774fi 2775 2776fi 2777echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2778echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2779CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2780 2781 2782 2783if 2784 test "x$enable_dependency_tracking" != xno \ 2785 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 2786 am__fastdepCC_TRUE= 2787 am__fastdepCC_FALSE='#' 2788else 2789 am__fastdepCC_TRUE='#' 2790 am__fastdepCC_FALSE= 2791fi 2792 2793 2794 2795 2796for ac_func in atexit 2797do 2798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 2799echo "$as_me:$LINENO: checking for $ac_func" >&5 2800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 2801if eval "test \"\${$as_ac_var+set}\" = set"; then 2802 echo $ECHO_N "(cached) $ECHO_C" >&6 2803else 2804 cat >conftest.$ac_ext <<_ACEOF 2805#line $LINENO "configure" 2806/* confdefs.h. */ 2807_ACEOF 2808cat confdefs.h >>conftest.$ac_ext 2809cat >>conftest.$ac_ext <<_ACEOF 2810/* end confdefs.h. */ 2811/* System header to define __stub macros and hopefully few prototypes, 2812 which can conflict with char $ac_func (); below. 2813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2814 <limits.h> exists even on freestanding compilers. */ 2815#ifdef __STDC__ 2816# include <limits.h> 2817#else 2818# include <assert.h> 2819#endif 2820/* Override any gcc2 internal prototype to avoid an error. */ 2821#ifdef __cplusplus 2822extern "C" 2823{ 2824#endif 2825/* We use char because int might match the return type of a gcc2 2826 builtin and then its argument prototype would still apply. */ 2827char $ac_func (); 2828/* The GNU C library defines this for functions which it implements 2829 to always fail with ENOSYS. Some functions are actually named 2830 something starting with __ and the normal name is an alias. */ 2831#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2832choke me 2833#else 2834char (*f) () = $ac_func; 2835#endif 2836#ifdef __cplusplus 2837} 2838#endif 2839 2840int 2841main () 2842{ 2843return f != $ac_func; 2844 ; 2845 return 0; 2846} 2847_ACEOF 2848rm -f conftest.$ac_objext conftest$ac_exeext 2849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2850 (eval $ac_link) 2>&5 2851 ac_status=$? 2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2853 (exit $ac_status); } && 2854 { ac_try='test -s conftest$ac_exeext' 2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2856 (eval $ac_try) 2>&5 2857 ac_status=$? 2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2859 (exit $ac_status); }; }; then 2860 eval "$as_ac_var=yes" 2861else 2862 echo "$as_me: failed program was:" >&5 2863sed 's/^/| /' conftest.$ac_ext >&5 2864 2865eval "$as_ac_var=no" 2866fi 2867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 2868fi 2869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 2870echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 2871if test `eval echo '${'$as_ac_var'}'` = yes; then 2872 cat >>confdefs.h <<_ACEOF 2873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 2874_ACEOF 2875 2876fi 2877done 2878 2879echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 2880echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 2881if test "${ac_cv_c_const+set}" = set; then 2882 echo $ECHO_N "(cached) $ECHO_C" >&6 2883else 2884 cat >conftest.$ac_ext <<_ACEOF 2885#line $LINENO "configure" 2886/* confdefs.h. */ 2887_ACEOF 2888cat confdefs.h >>conftest.$ac_ext 2889cat >>conftest.$ac_ext <<_ACEOF 2890/* end confdefs.h. */ 2891 2892int 2893main () 2894{ 2895/* FIXME: Include the comments suggested by Paul. */ 2896#ifndef __cplusplus 2897 /* Ultrix mips cc rejects this. */ 2898 typedef int charset[2]; 2899 const charset x; 2900 /* SunOS 4.1.1 cc rejects this. */ 2901 char const *const *ccp; 2902 char **p; 2903 /* NEC SVR4.0.2 mips cc rejects this. */ 2904 struct point {int x, y;}; 2905 static struct point const zero = {0,0}; 2906 /* AIX XL C 1.02.0.0 rejects this. 2907 It does not let you subtract one const X* pointer from another in 2908 an arm of an if-expression whose if-part is not a constant 2909 expression */ 2910 const char *g = "string"; 2911 ccp = &g + (g ? g-g : 0); 2912 /* HPUX 7.0 cc rejects these. */ 2913 ++ccp; 2914 p = (char**) ccp; 2915 ccp = (char const *const *) p; 2916 { /* SCO 3.2v4 cc rejects this. */ 2917 char *t; 2918 char const *s = 0 ? (char *) 0 : (char const *) 0; 2919 2920 *t++ = 0; 2921 } 2922 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2923 int x[] = {25, 17}; 2924 const int *foo = &x[0]; 2925 ++foo; 2926 } 2927 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2928 typedef const int *iptr; 2929 iptr p = 0; 2930 ++p; 2931 } 2932 { /* AIX XL C 1.02.0.0 rejects this saying 2933 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2934 struct s { int j; const int *ap[3]; }; 2935 struct s *b; b->j = 5; 2936 } 2937 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2938 const int foo = 10; 2939 } 2940#endif 2941 2942 ; 2943 return 0; 2944} 2945_ACEOF 2946rm -f conftest.$ac_objext 2947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2948 (eval $ac_compile) 2>&5 2949 ac_status=$? 2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951 (exit $ac_status); } && 2952 { ac_try='test -s conftest.$ac_objext' 2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2954 (eval $ac_try) 2>&5 2955 ac_status=$? 2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); }; }; then 2958 ac_cv_c_const=yes 2959else 2960 echo "$as_me: failed program was:" >&5 2961sed 's/^/| /' conftest.$ac_ext >&5 2962 2963ac_cv_c_const=no 2964fi 2965rm -f conftest.$ac_objext conftest.$ac_ext 2966fi 2967echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 2968echo "${ECHO_T}$ac_cv_c_const" >&6 2969if test $ac_cv_c_const = no; then 2970 2971cat >>confdefs.h <<\_ACEOF 2972#define const 2973_ACEOF 2974 2975fi 2976 2977ac_ext=c 2978ac_cpp='$CPP $CPPFLAGS' 2979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2981ac_compiler_gnu=$ac_cv_c_compiler_gnu 2982echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2983echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2984# On Suns, sometimes $CPP names a directory. 2985if test -n "$CPP" && test -d "$CPP"; then 2986 CPP= 2987fi 2988if test -z "$CPP"; then 2989 if test "${ac_cv_prog_CPP+set}" = set; then 2990 echo $ECHO_N "(cached) $ECHO_C" >&6 2991else 2992 # Double quotes because CPP needs to be expanded 2993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2994 do 2995 ac_preproc_ok=false 2996for ac_c_preproc_warn_flag in '' yes 2997do 2998 # Use a header file that comes with gcc, so configuring glibc 2999 # with a fresh cross-compiler works. 3000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3001 # <limits.h> exists even on freestanding compilers. 3002 # On the NeXT, cc -E runs the code through the compiler's parser, 3003 # not just through cpp. "Syntax error" is here to catch this case. 3004 cat >conftest.$ac_ext <<_ACEOF 3005#line $LINENO "configure" 3006/* confdefs.h. */ 3007_ACEOF 3008cat confdefs.h >>conftest.$ac_ext 3009cat >>conftest.$ac_ext <<_ACEOF 3010/* end confdefs.h. */ 3011#ifdef __STDC__ 3012# include <limits.h> 3013#else 3014# include <assert.h> 3015#endif 3016 Syntax error 3017_ACEOF 3018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3020 ac_status=$? 3021 grep -v '^ *+' conftest.er1 >conftest.err 3022 rm -f conftest.er1 3023 cat conftest.err >&5 3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3025 (exit $ac_status); } >/dev/null; then 3026 if test -s conftest.err; then 3027 ac_cpp_err=$ac_c_preproc_warn_flag 3028 else 3029 ac_cpp_err= 3030 fi 3031else 3032 ac_cpp_err=yes 3033fi 3034if test -z "$ac_cpp_err"; then 3035 : 3036else 3037 echo "$as_me: failed program was:" >&5 3038sed 's/^/| /' conftest.$ac_ext >&5 3039 3040 # Broken: fails on valid input. 3041continue 3042fi 3043rm -f conftest.err conftest.$ac_ext 3044 3045 # OK, works on sane cases. Now check whether non-existent headers 3046 # can be detected and how. 3047 cat >conftest.$ac_ext <<_ACEOF 3048#line $LINENO "configure" 3049/* confdefs.h. */ 3050_ACEOF 3051cat confdefs.h >>conftest.$ac_ext 3052cat >>conftest.$ac_ext <<_ACEOF 3053/* end confdefs.h. */ 3054#include <ac_nonexistent.h> 3055_ACEOF 3056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3058 ac_status=$? 3059 grep -v '^ *+' conftest.er1 >conftest.err 3060 rm -f conftest.er1 3061 cat conftest.err >&5 3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3063 (exit $ac_status); } >/dev/null; then 3064 if test -s conftest.err; then 3065 ac_cpp_err=$ac_c_preproc_warn_flag 3066 else 3067 ac_cpp_err= 3068 fi 3069else 3070 ac_cpp_err=yes 3071fi 3072if test -z "$ac_cpp_err"; then 3073 # Broken: success on invalid input. 3074continue 3075else 3076 echo "$as_me: failed program was:" >&5 3077sed 's/^/| /' conftest.$ac_ext >&5 3078 3079 # Passes both tests. 3080ac_preproc_ok=: 3081break 3082fi 3083rm -f conftest.err conftest.$ac_ext 3084 3085done 3086# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3087rm -f conftest.err conftest.$ac_ext 3088if $ac_preproc_ok; then 3089 break 3090fi 3091 3092 done 3093 ac_cv_prog_CPP=$CPP 3094 3095fi 3096 CPP=$ac_cv_prog_CPP 3097else 3098 ac_cv_prog_CPP=$CPP 3099fi 3100echo "$as_me:$LINENO: result: $CPP" >&5 3101echo "${ECHO_T}$CPP" >&6 3102ac_preproc_ok=false 3103for ac_c_preproc_warn_flag in '' yes 3104do 3105 # Use a header file that comes with gcc, so configuring glibc 3106 # with a fresh cross-compiler works. 3107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3108 # <limits.h> exists even on freestanding compilers. 3109 # On the NeXT, cc -E runs the code through the compiler's parser, 3110 # not just through cpp. "Syntax error" is here to catch this case. 3111 cat >conftest.$ac_ext <<_ACEOF 3112#line $LINENO "configure" 3113/* confdefs.h. */ 3114_ACEOF 3115cat confdefs.h >>conftest.$ac_ext 3116cat >>conftest.$ac_ext <<_ACEOF 3117/* end confdefs.h. */ 3118#ifdef __STDC__ 3119# include <limits.h> 3120#else 3121# include <assert.h> 3122#endif 3123 Syntax error 3124_ACEOF 3125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3127 ac_status=$? 3128 grep -v '^ *+' conftest.er1 >conftest.err 3129 rm -f conftest.er1 3130 cat conftest.err >&5 3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3132 (exit $ac_status); } >/dev/null; then 3133 if test -s conftest.err; then 3134 ac_cpp_err=$ac_c_preproc_warn_flag 3135 else 3136 ac_cpp_err= 3137 fi 3138else 3139 ac_cpp_err=yes 3140fi 3141if test -z "$ac_cpp_err"; then 3142 : 3143else 3144 echo "$as_me: failed program was:" >&5 3145sed 's/^/| /' conftest.$ac_ext >&5 3146 3147 # Broken: fails on valid input. 3148continue 3149fi 3150rm -f conftest.err conftest.$ac_ext 3151 3152 # OK, works on sane cases. Now check whether non-existent headers 3153 # can be detected and how. 3154 cat >conftest.$ac_ext <<_ACEOF 3155#line $LINENO "configure" 3156/* confdefs.h. */ 3157_ACEOF 3158cat confdefs.h >>conftest.$ac_ext 3159cat >>conftest.$ac_ext <<_ACEOF 3160/* end confdefs.h. */ 3161#include <ac_nonexistent.h> 3162_ACEOF 3163if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3165 ac_status=$? 3166 grep -v '^ *+' conftest.er1 >conftest.err 3167 rm -f conftest.er1 3168 cat conftest.err >&5 3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3170 (exit $ac_status); } >/dev/null; then 3171 if test -s conftest.err; then 3172 ac_cpp_err=$ac_c_preproc_warn_flag 3173 else 3174 ac_cpp_err= 3175 fi 3176else 3177 ac_cpp_err=yes 3178fi 3179if test -z "$ac_cpp_err"; then 3180 # Broken: success on invalid input. 3181continue 3182else 3183 echo "$as_me: failed program was:" >&5 3184sed 's/^/| /' conftest.$ac_ext >&5 3185 3186 # Passes both tests. 3187ac_preproc_ok=: 3188break 3189fi 3190rm -f conftest.err conftest.$ac_ext 3191 3192done 3193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3194rm -f conftest.err conftest.$ac_ext 3195if $ac_preproc_ok; then 3196 : 3197else 3198 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3199See \`config.log' for more details." >&5 3200echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3201See \`config.log' for more details." >&2;} 3202 { (exit 1); exit 1; }; } 3203fi 3204 3205ac_ext=c 3206ac_cpp='$CPP $CPPFLAGS' 3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3209ac_compiler_gnu=$ac_cv_c_compiler_gnu 3210 3211 3212echo "$as_me:$LINENO: checking for egrep" >&5 3213echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3214if test "${ac_cv_prog_egrep+set}" = set; then 3215 echo $ECHO_N "(cached) $ECHO_C" >&6 3216else 3217 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3218 then ac_cv_prog_egrep='grep -E' 3219 else ac_cv_prog_egrep='egrep' 3220 fi 3221fi 3222echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3223echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3224 EGREP=$ac_cv_prog_egrep 3225 3226 3227echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3228echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3229if test "${ac_cv_header_stdc+set}" = set; then 3230 echo $ECHO_N "(cached) $ECHO_C" >&6 3231else 3232 cat >conftest.$ac_ext <<_ACEOF 3233#line $LINENO "configure" 3234/* confdefs.h. */ 3235_ACEOF 3236cat confdefs.h >>conftest.$ac_ext 3237cat >>conftest.$ac_ext <<_ACEOF 3238/* end confdefs.h. */ 3239#include <stdlib.h> 3240#include <stdarg.h> 3241#include <string.h> 3242#include <float.h> 3243 3244int 3245main () 3246{ 3247 3248 ; 3249 return 0; 3250} 3251_ACEOF 3252rm -f conftest.$ac_objext 3253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3254 (eval $ac_compile) 2>&5 3255 ac_status=$? 3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3257 (exit $ac_status); } && 3258 { ac_try='test -s conftest.$ac_objext' 3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3260 (eval $ac_try) 2>&5 3261 ac_status=$? 3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3263 (exit $ac_status); }; }; then 3264 ac_cv_header_stdc=yes 3265else 3266 echo "$as_me: failed program was:" >&5 3267sed 's/^/| /' conftest.$ac_ext >&5 3268 3269ac_cv_header_stdc=no 3270fi 3271rm -f conftest.$ac_objext conftest.$ac_ext 3272 3273if test $ac_cv_header_stdc = yes; then 3274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3275 cat >conftest.$ac_ext <<_ACEOF 3276#line $LINENO "configure" 3277/* confdefs.h. */ 3278_ACEOF 3279cat confdefs.h >>conftest.$ac_ext 3280cat >>conftest.$ac_ext <<_ACEOF 3281/* end confdefs.h. */ 3282#include <string.h> 3283 3284_ACEOF 3285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3286 $EGREP "memchr" >/dev/null 2>&1; then 3287 : 3288else 3289 ac_cv_header_stdc=no 3290fi 3291rm -f conftest* 3292 3293fi 3294 3295if test $ac_cv_header_stdc = yes; then 3296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3297 cat >conftest.$ac_ext <<_ACEOF 3298#line $LINENO "configure" 3299/* confdefs.h. */ 3300_ACEOF 3301cat confdefs.h >>conftest.$ac_ext 3302cat >>conftest.$ac_ext <<_ACEOF 3303/* end confdefs.h. */ 3304#include <stdlib.h> 3305 3306_ACEOF 3307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3308 $EGREP "free" >/dev/null 2>&1; then 3309 : 3310else 3311 ac_cv_header_stdc=no 3312fi 3313rm -f conftest* 3314 3315fi 3316 3317if test $ac_cv_header_stdc = yes; then 3318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3319 if test "$cross_compiling" = yes; then 3320 : 3321else 3322 cat >conftest.$ac_ext <<_ACEOF 3323#line $LINENO "configure" 3324/* confdefs.h. */ 3325_ACEOF 3326cat confdefs.h >>conftest.$ac_ext 3327cat >>conftest.$ac_ext <<_ACEOF 3328/* end confdefs.h. */ 3329#include <ctype.h> 3330#if ((' ' & 0x0FF) == 0x020) 3331# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3332# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3333#else 3334# define ISLOWER(c) \ 3335 (('a' <= (c) && (c) <= 'i') \ 3336 || ('j' <= (c) && (c) <= 'r') \ 3337 || ('s' <= (c) && (c) <= 'z')) 3338# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3339#endif 3340 3341#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3342int 3343main () 3344{ 3345 int i; 3346 for (i = 0; i < 256; i++) 3347 if (XOR (islower (i), ISLOWER (i)) 3348 || toupper (i) != TOUPPER (i)) 3349 exit(2); 3350 exit (0); 3351} 3352_ACEOF 3353rm -f conftest$ac_exeext 3354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3355 (eval $ac_link) 2>&5 3356 ac_status=$? 3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3360 (eval $ac_try) 2>&5 3361 ac_status=$? 3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3363 (exit $ac_status); }; }; then 3364 : 3365else 3366 echo "$as_me: program exited with status $ac_status" >&5 3367echo "$as_me: failed program was:" >&5 3368sed 's/^/| /' conftest.$ac_ext >&5 3369 3370( exit $ac_status ) 3371ac_cv_header_stdc=no 3372fi 3373rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3374fi 3375fi 3376fi 3377echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3378echo "${ECHO_T}$ac_cv_header_stdc" >&6 3379if test $ac_cv_header_stdc = yes; then 3380 3381cat >>confdefs.h <<\_ACEOF 3382#define STDC_HEADERS 1 3383_ACEOF 3384 3385fi 3386 3387# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3398 inttypes.h stdint.h unistd.h 3399do 3400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3401echo "$as_me:$LINENO: checking for $ac_header" >&5 3402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3403if eval "test \"\${$as_ac_Header+set}\" = set"; then 3404 echo $ECHO_N "(cached) $ECHO_C" >&6 3405else 3406 cat >conftest.$ac_ext <<_ACEOF 3407#line $LINENO "configure" 3408/* confdefs.h. */ 3409_ACEOF 3410cat confdefs.h >>conftest.$ac_ext 3411cat >>conftest.$ac_ext <<_ACEOF 3412/* end confdefs.h. */ 3413$ac_includes_default 3414 3415#include <$ac_header> 3416_ACEOF 3417rm -f conftest.$ac_objext 3418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3419 (eval $ac_compile) 2>&5 3420 ac_status=$? 3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3422 (exit $ac_status); } && 3423 { ac_try='test -s conftest.$ac_objext' 3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3425 (eval $ac_try) 2>&5 3426 ac_status=$? 3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3428 (exit $ac_status); }; }; then 3429 eval "$as_ac_Header=yes" 3430else 3431 echo "$as_me: failed program was:" >&5 3432sed 's/^/| /' conftest.$ac_ext >&5 3433 3434eval "$as_ac_Header=no" 3435fi 3436rm -f conftest.$ac_objext conftest.$ac_ext 3437fi 3438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3440if test `eval echo '${'$as_ac_Header'}'` = yes; then 3441 cat >>confdefs.h <<_ACEOF 3442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3443_ACEOF 3444 3445fi 3446 3447done 3448 3449 3450 3451for ac_header in stdlib.h 3452do 3453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3454if eval "test \"\${$as_ac_Header+set}\" = set"; then 3455 echo "$as_me:$LINENO: checking for $ac_header" >&5 3456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3457if eval "test \"\${$as_ac_Header+set}\" = set"; then 3458 echo $ECHO_N "(cached) $ECHO_C" >&6 3459fi 3460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3462else 3463 # Is the header compilable? 3464echo "$as_me:$LINENO: checking $ac_header usability" >&5 3465echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 3466cat >conftest.$ac_ext <<_ACEOF 3467#line $LINENO "configure" 3468/* confdefs.h. */ 3469_ACEOF 3470cat confdefs.h >>conftest.$ac_ext 3471cat >>conftest.$ac_ext <<_ACEOF 3472/* end confdefs.h. */ 3473$ac_includes_default 3474#include <$ac_header> 3475_ACEOF 3476rm -f conftest.$ac_objext 3477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3478 (eval $ac_compile) 2>&5 3479 ac_status=$? 3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3481 (exit $ac_status); } && 3482 { ac_try='test -s conftest.$ac_objext' 3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3484 (eval $ac_try) 2>&5 3485 ac_status=$? 3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3487 (exit $ac_status); }; }; then 3488 ac_header_compiler=yes 3489else 3490 echo "$as_me: failed program was:" >&5 3491sed 's/^/| /' conftest.$ac_ext >&5 3492 3493ac_header_compiler=no 3494fi 3495rm -f conftest.$ac_objext conftest.$ac_ext 3496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3497echo "${ECHO_T}$ac_header_compiler" >&6 3498 3499# Is the header present? 3500echo "$as_me:$LINENO: checking $ac_header presence" >&5 3501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 3502cat >conftest.$ac_ext <<_ACEOF 3503#line $LINENO "configure" 3504/* confdefs.h. */ 3505_ACEOF 3506cat confdefs.h >>conftest.$ac_ext 3507cat >>conftest.$ac_ext <<_ACEOF 3508/* end confdefs.h. */ 3509#include <$ac_header> 3510_ACEOF 3511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3513 ac_status=$? 3514 grep -v '^ *+' conftest.er1 >conftest.err 3515 rm -f conftest.er1 3516 cat conftest.err >&5 3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3518 (exit $ac_status); } >/dev/null; then 3519 if test -s conftest.err; then 3520 ac_cpp_err=$ac_c_preproc_warn_flag 3521 else 3522 ac_cpp_err= 3523 fi 3524else 3525 ac_cpp_err=yes 3526fi 3527if test -z "$ac_cpp_err"; then 3528 ac_header_preproc=yes 3529else 3530 echo "$as_me: failed program was:" >&5 3531sed 's/^/| /' conftest.$ac_ext >&5 3532 3533 ac_header_preproc=no 3534fi 3535rm -f conftest.err conftest.$ac_ext 3536echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3537echo "${ECHO_T}$ac_header_preproc" >&6 3538 3539# So? What about this header? 3540case $ac_header_compiler:$ac_header_preproc in 3541 yes:no ) 3542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 3543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 3544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3546 ( 3547 cat <<\_ASBOX 3548## ------------------------------------ ## 3549## Report this to bug-autoconf@gnu.org. ## 3550## ------------------------------------ ## 3551_ASBOX 3552 ) | 3553 sed "s/^/$as_me: WARNING: /" >&2 3554 ;; 3555 no:yes ) 3556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 3557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 3558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 3559echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 3560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 3561echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 3562 ( 3563 cat <<\_ASBOX 3564## ------------------------------------ ## 3565## Report this to bug-autoconf@gnu.org. ## 3566## ------------------------------------ ## 3567_ASBOX 3568 ) | 3569 sed "s/^/$as_me: WARNING: /" >&2 3570 ;; 3571esac 3572echo "$as_me:$LINENO: checking for $ac_header" >&5 3573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3574if eval "test \"\${$as_ac_Header+set}\" = set"; then 3575 echo $ECHO_N "(cached) $ECHO_C" >&6 3576else 3577 eval "$as_ac_Header=$ac_header_preproc" 3578fi 3579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3581 3582fi 3583if test `eval echo '${'$as_ac_Header'}'` = yes; then 3584 cat >>confdefs.h <<_ACEOF 3585#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3586_ACEOF 3587 3588fi 3589 3590done 3591 3592echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 3593echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 3594if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then 3595 echo $ECHO_N "(cached) $ECHO_C" >&6 3596else 3597 if test "$cross_compiling" = yes; then 3598 ac_cv_func_malloc_0_nonnull=no 3599else 3600 cat >conftest.$ac_ext <<_ACEOF 3601#line $LINENO "configure" 3602/* confdefs.h. */ 3603_ACEOF 3604cat confdefs.h >>conftest.$ac_ext 3605cat >>conftest.$ac_ext <<_ACEOF 3606/* end confdefs.h. */ 3607#if STDC_HEADERS || HAVE_STDLIB_H 3608# include <stdlib.h> 3609#else 3610char *malloc (); 3611#endif 3612 3613int 3614main () 3615{ 3616exit (malloc (0) ? 0 : 1); 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621rm -f conftest$ac_exeext 3622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3623 (eval $ac_link) 2>&5 3624 ac_status=$? 3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3628 (eval $ac_try) 2>&5 3629 ac_status=$? 3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3631 (exit $ac_status); }; }; then 3632 ac_cv_func_malloc_0_nonnull=yes 3633else 3634 echo "$as_me: program exited with status $ac_status" >&5 3635echo "$as_me: failed program was:" >&5 3636sed 's/^/| /' conftest.$ac_ext >&5 3637 3638( exit $ac_status ) 3639ac_cv_func_malloc_0_nonnull=no 3640fi 3641rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3642fi 3643fi 3644echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 3645echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 3646if test $ac_cv_func_malloc_0_nonnull = yes; then 3647 3648cat >>confdefs.h <<\_ACEOF 3649#define HAVE_MALLOC 1 3650_ACEOF 3651 3652else 3653 cat >>confdefs.h <<\_ACEOF 3654#define HAVE_MALLOC 0 3655_ACEOF 3656 3657 LIBOBJS="$LIBOBJS malloc.$ac_objext" 3658 3659cat >>confdefs.h <<\_ACEOF 3660#define malloc rpl_malloc 3661_ACEOF 3662 3663fi 3664 3665 3666 3667 3668SDL_VERSION=1.2.4 3669 3670# Check whether --with-sdl-prefix or --without-sdl-prefix was given. 3671if test "${with_sdl_prefix+set}" = set; then 3672 withval="$with_sdl_prefix" 3673 sdl_prefix="$withval" 3674else 3675 sdl_prefix="" 3676fi; 3677 3678# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. 3679if test "${with_sdl_exec_prefix+set}" = set; then 3680 withval="$with_sdl_exec_prefix" 3681 sdl_exec_prefix="$withval" 3682else 3683 sdl_exec_prefix="" 3684fi; 3685# Check whether --enable-sdltest or --disable-sdltest was given. 3686if test "${enable_sdltest+set}" = set; then 3687 enableval="$enable_sdltest" 3688 3689else 3690 enable_sdltest=yes 3691fi; 3692 3693 if test x$sdl_exec_prefix != x ; then 3694 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" 3695 if test x${SDL_CONFIG+set} != xset ; then 3696 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config 3697 fi 3698 fi 3699 if test x$sdl_prefix != x ; then 3700 sdl_args="$sdl_args --prefix=$sdl_prefix" 3701 if test x${SDL_CONFIG+set} != xset ; then 3702 SDL_CONFIG=$sdl_prefix/bin/sdl-config 3703 fi 3704 fi 3705 3706 3707 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 3708 # Extract the first word of "sdl-config", so it can be a program name with args. 3709set dummy sdl-config; ac_word=$2 3710echo "$as_me:$LINENO: checking for $ac_word" >&5 3711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3712if test "${ac_cv_path_SDL_CONFIG+set}" = set; then 3713 echo $ECHO_N "(cached) $ECHO_C" >&6 3714else 3715 case $SDL_CONFIG in 3716 [\\/]* | ?:[\\/]*) 3717 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 3718 ;; 3719 *) 3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3721for as_dir in $PATH 3722do 3723 IFS=$as_save_IFS 3724 test -z "$as_dir" && as_dir=. 3725 for ac_exec_ext in '' $ac_executable_extensions; do 3726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3727 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3729 break 2 3730 fi 3731done 3732done 3733 3734 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 3735 ;; 3736esac 3737fi 3738SDL_CONFIG=$ac_cv_path_SDL_CONFIG 3739 3740if test -n "$SDL_CONFIG"; then 3741 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 3742echo "${ECHO_T}$SDL_CONFIG" >&6 3743else 3744 echo "$as_me:$LINENO: result: no" >&5 3745echo "${ECHO_T}no" >&6 3746fi 3747 3748 min_sdl_version=$SDL_VERSION 3749 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 3750echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 3751 no_sdl="" 3752 if test "$SDL_CONFIG" = "no" ; then 3753 no_sdl=yes 3754 else 3755 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` 3756 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` 3757 3758 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ 3759 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 3760 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ 3761 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 3762 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 3763 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 3764 if test "x$enable_sdltest" = "xyes" ; then 3765 ac_save_CFLAGS="$CFLAGS" 3766 ac_save_LIBS="$LIBS" 3767 CFLAGS="$CFLAGS $SDL_CFLAGS" 3768 LIBS="$LIBS $SDL_LIBS" 3769 rm -f conf.sdltest 3770 if test "$cross_compiling" = yes; then 3771 echo $ac_n "cross compiling; assumed OK... $ac_c" 3772else 3773 cat >conftest.$ac_ext <<_ACEOF 3774#line $LINENO "configure" 3775/* confdefs.h. */ 3776_ACEOF 3777cat confdefs.h >>conftest.$ac_ext 3778cat >>conftest.$ac_ext <<_ACEOF 3779/* end confdefs.h. */ 3780 3781#include <stdio.h> 3782#include <stdlib.h> 3783#include <string.h> 3784#include "SDL.h" 3785 3786char* 3787my_strdup (char *str) 3788{ 3789 char *new_str; 3790 3791 if (str) 3792 { 3793 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 3794 strcpy (new_str, str); 3795 } 3796 else 3797 new_str = NULL; 3798 3799 return new_str; 3800} 3801 3802int main (int argc, char *argv[]) 3803{ 3804 int major, minor, micro; 3805 char *tmp_version; 3806 3807 /* This hangs on some systems (?) 3808 system ("touch conf.sdltest"); 3809 */ 3810 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 3811 3812 /* HP/UX 9 (%@#!) writes to sscanf strings */ 3813 tmp_version = my_strdup("$min_sdl_version"); 3814 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 3815 printf("%s, bad version string\n", "$min_sdl_version"); 3816 exit(1); 3817 } 3818 3819 if (($sdl_major_version > major) || 3820 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 3821 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 3822 { 3823 return 0; 3824 } 3825 else 3826 { 3827 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 3828 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); 3829 printf("*** best to upgrade to the required version.\n"); 3830 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); 3831 printf("*** to point to the correct copy of sdl-config, and remove the file\n"); 3832 printf("*** config.cache before re-running configure\n"); 3833 return 1; 3834 } 3835} 3836 3837 3838_ACEOF 3839rm -f conftest$ac_exeext 3840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3841 (eval $ac_link) 2>&5 3842 ac_status=$? 3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3846 (eval $ac_try) 2>&5 3847 ac_status=$? 3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3849 (exit $ac_status); }; }; then 3850 : 3851else 3852 echo "$as_me: program exited with status $ac_status" >&5 3853echo "$as_me: failed program was:" >&5 3854sed 's/^/| /' conftest.$ac_ext >&5 3855 3856( exit $ac_status ) 3857no_sdl=yes 3858fi 3859rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3860fi 3861 CFLAGS="$ac_save_CFLAGS" 3862 LIBS="$ac_save_LIBS" 3863 fi 3864 fi 3865 if test "x$no_sdl" = x ; then 3866 echo "$as_me:$LINENO: result: yes" >&5 3867echo "${ECHO_T}yes" >&6 3868 : 3869 else 3870 echo "$as_me:$LINENO: result: no" >&5 3871echo "${ECHO_T}no" >&6 3872 if test "$SDL_CONFIG" = "no" ; then 3873 echo "*** The sdl-config script installed by SDL could not be found" 3874 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 3875 echo "*** your path, or set the SDL_CONFIG environment variable to the" 3876 echo "*** full path to sdl-config." 3877 else 3878 if test -f conf.sdltest ; then 3879 : 3880 else 3881 echo "*** Could not run SDL test program, checking why..." 3882 CFLAGS="$CFLAGS $SDL_CFLAGS" 3883 LIBS="$LIBS $SDL_LIBS" 3884 cat >conftest.$ac_ext <<_ACEOF 3885#line $LINENO "configure" 3886/* confdefs.h. */ 3887_ACEOF 3888cat confdefs.h >>conftest.$ac_ext 3889cat >>conftest.$ac_ext <<_ACEOF 3890/* end confdefs.h. */ 3891 3892#include <stdio.h> 3893#include "SDL.h" 3894 3895int main(int argc, char *argv[]) 3896{ return 0; } 3897#undef main 3898#define main K_and_R_C_main 3899 3900int 3901main () 3902{ 3903 return 0; 3904 ; 3905 return 0; 3906} 3907_ACEOF 3908rm -f conftest.$ac_objext conftest$ac_exeext 3909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3910 (eval $ac_link) 2>&5 3911 ac_status=$? 3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3913 (exit $ac_status); } && 3914 { ac_try='test -s conftest$ac_exeext' 3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3916 (eval $ac_try) 2>&5 3917 ac_status=$? 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3919 (exit $ac_status); }; }; then 3920 echo "*** The test program compiled, but did not run. This usually means" 3921 echo "*** that the run-time linker is not finding SDL or finding the wrong" 3922 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 3923 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 3924 echo "*** to the installed location Also, make sure you have run ldconfig if that" 3925 echo "*** is required on your system" 3926 echo "***" 3927 echo "*** If you have an old version installed, it is best to remove it, although" 3928 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 3929else 3930 echo "$as_me: failed program was:" >&5 3931sed 's/^/| /' conftest.$ac_ext >&5 3932 3933 echo "*** The test program failed to compile or link. See the file config.log for the" 3934 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 3935 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 3936 echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 3937fi 3938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3939 CFLAGS="$ac_save_CFLAGS" 3940 LIBS="$ac_save_LIBS" 3941 fi 3942 fi 3943 SDL_CFLAGS="" 3944 SDL_LIBS="" 3945 { { echo "$as_me:$LINENO: error: *** SDL >= $SDL_VERSION not found!" >&5 3946echo "$as_me: error: *** SDL >= $SDL_VERSION not found!" >&2;} 3947 { (exit 1); exit 1; }; } 3948 fi 3949 3950 3951 rm -f conf.sdltest 3952 3953 3954 3955echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5 3956echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6 3957if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then 3958 echo $ECHO_N "(cached) $ECHO_C" >&6 3959else 3960 ac_check_lib_save_LIBS=$LIBS 3961LIBS="-lSDL_mixer $LIBS" 3962cat >conftest.$ac_ext <<_ACEOF 3963#line $LINENO "configure" 3964/* confdefs.h. */ 3965_ACEOF 3966cat confdefs.h >>conftest.$ac_ext 3967cat >>conftest.$ac_ext <<_ACEOF 3968/* end confdefs.h. */ 3969 3970/* Override any gcc2 internal prototype to avoid an error. */ 3971#ifdef __cplusplus 3972extern "C" 3973#endif 3974/* We use char because int might match the return type of a gcc2 3975 builtin and then its argument prototype would still apply. */ 3976char Mix_OpenAudio (); 3977int 3978main () 3979{ 3980Mix_OpenAudio (); 3981 ; 3982 return 0; 3983} 3984_ACEOF 3985rm -f conftest.$ac_objext conftest$ac_exeext 3986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3987 (eval $ac_link) 2>&5 3988 ac_status=$? 3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3990 (exit $ac_status); } && 3991 { ac_try='test -s conftest$ac_exeext' 3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3993 (eval $ac_try) 2>&5 3994 ac_status=$? 3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3996 (exit $ac_status); }; }; then 3997 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes 3998else 3999 echo "$as_me: failed program was:" >&5 4000sed 's/^/| /' conftest.$ac_ext >&5 4001 4002ac_cv_lib_SDL_mixer_Mix_OpenAudio=no 4003fi 4004rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4005LIBS=$ac_check_lib_save_LIBS 4006fi 4007echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5 4008echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6 4009if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then 4010 if test "${ac_cv_header_SDL_SDL_mixer_h+set}" = set; then 4011 echo "$as_me:$LINENO: checking for SDL/SDL_mixer.h" >&5 4012echo $ECHO_N "checking for SDL/SDL_mixer.h... $ECHO_C" >&6 4013if test "${ac_cv_header_SDL_SDL_mixer_h+set}" = set; then 4014 echo $ECHO_N "(cached) $ECHO_C" >&6 4015fi 4016echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_mixer_h" >&5 4017echo "${ECHO_T}$ac_cv_header_SDL_SDL_mixer_h" >&6 4018else 4019 # Is the header compilable? 4020echo "$as_me:$LINENO: checking SDL/SDL_mixer.h usability" >&5 4021echo $ECHO_N "checking SDL/SDL_mixer.h usability... $ECHO_C" >&6 4022cat >conftest.$ac_ext <<_ACEOF 4023#line $LINENO "configure" 4024/* confdefs.h. */ 4025_ACEOF 4026cat confdefs.h >>conftest.$ac_ext 4027cat >>conftest.$ac_ext <<_ACEOF 4028/* end confdefs.h. */ 4029$ac_includes_default 4030#include <SDL/SDL_mixer.h> 4031_ACEOF 4032rm -f conftest.$ac_objext 4033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4034 (eval $ac_compile) 2>&5 4035 ac_status=$? 4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4037 (exit $ac_status); } && 4038 { ac_try='test -s conftest.$ac_objext' 4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4040 (eval $ac_try) 2>&5 4041 ac_status=$? 4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4043 (exit $ac_status); }; }; then 4044 ac_header_compiler=yes 4045else 4046 echo "$as_me: failed program was:" >&5 4047sed 's/^/| /' conftest.$ac_ext >&5 4048 4049ac_header_compiler=no 4050fi 4051rm -f conftest.$ac_objext conftest.$ac_ext 4052echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4053echo "${ECHO_T}$ac_header_compiler" >&6 4054 4055# Is the header present? 4056echo "$as_me:$LINENO: checking SDL/SDL_mixer.h presence" >&5 4057echo $ECHO_N "checking SDL/SDL_mixer.h presence... $ECHO_C" >&6 4058cat >conftest.$ac_ext <<_ACEOF 4059#line $LINENO "configure" 4060/* confdefs.h. */ 4061_ACEOF 4062cat confdefs.h >>conftest.$ac_ext 4063cat >>conftest.$ac_ext <<_ACEOF 4064/* end confdefs.h. */ 4065#include <SDL/SDL_mixer.h> 4066_ACEOF 4067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4069 ac_status=$? 4070 grep -v '^ *+' conftest.er1 >conftest.err 4071 rm -f conftest.er1 4072 cat conftest.err >&5 4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4074 (exit $ac_status); } >/dev/null; then 4075 if test -s conftest.err; then 4076 ac_cpp_err=$ac_c_preproc_warn_flag 4077 else 4078 ac_cpp_err= 4079 fi 4080else 4081 ac_cpp_err=yes 4082fi 4083if test -z "$ac_cpp_err"; then 4084 ac_header_preproc=yes 4085else 4086 echo "$as_me: failed program was:" >&5 4087sed 's/^/| /' conftest.$ac_ext >&5 4088 4089 ac_header_preproc=no 4090fi 4091rm -f conftest.err conftest.$ac_ext 4092echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4093echo "${ECHO_T}$ac_header_preproc" >&6 4094 4095# So? What about this header? 4096case $ac_header_compiler:$ac_header_preproc in 4097 yes:no ) 4098 { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: accepted by the compiler, rejected by the preprocessor!" >&5 4099echo "$as_me: WARNING: SDL/SDL_mixer.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4100 { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: proceeding with the preprocessor's result" >&5 4101echo "$as_me: WARNING: SDL/SDL_mixer.h: proceeding with the preprocessor's result" >&2;} 4102 ( 4103 cat <<\_ASBOX 4104## ------------------------------------ ## 4105## Report this to bug-autoconf@gnu.org. ## 4106## ------------------------------------ ## 4107_ASBOX 4108 ) | 4109 sed "s/^/$as_me: WARNING: /" >&2 4110 ;; 4111 no:yes ) 4112 { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: present but cannot be compiled" >&5 4113echo "$as_me: WARNING: SDL/SDL_mixer.h: present but cannot be compiled" >&2;} 4114 { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: check for missing prerequisite headers?" >&5 4115echo "$as_me: WARNING: SDL/SDL_mixer.h: check for missing prerequisite headers?" >&2;} 4116 { echo "$as_me:$LINENO: WARNING: SDL/SDL_mixer.h: proceeding with the preprocessor's result" >&5 4117echo "$as_me: WARNING: SDL/SDL_mixer.h: proceeding with the preprocessor's result" >&2;} 4118 ( 4119 cat <<\_ASBOX 4120## ------------------------------------ ## 4121## Report this to bug-autoconf@gnu.org. ## 4122## ------------------------------------ ## 4123_ASBOX 4124 ) | 4125 sed "s/^/$as_me: WARNING: /" >&2 4126 ;; 4127esac 4128echo "$as_me:$LINENO: checking for SDL/SDL_mixer.h" >&5 4129echo $ECHO_N "checking for SDL/SDL_mixer.h... $ECHO_C" >&6 4130if test "${ac_cv_header_SDL_SDL_mixer_h+set}" = set; then 4131 echo $ECHO_N "(cached) $ECHO_C" >&6 4132else 4133 ac_cv_header_SDL_SDL_mixer_h=$ac_header_preproc 4134fi 4135echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_mixer_h" >&5 4136echo "${ECHO_T}$ac_cv_header_SDL_SDL_mixer_h" >&6 4137 4138fi 4139if test $ac_cv_header_SDL_SDL_mixer_h = yes; then 4140 : 4141else 4142 { { echo "$as_me:$LINENO: error: *** Cannot find the SDL/SDL_mixer.h header 4143 goto http://www.libsdl.org to download or 4144 check you with your distibution. 4145 " >&5 4146echo "$as_me: error: *** Cannot find the SDL/SDL_mixer.h header 4147 goto http://www.libsdl.org to download or 4148 check you with your distibution. 4149 " >&2;} 4150 { (exit 1); exit 1; }; }; exit 4151fi 4152 4153 4154else 4155 { { echo "$as_me:$LINENO: error: *** Cannot find the SDL_mixer library 4156 goto http://www.libsdl.org to download or 4157 check you with your distibution. 4158 " >&5 4159echo "$as_me: error: *** Cannot find the SDL_mixer library 4160 goto http://www.libsdl.org to download or 4161 check you with your distibution. 4162 " >&2;} 4163 { (exit 1); exit 1; }; }; exit 4164fi 4165 4166 4167echo "$as_me:$LINENO: checking for TTF_Quit in -lSDL_ttf" >&5 4168echo $ECHO_N "checking for TTF_Quit in -lSDL_ttf... $ECHO_C" >&6 4169if test "${ac_cv_lib_SDL_ttf_TTF_Quit+set}" = set; then 4170 echo $ECHO_N "(cached) $ECHO_C" >&6 4171else 4172 ac_check_lib_save_LIBS=$LIBS 4173LIBS="-lSDL_ttf $LIBS" 4174cat >conftest.$ac_ext <<_ACEOF 4175#line $LINENO "configure" 4176/* confdefs.h. */ 4177_ACEOF 4178cat confdefs.h >>conftest.$ac_ext 4179cat >>conftest.$ac_ext <<_ACEOF 4180/* end confdefs.h. */ 4181 4182/* Override any gcc2 internal prototype to avoid an error. */ 4183#ifdef __cplusplus 4184extern "C" 4185#endif 4186/* We use char because int might match the return type of a gcc2 4187 builtin and then its argument prototype would still apply. */ 4188char TTF_Quit (); 4189int 4190main () 4191{ 4192TTF_Quit (); 4193 ; 4194 return 0; 4195} 4196_ACEOF 4197rm -f conftest.$ac_objext conftest$ac_exeext 4198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4199 (eval $ac_link) 2>&5 4200 ac_status=$? 4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4202 (exit $ac_status); } && 4203 { ac_try='test -s conftest$ac_exeext' 4204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4205 (eval $ac_try) 2>&5 4206 ac_status=$? 4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4208 (exit $ac_status); }; }; then 4209 ac_cv_lib_SDL_ttf_TTF_Quit=yes 4210else 4211 echo "$as_me: failed program was:" >&5 4212sed 's/^/| /' conftest.$ac_ext >&5 4213 4214ac_cv_lib_SDL_ttf_TTF_Quit=no 4215fi 4216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4217LIBS=$ac_check_lib_save_LIBS 4218fi 4219echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_Quit" >&5 4220echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_Quit" >&6 4221if test $ac_cv_lib_SDL_ttf_TTF_Quit = yes; then 4222 if test "${ac_cv_header_SDL_SDL_ttf_h+set}" = set; then 4223 echo "$as_me:$LINENO: checking for SDL/SDL_ttf.h" >&5 4224echo $ECHO_N "checking for SDL/SDL_ttf.h... $ECHO_C" >&6 4225if test "${ac_cv_header_SDL_SDL_ttf_h+set}" = set; then 4226 echo $ECHO_N "(cached) $ECHO_C" >&6 4227fi 4228echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_ttf_h" >&5 4229echo "${ECHO_T}$ac_cv_header_SDL_SDL_ttf_h" >&6 4230else 4231 # Is the header compilable? 4232echo "$as_me:$LINENO: checking SDL/SDL_ttf.h usability" >&5 4233echo $ECHO_N "checking SDL/SDL_ttf.h usability... $ECHO_C" >&6 4234cat >conftest.$ac_ext <<_ACEOF 4235#line $LINENO "configure" 4236/* confdefs.h. */ 4237_ACEOF 4238cat confdefs.h >>conftest.$ac_ext 4239cat >>conftest.$ac_ext <<_ACEOF 4240/* end confdefs.h. */ 4241$ac_includes_default 4242#include <SDL/SDL_ttf.h> 4243_ACEOF 4244rm -f conftest.$ac_objext 4245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4246 (eval $ac_compile) 2>&5 4247 ac_status=$? 4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4249 (exit $ac_status); } && 4250 { ac_try='test -s conftest.$ac_objext' 4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4252 (eval $ac_try) 2>&5 4253 ac_status=$? 4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4255 (exit $ac_status); }; }; then 4256 ac_header_compiler=yes 4257else 4258 echo "$as_me: failed program was:" >&5 4259sed 's/^/| /' conftest.$ac_ext >&5 4260 4261ac_header_compiler=no 4262fi 4263rm -f conftest.$ac_objext conftest.$ac_ext 4264echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4265echo "${ECHO_T}$ac_header_compiler" >&6 4266 4267# Is the header present? 4268echo "$as_me:$LINENO: checking SDL/SDL_ttf.h presence" >&5 4269echo $ECHO_N "checking SDL/SDL_ttf.h presence... $ECHO_C" >&6 4270cat >conftest.$ac_ext <<_ACEOF 4271#line $LINENO "configure" 4272/* confdefs.h. */ 4273_ACEOF 4274cat confdefs.h >>conftest.$ac_ext 4275cat >>conftest.$ac_ext <<_ACEOF 4276/* end confdefs.h. */ 4277#include <SDL/SDL_ttf.h> 4278_ACEOF 4279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4281 ac_status=$? 4282 grep -v '^ *+' conftest.er1 >conftest.err 4283 rm -f conftest.er1 4284 cat conftest.err >&5 4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 (exit $ac_status); } >/dev/null; then 4287 if test -s conftest.err; then 4288 ac_cpp_err=$ac_c_preproc_warn_flag 4289 else 4290 ac_cpp_err= 4291 fi 4292else 4293 ac_cpp_err=yes 4294fi 4295if test -z "$ac_cpp_err"; then 4296 ac_header_preproc=yes 4297else 4298 echo "$as_me: failed program was:" >&5 4299sed 's/^/| /' conftest.$ac_ext >&5 4300 4301 ac_header_preproc=no 4302fi 4303rm -f conftest.err conftest.$ac_ext 4304echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4305echo "${ECHO_T}$ac_header_preproc" >&6 4306 4307# So? What about this header? 4308case $ac_header_compiler:$ac_header_preproc in 4309 yes:no ) 4310 { echo "$as_me:$LINENO: WARNING: SDL/SDL_ttf.h: accepted by the compiler, rejected by the preprocessor!" >&5 4311echo "$as_me: WARNING: SDL/SDL_ttf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4312 { echo "$as_me:$LINENO: WARNING: SDL/SDL_ttf.h: proceeding with the preprocessor's result" >&5 4313echo "$as_me: WARNING: SDL/SDL_ttf.h: proceeding with the preprocessor's result" >&2;} 4314 ( 4315 cat <<\_ASBOX 4316## ------------------------------------ ## 4317## Report this to bug-autoconf@gnu.org. ## 4318## ------------------------------------ ## 4319_ASBOX 4320 ) | 4321 sed "s/^/$as_me: WARNING: /" >&2 4322 ;; 4323 no:yes ) 4324 { echo "$as_me:$LINENO: WARNING: SDL/SDL_ttf.h: present but cannot be compiled" >&5 4325echo "$as_me: WARNING: SDL/SDL_ttf.h: present but cannot be compiled" >&2;} 4326 { echo "$as_me:$LINENO: WARNING: SDL/SDL_ttf.h: check for missing prerequisite headers?" >&5 4327echo "$as_me: WARNING: SDL/SDL_ttf.h: check for missing prerequisite headers?" >&2;} 4328 { echo "$as_me:$LINENO: WARNING: SDL/SDL_ttf.h: proceeding with the preprocessor's result" >&5 4329echo "$as_me: WARNING: SDL/SDL_ttf.h: proceeding with the preprocessor's result" >&2;} 4330 ( 4331 cat <<\_ASBOX 4332## ------------------------------------ ## 4333## Report this to bug-autoconf@gnu.org. ## 4334## ------------------------------------ ## 4335_ASBOX 4336 ) | 4337 sed "s/^/$as_me: WARNING: /" >&2 4338 ;; 4339esac 4340echo "$as_me:$LINENO: checking for SDL/SDL_ttf.h" >&5 4341echo $ECHO_N "checking for SDL/SDL_ttf.h... $ECHO_C" >&6 4342if test "${ac_cv_header_SDL_SDL_ttf_h+set}" = set; then 4343 echo $ECHO_N "(cached) $ECHO_C" >&6 4344else 4345 ac_cv_header_SDL_SDL_ttf_h=$ac_header_preproc 4346fi 4347echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_ttf_h" >&5 4348echo "${ECHO_T}$ac_cv_header_SDL_SDL_ttf_h" >&6 4349 4350fi 4351if test $ac_cv_header_SDL_SDL_ttf_h = yes; then 4352 : 4353else 4354 { { echo "$as_me:$LINENO: error: *** Cannot find the SDL/SDL_ttf.h header 4355 goto http://www.libsdl.org to download or 4356 check you with your distibution. 4357 " >&5 4358echo "$as_me: error: *** Cannot find the SDL/SDL_ttf.h header 4359 goto http://www.libsdl.org to download or 4360 check you with your distibution. 4361 " >&2;} 4362 { (exit 1); exit 1; }; }; exit 4363fi 4364 4365 4366else 4367 { { echo "$as_me:$LINENO: error: *** Cannot find the SDL_ttf library 4368 goto http://www.libsdl.org to download or 4369 check you with your distibution. 4370 " >&5 4371echo "$as_me: error: *** Cannot find the SDL_ttf library 4372 goto http://www.libsdl.org to download or 4373 check you with your distibution. 4374 " >&2;} 4375 { (exit 1); exit 1; }; }; exit 4376fi 4377 4378 4379echo "$as_me:$LINENO: checking for IMG_Load in -lSDL_image" >&5 4380echo $ECHO_N "checking for IMG_Load in -lSDL_image... $ECHO_C" >&6 4381if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then 4382 echo $ECHO_N "(cached) $ECHO_C" >&6 4383else 4384 ac_check_lib_save_LIBS=$LIBS 4385LIBS="-lSDL_image $LIBS" 4386cat >conftest.$ac_ext <<_ACEOF 4387#line $LINENO "configure" 4388/* confdefs.h. */ 4389_ACEOF 4390cat confdefs.h >>conftest.$ac_ext 4391cat >>conftest.$ac_ext <<_ACEOF 4392/* end confdefs.h. */ 4393 4394/* Override any gcc2 internal prototype to avoid an error. */ 4395#ifdef __cplusplus 4396extern "C" 4397#endif 4398/* We use char because int might match the return type of a gcc2 4399 builtin and then its argument prototype would still apply. */ 4400char IMG_Load (); 4401int 4402main () 4403{ 4404IMG_Load (); 4405 ; 4406 return 0; 4407} 4408_ACEOF 4409rm -f conftest.$ac_objext conftest$ac_exeext 4410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4411 (eval $ac_link) 2>&5 4412 ac_status=$? 4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4414 (exit $ac_status); } && 4415 { ac_try='test -s conftest$ac_exeext' 4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4417 (eval $ac_try) 2>&5 4418 ac_status=$? 4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4420 (exit $ac_status); }; }; then 4421 ac_cv_lib_SDL_image_IMG_Load=yes 4422else 4423 echo "$as_me: failed program was:" >&5 4424sed 's/^/| /' conftest.$ac_ext >&5 4425 4426ac_cv_lib_SDL_image_IMG_Load=no 4427fi 4428rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 4429LIBS=$ac_check_lib_save_LIBS 4430fi 4431echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_Load" >&5 4432echo "${ECHO_T}$ac_cv_lib_SDL_image_IMG_Load" >&6 4433if test $ac_cv_lib_SDL_image_IMG_Load = yes; then 4434 if test "${ac_cv_header_SDL_SDL_image_h+set}" = set; then 4435 echo "$as_me:$LINENO: checking for SDL/SDL_image.h" >&5 4436echo $ECHO_N "checking for SDL/SDL_image.h... $ECHO_C" >&6 4437if test "${ac_cv_header_SDL_SDL_image_h+set}" = set; then 4438 echo $ECHO_N "(cached) $ECHO_C" >&6 4439fi 4440echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_image_h" >&5 4441echo "${ECHO_T}$ac_cv_header_SDL_SDL_image_h" >&6 4442else 4443 # Is the header compilable? 4444echo "$as_me:$LINENO: checking SDL/SDL_image.h usability" >&5 4445echo $ECHO_N "checking SDL/SDL_image.h usability... $ECHO_C" >&6 4446cat >conftest.$ac_ext <<_ACEOF 4447#line $LINENO "configure" 4448/* confdefs.h. */ 4449_ACEOF 4450cat confdefs.h >>conftest.$ac_ext 4451cat >>conftest.$ac_ext <<_ACEOF 4452/* end confdefs.h. */ 4453$ac_includes_default 4454#include <SDL/SDL_image.h> 4455_ACEOF 4456rm -f conftest.$ac_objext 4457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4458 (eval $ac_compile) 2>&5 4459 ac_status=$? 4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4461 (exit $ac_status); } && 4462 { ac_try='test -s conftest.$ac_objext' 4463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4464 (eval $ac_try) 2>&5 4465 ac_status=$? 4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4467 (exit $ac_status); }; }; then 4468 ac_header_compiler=yes 4469else 4470 echo "$as_me: failed program was:" >&5 4471sed 's/^/| /' conftest.$ac_ext >&5 4472 4473ac_header_compiler=no 4474fi 4475rm -f conftest.$ac_objext conftest.$ac_ext 4476echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4477echo "${ECHO_T}$ac_header_compiler" >&6 4478 4479# Is the header present? 4480echo "$as_me:$LINENO: checking SDL/SDL_image.h presence" >&5 4481echo $ECHO_N "checking SDL/SDL_image.h presence... $ECHO_C" >&6 4482cat >conftest.$ac_ext <<_ACEOF 4483#line $LINENO "configure" 4484/* confdefs.h. */ 4485_ACEOF 4486cat confdefs.h >>conftest.$ac_ext 4487cat >>conftest.$ac_ext <<_ACEOF 4488/* end confdefs.h. */ 4489#include <SDL/SDL_image.h> 4490_ACEOF 4491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4493 ac_status=$? 4494 grep -v '^ *+' conftest.er1 >conftest.err 4495 rm -f conftest.er1 4496 cat conftest.err >&5 4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4498 (exit $ac_status); } >/dev/null; then 4499 if test -s conftest.err; then 4500 ac_cpp_err=$ac_c_preproc_warn_flag 4501 else 4502 ac_cpp_err= 4503 fi 4504else 4505 ac_cpp_err=yes 4506fi 4507if test -z "$ac_cpp_err"; then 4508 ac_header_preproc=yes 4509else 4510 echo "$as_me: failed program was:" >&5 4511sed 's/^/| /' conftest.$ac_ext >&5 4512 4513 ac_header_preproc=no 4514fi 4515rm -f conftest.err conftest.$ac_ext 4516echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4517echo "${ECHO_T}$ac_header_preproc" >&6 4518 4519# So? What about this header? 4520case $ac_header_compiler:$ac_header_preproc in 4521 yes:no ) 4522 { echo "$as_me:$LINENO: WARNING: SDL/SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5 4523echo "$as_me: WARNING: SDL/SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4524 { echo "$as_me:$LINENO: WARNING: SDL/SDL_image.h: proceeding with the preprocessor's result" >&5 4525echo "$as_me: WARNING: SDL/SDL_image.h: proceeding with the preprocessor's result" >&2;} 4526 ( 4527 cat <<\_ASBOX 4528## ------------------------------------ ## 4529## Report this to bug-autoconf@gnu.org. ## 4530## ------------------------------------ ## 4531_ASBOX 4532 ) | 4533 sed "s/^/$as_me: WARNING: /" >&2 4534 ;; 4535 no:yes ) 4536 { echo "$as_me:$LINENO: WARNING: SDL/SDL_image.h: present but cannot be compiled" >&5 4537echo "$as_me: WARNING: SDL/SDL_image.h: present but cannot be compiled" >&2;} 4538 { echo "$as_me:$LINENO: WARNING: SDL/SDL_image.h: check for missing prerequisite headers?" >&5 4539echo "$as_me: WARNING: SDL/SDL_image.h: check for missing prerequisite headers?" >&2;} 4540 { echo "$as_me:$LINENO: WARNING: SDL/SDL_image.h: proceeding with the preprocessor's result" >&5 4541echo "$as_me: WARNING: SDL/SDL_image.h: proceeding with the preprocessor's result" >&2;} 4542 ( 4543 cat <<\_ASBOX 4544## ------------------------------------ ## 4545## Report this to bug-autoconf@gnu.org. ## 4546## ------------------------------------ ## 4547_ASBOX 4548 ) | 4549 sed "s/^/$as_me: WARNING: /" >&2 4550 ;; 4551esac 4552echo "$as_me:$LINENO: checking for SDL/SDL_image.h" >&5 4553echo $ECHO_N "checking for SDL/SDL_image.h... $ECHO_C" >&6 4554if test "${ac_cv_header_SDL_SDL_image_h+set}" = set; then 4555 echo $ECHO_N "(cached) $ECHO_C" >&6 4556else 4557 ac_cv_header_SDL_SDL_image_h=$ac_header_preproc 4558fi 4559echo "$as_me:$LINENO: result: $ac_cv_header_SDL_SDL_image_h" >&5 4560echo "${ECHO_T}$ac_cv_header_SDL_SDL_image_h" >&6 4561 4562fi 4563if test $ac_cv_header_SDL_SDL_image_h = yes; then 4564 : 4565else 4566 { { echo "$as_me:$LINENO: error: *** Cannot find the SDL/SDL_image.h header 4567 goto http://www.libsdl.org to download or 4568 check you with your distibution. 4569 4570 " >&5 4571echo "$as_me: error: *** Cannot find the SDL/SDL_image.h header 4572 goto http://www.libsdl.org to download or 4573 check you with your distibution. 4574 4575 " >&2;} 4576 { (exit 1); exit 1; }; }; exit 4577fi 4578 4579 4580else 4581 { { echo "$as_me:$LINENO: error: *** Cannot find the SDL_image library 4582 goto http://www.libsdl.org to download or 4583 check you with your distibution. 4584 " >&5 4585echo "$as_me: error: *** Cannot find the SDL_image library 4586 goto http://www.libsdl.org to download or 4587 check you with your distibution. 4588 " >&2;} 4589 { (exit 1); exit 1; }; }; exit 4590fi 4591 4592 4593CFLAGS="$CFLAGS $SDL_CFLAGS -W -pedantic -Dsg_data_path=\\\"$datadir/$PACKAGE/\\\"" 4594LIBS="$LIBS $SDL_LIBS -lSDL_mixer -lSDL_image -lSDL_ttf" 4595 4596 ac_config_files="$ac_config_files Makefile src/Makefile fonts/Makefile sounds/Makefile pics/Makefile pics/set1/Makefile" 4597cat >confcache <<\_ACEOF 4598# This file is a shell script that caches the results of configure 4599# tests run on this system so they can be shared between configure 4600# scripts and configure runs, see configure's option --config-cache. 4601# It is not useful on other systems. If it contains results you don't 4602# want to keep, you may remove or edit it. 4603# 4604# config.status only pays attention to the cache file if you give it 4605# the --recheck option to rerun configure. 4606# 4607# `ac_cv_env_foo' variables (set or unset) will be overridden when 4608# loading this file, other *unset* `ac_cv_foo' will be assigned the 4609# following values. 4610 4611_ACEOF 4612 4613# The following way of writing the cache mishandles newlines in values, 4614# but we know of no workaround that is simple, portable, and efficient. 4615# So, don't put newlines in cache variables' values. 4616# Ultrix sh set writes to stderr and can't be redirected directly, 4617# and sets the high bit in the cache file unless we assign to the vars. 4618{ 4619 (set) 2>&1 | 4620 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4621 *ac_space=\ *) 4622 # `set' does not quote correctly, so add quotes (double-quote 4623 # substitution turns \\\\ into \\, and sed turns \\ into \). 4624 sed -n \ 4625 "s/'/'\\\\''/g; 4626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4627 ;; 4628 *) 4629 # `set' quotes correctly as required by POSIX, so do not add quotes. 4630 sed -n \ 4631 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4632 ;; 4633 esac; 4634} | 4635 sed ' 4636 t clear 4637 : clear 4638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4639 t end 4640 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4641 : end' >>confcache 4642if diff $cache_file confcache >/dev/null 2>&1; then :; else 4643 if test -w $cache_file; then 4644 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4645 cat confcache >$cache_file 4646 else 4647 echo "not updating unwritable cache $cache_file" 4648 fi 4649fi 4650rm -f confcache 4651 4652test "x$prefix" = xNONE && prefix=$ac_default_prefix 4653# Let make expand exec_prefix. 4654test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4655 4656# VPATH may cause trouble with some makes, so we remove $(srcdir), 4657# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4658# trailing colons and then remove the whole line if VPATH becomes empty 4659# (actually we leave an empty line to preserve line numbers). 4660if test "x$srcdir" = x.; then 4661 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4662s/:*\$(srcdir):*/:/; 4663s/:*\${srcdir}:*/:/; 4664s/:*@srcdir@:*/:/; 4665s/^\([^=]*=[ ]*\):*/\1/; 4666s/:*$//; 4667s/^[^=]*=[ ]*$//; 4668}' 4669fi 4670 4671# Transform confdefs.h into DEFS. 4672# Protect against shell expansion while executing Makefile rules. 4673# Protect against Makefile macro expansion. 4674# 4675# If the first sed substitution is executed (which looks for macros that 4676# take arguments), then we branch to the quote section. Otherwise, 4677# look for a macro that doesn't take arguments. 4678cat >confdef2opt.sed <<\_ACEOF 4679t clear 4680: clear 4681s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 4682t quote 4683s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 4684t quote 4685d 4686: quote 4687s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 4688s,\[,\\&,g 4689s,\],\\&,g 4690s,\$,$$,g 4691p 4692_ACEOF 4693# We use echo to avoid assuming a particular line-breaking character. 4694# The extra dot is to prevent the shell from consuming trailing 4695# line-breaks from the sub-command output. A line-break within 4696# single-quotes doesn't work because, if this script is created in a 4697# platform that uses two characters for line-breaks (e.g., DOS), tr 4698# would break. 4699ac_LF_and_DOT=`echo; echo .` 4700DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 4701rm -f confdef2opt.sed 4702 4703 4704ac_libobjs= 4705ac_ltlibobjs= 4706for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4707 # 1. Remove the extension, and $U if already installed. 4708 ac_i=`echo "$ac_i" | 4709 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 4710 # 2. Add them. 4711 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 4712 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 4713done 4714LIBOBJS=$ac_libobjs 4715 4716LTLIBOBJS=$ac_ltlibobjs 4717 4718 4719if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 4720 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 4721Usually this means the macro was only invoked conditionally." >&5 4722echo "$as_me: error: conditional \"AMDEP\" was never defined. 4723Usually this means the macro was only invoked conditionally." >&2;} 4724 { (exit 1); exit 1; }; } 4725fi 4726if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 4727 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 4728Usually this means the macro was only invoked conditionally." >&5 4729echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 4730Usually this means the macro was only invoked conditionally." >&2;} 4731 { (exit 1); exit 1; }; } 4732fi 4733 4734: ${CONFIG_STATUS=./config.status} 4735ac_clean_files_save=$ac_clean_files 4736ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4737{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 4738echo "$as_me: creating $CONFIG_STATUS" >&6;} 4739cat >$CONFIG_STATUS <<_ACEOF 4740#! $SHELL 4741# Generated by $as_me. 4742# Run this file to recreate the current configuration. 4743# Compiler output produced by configure, useful for debugging 4744# configure, is in config.log if it exists. 4745 4746debug=false 4747ac_cs_recheck=false 4748ac_cs_silent=false 4749SHELL=\${CONFIG_SHELL-$SHELL} 4750_ACEOF 4751 4752cat >>$CONFIG_STATUS <<\_ACEOF 4753## --------------------- ## 4754## M4sh Initialization. ## 4755## --------------------- ## 4756 4757# Be Bourne compatible 4758if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4759 emulate sh 4760 NULLCMD=: 4761 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 4762 # is contrary to our usage. Disable this feature. 4763 alias -g '${1+"$@"}'='"$@"' 4764elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4765 set -o posix 4766fi 4767 4768# Support unset when possible. 4769if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 4770 as_unset=unset 4771else 4772 as_unset=false 4773fi 4774 4775 4776# Work around bugs in pre-3.0 UWIN ksh. 4777$as_unset ENV MAIL MAILPATH 4778PS1='$ ' 4779PS2='> ' 4780PS4='+ ' 4781 4782# NLS nuisances. 4783for as_var in \ 4784 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 4785 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 4786 LC_TELEPHONE LC_TIME 4787do 4788 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then 4789 eval $as_var=C; export $as_var 4790 else 4791 $as_unset $as_var 4792 fi 4793done 4794 4795# Required to use basename. 4796if expr a : '\(a\)' >/dev/null 2>&1; then 4797 as_expr=expr 4798else 4799 as_expr=false 4800fi 4801 4802if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 4803 as_basename=basename 4804else 4805 as_basename=false 4806fi 4807 4808 4809# Name of the executable. 4810as_me=`$as_basename "$0" || 4811$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4812 X"$0" : 'X\(//\)$' \| \ 4813 X"$0" : 'X\(/\)$' \| \ 4814 . : '\(.\)' 2>/dev/null || 4815echo X/"$0" | 4816 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 4817 /^X\/\(\/\/\)$/{ s//\1/; q; } 4818 /^X\/\(\/\).*/{ s//\1/; q; } 4819 s/.*/./; q'` 4820 4821 4822# PATH needs CR, and LINENO needs CR and PATH. 4823# Avoid depending upon Character Ranges. 4824as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4825as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4826as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4827as_cr_digits='0123456789' 4828as_cr_alnum=$as_cr_Letters$as_cr_digits 4829 4830# The user is always right. 4831if test "${PATH_SEPARATOR+set}" != set; then 4832 echo "#! /bin/sh" >conf$$.sh 4833 echo "exit 0" >>conf$$.sh 4834 chmod +x conf$$.sh 4835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4836 PATH_SEPARATOR=';' 4837 else 4838 PATH_SEPARATOR=: 4839 fi 4840 rm -f conf$$.sh 4841fi 4842 4843 4844 as_lineno_1=$LINENO 4845 as_lineno_2=$LINENO 4846 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4847 test "x$as_lineno_1" != "x$as_lineno_2" && 4848 test "x$as_lineno_3" = "x$as_lineno_2" || { 4849 # Find who we are. Look in the path if we contain no path at all 4850 # relative or not. 4851 case $0 in 4852 *[\\/]* ) as_myself=$0 ;; 4853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4854for as_dir in $PATH 4855do 4856 IFS=$as_save_IFS 4857 test -z "$as_dir" && as_dir=. 4858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4859done 4860 4861 ;; 4862 esac 4863 # We did not find ourselves, most probably we were run as `sh COMMAND' 4864 # in which case we are not to be found in the path. 4865 if test "x$as_myself" = x; then 4866 as_myself=$0 4867 fi 4868 if test ! -f "$as_myself"; then 4869 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 4870echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 4871 { (exit 1); exit 1; }; } 4872 fi 4873 case $CONFIG_SHELL in 4874 '') 4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4876for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 4877do 4878 IFS=$as_save_IFS 4879 test -z "$as_dir" && as_dir=. 4880 for as_base in sh bash ksh sh5; do 4881 case $as_dir in 4882 /*) 4883 if ("$as_dir/$as_base" -c ' 4884 as_lineno_1=$LINENO 4885 as_lineno_2=$LINENO 4886 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4887 test "x$as_lineno_1" != "x$as_lineno_2" && 4888 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 4889 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 4890 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 4891 CONFIG_SHELL=$as_dir/$as_base 4892 export CONFIG_SHELL 4893 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 4894 fi;; 4895 esac 4896 done 4897done 4898;; 4899 esac 4900 4901 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4902 # uniformly replaced by the line number. The first 'sed' inserts a 4903 # line-number line before each line; the second 'sed' does the real 4904 # work. The second script uses 'N' to pair each line-number line 4905 # with the numbered line, and appends trailing '-' during 4906 # substitution so that $LINENO is not a special case at line end. 4907 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 4908 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 4909 sed '=' <$as_myself | 4910 sed ' 4911 N 4912 s,$,-, 4913 : loop 4914 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 4915 t loop 4916 s,-$,, 4917 s,^['$as_cr_digits']*\n,, 4918 ' >$as_me.lineno && 4919 chmod +x $as_me.lineno || 4920 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 4921echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 4922 { (exit 1); exit 1; }; } 4923 4924 # Don't try to exec as it changes $[0], causing all sort of problems 4925 # (the dirname of $[0] is not the place where we might find the 4926 # original and so on. Autoconf is especially sensible to this). 4927 . ./$as_me.lineno 4928 # Exit status is that of the last command. 4929 exit 4930} 4931 4932 4933case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 4934 *c*,-n*) ECHO_N= ECHO_C=' 4935' ECHO_T=' ' ;; 4936 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 4937 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 4938esac 4939 4940if expr a : '\(a\)' >/dev/null 2>&1; then 4941 as_expr=expr 4942else 4943 as_expr=false 4944fi 4945 4946rm -f conf$$ conf$$.exe conf$$.file 4947echo >conf$$.file 4948if ln -s conf$$.file conf$$ 2>/dev/null; then 4949 # We could just check for DJGPP; but this test a) works b) is more generic 4950 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 4951 if test -f conf$$.exe; then 4952 # Don't use ln at all; we don't have any links 4953 as_ln_s='cp -p' 4954 else 4955 as_ln_s='ln -s' 4956 fi 4957elif ln conf$$.file conf$$ 2>/dev/null; then 4958 as_ln_s=ln 4959else 4960 as_ln_s='cp -p' 4961fi 4962rm -f conf$$ conf$$.exe conf$$.file 4963 4964if mkdir -p . 2>/dev/null; then 4965 as_mkdir_p=: 4966else 4967 as_mkdir_p=false 4968fi 4969 4970as_executable_p="test -f" 4971 4972# Sed expression to map a string onto a valid CPP name. 4973as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 4974 4975# Sed expression to map a string onto a valid variable name. 4976as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 4977 4978 4979# IFS 4980# We need space, tab and new line, in precisely that order. 4981as_nl=' 4982' 4983IFS=" $as_nl" 4984 4985# CDPATH. 4986$as_unset CDPATH 4987 4988exec 6>&1 4989 4990# Open the log real soon, to keep \$[0] and so on meaningful, and to 4991# report actual input values of CONFIG_FILES etc. instead of their 4992# values after options handling. Logging --version etc. is OK. 4993exec 5>>config.log 4994{ 4995 echo 4996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4997## Running $as_me. ## 4998_ASBOX 4999} >&5 5000cat >&5 <<_CSEOF 5001 5002This file was extended by $as_me, which was 5003generated by GNU Autoconf 2.57. Invocation command line was 5004 5005 CONFIG_FILES = $CONFIG_FILES 5006 CONFIG_HEADERS = $CONFIG_HEADERS 5007 CONFIG_LINKS = $CONFIG_LINKS 5008 CONFIG_COMMANDS = $CONFIG_COMMANDS 5009 $ $0 $@ 5010 5011_CSEOF 5012echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 5013echo >&5 5014_ACEOF 5015 5016# Files that config.status was made for. 5017if test -n "$ac_config_files"; then 5018 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 5019fi 5020 5021if test -n "$ac_config_headers"; then 5022 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 5023fi 5024 5025if test -n "$ac_config_links"; then 5026 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 5027fi 5028 5029if test -n "$ac_config_commands"; then 5030 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 5031fi 5032 5033cat >>$CONFIG_STATUS <<\_ACEOF 5034 5035ac_cs_usage="\ 5036\`$as_me' instantiates files from templates according to the 5037current configuration. 5038 5039Usage: $0 [OPTIONS] [FILE]... 5040 5041 -h, --help print this help, then exit 5042 -V, --version print version number, then exit 5043 -q, --quiet do not print progress messages 5044 -d, --debug don't remove temporary files 5045 --recheck update $as_me by reconfiguring in the same conditions 5046 --file=FILE[:TEMPLATE] 5047 instantiate the configuration file FILE 5048 5049Configuration files: 5050$config_files 5051 5052Configuration commands: 5053$config_commands 5054 5055Report bugs to <bug-autoconf@gnu.org>." 5056_ACEOF 5057 5058cat >>$CONFIG_STATUS <<_ACEOF 5059ac_cs_version="\\ 5060config.status 5061configured by $0, generated by GNU Autoconf 2.57, 5062 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 5063 5064Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 5065Free Software Foundation, Inc. 5066This config.status script is free software; the Free Software Foundation 5067gives unlimited permission to copy, distribute and modify it." 5068srcdir=$srcdir 5069INSTALL="$INSTALL" 5070_ACEOF 5071 5072cat >>$CONFIG_STATUS <<\_ACEOF 5073# If no file are specified by the user, then we need to provide default 5074# value. By we need to know if files were specified by the user. 5075ac_need_defaults=: 5076while test $# != 0 5077do 5078 case $1 in 5079 --*=*) 5080 ac_option=`expr "x$1" : 'x\([^=]*\)='` 5081 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 5082 ac_shift=: 5083 ;; 5084 -*) 5085 ac_option=$1 5086 ac_optarg=$2 5087 ac_shift=shift 5088 ;; 5089 *) # This is not an option, so the user has probably given explicit 5090 # arguments. 5091 ac_option=$1 5092 ac_need_defaults=false;; 5093 esac 5094 5095 case $ac_option in 5096 # Handling of the options. 5097_ACEOF 5098cat >>$CONFIG_STATUS <<\_ACEOF 5099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5100 ac_cs_recheck=: ;; 5101 --version | --vers* | -V ) 5102 echo "$ac_cs_version"; exit 0 ;; 5103 --he | --h) 5104 # Conflict between --help and --header 5105 { { echo "$as_me:$LINENO: error: ambiguous option: $1 5106Try \`$0 --help' for more information." >&5 5107echo "$as_me: error: ambiguous option: $1 5108Try \`$0 --help' for more information." >&2;} 5109 { (exit 1); exit 1; }; };; 5110 --help | --hel | -h ) 5111 echo "$ac_cs_usage"; exit 0 ;; 5112 --debug | --d* | -d ) 5113 debug=: ;; 5114 --file | --fil | --fi | --f ) 5115 $ac_shift 5116 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 5117 ac_need_defaults=false;; 5118 --header | --heade | --head | --hea ) 5119 $ac_shift 5120 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 5121 ac_need_defaults=false;; 5122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5123 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5124 ac_cs_silent=: ;; 5125 5126 # This is an error. 5127 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 5128Try \`$0 --help' for more information." >&5 5129echo "$as_me: error: unrecognized option: $1 5130Try \`$0 --help' for more information." >&2;} 5131 { (exit 1); exit 1; }; } ;; 5132 5133 *) ac_config_targets="$ac_config_targets $1" ;; 5134 5135 esac 5136 shift 5137done 5138 5139ac_configure_extra_args= 5140 5141if $ac_cs_silent; then 5142 exec 6>/dev/null 5143 ac_configure_extra_args="$ac_configure_extra_args --silent" 5144fi 5145 5146_ACEOF 5147cat >>$CONFIG_STATUS <<_ACEOF 5148if \$ac_cs_recheck; then 5149 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5150 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5151fi 5152 5153_ACEOF 5154 5155cat >>$CONFIG_STATUS <<_ACEOF 5156# 5157# INIT-COMMANDS section. 5158# 5159 5160AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5161 5162_ACEOF 5163 5164 5165 5166cat >>$CONFIG_STATUS <<\_ACEOF 5167for ac_config_target in $ac_config_targets 5168do 5169 case "$ac_config_target" in 5170 # Handling of arguments. 5171 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5172 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 5173 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;; 5174 "sounds/Makefile" ) CONFIG_FILES="$CONFIG_FILES sounds/Makefile" ;; 5175 "pics/Makefile" ) CONFIG_FILES="$CONFIG_FILES pics/Makefile" ;; 5176 "pics/set1/Makefile" ) CONFIG_FILES="$CONFIG_FILES pics/set1/Makefile" ;; 5177 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 5178 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 5179echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 5180 { (exit 1); exit 1; }; };; 5181 esac 5182done 5183 5184# If the user did not use the arguments to specify the items to instantiate, 5185# then the envvar interface is used. Set only those that are not. 5186# We use the long form for the default assignment because of an extremely 5187# bizarre bug on SunOS 4.1.3. 5188if $ac_need_defaults; then 5189 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5190 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5191fi 5192 5193# Have a temporary directory for convenience. Make it in the build tree 5194# simply because there is no reason to put it here, and in addition, 5195# creating and moving files from /tmp can sometimes cause problems. 5196# Create a temporary directory, and hook for its removal unless debugging. 5197$debug || 5198{ 5199 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5200 trap '{ (exit 1); exit 1; }' 1 2 13 15 5201} 5202 5203# Create a (secure) tmp directory for tmp files. 5204 5205{ 5206 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 5207 test -n "$tmp" && test -d "$tmp" 5208} || 5209{ 5210 tmp=./confstat$$-$RANDOM 5211 (umask 077 && mkdir $tmp) 5212} || 5213{ 5214 echo "$me: cannot create a temporary directory in ." >&2 5215 { (exit 1); exit 1; } 5216} 5217 5218_ACEOF 5219 5220cat >>$CONFIG_STATUS <<_ACEOF 5221 5222# 5223# CONFIG_FILES section. 5224# 5225 5226# No need to generate the scripts if there are no CONFIG_FILES. 5227# This happens for instance when ./config.status config.h 5228if test -n "\$CONFIG_FILES"; then 5229 # Protect against being on the right side of a sed subst in config.status. 5230 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 5231 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 5232s,@SHELL@,$SHELL,;t t 5233s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 5234s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 5235s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 5236s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 5237s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 5238s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 5239s,@exec_prefix@,$exec_prefix,;t t 5240s,@prefix@,$prefix,;t t 5241s,@program_transform_name@,$program_transform_name,;t t 5242s,@bindir@,$bindir,;t t 5243s,@sbindir@,$sbindir,;t t 5244s,@libexecdir@,$libexecdir,;t t 5245s,@datadir@,$datadir,;t t 5246s,@sysconfdir@,$sysconfdir,;t t 5247s,@sharedstatedir@,$sharedstatedir,;t t 5248s,@localstatedir@,$localstatedir,;t t 5249s,@libdir@,$libdir,;t t 5250s,@includedir@,$includedir,;t t 5251s,@oldincludedir@,$oldincludedir,;t t 5252s,@infodir@,$infodir,;t t 5253s,@mandir@,$mandir,;t t 5254s,@build_alias@,$build_alias,;t t 5255s,@host_alias@,$host_alias,;t t 5256s,@target_alias@,$target_alias,;t t 5257s,@DEFS@,$DEFS,;t t 5258s,@ECHO_C@,$ECHO_C,;t t 5259s,@ECHO_N@,$ECHO_N,;t t 5260s,@ECHO_T@,$ECHO_T,;t t 5261s,@LIBS@,$LIBS,;t t 5262s,@build@,$build,;t t 5263s,@build_cpu@,$build_cpu,;t t 5264s,@build_vendor@,$build_vendor,;t t 5265s,@build_os@,$build_os,;t t 5266s,@host@,$host,;t t 5267s,@host_cpu@,$host_cpu,;t t 5268s,@host_vendor@,$host_vendor,;t t 5269s,@host_os@,$host_os,;t t 5270s,@target@,$target,;t t 5271s,@target_cpu@,$target_cpu,;t t 5272s,@target_vendor@,$target_vendor,;t t 5273s,@target_os@,$target_os,;t t 5274s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 5275s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 5276s,@INSTALL_DATA@,$INSTALL_DATA,;t t 5277s,@CYGPATH_W@,$CYGPATH_W,;t t 5278s,@PACKAGE@,$PACKAGE,;t t 5279s,@VERSION@,$VERSION,;t t 5280s,@ACLOCAL@,$ACLOCAL,;t t 5281s,@AUTOCONF@,$AUTOCONF,;t t 5282s,@AUTOMAKE@,$AUTOMAKE,;t t 5283s,@AUTOHEADER@,$AUTOHEADER,;t t 5284s,@MAKEINFO@,$MAKEINFO,;t t 5285s,@AMTAR@,$AMTAR,;t t 5286s,@install_sh@,$install_sh,;t t 5287s,@STRIP@,$STRIP,;t t 5288s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 5289s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 5290s,@AWK@,$AWK,;t t 5291s,@SET_MAKE@,$SET_MAKE,;t t 5292s,@am__leading_dot@,$am__leading_dot,;t t 5293s,@CC@,$CC,;t t 5294s,@CFLAGS@,$CFLAGS,;t t 5295s,@LDFLAGS@,$LDFLAGS,;t t 5296s,@CPPFLAGS@,$CPPFLAGS,;t t 5297s,@ac_ct_CC@,$ac_ct_CC,;t t 5298s,@EXEEXT@,$EXEEXT,;t t 5299s,@OBJEXT@,$OBJEXT,;t t 5300s,@DEPDIR@,$DEPDIR,;t t 5301s,@am__include@,$am__include,;t t 5302s,@am__quote@,$am__quote,;t t 5303s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 5304s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 5305s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 5306s,@CCDEPMODE@,$CCDEPMODE,;t t 5307s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 5308s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 5309s,@CPP@,$CPP,;t t 5310s,@EGREP@,$EGREP,;t t 5311s,@LIBOBJS@,$LIBOBJS,;t t 5312s,@SDL_CONFIG@,$SDL_CONFIG,;t t 5313s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t 5314s,@SDL_LIBS@,$SDL_LIBS,;t t 5315s,@LTLIBOBJS@,$LTLIBOBJS,;t t 5316CEOF 5317 5318_ACEOF 5319 5320 cat >>$CONFIG_STATUS <<\_ACEOF 5321 # Split the substitutions into bite-sized pieces for seds with 5322 # small command number limits, like on Digital OSF/1 and HP-UX. 5323 ac_max_sed_lines=48 5324 ac_sed_frag=1 # Number of current file. 5325 ac_beg=1 # First line for current file. 5326 ac_end=$ac_max_sed_lines # Line after last line for current file. 5327 ac_more_lines=: 5328 ac_sed_cmds= 5329 while $ac_more_lines; do 5330 if test $ac_beg -gt 1; then 5331 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5332 else 5333 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5334 fi 5335 if test ! -s $tmp/subs.frag; then 5336 ac_more_lines=false 5337 else 5338 # The purpose of the label and of the branching condition is to 5339 # speed up the sed processing (if there are no `@' at all, there 5340 # is no need to browse any of the substitutions). 5341 # These are the two extra sed commands mentioned above. 5342 (echo ':t 5343 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5344 if test -z "$ac_sed_cmds"; then 5345 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5346 else 5347 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5348 fi 5349 ac_sed_frag=`expr $ac_sed_frag + 1` 5350 ac_beg=$ac_end 5351 ac_end=`expr $ac_end + $ac_max_sed_lines` 5352 fi 5353 done 5354 if test -z "$ac_sed_cmds"; then 5355 ac_sed_cmds=cat 5356 fi 5357fi # test -n "$CONFIG_FILES" 5358 5359_ACEOF 5360cat >>$CONFIG_STATUS <<\_ACEOF 5361for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5362 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5363 case $ac_file in 5364 - | *:- | *:-:* ) # input from stdin 5365 cat >$tmp/stdin 5366 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5367 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5368 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5369 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5370 * ) ac_file_in=$ac_file.in ;; 5371 esac 5372 5373 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5374 ac_dir=`(dirname "$ac_file") 2>/dev/null || 5375$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5376 X"$ac_file" : 'X\(//\)[^/]' \| \ 5377 X"$ac_file" : 'X\(//\)$' \| \ 5378 X"$ac_file" : 'X\(/\)' \| \ 5379 . : '\(.\)' 2>/dev/null || 5380echo X"$ac_file" | 5381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5382 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5383 /^X\(\/\/\)$/{ s//\1/; q; } 5384 /^X\(\/\).*/{ s//\1/; q; } 5385 s/.*/./; q'` 5386 { if $as_mkdir_p; then 5387 mkdir -p "$ac_dir" 5388 else 5389 as_dir="$ac_dir" 5390 as_dirs= 5391 while test ! -d "$as_dir"; do 5392 as_dirs="$as_dir $as_dirs" 5393 as_dir=`(dirname "$as_dir") 2>/dev/null || 5394$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5395 X"$as_dir" : 'X\(//\)[^/]' \| \ 5396 X"$as_dir" : 'X\(//\)$' \| \ 5397 X"$as_dir" : 'X\(/\)' \| \ 5398 . : '\(.\)' 2>/dev/null || 5399echo X"$as_dir" | 5400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5401 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5402 /^X\(\/\/\)$/{ s//\1/; q; } 5403 /^X\(\/\).*/{ s//\1/; q; } 5404 s/.*/./; q'` 5405 done 5406 test ! -n "$as_dirs" || mkdir $as_dirs 5407 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 5408echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 5409 { (exit 1); exit 1; }; }; } 5410 5411 ac_builddir=. 5412 5413if test "$ac_dir" != .; then 5414 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5415 # A "../" for each directory in $ac_dir_suffix. 5416 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5417else 5418 ac_dir_suffix= ac_top_builddir= 5419fi 5420 5421case $srcdir in 5422 .) # No --srcdir option. We are building in place. 5423 ac_srcdir=. 5424 if test -z "$ac_top_builddir"; then 5425 ac_top_srcdir=. 5426 else 5427 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 5428 fi ;; 5429 [\\/]* | ?:[\\/]* ) # Absolute path. 5430 ac_srcdir=$srcdir$ac_dir_suffix; 5431 ac_top_srcdir=$srcdir ;; 5432 *) # Relative path. 5433 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 5434 ac_top_srcdir=$ac_top_builddir$srcdir ;; 5435esac 5436# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 5437# absolute. 5438ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 5439ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 5440ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 5441ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 5442 5443 5444 case $INSTALL in 5445 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5446 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 5447 esac 5448 5449 if test x"$ac_file" != x-; then 5450 { echo "$as_me:$LINENO: creating $ac_file" >&5 5451echo "$as_me: creating $ac_file" >&6;} 5452 rm -f "$ac_file" 5453 fi 5454 # Let's still pretend it is `configure' which instantiates (i.e., don't 5455 # use $as_me), people would be surprised to read: 5456 # /* config.h. Generated by config.status. */ 5457 if test x"$ac_file" = x-; then 5458 configure_input= 5459 else 5460 configure_input="$ac_file. " 5461 fi 5462 configure_input=$configure_input"Generated from `echo $ac_file_in | 5463 sed 's,.*/,,'` by configure." 5464 5465 # First look for the input files in the build tree, otherwise in the 5466 # src tree. 5467 ac_file_inputs=`IFS=: 5468 for f in $ac_file_in; do 5469 case $f in 5470 -) echo $tmp/stdin ;; 5471 [\\/$]*) 5472 # Absolute (can't be DOS-style, as IFS=:) 5473 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5474echo "$as_me: error: cannot find input file: $f" >&2;} 5475 { (exit 1); exit 1; }; } 5476 echo $f;; 5477 *) # Relative 5478 if test -f "$f"; then 5479 # Build tree 5480 echo $f 5481 elif test -f "$srcdir/$f"; then 5482 # Source tree 5483 echo $srcdir/$f 5484 else 5485 # /dev/null tree 5486 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5487echo "$as_me: error: cannot find input file: $f" >&2;} 5488 { (exit 1); exit 1; }; } 5489 fi;; 5490 esac 5491 done` || { (exit 1); exit 1; } 5492_ACEOF 5493cat >>$CONFIG_STATUS <<_ACEOF 5494 sed "$ac_vpsub 5495$extrasub 5496_ACEOF 5497cat >>$CONFIG_STATUS <<\_ACEOF 5498:t 5499/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5500s,@configure_input@,$configure_input,;t t 5501s,@srcdir@,$ac_srcdir,;t t 5502s,@abs_srcdir@,$ac_abs_srcdir,;t t 5503s,@top_srcdir@,$ac_top_srcdir,;t t 5504s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 5505s,@builddir@,$ac_builddir,;t t 5506s,@abs_builddir@,$ac_abs_builddir,;t t 5507s,@top_builddir@,$ac_top_builddir,;t t 5508s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5509s,@INSTALL@,$ac_INSTALL,;t t 5510" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5511 rm -f $tmp/stdin 5512 if test x"$ac_file" != x-; then 5513 mv $tmp/out $ac_file 5514 else 5515 cat $tmp/out 5516 rm -f $tmp/out 5517 fi 5518 5519done 5520_ACEOF 5521cat >>$CONFIG_STATUS <<\_ACEOF 5522 5523# 5524# CONFIG_COMMANDS section. 5525# 5526for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 5527 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 5528 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 5529 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 5530$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5531 X"$ac_dest" : 'X\(//\)[^/]' \| \ 5532 X"$ac_dest" : 'X\(//\)$' \| \ 5533 X"$ac_dest" : 'X\(/\)' \| \ 5534 . : '\(.\)' 2>/dev/null || 5535echo X"$ac_dest" | 5536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5537 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5538 /^X\(\/\/\)$/{ s//\1/; q; } 5539 /^X\(\/\).*/{ s//\1/; q; } 5540 s/.*/./; q'` 5541 ac_builddir=. 5542 5543if test "$ac_dir" != .; then 5544 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5545 # A "../" for each directory in $ac_dir_suffix. 5546 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5547else 5548 ac_dir_suffix= ac_top_builddir= 5549fi 5550 5551case $srcdir in 5552 .) # No --srcdir option. We are building in place. 5553 ac_srcdir=. 5554 if test -z "$ac_top_builddir"; then 5555 ac_top_srcdir=. 5556 else 5557 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 5558 fi ;; 5559 [\\/]* | ?:[\\/]* ) # Absolute path. 5560 ac_srcdir=$srcdir$ac_dir_suffix; 5561 ac_top_srcdir=$srcdir ;; 5562 *) # Relative path. 5563 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 5564 ac_top_srcdir=$ac_top_builddir$srcdir ;; 5565esac 5566# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 5567# absolute. 5568ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 5569ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` 5570ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 5571ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 5572 5573 5574 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 5575echo "$as_me: executing $ac_dest commands" >&6;} 5576 case $ac_dest in 5577 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 5578 # Strip MF so we end up with the name of the file. 5579 mf=`echo "$mf" | sed -e 's/:.*$//'` 5580 # Check whether this is an Automake generated Makefile or not. 5581 # We used to match only the files named `Makefile.in', but 5582 # some people rename them; so instead we look at the file content. 5583 # Grep'ing the first line is not enough: some people post-process 5584 # each Makefile.in and add a new line on top of each file to say so. 5585 # So let's grep whole file. 5586 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 5587 dirpart=`(dirname "$mf") 2>/dev/null || 5588$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5589 X"$mf" : 'X\(//\)[^/]' \| \ 5590 X"$mf" : 'X\(//\)$' \| \ 5591 X"$mf" : 'X\(/\)' \| \ 5592 . : '\(.\)' 2>/dev/null || 5593echo X"$mf" | 5594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5595 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5596 /^X\(\/\/\)$/{ s//\1/; q; } 5597 /^X\(\/\).*/{ s//\1/; q; } 5598 s/.*/./; q'` 5599 else 5600 continue 5601 fi 5602 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 5603 # Extract the definition of DEP_FILES from the Makefile without 5604 # running `make'. 5605 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 5606 test -z "$DEPDIR" && continue 5607 # When using ansi2knr, U may be empty or an underscore; expand it 5608 U=`sed -n -e '/^U = / s///p' < "$mf"` 5609 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 5610 # We invoke sed twice because it is the simplest approach to 5611 # changing $(DEPDIR) to its actual value in the expansion. 5612 for file in `sed -n -e ' 5613 /^DEP_FILES = .*\\\\$/ { 5614 s/^DEP_FILES = // 5615 :loop 5616 s/\\\\$// 5617 p 5618 n 5619 /\\\\$/ b loop 5620 p 5621 } 5622 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 5623 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 5624 # Make sure the directory exists. 5625 test -f "$dirpart/$file" && continue 5626 fdir=`(dirname "$file") 2>/dev/null || 5627$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5628 X"$file" : 'X\(//\)[^/]' \| \ 5629 X"$file" : 'X\(//\)$' \| \ 5630 X"$file" : 'X\(/\)' \| \ 5631 . : '\(.\)' 2>/dev/null || 5632echo X"$file" | 5633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5634 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5635 /^X\(\/\/\)$/{ s//\1/; q; } 5636 /^X\(\/\).*/{ s//\1/; q; } 5637 s/.*/./; q'` 5638 { if $as_mkdir_p; then 5639 mkdir -p $dirpart/$fdir 5640 else 5641 as_dir=$dirpart/$fdir 5642 as_dirs= 5643 while test ! -d "$as_dir"; do 5644 as_dirs="$as_dir $as_dirs" 5645 as_dir=`(dirname "$as_dir") 2>/dev/null || 5646$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5647 X"$as_dir" : 'X\(//\)[^/]' \| \ 5648 X"$as_dir" : 'X\(//\)$' \| \ 5649 X"$as_dir" : 'X\(/\)' \| \ 5650 . : '\(.\)' 2>/dev/null || 5651echo X"$as_dir" | 5652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5653 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5654 /^X\(\/\/\)$/{ s//\1/; q; } 5655 /^X\(\/\).*/{ s//\1/; q; } 5656 s/.*/./; q'` 5657 done 5658 test ! -n "$as_dirs" || mkdir $as_dirs 5659 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 5660echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 5661 { (exit 1); exit 1; }; }; } 5662 5663 # echo "creating $dirpart/$file" 5664 echo '# dummy' > "$dirpart/$file" 5665 done 5666done 5667 ;; 5668 esac 5669done 5670_ACEOF 5671 5672cat >>$CONFIG_STATUS <<\_ACEOF 5673 5674{ (exit 0); exit 0; } 5675_ACEOF 5676chmod +x $CONFIG_STATUS 5677ac_clean_files=$ac_clean_files_save 5678 5679 5680# configure is writing to config.log, and then calls config.status. 5681# config.status does its own redirection, appending to config.log. 5682# Unfortunately, on DOS this fails, as config.log is still kept open 5683# by configure, so config.status won't be able to write to it; its 5684# output is simply discarded. So we exec the FD to /dev/null, 5685# effectively closing config.log, so it can be properly (re)opened and 5686# appended to by config.status. When coming back to configure, we 5687# need to make the FD available again. 5688if test "$no_create" != yes; then 5689 ac_cs_success=: 5690 ac_config_status_args= 5691 test "$silent" = yes && 5692 ac_config_status_args="$ac_config_status_args --quiet" 5693 exec 5>/dev/null 5694 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5695 exec 5>>config.log 5696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5697 # would make configure fail if this is the last instruction. 5698 $ac_cs_success || { (exit 1); exit 1; } 5699fi 5700 5701