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