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