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