1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 199 if (eval "$as_required") 2>/dev/null; then : 200 as_have_required=yes 201else 202 as_have_required=no 203fi 204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 205 206else 207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 test -z "$as_dir" && as_dir=. 213 as_found=: 214 case $as_dir in #( 215 /*) 216 for as_base in sh bash ksh sh5; do 217 # Try only shells that exist, to save several forks. 218 as_shell=$as_dir/$as_base 219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 221 CONFIG_SHELL=$as_shell as_have_required=yes 222 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 223 break 2 224fi 225fi 226 done;; 227 esac 228 as_found=false 229done 230$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 232 CONFIG_SHELL=$SHELL as_have_required=yes 233fi; } 234IFS=$as_save_IFS 235 236 237 if test "x$CONFIG_SHELL" != x; then : 238 export CONFIG_SHELL 239 # We cannot yet assume a decent shell, so we have to provide a 240# neutralization value for shells without unset; and this also 241# works around shells that cannot unset nonexistent variables. 242# Preserve -v and -x to the replacement shell. 243BASH_ENV=/dev/null 244ENV=/dev/null 245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 246case $- in # (((( 247 *v*x* | *x*v* ) as_opts=-vx ;; 248 *v* ) as_opts=-v ;; 249 *x* ) as_opts=-x ;; 250 * ) as_opts= ;; 251esac 252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 253# Admittedly, this is quite paranoid, since all the known shells bail 254# out after a failed `exec'. 255$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 256exit 255 257fi 258 259 if test x$as_have_required = xno; then : 260 $as_echo "$0: This script requires a shell more modern than all" 261 $as_echo "$0: the shells that I found on your system." 262 if test x${ZSH_VERSION+set} = xset ; then 263 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 264 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 265 else 266 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 267$0: including any error possibly output before this 268$0: message. Then install a modern shell, or manually run 269$0: the script under such a shell if you do have one." 270 fi 271 exit 1 272fi 273fi 274fi 275SHELL=${CONFIG_SHELL-/bin/sh} 276export SHELL 277# Unset more variables known to interfere with behavior of common tools. 278CLICOLOR_FORCE= GREP_OPTIONS= 279unset CLICOLOR_FORCE GREP_OPTIONS 280 281## --------------------- ## 282## M4sh Shell Functions. ## 283## --------------------- ## 284# as_fn_unset VAR 285# --------------- 286# Portably unset VAR. 287as_fn_unset () 288{ 289 { eval $1=; unset $1;} 290} 291as_unset=as_fn_unset 292 293# as_fn_set_status STATUS 294# ----------------------- 295# Set $? to STATUS, without forking. 296as_fn_set_status () 297{ 298 return $1 299} # as_fn_set_status 300 301# as_fn_exit STATUS 302# ----------------- 303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 304as_fn_exit () 305{ 306 set +e 307 as_fn_set_status $1 308 exit $1 309} # as_fn_exit 310 311# as_fn_mkdir_p 312# ------------- 313# Create "$as_dir" as a directory, including parents if necessary. 314as_fn_mkdir_p () 315{ 316 317 case $as_dir in #( 318 -*) as_dir=./$as_dir;; 319 esac 320 test -d "$as_dir" || eval $as_mkdir_p || { 321 as_dirs= 322 while :; do 323 case $as_dir in #( 324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 325 *) as_qdir=$as_dir;; 326 esac 327 as_dirs="'$as_qdir' $as_dirs" 328 as_dir=`$as_dirname -- "$as_dir" || 329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 330 X"$as_dir" : 'X\(//\)[^/]' \| \ 331 X"$as_dir" : 'X\(//\)$' \| \ 332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 333$as_echo X"$as_dir" | 334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 335 s//\1/ 336 q 337 } 338 /^X\(\/\/\)[^/].*/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)$/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\).*/{ 347 s//\1/ 348 q 349 } 350 s/.*/./; q'` 351 test -d "$as_dir" && break 352 done 353 test -z "$as_dirs" || eval "mkdir $as_dirs" 354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 355 356 357} # as_fn_mkdir_p 358 359# as_fn_executable_p FILE 360# ----------------------- 361# Test if FILE is an executable regular file. 362as_fn_executable_p () 363{ 364 test -f "$1" && test -x "$1" 365} # as_fn_executable_p 366# as_fn_append VAR VALUE 367# ---------------------- 368# Append the text in VALUE to the end of the definition contained in VAR. Take 369# advantage of any shell optimizations that allow amortized linear growth over 370# repeated appends, instead of the typical quadratic growth present in naive 371# implementations. 372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 373 eval 'as_fn_append () 374 { 375 eval $1+=\$2 376 }' 377else 378 as_fn_append () 379 { 380 eval $1=\$$1\$2 381 } 382fi # as_fn_append 383 384# as_fn_arith ARG... 385# ------------------ 386# Perform arithmetic evaluation on the ARGs, and store the result in the 387# global $as_val. Take advantage of shells that can avoid forks. The arguments 388# must be portable across $(()) and expr. 389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 390 eval 'as_fn_arith () 391 { 392 as_val=$(( $* )) 393 }' 394else 395 as_fn_arith () 396 { 397 as_val=`expr "$@" || test $? -eq 1` 398 } 399fi # as_fn_arith 400 401 402# as_fn_error STATUS ERROR [LINENO LOG_FD] 403# ---------------------------------------- 404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 406# script with STATUS, using 1 if that was 0. 407as_fn_error () 408{ 409 as_status=$1; test $as_status -eq 0 && as_status=1 410 if test "$4"; then 411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 413 fi 414 $as_echo "$as_me: error: $2" >&2 415 as_fn_exit $as_status 416} # as_fn_error 417 418if expr a : '\(a\)' >/dev/null 2>&1 && 419 test "X`expr 00001 : '.*\(...\)'`" = X001; then 420 as_expr=expr 421else 422 as_expr=false 423fi 424 425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 426 as_basename=basename 427else 428 as_basename=false 429fi 430 431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 432 as_dirname=dirname 433else 434 as_dirname=false 435fi 436 437as_me=`$as_basename -- "$0" || 438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 439 X"$0" : 'X\(//\)$' \| \ 440 X"$0" : 'X\(/\)' \| . 2>/dev/null || 441$as_echo X/"$0" | 442 sed '/^.*\/\([^/][^/]*\)\/*$/{ 443 s//\1/ 444 q 445 } 446 /^X\/\(\/\/\)$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\).*/{ 451 s//\1/ 452 q 453 } 454 s/.*/./; q'` 455 456# Avoid depending upon Character Ranges. 457as_cr_letters='abcdefghijklmnopqrstuvwxyz' 458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 459as_cr_Letters=$as_cr_letters$as_cr_LETTERS 460as_cr_digits='0123456789' 461as_cr_alnum=$as_cr_Letters$as_cr_digits 462 463 464 as_lineno_1=$LINENO as_lineno_1a=$LINENO 465 as_lineno_2=$LINENO as_lineno_2a=$LINENO 466 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 467 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 468 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 469 sed -n ' 470 p 471 /[$]LINENO/= 472 ' <$as_myself | 473 sed ' 474 s/[$]LINENO.*/&-/ 475 t lineno 476 b 477 :lineno 478 N 479 :loop 480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 481 t loop 482 s/-\n.*// 483 ' >$as_me.lineno && 484 chmod +x "$as_me.lineno" || 485 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 486 487 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 488 # already done that, so ensure we don't try to do so again and fall 489 # in an infinite loop. This has already happened in practice. 490 _as_can_reexec=no; export _as_can_reexec 491 # Don't try to exec as it changes $[0], causing all sort of problems 492 # (the dirname of $[0] is not the place where we might find the 493 # original and so on. Autoconf is especially sensitive to this). 494 . "./$as_me.lineno" 495 # Exit status is that of the last command. 496 exit 497} 498 499ECHO_C= ECHO_N= ECHO_T= 500case `echo -n x` in #((((( 501-n*) 502 case `echo 'xy\c'` in 503 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 504 xy) ECHO_C='\c';; 505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 506 ECHO_T=' ';; 507 esac;; 508*) 509 ECHO_N='-n';; 510esac 511 512rm -f conf$$ conf$$.exe conf$$.file 513if test -d conf$$.dir; then 514 rm -f conf$$.dir/conf$$.file 515else 516 rm -f conf$$.dir 517 mkdir conf$$.dir 2>/dev/null 518fi 519if (echo >conf$$.file) 2>/dev/null; then 520 if ln -s conf$$.file conf$$ 2>/dev/null; then 521 as_ln_s='ln -s' 522 # ... but there are two gotchas: 523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 525 # In both cases, we have to default to `cp -pR'. 526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 527 as_ln_s='cp -pR' 528 elif ln conf$$.file conf$$ 2>/dev/null; then 529 as_ln_s=ln 530 else 531 as_ln_s='cp -pR' 532 fi 533else 534 as_ln_s='cp -pR' 535fi 536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 537rmdir conf$$.dir 2>/dev/null 538 539if mkdir -p . 2>/dev/null; then 540 as_mkdir_p='mkdir -p "$as_dir"' 541else 542 test -d ./-p && rmdir ./-p 543 as_mkdir_p=false 544fi 545 546as_test_x='test -x' 547as_executable_p=as_fn_executable_p 548 549# Sed expression to map a string onto a valid CPP name. 550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 551 552# Sed expression to map a string onto a valid variable name. 553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 554 555 556test -n "$DJDIR" || exec 7<&0 </dev/null 557exec 6>&1 558 559# Name of the host. 560# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 561# so uname gets run too. 562ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 563 564# 565# Initializations. 566# 567ac_default_prefix=/usr/local 568ac_clean_files= 569ac_config_libobj_dir=. 570LIBOBJS= 571cross_compiling=no 572subdirs= 573MFLAGS= 574MAKEFLAGS= 575 576# Identity of this package. 577PACKAGE_NAME= 578PACKAGE_TARNAME= 579PACKAGE_VERSION= 580PACKAGE_STRING= 581PACKAGE_BUGREPORT= 582PACKAGE_URL= 583 584ac_unique_file="README" 585ac_subst_vars='LTLIBOBJS 586LIBOBJS 587SDL_TTF_LIB 588XLIB 589GLES2LIB 590GLESLIB 591GLLIB 592CPP 593XMKMF 594SDL_CONFIG 595SDL_LIBS 596SDL_CFLAGS 597PKG_CONFIG_LIBDIR 598PKG_CONFIG_PATH 599PKG_CONFIG 600ISUNIX 601ISWINDOWS 602ISMACOSX 603MATHLIB 604EXE 605OSMESA_CONFIG 606OBJEXT 607EXEEXT 608ac_ct_CC 609CPPFLAGS 610LDFLAGS 611CFLAGS 612CC 613host_os 614host_vendor 615host_cpu 616host 617build_os 618build_vendor 619build_cpu 620build 621target_alias 622host_alias 623build_alias 624LIBS 625ECHO_T 626ECHO_N 627ECHO_C 628DEFS 629mandir 630localedir 631libdir 632psdir 633pdfdir 634dvidir 635htmldir 636infodir 637docdir 638oldincludedir 639includedir 640localstatedir 641sharedstatedir 642sysconfdir 643datadir 644datarootdir 645libexecdir 646sbindir 647bindir 648program_transform_name 649prefix 650exec_prefix 651PACKAGE_URL 652PACKAGE_BUGREPORT 653PACKAGE_STRING 654PACKAGE_VERSION 655PACKAGE_TARNAME 656PACKAGE_NAME 657PATH_SEPARATOR 658SHELL' 659ac_subst_files='' 660ac_user_opts=' 661enable_option_checking 662with_sdl_prefix 663with_sdl_exec_prefix 664enable_sdltest 665with_x 666' 667 ac_precious_vars='build_alias 668host_alias 669target_alias 670CC 671CFLAGS 672LDFLAGS 673LIBS 674CPPFLAGS 675PKG_CONFIG 676PKG_CONFIG_PATH 677PKG_CONFIG_LIBDIR 678SDL_CFLAGS 679SDL_LIBS 680XMKMF 681CPP' 682 683 684# Initialize some variables set by options. 685ac_init_help= 686ac_init_version=false 687ac_unrecognized_opts= 688ac_unrecognized_sep= 689# The variables have the same names as the options, with 690# dashes changed to underlines. 691cache_file=/dev/null 692exec_prefix=NONE 693no_create= 694no_recursion= 695prefix=NONE 696program_prefix=NONE 697program_suffix=NONE 698program_transform_name=s,x,x, 699silent= 700site= 701srcdir= 702verbose= 703x_includes=NONE 704x_libraries=NONE 705 706# Installation directory options. 707# These are left unexpanded so users can "make install exec_prefix=/foo" 708# and all the variables that are supposed to be based on exec_prefix 709# by default will actually change. 710# Use braces instead of parens because sh, perl, etc. also accept them. 711# (The list follows the same order as the GNU Coding Standards.) 712bindir='${exec_prefix}/bin' 713sbindir='${exec_prefix}/sbin' 714libexecdir='${exec_prefix}/libexec' 715datarootdir='${prefix}/share' 716datadir='${datarootdir}' 717sysconfdir='${prefix}/etc' 718sharedstatedir='${prefix}/com' 719localstatedir='${prefix}/var' 720includedir='${prefix}/include' 721oldincludedir='/usr/include' 722docdir='${datarootdir}/doc/${PACKAGE}' 723infodir='${datarootdir}/info' 724htmldir='${docdir}' 725dvidir='${docdir}' 726pdfdir='${docdir}' 727psdir='${docdir}' 728libdir='${exec_prefix}/lib' 729localedir='${datarootdir}/locale' 730mandir='${datarootdir}/man' 731 732ac_prev= 733ac_dashdash= 734for ac_option 735do 736 # If the previous option needs an argument, assign it. 737 if test -n "$ac_prev"; then 738 eval $ac_prev=\$ac_option 739 ac_prev= 740 continue 741 fi 742 743 case $ac_option in 744 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 745 *=) ac_optarg= ;; 746 *) ac_optarg=yes ;; 747 esac 748 749 # Accept the important Cygnus configure options, so we can diagnose typos. 750 751 case $ac_dashdash$ac_option in 752 --) 753 ac_dashdash=yes ;; 754 755 -bindir | --bindir | --bindi | --bind | --bin | --bi) 756 ac_prev=bindir ;; 757 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 758 bindir=$ac_optarg ;; 759 760 -build | --build | --buil | --bui | --bu) 761 ac_prev=build_alias ;; 762 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 763 build_alias=$ac_optarg ;; 764 765 -cache-file | --cache-file | --cache-fil | --cache-fi \ 766 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 767 ac_prev=cache_file ;; 768 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 769 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 770 cache_file=$ac_optarg ;; 771 772 --config-cache | -C) 773 cache_file=config.cache ;; 774 775 -datadir | --datadir | --datadi | --datad) 776 ac_prev=datadir ;; 777 -datadir=* | --datadir=* | --datadi=* | --datad=*) 778 datadir=$ac_optarg ;; 779 780 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 781 | --dataroo | --dataro | --datar) 782 ac_prev=datarootdir ;; 783 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 784 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 785 datarootdir=$ac_optarg ;; 786 787 -disable-* | --disable-*) 788 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 789 # Reject names that are not valid shell variable names. 790 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 791 as_fn_error $? "invalid feature name: $ac_useropt" 792 ac_useropt_orig=$ac_useropt 793 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 794 case $ac_user_opts in 795 *" 796"enable_$ac_useropt" 797"*) ;; 798 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 799 ac_unrecognized_sep=', ';; 800 esac 801 eval enable_$ac_useropt=no ;; 802 803 -docdir | --docdir | --docdi | --doc | --do) 804 ac_prev=docdir ;; 805 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 806 docdir=$ac_optarg ;; 807 808 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 809 ac_prev=dvidir ;; 810 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 811 dvidir=$ac_optarg ;; 812 813 -enable-* | --enable-*) 814 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 815 # Reject names that are not valid shell variable names. 816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 817 as_fn_error $? "invalid feature name: $ac_useropt" 818 ac_useropt_orig=$ac_useropt 819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 820 case $ac_user_opts in 821 *" 822"enable_$ac_useropt" 823"*) ;; 824 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 825 ac_unrecognized_sep=', ';; 826 esac 827 eval enable_$ac_useropt=\$ac_optarg ;; 828 829 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 830 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 831 | --exec | --exe | --ex) 832 ac_prev=exec_prefix ;; 833 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 834 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 835 | --exec=* | --exe=* | --ex=*) 836 exec_prefix=$ac_optarg ;; 837 838 -gas | --gas | --ga | --g) 839 # Obsolete; use --with-gas. 840 with_gas=yes ;; 841 842 -help | --help | --hel | --he | -h) 843 ac_init_help=long ;; 844 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 845 ac_init_help=recursive ;; 846 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 847 ac_init_help=short ;; 848 849 -host | --host | --hos | --ho) 850 ac_prev=host_alias ;; 851 -host=* | --host=* | --hos=* | --ho=*) 852 host_alias=$ac_optarg ;; 853 854 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 855 ac_prev=htmldir ;; 856 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 857 | --ht=*) 858 htmldir=$ac_optarg ;; 859 860 -includedir | --includedir | --includedi | --included | --include \ 861 | --includ | --inclu | --incl | --inc) 862 ac_prev=includedir ;; 863 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 864 | --includ=* | --inclu=* | --incl=* | --inc=*) 865 includedir=$ac_optarg ;; 866 867 -infodir | --infodir | --infodi | --infod | --info | --inf) 868 ac_prev=infodir ;; 869 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 870 infodir=$ac_optarg ;; 871 872 -libdir | --libdir | --libdi | --libd) 873 ac_prev=libdir ;; 874 -libdir=* | --libdir=* | --libdi=* | --libd=*) 875 libdir=$ac_optarg ;; 876 877 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 878 | --libexe | --libex | --libe) 879 ac_prev=libexecdir ;; 880 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 881 | --libexe=* | --libex=* | --libe=*) 882 libexecdir=$ac_optarg ;; 883 884 -localedir | --localedir | --localedi | --localed | --locale) 885 ac_prev=localedir ;; 886 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 887 localedir=$ac_optarg ;; 888 889 -localstatedir | --localstatedir | --localstatedi | --localstated \ 890 | --localstate | --localstat | --localsta | --localst | --locals) 891 ac_prev=localstatedir ;; 892 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 893 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 894 localstatedir=$ac_optarg ;; 895 896 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 897 ac_prev=mandir ;; 898 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 899 mandir=$ac_optarg ;; 900 901 -nfp | --nfp | --nf) 902 # Obsolete; use --without-fp. 903 with_fp=no ;; 904 905 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 906 | --no-cr | --no-c | -n) 907 no_create=yes ;; 908 909 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 910 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 911 no_recursion=yes ;; 912 913 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 914 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 915 | --oldin | --oldi | --old | --ol | --o) 916 ac_prev=oldincludedir ;; 917 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 918 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 919 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 920 oldincludedir=$ac_optarg ;; 921 922 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 923 ac_prev=prefix ;; 924 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 925 prefix=$ac_optarg ;; 926 927 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 928 | --program-pre | --program-pr | --program-p) 929 ac_prev=program_prefix ;; 930 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 931 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 932 program_prefix=$ac_optarg ;; 933 934 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 935 | --program-suf | --program-su | --program-s) 936 ac_prev=program_suffix ;; 937 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 938 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 939 program_suffix=$ac_optarg ;; 940 941 -program-transform-name | --program-transform-name \ 942 | --program-transform-nam | --program-transform-na \ 943 | --program-transform-n | --program-transform- \ 944 | --program-transform | --program-transfor \ 945 | --program-transfo | --program-transf \ 946 | --program-trans | --program-tran \ 947 | --progr-tra | --program-tr | --program-t) 948 ac_prev=program_transform_name ;; 949 -program-transform-name=* | --program-transform-name=* \ 950 | --program-transform-nam=* | --program-transform-na=* \ 951 | --program-transform-n=* | --program-transform-=* \ 952 | --program-transform=* | --program-transfor=* \ 953 | --program-transfo=* | --program-transf=* \ 954 | --program-trans=* | --program-tran=* \ 955 | --progr-tra=* | --program-tr=* | --program-t=*) 956 program_transform_name=$ac_optarg ;; 957 958 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 959 ac_prev=pdfdir ;; 960 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 961 pdfdir=$ac_optarg ;; 962 963 -psdir | --psdir | --psdi | --psd | --ps) 964 ac_prev=psdir ;; 965 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 966 psdir=$ac_optarg ;; 967 968 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 969 | -silent | --silent | --silen | --sile | --sil) 970 silent=yes ;; 971 972 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 973 ac_prev=sbindir ;; 974 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 975 | --sbi=* | --sb=*) 976 sbindir=$ac_optarg ;; 977 978 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 979 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 980 | --sharedst | --shareds | --shared | --share | --shar \ 981 | --sha | --sh) 982 ac_prev=sharedstatedir ;; 983 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 984 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 985 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 986 | --sha=* | --sh=*) 987 sharedstatedir=$ac_optarg ;; 988 989 -site | --site | --sit) 990 ac_prev=site ;; 991 -site=* | --site=* | --sit=*) 992 site=$ac_optarg ;; 993 994 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 995 ac_prev=srcdir ;; 996 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 997 srcdir=$ac_optarg ;; 998 999 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1000 | --syscon | --sysco | --sysc | --sys | --sy) 1001 ac_prev=sysconfdir ;; 1002 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1003 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1004 sysconfdir=$ac_optarg ;; 1005 1006 -target | --target | --targe | --targ | --tar | --ta | --t) 1007 ac_prev=target_alias ;; 1008 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1009 target_alias=$ac_optarg ;; 1010 1011 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1012 verbose=yes ;; 1013 1014 -version | --version | --versio | --versi | --vers | -V) 1015 ac_init_version=: ;; 1016 1017 -with-* | --with-*) 1018 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1019 # Reject names that are not valid shell variable names. 1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1021 as_fn_error $? "invalid package name: $ac_useropt" 1022 ac_useropt_orig=$ac_useropt 1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1024 case $ac_user_opts in 1025 *" 1026"with_$ac_useropt" 1027"*) ;; 1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1029 ac_unrecognized_sep=', ';; 1030 esac 1031 eval with_$ac_useropt=\$ac_optarg ;; 1032 1033 -without-* | --without-*) 1034 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1035 # Reject names that are not valid shell variable names. 1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1037 as_fn_error $? "invalid package name: $ac_useropt" 1038 ac_useropt_orig=$ac_useropt 1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1040 case $ac_user_opts in 1041 *" 1042"with_$ac_useropt" 1043"*) ;; 1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1045 ac_unrecognized_sep=', ';; 1046 esac 1047 eval with_$ac_useropt=no ;; 1048 1049 --x) 1050 # Obsolete; use --with-x. 1051 with_x=yes ;; 1052 1053 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1054 | --x-incl | --x-inc | --x-in | --x-i) 1055 ac_prev=x_includes ;; 1056 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1057 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1058 x_includes=$ac_optarg ;; 1059 1060 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1061 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1062 ac_prev=x_libraries ;; 1063 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1064 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1065 x_libraries=$ac_optarg ;; 1066 1067 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1068Try \`$0 --help' for more information" 1069 ;; 1070 1071 *=*) 1072 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1073 # Reject names that are not valid shell variable names. 1074 case $ac_envvar in #( 1075 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1076 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1077 esac 1078 eval $ac_envvar=\$ac_optarg 1079 export $ac_envvar ;; 1080 1081 *) 1082 # FIXME: should be removed in autoconf 3.0. 1083 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1084 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1085 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1086 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1087 ;; 1088 1089 esac 1090done 1091 1092if test -n "$ac_prev"; then 1093 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1094 as_fn_error $? "missing argument to $ac_option" 1095fi 1096 1097if test -n "$ac_unrecognized_opts"; then 1098 case $enable_option_checking in 1099 no) ;; 1100 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1101 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1102 esac 1103fi 1104 1105# Check all directory arguments for consistency. 1106for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1107 datadir sysconfdir sharedstatedir localstatedir includedir \ 1108 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1109 libdir localedir mandir 1110do 1111 eval ac_val=\$$ac_var 1112 # Remove trailing slashes. 1113 case $ac_val in 1114 */ ) 1115 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1116 eval $ac_var=\$ac_val;; 1117 esac 1118 # Be sure to have absolute directory names. 1119 case $ac_val in 1120 [\\/$]* | ?:[\\/]* ) continue;; 1121 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1122 esac 1123 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1124done 1125 1126# There might be people who depend on the old broken behavior: `$host' 1127# used to hold the argument of --host etc. 1128# FIXME: To remove some day. 1129build=$build_alias 1130host=$host_alias 1131target=$target_alias 1132 1133# FIXME: To remove some day. 1134if test "x$host_alias" != x; then 1135 if test "x$build_alias" = x; then 1136 cross_compiling=maybe 1137 elif test "x$build_alias" != "x$host_alias"; then 1138 cross_compiling=yes 1139 fi 1140fi 1141 1142ac_tool_prefix= 1143test -n "$host_alias" && ac_tool_prefix=$host_alias- 1144 1145test "$silent" = yes && exec 6>/dev/null 1146 1147 1148ac_pwd=`pwd` && test -n "$ac_pwd" && 1149ac_ls_di=`ls -di .` && 1150ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1151 as_fn_error $? "working directory cannot be determined" 1152test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1153 as_fn_error $? "pwd does not report name of working directory" 1154 1155 1156# Find the source files, if location was not specified. 1157if test -z "$srcdir"; then 1158 ac_srcdir_defaulted=yes 1159 # Try the directory containing this script, then the parent directory. 1160 ac_confdir=`$as_dirname -- "$as_myself" || 1161$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1162 X"$as_myself" : 'X\(//\)[^/]' \| \ 1163 X"$as_myself" : 'X\(//\)$' \| \ 1164 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1165$as_echo X"$as_myself" | 1166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1167 s//\1/ 1168 q 1169 } 1170 /^X\(\/\/\)[^/].*/{ 1171 s//\1/ 1172 q 1173 } 1174 /^X\(\/\/\)$/{ 1175 s//\1/ 1176 q 1177 } 1178 /^X\(\/\).*/{ 1179 s//\1/ 1180 q 1181 } 1182 s/.*/./; q'` 1183 srcdir=$ac_confdir 1184 if test ! -r "$srcdir/$ac_unique_file"; then 1185 srcdir=.. 1186 fi 1187else 1188 ac_srcdir_defaulted=no 1189fi 1190if test ! -r "$srcdir/$ac_unique_file"; then 1191 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1192 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1193fi 1194ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1195ac_abs_confdir=`( 1196 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1197 pwd)` 1198# When building in place, set srcdir=. 1199if test "$ac_abs_confdir" = "$ac_pwd"; then 1200 srcdir=. 1201fi 1202# Remove unnecessary trailing slashes from srcdir. 1203# Double slashes in file names in object file debugging info 1204# mess up M-x gdb in Emacs. 1205case $srcdir in 1206*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1207esac 1208for ac_var in $ac_precious_vars; do 1209 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1210 eval ac_env_${ac_var}_value=\$${ac_var} 1211 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1212 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1213done 1214 1215# 1216# Report the --help message. 1217# 1218if test "$ac_init_help" = "long"; then 1219 # Omit some internal or obsolete options to make the list less imposing. 1220 # This message is too long to be a string in the A/UX 3.1 sh. 1221 cat <<_ACEOF 1222\`configure' configures this package to adapt to many kinds of systems. 1223 1224Usage: $0 [OPTION]... [VAR=VALUE]... 1225 1226To assign environment variables (e.g., CC, CFLAGS...), specify them as 1227VAR=VALUE. See below for descriptions of some of the useful variables. 1228 1229Defaults for the options are specified in brackets. 1230 1231Configuration: 1232 -h, --help display this help and exit 1233 --help=short display options specific to this package 1234 --help=recursive display the short help of all the included packages 1235 -V, --version display version information and exit 1236 -q, --quiet, --silent do not print \`checking ...' messages 1237 --cache-file=FILE cache test results in FILE [disabled] 1238 -C, --config-cache alias for \`--cache-file=config.cache' 1239 -n, --no-create do not create output files 1240 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1241 1242Installation directories: 1243 --prefix=PREFIX install architecture-independent files in PREFIX 1244 [$ac_default_prefix] 1245 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1246 [PREFIX] 1247 1248By default, \`make install' will install all the files in 1249\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1250an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1251for instance \`--prefix=\$HOME'. 1252 1253For better control, use the options below. 1254 1255Fine tuning of the installation directories: 1256 --bindir=DIR user executables [EPREFIX/bin] 1257 --sbindir=DIR system admin executables [EPREFIX/sbin] 1258 --libexecdir=DIR program executables [EPREFIX/libexec] 1259 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1260 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1261 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1262 --libdir=DIR object code libraries [EPREFIX/lib] 1263 --includedir=DIR C header files [PREFIX/include] 1264 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1265 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1266 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1267 --infodir=DIR info documentation [DATAROOTDIR/info] 1268 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1269 --mandir=DIR man documentation [DATAROOTDIR/man] 1270 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1271 --htmldir=DIR html documentation [DOCDIR] 1272 --dvidir=DIR dvi documentation [DOCDIR] 1273 --pdfdir=DIR pdf documentation [DOCDIR] 1274 --psdir=DIR ps documentation [DOCDIR] 1275_ACEOF 1276 1277 cat <<\_ACEOF 1278 1279X features: 1280 --x-includes=DIR X include files are in DIR 1281 --x-libraries=DIR X library files are in DIR 1282 1283System types: 1284 --build=BUILD configure for building on BUILD [guessed] 1285 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1286_ACEOF 1287fi 1288 1289if test -n "$ac_init_help"; then 1290 1291 cat <<\_ACEOF 1292 1293Optional Features: 1294 --disable-option-checking ignore unrecognized --enable/--with options 1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1297 --disable-sdltest Do not try to compile and run a test SDL program 1298 1299Optional Packages: 1300 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1301 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1302 --with-sdl-prefix=PFX Prefix where SDL is installed (optional) 1303 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) 1304 --with-x use the X Window System 1305 1306Some influential environment variables: 1307 CC C compiler command 1308 CFLAGS C compiler flags 1309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1310 nonstandard directory <lib dir> 1311 LIBS libraries to pass to the linker, e.g. -l<library> 1312 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1313 you have headers in a nonstandard directory <include dir> 1314 PKG_CONFIG path to pkg-config utility 1315 PKG_CONFIG_PATH 1316 directories to add to pkg-config's search path 1317 PKG_CONFIG_LIBDIR 1318 path overriding pkg-config's built-in search path 1319 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config 1320 SDL_LIBS linker flags for SDL, overriding pkg-config 1321 XMKMF Path to xmkmf, Makefile generator for X Window System 1322 CPP C preprocessor 1323 1324Use these variables to override the choices made by `configure' or to help 1325it to find libraries and programs with nonstandard names/locations. 1326 1327Report bugs to the package provider. 1328_ACEOF 1329ac_status=$? 1330fi 1331 1332if test "$ac_init_help" = "recursive"; then 1333 # If there are subdirs, report their specific --help. 1334 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1335 test -d "$ac_dir" || 1336 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1337 continue 1338 ac_builddir=. 1339 1340case "$ac_dir" in 1341.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1342*) 1343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1344 # A ".." for each directory in $ac_dir_suffix. 1345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1346 case $ac_top_builddir_sub in 1347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1349 esac ;; 1350esac 1351ac_abs_top_builddir=$ac_pwd 1352ac_abs_builddir=$ac_pwd$ac_dir_suffix 1353# for backward compatibility: 1354ac_top_builddir=$ac_top_build_prefix 1355 1356case $srcdir in 1357 .) # We are building in place. 1358 ac_srcdir=. 1359 ac_top_srcdir=$ac_top_builddir_sub 1360 ac_abs_top_srcdir=$ac_pwd ;; 1361 [\\/]* | ?:[\\/]* ) # Absolute name. 1362 ac_srcdir=$srcdir$ac_dir_suffix; 1363 ac_top_srcdir=$srcdir 1364 ac_abs_top_srcdir=$srcdir ;; 1365 *) # Relative name. 1366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1367 ac_top_srcdir=$ac_top_build_prefix$srcdir 1368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1369esac 1370ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1371 1372 cd "$ac_dir" || { ac_status=$?; continue; } 1373 # Check for guested configure. 1374 if test -f "$ac_srcdir/configure.gnu"; then 1375 echo && 1376 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1377 elif test -f "$ac_srcdir/configure"; then 1378 echo && 1379 $SHELL "$ac_srcdir/configure" --help=recursive 1380 else 1381 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1382 fi || ac_status=$? 1383 cd "$ac_pwd" || { ac_status=$?; break; } 1384 done 1385fi 1386 1387test -n "$ac_init_help" && exit $ac_status 1388if $ac_init_version; then 1389 cat <<\_ACEOF 1390configure 1391generated by GNU Autoconf 2.69 1392 1393Copyright (C) 2012 Free Software Foundation, Inc. 1394This configure script is free software; the Free Software Foundation 1395gives unlimited permission to copy, distribute and modify it. 1396_ACEOF 1397 exit 1398fi 1399 1400## ------------------------ ## 1401## Autoconf initialization. ## 1402## ------------------------ ## 1403 1404# ac_fn_c_try_compile LINENO 1405# -------------------------- 1406# Try to compile conftest.$ac_ext, and return whether this succeeded. 1407ac_fn_c_try_compile () 1408{ 1409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1410 rm -f conftest.$ac_objext 1411 if { { ac_try="$ac_compile" 1412case "(($ac_try" in 1413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1414 *) ac_try_echo=$ac_try;; 1415esac 1416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1417$as_echo "$ac_try_echo"; } >&5 1418 (eval "$ac_compile") 2>conftest.err 1419 ac_status=$? 1420 if test -s conftest.err; then 1421 grep -v '^ *+' conftest.err >conftest.er1 1422 cat conftest.er1 >&5 1423 mv -f conftest.er1 conftest.err 1424 fi 1425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1426 test $ac_status = 0; } && { 1427 test -z "$ac_c_werror_flag" || 1428 test ! -s conftest.err 1429 } && test -s conftest.$ac_objext; then : 1430 ac_retval=0 1431else 1432 $as_echo "$as_me: failed program was:" >&5 1433sed 's/^/| /' conftest.$ac_ext >&5 1434 1435 ac_retval=1 1436fi 1437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1438 as_fn_set_status $ac_retval 1439 1440} # ac_fn_c_try_compile 1441 1442# ac_fn_c_try_run LINENO 1443# ---------------------- 1444# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1445# that executables *can* be run. 1446ac_fn_c_try_run () 1447{ 1448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1449 if { { ac_try="$ac_link" 1450case "(($ac_try" in 1451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1452 *) ac_try_echo=$ac_try;; 1453esac 1454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1455$as_echo "$ac_try_echo"; } >&5 1456 (eval "$ac_link") 2>&5 1457 ac_status=$? 1458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1459 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1460 { { case "(($ac_try" in 1461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1462 *) ac_try_echo=$ac_try;; 1463esac 1464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1465$as_echo "$ac_try_echo"; } >&5 1466 (eval "$ac_try") 2>&5 1467 ac_status=$? 1468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1469 test $ac_status = 0; }; }; then : 1470 ac_retval=0 1471else 1472 $as_echo "$as_me: program exited with status $ac_status" >&5 1473 $as_echo "$as_me: failed program was:" >&5 1474sed 's/^/| /' conftest.$ac_ext >&5 1475 1476 ac_retval=$ac_status 1477fi 1478 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1480 as_fn_set_status $ac_retval 1481 1482} # ac_fn_c_try_run 1483 1484# ac_fn_c_try_link LINENO 1485# ----------------------- 1486# Try to link conftest.$ac_ext, and return whether this succeeded. 1487ac_fn_c_try_link () 1488{ 1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1490 rm -f conftest.$ac_objext conftest$ac_exeext 1491 if { { ac_try="$ac_link" 1492case "(($ac_try" in 1493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1494 *) ac_try_echo=$ac_try;; 1495esac 1496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1497$as_echo "$ac_try_echo"; } >&5 1498 (eval "$ac_link") 2>conftest.err 1499 ac_status=$? 1500 if test -s conftest.err; then 1501 grep -v '^ *+' conftest.err >conftest.er1 1502 cat conftest.er1 >&5 1503 mv -f conftest.er1 conftest.err 1504 fi 1505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1506 test $ac_status = 0; } && { 1507 test -z "$ac_c_werror_flag" || 1508 test ! -s conftest.err 1509 } && test -s conftest$ac_exeext && { 1510 test "$cross_compiling" = yes || 1511 test -x conftest$ac_exeext 1512 }; then : 1513 ac_retval=0 1514else 1515 $as_echo "$as_me: failed program was:" >&5 1516sed 's/^/| /' conftest.$ac_ext >&5 1517 1518 ac_retval=1 1519fi 1520 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1521 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1522 # interfere with the next link command; also delete a directory that is 1523 # left behind by Apple's compiler. We do this before executing the actions. 1524 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1526 as_fn_set_status $ac_retval 1527 1528} # ac_fn_c_try_link 1529 1530# ac_fn_c_try_cpp LINENO 1531# ---------------------- 1532# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1533ac_fn_c_try_cpp () 1534{ 1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1536 if { { ac_try="$ac_cpp conftest.$ac_ext" 1537case "(($ac_try" in 1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1539 *) ac_try_echo=$ac_try;; 1540esac 1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1542$as_echo "$ac_try_echo"; } >&5 1543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1544 ac_status=$? 1545 if test -s conftest.err; then 1546 grep -v '^ *+' conftest.err >conftest.er1 1547 cat conftest.er1 >&5 1548 mv -f conftest.er1 conftest.err 1549 fi 1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1551 test $ac_status = 0; } > conftest.i && { 1552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1553 test ! -s conftest.err 1554 }; then : 1555 ac_retval=0 1556else 1557 $as_echo "$as_me: failed program was:" >&5 1558sed 's/^/| /' conftest.$ac_ext >&5 1559 1560 ac_retval=1 1561fi 1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1563 as_fn_set_status $ac_retval 1564 1565} # ac_fn_c_try_cpp 1566cat >config.log <<_ACEOF 1567This file contains any messages produced by compilers while 1568running configure, to aid debugging if configure makes a mistake. 1569 1570It was created by $as_me, which was 1571generated by GNU Autoconf 2.69. Invocation command line was 1572 1573 $ $0 $@ 1574 1575_ACEOF 1576exec 5>>config.log 1577{ 1578cat <<_ASUNAME 1579## --------- ## 1580## Platform. ## 1581## --------- ## 1582 1583hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1584uname -m = `(uname -m) 2>/dev/null || echo unknown` 1585uname -r = `(uname -r) 2>/dev/null || echo unknown` 1586uname -s = `(uname -s) 2>/dev/null || echo unknown` 1587uname -v = `(uname -v) 2>/dev/null || echo unknown` 1588 1589/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1590/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1591 1592/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1593/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1594/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1595/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1596/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1597/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1598/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1599 1600_ASUNAME 1601 1602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1603for as_dir in $PATH 1604do 1605 IFS=$as_save_IFS 1606 test -z "$as_dir" && as_dir=. 1607 $as_echo "PATH: $as_dir" 1608 done 1609IFS=$as_save_IFS 1610 1611} >&5 1612 1613cat >&5 <<_ACEOF 1614 1615 1616## ----------- ## 1617## Core tests. ## 1618## ----------- ## 1619 1620_ACEOF 1621 1622 1623# Keep a trace of the command line. 1624# Strip out --no-create and --no-recursion so they do not pile up. 1625# Strip out --silent because we don't want to record it for future runs. 1626# Also quote any args containing shell meta-characters. 1627# Make two passes to allow for proper duplicate-argument suppression. 1628ac_configure_args= 1629ac_configure_args0= 1630ac_configure_args1= 1631ac_must_keep_next=false 1632for ac_pass in 1 2 1633do 1634 for ac_arg 1635 do 1636 case $ac_arg in 1637 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1639 | -silent | --silent | --silen | --sile | --sil) 1640 continue ;; 1641 *\'*) 1642 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1643 esac 1644 case $ac_pass in 1645 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1646 2) 1647 as_fn_append ac_configure_args1 " '$ac_arg'" 1648 if test $ac_must_keep_next = true; then 1649 ac_must_keep_next=false # Got value, back to normal. 1650 else 1651 case $ac_arg in 1652 *=* | --config-cache | -C | -disable-* | --disable-* \ 1653 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1654 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1655 | -with-* | --with-* | -without-* | --without-* | --x) 1656 case "$ac_configure_args0 " in 1657 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1658 esac 1659 ;; 1660 -* ) ac_must_keep_next=true ;; 1661 esac 1662 fi 1663 as_fn_append ac_configure_args " '$ac_arg'" 1664 ;; 1665 esac 1666 done 1667done 1668{ ac_configure_args0=; unset ac_configure_args0;} 1669{ ac_configure_args1=; unset ac_configure_args1;} 1670 1671# When interrupted or exit'd, cleanup temporary files, and complete 1672# config.log. We remove comments because anyway the quotes in there 1673# would cause problems or look ugly. 1674# WARNING: Use '\'' to represent an apostrophe within the trap. 1675# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1676trap 'exit_status=$? 1677 # Save into config.log some information that might help in debugging. 1678 { 1679 echo 1680 1681 $as_echo "## ---------------- ## 1682## Cache variables. ## 1683## ---------------- ##" 1684 echo 1685 # The following way of writing the cache mishandles newlines in values, 1686( 1687 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1688 eval ac_val=\$$ac_var 1689 case $ac_val in #( 1690 *${as_nl}*) 1691 case $ac_var in #( 1692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1693$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1694 esac 1695 case $ac_var in #( 1696 _ | IFS | as_nl) ;; #( 1697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1698 *) { eval $ac_var=; unset $ac_var;} ;; 1699 esac ;; 1700 esac 1701 done 1702 (set) 2>&1 | 1703 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1704 *${as_nl}ac_space=\ *) 1705 sed -n \ 1706 "s/'\''/'\''\\\\'\'''\''/g; 1707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1708 ;; #( 1709 *) 1710 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1711 ;; 1712 esac | 1713 sort 1714) 1715 echo 1716 1717 $as_echo "## ----------------- ## 1718## Output variables. ## 1719## ----------------- ##" 1720 echo 1721 for ac_var in $ac_subst_vars 1722 do 1723 eval ac_val=\$$ac_var 1724 case $ac_val in 1725 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1726 esac 1727 $as_echo "$ac_var='\''$ac_val'\''" 1728 done | sort 1729 echo 1730 1731 if test -n "$ac_subst_files"; then 1732 $as_echo "## ------------------- ## 1733## File substitutions. ## 1734## ------------------- ##" 1735 echo 1736 for ac_var in $ac_subst_files 1737 do 1738 eval ac_val=\$$ac_var 1739 case $ac_val in 1740 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1741 esac 1742 $as_echo "$ac_var='\''$ac_val'\''" 1743 done | sort 1744 echo 1745 fi 1746 1747 if test -s confdefs.h; then 1748 $as_echo "## ----------- ## 1749## confdefs.h. ## 1750## ----------- ##" 1751 echo 1752 cat confdefs.h 1753 echo 1754 fi 1755 test "$ac_signal" != 0 && 1756 $as_echo "$as_me: caught signal $ac_signal" 1757 $as_echo "$as_me: exit $exit_status" 1758 } >&5 1759 rm -f core *.core core.conftest.* && 1760 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1761 exit $exit_status 1762' 0 1763for ac_signal in 1 2 13 15; do 1764 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1765done 1766ac_signal=0 1767 1768# confdefs.h avoids OS command line length limits that DEFS can exceed. 1769rm -f -r conftest* confdefs.h 1770 1771$as_echo "/* confdefs.h */" > confdefs.h 1772 1773# Predefined preprocessor variables. 1774 1775cat >>confdefs.h <<_ACEOF 1776#define PACKAGE_NAME "$PACKAGE_NAME" 1777_ACEOF 1778 1779cat >>confdefs.h <<_ACEOF 1780#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1781_ACEOF 1782 1783cat >>confdefs.h <<_ACEOF 1784#define PACKAGE_VERSION "$PACKAGE_VERSION" 1785_ACEOF 1786 1787cat >>confdefs.h <<_ACEOF 1788#define PACKAGE_STRING "$PACKAGE_STRING" 1789_ACEOF 1790 1791cat >>confdefs.h <<_ACEOF 1792#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1793_ACEOF 1794 1795cat >>confdefs.h <<_ACEOF 1796#define PACKAGE_URL "$PACKAGE_URL" 1797_ACEOF 1798 1799 1800# Let the site file select an alternate cache file if it wants to. 1801# Prefer an explicitly selected file to automatically selected ones. 1802ac_site_file1=NONE 1803ac_site_file2=NONE 1804if test -n "$CONFIG_SITE"; then 1805 # We do not want a PATH search for config.site. 1806 case $CONFIG_SITE in #(( 1807 -*) ac_site_file1=./$CONFIG_SITE;; 1808 */*) ac_site_file1=$CONFIG_SITE;; 1809 *) ac_site_file1=./$CONFIG_SITE;; 1810 esac 1811elif test "x$prefix" != xNONE; then 1812 ac_site_file1=$prefix/share/config.site 1813 ac_site_file2=$prefix/etc/config.site 1814else 1815 ac_site_file1=$ac_default_prefix/share/config.site 1816 ac_site_file2=$ac_default_prefix/etc/config.site 1817fi 1818for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1819do 1820 test "x$ac_site_file" = xNONE && continue 1821 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1823$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1824 sed 's/^/| /' "$ac_site_file" >&5 1825 . "$ac_site_file" \ 1826 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1828as_fn_error $? "failed to load site script $ac_site_file 1829See \`config.log' for more details" "$LINENO" 5; } 1830 fi 1831done 1832 1833if test -r "$cache_file"; then 1834 # Some versions of bash will fail to source /dev/null (special files 1835 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1836 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1838$as_echo "$as_me: loading cache $cache_file" >&6;} 1839 case $cache_file in 1840 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1841 *) . "./$cache_file";; 1842 esac 1843 fi 1844else 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1846$as_echo "$as_me: creating cache $cache_file" >&6;} 1847 >$cache_file 1848fi 1849 1850# Check that the precious variables saved in the cache have kept the same 1851# value. 1852ac_cache_corrupted=false 1853for ac_var in $ac_precious_vars; do 1854 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1855 eval ac_new_set=\$ac_env_${ac_var}_set 1856 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1857 eval ac_new_val=\$ac_env_${ac_var}_value 1858 case $ac_old_set,$ac_new_set in 1859 set,) 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1861$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1862 ac_cache_corrupted=: ;; 1863 ,set) 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1865$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1866 ac_cache_corrupted=: ;; 1867 ,);; 1868 *) 1869 if test "x$ac_old_val" != "x$ac_new_val"; then 1870 # differences in whitespace do not lead to failure. 1871 ac_old_val_w=`echo x $ac_old_val` 1872 ac_new_val_w=`echo x $ac_new_val` 1873 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1875$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1876 ac_cache_corrupted=: 1877 else 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1879$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1880 eval $ac_var=\$ac_old_val 1881 fi 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1883$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1885$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1886 fi;; 1887 esac 1888 # Pass precious variables to config.status. 1889 if test "$ac_new_set" = set; then 1890 case $ac_new_val in 1891 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1892 *) ac_arg=$ac_var=$ac_new_val ;; 1893 esac 1894 case " $ac_configure_args " in 1895 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1896 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1897 esac 1898 fi 1899done 1900if $ac_cache_corrupted; then 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1904$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1905 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1906fi 1907## -------------------- ## 1908## Main body of script. ## 1909## -------------------- ## 1910 1911ac_ext=c 1912ac_cpp='$CPP $CPPFLAGS' 1913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1915ac_compiler_gnu=$ac_cv_c_compiler_gnu 1916 1917 1918 1919ac_aux_dir= 1920for ac_dir in $srcdir/../build-scripts; do 1921 if test -f "$ac_dir/install-sh"; then 1922 ac_aux_dir=$ac_dir 1923 ac_install_sh="$ac_aux_dir/install-sh -c" 1924 break 1925 elif test -f "$ac_dir/install.sh"; then 1926 ac_aux_dir=$ac_dir 1927 ac_install_sh="$ac_aux_dir/install.sh -c" 1928 break 1929 elif test -f "$ac_dir/shtool"; then 1930 ac_aux_dir=$ac_dir 1931 ac_install_sh="$ac_aux_dir/shtool install -c" 1932 break 1933 fi 1934done 1935if test -z "$ac_aux_dir"; then 1936 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $srcdir/../build-scripts" "$LINENO" 5 1937fi 1938 1939# These three variables are undocumented and unsupported, 1940# and are intended to be withdrawn in a future Autoconf release. 1941# They can cause serious problems if a builder's source tree is in a directory 1942# whose full name contains unusual characters. 1943ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1944ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1945ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1946 1947 1948# Make sure we can run config.sub. 1949$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1950 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 1951 1952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 1953$as_echo_n "checking build system type... " >&6; } 1954if ${ac_cv_build+:} false; then : 1955 $as_echo_n "(cached) " >&6 1956else 1957 ac_build_alias=$build_alias 1958test "x$ac_build_alias" = x && 1959 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1960test "x$ac_build_alias" = x && 1961 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 1962ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1963 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 1964 1965fi 1966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 1967$as_echo "$ac_cv_build" >&6; } 1968case $ac_cv_build in 1969*-*-*) ;; 1970*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 1971esac 1972build=$ac_cv_build 1973ac_save_IFS=$IFS; IFS='-' 1974set x $ac_cv_build 1975shift 1976build_cpu=$1 1977build_vendor=$2 1978shift; shift 1979# Remember, the first character of IFS is used to create $*, 1980# except with old shells: 1981build_os=$* 1982IFS=$ac_save_IFS 1983case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1984 1985 1986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 1987$as_echo_n "checking host system type... " >&6; } 1988if ${ac_cv_host+:} false; then : 1989 $as_echo_n "(cached) " >&6 1990else 1991 if test "x$host_alias" = x; then 1992 ac_cv_host=$ac_cv_build 1993else 1994 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1995 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 1996fi 1997 1998fi 1999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2000$as_echo "$ac_cv_host" >&6; } 2001case $ac_cv_host in 2002*-*-*) ;; 2003*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2004esac 2005host=$ac_cv_host 2006ac_save_IFS=$IFS; IFS='-' 2007set x $ac_cv_host 2008shift 2009host_cpu=$1 2010host_vendor=$2 2011shift; shift 2012# Remember, the first character of IFS is used to create $*, 2013# except with old shells: 2014host_os=$* 2015IFS=$ac_save_IFS 2016case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2017 2018 2019 2020 2021ac_ext=c 2022ac_cpp='$CPP $CPPFLAGS' 2023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2025ac_compiler_gnu=$ac_cv_c_compiler_gnu 2026if test -n "$ac_tool_prefix"; then 2027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2028set dummy ${ac_tool_prefix}gcc; ac_word=$2 2029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2030$as_echo_n "checking for $ac_word... " >&6; } 2031if ${ac_cv_prog_CC+:} false; then : 2032 $as_echo_n "(cached) " >&6 2033else 2034 if test -n "$CC"; then 2035 ac_cv_prog_CC="$CC" # Let the user override the test. 2036else 2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2038for as_dir in $PATH 2039do 2040 IFS=$as_save_IFS 2041 test -z "$as_dir" && as_dir=. 2042 for ac_exec_ext in '' $ac_executable_extensions; do 2043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2044 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2046 break 2 2047 fi 2048done 2049 done 2050IFS=$as_save_IFS 2051 2052fi 2053fi 2054CC=$ac_cv_prog_CC 2055if test -n "$CC"; then 2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2057$as_echo "$CC" >&6; } 2058else 2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2060$as_echo "no" >&6; } 2061fi 2062 2063 2064fi 2065if test -z "$ac_cv_prog_CC"; then 2066 ac_ct_CC=$CC 2067 # Extract the first word of "gcc", so it can be a program name with args. 2068set dummy gcc; ac_word=$2 2069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2070$as_echo_n "checking for $ac_word... " >&6; } 2071if ${ac_cv_prog_ac_ct_CC+:} false; then : 2072 $as_echo_n "(cached) " >&6 2073else 2074 if test -n "$ac_ct_CC"; then 2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2076else 2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2078for as_dir in $PATH 2079do 2080 IFS=$as_save_IFS 2081 test -z "$as_dir" && as_dir=. 2082 for ac_exec_ext in '' $ac_executable_extensions; do 2083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2084 ac_cv_prog_ac_ct_CC="gcc" 2085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2086 break 2 2087 fi 2088done 2089 done 2090IFS=$as_save_IFS 2091 2092fi 2093fi 2094ac_ct_CC=$ac_cv_prog_ac_ct_CC 2095if test -n "$ac_ct_CC"; then 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2097$as_echo "$ac_ct_CC" >&6; } 2098else 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2100$as_echo "no" >&6; } 2101fi 2102 2103 if test "x$ac_ct_CC" = x; then 2104 CC="" 2105 else 2106 case $cross_compiling:$ac_tool_warned in 2107yes:) 2108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2110ac_tool_warned=yes ;; 2111esac 2112 CC=$ac_ct_CC 2113 fi 2114else 2115 CC="$ac_cv_prog_CC" 2116fi 2117 2118if test -z "$CC"; then 2119 if test -n "$ac_tool_prefix"; then 2120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2121set dummy ${ac_tool_prefix}cc; ac_word=$2 2122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2123$as_echo_n "checking for $ac_word... " >&6; } 2124if ${ac_cv_prog_CC+:} false; then : 2125 $as_echo_n "(cached) " >&6 2126else 2127 if test -n "$CC"; then 2128 ac_cv_prog_CC="$CC" # Let the user override the test. 2129else 2130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2131for as_dir in $PATH 2132do 2133 IFS=$as_save_IFS 2134 test -z "$as_dir" && as_dir=. 2135 for ac_exec_ext in '' $ac_executable_extensions; do 2136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2137 ac_cv_prog_CC="${ac_tool_prefix}cc" 2138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2139 break 2 2140 fi 2141done 2142 done 2143IFS=$as_save_IFS 2144 2145fi 2146fi 2147CC=$ac_cv_prog_CC 2148if test -n "$CC"; then 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2150$as_echo "$CC" >&6; } 2151else 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2153$as_echo "no" >&6; } 2154fi 2155 2156 2157 fi 2158fi 2159if test -z "$CC"; then 2160 # Extract the first word of "cc", so it can be a program name with args. 2161set dummy cc; ac_word=$2 2162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2163$as_echo_n "checking for $ac_word... " >&6; } 2164if ${ac_cv_prog_CC+:} false; then : 2165 $as_echo_n "(cached) " >&6 2166else 2167 if test -n "$CC"; then 2168 ac_cv_prog_CC="$CC" # Let the user override the test. 2169else 2170 ac_prog_rejected=no 2171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2172for as_dir in $PATH 2173do 2174 IFS=$as_save_IFS 2175 test -z "$as_dir" && as_dir=. 2176 for ac_exec_ext in '' $ac_executable_extensions; do 2177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2178 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2179 ac_prog_rejected=yes 2180 continue 2181 fi 2182 ac_cv_prog_CC="cc" 2183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2184 break 2 2185 fi 2186done 2187 done 2188IFS=$as_save_IFS 2189 2190if test $ac_prog_rejected = yes; then 2191 # We found a bogon in the path, so make sure we never use it. 2192 set dummy $ac_cv_prog_CC 2193 shift 2194 if test $# != 0; then 2195 # We chose a different compiler from the bogus one. 2196 # However, it has the same basename, so the bogon will be chosen 2197 # first if we set CC to just the basename; use the full file name. 2198 shift 2199 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2200 fi 2201fi 2202fi 2203fi 2204CC=$ac_cv_prog_CC 2205if test -n "$CC"; then 2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2207$as_echo "$CC" >&6; } 2208else 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2210$as_echo "no" >&6; } 2211fi 2212 2213 2214fi 2215if test -z "$CC"; then 2216 if test -n "$ac_tool_prefix"; then 2217 for ac_prog in cl.exe 2218 do 2219 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2220set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2222$as_echo_n "checking for $ac_word... " >&6; } 2223if ${ac_cv_prog_CC+:} false; then : 2224 $as_echo_n "(cached) " >&6 2225else 2226 if test -n "$CC"; then 2227 ac_cv_prog_CC="$CC" # Let the user override the test. 2228else 2229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2230for as_dir in $PATH 2231do 2232 IFS=$as_save_IFS 2233 test -z "$as_dir" && as_dir=. 2234 for ac_exec_ext in '' $ac_executable_extensions; do 2235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2236 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2238 break 2 2239 fi 2240done 2241 done 2242IFS=$as_save_IFS 2243 2244fi 2245fi 2246CC=$ac_cv_prog_CC 2247if test -n "$CC"; then 2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2249$as_echo "$CC" >&6; } 2250else 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2252$as_echo "no" >&6; } 2253fi 2254 2255 2256 test -n "$CC" && break 2257 done 2258fi 2259if test -z "$CC"; then 2260 ac_ct_CC=$CC 2261 for ac_prog in cl.exe 2262do 2263 # Extract the first word of "$ac_prog", so it can be a program name with args. 2264set dummy $ac_prog; ac_word=$2 2265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2266$as_echo_n "checking for $ac_word... " >&6; } 2267if ${ac_cv_prog_ac_ct_CC+:} false; then : 2268 $as_echo_n "(cached) " >&6 2269else 2270 if test -n "$ac_ct_CC"; then 2271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2272else 2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2274for as_dir in $PATH 2275do 2276 IFS=$as_save_IFS 2277 test -z "$as_dir" && as_dir=. 2278 for ac_exec_ext in '' $ac_executable_extensions; do 2279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2280 ac_cv_prog_ac_ct_CC="$ac_prog" 2281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2282 break 2 2283 fi 2284done 2285 done 2286IFS=$as_save_IFS 2287 2288fi 2289fi 2290ac_ct_CC=$ac_cv_prog_ac_ct_CC 2291if test -n "$ac_ct_CC"; then 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2293$as_echo "$ac_ct_CC" >&6; } 2294else 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2296$as_echo "no" >&6; } 2297fi 2298 2299 2300 test -n "$ac_ct_CC" && break 2301done 2302 2303 if test "x$ac_ct_CC" = x; then 2304 CC="" 2305 else 2306 case $cross_compiling:$ac_tool_warned in 2307yes:) 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2310ac_tool_warned=yes ;; 2311esac 2312 CC=$ac_ct_CC 2313 fi 2314fi 2315 2316fi 2317 2318 2319test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2321as_fn_error $? "no acceptable C compiler found in \$PATH 2322See \`config.log' for more details" "$LINENO" 5; } 2323 2324# Provide some information about the compiler. 2325$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2326set X $ac_compile 2327ac_compiler=$2 2328for ac_option in --version -v -V -qversion; do 2329 { { ac_try="$ac_compiler $ac_option >&5" 2330case "(($ac_try" in 2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2332 *) ac_try_echo=$ac_try;; 2333esac 2334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2335$as_echo "$ac_try_echo"; } >&5 2336 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2337 ac_status=$? 2338 if test -s conftest.err; then 2339 sed '10a\ 2340... rest of stderr output deleted ... 2341 10q' conftest.err >conftest.er1 2342 cat conftest.er1 >&5 2343 fi 2344 rm -f conftest.er1 conftest.err 2345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2346 test $ac_status = 0; } 2347done 2348 2349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2350/* end confdefs.h. */ 2351 2352int 2353main () 2354{ 2355 2356 ; 2357 return 0; 2358} 2359_ACEOF 2360ac_clean_files_save=$ac_clean_files 2361ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2362# Try to create an executable without -o first, disregard a.out. 2363# It will help us diagnose broken compilers, and finding out an intuition 2364# of exeext. 2365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2366$as_echo_n "checking whether the C compiler works... " >&6; } 2367ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2368 2369# The possible output files: 2370ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2371 2372ac_rmfiles= 2373for ac_file in $ac_files 2374do 2375 case $ac_file in 2376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2377 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2378 esac 2379done 2380rm -f $ac_rmfiles 2381 2382if { { ac_try="$ac_link_default" 2383case "(($ac_try" in 2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2385 *) ac_try_echo=$ac_try;; 2386esac 2387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2388$as_echo "$ac_try_echo"; } >&5 2389 (eval "$ac_link_default") 2>&5 2390 ac_status=$? 2391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2392 test $ac_status = 0; }; then : 2393 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2394# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2395# in a Makefile. We should not override ac_cv_exeext if it was cached, 2396# so that the user can short-circuit this test for compilers unknown to 2397# Autoconf. 2398for ac_file in $ac_files '' 2399do 2400 test -f "$ac_file" || continue 2401 case $ac_file in 2402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2403 ;; 2404 [ab].out ) 2405 # We found the default executable, but exeext='' is most 2406 # certainly right. 2407 break;; 2408 *.* ) 2409 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2410 then :; else 2411 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2412 fi 2413 # We set ac_cv_exeext here because the later test for it is not 2414 # safe: cross compilers may not add the suffix if given an `-o' 2415 # argument, so we may need to know it at that point already. 2416 # Even if this section looks crufty: it has the advantage of 2417 # actually working. 2418 break;; 2419 * ) 2420 break;; 2421 esac 2422done 2423test "$ac_cv_exeext" = no && ac_cv_exeext= 2424 2425else 2426 ac_file='' 2427fi 2428if test -z "$ac_file"; then : 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2430$as_echo "no" >&6; } 2431$as_echo "$as_me: failed program was:" >&5 2432sed 's/^/| /' conftest.$ac_ext >&5 2433 2434{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2436as_fn_error 77 "C compiler cannot create executables 2437See \`config.log' for more details" "$LINENO" 5; } 2438else 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2440$as_echo "yes" >&6; } 2441fi 2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2443$as_echo_n "checking for C compiler default output file name... " >&6; } 2444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2445$as_echo "$ac_file" >&6; } 2446ac_exeext=$ac_cv_exeext 2447 2448rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2449ac_clean_files=$ac_clean_files_save 2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2451$as_echo_n "checking for suffix of executables... " >&6; } 2452if { { ac_try="$ac_link" 2453case "(($ac_try" in 2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2455 *) ac_try_echo=$ac_try;; 2456esac 2457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2458$as_echo "$ac_try_echo"; } >&5 2459 (eval "$ac_link") 2>&5 2460 ac_status=$? 2461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2462 test $ac_status = 0; }; then : 2463 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2464# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2465# work properly (i.e., refer to `conftest.exe'), while it won't with 2466# `rm'. 2467for ac_file in conftest.exe conftest conftest.*; do 2468 test -f "$ac_file" || continue 2469 case $ac_file in 2470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2471 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2472 break;; 2473 * ) break;; 2474 esac 2475done 2476else 2477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2479as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2480See \`config.log' for more details" "$LINENO" 5; } 2481fi 2482rm -f conftest conftest$ac_cv_exeext 2483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2484$as_echo "$ac_cv_exeext" >&6; } 2485 2486rm -f conftest.$ac_ext 2487EXEEXT=$ac_cv_exeext 2488ac_exeext=$EXEEXT 2489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2490/* end confdefs.h. */ 2491#include <stdio.h> 2492int 2493main () 2494{ 2495FILE *f = fopen ("conftest.out", "w"); 2496 return ferror (f) || fclose (f) != 0; 2497 2498 ; 2499 return 0; 2500} 2501_ACEOF 2502ac_clean_files="$ac_clean_files conftest.out" 2503# Check that the compiler produces executables we can run. If not, either 2504# the compiler is broken, or we cross compile. 2505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2506$as_echo_n "checking whether we are cross compiling... " >&6; } 2507if test "$cross_compiling" != yes; then 2508 { { ac_try="$ac_link" 2509case "(($ac_try" in 2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2511 *) ac_try_echo=$ac_try;; 2512esac 2513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2514$as_echo "$ac_try_echo"; } >&5 2515 (eval "$ac_link") 2>&5 2516 ac_status=$? 2517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2518 test $ac_status = 0; } 2519 if { ac_try='./conftest$ac_cv_exeext' 2520 { { case "(($ac_try" in 2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2522 *) ac_try_echo=$ac_try;; 2523esac 2524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2525$as_echo "$ac_try_echo"; } >&5 2526 (eval "$ac_try") 2>&5 2527 ac_status=$? 2528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2529 test $ac_status = 0; }; }; then 2530 cross_compiling=no 2531 else 2532 if test "$cross_compiling" = maybe; then 2533 cross_compiling=yes 2534 else 2535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2537as_fn_error $? "cannot run C compiled programs. 2538If you meant to cross compile, use \`--host'. 2539See \`config.log' for more details" "$LINENO" 5; } 2540 fi 2541 fi 2542fi 2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2544$as_echo "$cross_compiling" >&6; } 2545 2546rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2547ac_clean_files=$ac_clean_files_save 2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2549$as_echo_n "checking for suffix of object files... " >&6; } 2550if ${ac_cv_objext+:} false; then : 2551 $as_echo_n "(cached) " >&6 2552else 2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2554/* end confdefs.h. */ 2555 2556int 2557main () 2558{ 2559 2560 ; 2561 return 0; 2562} 2563_ACEOF 2564rm -f conftest.o conftest.obj 2565if { { ac_try="$ac_compile" 2566case "(($ac_try" in 2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2568 *) ac_try_echo=$ac_try;; 2569esac 2570eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2571$as_echo "$ac_try_echo"; } >&5 2572 (eval "$ac_compile") 2>&5 2573 ac_status=$? 2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2575 test $ac_status = 0; }; then : 2576 for ac_file in conftest.o conftest.obj conftest.*; do 2577 test -f "$ac_file" || continue; 2578 case $ac_file in 2579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2580 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2581 break;; 2582 esac 2583done 2584else 2585 $as_echo "$as_me: failed program was:" >&5 2586sed 's/^/| /' conftest.$ac_ext >&5 2587 2588{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2590as_fn_error $? "cannot compute suffix of object files: cannot compile 2591See \`config.log' for more details" "$LINENO" 5; } 2592fi 2593rm -f conftest.$ac_cv_objext conftest.$ac_ext 2594fi 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2596$as_echo "$ac_cv_objext" >&6; } 2597OBJEXT=$ac_cv_objext 2598ac_objext=$OBJEXT 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2600$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2601if ${ac_cv_c_compiler_gnu+:} false; then : 2602 $as_echo_n "(cached) " >&6 2603else 2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2605/* end confdefs.h. */ 2606 2607int 2608main () 2609{ 2610#ifndef __GNUC__ 2611 choke me 2612#endif 2613 2614 ; 2615 return 0; 2616} 2617_ACEOF 2618if ac_fn_c_try_compile "$LINENO"; then : 2619 ac_compiler_gnu=yes 2620else 2621 ac_compiler_gnu=no 2622fi 2623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2624ac_cv_c_compiler_gnu=$ac_compiler_gnu 2625 2626fi 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2628$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2629if test $ac_compiler_gnu = yes; then 2630 GCC=yes 2631else 2632 GCC= 2633fi 2634ac_test_CFLAGS=${CFLAGS+set} 2635ac_save_CFLAGS=$CFLAGS 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2637$as_echo_n "checking whether $CC accepts -g... " >&6; } 2638if ${ac_cv_prog_cc_g+:} false; then : 2639 $as_echo_n "(cached) " >&6 2640else 2641 ac_save_c_werror_flag=$ac_c_werror_flag 2642 ac_c_werror_flag=yes 2643 ac_cv_prog_cc_g=no 2644 CFLAGS="-g" 2645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2646/* end confdefs.h. */ 2647 2648int 2649main () 2650{ 2651 2652 ; 2653 return 0; 2654} 2655_ACEOF 2656if ac_fn_c_try_compile "$LINENO"; then : 2657 ac_cv_prog_cc_g=yes 2658else 2659 CFLAGS="" 2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2661/* end confdefs.h. */ 2662 2663int 2664main () 2665{ 2666 2667 ; 2668 return 0; 2669} 2670_ACEOF 2671if ac_fn_c_try_compile "$LINENO"; then : 2672 2673else 2674 ac_c_werror_flag=$ac_save_c_werror_flag 2675 CFLAGS="-g" 2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2677/* end confdefs.h. */ 2678 2679int 2680main () 2681{ 2682 2683 ; 2684 return 0; 2685} 2686_ACEOF 2687if ac_fn_c_try_compile "$LINENO"; then : 2688 ac_cv_prog_cc_g=yes 2689fi 2690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2691fi 2692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2693fi 2694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2695 ac_c_werror_flag=$ac_save_c_werror_flag 2696fi 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2698$as_echo "$ac_cv_prog_cc_g" >&6; } 2699if test "$ac_test_CFLAGS" = set; then 2700 CFLAGS=$ac_save_CFLAGS 2701elif test $ac_cv_prog_cc_g = yes; then 2702 if test "$GCC" = yes; then 2703 CFLAGS="-g -O2" 2704 else 2705 CFLAGS="-g" 2706 fi 2707else 2708 if test "$GCC" = yes; then 2709 CFLAGS="-O2" 2710 else 2711 CFLAGS= 2712 fi 2713fi 2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2715$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2716if ${ac_cv_prog_cc_c89+:} false; then : 2717 $as_echo_n "(cached) " >&6 2718else 2719 ac_cv_prog_cc_c89=no 2720ac_save_CC=$CC 2721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2722/* end confdefs.h. */ 2723#include <stdarg.h> 2724#include <stdio.h> 2725struct stat; 2726/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2727struct buf { int x; }; 2728FILE * (*rcsopen) (struct buf *, struct stat *, int); 2729static char *e (p, i) 2730 char **p; 2731 int i; 2732{ 2733 return p[i]; 2734} 2735static char *f (char * (*g) (char **, int), char **p, ...) 2736{ 2737 char *s; 2738 va_list v; 2739 va_start (v,p); 2740 s = g (p, va_arg (v,int)); 2741 va_end (v); 2742 return s; 2743} 2744 2745/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2746 function prototypes and stuff, but not '\xHH' hex character constants. 2747 These don't provoke an error unfortunately, instead are silently treated 2748 as 'x'. The following induces an error, until -std is added to get 2749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2750 array size at least. It's necessary to write '\x00'==0 to get something 2751 that's true only with -std. */ 2752int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2753 2754/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2755 inside strings and character constants. */ 2756#define FOO(x) 'x' 2757int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2758 2759int test (int i, double x); 2760struct s1 {int (*f) (int a);}; 2761struct s2 {int (*f) (double a);}; 2762int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2763int argc; 2764char **argv; 2765int 2766main () 2767{ 2768return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2769 ; 2770 return 0; 2771} 2772_ACEOF 2773for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2774 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2775do 2776 CC="$ac_save_CC $ac_arg" 2777 if ac_fn_c_try_compile "$LINENO"; then : 2778 ac_cv_prog_cc_c89=$ac_arg 2779fi 2780rm -f core conftest.err conftest.$ac_objext 2781 test "x$ac_cv_prog_cc_c89" != "xno" && break 2782done 2783rm -f conftest.$ac_ext 2784CC=$ac_save_CC 2785 2786fi 2787# AC_CACHE_VAL 2788case "x$ac_cv_prog_cc_c89" in 2789 x) 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2791$as_echo "none needed" >&6; } ;; 2792 xno) 2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2794$as_echo "unsupported" >&6; } ;; 2795 *) 2796 CC="$CC $ac_cv_prog_cc_c89" 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2798$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2799esac 2800if test "x$ac_cv_prog_cc_c89" != xno; then : 2801 2802fi 2803 2804ac_ext=c 2805ac_cpp='$CPP $CPPFLAGS' 2806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2808ac_compiler_gnu=$ac_cv_c_compiler_gnu 2809 2810 2811 2812 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 2814$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 2815if ${ac_cv_c_const+:} false; then : 2816 $as_echo_n "(cached) " >&6 2817else 2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2819/* end confdefs.h. */ 2820 2821int 2822main () 2823{ 2824 2825#ifndef __cplusplus 2826 /* Ultrix mips cc rejects this sort of thing. */ 2827 typedef int charset[2]; 2828 const charset cs = { 0, 0 }; 2829 /* SunOS 4.1.1 cc rejects this. */ 2830 char const *const *pcpcc; 2831 char **ppc; 2832 /* NEC SVR4.0.2 mips cc rejects this. */ 2833 struct point {int x, y;}; 2834 static struct point const zero = {0,0}; 2835 /* AIX XL C 1.02.0.0 rejects this. 2836 It does not let you subtract one const X* pointer from another in 2837 an arm of an if-expression whose if-part is not a constant 2838 expression */ 2839 const char *g = "string"; 2840 pcpcc = &g + (g ? g-g : 0); 2841 /* HPUX 7.0 cc rejects these. */ 2842 ++pcpcc; 2843 ppc = (char**) pcpcc; 2844 pcpcc = (char const *const *) ppc; 2845 { /* SCO 3.2v4 cc rejects this sort of thing. */ 2846 char tx; 2847 char *t = &tx; 2848 char const *s = 0 ? (char *) 0 : (char const *) 0; 2849 2850 *t++ = 0; 2851 if (s) return 0; 2852 } 2853 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2854 int x[] = {25, 17}; 2855 const int *foo = &x[0]; 2856 ++foo; 2857 } 2858 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2859 typedef const int *iptr; 2860 iptr p = 0; 2861 ++p; 2862 } 2863 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 2864 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2865 struct s { int j; const int *ap[3]; } bx; 2866 struct s *b = &bx; b->j = 5; 2867 } 2868 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2869 const int foo = 10; 2870 if (!foo) return 0; 2871 } 2872 return !cs[0] && !zero.x; 2873#endif 2874 2875 ; 2876 return 0; 2877} 2878_ACEOF 2879if ac_fn_c_try_compile "$LINENO"; then : 2880 ac_cv_c_const=yes 2881else 2882 ac_cv_c_const=no 2883fi 2884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2885fi 2886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 2887$as_echo "$ac_cv_c_const" >&6; } 2888if test $ac_cv_c_const = no; then 2889 2890$as_echo "#define const /**/" >>confdefs.h 2891 2892fi 2893 2894 2895ISUNIX="false" 2896ISWINDOWS="false" 2897ISMACOSX="false" 2898 2899case "$host" in 2900 *-*-cygwin* | *-*-mingw32*) 2901 ISWINDOWS="true" 2902 EXE=".exe" 2903 MATHLIB="" 2904 SYS_GL_LIBS="-lopengl32" 2905 ;; 2906 *-*-haiku*) 2907 EXE="" 2908 MATHLIB="" 2909 SYS_GL_LIBS="-lGL" 2910 ;; 2911 *-*-darwin* ) 2912 ISMACOSX="true" 2913 EXE="" 2914 MATHLIB="" 2915 SYS_GL_LIBS="-Wl,-framework,OpenGL" 2916 ;; 2917 *-*-aix*) 2918 ISUNIX="true" 2919 EXE="" 2920 if test x$ac_cv_c_compiler_gnu = xyes; then 2921 CFLAGS="-mthreads" 2922 fi 2923 SYS_GL_LIBS="" 2924 ;; 2925 *-*-mint*) 2926 EXE="" 2927 MATHLIB="" 2928 # Extract the first word of "osmesa-config", so it can be a program name with args. 2929set dummy osmesa-config; ac_word=$2 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931$as_echo_n "checking for $ac_word... " >&6; } 2932if ${ac_cv_path_OSMESA_CONFIG+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 case $OSMESA_CONFIG in 2936 [\\/]* | ?:[\\/]*) 2937 ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path. 2938 ;; 2939 *) 2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2941for as_dir in $PATH 2942do 2943 IFS=$as_save_IFS 2944 test -z "$as_dir" && as_dir=. 2945 for ac_exec_ext in '' $ac_executable_extensions; do 2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2947 ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext" 2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2949 break 2 2950 fi 2951done 2952 done 2953IFS=$as_save_IFS 2954 2955 test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no" 2956 ;; 2957esac 2958fi 2959OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG 2960if test -n "$OSMESA_CONFIG"; then 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSMESA_CONFIG" >&5 2962$as_echo "$OSMESA_CONFIG" >&6; } 2963else 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2965$as_echo "no" >&6; } 2966fi 2967 2968 2969 if test "x$OSMESA_CONFIG" = "xyes"; then 2970 OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags` 2971 OSMESA_LIBS=`$OSMESA_CONFIG --libs` 2972 CFLAGS="$CFLAGS $OSMESA_CFLAGS" 2973 SYS_GL_LIBS="$OSMESA_LIBS" 2974 else 2975 SYS_GL_LIBS="-lOSMesa" 2976 fi 2977 ;; 2978 *-*-qnx*) 2979 EXE="" 2980 MATHLIB="" 2981 SYS_GL_LIBS="-lGLES_CM" 2982 ;; 2983 *-*-emscripten* ) 2984 EXE=".bc" 2985 MATHLIB="" 2986 SYS_GL_LIBS="" 2987 ;; 2988 *) 2989 ISUNIX="true" 2990 EXE="" 2991 MATHLIB="-lm" 2992 SYS_GL_LIBS="-lGL" 2993 ;; 2994esac 2995 2996 2997 2998 2999 3000 3001SDL_VERSION=2.0.0 3002 3003 3004 3005 3006 3007 3008if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3009 if test -n "$ac_tool_prefix"; then 3010 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3011set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3013$as_echo_n "checking for $ac_word... " >&6; } 3014if ${ac_cv_path_PKG_CONFIG+:} false; then : 3015 $as_echo_n "(cached) " >&6 3016else 3017 case $PKG_CONFIG in 3018 [\\/]* | ?:[\\/]*) 3019 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3020 ;; 3021 *) 3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3023for as_dir in $PATH 3024do 3025 IFS=$as_save_IFS 3026 test -z "$as_dir" && as_dir=. 3027 for ac_exec_ext in '' $ac_executable_extensions; do 3028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3029 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3031 break 2 3032 fi 3033done 3034 done 3035IFS=$as_save_IFS 3036 3037 ;; 3038esac 3039fi 3040PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3041if test -n "$PKG_CONFIG"; then 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3043$as_echo "$PKG_CONFIG" >&6; } 3044else 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3046$as_echo "no" >&6; } 3047fi 3048 3049 3050fi 3051if test -z "$ac_cv_path_PKG_CONFIG"; then 3052 ac_pt_PKG_CONFIG=$PKG_CONFIG 3053 # Extract the first word of "pkg-config", so it can be a program name with args. 3054set dummy pkg-config; ac_word=$2 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3056$as_echo_n "checking for $ac_word... " >&6; } 3057if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 3058 $as_echo_n "(cached) " >&6 3059else 3060 case $ac_pt_PKG_CONFIG in 3061 [\\/]* | ?:[\\/]*) 3062 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3063 ;; 3064 *) 3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3066for as_dir in $PATH 3067do 3068 IFS=$as_save_IFS 3069 test -z "$as_dir" && as_dir=. 3070 for ac_exec_ext in '' $ac_executable_extensions; do 3071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3072 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3074 break 2 3075 fi 3076done 3077 done 3078IFS=$as_save_IFS 3079 3080 ;; 3081esac 3082fi 3083ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3084if test -n "$ac_pt_PKG_CONFIG"; then 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 3086$as_echo "$ac_pt_PKG_CONFIG" >&6; } 3087else 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3089$as_echo "no" >&6; } 3090fi 3091 3092 if test "x$ac_pt_PKG_CONFIG" = x; then 3093 PKG_CONFIG="" 3094 else 3095 case $cross_compiling:$ac_tool_warned in 3096yes:) 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3099ac_tool_warned=yes ;; 3100esac 3101 PKG_CONFIG=$ac_pt_PKG_CONFIG 3102 fi 3103else 3104 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 3105fi 3106 3107fi 3108if test -n "$PKG_CONFIG"; then 3109 _pkg_min_version=0.9.0 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 3111$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 3112 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3114$as_echo "yes" >&6; } 3115 else 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3117$as_echo "no" >&6; } 3118 PKG_CONFIG="" 3119 fi 3120fi 3121 3122# Check whether --with-sdl-prefix was given. 3123if test "${with_sdl_prefix+set}" = set; then : 3124 withval=$with_sdl_prefix; sdl_prefix="$withval" 3125else 3126 sdl_prefix="" 3127fi 3128 3129 3130# Check whether --with-sdl-exec-prefix was given. 3131if test "${with_sdl_exec_prefix+set}" = set; then : 3132 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" 3133else 3134 sdl_exec_prefix="" 3135fi 3136 3137# Check whether --enable-sdltest was given. 3138if test "${enable_sdltest+set}" = set; then : 3139 enableval=$enable_sdltest; 3140else 3141 enable_sdltest=yes 3142fi 3143 3144 3145 min_sdl_version=$SDL_VERSION 3146 3147 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then 3148 3149pkg_failed=no 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5 3151$as_echo_n "checking for SDL... " >&6; } 3152 3153if test -n "$SDL_CFLAGS"; then 3154 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS" 3155 elif test -n "$PKG_CONFIG"; then 3156 if test -n "$PKG_CONFIG" && \ 3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 3158 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 3159 ac_status=$? 3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3161 test $ac_status = 0; }; then 3162 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null` 3163else 3164 pkg_failed=yes 3165fi 3166 else 3167 pkg_failed=untried 3168fi 3169if test -n "$SDL_LIBS"; then 3170 pkg_cv_SDL_LIBS="$SDL_LIBS" 3171 elif test -n "$PKG_CONFIG"; then 3172 if test -n "$PKG_CONFIG" && \ 3173 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5 3174 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5 3175 ac_status=$? 3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3177 test $ac_status = 0; }; then 3178 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null` 3179else 3180 pkg_failed=yes 3181fi 3182 else 3183 pkg_failed=untried 3184fi 3185 3186 3187 3188if test $pkg_failed = yes; then 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190$as_echo "no" >&6; } 3191 3192if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 3193 _pkg_short_errors_supported=yes 3194else 3195 _pkg_short_errors_supported=no 3196fi 3197 if test $_pkg_short_errors_supported = yes; then 3198 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl2 >= $min_sdl_version" 2>&1` 3199 else 3200 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl2 >= $min_sdl_version" 2>&1` 3201 fi 3202 # Put the nasty error message in config.log where it belongs 3203 echo "$SDL_PKG_ERRORS" >&5 3204 3205 sdl_pc=no 3206elif test $pkg_failed = untried; then 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208$as_echo "no" >&6; } 3209 sdl_pc=no 3210else 3211 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS 3212 SDL_LIBS=$pkg_cv_SDL_LIBS 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3214$as_echo "yes" >&6; } 3215 sdl_pc=yes 3216fi 3217 else 3218 sdl_pc=no 3219 if test x$sdl_exec_prefix != x ; then 3220 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix" 3221 if test x${SDL_CONFIG+set} != xset ; then 3222 SDL_CONFIG=$sdl_exec_prefix/bin/sdl2-config 3223 fi 3224 fi 3225 if test x$sdl_prefix != x ; then 3226 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix" 3227 if test x${SDL_CONFIG+set} != xset ; then 3228 SDL_CONFIG=$sdl_prefix/bin/sdl2-config 3229 fi 3230 fi 3231 fi 3232 3233 if test "x$sdl_pc" = xyes ; then 3234 no_sdl="" 3235 SDL_CONFIG="pkg-config sdl2" 3236 else 3237 as_save_PATH="$PATH" 3238 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then 3239 PATH="$prefix/bin:$prefix/usr/bin:$PATH" 3240 fi 3241 # Extract the first word of "sdl2-config", so it can be a program name with args. 3242set dummy sdl2-config; ac_word=$2 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3244$as_echo_n "checking for $ac_word... " >&6; } 3245if ${ac_cv_path_SDL_CONFIG+:} false; then : 3246 $as_echo_n "(cached) " >&6 3247else 3248 case $SDL_CONFIG in 3249 [\\/]* | ?:[\\/]*) 3250 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. 3251 ;; 3252 *) 3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3254for as_dir in $PATH 3255do 3256 IFS=$as_save_IFS 3257 test -z "$as_dir" && as_dir=. 3258 for ac_exec_ext in '' $ac_executable_extensions; do 3259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3260 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3262 break 2 3263 fi 3264done 3265 done 3266IFS=$as_save_IFS 3267 3268 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" 3269 ;; 3270esac 3271fi 3272SDL_CONFIG=$ac_cv_path_SDL_CONFIG 3273if test -n "$SDL_CONFIG"; then 3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 3275$as_echo "$SDL_CONFIG" >&6; } 3276else 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3278$as_echo "no" >&6; } 3279fi 3280 3281 3282 PATH="$as_save_PATH" 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 3284$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } 3285 no_sdl="" 3286 3287 if test "$SDL_CONFIG" = "no" ; then 3288 no_sdl=yes 3289 else 3290 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags` 3291 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs` 3292 3293 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \ 3294 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 3295 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \ 3296 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 3297 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ 3298 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 3299 if test "x$enable_sdltest" = "xyes" ; then 3300 ac_save_CFLAGS="$CFLAGS" 3301 ac_save_CXXFLAGS="$CXXFLAGS" 3302 ac_save_LIBS="$LIBS" 3303 CFLAGS="$CFLAGS $SDL_CFLAGS" 3304 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 3305 LIBS="$LIBS $SDL_LIBS" 3306 rm -f conf.sdltest 3307 if test "$cross_compiling" = yes; then : 3308 echo $ac_n "cross compiling; assumed OK... $ac_c" 3309else 3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3311/* end confdefs.h. */ 3312 3313#include <stdio.h> 3314#include <stdlib.h> 3315#include <string.h> 3316#include "SDL.h" 3317 3318char* 3319my_strdup (char *str) 3320{ 3321 char *new_str; 3322 3323 if (str) 3324 { 3325 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); 3326 strcpy (new_str, str); 3327 } 3328 else 3329 new_str = NULL; 3330 3331 return new_str; 3332} 3333 3334int main (int argc, char *argv[]) 3335{ 3336 int major, minor, micro; 3337 char *tmp_version; 3338 3339 /* This hangs on some systems (?) 3340 system ("touch conf.sdltest"); 3341 */ 3342 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } 3343 3344 /* HP/UX 9 (%@#!) writes to sscanf strings */ 3345 tmp_version = my_strdup("$min_sdl_version"); 3346 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 3347 printf("%s, bad version string\n", "$min_sdl_version"); 3348 exit(1); 3349 } 3350 3351 if (($sdl_major_version > major) || 3352 (($sdl_major_version == major) && ($sdl_minor_version > minor)) || 3353 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) 3354 { 3355 return 0; 3356 } 3357 else 3358 { 3359 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); 3360 printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro); 3361 printf("*** best to upgrade to the required version.\n"); 3362 printf("*** If sdl2-config was wrong, set the environment variable SDL_CONFIG\n"); 3363 printf("*** to point to the correct copy of sdl2-config, and remove the file\n"); 3364 printf("*** config.cache before re-running configure\n"); 3365 return 1; 3366 } 3367} 3368 3369 3370_ACEOF 3371if ac_fn_c_try_run "$LINENO"; then : 3372 3373else 3374 no_sdl=yes 3375fi 3376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3377 conftest.$ac_objext conftest.beam conftest.$ac_ext 3378fi 3379 3380 CFLAGS="$ac_save_CFLAGS" 3381 CXXFLAGS="$ac_save_CXXFLAGS" 3382 LIBS="$ac_save_LIBS" 3383 fi 3384 fi 3385 if test "x$no_sdl" = x ; then 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3387$as_echo "yes" >&6; } 3388 else 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3390$as_echo "no" >&6; } 3391 fi 3392 fi 3393 if test "x$no_sdl" = x ; then 3394 : 3395 else 3396 if test "$SDL_CONFIG" = "no" ; then 3397 echo "*** The sdl2-config script installed by SDL could not be found" 3398 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" 3399 echo "*** your path, or set the SDL_CONFIG environment variable to the" 3400 echo "*** full path to sdl2-config." 3401 else 3402 if test -f conf.sdltest ; then 3403 : 3404 else 3405 echo "*** Could not run SDL test program, checking why..." 3406 CFLAGS="$CFLAGS $SDL_CFLAGS" 3407 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 3408 LIBS="$LIBS $SDL_LIBS" 3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3410/* end confdefs.h. */ 3411 3412#include <stdio.h> 3413#include "SDL.h" 3414 3415int main(int argc, char *argv[]) 3416{ return 0; } 3417#undef main 3418#define main K_and_R_C_main 3419 3420int 3421main () 3422{ 3423 return 0; 3424 ; 3425 return 0; 3426} 3427_ACEOF 3428if ac_fn_c_try_link "$LINENO"; then : 3429 echo "*** The test program compiled, but did not run. This usually means" 3430 echo "*** that the run-time linker is not finding SDL or finding the wrong" 3431 echo "*** version of SDL. If it is not finding SDL, you'll need to set your" 3432 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 3433 echo "*** to the installed location Also, make sure you have run ldconfig if that" 3434 echo "*** is required on your system" 3435 echo "***" 3436 echo "*** If you have an old version installed, it is best to remove it, although" 3437 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 3438else 3439 echo "*** The test program failed to compile or link. See the file config.log for the" 3440 echo "*** exact error that occured. This usually means SDL was incorrectly installed" 3441 echo "*** or that you have moved SDL since it was installed. In the latter case, you" 3442 echo "*** may want to edit the sdl2-config script: $SDL_CONFIG" 3443fi 3444rm -f core conftest.err conftest.$ac_objext \ 3445 conftest$ac_exeext conftest.$ac_ext 3446 CFLAGS="$ac_save_CFLAGS" 3447 CXXFLAGS="$ac_save_CXXFLAGS" 3448 LIBS="$ac_save_LIBS" 3449 fi 3450 fi 3451 SDL_CFLAGS="" 3452 SDL_LIBS="" 3453 as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5 3454 3455 fi 3456 3457 3458 rm -f conf.sdltest 3459 3460CFLAGS="$CFLAGS $SDL_CFLAGS" 3461LIBS="$LIBS -lSDL2_test $SDL_LIBS" 3462 3463ac_ext=c 3464ac_cpp='$CPP $CPPFLAGS' 3465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3467ac_compiler_gnu=$ac_cv_c_compiler_gnu 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3469$as_echo_n "checking how to run the C preprocessor... " >&6; } 3470# On Suns, sometimes $CPP names a directory. 3471if test -n "$CPP" && test -d "$CPP"; then 3472 CPP= 3473fi 3474if test -z "$CPP"; then 3475 if ${ac_cv_prog_CPP+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 # Double quotes because CPP needs to be expanded 3479 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3480 do 3481 ac_preproc_ok=false 3482for ac_c_preproc_warn_flag in '' yes 3483do 3484 # Use a header file that comes with gcc, so configuring glibc 3485 # with a fresh cross-compiler works. 3486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3487 # <limits.h> exists even on freestanding compilers. 3488 # On the NeXT, cc -E runs the code through the compiler's parser, 3489 # not just through cpp. "Syntax error" is here to catch this case. 3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3491/* end confdefs.h. */ 3492#ifdef __STDC__ 3493# include <limits.h> 3494#else 3495# include <assert.h> 3496#endif 3497 Syntax error 3498_ACEOF 3499if ac_fn_c_try_cpp "$LINENO"; then : 3500 3501else 3502 # Broken: fails on valid input. 3503continue 3504fi 3505rm -f conftest.err conftest.i conftest.$ac_ext 3506 3507 # OK, works on sane cases. Now check whether nonexistent headers 3508 # can be detected and how. 3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511#include <ac_nonexistent.h> 3512_ACEOF 3513if ac_fn_c_try_cpp "$LINENO"; then : 3514 # Broken: success on invalid input. 3515continue 3516else 3517 # Passes both tests. 3518ac_preproc_ok=: 3519break 3520fi 3521rm -f conftest.err conftest.i conftest.$ac_ext 3522 3523done 3524# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3525rm -f conftest.i conftest.err conftest.$ac_ext 3526if $ac_preproc_ok; then : 3527 break 3528fi 3529 3530 done 3531 ac_cv_prog_CPP=$CPP 3532 3533fi 3534 CPP=$ac_cv_prog_CPP 3535else 3536 ac_cv_prog_CPP=$CPP 3537fi 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3539$as_echo "$CPP" >&6; } 3540ac_preproc_ok=false 3541for ac_c_preproc_warn_flag in '' yes 3542do 3543 # Use a header file that comes with gcc, so configuring glibc 3544 # with a fresh cross-compiler works. 3545 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3546 # <limits.h> exists even on freestanding compilers. 3547 # On the NeXT, cc -E runs the code through the compiler's parser, 3548 # not just through cpp. "Syntax error" is here to catch this case. 3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3550/* end confdefs.h. */ 3551#ifdef __STDC__ 3552# include <limits.h> 3553#else 3554# include <assert.h> 3555#endif 3556 Syntax error 3557_ACEOF 3558if ac_fn_c_try_cpp "$LINENO"; then : 3559 3560else 3561 # Broken: fails on valid input. 3562continue 3563fi 3564rm -f conftest.err conftest.i conftest.$ac_ext 3565 3566 # OK, works on sane cases. Now check whether nonexistent headers 3567 # can be detected and how. 3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3569/* end confdefs.h. */ 3570#include <ac_nonexistent.h> 3571_ACEOF 3572if ac_fn_c_try_cpp "$LINENO"; then : 3573 # Broken: success on invalid input. 3574continue 3575else 3576 # Passes both tests. 3577ac_preproc_ok=: 3578break 3579fi 3580rm -f conftest.err conftest.i conftest.$ac_ext 3581 3582done 3583# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3584rm -f conftest.i conftest.err conftest.$ac_ext 3585if $ac_preproc_ok; then : 3586 3587else 3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3590as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3591See \`config.log' for more details" "$LINENO" 5; } 3592fi 3593 3594ac_ext=c 3595ac_cpp='$CPP $CPPFLAGS' 3596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3598ac_compiler_gnu=$ac_cv_c_compiler_gnu 3599 3600 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 3602$as_echo_n "checking for X... " >&6; } 3603 3604 3605# Check whether --with-x was given. 3606if test "${with_x+set}" = set; then : 3607 withval=$with_x; 3608fi 3609 3610# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 3611if test "x$with_x" = xno; then 3612 # The user explicitly disabled X. 3613 have_x=disabled 3614else 3615 case $x_includes,$x_libraries in #( 3616 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 3617 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619else 3620 # One or both of the vars are not set, and there is no cached value. 3621ac_x_includes=no ac_x_libraries=no 3622rm -f -r conftest.dir 3623if mkdir conftest.dir; then 3624 cd conftest.dir 3625 cat >Imakefile <<'_ACEOF' 3626incroot: 3627 @echo incroot='${INCROOT}' 3628usrlibdir: 3629 @echo usrlibdir='${USRLIBDIR}' 3630libdir: 3631 @echo libdir='${LIBDIR}' 3632_ACEOF 3633 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 3634 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3635 for ac_var in incroot usrlibdir libdir; do 3636 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 3637 done 3638 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 3639 for ac_extension in a so sl dylib la dll; do 3640 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 3641 test -f "$ac_im_libdir/libX11.$ac_extension"; then 3642 ac_im_usrlibdir=$ac_im_libdir; break 3643 fi 3644 done 3645 # Screen out bogus values from the imake configuration. They are 3646 # bogus both because they are the default anyway, and because 3647 # using them would break gcc on systems where it needs fixed includes. 3648 case $ac_im_incroot in 3649 /usr/include) ac_x_includes= ;; 3650 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 3651 esac 3652 case $ac_im_usrlibdir in 3653 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 3654 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 3655 esac 3656 fi 3657 cd .. 3658 rm -f -r conftest.dir 3659fi 3660 3661# Standard set of common directories for X headers. 3662# Check X11 before X11Rn because it is often a symlink to the current release. 3663ac_x_header_dirs=' 3664/usr/X11/include 3665/usr/X11R7/include 3666/usr/X11R6/include 3667/usr/X11R5/include 3668/usr/X11R4/include 3669 3670/usr/include/X11 3671/usr/include/X11R7 3672/usr/include/X11R6 3673/usr/include/X11R5 3674/usr/include/X11R4 3675 3676/usr/local/X11/include 3677/usr/local/X11R7/include 3678/usr/local/X11R6/include 3679/usr/local/X11R5/include 3680/usr/local/X11R4/include 3681 3682/usr/local/include/X11 3683/usr/local/include/X11R7 3684/usr/local/include/X11R6 3685/usr/local/include/X11R5 3686/usr/local/include/X11R4 3687 3688/usr/X386/include 3689/usr/x386/include 3690/usr/XFree86/include/X11 3691 3692/usr/include 3693/usr/local/include 3694/usr/unsupported/include 3695/usr/athena/include 3696/usr/local/x11r5/include 3697/usr/lpp/Xamples/include 3698 3699/usr/openwin/include 3700/usr/openwin/share/include' 3701 3702if test "$ac_x_includes" = no; then 3703 # Guess where to find include files, by looking for Xlib.h. 3704 # First, try using that file with no special directory specified. 3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3706/* end confdefs.h. */ 3707#include <X11/Xlib.h> 3708_ACEOF 3709if ac_fn_c_try_cpp "$LINENO"; then : 3710 # We can compile using X headers with no special include directory. 3711ac_x_includes= 3712else 3713 for ac_dir in $ac_x_header_dirs; do 3714 if test -r "$ac_dir/X11/Xlib.h"; then 3715 ac_x_includes=$ac_dir 3716 break 3717 fi 3718done 3719fi 3720rm -f conftest.err conftest.i conftest.$ac_ext 3721fi # $ac_x_includes = no 3722 3723if test "$ac_x_libraries" = no; then 3724 # Check for the libraries. 3725 # See if we find them without any special options. 3726 # Don't add to $LIBS permanently. 3727 ac_save_LIBS=$LIBS 3728 LIBS="-lX11 $LIBS" 3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730/* end confdefs.h. */ 3731#include <X11/Xlib.h> 3732int 3733main () 3734{ 3735XrmInitialize () 3736 ; 3737 return 0; 3738} 3739_ACEOF 3740if ac_fn_c_try_link "$LINENO"; then : 3741 LIBS=$ac_save_LIBS 3742# We can link X programs with no special library path. 3743ac_x_libraries= 3744else 3745 LIBS=$ac_save_LIBS 3746for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 3747do 3748 # Don't even attempt the hair of trying to link an X program! 3749 for ac_extension in a so sl dylib la dll; do 3750 if test -r "$ac_dir/libX11.$ac_extension"; then 3751 ac_x_libraries=$ac_dir 3752 break 2 3753 fi 3754 done 3755done 3756fi 3757rm -f core conftest.err conftest.$ac_objext \ 3758 conftest$ac_exeext conftest.$ac_ext 3759fi # $ac_x_libraries = no 3760 3761case $ac_x_includes,$ac_x_libraries in #( 3762 no,* | *,no | *\'*) 3763 # Didn't find X, or a directory has "'" in its name. 3764 ac_cv_have_x="have_x=no";; #( 3765 *) 3766 # Record where we found X for the cache. 3767 ac_cv_have_x="have_x=yes\ 3768 ac_x_includes='$ac_x_includes'\ 3769 ac_x_libraries='$ac_x_libraries'" 3770esac 3771fi 3772;; #( 3773 *) have_x=yes;; 3774 esac 3775 eval "$ac_cv_have_x" 3776fi # $with_x != no 3777 3778if test "$have_x" != yes; then 3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 3780$as_echo "$have_x" >&6; } 3781 no_x=yes 3782else 3783 # If each of the values was on the command line, it overrides each guess. 3784 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 3785 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 3786 # Update the cache value to reflect the command line values. 3787 ac_cv_have_x="have_x=yes\ 3788 ac_x_includes='$x_includes'\ 3789 ac_x_libraries='$x_libraries'" 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 3791$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 3792fi 3793 3794if test x$have_x = xyes; then 3795 if test x$ac_x_includes = xno || test "x$ac_x_includes" = xNone || test "x$ac_x_includes" = x; then 3796 : 3797 else 3798 CFLAGS="$CFLAGS -I$ac_x_includes" 3799 fi 3800 if test x$ac_x_libraries = xno || test "x$ac_x_libraries" = xNone; then 3801 : 3802 else 3803 if test "x$ac_x_libraries" = x; then 3804 XPATH="" 3805 XLIB="-lX11" 3806 else 3807 XPATH="-L$ac_x_libraries" 3808 XLIB="-L$ac_x_libraries -lX11" 3809 fi 3810 fi 3811fi 3812 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL support" >&5 3814$as_echo_n "checking for OpenGL support... " >&6; } 3815have_opengl=no 3816cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3817/* end confdefs.h. */ 3818 3819 #include "SDL_opengl.h" 3820 3821int 3822main () 3823{ 3824 3825 3826 ; 3827 return 0; 3828} 3829_ACEOF 3830if ac_fn_c_try_compile "$LINENO"; then : 3831 3832have_opengl=yes 3833 3834fi 3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengl" >&5 3837$as_echo "$have_opengl" >&6; } 3838 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES support" >&5 3840$as_echo_n "checking for OpenGL ES support... " >&6; } 3841have_opengles=no 3842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3843/* end confdefs.h. */ 3844 3845 #if defined (__IPHONEOS__) 3846 #include <OpenGLES/ES1/gl.h> 3847 #else 3848 #include <GLES/gl.h> 3849 #endif /* __QNXNTO__ */ 3850 3851int 3852main () 3853{ 3854 3855 3856 ; 3857 return 0; 3858} 3859_ACEOF 3860if ac_fn_c_try_compile "$LINENO"; then : 3861 3862have_opengles=yes 3863 3864fi 3865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles" >&5 3867$as_echo "$have_opengles" >&6; } 3868 3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES2 support" >&5 3870$as_echo_n "checking for OpenGL ES2 support... " >&6; } 3871have_opengles2=no 3872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3873/* end confdefs.h. */ 3874 3875 #if defined (__IPHONEOS__) 3876 #include <OpenGLES/ES2/gl.h> 3877 #include <OpenGLES/ES2/glext.h> 3878 #else 3879 #include <GLES2/gl2.h> 3880 #include <GLES2/gl2ext.h> 3881 #endif 3882 3883int 3884main () 3885{ 3886 3887 3888 ; 3889 return 0; 3890} 3891_ACEOF 3892if ac_fn_c_try_compile "$LINENO"; then : 3893 3894have_opengles2=yes 3895 3896fi 3897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles2" >&5 3899$as_echo "$have_opengles2" >&6; } 3900 3901GLLIB="" 3902GLESLIB="" 3903GLES2LIB="" 3904if test x$have_opengles = xyes; then 3905 CFLAGS="$CFLAGS -DHAVE_OPENGLES" 3906 GLESLIB="$XPATH -lGLESv1_CM" 3907fi 3908if test x$have_opengles2 = xyes; then 3909 CFLAGS="$CFLAGS -DHAVE_OPENGLES2" 3910 #GLES2LIB="$XPATH -lGLESv2" 3911fi 3912if test x$have_opengl = xyes; then 3913 CFLAGS="$CFLAGS -DHAVE_OPENGL" 3914 GLLIB="$XPATH $SYS_GL_LIBS" 3915fi 3916 3917 3918 3919 3920 3921 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL2_ttf" >&5 3923$as_echo_n "checking for TTF_Init in -lSDL2_ttf... " >&6; } 3924if ${ac_cv_lib_SDL2_ttf_TTF_Init+:} false; then : 3925 $as_echo_n "(cached) " >&6 3926else 3927 ac_check_lib_save_LIBS=$LIBS 3928LIBS="-lSDL2_ttf $LIBS" 3929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3930/* end confdefs.h. */ 3931 3932/* Override any GCC internal prototype to avoid an error. 3933 Use char because int might match the return type of a GCC 3934 builtin and then its argument prototype would still apply. */ 3935#ifdef __cplusplus 3936extern "C" 3937#endif 3938char TTF_Init (); 3939int 3940main () 3941{ 3942return TTF_Init (); 3943 ; 3944 return 0; 3945} 3946_ACEOF 3947if ac_fn_c_try_link "$LINENO"; then : 3948 ac_cv_lib_SDL2_ttf_TTF_Init=yes 3949else 3950 ac_cv_lib_SDL2_ttf_TTF_Init=no 3951fi 3952rm -f core conftest.err conftest.$ac_objext \ 3953 conftest$ac_exeext conftest.$ac_ext 3954LIBS=$ac_check_lib_save_LIBS 3955fi 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_ttf_TTF_Init" >&5 3957$as_echo "$ac_cv_lib_SDL2_ttf_TTF_Init" >&6; } 3958if test "x$ac_cv_lib_SDL2_ttf_TTF_Init" = xyes; then : 3959 have_SDL_ttf=yes 3960fi 3961 3962if test x$have_SDL_ttf = xyes; then 3963 CFLAGS="$CFLAGS -DHAVE_SDL_TTF" 3964 SDL_TTF_LIB="-lSDL2_ttf" 3965fi 3966 3967 3968ac_config_files="$ac_config_files Makefile" 3969 3970cat >confcache <<\_ACEOF 3971# This file is a shell script that caches the results of configure 3972# tests run on this system so they can be shared between configure 3973# scripts and configure runs, see configure's option --config-cache. 3974# It is not useful on other systems. If it contains results you don't 3975# want to keep, you may remove or edit it. 3976# 3977# config.status only pays attention to the cache file if you give it 3978# the --recheck option to rerun configure. 3979# 3980# `ac_cv_env_foo' variables (set or unset) will be overridden when 3981# loading this file, other *unset* `ac_cv_foo' will be assigned the 3982# following values. 3983 3984_ACEOF 3985 3986# The following way of writing the cache mishandles newlines in values, 3987# but we know of no workaround that is simple, portable, and efficient. 3988# So, we kill variables containing newlines. 3989# Ultrix sh set writes to stderr and can't be redirected directly, 3990# and sets the high bit in the cache file unless we assign to the vars. 3991( 3992 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 3993 eval ac_val=\$$ac_var 3994 case $ac_val in #( 3995 *${as_nl}*) 3996 case $ac_var in #( 3997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3998$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3999 esac 4000 case $ac_var in #( 4001 _ | IFS | as_nl) ;; #( 4002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4003 *) { eval $ac_var=; unset $ac_var;} ;; 4004 esac ;; 4005 esac 4006 done 4007 4008 (set) 2>&1 | 4009 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4010 *${as_nl}ac_space=\ *) 4011 # `set' does not quote correctly, so add quotes: double-quote 4012 # substitution turns \\\\ into \\, and sed turns \\ into \. 4013 sed -n \ 4014 "s/'/'\\\\''/g; 4015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4016 ;; #( 4017 *) 4018 # `set' quotes correctly as required by POSIX, so do not add quotes. 4019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4020 ;; 4021 esac | 4022 sort 4023) | 4024 sed ' 4025 /^ac_cv_env_/b end 4026 t clear 4027 :clear 4028 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4029 t end 4030 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4031 :end' >>confcache 4032if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4033 if test -w "$cache_file"; then 4034 if test "x$cache_file" != "x/dev/null"; then 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4036$as_echo "$as_me: updating cache $cache_file" >&6;} 4037 if test ! -f "$cache_file" || test -h "$cache_file"; then 4038 cat confcache >"$cache_file" 4039 else 4040 case $cache_file in #( 4041 */* | ?:*) 4042 mv -f confcache "$cache_file"$$ && 4043 mv -f "$cache_file"$$ "$cache_file" ;; #( 4044 *) 4045 mv -f confcache "$cache_file" ;; 4046 esac 4047 fi 4048 fi 4049 else 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4051$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4052 fi 4053fi 4054rm -f confcache 4055 4056test "x$prefix" = xNONE && prefix=$ac_default_prefix 4057# Let make expand exec_prefix. 4058test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4059 4060# Transform confdefs.h into DEFS. 4061# Protect against shell expansion while executing Makefile rules. 4062# Protect against Makefile macro expansion. 4063# 4064# If the first sed substitution is executed (which looks for macros that 4065# take arguments), then branch to the quote section. Otherwise, 4066# look for a macro that doesn't take arguments. 4067ac_script=' 4068:mline 4069/\\$/{ 4070 N 4071 s,\\\n,, 4072 b mline 4073} 4074t clear 4075:clear 4076s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 4077t quote 4078s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 4079t quote 4080b any 4081:quote 4082s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 4083s/\[/\\&/g 4084s/\]/\\&/g 4085s/\$/$$/g 4086H 4087:any 4088${ 4089 g 4090 s/^\n// 4091 s/\n/ /g 4092 p 4093} 4094' 4095DEFS=`sed -n "$ac_script" confdefs.h` 4096 4097 4098ac_libobjs= 4099ac_ltlibobjs= 4100U= 4101for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4102 # 1. Remove the extension, and $U if already installed. 4103 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4104 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 4105 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4106 # will be set to the directory where LIBOBJS objects are built. 4107 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4108 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 4109done 4110LIBOBJS=$ac_libobjs 4111 4112LTLIBOBJS=$ac_ltlibobjs 4113 4114 4115 4116: "${CONFIG_STATUS=./config.status}" 4117ac_write_fail=0 4118ac_clean_files_save=$ac_clean_files 4119ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4121$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 4122as_write_fail=0 4123cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 4124#! $SHELL 4125# Generated by $as_me. 4126# Run this file to recreate the current configuration. 4127# Compiler output produced by configure, useful for debugging 4128# configure, is in config.log if it exists. 4129 4130debug=false 4131ac_cs_recheck=false 4132ac_cs_silent=false 4133 4134SHELL=\${CONFIG_SHELL-$SHELL} 4135export SHELL 4136_ASEOF 4137cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 4138## -------------------- ## 4139## M4sh Initialization. ## 4140## -------------------- ## 4141 4142# Be more Bourne compatible 4143DUALCASE=1; export DUALCASE # for MKS sh 4144if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 4145 emulate sh 4146 NULLCMD=: 4147 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 4148 # is contrary to our usage. Disable this feature. 4149 alias -g '${1+"$@"}'='"$@"' 4150 setopt NO_GLOB_SUBST 4151else 4152 case `(set -o) 2>/dev/null` in #( 4153 *posix*) : 4154 set -o posix ;; #( 4155 *) : 4156 ;; 4157esac 4158fi 4159 4160 4161as_nl=' 4162' 4163export as_nl 4164# Printing a long string crashes Solaris 7 /usr/bin/printf. 4165as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4166as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 4167as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 4168# Prefer a ksh shell builtin over an external printf program on Solaris, 4169# but without wasting forks for bash or zsh. 4170if test -z "$BASH_VERSION$ZSH_VERSION" \ 4171 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 4172 as_echo='print -r --' 4173 as_echo_n='print -rn --' 4174elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 4175 as_echo='printf %s\n' 4176 as_echo_n='printf %s' 4177else 4178 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 4179 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 4180 as_echo_n='/usr/ucb/echo -n' 4181 else 4182 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 4183 as_echo_n_body='eval 4184 arg=$1; 4185 case $arg in #( 4186 *"$as_nl"*) 4187 expr "X$arg" : "X\\(.*\\)$as_nl"; 4188 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 4189 esac; 4190 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 4191 ' 4192 export as_echo_n_body 4193 as_echo_n='sh -c $as_echo_n_body as_echo' 4194 fi 4195 export as_echo_body 4196 as_echo='sh -c $as_echo_body as_echo' 4197fi 4198 4199# The user is always right. 4200if test "${PATH_SEPARATOR+set}" != set; then 4201 PATH_SEPARATOR=: 4202 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 4203 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 4204 PATH_SEPARATOR=';' 4205 } 4206fi 4207 4208 4209# IFS 4210# We need space, tab and new line, in precisely that order. Quoting is 4211# there to prevent editors from complaining about space-tab. 4212# (If _AS_PATH_WALK were called with IFS unset, it would disable word 4213# splitting by setting IFS to empty value.) 4214IFS=" "" $as_nl" 4215 4216# Find who we are. Look in the path if we contain no directory separator. 4217as_myself= 4218case $0 in #(( 4219 *[\\/]* ) as_myself=$0 ;; 4220 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4221for as_dir in $PATH 4222do 4223 IFS=$as_save_IFS 4224 test -z "$as_dir" && as_dir=. 4225 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4226 done 4227IFS=$as_save_IFS 4228 4229 ;; 4230esac 4231# We did not find ourselves, most probably we were run as `sh COMMAND' 4232# in which case we are not to be found in the path. 4233if test "x$as_myself" = x; then 4234 as_myself=$0 4235fi 4236if test ! -f "$as_myself"; then 4237 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4238 exit 1 4239fi 4240 4241# Unset variables that we do not need and which cause bugs (e.g. in 4242# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 4243# suppresses any "Segmentation fault" message there. '((' could 4244# trigger a bug in pdksh 5.2.14. 4245for as_var in BASH_ENV ENV MAIL MAILPATH 4246do eval test x\${$as_var+set} = xset \ 4247 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 4248done 4249PS1='$ ' 4250PS2='> ' 4251PS4='+ ' 4252 4253# NLS nuisances. 4254LC_ALL=C 4255export LC_ALL 4256LANGUAGE=C 4257export LANGUAGE 4258 4259# CDPATH. 4260(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4261 4262 4263# as_fn_error STATUS ERROR [LINENO LOG_FD] 4264# ---------------------------------------- 4265# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4266# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4267# script with STATUS, using 1 if that was 0. 4268as_fn_error () 4269{ 4270 as_status=$1; test $as_status -eq 0 && as_status=1 4271 if test "$4"; then 4272 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4273 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4274 fi 4275 $as_echo "$as_me: error: $2" >&2 4276 as_fn_exit $as_status 4277} # as_fn_error 4278 4279 4280# as_fn_set_status STATUS 4281# ----------------------- 4282# Set $? to STATUS, without forking. 4283as_fn_set_status () 4284{ 4285 return $1 4286} # as_fn_set_status 4287 4288# as_fn_exit STATUS 4289# ----------------- 4290# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 4291as_fn_exit () 4292{ 4293 set +e 4294 as_fn_set_status $1 4295 exit $1 4296} # as_fn_exit 4297 4298# as_fn_unset VAR 4299# --------------- 4300# Portably unset VAR. 4301as_fn_unset () 4302{ 4303 { eval $1=; unset $1;} 4304} 4305as_unset=as_fn_unset 4306# as_fn_append VAR VALUE 4307# ---------------------- 4308# Append the text in VALUE to the end of the definition contained in VAR. Take 4309# advantage of any shell optimizations that allow amortized linear growth over 4310# repeated appends, instead of the typical quadratic growth present in naive 4311# implementations. 4312if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 4313 eval 'as_fn_append () 4314 { 4315 eval $1+=\$2 4316 }' 4317else 4318 as_fn_append () 4319 { 4320 eval $1=\$$1\$2 4321 } 4322fi # as_fn_append 4323 4324# as_fn_arith ARG... 4325# ------------------ 4326# Perform arithmetic evaluation on the ARGs, and store the result in the 4327# global $as_val. Take advantage of shells that can avoid forks. The arguments 4328# must be portable across $(()) and expr. 4329if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 4330 eval 'as_fn_arith () 4331 { 4332 as_val=$(( $* )) 4333 }' 4334else 4335 as_fn_arith () 4336 { 4337 as_val=`expr "$@" || test $? -eq 1` 4338 } 4339fi # as_fn_arith 4340 4341 4342if expr a : '\(a\)' >/dev/null 2>&1 && 4343 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4344 as_expr=expr 4345else 4346 as_expr=false 4347fi 4348 4349if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4350 as_basename=basename 4351else 4352 as_basename=false 4353fi 4354 4355if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4356 as_dirname=dirname 4357else 4358 as_dirname=false 4359fi 4360 4361as_me=`$as_basename -- "$0" || 4362$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4363 X"$0" : 'X\(//\)$' \| \ 4364 X"$0" : 'X\(/\)' \| . 2>/dev/null || 4365$as_echo X/"$0" | 4366 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4367 s//\1/ 4368 q 4369 } 4370 /^X\/\(\/\/\)$/{ 4371 s//\1/ 4372 q 4373 } 4374 /^X\/\(\/\).*/{ 4375 s//\1/ 4376 q 4377 } 4378 s/.*/./; q'` 4379 4380# Avoid depending upon Character Ranges. 4381as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4382as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4383as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4384as_cr_digits='0123456789' 4385as_cr_alnum=$as_cr_Letters$as_cr_digits 4386 4387ECHO_C= ECHO_N= ECHO_T= 4388case `echo -n x` in #((((( 4389-n*) 4390 case `echo 'xy\c'` in 4391 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4392 xy) ECHO_C='\c';; 4393 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4394 ECHO_T=' ';; 4395 esac;; 4396*) 4397 ECHO_N='-n';; 4398esac 4399 4400rm -f conf$$ conf$$.exe conf$$.file 4401if test -d conf$$.dir; then 4402 rm -f conf$$.dir/conf$$.file 4403else 4404 rm -f conf$$.dir 4405 mkdir conf$$.dir 2>/dev/null 4406fi 4407if (echo >conf$$.file) 2>/dev/null; then 4408 if ln -s conf$$.file conf$$ 2>/dev/null; then 4409 as_ln_s='ln -s' 4410 # ... but there are two gotchas: 4411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4413 # In both cases, we have to default to `cp -pR'. 4414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4415 as_ln_s='cp -pR' 4416 elif ln conf$$.file conf$$ 2>/dev/null; then 4417 as_ln_s=ln 4418 else 4419 as_ln_s='cp -pR' 4420 fi 4421else 4422 as_ln_s='cp -pR' 4423fi 4424rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4425rmdir conf$$.dir 2>/dev/null 4426 4427 4428# as_fn_mkdir_p 4429# ------------- 4430# Create "$as_dir" as a directory, including parents if necessary. 4431as_fn_mkdir_p () 4432{ 4433 4434 case $as_dir in #( 4435 -*) as_dir=./$as_dir;; 4436 esac 4437 test -d "$as_dir" || eval $as_mkdir_p || { 4438 as_dirs= 4439 while :; do 4440 case $as_dir in #( 4441 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 4442 *) as_qdir=$as_dir;; 4443 esac 4444 as_dirs="'$as_qdir' $as_dirs" 4445 as_dir=`$as_dirname -- "$as_dir" || 4446$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4447 X"$as_dir" : 'X\(//\)[^/]' \| \ 4448 X"$as_dir" : 'X\(//\)$' \| \ 4449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4450$as_echo X"$as_dir" | 4451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4452 s//\1/ 4453 q 4454 } 4455 /^X\(\/\/\)[^/].*/{ 4456 s//\1/ 4457 q 4458 } 4459 /^X\(\/\/\)$/{ 4460 s//\1/ 4461 q 4462 } 4463 /^X\(\/\).*/{ 4464 s//\1/ 4465 q 4466 } 4467 s/.*/./; q'` 4468 test -d "$as_dir" && break 4469 done 4470 test -z "$as_dirs" || eval "mkdir $as_dirs" 4471 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 4472 4473 4474} # as_fn_mkdir_p 4475if mkdir -p . 2>/dev/null; then 4476 as_mkdir_p='mkdir -p "$as_dir"' 4477else 4478 test -d ./-p && rmdir ./-p 4479 as_mkdir_p=false 4480fi 4481 4482 4483# as_fn_executable_p FILE 4484# ----------------------- 4485# Test if FILE is an executable regular file. 4486as_fn_executable_p () 4487{ 4488 test -f "$1" && test -x "$1" 4489} # as_fn_executable_p 4490as_test_x='test -x' 4491as_executable_p=as_fn_executable_p 4492 4493# Sed expression to map a string onto a valid CPP name. 4494as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4495 4496# Sed expression to map a string onto a valid variable name. 4497as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4498 4499 4500exec 6>&1 4501## ----------------------------------- ## 4502## Main body of $CONFIG_STATUS script. ## 4503## ----------------------------------- ## 4504_ASEOF 4505test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 4506 4507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4508# Save the log message, to keep $0 and so on meaningful, and to 4509# report actual input values of CONFIG_FILES etc. instead of their 4510# values after options handling. 4511ac_log=" 4512This file was extended by $as_me, which was 4513generated by GNU Autoconf 2.69. Invocation command line was 4514 4515 CONFIG_FILES = $CONFIG_FILES 4516 CONFIG_HEADERS = $CONFIG_HEADERS 4517 CONFIG_LINKS = $CONFIG_LINKS 4518 CONFIG_COMMANDS = $CONFIG_COMMANDS 4519 $ $0 $@ 4520 4521on `(hostname || uname -n) 2>/dev/null | sed 1q` 4522" 4523 4524_ACEOF 4525 4526case $ac_config_files in *" 4527"*) set x $ac_config_files; shift; ac_config_files=$*;; 4528esac 4529 4530 4531 4532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4533# Files that config.status was made for. 4534config_files="$ac_config_files" 4535 4536_ACEOF 4537 4538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4539ac_cs_usage="\ 4540\`$as_me' instantiates files and other configuration actions 4541from templates according to the current configuration. Unless the files 4542and actions are specified as TAGs, all are instantiated by default. 4543 4544Usage: $0 [OPTION]... [TAG]... 4545 4546 -h, --help print this help, then exit 4547 -V, --version print version number and configuration settings, then exit 4548 --config print configuration, then exit 4549 -q, --quiet, --silent 4550 do not print progress messages 4551 -d, --debug don't remove temporary files 4552 --recheck update $as_me by reconfiguring in the same conditions 4553 --file=FILE[:TEMPLATE] 4554 instantiate the configuration file FILE 4555 4556Configuration files: 4557$config_files 4558 4559Report bugs to the package provider." 4560 4561_ACEOF 4562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4563ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 4564ac_cs_version="\\ 4565config.status 4566configured by $0, generated by GNU Autoconf 2.69, 4567 with options \\"\$ac_cs_config\\" 4568 4569Copyright (C) 2012 Free Software Foundation, Inc. 4570This config.status script is free software; the Free Software Foundation 4571gives unlimited permission to copy, distribute and modify it." 4572 4573ac_pwd='$ac_pwd' 4574srcdir='$srcdir' 4575test -n "\$AWK" || AWK=awk 4576_ACEOF 4577 4578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4579# The default lists apply if the user does not specify any file. 4580ac_need_defaults=: 4581while test $# != 0 4582do 4583 case $1 in 4584 --*=?*) 4585 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4586 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4587 ac_shift=: 4588 ;; 4589 --*=) 4590 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4591 ac_optarg= 4592 ac_shift=: 4593 ;; 4594 *) 4595 ac_option=$1 4596 ac_optarg=$2 4597 ac_shift=shift 4598 ;; 4599 esac 4600 4601 case $ac_option in 4602 # Handling of the options. 4603 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4604 ac_cs_recheck=: ;; 4605 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4606 $as_echo "$ac_cs_version"; exit ;; 4607 --config | --confi | --conf | --con | --co | --c ) 4608 $as_echo "$ac_cs_config"; exit ;; 4609 --debug | --debu | --deb | --de | --d | -d ) 4610 debug=: ;; 4611 --file | --fil | --fi | --f ) 4612 $ac_shift 4613 case $ac_optarg in 4614 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4615 '') as_fn_error $? "missing file argument" ;; 4616 esac 4617 as_fn_append CONFIG_FILES " '$ac_optarg'" 4618 ac_need_defaults=false;; 4619 --he | --h | --help | --hel | -h ) 4620 $as_echo "$ac_cs_usage"; exit ;; 4621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4622 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4623 ac_cs_silent=: ;; 4624 4625 # This is an error. 4626 -*) as_fn_error $? "unrecognized option: \`$1' 4627Try \`$0 --help' for more information." ;; 4628 4629 *) as_fn_append ac_config_targets " $1" 4630 ac_need_defaults=false ;; 4631 4632 esac 4633 shift 4634done 4635 4636ac_configure_extra_args= 4637 4638if $ac_cs_silent; then 4639 exec 6>/dev/null 4640 ac_configure_extra_args="$ac_configure_extra_args --silent" 4641fi 4642 4643_ACEOF 4644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4645if \$ac_cs_recheck; then 4646 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4647 shift 4648 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 4649 CONFIG_SHELL='$SHELL' 4650 export CONFIG_SHELL 4651 exec "\$@" 4652fi 4653 4654_ACEOF 4655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4656exec 5>>config.log 4657{ 4658 echo 4659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4660## Running $as_me. ## 4661_ASBOX 4662 $as_echo "$ac_log" 4663} >&5 4664 4665_ACEOF 4666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4667_ACEOF 4668 4669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4670 4671# Handling of arguments. 4672for ac_config_target in $ac_config_targets 4673do 4674 case $ac_config_target in 4675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4676 4677 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 4678 esac 4679done 4680 4681 4682# If the user did not use the arguments to specify the items to instantiate, 4683# then the envvar interface is used. Set only those that are not. 4684# We use the long form for the default assignment because of an extremely 4685# bizarre bug on SunOS 4.1.3. 4686if $ac_need_defaults; then 4687 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4688fi 4689 4690# Have a temporary directory for convenience. Make it in the build tree 4691# simply because there is no reason against having it here, and in addition, 4692# creating and moving files from /tmp can sometimes cause problems. 4693# Hook for its removal unless debugging. 4694# Note that there is a small window in which the directory will not be cleaned: 4695# after its creation but before its name has been assigned to `$tmp'. 4696$debug || 4697{ 4698 tmp= ac_tmp= 4699 trap 'exit_status=$? 4700 : "${ac_tmp:=$tmp}" 4701 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 4702' 0 4703 trap 'as_fn_exit 1' 1 2 13 15 4704} 4705# Create a (secure) tmp directory for tmp files. 4706 4707{ 4708 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4709 test -d "$tmp" 4710} || 4711{ 4712 tmp=./conf$$-$RANDOM 4713 (umask 077 && mkdir "$tmp") 4714} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 4715ac_tmp=$tmp 4716 4717# Set up the scripts for CONFIG_FILES section. 4718# No need to generate them if there are no CONFIG_FILES. 4719# This happens for instance with `./config.status config.h'. 4720if test -n "$CONFIG_FILES"; then 4721 4722 4723ac_cr=`echo X | tr X '\015'` 4724# On cygwin, bash can eat \r inside `` if the user requested igncr. 4725# But we know of no other shell where ac_cr would be empty at this 4726# point, so we can use a bashism as a fallback. 4727if test "x$ac_cr" = x; then 4728 eval ac_cr=\$\'\\r\' 4729fi 4730ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 4731if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 4732 ac_cs_awk_cr='\\r' 4733else 4734 ac_cs_awk_cr=$ac_cr 4735fi 4736 4737echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 4738_ACEOF 4739 4740 4741{ 4742 echo "cat >conf$$subs.awk <<_ACEOF" && 4743 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 4744 echo "_ACEOF" 4745} >conf$$subs.sh || 4746 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4747ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 4748ac_delim='%!_!# ' 4749for ac_last_try in false false false false false :; do 4750 . ./conf$$subs.sh || 4751 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4752 4753 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 4754 if test $ac_delim_n = $ac_delim_num; then 4755 break 4756 elif $ac_last_try; then 4757 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4758 else 4759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 4760 fi 4761done 4762rm -f conf$$subs.sh 4763 4764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4765cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 4766_ACEOF 4767sed -n ' 4768h 4769s/^/S["/; s/!.*/"]=/ 4770p 4771g 4772s/^[^!]*!// 4773:repl 4774t repl 4775s/'"$ac_delim"'$// 4776t delim 4777:nl 4778h 4779s/\(.\{148\}\)..*/\1/ 4780t more1 4781s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 4782p 4783n 4784b repl 4785:more1 4786s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 4787p 4788g 4789s/.\{148\}// 4790t nl 4791:delim 4792h 4793s/\(.\{148\}\)..*/\1/ 4794t more2 4795s/["\\]/\\&/g; s/^/"/; s/$/"/ 4796p 4797b 4798:more2 4799s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 4800p 4801g 4802s/.\{148\}// 4803t delim 4804' <conf$$subs.awk | sed ' 4805/^[^""]/{ 4806 N 4807 s/\n// 4808} 4809' >>$CONFIG_STATUS || ac_write_fail=1 4810rm -f conf$$subs.awk 4811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4812_ACAWK 4813cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 4814 for (key in S) S_is_set[key] = 1 4815 FS = "" 4816 4817} 4818{ 4819 line = $ 0 4820 nfields = split(line, field, "@") 4821 substed = 0 4822 len = length(field[1]) 4823 for (i = 2; i < nfields; i++) { 4824 key = field[i] 4825 keylen = length(key) 4826 if (S_is_set[key]) { 4827 value = S[key] 4828 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 4829 len += length(value) + length(field[++i]) 4830 substed = 1 4831 } else 4832 len += 1 + keylen 4833 } 4834 4835 print line 4836} 4837 4838_ACAWK 4839_ACEOF 4840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4841if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 4842 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 4843else 4844 cat 4845fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 4846 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 4847_ACEOF 4848 4849# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 4850# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 4851# trailing colons and then remove the whole line if VPATH becomes empty 4852# (actually we leave an empty line to preserve line numbers). 4853if test "x$srcdir" = x.; then 4854 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 4855h 4856s/// 4857s/^/:/ 4858s/[ ]*$/:/ 4859s/:\$(srcdir):/:/g 4860s/:\${srcdir}:/:/g 4861s/:@srcdir@:/:/g 4862s/^:*// 4863s/:*$// 4864x 4865s/\(=[ ]*\).*/\1/ 4866G 4867s/\n// 4868s/^[^=]*=[ ]*$// 4869}' 4870fi 4871 4872cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4873fi # test -n "$CONFIG_FILES" 4874 4875 4876eval set X " :F $CONFIG_FILES " 4877shift 4878for ac_tag 4879do 4880 case $ac_tag in 4881 :[FHLC]) ac_mode=$ac_tag; continue;; 4882 esac 4883 case $ac_mode$ac_tag in 4884 :[FHL]*:*);; 4885 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 4886 :[FH]-) ac_tag=-:-;; 4887 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 4888 esac 4889 ac_save_IFS=$IFS 4890 IFS=: 4891 set x $ac_tag 4892 IFS=$ac_save_IFS 4893 shift 4894 ac_file=$1 4895 shift 4896 4897 case $ac_mode in 4898 :L) ac_source=$1;; 4899 :[FH]) 4900 ac_file_inputs= 4901 for ac_f 4902 do 4903 case $ac_f in 4904 -) ac_f="$ac_tmp/stdin";; 4905 *) # Look for the file first in the build tree, then in the source tree 4906 # (if the path is not absolute). The absolute path cannot be DOS-style, 4907 # because $ac_f cannot contain `:'. 4908 test -f "$ac_f" || 4909 case $ac_f in 4910 [\\/$]*) false;; 4911 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 4912 esac || 4913 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 4914 esac 4915 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 4916 as_fn_append ac_file_inputs " '$ac_f'" 4917 done 4918 4919 # Let's still pretend it is `configure' which instantiates (i.e., don't 4920 # use $as_me), people would be surprised to read: 4921 # /* config.h. Generated by config.status. */ 4922 configure_input='Generated from '` 4923 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 4924 `' by configure.' 4925 if test x"$ac_file" != x-; then 4926 configure_input="$ac_file. $configure_input" 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 4928$as_echo "$as_me: creating $ac_file" >&6;} 4929 fi 4930 # Neutralize special characters interpreted by sed in replacement strings. 4931 case $configure_input in #( 4932 *\&* | *\|* | *\\* ) 4933 ac_sed_conf_input=`$as_echo "$configure_input" | 4934 sed 's/[\\\\&|]/\\\\&/g'`;; #( 4935 *) ac_sed_conf_input=$configure_input;; 4936 esac 4937 4938 case $ac_tag in 4939 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 4940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 4941 esac 4942 ;; 4943 esac 4944 4945 ac_dir=`$as_dirname -- "$ac_file" || 4946$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4947 X"$ac_file" : 'X\(//\)[^/]' \| \ 4948 X"$ac_file" : 'X\(//\)$' \| \ 4949 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 4950$as_echo X"$ac_file" | 4951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4952 s//\1/ 4953 q 4954 } 4955 /^X\(\/\/\)[^/].*/{ 4956 s//\1/ 4957 q 4958 } 4959 /^X\(\/\/\)$/{ 4960 s//\1/ 4961 q 4962 } 4963 /^X\(\/\).*/{ 4964 s//\1/ 4965 q 4966 } 4967 s/.*/./; q'` 4968 as_dir="$ac_dir"; as_fn_mkdir_p 4969 ac_builddir=. 4970 4971case "$ac_dir" in 4972.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 4973*) 4974 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 4975 # A ".." for each directory in $ac_dir_suffix. 4976 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 4977 case $ac_top_builddir_sub in 4978 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 4979 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 4980 esac ;; 4981esac 4982ac_abs_top_builddir=$ac_pwd 4983ac_abs_builddir=$ac_pwd$ac_dir_suffix 4984# for backward compatibility: 4985ac_top_builddir=$ac_top_build_prefix 4986 4987case $srcdir in 4988 .) # We are building in place. 4989 ac_srcdir=. 4990 ac_top_srcdir=$ac_top_builddir_sub 4991 ac_abs_top_srcdir=$ac_pwd ;; 4992 [\\/]* | ?:[\\/]* ) # Absolute name. 4993 ac_srcdir=$srcdir$ac_dir_suffix; 4994 ac_top_srcdir=$srcdir 4995 ac_abs_top_srcdir=$srcdir ;; 4996 *) # Relative name. 4997 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 4998 ac_top_srcdir=$ac_top_build_prefix$srcdir 4999 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5000esac 5001ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5002 5003 5004 case $ac_mode in 5005 :F) 5006 # 5007 # CONFIG_FILE 5008 # 5009 5010_ACEOF 5011 5012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5013# If the template does not know about datarootdir, expand it. 5014# FIXME: This hack should be removed a few years after 2.60. 5015ac_datarootdir_hack=; ac_datarootdir_seen= 5016ac_sed_dataroot=' 5017/datarootdir/ { 5018 p 5019 q 5020} 5021/@datadir@/p 5022/@docdir@/p 5023/@infodir@/p 5024/@localedir@/p 5025/@mandir@/p' 5026case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 5027*datarootdir*) ac_datarootdir_seen=yes;; 5028*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 5030$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 5031_ACEOF 5032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5033 ac_datarootdir_hack=' 5034 s&@datadir@&$datadir&g 5035 s&@docdir@&$docdir&g 5036 s&@infodir@&$infodir&g 5037 s&@localedir@&$localedir&g 5038 s&@mandir@&$mandir&g 5039 s&\\\${datarootdir}&$datarootdir&g' ;; 5040esac 5041_ACEOF 5042 5043# Neutralize VPATH when `$srcdir' = `.'. 5044# Shell code in configure.ac might set extrasub. 5045# FIXME: do we really want to maintain this feature? 5046cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5047ac_sed_extra="$ac_vpsub 5048$extrasub 5049_ACEOF 5050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5051:t 5052/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5053s|@configure_input@|$ac_sed_conf_input|;t t 5054s&@top_builddir@&$ac_top_builddir_sub&;t t 5055s&@top_build_prefix@&$ac_top_build_prefix&;t t 5056s&@srcdir@&$ac_srcdir&;t t 5057s&@abs_srcdir@&$ac_abs_srcdir&;t t 5058s&@top_srcdir@&$ac_top_srcdir&;t t 5059s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 5060s&@builddir@&$ac_builddir&;t t 5061s&@abs_builddir@&$ac_abs_builddir&;t t 5062s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 5063$ac_datarootdir_hack 5064" 5065eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 5066 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5067 5068test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 5069 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 5070 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 5071 "$ac_tmp/out"`; test -z "$ac_out"; } && 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5073which seems to be undefined. Please make sure it is defined" >&5 5074$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5075which seems to be undefined. Please make sure it is defined" >&2;} 5076 5077 rm -f "$ac_tmp/stdin" 5078 case $ac_file in 5079 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 5080 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 5081 esac \ 5082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5083 ;; 5084 5085 5086 5087 esac 5088 5089done # for ac_tag 5090 5091 5092as_fn_exit 0 5093_ACEOF 5094ac_clean_files=$ac_clean_files_save 5095 5096test $ac_write_fail = 0 || 5097 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 5098 5099 5100# configure is writing to config.log, and then calls config.status. 5101# config.status does its own redirection, appending to config.log. 5102# Unfortunately, on DOS this fails, as config.log is still kept open 5103# by configure, so config.status won't be able to write to it; its 5104# output is simply discarded. So we exec the FD to /dev/null, 5105# effectively closing config.log, so it can be properly (re)opened and 5106# appended to by config.status. When coming back to configure, we 5107# need to make the FD available again. 5108if test "$no_create" != yes; then 5109 ac_cs_success=: 5110 ac_config_status_args= 5111 test "$silent" = yes && 5112 ac_config_status_args="$ac_config_status_args --quiet" 5113 exec 5>/dev/null 5114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5115 exec 5>>config.log 5116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5117 # would make configure fail if this is the last instruction. 5118 $ac_cs_success || as_fn_exit 1 5119fi 5120if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5122$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5123fi 5124 5125