2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Angband 3.0.9b.
5 # Report bugs to <bugs@rephial.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x
; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var
in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me
=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev
/null
; then
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
238 for as_shell
in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) ||
{ (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x
; then
345 for as_var
in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no
; then
354 echo This
script requires a shell
more modern than all the
355 echo shells that I found on your system. Please
install a
356 echo modern shell
, or manually run the
script under such a
357 echo shell
if you
do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") ||
{
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system
,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x
"$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir
-p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev
/null
6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix
=/usr
/local
566 ac_config_libobj_dir
=.
572 SHELL
=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME
='Angband'
576 PACKAGE_TARNAME
='angband'
577 PACKAGE_VERSION
='3.0.9b'
578 PACKAGE_STRING
='Angband 3.0.9b'
579 PACKAGE_BUGREPORT
='bugs@rephial.org'
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
692 ac_precious_vars
='build_alias
704 # Initialize some variables set by options.
706 ac_init_version
=false
707 # The variables have the same names as the options, with
708 # dashes changed to underlines.
716 program_transform_name
=s
,x
,x
,
724 # Installation directory options.
725 # These are left unexpanded so users can "make install exec_prefix=/foo"
726 # and all the variables that are supposed to be based on exec_prefix
727 # by default will actually change.
728 # Use braces instead of parens because sh, perl, etc. also accept them.
729 # (The list follows the same order as the GNU Coding Standards.)
730 bindir
='${exec_prefix}/bin'
731 sbindir
='${exec_prefix}/sbin'
732 libexecdir
='${exec_prefix}/libexec'
733 datarootdir
='${prefix}/share'
734 datadir
='${datarootdir}'
735 sysconfdir
='${prefix}/etc'
736 sharedstatedir
='${prefix}/com'
737 localstatedir
='${prefix}/var'
738 includedir
='${prefix}/include'
739 oldincludedir
='/usr/include'
740 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
741 infodir
='${datarootdir}/info'
746 libdir
='${exec_prefix}/lib'
747 localedir
='${datarootdir}/locale'
748 mandir
='${datarootdir}/man'
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
756 eval $ac_prev=\
$ac_option
762 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
766 # Accept the important Cygnus configure options, so we can diagnose typos.
768 case $ac_dashdash$ac_option in
772 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
774 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
777 -build |
--build |
--buil |
--bui |
--bu)
778 ac_prev
=build_alias
;;
779 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
780 build_alias
=$ac_optarg ;;
782 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
783 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
784 ac_prev
=cache_file
;;
785 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
786 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
787 cache_file
=$ac_optarg ;;
790 cache_file
=config.cache
;;
792 -datadir |
--datadir |
--datadi |
--datad)
794 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
795 datadir
=$ac_optarg ;;
797 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
798 |
--dataroo |
--dataro |
--datar)
799 ac_prev
=datarootdir
;;
800 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
801 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
802 datarootdir
=$ac_optarg ;;
804 -disable-* |
--disable-*)
805 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
806 # Reject names that are not valid shell variable names.
807 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
808 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
809 { (exit 1); exit 1; }; }
810 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
811 eval enable_
$ac_feature=no
;;
813 -docdir |
--docdir |
--docdi |
--doc |
--do)
815 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
818 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
820 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
823 -enable-* |
--enable-*)
824 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
825 # Reject names that are not valid shell variable names.
826 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
827 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
828 { (exit 1); exit 1; }; }
829 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
830 eval enable_
$ac_feature=\
$ac_optarg ;;
832 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
833 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
834 |
--exec |
--exe |
--ex)
835 ac_prev
=exec_prefix
;;
836 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
837 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
838 |
--exec=* |
--exe=* |
--ex=*)
839 exec_prefix
=$ac_optarg ;;
841 -gas |
--gas |
--ga |
--g)
842 # Obsolete; use --with-gas.
845 -help |
--help |
--hel |
--he |
-h)
847 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
848 ac_init_help
=recursive
;;
849 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
850 ac_init_help
=short
;;
852 -host |
--host |
--hos |
--ho)
853 ac_prev
=host_alias
;;
854 -host=* |
--host=* |
--hos=* |
--ho=*)
855 host_alias
=$ac_optarg ;;
857 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
859 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
861 htmldir
=$ac_optarg ;;
863 -includedir |
--includedir |
--includedi |
--included |
--include \
864 |
--includ |
--inclu |
--incl |
--inc)
865 ac_prev
=includedir
;;
866 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
867 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
868 includedir
=$ac_optarg ;;
870 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
872 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
873 infodir
=$ac_optarg ;;
875 -libdir |
--libdir |
--libdi |
--libd)
877 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
880 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
881 |
--libexe |
--libex |
--libe)
882 ac_prev
=libexecdir
;;
883 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
884 |
--libexe=* |
--libex=* |
--libe=*)
885 libexecdir
=$ac_optarg ;;
887 -localedir |
--localedir |
--localedi |
--localed |
--locale)
889 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
890 localedir
=$ac_optarg ;;
892 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
893 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
894 ac_prev
=localstatedir
;;
895 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
896 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
897 localstatedir
=$ac_optarg ;;
899 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
901 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
905 # Obsolete; use --without-fp.
908 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
909 |
--no-cr |
--no-c |
-n)
912 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
913 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
916 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
917 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
918 |
--oldin |
--oldi |
--old |
--ol |
--o)
919 ac_prev
=oldincludedir
;;
920 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
921 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
922 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
923 oldincludedir
=$ac_optarg ;;
925 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
927 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
930 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
931 |
--program-pre |
--program-pr |
--program-p)
932 ac_prev
=program_prefix
;;
933 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
934 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
935 program_prefix
=$ac_optarg ;;
937 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
938 |
--program-suf |
--program-su |
--program-s)
939 ac_prev
=program_suffix
;;
940 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
941 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
942 program_suffix
=$ac_optarg ;;
944 -program-transform-name |
--program-transform-name \
945 |
--program-transform-nam |
--program-transform-na \
946 |
--program-transform-n |
--program-transform- \
947 |
--program-transform |
--program-transfor \
948 |
--program-transfo |
--program-transf \
949 |
--program-trans |
--program-tran \
950 |
--progr-tra |
--program-tr |
--program-t)
951 ac_prev
=program_transform_name
;;
952 -program-transform-name=* |
--program-transform-name=* \
953 |
--program-transform-nam=* |
--program-transform-na=* \
954 |
--program-transform-n=* |
--program-transform-=* \
955 |
--program-transform=* |
--program-transfor=* \
956 |
--program-transfo=* |
--program-transf=* \
957 |
--program-trans=* |
--program-tran=* \
958 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
959 program_transform_name
=$ac_optarg ;;
961 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
963 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
966 -psdir |
--psdir |
--psdi |
--psd |
--ps)
968 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
971 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
972 |
-silent |
--silent |
--silen |
--sile |
--sil)
975 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
977 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
979 sbindir
=$ac_optarg ;;
981 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
982 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
983 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
985 ac_prev
=sharedstatedir
;;
986 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
987 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
988 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
990 sharedstatedir
=$ac_optarg ;;
992 -site |
--site |
--sit)
994 -site=* |
--site=* |
--sit=*)
997 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
999 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1000 srcdir
=$ac_optarg ;;
1002 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1003 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1004 ac_prev
=sysconfdir
;;
1005 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1006 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1007 sysconfdir
=$ac_optarg ;;
1009 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1010 ac_prev
=target_alias
;;
1011 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1012 target_alias
=$ac_optarg ;;
1014 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1017 -version |
--version |
--versio |
--versi |
--vers |
-V)
1018 ac_init_version
=: ;;
1021 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1024 { echo "$as_me: error: invalid package name: $ac_package" >&2
1025 { (exit 1); exit 1; }; }
1026 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1027 eval with_
$ac_package=\
$ac_optarg ;;
1029 -without-* |
--without-*)
1030 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1033 { echo "$as_me: error: invalid package name: $ac_package" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1036 eval with_
$ac_package=no
;;
1039 # Obsolete; use --with-x.
1042 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1043 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1044 ac_prev
=x_includes
;;
1045 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1046 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1047 x_includes
=$ac_optarg ;;
1049 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1050 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1051 ac_prev
=x_libraries
;;
1052 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1053 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1054 x_libraries
=$ac_optarg ;;
1056 -*) { echo "$as_me: error: unrecognized option: $ac_option
1057 Try \`$0 --help' for more information." >&2
1058 { (exit 1); exit 1; }; }
1062 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1065 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1066 { (exit 1); exit 1; }; }
1067 eval $ac_envvar=\
$ac_optarg
1068 export $ac_envvar ;;
1071 # FIXME: should be removed in autoconf 3.0.
1072 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1073 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1074 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1075 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1081 if test -n "$ac_prev"; then
1082 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1083 { echo "$as_me: error: missing argument to $ac_option" >&2
1084 { (exit 1); exit 1; }; }
1087 # Be sure to have absolute directory names.
1088 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1089 datadir sysconfdir sharedstatedir localstatedir includedir \
1090 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1091 libdir localedir mandir
1093 eval ac_val
=\$
$ac_var
1095 [\\/$
]* | ?
:[\\/]* ) continue;;
1096 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1098 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1099 { (exit 1); exit 1; }; }
1102 # There might be people who depend on the old broken behavior: `$host'
1103 # used to hold the argument of --host etc.
1104 # FIXME: To remove some day.
1107 target
=$target_alias
1109 # FIXME: To remove some day.
1110 if test "x$host_alias" != x
; then
1111 if test "x$build_alias" = x
; then
1112 cross_compiling
=maybe
1113 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1114 If a cross compiler is detected then cross compile mode will be used." >&2
1115 elif test "x$build_alias" != "x$host_alias"; then
1121 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1123 test "$silent" = yes && exec 6>/dev
/null
1126 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1127 ac_ls_di
=`ls -di .` &&
1128 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1129 { echo "$as_me: error: Working directory cannot be determined" >&2
1130 { (exit 1); exit 1; }; }
1131 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1132 { echo "$as_me: error: pwd does not report name of working directory" >&2
1133 { (exit 1); exit 1; }; }
1136 # Find the source files, if location was not specified.
1137 if test -z "$srcdir"; then
1138 ac_srcdir_defaulted
=yes
1139 # Try the directory containing this script, then the parent directory.
1140 ac_confdir
=`$as_dirname -- "$0" ||
1141 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1142 X"$0" : 'X\(//\)[^/]' \| \
1143 X"$0" : 'X\(//\)$' \| \
1144 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1164 if test ! -r "$srcdir/$ac_unique_file"; then
1168 ac_srcdir_defaulted
=no
1170 if test ! -r "$srcdir/$ac_unique_file"; then
1171 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1172 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1173 { (exit 1); exit 1; }; }
1175 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1177 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1178 { (exit 1); exit 1; }; }
1180 # When building in place, set srcdir=.
1181 if test "$ac_abs_confdir" = "$ac_pwd"; then
1184 # Remove unnecessary trailing slashes from srcdir.
1185 # Double slashes in file names in object file debugging info
1186 # mess up M-x gdb in Emacs.
1188 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1190 for ac_var
in $ac_precious_vars; do
1191 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1192 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1193 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1194 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1198 # Report the --help message.
1200 if test "$ac_init_help" = "long"; then
1201 # Omit some internal or obsolete options to make the list less imposing.
1202 # This message is too long to be a string in the A/UX 3.1 sh.
1204 \`configure' configures Angband 3.0.9b to adapt to many kinds of systems.
1206 Usage: $0 [OPTION]... [VAR=VALUE]...
1208 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1209 VAR=VALUE. See below for descriptions of some of the useful variables.
1211 Defaults for the options are specified in brackets.
1214 -h, --help display this help and exit
1215 --help=short display options specific to this package
1216 --help=recursive display the short help of all the included packages
1217 -V, --version display version information and exit
1218 -q, --quiet, --silent do not print \`checking...' messages
1219 --cache-file=FILE cache test results in FILE [disabled]
1220 -C, --config-cache alias for \`--cache-file=config.cache'
1221 -n, --no-create do not create output files
1222 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1224 Installation directories:
1225 --prefix=PREFIX install architecture-independent files in PREFIX
1226 [$ac_default_prefix]
1227 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1230 By default, \`make install' will install all the files in
1231 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1232 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1233 for instance \`--prefix=\$HOME'.
1235 For better control, use the options below.
1237 Fine tuning of the installation directories:
1238 --bindir=DIR user executables [EPREFIX/bin]
1239 --sbindir=DIR system admin executables [EPREFIX/sbin]
1240 --libexecdir=DIR program executables [EPREFIX/libexec]
1241 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1242 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1243 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1244 --libdir=DIR object code libraries [EPREFIX/lib]
1245 --includedir=DIR C header files [PREFIX/include]
1246 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1247 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1248 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1249 --infodir=DIR info documentation [DATAROOTDIR/info]
1250 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1251 --mandir=DIR man documentation [DATAROOTDIR/man]
1252 --docdir=DIR documentation root [DATAROOTDIR/doc/angband]
1253 --htmldir=DIR html documentation [DOCDIR]
1254 --dvidir=DIR dvi documentation [DOCDIR]
1255 --pdfdir=DIR pdf documentation [DOCDIR]
1256 --psdir=DIR ps documentation [DOCDIR]
1262 --x-includes=DIR X include files are
in DIR
1263 --x-libraries=DIR X library files are
in DIR
1267 if test -n "$ac_init_help"; then
1268 case $ac_init_help in
1269 short | recursive
) echo "Configuration of Angband 3.0.9b:";;
1274 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1275 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1276 --enable-gtk Enables GTK
2.x frontend
, can
't use on system-wide installs (default: disabled)
1277 --enable-curses Enables Curses frontend (default: enabled)
1278 --enable-x11 Enables X11 frontend (default: enabled)
1279 --enable-sdl Enables SDL frontend (default: disabled)
1280 --enable-sdl-mixer Enables SDL mixer sound support (default: enabled)
1281 --disable-sdltest Do not try to compile and run a test SDL program
1284 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1285 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1286 --with-setgid=NAME install angband as group NAME
1287 --with-libpath=PATH use PATH as the path to the Angband lib folder
1288 --with-x use the X Window System
1289 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1290 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1292 Some influential environment variables:
1293 CC C compiler command
1294 CFLAGS C compiler flags
1295 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1296 nonstandard directory <lib dir>
1297 LIBS libraries to pass to the linker, e.g. -l<library>
1298 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1299 you have headers in a nonstandard directory <include dir>
1300 XMKMF Path to xmkmf, Makefile generator for X Window System
1303 Use these variables to override the choices made by `configure' or to
help
1304 it to
find libraries and programs with nonstandard names
/locations.
1306 Report bugs to
<bugs@rephial.org
>.
1311 if test "$ac_init_help" = "recursive"; then
1312 # If there are subdirs, report their specific --help.
1313 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1314 test -d "$ac_dir" ||
continue
1318 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1320 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1321 # A ".." for each directory in $ac_dir_suffix.
1322 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1323 case $ac_top_builddir_sub in
1324 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1325 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1328 ac_abs_top_builddir
=$ac_pwd
1329 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1330 # for backward compatibility:
1331 ac_top_builddir
=$ac_top_build_prefix
1334 .
) # We are building in place.
1336 ac_top_srcdir
=$ac_top_builddir_sub
1337 ac_abs_top_srcdir
=$ac_pwd ;;
1338 [\\/]* | ?
:[\\/]* ) # Absolute name.
1339 ac_srcdir
=$srcdir$ac_dir_suffix;
1340 ac_top_srcdir
=$srcdir
1341 ac_abs_top_srcdir
=$srcdir ;;
1343 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1344 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1345 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1347 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1349 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1350 # Check for guested configure.
1351 if test -f "$ac_srcdir/configure.gnu"; then
1353 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1354 elif test -f "$ac_srcdir/configure"; then
1356 $SHELL "$ac_srcdir/configure" --help=recursive
1358 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1360 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1364 test -n "$ac_init_help" && exit $ac_status
1365 if $ac_init_version; then
1367 Angband configure
3.0.9b
1368 generated by GNU Autoconf
2.61
1370 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1371 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1372 This configure
script is free software
; the Free Software Foundation
1373 gives unlimited permission to copy
, distribute and modify it.
1377 cat >config.log
<<_ACEOF
1378 This file contains any messages produced by compilers while
1379 running configure, to aid debugging if configure makes a mistake.
1381 It was created by Angband $as_me 3.0.9b, which was
1382 generated by GNU Autoconf 2.61. Invocation command line was
1394 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1395 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1396 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1397 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1398 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1400 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1401 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1403 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1404 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1405 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1406 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1407 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1408 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1409 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1417 test -z "$as_dir" && as_dir
=.
1418 echo "PATH: $as_dir"
1434 # Keep a trace of the command line.
1435 # Strip out --no-create and --no-recursion so they do not pile up.
1436 # Strip out --silent because we don't want to record it for future runs.
1437 # Also quote any args containing shell meta-characters.
1438 # Make two passes to allow for proper duplicate-argument suppression.
1442 ac_must_keep_next
=false
1448 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1449 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1450 |
-silent |
--silent |
--silen |
--sile |
--sil)
1453 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1456 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1458 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1459 if test $ac_must_keep_next = true
; then
1460 ac_must_keep_next
=false
# Got value, back to normal.
1463 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1464 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1465 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1466 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1467 case "$ac_configure_args0 " in
1468 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1471 -* ) ac_must_keep_next
=true
;;
1474 ac_configure_args
="$ac_configure_args '$ac_arg'"
1479 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1480 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1482 # When interrupted or exit'd, cleanup temporary files, and complete
1483 # config.log. We remove comments because anyway the quotes in there
1484 # would cause problems or look ugly.
1485 # WARNING: Use '\'' to represent an apostrophe within the trap.
1486 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1487 trap 'exit_status=$?
1488 # Save into config.log some information that might help in debugging.
1493 ## ---------------- ##
1494 ## Cache variables. ##
1495 ## ---------------- ##
1498 # The following way of writing the cache mishandles newlines in values,
1500 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1501 eval ac_val=\$$ac_var
1505 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1506 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1509 _ | IFS | as_nl) ;; #(
1510 *) $as_unset $ac_var ;;
1515 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1516 *${as_nl}ac_space=\ *)
1518 "s/'\''/'\''\\\\'\'''\''/g;
1519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1530 ## ----------------- ##
1531 ## Output variables. ##
1532 ## ----------------- ##
1535 for ac_var in $ac_subst_vars
1537 eval ac_val=\$$ac_var
1539 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1541 echo "$ac_var='\''$ac_val'\''"
1545 if test -n "$ac_subst_files"; then
1547 ## ------------------- ##
1548 ## File substitutions. ##
1549 ## ------------------- ##
1552 for ac_var
in $ac_subst_files
1554 eval ac_val
=\$
$ac_var
1556 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1558 echo "$ac_var='\''$ac_val'\''"
1563 if test -s confdefs.h; then
1573 test "$ac_signal" != 0 &&
1574 echo "$as_me: caught signal $ac_signal"
1575 echo "$as_me: exit $exit_status"
1577 rm -f core *.core core.conftest.* &&
1578 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1581 for ac_signal
in 1 2 13 15; do
1582 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1586 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1587 rm -f -r conftest
* confdefs.h
1589 # Predefined preprocessor variables.
1591 cat >>confdefs.h
<<_ACEOF
1592 #define PACKAGE_NAME "$PACKAGE_NAME"
1596 cat >>confdefs.h
<<_ACEOF
1597 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1601 cat >>confdefs.h
<<_ACEOF
1602 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1606 cat >>confdefs.h
<<_ACEOF
1607 #define PACKAGE_STRING "$PACKAGE_STRING"
1611 cat >>confdefs.h
<<_ACEOF
1612 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1616 # Let the site file select an alternate cache file if it wants to.
1617 # Prefer explicitly selected file to automatically selected ones.
1618 if test -n "$CONFIG_SITE"; then
1619 set x
"$CONFIG_SITE"
1620 elif test "x$prefix" != xNONE
; then
1621 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1623 set x
"$ac_default_prefix/share/config.site" \
1624 "$ac_default_prefix/etc/config.site"
1629 if test -r "$ac_site_file"; then
1630 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1631 echo "$as_me: loading site script $ac_site_file" >&6;}
1632 sed 's/^/| /' "$ac_site_file" >&5
1637 if test -r "$cache_file"; then
1638 # Some versions of bash will fail to source /dev/null (special
1639 # files actually), so we avoid doing that.
1640 if test -f "$cache_file"; then
1641 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1642 echo "$as_me: loading cache $cache_file" >&6;}
1644 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1645 *) .
"./$cache_file";;
1649 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1650 echo "$as_me: creating cache $cache_file" >&6;}
1654 # Check that the precious variables saved in the cache have kept the same
1656 ac_cache_corrupted
=false
1657 for ac_var
in $ac_precious_vars; do
1658 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1659 eval ac_new_set
=\
$ac_env_${ac_var}_set
1660 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1661 eval ac_new_val
=\
$ac_env_${ac_var}_value
1662 case $ac_old_set,$ac_new_set in
1664 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1665 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1666 ac_cache_corrupted
=: ;;
1668 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1669 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1670 ac_cache_corrupted
=: ;;
1673 if test "x$ac_old_val" != "x$ac_new_val"; then
1674 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1675 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1676 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1677 echo "$as_me: former value: $ac_old_val" >&2;}
1678 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1679 echo "$as_me: current value: $ac_new_val" >&2;}
1680 ac_cache_corrupted
=:
1683 # Pass precious variables to config.status.
1684 if test "$ac_new_set" = set; then
1686 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1687 *) ac_arg
=$ac_var=$ac_new_val ;;
1689 case " $ac_configure_args " in
1690 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1691 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1695 if $ac_cache_corrupted; then
1696 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1697 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1698 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1699 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1700 { (exit 1); exit 1; }; }
1728 ac_cpp
='$CPP $CPPFLAGS'
1729 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1730 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1731 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1736 ac_config_headers
="$ac_config_headers src/autoconf.h"
1745 cat >>confdefs.h
<<_ACEOF
1746 #define PACKAGE "$PACKAGE"
1750 cat >>confdefs.h
<<_ACEOF
1751 #define VERSION "$VERSION"
1756 ac_cpp
='$CPP $CPPFLAGS'
1757 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1762 ac_cpp
='$CPP $CPPFLAGS'
1763 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1764 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1765 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1766 if test -n "$ac_tool_prefix"; then
1767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1768 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1771 if test "${ac_cv_prog_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC
="$CC" # Let the user override the test.
1777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1781 test -z "$as_dir" && as_dir
=.
1782 for ac_exec_ext
in '' $ac_executable_extensions; do
1783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1784 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795 if test -n "$CC"; then
1796 { echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6; }
1799 { echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6; }
1805 if test -z "$ac_cv_prog_CC"; then
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808 set dummy gcc
; ac_word
=$2
1809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir
=.
1822 for ac_exec_ext
in '' $ac_executable_extensions; do
1823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1824 ac_cv_prog_ac_ct_CC
="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1835 if test -n "$ac_ct_CC"; then
1836 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1837 echo "${ECHO_T}$ac_ct_CC" >&6; }
1839 { echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6; }
1843 if test "x$ac_ct_CC" = x
; then
1846 case $cross_compiling:$ac_tool_warned in
1848 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1849 whose name does not start with the host triplet. If you think this
1850 configuration is useful to you, please write to autoconf@gnu.org." >&5
1851 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1852 whose name does not start with the host triplet. If you think this
1853 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1854 ac_tool_warned
=yes ;;
1862 if test -z "$CC"; then
1863 if test -n "$ac_tool_prefix"; then
1864 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1865 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1868 if test "${ac_cv_prog_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$CC"; then
1872 ac_cv_prog_CC
="$CC" # Let the user override the test.
1874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir
=.
1879 for ac_exec_ext
in '' $ac_executable_extensions; do
1880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1881 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892 if test -n "$CC"; then
1893 { echo "$as_me:$LINENO: result: $CC" >&5
1894 echo "${ECHO_T}$CC" >&6; }
1896 { echo "$as_me:$LINENO: result: no" >&5
1897 echo "${ECHO_T}no" >&6; }
1903 if test -z "$CC"; then
1904 # Extract the first word of "cc", so it can be a program name with args.
1905 set dummy cc
; ac_word
=$2
1906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1908 if test "${ac_cv_prog_CC+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 if test -n "$CC"; then
1912 ac_cv_prog_CC
="$CC" # Let the user override the test.
1915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1919 test -z "$as_dir" && as_dir
=.
1920 for ac_exec_ext
in '' $ac_executable_extensions; do
1921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1922 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1923 ac_prog_rejected
=yes
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 if test $ac_prog_rejected = yes; then
1935 # We found a bogon in the path, so make sure we never use it.
1936 set dummy
$ac_cv_prog_CC
1938 if test $# != 0; then
1939 # We chose a different compiler from the bogus one.
1940 # However, it has the same basename, so the bogon will be chosen
1941 # first if we set CC to just the basename; use the full file name.
1943 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1949 if test -n "$CC"; then
1950 { echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6; }
1953 { echo "$as_me:$LINENO: result: no" >&5
1954 echo "${ECHO_T}no" >&6; }
1959 if test -z "$CC"; then
1960 if test -n "$ac_tool_prefix"; then
1961 for ac_prog
in cl.exe
1963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1964 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC
="$CC" # Let the user override the test.
1973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir
=.
1978 for ac_exec_ext
in '' $ac_executable_extensions; do
1979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1980 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 if test -n "$CC"; then
1992 { echo "$as_me:$LINENO: result: $CC" >&5
1993 echo "${ECHO_T}$CC" >&6; }
1995 { echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6; }
2000 test -n "$CC" && break
2003 if test -z "$CC"; then
2005 for ac_prog
in cl.exe
2007 # Extract the first word of "$ac_prog", so it can be a program name with args.
2008 set dummy
$ac_prog; ac_word
=$2
2009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2011 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$ac_ct_CC"; then
2015 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir
=.
2022 for ac_exec_ext
in '' $ac_executable_extensions; do
2023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2024 ac_cv_prog_ac_ct_CC
="$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2035 if test -n "$ac_ct_CC"; then
2036 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2037 echo "${ECHO_T}$ac_ct_CC" >&6; }
2039 { echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6; }
2044 test -n "$ac_ct_CC" && break
2047 if test "x$ac_ct_CC" = x
; then
2050 case $cross_compiling:$ac_tool_warned in
2052 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2053 whose name does not start with the host triplet. If you think this
2054 configuration is useful to you, please write to autoconf@gnu.org." >&5
2055 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2056 whose name does not start with the host triplet. If you think this
2057 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2058 ac_tool_warned
=yes ;;
2067 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&2;}
2071 { (exit 1); exit 1; }; }
2073 # Provide some information about the compiler.
2074 echo "$as_me:$LINENO: checking for C compiler version" >&5
2075 ac_compiler
=`set X $ac_compile; echo $2`
2076 { (ac_try
="$ac_compiler --version >&5"
2078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2082 (eval "$ac_compiler --version >&5") 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2086 { (ac_try="$ac_compiler -v >&5"
2088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2089 *) ac_try_echo
=$ac_try;;
2091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2092 (eval "$ac_compiler -v >&5") 2>&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096 { (ac_try
="$ac_compiler -V >&5"
2098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102 (eval "$ac_compiler -V >&5") 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2107 cat >conftest.$ac_ext <<_ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2122 ac_clean_files_save=$ac_clean_files
2123 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2124 # Try to create an executable without -o first, disregard a.out.
2125 # It will help us diagnose broken compilers, and finding out an intuition
2127 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2128 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2129 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2131 # List of possible output files, starting from the most likely.
2132 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2133 # only as a last resort. b.out is created by i960 compilers.
2134 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2136 # The IRIX 6 linker writes into existing files which may not be
2137 # executable, retaining their permissions. Remove them first so a
2138 # subsequent execution test works.
2140 for ac_file in $ac_files
2143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2144 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2149 if { (ac_try="$ac_link_default"
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2155 (eval "$ac_link_default") 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2160 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2161 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2162 # so that the user can short-circuit this test for compilers unknown to
2164 for ac_file
in $ac_files ''
2166 test -f "$ac_file" ||
continue
2168 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2171 # We found the default executable, but exeext='' is most
2175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2177 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2179 # We set ac_cv_exeext here because the later test for it is not
2180 # safe: cross compilers may not add the suffix if given an `-o'
2181 # argument, so we may need to know it at that point already.
2182 # Even if this section looks crufty: it has the advantage of
2189 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2195 { echo "$as_me:$LINENO: result: $ac_file" >&5
2196 echo "${ECHO_T}$ac_file" >&6; }
2197 if test -z "$ac_file"; then
2198 echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.
$ac_ext >&5
2201 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&5
2203 echo "$as_me: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&2;}
2205 { (exit 77); exit 77; }; }
2208 ac_exeext
=$ac_cv_exeext
2210 # Check that the compiler produces executables we can run. If not, either
2211 # the compiler is broken, or we cross compile.
2212 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2214 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215 # If not cross compiling, check that we can run a simple program.
2216 if test "$cross_compiling" != yes; then
2217 if { ac_try
='./$ac_file'
2218 { (case "(($ac_try" in
2219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2223 (eval "$ac_try") 2>&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2229 if test "$cross_compiling" = maybe; then
2232 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details.
" >&5
2235 echo "$as_me: error
: cannot run C compiled programs.
2236 If you meant to cross compile
, use \
`--host'.
2237 See \`config.log
' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2242 { echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6; }
2245 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2246 ac_clean_files=$ac_clean_files_save
2247 # Check that the compiler produces executables we can run. If not, either
2248 # the compiler is broken, or we cross compile.
2249 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2251 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252 echo "${ECHO_T}$cross_compiling" >&6; }
2254 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2256 if { (ac_try="$ac_link"
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262 (eval "$ac_link") 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2267 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2268 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2270 for ac_file
in conftest.exe conftest conftest.
*; do
2271 test -f "$ac_file" ||
continue
2273 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2274 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
2287 rm -f conftest
$ac_cv_exeext
2288 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2291 rm -f conftest.
$ac_ext
2292 EXEEXT
=$ac_cv_exeext
2294 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2296 if test "${ac_cv_objext+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 cat >conftest.
$ac_ext <<_ACEOF
2302 cat confdefs.h
>>conftest.
$ac_ext
2303 cat >>conftest.
$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2314 rm -f conftest.o conftest.obj
2315 if { (ac_try
="$ac_compile"
2317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compile") 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; then
2325 for ac_file in conftest.o conftest.obj conftest.*; do
2326 test -f "$ac_file" || continue;
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log
' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details.
" >&2;}
2341 { (exit 1); exit 1; }; }
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6; }
2348 OBJEXT=$ac_cv_objext
2350 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached
) $ECHO_C" >&6
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2373 rm -f conftest.$ac_objext
2374 if { (ac_try="$ac_compile"
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2380 (eval "$ac_compile") 2>conftest.er1
2382 grep -v '^ *+' conftest.er1 >conftest.err
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2386 (exit $ac_status); } && {
2387 test -z "$ac_c_werror_flag" ||
2388 test ! -s conftest.err
2389 } && test -s conftest.$ac_objext; then
2392 echo "$as_me: failed program was
:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2402 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2403 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2404 GCC=`test $ac_compiler_gnu = yes && echo yes`
2405 ac_test_CFLAGS=${CFLAGS+set}
2406 ac_save_CFLAGS=$CFLAGS
2407 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2408 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2409 if test "${ac_cv_prog_cc_g+set}" = set; then
2410 echo $ECHO_N "(cached
) $ECHO_C" >&6
2412 ac_save_c_werror_flag=$ac_c_werror_flag
2413 ac_c_werror_flag=yes
2416 cat >conftest.$ac_ext <<_ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2431 rm -f conftest.$ac_objext
2432 if { (ac_try="$ac_compile"
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2438 (eval "$ac_compile") 2>conftest.er1
2440 grep -v '^ *+' conftest.er1 >conftest.err
2442 cat conftest.err >&5
2443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2444 (exit $ac_status); } && {
2445 test -z "$ac_c_werror_flag" ||
2446 test ! -s conftest.err
2447 } && test -s conftest.$ac_objext; then
2450 echo "$as_me: failed program was
:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2454 cat >conftest.$ac_ext <<_ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2469 rm -f conftest.$ac_objext
2470 if { (ac_try="$ac_compile"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compile") 2>conftest.er1
2478 grep -v '^ *+' conftest.er1 >conftest.err
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2482 (exit $ac_status); } && {
2483 test -z "$ac_c_werror_flag" ||
2484 test ! -s conftest.err
2485 } && test -s conftest.$ac_objext; then
2488 echo "$as_me: failed program was
:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2491 ac_c_werror_flag=$ac_save_c_werror_flag
2493 cat >conftest.$ac_ext <<_ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2508 rm -f conftest.$ac_objext
2509 if { (ac_try="$ac_compile"
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_compile") 2>conftest.er1
2517 grep -v '^ *+' conftest.er1 >conftest.err
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2521 (exit $ac_status); } && {
2522 test -z "$ac_c_werror_flag" ||
2523 test ! -s conftest.err
2524 } && test -s conftest.$ac_objext; then
2527 echo "$as_me: failed program was
:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 ac_c_werror_flag=$ac_save_c_werror_flag
2542 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2543 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2544 if test "$ac_test_CFLAGS" = set; then
2545 CFLAGS=$ac_save_CFLAGS
2546 elif test $ac_cv_prog_cc_g = yes; then
2547 if test "$GCC" = yes; then
2553 if test "$GCC" = yes; then
2559 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2560 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2561 if test "${ac_cv_prog_cc_c89+set}" = set; then
2562 echo $ECHO_N "(cached
) $ECHO_C" >&6
2564 ac_cv_prog_cc_c89=no
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2574 #include <sys/types.h>
2575 #include <sys/stat.h>
2576 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2577 struct buf { int x; };
2578 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2579 static char *e (p, i)
2585 static char *f (char * (*g) (char **, int), char **p, ...)
2590 s = g (p, va_arg (v,int));
2595 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2596 function prototypes and stuff, but not '\xHH' hex character constants.
2597 These don't provoke an error unfortunately, instead are silently treated
2598 as 'x'. The following induces an error, until -std is added to get
2599 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2600 array size at least. It's necessary to write '\x00'==0 to get something
2601 that's true only with -std. */
2602 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2604 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2605 inside strings and character constants. */
2607 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2609 int test (int i, double x);
2610 struct s1 {int (*f) (int a);};
2611 struct s2 {int (*f) (double a);};
2612 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2623 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2624 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2626 CC="$ac_save_CC $ac_arg"
2627 rm -f conftest.$ac_objext
2628 if { (ac_try="$ac_compile"
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2634 (eval "$ac_compile") 2>conftest.er1
2636 grep -v '^ *+' conftest.er1 >conftest.err
2638 cat conftest.err >&5
2639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2640 (exit $ac_status); } && {
2641 test -z "$ac_c_werror_flag" ||
2642 test ! -s conftest.err
2643 } && test -s conftest.$ac_objext; then
2644 ac_cv_prog_cc_c89=$ac_arg
2646 echo "$as_me: failed program was
:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2652 rm -f core conftest.err conftest.$ac_objext
2653 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2655 rm -f conftest.$ac_ext
2660 case "x
$ac_cv_prog_cc_c89" in
2662 { echo "$as_me:$LINENO: result
: none needed
" >&5
2663 echo "${ECHO_T}none needed
" >&6; } ;;
2665 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2666 echo "${ECHO_T}unsupported
" >&6; } ;;
2668 CC="$CC $ac_cv_prog_cc_c89"
2669 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2670 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681 test "$GCC" = "yes" && CFLAGS="$CFLAGS -Wall -pipe -g -fno-strength-reduce"
2684 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
2685 if test -f "$ac_dir/install-sh
"; then
2687 ac_install_sh="$ac_aux_dir/install-sh
-c"
2689 elif test -f "$ac_dir/install.sh
"; then
2691 ac_install_sh="$ac_aux_dir/install.sh
-c"
2693 elif test -f "$ac_dir/shtool
"; then
2695 ac_install_sh="$ac_aux_dir/shtool
install -c"
2699 if test -z "$ac_aux_dir"; then
2700 { { echo "$as_me:$LINENO: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&5
2701 echo "$as_me: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&2;}
2702 { (exit 1); exit 1; }; }
2705 # These three variables are undocumented and unsupported,
2706 # and are intended to be withdrawn in a future Autoconf release.
2707 # They can cause serious problems if a builder's source tree is in a directory
2708 # whose full name contains unusual characters.
2709 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
2710 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
2711 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
2714 # Find a good install program. We prefer a C program (faster),
2715 # so one script is as good as another. But avoid the broken or
2716 # incompatible versions:
2717 # SysV /etc/install, /usr/sbin/install
2718 # SunOS /usr/etc/install
2719 # IRIX /sbin/install
2721 # AmigaOS /C/install, which installs bootblocks on floppy discs
2722 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2723 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2724 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff
"
2725 # OS/2's system install, which has a completely different semantic
2726 # ./install, which can be erroneously created by make from ./install.sh.
2727 { echo "$as_me:$LINENO: checking
for a BSD-compatible
install" >&5
2728 echo $ECHO_N "checking
for a BSD-compatible
install...
$ECHO_C" >&6; }
2729 if test -z "$INSTALL"; then
2730 if test "${ac_cv_path_install+set}" = set; then
2731 echo $ECHO_N "(cached
) $ECHO_C" >&6
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 test -z "$as_dir" && as_dir=.
2738 # Account for people who put trailing slashes in PATH elements.
2740 ./ | .// | /cC/* | \
2741 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2742 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2745 # OSF1 and SCO ODT 3.0 have their own names for install.
2746 # Don't use installbsd from OSF since it installs stuff as root
2748 for ac_prog in ginstall scoinst install; do
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2751 if test $ac_prog = install &&
2752 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2753 # AIX install. It has an incompatible calling convention.
2755 elif test $ac_prog = install &&
2756 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2757 # program-specific install script used by HP pwplus--don't use.
2760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2773 if test "${ac_cv_path_install+set}" = set; then
2774 INSTALL=$ac_cv_path_install
2776 # As a last resort, use the slow shell script. Don't cache a
2777 # value for INSTALL within a source directory, because that will
2778 # break other packages using the cache if that directory is
2779 # removed, or if the value is a relative name.
2780 INSTALL=$ac_install_sh
2783 { echo "$as_me:$LINENO: result
: $INSTALL" >&5
2784 echo "${ECHO_T}$INSTALL" >&6; }
2786 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2787 # It thinks the first close brace ends the variable substitution.
2788 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2790 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2792 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2794 { echo "$as_me:$LINENO: checking whether
ln -s works
" >&5
2795 echo $ECHO_N "checking whether
ln -s works...
$ECHO_C" >&6; }
2797 if test "$LN_S" = "ln -s"; then
2798 { echo "$as_me:$LINENO: result
: yes" >&5
2799 echo "${ECHO_T}yes" >&6; }
2801 { echo "$as_me:$LINENO: result
: no
, using
$LN_S" >&5
2802 echo "${ECHO_T}no
, using
$LN_S" >&6; }
2805 { echo "$as_me:$LINENO: checking whether
${MAKE-make} sets \$
(MAKE
)" >&5
2806 echo $ECHO_N "checking whether
${MAKE-make} sets \$
(MAKE
)...
$ECHO_C" >&6; }
2807 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2808 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2809 echo $ECHO_N "(cached
) $ECHO_C" >&6
2811 cat >conftest.make <<\_ACEOF
2814 @echo '@@@%%%=$(MAKE)=@@@%%%'
2816 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
2817 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2819 eval ac_cv_prog_make_${ac_make}_set=yes;;
2821 eval ac_cv_prog_make_${ac_make}_set=no;;
2825 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2826 { echo "$as_me:$LINENO: result
: yes" >&5
2827 echo "${ECHO_T}yes" >&6; }
2830 { echo "$as_me:$LINENO: result
: no
" >&5
2831 echo "${ECHO_T}no
" >&6; }
2832 SET_MAKE="MAKE
=${MAKE-make}"
2836 # Extract the first word of "rm", so it can be a program name with args.
2837 set dummy rm; ac_word=$2
2838 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2839 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2840 if test "${ac_cv_path_RM+set}" = set; then
2841 echo $ECHO_N "(cached
) $ECHO_C" >&6
2845 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2856 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$RM"; then
2868 { echo "$as_me:$LINENO: result
: $RM" >&5
2869 echo "${ECHO_T}$RM" >&6; }
2871 { echo "$as_me:$LINENO: result
: no
" >&5
2872 echo "${ECHO_T}no
" >&6; }
2876 # Extract the first word of "mv", so it can be a program name with args.
2877 set dummy mv; ac_word=$2
2878 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2879 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2880 if test "${ac_cv_path_MV+set}" = set; then
2881 echo $ECHO_N "(cached
) $ECHO_C" >&6
2885 ac_cv_path_MV="$MV" # Let the user override the test with a path.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
2896 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2907 if test -n "$MV"; then
2908 { echo "$as_me:$LINENO: result
: $MV" >&5
2909 echo "${ECHO_T}$MV" >&6; }
2911 { echo "$as_me:$LINENO: result
: no
" >&5
2912 echo "${ECHO_T}no
" >&6; }
2916 # Extract the first word of "cp", so it can be a program name with args.
2917 set dummy cp; ac_word=$2
2918 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2919 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2920 if test "${ac_cv_path_CP+set}" = set; then
2921 echo $ECHO_N "(cached
) $ECHO_C" >&6
2925 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
2936 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2947 if test -n "$CP"; then
2948 { echo "$as_me:$LINENO: result
: $CP" >&5
2949 echo "${ECHO_T}$CP" >&6; }
2951 { echo "$as_me:$LINENO: result
: no
" >&5
2952 echo "${ECHO_T}no
" >&6; }
2957 if test "$prefix" = "NONE
"; then
2958 prefix="${ac_default_prefix}"
2963 # Check whether --with-setgid was given.
2964 if test "${with_setgid+set}" = set; then
2965 withval=$with_setgid;
2969 # Check whether --with-libpath was given.
2970 if test "${with_libpath+set}" = set; then
2971 withval=$with_libpath;
2975 if test "$with_libpath" != ""; then
2976 libpath="${with_libpath}"
2977 elif test "$with_setgid" != ""; then
2978 libpath="${prefix}/share
/${PACKAGE}/"
2985 */) game_datadir="$libpath"
2987 test "x
$prefix" = xNONE && prefix="$ac_default_prefix"
2988 test "x
$exec_prefix" = xNONE && exec_prefix="${prefix}"
2989 eval echo \""$game_datadir"\"
2992 *) game_datadir="$libpath/"
2994 test "x
$prefix" = xNONE && prefix="$ac_default_prefix"
2995 test "x
$exec_prefix" = xNONE && exec_prefix="${prefix}"
2996 eval echo \""$game_datadir"\"
3002 cat >>confdefs.h <<_ACEOF
3003 #define DEFAULT_PATH "${game_datadir}"
3007 SETEGID="$with_setgid";
3008 DATA_PATH="$game_datadir";
3011 # Check whether --enable-gtk was given.
3012 if test "${enable_gtk+set}" = set; then
3013 enableval=$enable_gtk; enable_gtk=$enableval
3018 # Check whether --enable-curses was given.
3019 if test "${enable_curses+set}" = set; then
3020 enableval=$enable_curses; enable_curses=$enableval
3025 # Check whether --enable-x11 was given.
3026 if test "${enable_x11+set}" = set; then
3027 enableval=$enable_x11; enable_x11=$enableval
3032 # Check whether --enable-sdl was given.
3033 if test "${enable_sdl+set}" = set; then
3034 enableval=$enable_sdl; enable_sdl=$enableval
3040 # Check whether --enable-sdl_mixer was given.
3041 if test "${enable_sdl_mixer+set}" = set; then
3042 enableval=$enable_sdl_mixer; enable_sdl_mixer=$enable_sdl_mixer
3044 enable_sdl_mixer=yes
3051 if test "$enable_curses" = "yes"; then
3053 { echo "$as_me:$LINENO: checking
for initscr
in -lcurses " >&5
3054 echo $ECHO_N "checking
for initscr
in -lcurses ...
$ECHO_C" >&6; }
3055 if test "${ac_cv_lib_curses___initscr+set}" = set; then
3056 echo $ECHO_N "(cached
) $ECHO_C" >&6
3058 ac_check_lib_save_LIBS=$LIBS
3059 LIBS="-lcurses $LIBS"
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3067 /* Override any GCC internal prototype to avoid an error.
3068 Use char because int might match the return type of a GCC
3069 builtin and then its argument prototype would still apply. */
3082 rm -f conftest.$ac_objext conftest$ac_exeext
3083 if { (ac_try="$ac_link"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_link") 2>conftest.er1
3091 grep -v '^ *+' conftest.er1 >conftest.err
3093 cat conftest.err >&5
3094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3095 (exit $ac_status); } && {
3096 test -z "$ac_c_werror_flag" ||
3097 test ! -s conftest.err
3098 } && test -s conftest$ac_exeext &&
3099 $as_test_x conftest$ac_exeext; then
3100 ac_cv_lib_curses___initscr=yes
3102 echo "$as_me: failed program was
:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 ac_cv_lib_curses___initscr=no
3108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3109 conftest$ac_exeext conftest.$ac_ext
3110 LIBS=$ac_check_lib_save_LIBS
3112 { echo "$as_me:$LINENO: result
: $ac_cv_lib_curses___initscr" >&5
3113 echo "${ECHO_T}$ac_cv_lib_curses___initscr" >&6; }
3114 if test $ac_cv_lib_curses___initscr = yes; then
3120 { echo "$as_me:$LINENO: checking
for initscr
in -lncurses " >&5
3121 echo $ECHO_N "checking
for initscr
in -lncurses ...
$ECHO_C" >&6; }
3122 if test "${ac_cv_lib_ncurses__initscr+set}" = set; then
3123 echo $ECHO_N "(cached
) $ECHO_C" >&6
3125 ac_check_lib_save_LIBS=$LIBS
3126 LIBS="-lncurses $LIBS"
3127 cat >conftest.$ac_ext <<_ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3134 /* Override any GCC internal prototype to avoid an error.
3135 Use char because int might match the return type of a GCC
3136 builtin and then its argument prototype would still apply. */
3149 rm -f conftest.$ac_objext conftest$ac_exeext
3150 if { (ac_try="$ac_link"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_link") 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3162 (exit $ac_status); } && {
3163 test -z "$ac_c_werror_flag" ||
3164 test ! -s conftest.err
3165 } && test -s conftest$ac_exeext &&
3166 $as_test_x conftest$ac_exeext; then
3167 ac_cv_lib_ncurses__initscr=yes
3169 echo "$as_me: failed program was
:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3172 ac_cv_lib_ncurses__initscr=no
3175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3176 conftest$ac_exeext conftest.$ac_ext
3177 LIBS=$ac_check_lib_save_LIBS
3179 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses__initscr" >&5
3180 echo "${ECHO_T}$ac_cv_lib_ncurses__initscr" >&6; }
3181 if test $ac_cv_lib_ncurses__initscr = yes; then
3187 { echo "$as_me:$LINENO: checking
for initscr
in -lpdcurses" >&5
3188 echo $ECHO_N "checking
for initscr
in -lpdcurses...
$ECHO_C" >&6; }
3189 if test "${ac_cv_lib_pdcurses_initscr+set}" = set; then
3190 echo $ECHO_N "(cached
) $ECHO_C" >&6
3192 ac_check_lib_save_LIBS=$LIBS
3193 LIBS="-lpdcurses $LIBS"
3194 cat >conftest.$ac_ext <<_ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3201 /* Override any GCC internal prototype to avoid an error.
3202 Use char because int might match the return type of a GCC
3203 builtin and then its argument prototype would still apply. */
3216 rm -f conftest.$ac_objext conftest$ac_exeext
3217 if { (ac_try="$ac_link"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_link") 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest$ac_exeext &&
3233 $as_test_x conftest$ac_exeext; then
3234 ac_cv_lib_pdcurses_initscr=yes
3236 echo "$as_me: failed program was
:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3239 ac_cv_lib_pdcurses_initscr=no
3242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3243 conftest$ac_exeext conftest.$ac_ext
3244 LIBS=$ac_check_lib_save_LIBS
3246 { echo "$as_me:$LINENO: result
: $ac_cv_lib_pdcurses_initscr" >&5
3247 echo "${ECHO_T}$ac_cv_lib_pdcurses_initscr" >&6; }
3248 if test $ac_cv_lib_pdcurses_initscr = yes; then
3254 if test "x
$found_ncurses" = "xno
"; then
3255 if test "x
$found_pdcurses" = "xno
"; then
3256 if test "x
$found_curses" = "xno
"; then
3260 cat >>confdefs.h <<\_ACEOF
3261 #define USE_CURSES 1
3265 cat >>confdefs.h <<\_ACEOF
3269 LDFLAGS="${LDFLAGS} -lcurses"
3274 cat >>confdefs.h <<\_ACEOF
3275 #define USE_CURSES 1
3279 cat >>confdefs.h <<\_ACEOF
3283 LDFLAGS="${LDFLAGS} -lpdcurses"
3288 cat >>confdefs.h <<\_ACEOF
3289 #define USE_NCURSES 1
3293 cat >>confdefs.h <<\_ACEOF
3297 LDFLAGS="${LDFLAGS} -lncurses"
3303 if test "$enable_x11" = "yes"; then
3305 ac_cpp='$CPP $CPPFLAGS'
3306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3310 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3311 # On Suns, sometimes $CPP names a directory.
3312 if test -n "$CPP" && test -d "$CPP"; then
3315 if test -z "$CPP"; then
3316 if test "${ac_cv_prog_CPP+set}" = set; then
3317 echo $ECHO_N "(cached
) $ECHO_C" >&6
3319 # Double quotes because CPP needs to be expanded
3320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3323 for ac_c_preproc_warn_flag in '' yes
3325 # Use a header file that comes with gcc, so configuring glibc
3326 # with a fresh cross-compiler works.
3327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3328 # <limits.h> exists even on freestanding compilers.
3329 # On the NeXT, cc -E runs the code through the compiler's parser,
3330 # not just through cpp. "Syntax error
" is here to catch this case.
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3338 # include <limits.h>
3340 # include <assert.h>
3344 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3352 grep -v '^ *+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3356 (exit $ac_status); } >/dev/null && {
3357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3358 test ! -s conftest.err
3362 echo "$as_me: failed program was
:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 # Broken: fails on valid input.
3369 rm -f conftest.err conftest.$ac_ext
3371 # OK, works on sane cases. Now check whether nonexistent headers
3372 # can be detected and how.
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 #include <ac_nonexistent.h>
3381 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3393 (exit $ac_status); } >/dev/null && {
3394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3397 # Broken: success on invalid input.
3400 echo "$as_me: failed program was
:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 # Passes both tests.
3408 rm -f conftest.err conftest.$ac_ext
3411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3412 rm -f conftest.err conftest.$ac_ext
3413 if $ac_preproc_ok; then
3425 { echo "$as_me:$LINENO: result
: $CPP" >&5
3426 echo "${ECHO_T}$CPP" >&6; }
3428 for ac_c_preproc_warn_flag in '' yes
3430 # Use a header file that comes with gcc, so configuring glibc
3431 # with a fresh cross-compiler works.
3432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3433 # <limits.h> exists even on freestanding compilers.
3434 # On the NeXT, cc -E runs the code through the compiler's parser,
3435 # not just through cpp. "Syntax error
" is here to catch this case.
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3443 # include <limits.h>
3445 # include <assert.h>
3449 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3457 grep -v '^ *+' conftest.er1 >conftest.err
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3461 (exit $ac_status); } >/dev/null && {
3462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3463 test ! -s conftest.err
3467 echo "$as_me: failed program was
:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 # Broken: fails on valid input.
3474 rm -f conftest.err conftest.$ac_ext
3476 # OK, works on sane cases. Now check whether nonexistent headers
3477 # can be detected and how.
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #include <ac_nonexistent.h>
3486 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3494 grep -v '^ *+' conftest.er1 >conftest.err
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3498 (exit $ac_status); } >/dev/null && {
3499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3500 test ! -s conftest.err
3502 # Broken: success on invalid input.
3505 echo "$as_me: failed program was
:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 # Passes both tests.
3513 rm -f conftest.err conftest.$ac_ext
3516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3517 rm -f conftest.err conftest.$ac_ext
3518 if $ac_preproc_ok; then
3521 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3522 See \
`config.log' for more details." >&5
3523 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3524 See \`config.log
' for more details." >&2;}
3525 { (exit 1); exit 1; }; }
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3531 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 { echo "$as_me:$LINENO: checking for X" >&5
3536 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3539 # Check whether --with-x was given.
3540 if test "${with_x+set}" = set; then
3544 # $have_x is `yes', `no', `disabled
', or empty when we do not yet know.
3545 if test "x$with_x" = xno; then
3546 # The user explicitly disabled X.
3549 case $x_includes,$x_libraries in #(
3550 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3551 echo "$as_me: error
: Cannot use X directory names containing
'" >&2;}
3552 { (exit 1); exit 1; }; };; #(
3553 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 # One or both of the vars are not set, and there is no cached value.
3557 ac_x_includes=no ac_x_libraries=no
3558 rm -f -r conftest.dir
3559 if mkdir conftest.dir; then
3561 cat >Imakefile <<'_ACEOF'
3563 @echo incroot='${INCROOT}'
3565 @echo usrlibdir='${USRLIBDIR}'
3567 @echo libdir='${LIBDIR}'
3569 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3570 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3571 for ac_var in incroot usrlibdir libdir; do
3572 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's
/^
$ac_var=//p
'\`"
3574 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3575 for ac_extension in a so sl; do
3576 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3577 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3578 ac_im_usrlibdir=$ac_im_libdir; break
3581 # Screen out bogus values from the imake configuration. They are
3582 # bogus both because they are the default anyway, and because
3583 # using them would break gcc on systems where it needs fixed includes.
3584 case $ac_im_incroot in
3585 /usr/include) ac_x_includes= ;;
3586 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3588 case $ac_im_usrlibdir in
3590 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3594 rm -f -r conftest.dir
3597 # Standard set of common directories for X headers.
3598 # Check X11 before X11Rn because it is often a symlink to the current release.
3610 /usr
/local
/X11
/include
3611 /usr
/local
/X11R
6/include
3612 /usr
/local
/X11R
5/include
3613 /usr
/local
/X11R
4/include
3615 /usr
/local
/include
/X11
3616 /usr
/local
/include
/X11R6
3617 /usr
/local
/include
/X11R5
3618 /usr
/local
/include
/X11R4
3622 /usr
/XFree86
/include
/X11
3626 /usr
/unsupported
/include
3628 /usr
/local
/x11r
5/include
3629 /usr
/lpp
/Xamples
/include
3631 /usr
/openwin
/include
3632 /usr
/openwin
/share
/include
'
3634 if test "$ac_x_includes" = no; then
3635 # Guess where to find include files, by looking for Xlib.h.
3636 # First, try using that file with no special directory specified.
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 #include <X11/Xlib.h>
3645 if { (ac_try="$ac_cpp conftest.$ac_ext"
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3653 grep -v '^
*+' conftest.er1 >conftest.err
3655 cat conftest.err >&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); } >/dev/null && {
3658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3659 test ! -s conftest.err
3661 # We can compile using X headers with no special include directory.
3664 echo "$as_me: failed program was:" >&5
3665 sed 's
/^
/|
/' conftest.$ac_ext >&5
3667 for ac_dir in $ac_x_header_dirs; do
3668 if test -r "$ac_dir/X11/Xlib.h"; then
3669 ac_x_includes=$ac_dir
3675 rm -f conftest.err conftest.$ac_ext
3676 fi # $ac_x_includes = no
3678 if test "$ac_x_libraries" = no; then
3679 # Check for the libraries.
3680 # See if we find them without any special options.
3681 # Don't add to
$LIBS permanently.
3684 cat >conftest.
$ac_ext <<_ACEOF
3687 cat confdefs.h
>>conftest.
$ac_ext
3688 cat >>conftest.
$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #include <X11/Xlib.h>
3699 rm -f conftest.
$ac_objext conftest
$ac_exeext
3700 if { (ac_try
="$ac_link"
3702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_link") 2>conftest.er1
3708 grep -v '^ *+' conftest.er1 >conftest.err
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } && {
3713 test -z "$ac_c_werror_flag" ||
3714 test ! -s conftest.err
3715 } && test -s conftest$ac_exeext &&
3716 $as_test_x conftest$ac_exeext; then
3718 # We can link X programs with no special library path.
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3725 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
3727 # Don't even attempt the hair of trying to link an X program!
3728 for ac_extension in a so sl; do
3729 if test -r "$ac_dir/libX11.$ac_extension"; then
3730 ac_x_libraries=$ac_dir
3737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3738 conftest$ac_exeext conftest.$ac_ext
3739 fi # $ac_x_libraries = no
3741 case $ac_x_includes,$ac_x_libraries in #(
3743 # Didn't find X, or a directory has "'" in its name.
3744 ac_cv_have_x="have_x=no";; #(
3746 # Record where we found X for the cache.
3747 ac_cv_have_x="have_x=yes\
3748 ac_x_includes='$ac_x_includes'\
3749 ac_x_libraries='$ac_x_libraries'"
3755 eval "$ac_cv_have_x"
3758 if test "$have_x" != yes; then
3759 { echo "$as_me:$LINENO: result: $have_x" >&5
3760 echo "${ECHO_T}$have_x" >&6; }
3763 # If each of the values was on the command line, it overrides each guess.
3764 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3765 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3766 # Update the cache value to reflect the command line values.
3767 ac_cv_have_x="have_x=yes\
3768 ac_x_includes='$x_includes'\
3769 ac_x_libraries='$x_libraries'"
3770 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3771 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3774 if test "$no_x" = yes; then
3775 # Not all programs may use this symbol, but it does not hurt to define it.
3777 cat >>confdefs.h <<\_ACEOF
3778 #define X_DISPLAY_MISSING 1
3781 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3783 if test -n "$x_includes"; then
3784 X_CFLAGS="$X_CFLAGS -I$x_includes"
3787 # It would also be nice to do this for all -L options, not just this one.
3788 if test -n "$x_libraries"; then
3789 X_LIBS="$X_LIBS -L$x_libraries"
3790 # For Solaris; some versions of Sun CC require a space after -R and
3791 # others require no space. Words are not sufficient . . . .
3792 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3793 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3794 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3795 ac_xsave_c_werror_flag=$ac_c_werror_flag
3796 ac_c_werror_flag=yes
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3812 rm -f conftest.$ac_objext conftest$ac_exeext
3813 if { (ac_try="$ac_link"
3815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3816 *) ac_try_echo
=$ac_try;;
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_link") 2>conftest.er1
3821 grep -v '^ *+' conftest.er1
>conftest.err
3823 cat conftest.err
>&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } && {
3826 test -z "$ac_c_werror_flag" ||
3827 test ! -s conftest.err
3828 } && test -s conftest
$ac_exeext &&
3829 $as_test_x conftest
$ac_exeext; then
3830 { echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6; }
3832 X_LIBS
="$X_LIBS -R$x_libraries"
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.
$ac_ext >&5
3837 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3838 cat >conftest.
$ac_ext <<_ACEOF
3841 cat confdefs.h
>>conftest.
$ac_ext
3842 cat >>conftest.
$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3853 rm -f conftest.
$ac_objext conftest
$ac_exeext
3854 if { (ac_try
="$ac_link"
3856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_link") 2>conftest.er1
3862 grep -v '^ *+' conftest.er1 >conftest.err
3864 cat conftest.err >&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); } && {
3867 test -z "$ac_c_werror_flag" ||
3868 test ! -s conftest.err
3869 } && test -s conftest$ac_exeext &&
3870 $as_test_x conftest$ac_exeext; then
3871 { echo "$as_me:$LINENO: result: yes" >&5
3872 echo "${ECHO_T}yes" >&6; }
3873 X_LIBS="$X_LIBS -R $x_libraries"
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 { echo "$as_me:$LINENO: result: neither works" >&5
3879 echo "${ECHO_T}neither works" >&6; }
3882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3883 conftest$ac_exeext conftest.$ac_ext
3886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3887 conftest$ac_exeext conftest.$ac_ext
3888 ac_c_werror_flag=$ac_xsave_c_werror_flag
3892 # Check for system-dependent libraries X programs must link with.
3893 # Do this before checking for the system-independent R6 libraries
3894 # (-lICE), since we may need -lsocket or whatever for X linking.
3896 if test "$ISC" = yes; then
3897 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3899 # Martyn Johnson says this is needed for Ultrix, if the X
3900 # libraries were built with DECnet support. And Karl Berry says
3901 # the Alpha needs dnet_stub (dnet does not exist).
3902 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3910 /* Override any GCC internal prototype to avoid an error.
3911 Use char because int might match the return type of a GCC
3912 builtin and then its argument prototype would still apply. */
3916 char XOpenDisplay ();
3920 return XOpenDisplay ();
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3929 *) ac_try_echo
=$ac_try;;
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_link") 2>conftest.er1
3934 grep -v '^ *+' conftest.er1
>conftest.err
3936 cat conftest.err
>&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest
$ac_exeext &&
3942 $as_test_x conftest
$ac_exeext; then
3945 echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.
$ac_ext >&5
3948 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3949 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
3950 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 ac_check_lib_save_LIBS
=$LIBS
3955 cat >conftest.
$ac_ext <<_ACEOF
3958 cat confdefs.h
>>conftest.
$ac_ext
3959 cat >>conftest.
$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3962 /* Override any GCC internal prototype to avoid an error.
3963 Use char because int might match the return type of a GCC
3964 builtin and then its argument prototype would still apply. */
3972 return dnet_ntoa ();
3977 rm -f conftest.
$ac_objext conftest
$ac_exeext
3978 if { (ac_try
="$ac_link"
3980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_link") 2>conftest.er1
3986 grep -v '^ *+' conftest.er1 >conftest.err
3988 cat conftest.err >&5
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } && {
3991 test -z "$ac_c_werror_flag" ||
3992 test ! -s conftest.err
3993 } && test -s conftest$ac_exeext &&
3994 $as_test_x conftest$ac_exeext; then
3995 ac_cv_lib_dnet_dnet_ntoa=yes
3997 echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
4000 ac_cv_lib_dnet_dnet_ntoa=no
4003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4004 conftest$ac_exeext conftest.$ac_ext
4005 LIBS=$ac_check_lib_save_LIBS
4007 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4008 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4009 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4010 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4013 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4014 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4015 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4016 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 ac_check_lib_save_LIBS=$LIBS
4020 LIBS="-ldnet_stub $LIBS"
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4028 /* Override any GCC internal prototype to avoid an error.
4029 Use char because int might match the return type of a GCC
4030 builtin and then its argument prototype would still apply. */
4038 return dnet_ntoa ();
4043 rm -f conftest.$ac_objext conftest$ac_exeext
4044 if { (ac_try="$ac_link"
4046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4047 *) ac_try_echo
=$ac_try;;
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_link") 2>conftest.er1
4052 grep -v '^ *+' conftest.er1
>conftest.err
4054 cat conftest.err
>&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } && {
4057 test -z "$ac_c_werror_flag" ||
4058 test ! -s conftest.err
4059 } && test -s conftest
$ac_exeext &&
4060 $as_test_x conftest
$ac_exeext; then
4061 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.
$ac_ext >&5
4066 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4069 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4070 conftest
$ac_exeext conftest.
$ac_ext
4071 LIBS
=$ac_check_lib_save_LIBS
4073 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4074 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4075 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4076 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4082 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4083 conftest
$ac_exeext conftest.
$ac_ext
4084 LIBS
="$ac_xsave_LIBS"
4086 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4087 # to get the SysV transport functions.
4088 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4090 # The nsl library prevents programs from opening the X display
4091 # on Irix 5.2, according to T.E. Dickey.
4092 # The functions gethostbyname, getservbyname, and inet_addr are
4093 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4094 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4095 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4096 if test "${ac_cv_func_gethostbyname+set}" = set; then
4097 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 cat >conftest.
$ac_ext <<_ACEOF
4102 cat confdefs.h
>>conftest.
$ac_ext
4103 cat >>conftest.
$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4105 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4107 #define gethostbyname innocuous_gethostbyname
4109 /* System header to define __stub macros and hopefully few prototypes,
4110 which can conflict with char gethostbyname (); below.
4111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4112 <limits.h> exists even on freestanding compilers. */
4115 # include <limits.h>
4117 # include <assert.h>
4120 #undef gethostbyname
4122 /* Override any GCC internal prototype to avoid an error.
4123 Use char because int might match the return type of a GCC
4124 builtin and then its argument prototype would still apply. */
4128 char gethostbyname ();
4129 /* The GNU C library defines this for functions which it implements
4130 to always fail with ENOSYS. Some functions are actually named
4131 something starting with __ and the normal name is an alias. */
4132 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4139 return gethostbyname ();
4144 rm -f conftest.
$ac_objext conftest
$ac_exeext
4145 if { (ac_try
="$ac_link"
4147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>conftest.er1
4153 grep -v '^ *+' conftest.er1 >conftest.err
4155 cat conftest.err >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); } && {
4158 test -z "$ac_c_werror_flag" ||
4159 test ! -s conftest.err
4160 } && test -s conftest$ac_exeext &&
4161 $as_test_x conftest$ac_exeext; then
4162 ac_cv_func_gethostbyname=yes
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 ac_cv_func_gethostbyname=no
4170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4171 conftest$ac_exeext conftest.$ac_ext
4173 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4174 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4176 if test $ac_cv_func_gethostbyname = no; then
4177 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4178 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4179 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 ac_check_lib_save_LIBS=$LIBS
4184 cat >conftest.$ac_ext <<_ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4191 /* Override any GCC internal prototype to avoid an error.
4192 Use char because int might match the return type of a GCC
4193 builtin and then its argument prototype would still apply. */
4197 char gethostbyname ();
4201 return gethostbyname ();
4206 rm -f conftest.$ac_objext conftest$ac_exeext
4207 if { (ac_try="$ac_link"
4209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4210 *) ac_try_echo
=$ac_try;;
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_link") 2>conftest.er1
4215 grep -v '^ *+' conftest.er1
>conftest.err
4217 cat conftest.err
>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && {
4220 test -z "$ac_c_werror_flag" ||
4221 test ! -s conftest.err
4222 } && test -s conftest
$ac_exeext &&
4223 $as_test_x conftest
$ac_exeext; then
4224 ac_cv_lib_nsl_gethostbyname
=yes
4226 echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.
$ac_ext >&5
4229 ac_cv_lib_nsl_gethostbyname
=no
4232 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4233 conftest
$ac_exeext conftest.
$ac_ext
4234 LIBS
=$ac_check_lib_save_LIBS
4236 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4237 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4238 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4239 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4242 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4243 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4244 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4245 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 ac_check_lib_save_LIBS
=$LIBS
4250 cat >conftest.
$ac_ext <<_ACEOF
4253 cat confdefs.h
>>conftest.
$ac_ext
4254 cat >>conftest.
$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4257 /* Override any GCC internal prototype to avoid an error.
4258 Use char because int might match the return type of a GCC
4259 builtin and then its argument prototype would still apply. */
4263 char gethostbyname ();
4267 return gethostbyname ();
4272 rm -f conftest.
$ac_objext conftest
$ac_exeext
4273 if { (ac_try
="$ac_link"
4275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_link") 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 } && test -s conftest$ac_exeext &&
4289 $as_test_x conftest$ac_exeext; then
4290 ac_cv_lib_bsd_gethostbyname=yes
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_cv_lib_bsd_gethostbyname=no
4298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4299 conftest$ac_exeext conftest.$ac_ext
4300 LIBS=$ac_check_lib_save_LIBS
4302 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4303 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4304 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4311 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4312 # socket/setsockopt and other routines are undefined under SCO ODT
4313 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4314 # on later versions), says Simon Leinen: it contains gethostby*
4315 # variants that don't use the name server (or something). -lsocket
4316 # must be given before -lnsl if both are needed. We assume that
4317 # if connect needs -lnsl, so does gethostbyname.
4318 { echo "$as_me:$LINENO: checking for connect" >&5
4319 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4320 if test "${ac_cv_func_connect+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4331 #define connect innocuous_connect
4333 /* System header to define __stub macros and hopefully few prototypes,
4334 which can conflict with char connect (); below.
4335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 <limits.h> exists even on freestanding compilers. */
4339 # include <limits.h>
4341 # include <assert.h>
4346 /* Override any GCC internal prototype to avoid an error.
4347 Use char because int might match the return type of a GCC
4348 builtin and then its argument prototype would still apply. */
4353 /* The GNU C library defines this for functions which it implements
4354 to always fail with ENOSYS. Some functions are actually named
4355 something starting with __ and the normal name is an alias. */
4356 #if defined __stub_connect || defined __stub___connect
4368 rm -f conftest.$ac_objext conftest$ac_exeext
4369 if { (ac_try="$ac_link"
4371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4372 *) ac_try_echo
=$ac_try;;
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_link") 2>conftest.er1
4377 grep -v '^ *+' conftest.er1
>conftest.err
4379 cat conftest.err
>&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } && {
4382 test -z "$ac_c_werror_flag" ||
4383 test ! -s conftest.err
4384 } && test -s conftest
$ac_exeext &&
4385 $as_test_x conftest
$ac_exeext; then
4386 ac_cv_func_connect
=yes
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.
$ac_ext >&5
4391 ac_cv_func_connect
=no
4394 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4395 conftest
$ac_exeext conftest.
$ac_ext
4397 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4398 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4400 if test $ac_cv_func_connect = no
; then
4401 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4402 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4403 if test "${ac_cv_lib_socket_connect+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 ac_check_lib_save_LIBS
=$LIBS
4407 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4408 cat >conftest.
$ac_ext <<_ACEOF
4411 cat confdefs.h
>>conftest.
$ac_ext
4412 cat >>conftest.
$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4415 /* Override any GCC internal prototype to avoid an error.
4416 Use char because int might match the return type of a GCC
4417 builtin and then its argument prototype would still apply. */
4430 rm -f conftest.
$ac_objext conftest
$ac_exeext
4431 if { (ac_try
="$ac_link"
4433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_link") 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } && {
4444 test -z "$ac_c_werror_flag" ||
4445 test ! -s conftest.err
4446 } && test -s conftest$ac_exeext &&
4447 $as_test_x conftest$ac_exeext; then
4448 ac_cv_lib_socket_connect=yes
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4453 ac_cv_lib_socket_connect=no
4456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4457 conftest$ac_exeext conftest.$ac_ext
4458 LIBS=$ac_check_lib_save_LIBS
4460 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4461 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4462 if test $ac_cv_lib_socket_connect = yes; then
4463 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4468 # Guillermo Gomez says -lposix is necessary on A/UX.
4469 { echo "$as_me:$LINENO: checking for remove" >&5
4470 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4471 if test "${ac_cv_func_remove+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 cat >conftest.$ac_ext <<_ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h. */
4480 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4482 #define remove innocuous_remove
4484 /* System header to define __stub macros and hopefully few prototypes,
4485 which can conflict with char remove (); below.
4486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487 <limits.h> exists even on freestanding compilers. */
4490 # include <limits.h>
4492 # include <assert.h>
4497 /* Override any GCC internal prototype to avoid an error.
4498 Use char because int might match the return type of a GCC
4499 builtin and then its argument prototype would still apply. */
4504 /* The GNU C library defines this for functions which it implements
4505 to always fail with ENOSYS. Some functions are actually named
4506 something starting with __ and the normal name is an alias. */
4507 #if defined __stub_remove || defined __stub___remove
4519 rm -f conftest.$ac_objext conftest$ac_exeext
4520 if { (ac_try="$ac_link"
4522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4523 *) ac_try_echo
=$ac_try;;
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_link") 2>conftest.er1
4528 grep -v '^ *+' conftest.er1
>conftest.err
4530 cat conftest.err
>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } && {
4533 test -z "$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4535 } && test -s conftest
$ac_exeext &&
4536 $as_test_x conftest
$ac_exeext; then
4537 ac_cv_func_remove
=yes
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.
$ac_ext >&5
4542 ac_cv_func_remove
=no
4545 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4546 conftest
$ac_exeext conftest.
$ac_ext
4548 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4549 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4551 if test $ac_cv_func_remove = no
; then
4552 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4553 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4554 if test "${ac_cv_lib_posix_remove+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 ac_check_lib_save_LIBS
=$LIBS
4558 LIBS
="-lposix $LIBS"
4559 cat >conftest.
$ac_ext <<_ACEOF
4562 cat confdefs.h
>>conftest.
$ac_ext
4563 cat >>conftest.
$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4566 /* Override any GCC internal prototype to avoid an error.
4567 Use char because int might match the return type of a GCC
4568 builtin and then its argument prototype would still apply. */
4581 rm -f conftest.
$ac_objext conftest
$ac_exeext
4582 if { (ac_try
="$ac_link"
4584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_link") 2>conftest.er1
4590 grep -v '^ *+' conftest.er1 >conftest.err
4592 cat conftest.err >&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } && {
4595 test -z "$ac_c_werror_flag" ||
4596 test ! -s conftest.err
4597 } && test -s conftest$ac_exeext &&
4598 $as_test_x conftest$ac_exeext; then
4599 ac_cv_lib_posix_remove=yes
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4604 ac_cv_lib_posix_remove=no
4607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4608 conftest$ac_exeext conftest.$ac_ext
4609 LIBS=$ac_check_lib_save_LIBS
4611 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4612 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4613 if test $ac_cv_lib_posix_remove = yes; then
4614 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4619 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4620 { echo "$as_me:$LINENO: checking for shmat" >&5
4621 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4622 if test "${ac_cv_func_shmat+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.$ac_ext <<_ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4631 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4633 #define shmat innocuous_shmat
4635 /* System header to define __stub macros and hopefully few prototypes,
4636 which can conflict with char shmat (); below.
4637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4638 <limits.h> exists even on freestanding compilers. */
4641 # include <limits.h>
4643 # include <assert.h>
4648 /* Override any GCC internal prototype to avoid an error.
4649 Use char because int might match the return type of a GCC
4650 builtin and then its argument prototype would still apply. */
4655 /* The GNU C library defines this for functions which it implements
4656 to always fail with ENOSYS. Some functions are actually named
4657 something starting with __ and the normal name is an alias. */
4658 #if defined __stub_shmat || defined __stub___shmat
4670 rm -f conftest.$ac_objext conftest$ac_exeext
4671 if { (ac_try="$ac_link"
4673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4674 *) ac_try_echo
=$ac_try;;
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677 (eval "$ac_link") 2>conftest.er1
4679 grep -v '^ *+' conftest.er1
>conftest.err
4681 cat conftest.err
>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } && {
4684 test -z "$ac_c_werror_flag" ||
4685 test ! -s conftest.err
4686 } && test -s conftest
$ac_exeext &&
4687 $as_test_x conftest
$ac_exeext; then
4688 ac_cv_func_shmat
=yes
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.
$ac_ext >&5
4696 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4697 conftest
$ac_exeext conftest.
$ac_ext
4699 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4700 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4702 if test $ac_cv_func_shmat = no
; then
4703 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4704 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4705 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 ac_check_lib_save_LIBS
=$LIBS
4710 cat >conftest.
$ac_ext <<_ACEOF
4713 cat confdefs.h
>>conftest.
$ac_ext
4714 cat >>conftest.
$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4717 /* Override any GCC internal prototype to avoid an error.
4718 Use char because int might match the return type of a GCC
4719 builtin and then its argument prototype would still apply. */
4732 rm -f conftest.
$ac_objext conftest
$ac_exeext
4733 if { (ac_try
="$ac_link"
4735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_link") 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } && {
4746 test -z "$ac_c_werror_flag" ||
4747 test ! -s conftest.err
4748 } && test -s conftest$ac_exeext &&
4749 $as_test_x conftest$ac_exeext; then
4750 ac_cv_lib_ipc_shmat=yes
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 ac_cv_lib_ipc_shmat=no
4758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4759 conftest$ac_exeext conftest.$ac_ext
4760 LIBS=$ac_check_lib_save_LIBS
4762 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4763 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4764 if test $ac_cv_lib_ipc_shmat = yes; then
4765 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4771 # Check for libraries that X11R6 Xt/Xaw programs need.
4772 ac_save_LDFLAGS=$LDFLAGS
4773 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4774 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4775 # check for ICE first), but we must link in the order -lSM -lICE or
4776 # we get undefined symbols. So assume we have SM if we have ICE.
4777 # These have to be linked with before -lX11, unlike the other
4778 # libraries we check for below, so use a different variable.
4779 # John Interrante, Karl Berry
4780 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4781 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4782 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 ac_check_lib_save_LIBS=$LIBS
4786 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4794 /* Override any GCC internal prototype to avoid an error.
4795 Use char because int might match the return type of a GCC
4796 builtin and then its argument prototype would still apply. */
4800 char IceConnectionNumber ();
4804 return IceConnectionNumber ();
4809 rm -f conftest.$ac_objext conftest$ac_exeext
4810 if { (ac_try="$ac_link"
4812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4813 *) ac_try_echo
=$ac_try;;
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_link") 2>conftest.er1
4818 grep -v '^ *+' conftest.er1
>conftest.err
4820 cat conftest.err
>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } && {
4823 test -z "$ac_c_werror_flag" ||
4824 test ! -s conftest.err
4825 } && test -s conftest
$ac_exeext &&
4826 $as_test_x conftest
$ac_exeext; then
4827 ac_cv_lib_ICE_IceConnectionNumber
=yes
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.
$ac_ext >&5
4832 ac_cv_lib_ICE_IceConnectionNumber
=no
4835 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4836 conftest
$ac_exeext conftest.
$ac_ext
4837 LIBS
=$ac_check_lib_save_LIBS
4839 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4840 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4841 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4842 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4845 LDFLAGS
=$ac_save_LDFLAGS
4850 if test "x$have_x" != "xyes"; then
4854 cat >>confdefs.h
<<\_ACEOF
4858 CFLAGS
="$CFLAGS $X_CFLAGS"
4859 LDFLAGS
="$LDFLAGS $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
4864 if test "$enable_sdl" = "yes"; then
4866 # Check whether --with-sdl-prefix was given.
4867 if test "${with_sdl_prefix+set}" = set; then
4868 withval
=$with_sdl_prefix; sdl_prefix
="$withval"
4874 # Check whether --with-sdl-exec-prefix was given.
4875 if test "${with_sdl_exec_prefix+set}" = set; then
4876 withval
=$with_sdl_exec_prefix; sdl_exec_prefix
="$withval"
4881 # Check whether --enable-sdltest was given.
4882 if test "${enable_sdltest+set}" = set; then
4883 enableval
=$enable_sdltest;
4889 if test x
$sdl_exec_prefix != x
; then
4890 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
4891 if test x
${SDL_CONFIG+set} != xset
; then
4892 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
4895 if test x
$sdl_prefix != x
; then
4896 sdl_args
="$sdl_args --prefix=$sdl_prefix"
4897 if test x
${SDL_CONFIG+set} != xset
; then
4898 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
4902 # Extract the first word of "sdl-config", so it can be a program name with args.
4903 set dummy sdl-config
; ac_word
=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
4914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir
=.
4919 for ac_exec_ext
in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
4933 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
4934 if test -n "$SDL_CONFIG"; then
4935 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
4936 echo "${ECHO_T}$SDL_CONFIG" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4943 min_sdl_version
=1.2.10
4944 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
4945 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
4947 if test "$SDL_CONFIG" = "no" ; then
4950 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
4951 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
4953 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
4954 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4955 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
4956 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4957 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
4958 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4959 if test "x$enable_sdltest" = "xyes" ; then
4960 ac_save_CFLAGS
="$CFLAGS"
4961 ac_save_LIBS
="$LIBS"
4962 CFLAGS
="$CFLAGS $SDL_CFLAGS"
4963 LIBS
="$LIBS $SDL_LIBS"
4965 if test "$cross_compiling" = yes; then
4966 echo $ac_n "cross compiling; assumed OK... $ac_c"
4968 cat >conftest.
$ac_ext <<_ACEOF
4971 cat confdefs.h
>>conftest.
$ac_ext
4972 cat >>conftest.
$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4981 my_strdup (char *str)
4987 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
4988 strcpy (new_str, str);
4996 int main (int argc, char *argv[])
4998 int major, minor, micro;
5001 /* This hangs on some systems (?)
5002 system ("touch conf.sdltest");
5004 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
5006 /* HP/UX 9 (%@#!) writes to sscanf strings */
5007 tmp_version = my_strdup("$min_sdl_version");
5008 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
5009 printf("%s, bad version string\n", "$min_sdl_version");
5013 if (($sdl_major_version > major) ||
5014 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
5015 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
5021 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
5022 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
5023 printf("*** best to upgrade to the required version.\n");
5024 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
5025 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
5026 printf("*** config.cache before re-running configure\n");
5033 rm -f conftest
$ac_exeext
5034 if { (ac_try
="$ac_link"
5036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_link") 2>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5044 { (case "(($ac_try" in
5045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5046 *) ac_try_echo
=$ac_try;;
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_try") 2>&5
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5055 echo "$as_me: program exited with status $ac_status" >&5
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.
$ac_ext >&5
5062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5066 CFLAGS
="$ac_save_CFLAGS"
5067 LIBS
="$ac_save_LIBS"
5070 if test "x$no_sdl" = x
; then
5071 { echo "$as_me:$LINENO: result: yes" >&5
5072 echo "${ECHO_T}yes" >&6; }
5075 { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5077 if test "$SDL_CONFIG" = "no" ; then
5078 echo "*** The sdl-config script installed by SDL could not be found"
5079 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
5080 echo "*** your path, or set the SDL_CONFIG environment variable to the"
5081 echo "*** full path to sdl-config."
5083 if test -f conf.sdltest
; then
5086 echo "*** Could not run SDL test program, checking why..."
5087 CFLAGS
="$CFLAGS $SDL_CFLAGS"
5088 LIBS
="$LIBS $SDL_LIBS"
5089 cat >conftest.
$ac_ext <<_ACEOF
5092 cat confdefs.h
>>conftest.
$ac_ext
5093 cat >>conftest.
$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5107 rm -f conftest.
$ac_objext conftest
$ac_exeext
5108 if { (ac_try
="$ac_link"
5110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_link") 2>conftest.er1
5116 grep -v '^ *+' conftest.er1 >conftest.err
5118 cat conftest.err >&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && {
5121 test -z "$ac_c_werror_flag" ||
5122 test ! -s conftest.err
5123 } && test -s conftest$ac_exeext &&
5124 $as_test_x conftest$ac_exeext; then
5125 echo "*** The test program compiled, but did not run. This usually means"
5126 echo "*** that the run-time linker is not finding SDL or finding the wrong"
5127 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
5128 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5129 echo "*** to the installed location Also, make sure you have run ldconfig if that"
5130 echo "*** is required on your system"
5132 echo "*** If you have an old version installed, it is best to remove it, although"
5133 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 echo "*** The test program failed to compile or link. See the file config.log for the"
5139 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
5140 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
5141 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
5144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5145 conftest$ac_exeext conftest.$ac_ext
5146 CFLAGS="$ac_save_CFLAGS"
5147 LIBS="$ac_save_LIBS"
5159 if test "$SDL_CONFIG" = "no"; then
5162 { echo "$as_me:$LINENO: checking for IMG_LoadPNG_RW in -lSDL_image" >&5
5163 echo $ECHO_N "checking for IMG_LoadPNG_RW in -lSDL_image... $ECHO_C" >&6; }
5164 if test "${ac_cv_lib_SDL_image_IMG_LoadPNG_RW+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 ac_check_lib_save_LIBS=$LIBS
5168 LIBS="-lSDL_image $LIBS"
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5176 /* Override any GCC internal prototype to avoid an error.
5177 Use char because int might match the return type of a GCC
5178 builtin and then its argument prototype would still apply. */
5182 char IMG_LoadPNG_RW ();
5186 return IMG_LoadPNG_RW ();
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (ac_try="$ac_link"
5194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5195 *) ac_try_echo
=$ac_try;;
5197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5198 (eval "$ac_link") 2>conftest.er1
5200 grep -v '^ *+' conftest.er1
>conftest.err
5202 cat conftest.err
>&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } && {
5205 test -z "$ac_c_werror_flag" ||
5206 test ! -s conftest.err
5207 } && test -s conftest
$ac_exeext &&
5208 $as_test_x conftest
$ac_exeext; then
5209 ac_cv_lib_SDL_image_IMG_LoadPNG_RW
=yes
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.
$ac_ext >&5
5214 ac_cv_lib_SDL_image_IMG_LoadPNG_RW
=no
5217 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5218 conftest
$ac_exeext conftest.
$ac_ext
5219 LIBS
=$ac_check_lib_save_LIBS
5221 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_LoadPNG_RW" >&5
5222 echo "${ECHO_T}$ac_cv_lib_SDL_image_IMG_LoadPNG_RW" >&6; }
5223 if test $ac_cv_lib_SDL_image_IMG_LoadPNG_RW = yes; then
5229 { echo "$as_me:$LINENO: checking for TTF_Init in -lSDL_ttf" >&5
5230 echo $ECHO_N "checking for TTF_Init in -lSDL_ttf... $ECHO_C" >&6; }
5231 if test "${ac_cv_lib_SDL_ttf_TTF_Init+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 ac_check_lib_save_LIBS
=$LIBS
5235 LIBS
="-lSDL_ttf $LIBS"
5236 cat >conftest.
$ac_ext <<_ACEOF
5239 cat confdefs.h
>>conftest.
$ac_ext
5240 cat >>conftest.
$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5243 /* Override any GCC internal prototype to avoid an error.
5244 Use char because int might match the return type of a GCC
5245 builtin and then its argument prototype would still apply. */
5258 rm -f conftest.
$ac_objext conftest
$ac_exeext
5259 if { (ac_try
="$ac_link"
5261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_link") 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && {
5272 test -z "$ac_c_werror_flag" ||
5273 test ! -s conftest.err
5274 } && test -s conftest$ac_exeext &&
5275 $as_test_x conftest$ac_exeext; then
5276 ac_cv_lib_SDL_ttf_TTF_Init=yes
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5281 ac_cv_lib_SDL_ttf_TTF_Init=no
5284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5285 conftest$ac_exeext conftest.$ac_ext
5286 LIBS=$ac_check_lib_save_LIBS
5288 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_Init" >&5
5289 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_Init" >&6; }
5290 if test $ac_cv_lib_SDL_ttf_TTF_Init = yes; then
5297 if test "$with_sdl" = "yes"; then
5299 cat >>confdefs.h <<\_ACEOF
5303 CFLAGS="${CFLAGS} ${SDL_CFLAGS}"
5304 LDFLAGS="${LDFLAGS} ${SDL_LIBS} -lSDL_image -lSDL_ttf"
5310 if test "$enable_gtk" = "yes"; then
5314 if test -z "$PKG_CONFIG"; then
5315 # Extract the first word of "pkg-config", so it can be a program name with args.
5316 set dummy pkg-config; ac_word=$2
5317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5319 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5324 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5346 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5347 if test -n "$PKG_CONFIG"; then
5348 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5349 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5351 { echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6; }
5358 if test "$PKG_CONFIG" = "no" ; then
5359 echo "*** The pkg-config script could not be found. Make sure it is"
5360 echo "*** in your path, or set the PKG_CONFIG environment variable"
5361 echo "*** to the full path to pkg-config."
5362 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
5364 PKG_CONFIG_MIN_VERSION=0.9.0
5365 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5366 { echo "$as_me:$LINENO: checking for glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango libglade-2.0" >&5
5367 echo $ECHO_N "checking for glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango libglade-2.0... $ECHO_C" >&6; }
5369 if $PKG_CONFIG --exists "glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango libglade-2.0" ; then
5370 { echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6; }
5374 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
5375 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
5376 GTK_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango libglade-2.0"`
5377 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
5378 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
5380 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
5381 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
5382 GTK_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango libglade-2.0"`
5383 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
5384 echo "${ECHO_T}$GTK_LIBS" >&6; }
5386 { echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6; }
5390 ## If we have a custom action on failure, don't print errors, but
5391 ## do set a variable so people can do so.
5392 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.6.0 gtk+-2.0 >= 2.6.0 gthread-2.0 pango libglade-2.0"`
5399 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5400 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5404 if test $succeeded = yes; then
5414 if test -z "$PKG_CONFIG"; then
5415 # Extract the first word of "pkg-config", so it can be a program name with args.
5416 set dummy pkg-config; ac_word=$2
5417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5419 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5446 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5447 if test -n "$PKG_CONFIG"; then
5448 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5449 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5451 { echo "$as_me:$LINENO: result: no" >&5
5452 echo "${ECHO_T}no" >&6; }
5458 if test "$PKG_CONFIG" = "no" ; then
5459 echo "*** The pkg-config script could not be found. Make sure it is"
5460 echo "*** in your path, or set the PKG_CONFIG environment variable"
5461 echo "*** to the full path to pkg-config."
5462 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
5464 PKG_CONFIG_MIN_VERSION=0.9.0
5465 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5466 { echo "$as_me:$LINENO: checking for glib-2.0 >= 2.6.0" >&5
5467 echo $ECHO_N "checking for glib-2.0 >= 2.6.0... $ECHO_C" >&6; }
5469 if $PKG_CONFIG --exists "glib-2.0 >= 2.6.0" ; then
5470 { echo "$as_me:$LINENO: result: yes" >&5
5471 echo "${ECHO_T}yes" >&6; }
5474 { echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
5475 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6; }
5476 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.6.0"`
5477 { echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
5478 echo "${ECHO_T}$GLIB_CFLAGS" >&6; }
5480 { echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
5481 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6; }
5482 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.6.0"`
5483 { echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
5484 echo "${ECHO_T}$GLIB_LIBS" >&6; }
5486 { echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6; }
5490 ## If we have a custom action on failure, don't print errors, but
5491 ## do set a variable so people can do so.
5492 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.6.0"`
5499 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5500 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5504 if test $succeeded = yes; then
5512 if "x$SETEGID" != "x"; then
5517 if test "$with_gtk" = "yes"; then
5519 cat >>confdefs.h <<\_ACEOF
5523 CFLAGS="${CFLAGS} $GTK_CFLAGS"
5524 LDFLAGS="${LDFLAGS} $GTK_LIBS -rdynamic -export-dynamic"
5529 if test "$enable_sdl_mixer" = "yes"; then
5530 { echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
5531 echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; }
5532 if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 ac_check_lib_save_LIBS=$LIBS
5536 LIBS="-lSDL_mixer $LIBS"
5537 cat >conftest.$ac_ext <<_ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5544 /* Override any GCC internal prototype to avoid an error.
5545 Use char because int might match the return type of a GCC
5546 builtin and then its argument prototype would still apply. */
5550 char Mix_OpenAudio ();
5554 return Mix_OpenAudio ();
5559 rm -f conftest.$ac_objext conftest$ac_exeext
5560 if { (ac_try="$ac_link"
5562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5563 *) ac_try_echo
=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_link") 2>conftest.er1
5568 grep -v '^ *+' conftest.er1
>conftest.err
5570 cat conftest.err
>&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } && {
5573 test -z "$ac_c_werror_flag" ||
5574 test ! -s conftest.err
5575 } && test -s conftest
$ac_exeext &&
5576 $as_test_x conftest
$ac_exeext; then
5577 ac_cv_lib_SDL_mixer_Mix_OpenAudio
=yes
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.
$ac_ext >&5
5582 ac_cv_lib_SDL_mixer_Mix_OpenAudio
=no
5585 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5586 conftest
$ac_exeext conftest.
$ac_ext
5587 LIBS
=$ac_check_lib_save_LIBS
5589 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
5590 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
5591 if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
5598 if test "$found_sdl_mixer" = "yes"; then
5600 cat >>confdefs.h
<<\_ACEOF
5604 SDL_CFLAGS
=`sdl-config --cflags`
5605 CFLAGS
="${CFLAGS} ${SDL_CFLAGS}"
5606 LDFLAGS
="${LDFLAGS} -lSDL_mixer"
5612 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5613 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5614 if test "${ac_cv_path_GREP+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 # Extract the first word of "grep ggrep" to use in msg output
5618 if test -z "$GREP"; then
5619 set dummy
grep ggrep
; ac_prog_name
=$2
5620 if test "${ac_cv_path_GREP+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 ac_path_GREP_found
=false
5624 # Loop through the user's path and test for each of PROGNAME-LIST
5625 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5626 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5629 test -z "$as_dir" && as_dir
=.
5630 for ac_prog
in grep ggrep
; do
5631 for ac_exec_ext
in '' $ac_executable_extensions; do
5632 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5633 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5634 # Check for GNU ac_path_GREP and select it if it is found.
5635 # Check for GNU $ac_path_GREP
5636 case `"$ac_path_GREP" --version 2>&1` in
5638 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5641 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5644 cat "conftest.in" "conftest.in" >"conftest.tmp"
5645 mv "conftest.tmp" "conftest.in"
5646 cp "conftest.in" "conftest.nl"
5647 echo 'GREP' >> "conftest.nl"
5648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5649 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5650 ac_count
=`expr $ac_count + 1`
5651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5652 # Best one so far, save it but keep looking for a better one
5653 ac_cv_path_GREP
="$ac_path_GREP"
5654 ac_path_GREP_max
=$ac_count
5656 # 10*(2^10) chars as input seems more than enough
5657 test $ac_count -gt 10 && break
5659 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5663 $ac_path_GREP_found && break 3
5673 GREP
="$ac_cv_path_GREP"
5674 if test -z "$GREP"; then
5675 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5676 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5677 { (exit 1); exit 1; }; }
5681 ac_cv_path_GREP
=$GREP
5686 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5687 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5688 GREP
="$ac_cv_path_GREP"
5691 { echo "$as_me:$LINENO: checking for egrep" >&5
5692 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5693 if test "${ac_cv_path_EGREP+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5697 then ac_cv_path_EGREP
="$GREP -E"
5699 # Extract the first word of "egrep" to use in msg output
5700 if test -z "$EGREP"; then
5701 set dummy
egrep; ac_prog_name
=$2
5702 if test "${ac_cv_path_EGREP+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 ac_path_EGREP_found
=false
5706 # Loop through the user's path and test for each of PROGNAME-LIST
5707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5708 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5711 test -z "$as_dir" && as_dir
=.
5712 for ac_prog
in egrep; do
5713 for ac_exec_ext
in '' $ac_executable_extensions; do
5714 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5715 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5716 # Check for GNU ac_path_EGREP and select it if it is found.
5717 # Check for GNU $ac_path_EGREP
5718 case `"$ac_path_EGREP" --version 2>&1` in
5720 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5726 cat "conftest.in" "conftest.in" >"conftest.tmp"
5727 mv "conftest.tmp" "conftest.in"
5728 cp "conftest.in" "conftest.nl"
5729 echo 'EGREP' >> "conftest.nl"
5730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5731 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5732 ac_count
=`expr $ac_count + 1`
5733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5734 # Best one so far, save it but keep looking for a better one
5735 ac_cv_path_EGREP
="$ac_path_EGREP"
5736 ac_path_EGREP_max
=$ac_count
5738 # 10*(2^10) chars as input seems more than enough
5739 test $ac_count -gt 10 && break
5741 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5745 $ac_path_EGREP_found && break 3
5755 EGREP
="$ac_cv_path_EGREP"
5756 if test -z "$EGREP"; then
5757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5759 { (exit 1); exit 1; }; }
5763 ac_cv_path_EGREP
=$EGREP
5769 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5770 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5771 EGREP
="$ac_cv_path_EGREP"
5774 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5775 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5776 if test "${ac_cv_header_stdc+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 cat >conftest.
$ac_ext <<_ACEOF
5782 cat confdefs.h
>>conftest.
$ac_ext
5783 cat >>conftest.
$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5798 rm -f conftest.
$ac_objext
5799 if { (ac_try
="$ac_compile"
5801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 ac_cv_header_stdc=yes
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 ac_cv_header_stdc=no
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 if test $ac_cv_header_stdc = yes; then
5826 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5827 cat >conftest.$ac_ext <<_ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5837 $EGREP "memchr" >/dev/null 2>&1; then
5840 ac_cv_header_stdc=no
5846 if test $ac_cv_header_stdc = yes; then
5847 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5858 $EGREP "free" >/dev/null 2>&1; then
5861 ac_cv_header_stdc=no
5867 if test $ac_cv_header_stdc = yes; then
5868 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5869 if test "$cross_compiling" = yes; then
5872 cat >conftest.$ac_ext <<_ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5880 #if ((' ' & 0x0FF) == 0x020)
5881 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5882 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5884 # define ISLOWER(c) \
5885 (('a' <= (c) && (c) <= 'i') \
5886 || ('j' <= (c) && (c) <= 'r') \
5887 || ('s' <= (c) && (c) <= 'z'))
5888 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5891 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5896 for (i = 0; i < 256; i++)
5897 if (XOR (islower (i), ISLOWER (i))
5898 || toupper (i) != TOUPPER (i))
5903 rm -f conftest$ac_exeext
5904 if { (ac_try="$ac_link"
5906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5907 *) ac_try_echo
=$ac_try;;
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_link") 2>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5914 { (case "(($ac_try" in
5915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5925 echo "$as_me: program exited with status $ac_status" >&5
5926 echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5930 ac_cv_header_stdc=no
5932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5938 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5939 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5940 if test $ac_cv_header_stdc = yes; then
5942 cat >>confdefs.h <<\_ACEOF
5943 #define STDC_HEADERS 1
5948 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5959 inttypes.h stdint.h unistd.h
5961 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 cat >conftest.$ac_ext <<_ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 $ac_includes_default
5975 #include <$ac_header>
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5981 *) ac_try_echo
=$ac_try;;
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5986 grep -v '^ *+' conftest.er1
>conftest.err
5988 cat conftest.err
>&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.
$ac_objext; then
5994 eval "$as_ac_Header=yes"
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.
$ac_ext >&5
5999 eval "$as_ac_Header=no"
6002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6004 ac_res
=`eval echo '${'$as_ac_Header'}'`
6005 { echo "$as_me:$LINENO: result: $ac_res" >&5
6006 echo "${ECHO_T}$ac_res" >&6; }
6007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6008 cat >>confdefs.h
<<_ACEOF
6009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6020 for ac_header
in fcntl.h stdint.h dirent.h
6022 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6023 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6026 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 ac_res
=`eval echo '${'$as_ac_Header'}'`
6030 { echo "$as_me:$LINENO: result: $ac_res" >&5
6031 echo "${ECHO_T}$ac_res" >&6; }
6033 # Is the header compilable?
6034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6036 cat >conftest.
$ac_ext <<_ACEOF
6039 cat confdefs.h
>>conftest.
$ac_ext
6040 cat >>conftest.
$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 $ac_includes_default
6043 #include <$ac_header>
6045 rm -f conftest.
$ac_objext
6046 if { (ac_try
="$ac_compile"
6048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_compile") 2>conftest.er1
6054 grep -v '^ *+' conftest.er1 >conftest.err
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && {
6059 test -z "$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 } && test -s conftest.$ac_objext; then
6062 ac_header_compiler=yes
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 ac_header_compiler=no
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6072 echo "${ECHO_T}$ac_header_compiler" >&6; }
6074 # Is the header present?
6075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <$ac_header>
6085 if { (ac_try="$ac_cpp conftest.$ac_ext"
6087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6088 *) ac_try_echo
=$ac_try;;
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6093 grep -v '^ *+' conftest.er1
>conftest.err
6095 cat conftest.err
>&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } >/dev
/null
&& {
6098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6099 test ! -s conftest.err
6101 ac_header_preproc
=yes
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.
$ac_ext >&5
6106 ac_header_preproc
=no
6109 rm -f conftest.err conftest.
$ac_ext
6110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6111 echo "${ECHO_T}$ac_header_preproc" >&6; }
6113 # So? What about this header?
6114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6120 ac_header_preproc
=yes
6123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6136 ## ------------------------------- ##
6137 ## Report this to bugs@rephial.org ##
6138 ## ------------------------------- ##
6140 ) |
sed "s/^/$as_me: WARNING: /" >&2
6143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6145 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 eval "$as_ac_Header=\$ac_header_preproc"
6150 ac_res
=`eval echo '${'$as_ac_Header'}'`
6151 { echo "$as_me:$LINENO: result: $ac_res" >&5
6152 echo "${ECHO_T}$ac_res" >&6; }
6155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6156 cat >>confdefs.h
<<_ACEOF
6157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6165 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
6166 if test "${ac_cv_header_stdbool_h+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 cat >conftest.
$ac_ext <<_ACEOF
6172 cat confdefs.h
>>conftest.
$ac_ext
6173 cat >>conftest.
$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6176 #include <stdbool.h>
6178 "error: bool is not defined"
6181 "error: false is not defined"
6184 "error: false is not 0"
6187 "error: true is not defined"
6190 "error: true is not 1"
6192 #ifndef __bool_true_false_are_defined
6193 "error: __bool_true_false_are_defined is not defined"
6196 struct s { _Bool s: 1; _Bool t; } s;
6198 char a[true == 1 ? 1 : -1];
6199 char b[false == 0 ? 1 : -1];
6200 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6201 char d[(bool) 0.5 == true ? 1 : -1];
6203 char f[(_Bool) 0.0 == false ? 1 : -1];
6205 char h[sizeof (_Bool)];
6207 enum { j = false, k = true, l = false * true, m = true * 256 };
6209 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6210 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6211 # if defined __xlc__ || defined __GNUC__
6212 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6213 reported by James Lemley on 2005-10-05; see
6214 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6215 This test is not quite right, since xlc is allowed to
6216 reject this program, as the initializer for xlcbug is
6217 not one of the forms that C requires support for.
6218 However, doing the test right would require a runtime
6219 test, and that would make cross-compilation harder.
6220 Let us hope that IBM fixes the xlc bug, and also adds
6221 support for this kind of constant expression. In the
6222 meantime, this test will reject xlc, which is OK, since
6223 our stdbool.h substitute should suffice. We also test
6224 this with GCC, where it should work, to detect more
6225 quickly whether someone messes up the test in the
6227 char digs[] = "0123456789";
6228 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6230 /* Catch a bug in an HP-UX C compiler. See
6231 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6232 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6243 /* Refer to every declared value, to avoid compiler optimizations. */
6244 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6245 + !m + !n + !o + !p + !q + !pq);
6251 rm -f conftest.
$ac_objext
6252 if { (ac_try
="$ac_compile"
6254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_compile") 2>conftest.er1
6260 grep -v '^ *+' conftest.er1 >conftest.err
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && {
6265 test -z "$ac_c_werror_flag" ||
6266 test ! -s conftest.err
6267 } && test -s conftest.$ac_objext; then
6268 ac_cv_header_stdbool_h=yes
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.$ac_ext >&5
6273 ac_cv_header_stdbool_h=no
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6279 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
6280 { echo "$as_me:$LINENO: checking for _Bool" >&5
6281 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
6282 if test "${ac_cv_type__Bool+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 cat >conftest.$ac_ext <<_ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 $ac_includes_default
6292 typedef _Bool ac__type_new_;
6296 if ((ac__type_new_ *) 0)
6298 if (sizeof (ac__type_new_))
6304 rm -f conftest.$ac_objext
6305 if { (ac_try="$ac_compile"
6307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6308 *) ac_try_echo
=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_compile") 2>conftest.er1
6313 grep -v '^ *+' conftest.er1
>conftest.err
6315 cat conftest.err
>&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest.
$ac_objext; then
6321 ac_cv_type__Bool
=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.
$ac_ext >&5
6329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6331 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6332 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
6333 if test $ac_cv_type__Bool = yes; then
6335 cat >>confdefs.h
<<_ACEOF
6336 #define HAVE__BOOL 1
6342 if test $ac_cv_header_stdbool_h = yes; then
6344 cat >>confdefs.h
<<\_ACEOF
6345 #define HAVE_STDBOOL_H 1
6350 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6351 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
6352 if test "${ac_cv_c_const+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 cat >conftest.
$ac_ext <<_ACEOF
6358 cat confdefs.h
>>conftest.
$ac_ext
6359 cat >>conftest.
$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6365 /* FIXME: Include the comments suggested by Paul. */
6367 /* Ultrix mips cc rejects this. */
6368 typedef int charset[2];
6370 /* SunOS 4.1.1 cc rejects this. */
6371 char const *const *pcpcc;
6373 /* NEC SVR4.0.2 mips cc rejects this. */
6374 struct point {int x, y;};
6375 static struct point const zero = {0,0};
6376 /* AIX XL C 1.02.0.0 rejects this.
6377 It does not let you subtract one const X* pointer from another in
6378 an arm of an if-expression whose if-part is not a constant
6380 const char *g = "string";
6381 pcpcc = &g + (g ? g-g : 0);
6382 /* HPUX 7.0 cc rejects these. */
6384 ppc = (char**) pcpcc;
6385 pcpcc = (char const *const *) ppc;
6386 { /* SCO 3.2v4 cc rejects this. */
6388 char const *s = 0 ? (char *) 0 : (char const *) 0;
6393 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6395 const int *foo = &x[0];
6398 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6399 typedef const int *iptr;
6403 { /* AIX XL C 1.02.0.0 rejects this saying
6404 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6405 struct s { int j; const int *ap[3]; };
6406 struct s *b; b->j = 5;
6408 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6412 return !cs[0] && !zero.x;
6419 rm -f conftest.
$ac_objext
6420 if { (ac_try
="$ac_compile"
6422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_compile") 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest.$ac_objext; then
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6447 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6448 if test $ac_cv_c_const = no; then
6450 cat >>confdefs.h <<\_ACEOF
6456 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6457 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6458 if test "${ac_cv_type_signal+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <sys/types.h>
6473 return *(signal (0, 0)) (0) == 1;
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6482 *) ac_try_echo
=$ac_try;;
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6487 grep -v '^ *+' conftest.er1
>conftest.err
6489 cat conftest.err
>&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.
$ac_objext; then
6495 ac_cv_type_signal
=int
6497 echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.
$ac_ext >&5
6500 ac_cv_type_signal
=void
6503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6505 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6506 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6508 cat >>confdefs.h
<<_ACEOF
6509 #define RETSIGTYPE $ac_cv_type_signal
6517 for ac_func
in mkstemp setresgid setegid can_change_color
6519 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6522 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 cat >conftest.
$ac_ext <<_ACEOF
6528 cat confdefs.h
>>conftest.
$ac_ext
6529 cat >>conftest.
$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6533 #define $ac_func innocuous_$ac_func
6535 /* System header to define __stub macros and hopefully few prototypes,
6536 which can conflict with char $ac_func (); below.
6537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6538 <limits.h> exists even on freestanding compilers. */
6541 # include <limits.h>
6543 # include <assert.h>
6548 /* Override any GCC internal prototype to avoid an error.
6549 Use char because int might match the return type of a GCC
6550 builtin and then its argument prototype would still apply. */
6555 /* The GNU C library defines this for functions which it implements
6556 to always fail with ENOSYS. Some functions are actually named
6557 something starting with __ and the normal name is an alias. */
6558 #if defined __stub_$ac_func || defined __stub___$ac_func
6570 rm -f conftest.
$ac_objext conftest
$ac_exeext
6571 if { (ac_try
="$ac_link"
6573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_link") 2>conftest.er1
6579 grep -v '^ *+' conftest.er1 >conftest.err
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && {
6584 test -z "$ac_c_werror_flag" ||
6585 test ! -s conftest.err
6586 } && test -s conftest$ac_exeext &&
6587 $as_test_x conftest$ac_exeext; then
6588 eval "$as_ac_var=yes"
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 eval "$as_ac_var=no"
6596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6597 conftest$ac_exeext conftest.$ac_ext
6599 ac_res=`eval echo '${'$as_ac_var'}'`
6600 { echo "$as_me:$LINENO: result: $ac_res" >&5
6601 echo "${ECHO_T}$ac_res" >&6; }
6602 if test `eval echo '${'$as_ac_var'}'` = yes; then
6603 cat >>confdefs.h <<_ACEOF
6604 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6613 ac_config_files="$ac_config_files mk/rules.mk"
6615 cat >confcache <<\_ACEOF
6616 # This file is a shell script that caches the results of configure
6617 # tests run on this system so they can be shared between configure
6618 # scripts and configure runs, see configure's option --config-cache.
6619 # It is not useful on other systems. If it contains results you don't
6620 # want to keep, you may remove or edit it.
6622 # config.status only pays attention to the cache file if you give it
6623 # the --recheck option to rerun configure.
6625 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
6626 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6631 # The following way of writing the cache mishandles newlines in values,
6632 # but we know of no workaround that is simple, portable, and efficient.
6633 # So, we kill variables containing newlines.
6634 # Ultrix sh set writes to stderr and can't be redirected directly,
6635 # and sets the high bit in the cache file unless we assign to the vars.
6637 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6638 eval ac_val
=\$
$ac_var
6642 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6646 _ | IFS | as_nl
) ;; #(
6647 *) $as_unset $ac_var ;;
6653 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6654 *${as_nl}ac_space
=\
*)
6655 # `set' does not quote correctly, so add quotes (double-quote
6656 # substitution turns \\\\ into \\, and sed turns \\ into \).
6659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6662 # `set' quotes correctly as required by POSIX, so do not add quotes.
6663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6672 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6674 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6676 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6677 if test -w "$cache_file"; then
6678 test "x$cache_file" != "x/dev/null" &&
6679 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6680 echo "$as_me: updating cache $cache_file" >&6;}
6681 cat confcache
>$cache_file
6683 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6684 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6689 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6690 # Let make expand exec_prefix.
6691 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6693 DEFS
=-DHAVE_CONFIG_H
6697 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6698 # 1. Remove the extension, and $U if already installed.
6699 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6700 ac_i
=`echo "$ac_i" | sed "$ac_script"`
6701 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6702 # will be set to the directory where LIBOBJS objects are built.
6703 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6704 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6708 LTLIBOBJS
=$ac_ltlibobjs
6712 : ${CONFIG_STATUS=./config.status}
6713 ac_clean_files_save
=$ac_clean_files
6714 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6715 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6716 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6717 cat >$CONFIG_STATUS <<_ACEOF
6719 # Generated by $as_me.
6720 # Run this file to recreate the current configuration.
6721 # Compiler output produced by configure, useful for debugging
6722 # configure, is in config.log if it exists.
6727 SHELL=\${CONFIG_SHELL-$SHELL}
6730 cat >>$CONFIG_STATUS <<\_ACEOF
6731 ## --------------------- ##
6732 ## M4sh Initialization. ##
6733 ## --------------------- ##
6735 # Be more Bourne compatible
6736 DUALCASE
=1; export DUALCASE
# for MKS sh
6737 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6740 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6741 # is contrary to our usage. Disable this feature.
6742 alias -g '${1+"$@"}'='"$@"'
6743 setopt NO_GLOB_SUBST
6745 case `(set -o) 2>/dev/null` in
6746 *posix
*) set -o posix
;;
6755 # Avoid depending upon Character Ranges.
6756 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6757 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6758 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6759 as_cr_digits
='0123456789'
6760 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6762 # The user is always right.
6763 if test "${PATH_SEPARATOR+set}" != set; then
6764 echo "#! /bin/sh" >conf$$.sh
6765 echo "exit 0" >>conf$$.sh
6767 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6775 # Support unset when possible.
6776 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6784 # We need space, tab and new line, in precisely that order. Quoting is
6785 # there to prevent editors from complaining about space-tab.
6786 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6787 # splitting by setting IFS to empty value.)
6792 # Find who we are. Look in the path if we contain no directory separator.
6794 *[\\/]* ) as_myself
=$0 ;;
6795 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir
=.
6800 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6806 # We did not find ourselves, most probably we were run as `sh COMMAND'
6807 # in which case we are not to be found in the path.
6808 if test "x$as_myself" = x
; then
6811 if test ! -f "$as_myself"; then
6812 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6813 { (exit 1); exit 1; }
6816 # Work around bugs in pre-3.0 UWIN ksh.
6817 for as_var
in ENV MAIL MAILPATH
6818 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
6826 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6827 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6828 LC_TELEPHONE LC_TIME
6830 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6831 eval $as_var=C
; export $as_var
6833 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
6837 # Required to use basename.
6838 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6839 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6845 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6846 as_basename
=basename
6852 # Name of the executable.
6853 as_me
=`$as_basename -- "$0" ||
6854 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6855 X"$0" : 'X\(//\)$' \| \
6856 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6858 sed '/^.*\/\([^/][^/]*\)\/*$/{
6879 test "x$as_lineno_1" != "x$as_lineno_2" &&
6880 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
6882 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6883 # uniformly replaced by the line number. The first 'sed' inserts a
6884 # line-number line after each line using $LINENO; the second 'sed'
6885 # does the real work. The second script uses 'N' to pair each
6886 # line-number line with the line containing $LINENO, and appends
6887 # trailing '-' during substitution so that $LINENO is not a special
6889 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6890 # scripts with optimization help from Paolo Bonzini. Blame Lee
6891 # E. McMahon (1931-1989) for sed's syntax. :-)
6903 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6907 chmod +x
"$as_me.lineno" ||
6908 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6909 { (exit 1); exit 1; }; }
6911 # Don't try to exec as it changes $[0], causing all sort of problems
6912 # (the dirname of $[0] is not the place where we might find the
6913 # original and so on. Autoconf is especially sensitive to this).
6915 # Exit status is that of the last command.
6920 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6926 ECHO_C
= ECHO_N
= ECHO_T
=
6929 case `echo 'x\c'` in
6930 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6937 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6938 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6944 rm -f conf$$ conf$$.exe conf$$.
file
6945 if test -d conf$$.dir
; then
6946 rm -f conf$$.dir
/conf$$.
file
6952 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6954 # ... but there are two gotchas:
6955 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6956 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6957 # In both cases, we have to default to `cp -p'.
6958 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6960 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6965 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6966 rmdir conf$$.dir
2>/dev
/null
6968 if mkdir
-p .
2>/dev
/null
; then
6971 test -d .
/-p && rmdir .
/-p
6975 if test -x / >/dev
/null
2>&1; then
6978 if ls -dL / >/dev
/null
2>&1; then
6985 if test -d "$1"; then
6991 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6992 ???[sx]*):;;*)false;;esac;fi
6996 as_executable_p
=$as_test_x
6998 # Sed expression to map a string onto a valid CPP name.
6999 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7001 # Sed expression to map a string onto a valid variable name.
7002 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7007 # Save the log message, to keep $[0] and so on meaningful, and to
7008 # report actual input values of CONFIG_FILES etc. instead of their
7009 # values after options handling.
7011 This file was extended by Angband $as_me 3.0.9b, which was
7012 generated by GNU Autoconf 2.61. Invocation command line was
7014 CONFIG_FILES = $CONFIG_FILES
7015 CONFIG_HEADERS = $CONFIG_HEADERS
7016 CONFIG_LINKS = $CONFIG_LINKS
7017 CONFIG_COMMANDS = $CONFIG_COMMANDS
7020 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7025 cat >>$CONFIG_STATUS <<_ACEOF
7026 # Files that config.status was made for.
7027 config_files="$ac_config_files"
7028 config_headers="$ac_config_headers"
7032 cat >>$CONFIG_STATUS <<\_ACEOF
7034 \`$as_me' instantiates files from templates according to the
7035 current configuration.
7037 Usage: $0 [OPTIONS] [FILE]...
7039 -h, --help print this help, then exit
7040 -V, --version print version number and configuration settings, then exit
7041 -q, --quiet do not print progress messages
7042 -d, --debug don't remove temporary files
7043 --recheck update $as_me by reconfiguring in the same conditions
7044 --file=FILE[:TEMPLATE]
7045 instantiate the configuration file FILE
7046 --header=FILE[:TEMPLATE]
7047 instantiate the configuration header FILE
7049 Configuration files:
7052 Configuration headers:
7055 Report bugs to <bug-autoconf@gnu.org>."
7058 cat >>$CONFIG_STATUS <<_ACEOF
7060 Angband config.status 3.0.9b
7061 configured by $0, generated by GNU Autoconf 2.61,
7062 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7064 Copyright (C) 2006 Free Software Foundation, Inc.
7065 This config.status script is free software; the Free Software Foundation
7066 gives unlimited permission to copy, distribute and modify it."
7073 cat >>$CONFIG_STATUS <<\_ACEOF
7074 # If no file are specified by the user, then we need to provide default
7075 # value. By we need to know if files were specified by the user.
7081 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7082 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7093 # Handling of the options.
7094 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7096 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7097 echo "$ac_cs_version"; exit ;;
7098 --debug |
--debu |
--deb |
--de |
--d |
-d )
7100 --file |
--fil |
--fi |
--f )
7102 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
7103 ac_need_defaults
=false
;;
7104 --header |
--heade |
--head |
--hea )
7106 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
7107 ac_need_defaults
=false
;;
7109 # Conflict between --help and --header
7110 { echo "$as_me: error: ambiguous option: $1
7111 Try \`$0 --help' for more information." >&2
7112 { (exit 1); exit 1; }; };;
7113 --help |
--hel |
-h )
7114 echo "$ac_cs_usage"; exit ;;
7115 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7116 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7120 -*) { echo "$as_me: error: unrecognized option: $1
7121 Try \`$0 --help' for more information." >&2
7122 { (exit 1); exit 1; }; } ;;
7124 *) ac_config_targets
="$ac_config_targets $1"
7125 ac_need_defaults
=false
;;
7131 ac_configure_extra_args
=
7133 if $ac_cs_silent; then
7135 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7139 cat >>$CONFIG_STATUS <<_ACEOF
7140 if \$ac_cs_recheck; then
7141 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7144 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7148 cat >>$CONFIG_STATUS <<\_ACEOF
7152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7153 ## Running $as_me. ##
7159 cat >>$CONFIG_STATUS <<_ACEOF
7162 cat >>$CONFIG_STATUS <<\_ACEOF
7164 # Handling of arguments.
7165 for ac_config_target
in $ac_config_targets
7167 case $ac_config_target in
7168 "src/autoconf.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/autoconf.h" ;;
7169 "mk/rules.mk") CONFIG_FILES
="$CONFIG_FILES mk/rules.mk" ;;
7171 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7172 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7173 { (exit 1); exit 1; }; };;
7178 # If the user did not use the arguments to specify the items to instantiate,
7179 # then the envvar interface is used. Set only those that are not.
7180 # We use the long form for the default assignment because of an extremely
7181 # bizarre bug on SunOS 4.1.3.
7182 if $ac_need_defaults; then
7183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7184 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7187 # Have a temporary directory for convenience. Make it in the build tree
7188 # simply because there is no reason against having it here, and in addition,
7189 # creating and moving files from /tmp can sometimes cause problems.
7190 # Hook for its removal unless debugging.
7191 # Note that there is a small window in which the directory will not be cleaned:
7192 # after its creation but before its name has been assigned to `$tmp'.
7196 trap 'exit_status=$?
7197 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7199 trap '{ (exit 1); exit 1; }' 1 2 13 15
7201 # Create a (secure) tmp directory for tmp files.
7204 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7205 test -n "$tmp" && test -d "$tmp"
7208 tmp
=.
/conf$$
-$RANDOM
7209 (umask 077 && mkdir
"$tmp")
7212 echo "$me: cannot create a temporary directory in ." >&2
7213 { (exit 1); exit 1; }
7217 # Set up the sed scripts for CONFIG_FILES section.
7220 # No need to generate the scripts if there are no CONFIG_FILES.
7221 # This happens for instance when ./config.status config.h
7222 if test -n "$CONFIG_FILES"; then
7229 for ac_last_try
in false false false false false
:; do
7230 cat >conf$
$subs.
sed <<_ACEOF
7231 SHELL!$SHELL$ac_delim
7232 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7233 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7234 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7235 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7236 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7237 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7238 exec_prefix!$exec_prefix$ac_delim
7239 prefix!$prefix$ac_delim
7240 program_transform_name!$program_transform_name$ac_delim
7241 bindir!$bindir$ac_delim
7242 sbindir!$sbindir$ac_delim
7243 libexecdir!$libexecdir$ac_delim
7244 datarootdir!$datarootdir$ac_delim
7245 datadir!$datadir$ac_delim
7246 sysconfdir!$sysconfdir$ac_delim
7247 sharedstatedir!$sharedstatedir$ac_delim
7248 localstatedir!$localstatedir$ac_delim
7249 includedir!$includedir$ac_delim
7250 oldincludedir!$oldincludedir$ac_delim
7251 docdir!$docdir$ac_delim
7252 infodir!$infodir$ac_delim
7253 htmldir!$htmldir$ac_delim
7254 dvidir!$dvidir$ac_delim
7255 pdfdir!$pdfdir$ac_delim
7256 psdir!$psdir$ac_delim
7257 libdir!$libdir$ac_delim
7258 localedir!$localedir$ac_delim
7259 mandir!$mandir$ac_delim
7261 ECHO_C!$ECHO_C$ac_delim
7262 ECHO_N!$ECHO_N$ac_delim
7263 ECHO_T!$ECHO_T$ac_delim
7265 build_alias!$build_alias$ac_delim
7266 host_alias!$host_alias$ac_delim
7267 target_alias!$target_alias$ac_delim
7268 PACKAGE!$PACKAGE$ac_delim
7269 VERSION!$VERSION$ac_delim
7271 CFLAGS!$CFLAGS$ac_delim
7272 LDFLAGS!$LDFLAGS$ac_delim
7273 CPPFLAGS!$CPPFLAGS$ac_delim
7274 ac_ct_CC!$ac_ct_CC$ac_delim
7275 EXEEXT!$EXEEXT$ac_delim
7276 OBJEXT!$OBJEXT$ac_delim
7277 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
7278 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
7279 INSTALL_DATA!$INSTALL_DATA$ac_delim
7281 SET_MAKE!$SET_MAKE$ac_delim
7285 SETEGID!$SETEGID$ac_delim
7286 DATA_PATH!$DATA_PATH$ac_delim
7287 XMKMF!$XMKMF$ac_delim
7289 X_CFLAGS!$X_CFLAGS$ac_delim
7290 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
7291 X_LIBS!$X_LIBS$ac_delim
7292 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
7293 SDL_CONFIG!$SDL_CONFIG$ac_delim
7294 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
7295 SDL_LIBS!$SDL_LIBS$ac_delim
7296 PKG_CONFIG!$PKG_CONFIG$ac_delim
7297 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
7298 GTK_LIBS!$GTK_LIBS$ac_delim
7299 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
7300 GLIB_LIBS!$GLIB_LIBS$ac_delim
7302 EGREP!$EGREP$ac_delim
7303 LIBOBJS!$LIBOBJS$ac_delim
7304 LTLIBOBJS!$LTLIBOBJS$ac_delim
7307 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
7309 elif $ac_last_try; then
7310 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7311 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7312 { (exit 1); exit 1; }; }
7314 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
7318 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
7319 if test -n "$ac_eof"; then
7320 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
7321 ac_eof
=`expr $ac_eof + 1`
7324 cat >>$CONFIG_STATUS <<_ACEOF
7325 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
7326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
7329 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7330 s/^/s,@/; s/!/@,|#_!!_#|/
7333 s/'"$ac_delim"'$/,g/; t
7335 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
7336 ' >>$CONFIG_STATUS <conf$
$subs.
sed
7337 rm -f conf$
$subs.
sed
7338 cat >>$CONFIG_STATUS <<_ACEOF
7345 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7346 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7347 # trailing colons and then remove the whole line if VPATH becomes empty
7348 # (actually we leave an empty line to preserve line numbers).
7349 if test "x$srcdir" = x.
; then
7350 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
7354 s/^\([^=]*=[ ]*\):*/\1/
7360 cat >>$CONFIG_STATUS <<\_ACEOF
7361 fi # test -n "$CONFIG_FILES"
7364 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
7367 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7369 case $ac_mode$ac_tag in
7371 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
7372 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
7373 { (exit 1); exit 1; }; };;
7374 :[FH
]-) ac_tag
=-:-;;
7375 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7392 -) ac_f
="$tmp/stdin";;
7393 *) # Look for the file first in the build tree, then in the source tree
7394 # (if the path is not absolute). The absolute path cannot be DOS-style,
7395 # because $ac_f cannot contain `:'.
7399 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7401 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7402 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7403 { (exit 1); exit 1; }; };;
7405 ac_file_inputs
="$ac_file_inputs $ac_f"
7408 # Let's still pretend it is `configure' which instantiates (i.e., don't
7409 # use $as_me), people would be surprised to read:
7410 # /* config.h. Generated by config.status. */
7411 configure_input
="Generated from "`IFS=:
7412 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
7413 if test x
"$ac_file" != x-
; then
7414 configure_input
="$ac_file. $configure_input"
7415 { echo "$as_me:$LINENO: creating $ac_file" >&5
7416 echo "$as_me: creating $ac_file" >&6;}
7420 *:-:* |
*:-) cat >"$tmp/stdin";;
7425 ac_dir
=`$as_dirname -- "$ac_file" ||
7426 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7427 X"$ac_file" : 'X\(//\)[^/]' \| \
7428 X"$ac_file" : 'X\(//\)$' \| \
7429 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7450 -*) as_dir
=.
/$as_dir;;
7452 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
7456 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7457 *) as_qdir
=$as_dir;;
7459 as_dirs
="'$as_qdir' $as_dirs"
7460 as_dir
=`$as_dirname -- "$as_dir" ||
7461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7462 X"$as_dir" : 'X\(//\)[^/]' \| \
7463 X"$as_dir" : 'X\(//\)$' \| \
7464 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7483 test -d "$as_dir" && break
7485 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7486 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7487 echo "$as_me: error: cannot create directory $as_dir" >&2;}
7488 { (exit 1); exit 1; }; }; }
7492 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7494 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7495 # A ".." for each directory in $ac_dir_suffix.
7496 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
7497 case $ac_top_builddir_sub in
7498 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7499 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7502 ac_abs_top_builddir
=$ac_pwd
7503 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7504 # for backward compatibility:
7505 ac_top_builddir
=$ac_top_build_prefix
7508 .
) # We are building in place.
7510 ac_top_srcdir
=$ac_top_builddir_sub
7511 ac_abs_top_srcdir
=$ac_pwd ;;
7512 [\\/]* | ?
:[\\/]* ) # Absolute name.
7513 ac_srcdir
=$srcdir$ac_dir_suffix;
7514 ac_top_srcdir
=$srcdir
7515 ac_abs_top_srcdir
=$srcdir ;;
7517 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7518 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7519 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7521 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7531 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7532 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7536 cat >>$CONFIG_STATUS <<\_ACEOF
7537 # If the template does not know about datarootdir, expand it.
7538 # FIXME: This hack should be removed a few years after 2.60.
7539 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7541 case `sed -n '/datarootdir/ {
7550 ' $ac_file_inputs` in
7551 *datarootdir
*) ac_datarootdir_seen
=yes;;
7552 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7553 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7554 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7556 cat >>$CONFIG_STATUS <<_ACEOF
7557 ac_datarootdir_hack='
7558 s&@datadir@&$datadir&g
7559 s&@docdir@&$docdir&g
7560 s&@infodir@&$infodir&g
7561 s&@localedir@&$localedir&g
7562 s&@mandir@&$mandir&g
7563 s&\\\${datarootdir}&$datarootdir&g' ;;
7567 # Neutralize VPATH when `$srcdir' = `.'.
7568 # Shell code in configure.ac might set extrasub.
7569 # FIXME: do we really want to maintain this feature?
7570 cat >>$CONFIG_STATUS <<_ACEOF
7574 cat >>$CONFIG_STATUS <<\_ACEOF
7576 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7577 s
&@configure_input@
&$configure_input&;t t
7578 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7579 s
&@srcdir@
&$ac_srcdir&;t t
7580 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7581 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7582 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7583 s
&@builddir@
&$ac_builddir&;t t
7584 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7585 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7586 s
&@INSTALL@
&$ac_INSTALL&;t t
7587 $ac_datarootdir_hack
7588 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" >$tmp/out
7590 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7591 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7592 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7593 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7594 which seems to be undefined. Please make sure it is defined." >&5
7595 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7596 which seems to be undefined. Please make sure it is defined." >&2;}
7600 -) cat "$tmp/out"; rm -f "$tmp/out";;
7601 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7610 # Transform confdefs.h into a sed script `conftest.defines', that
7611 # substitutes the proper values into config.h.in to produce config.h.
7612 rm -f conftest.defines conftest.
tail
7613 # First, append a space to every undef/define line, to ease matching.
7614 echo 's/$/ /' >conftest.defines
7615 # Then, protect against being on the right side of a sed subst, or in
7616 # an unquoted here document, in config.status. If some macros were
7617 # called several times there might be several #defines for the same
7618 # symbol, which is useless. But do not sort them, since the last
7619 # AC_DEFINE must be honored.
7620 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
7621 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
7622 # NAME is the cpp macro being defined, VALUE is the value it is being given.
7623 # PARAMS is the parameter list in the macro definition--in most cases, it's
7624 # just an empty string.
7625 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
7626 ac_dB
='\\)[ (].*,\\1define\\2'
7634 s/^[ ]*#[ ]*define[ ][ ]*//
7639 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
7640 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
7641 ' >>conftest.defines
7643 # Remove the space that was appended to ease matching.
7644 # Then replace #undef with comments. This is necessary, for
7645 # example, in the case of _POSIX_SOURCE, which is predefined and required
7646 # on some systems where configure will not decide to define it.
7647 # (The regexp can be short, since the line contains either #define or #undef.)
7649 s,^[ #]*u.*,/* & */,' >>conftest.defines
7651 # Break up conftest.defines:
7654 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
7655 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
7656 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
7658 ac_in
='$ac_file_inputs'
7659 ac_out
='"$tmp/out1"'
7660 ac_nxt
='"$tmp/out2"'
7664 # Write a here document:
7665 cat >>$CONFIG_STATUS <<_ACEOF
7666 # First, check the format of the line:
7667 cat >"\$tmp/defines.sed" <<\\CEOF
7668 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
7669 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
7673 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
7675 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
7676 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
7677 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
7678 grep . conftest.
tail >/dev
/null ||
break
7679 rm -f conftest.defines
7680 mv conftest.
tail conftest.defines
7682 rm -f conftest.defines conftest.
tail
7684 echo "ac_result=$ac_in" >>$CONFIG_STATUS
7685 cat >>$CONFIG_STATUS <<\_ACEOF
7686 if test x
"$ac_file" != x-
; then
7687 echo "/* $configure_input */" >"$tmp/config.h"
7688 cat "$ac_result" >>"$tmp/config.h"
7689 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
7690 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7691 echo "$as_me: $ac_file is unchanged" >&6;}
7694 mv "$tmp/config.h" $ac_file
7697 echo "/* $configure_input */"
7709 { (exit 0); exit 0; }
7711 chmod +x
$CONFIG_STATUS
7712 ac_clean_files
=$ac_clean_files_save
7715 # configure is writing to config.log, and then calls config.status.
7716 # config.status does its own redirection, appending to config.log.
7717 # Unfortunately, on DOS this fails, as config.log is still kept open
7718 # by configure, so config.status won't be able to write to it; its
7719 # output is simply discarded. So we exec the FD to /dev/null,
7720 # effectively closing config.log, so it can be properly (re)opened and
7721 # appended to by config.status. When coming back to configure, we
7722 # need to make the FD available again.
7723 if test "$no_create" != yes; then
7725 ac_config_status_args
=
7726 test "$silent" = yes &&
7727 ac_config_status_args
="$ac_config_status_args --quiet"
7729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7731 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7732 # would make configure fail if this is the last instruction.
7733 $ac_cs_success ||
{ (exit 1); exit 1; }
7739 echo "Configuration:"
7741 echo " Install path: ${prefix}"
7742 echo " lib/ path: ${game_datadir}"
7744 echo "-- Frontends --"
7745 if test "$enable_curses" = "yes"; then
7746 if test "$with_curses" = "no"; then
7747 echo "- Curses No; missing libraries"
7752 echo "- Curses Disabled"
7754 if test "$enable_gtk" = "yes"; then
7755 if test "$with_gtk" = "no"; then
7756 echo "- GTK 2.x No; missing libraries"
7758 echo "- GTK 2.x Yes"
7761 echo "- GTK 2.x Disabled"
7763 if test "$enable_x11" = "yes"; then
7764 if test "$with_x11" = "no"; then
7765 echo "- X11 No; missing libraries"
7770 echo "- X11 Disabled"
7772 if test "$enable_sdl" = "yes"; then
7773 if test "$with_sdl" = "no"; then
7774 echo "- SDL No; missing libraries"
7779 echo "- SDL Disabled"