Angband 3.0.9b.
[angband.git] / configure
blobbec22ade40f31392c04d77f55df35519f6e957ce
1 #! /bin/sh
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
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
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
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
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.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
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
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
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
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
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 \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
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 ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
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
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
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
243 emulate sh
244 NULLCMD=:
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+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
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+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
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; }
335 _ASEOF
336 }; then
337 break
342 done
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
347 done
348 export CONFIG_SHELL
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 () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
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
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
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
436 # case at line end.
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. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
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).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
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 ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
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
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
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
556 # Name of the host.
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`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
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="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 PACKAGE
655 VERSION
657 CFLAGS
658 LDFLAGS
659 CPPFLAGS
660 ac_ct_CC
661 EXEEXT
662 OBJEXT
663 INSTALL_PROGRAM
664 INSTALL_SCRIPT
665 INSTALL_DATA
666 LN_S
667 SET_MAKE
671 SETEGID
672 DATA_PATH
673 XMKMF
675 X_CFLAGS
676 X_PRE_LIBS
677 X_LIBS
678 X_EXTRA_LIBS
679 SDL_CONFIG
680 SDL_CFLAGS
681 SDL_LIBS
682 PKG_CONFIG
683 GTK_CFLAGS
684 GTK_LIBS
685 GLIB_CFLAGS
686 GLIB_LIBS
687 GREP
688 EGREP
689 LIBOBJS
690 LTLIBOBJS'
691 ac_subst_files=''
692 ac_precious_vars='build_alias
693 host_alias
694 target_alias
696 CFLAGS
697 LDFLAGS
698 LIBS
699 CPPFLAGS
700 XMKMF
701 CPP'
704 # Initialize some variables set by options.
705 ac_init_help=
706 ac_init_version=false
707 # The variables have the same names as the options, with
708 # dashes changed to underlines.
709 cache_file=/dev/null
710 exec_prefix=NONE
711 no_create=
712 no_recursion=
713 prefix=NONE
714 program_prefix=NONE
715 program_suffix=NONE
716 program_transform_name=s,x,x,
717 silent=
718 site=
719 srcdir=
720 verbose=
721 x_includes=NONE
722 x_libraries=NONE
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'
742 htmldir='${docdir}'
743 dvidir='${docdir}'
744 pdfdir='${docdir}'
745 psdir='${docdir}'
746 libdir='${exec_prefix}/lib'
747 localedir='${datarootdir}/locale'
748 mandir='${datarootdir}/man'
750 ac_prev=
751 ac_dashdash=
752 for ac_option
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
756 eval $ac_prev=\$ac_option
757 ac_prev=
758 continue
761 case $ac_option in
762 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 *) ac_optarg=yes ;;
764 esac
766 # Accept the important Cygnus configure options, so we can diagnose typos.
768 case $ac_dashdash$ac_option in
770 ac_dashdash=yes ;;
772 -bindir | --bindir | --bindi | --bind | --bin | --bi)
773 ac_prev=bindir ;;
774 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
775 bindir=$ac_optarg ;;
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 ;;
789 --config-cache | -C)
790 cache_file=config.cache ;;
792 -datadir | --datadir | --datadi | --datad)
793 ac_prev=datadir ;;
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)
814 ac_prev=docdir ;;
815 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
816 docdir=$ac_optarg ;;
818 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
819 ac_prev=dvidir ;;
820 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
821 dvidir=$ac_optarg ;;
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.
843 with_gas=yes ;;
845 -help | --help | --hel | --he | -h)
846 ac_init_help=long ;;
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)
858 ac_prev=htmldir ;;
859 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
860 | --ht=*)
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)
871 ac_prev=infodir ;;
872 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
873 infodir=$ac_optarg ;;
875 -libdir | --libdir | --libdi | --libd)
876 ac_prev=libdir ;;
877 -libdir=* | --libdir=* | --libdi=* | --libd=*)
878 libdir=$ac_optarg ;;
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)
888 ac_prev=localedir ;;
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)
900 ac_prev=mandir ;;
901 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
902 mandir=$ac_optarg ;;
904 -nfp | --nfp | --nf)
905 # Obsolete; use --without-fp.
906 with_fp=no ;;
908 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
909 | --no-cr | --no-c | -n)
910 no_create=yes ;;
912 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
913 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
914 no_recursion=yes ;;
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)
926 ac_prev=prefix ;;
927 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
928 prefix=$ac_optarg ;;
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)
962 ac_prev=pdfdir ;;
963 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
964 pdfdir=$ac_optarg ;;
966 -psdir | --psdir | --psdi | --psd | --ps)
967 ac_prev=psdir ;;
968 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
969 psdir=$ac_optarg ;;
971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
972 | -silent | --silent | --silen | --sile | --sil)
973 silent=yes ;;
975 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
976 ac_prev=sbindir ;;
977 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
978 | --sbi=* | --sb=*)
979 sbindir=$ac_optarg ;;
981 -sharedstatedir | --sharedstatedir | --sharedstatedi \
982 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
983 | --sharedst | --shareds | --shared | --share | --shar \
984 | --sha | --sh)
985 ac_prev=sharedstatedir ;;
986 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
987 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
988 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
989 | --sha=* | --sh=*)
990 sharedstatedir=$ac_optarg ;;
992 -site | --site | --sit)
993 ac_prev=site ;;
994 -site=* | --site=* | --sit=*)
995 site=$ac_optarg ;;
997 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
998 ac_prev=srcdir ;;
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)
1015 verbose=yes ;;
1017 -version | --version | --versio | --versi | --vers | -V)
1018 ac_init_version=: ;;
1020 -with-* | --with-*)
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 ;;
1038 --x)
1039 # Obsolete; use --with-x.
1040 with_x=yes ;;
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; }; }
1061 *=*)
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}
1078 esac
1079 done
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
1094 case $ac_val in
1095 [\\/$]* | ?:[\\/]* ) continue;;
1096 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1097 esac
1098 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1099 { (exit 1); exit 1; }; }
1100 done
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.
1105 build=$build_alias
1106 host=$host_alias
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
1116 cross_compiling=yes
1120 ac_tool_prefix=
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 ||
1145 echo X"$0" |
1146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1147 s//\1/
1150 /^X\(\/\/\)[^/].*/{
1151 s//\1/
1154 /^X\(\/\/\)$/{
1155 s//\1/
1158 /^X\(\/\).*/{
1159 s//\1/
1162 s/.*/./; q'`
1163 srcdir=$ac_confdir
1164 if test ! -r "$srcdir/$ac_unique_file"; then
1165 srcdir=..
1167 else
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"
1176 ac_abs_confdir=`(
1177 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1178 { (exit 1); exit 1; }; }
1179 pwd)`
1180 # When building in place, set srcdir=.
1181 if test "$ac_abs_confdir" = "$ac_pwd"; then
1182 srcdir=.
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.
1187 case $srcdir in
1188 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1189 esac
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}
1195 done
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.
1203 cat <<_ACEOF
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.
1213 Configuration:
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
1228 [PREFIX]
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]
1257 _ACEOF
1259 cat <<\_ACEOF
1261 X features:
1262 --x-includes=DIR X include files are in DIR
1263 --x-libraries=DIR X library files are in DIR
1264 _ACEOF
1267 if test -n "$ac_init_help"; then
1268 case $ac_init_help in
1269 short | recursive ) echo "Configuration of Angband 3.0.9b:";;
1270 esac
1271 cat <<\_ACEOF
1273 Optional Features:
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
1283 Optional Packages:
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
1301 CPP C preprocessor
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>.
1307 _ACEOF
1308 ac_status=$?
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
1315 ac_builddir=.
1317 case "$ac_dir" in
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/ ;;
1326 esac ;;
1327 esac
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
1333 case $srcdir in
1334 .) # We are building in place.
1335 ac_srcdir=.
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 ;;
1342 *) # Relative name.
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 ;;
1346 esac
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
1352 echo &&
1353 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1354 elif test -f "$ac_srcdir/configure"; then
1355 echo &&
1356 $SHELL "$ac_srcdir/configure" --help=recursive
1357 else
1358 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1359 fi || ac_status=$?
1360 cd "$ac_pwd" || { ac_status=$?; break; }
1361 done
1364 test -n "$ac_init_help" && exit $ac_status
1365 if $ac_init_version; then
1366 cat <<\_ACEOF
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.
1374 _ACEOF
1375 exit
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
1384 $ $0 $@
1386 _ACEOF
1387 exec 5>>config.log
1389 cat <<_ASUNAME
1390 ## --------- ##
1391 ## Platform. ##
1392 ## --------- ##
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`
1411 _ASUNAME
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 echo "PATH: $as_dir"
1419 done
1420 IFS=$as_save_IFS
1422 } >&5
1424 cat >&5 <<_ACEOF
1427 ## ----------- ##
1428 ## Core tests. ##
1429 ## ----------- ##
1431 _ACEOF
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.
1439 ac_configure_args=
1440 ac_configure_args0=
1441 ac_configure_args1=
1442 ac_must_keep_next=false
1443 for ac_pass in 1 2
1445 for ac_arg
1447 case $ac_arg in
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)
1451 continue ;;
1452 *\'*)
1453 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1454 esac
1455 case $ac_pass in
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.
1461 else
1462 case $ac_arg in
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 ;;
1469 esac
1471 -* ) ac_must_keep_next=true ;;
1472 esac
1474 ac_configure_args="$ac_configure_args '$ac_arg'"
1476 esac
1477 done
1478 done
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.
1490 echo
1492 cat <<\_ASBOX
1493 ## ---------------- ##
1494 ## Cache variables. ##
1495 ## ---------------- ##
1496 _ASBOX
1497 echo
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
1502 case $ac_val in #(
1503 *${as_nl}*)
1504 case $ac_var in #(
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;} ;;
1507 esac
1508 case $ac_var in #(
1509 _ | IFS | as_nl) ;; #(
1510 *) $as_unset $ac_var ;;
1511 esac ;;
1512 esac
1513 done
1514 (set) 2>&1 |
1515 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1516 *${as_nl}ac_space=\ *)
1517 sed -n \
1518 "s/'\''/'\''\\\\'\'''\''/g;
1519 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1520 ;; #(
1522 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1524 esac |
1525 sort
1527 echo
1529 cat <<\_ASBOX
1530 ## ----------------- ##
1531 ## Output variables. ##
1532 ## ----------------- ##
1533 _ASBOX
1534 echo
1535 for ac_var in $ac_subst_vars
1537 eval ac_val=\$$ac_var
1538 case $ac_val in
1539 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1540 esac
1541 echo "$ac_var='\''$ac_val'\''"
1542 done | sort
1543 echo
1545 if test -n "$ac_subst_files"; then
1546 cat <<\_ASBOX
1547 ## ------------------- ##
1548 ## File substitutions. ##
1549 ## ------------------- ##
1550 _ASBOX
1551 echo
1552 for ac_var in $ac_subst_files
1554 eval ac_val=\$$ac_var
1555 case $ac_val in
1556 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1557 esac
1558 echo "$ac_var='\''$ac_val'\''"
1559 done | sort
1560 echo
1563 if test -s confdefs.h; then
1564 cat <<\_ASBOX
1565 ## ----------- ##
1566 ## confdefs.h. ##
1567 ## ----------- ##
1568 _ASBOX
1569 echo
1570 cat confdefs.h
1571 echo
1573 test "$ac_signal" != 0 &&
1574 echo "$as_me: caught signal $ac_signal"
1575 echo "$as_me: exit $exit_status"
1576 } >&5
1577 rm -f core *.core core.conftest.* &&
1578 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1579 exit $exit_status
1581 for ac_signal in 1 2 13 15; do
1582 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1583 done
1584 ac_signal=0
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"
1593 _ACEOF
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1598 _ACEOF
1601 cat >>confdefs.h <<_ACEOF
1602 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1603 _ACEOF
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE_STRING "$PACKAGE_STRING"
1608 _ACEOF
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1613 _ACEOF
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"
1622 else
1623 set x "$ac_default_prefix/share/config.site" \
1624 "$ac_default_prefix/etc/config.site"
1626 shift
1627 for ac_site_file
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
1633 . "$ac_site_file"
1635 done
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;}
1643 case $cache_file in
1644 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1645 *) . "./$cache_file";;
1646 esac
1648 else
1649 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1650 echo "$as_me: creating cache $cache_file" >&6;}
1651 >$cache_file
1654 # Check that the precious variables saved in the cache have kept the same
1655 # value.
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
1663 set,)
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=: ;;
1667 ,set)
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=: ;;
1671 ,);;
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=:
1681 fi;;
1682 esac
1683 # Pass precious variables to config.status.
1684 if test "$ac_new_set" = set; then
1685 case $ac_new_val in
1686 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1687 *) ac_arg=$ac_var=$ac_new_val ;;
1688 esac
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'" ;;
1692 esac
1694 done
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; }; }
1727 ac_ext=c
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"
1739 PACKAGE=angband
1741 VERSION=3.0.9b
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE "$PACKAGE"
1747 _ACEOF
1750 cat >>confdefs.h <<_ACEOF
1751 #define VERSION "$VERSION"
1752 _ACEOF
1755 ac_ext=c
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
1761 ac_ext=c
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
1773 else
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776 else
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1780 IFS=$as_save_IFS
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
1786 break 2
1788 done
1789 done
1790 IFS=$as_save_IFS
1794 CC=$ac_cv_prog_CC
1795 if test -n "$CC"; then
1796 { echo "$as_me:$LINENO: result: $CC" >&5
1797 echo "${ECHO_T}$CC" >&6; }
1798 else
1799 { echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6; }
1805 if test -z "$ac_cv_prog_CC"; then
1806 ac_ct_CC=$CC
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
1813 else
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1820 IFS=$as_save_IFS
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
1826 break 2
1828 done
1829 done
1830 IFS=$as_save_IFS
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; }
1838 else
1839 { echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6; }
1843 if test "x$ac_ct_CC" = x; then
1844 CC=""
1845 else
1846 case $cross_compiling:$ac_tool_warned in
1847 yes:)
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 ;;
1855 esac
1856 CC=$ac_ct_CC
1858 else
1859 CC="$ac_cv_prog_CC"
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
1870 else
1871 if test -n "$CC"; then
1872 ac_cv_prog_CC="$CC" # Let the user override the test.
1873 else
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1877 IFS=$as_save_IFS
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
1883 break 2
1885 done
1886 done
1887 IFS=$as_save_IFS
1891 CC=$ac_cv_prog_CC
1892 if test -n "$CC"; then
1893 { echo "$as_me:$LINENO: result: $CC" >&5
1894 echo "${ECHO_T}$CC" >&6; }
1895 else
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
1910 else
1911 if test -n "$CC"; then
1912 ac_cv_prog_CC="$CC" # Let the user override the test.
1913 else
1914 ac_prog_rejected=no
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1918 IFS=$as_save_IFS
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
1924 continue
1926 ac_cv_prog_CC="cc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928 break 2
1930 done
1931 done
1932 IFS=$as_save_IFS
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
1937 shift
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.
1942 shift
1943 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1948 CC=$ac_cv_prog_CC
1949 if test -n "$CC"; then
1950 { echo "$as_me:$LINENO: result: $CC" >&5
1951 echo "${ECHO_T}$CC" >&6; }
1952 else
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
1969 else
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974 for as_dir in $PATH
1976 IFS=$as_save_IFS
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
1982 break 2
1984 done
1985 done
1986 IFS=$as_save_IFS
1990 CC=$ac_cv_prog_CC
1991 if test -n "$CC"; then
1992 { echo "$as_me:$LINENO: result: $CC" >&5
1993 echo "${ECHO_T}$CC" >&6; }
1994 else
1995 { echo "$as_me:$LINENO: result: no" >&5
1996 echo "${ECHO_T}no" >&6; }
2000 test -n "$CC" && break
2001 done
2003 if test -z "$CC"; then
2004 ac_ct_CC=$CC
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
2013 else
2014 if test -n "$ac_ct_CC"; then
2015 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2020 IFS=$as_save_IFS
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
2026 break 2
2028 done
2029 done
2030 IFS=$as_save_IFS
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; }
2038 else
2039 { echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6; }
2044 test -n "$ac_ct_CC" && break
2045 done
2047 if test "x$ac_ct_CC" = x; then
2048 CC=""
2049 else
2050 case $cross_compiling:$ac_tool_warned in
2051 yes:)
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 ;;
2059 esac
2060 CC=$ac_ct_CC
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"
2077 case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2080 esac
2081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2082 (eval "$ac_compiler --version >&5") 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2086 { (ac_try="$ac_compiler -v >&5"
2087 case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090 esac
2091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2092 (eval "$ac_compiler -v >&5") 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096 { (ac_try="$ac_compiler -V >&5"
2097 case "(($ac_try" in
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2100 esac
2101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102 (eval "$ac_compiler -V >&5") 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2107 cat >conftest.$ac_ext <<_ACEOF
2108 /* confdefs.h. */
2109 _ACEOF
2110 cat confdefs.h >>conftest.$ac_ext
2111 cat >>conftest.$ac_ext <<_ACEOF
2112 /* end confdefs.h. */
2115 main ()
2119 return 0;
2121 _ACEOF
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
2126 # of exeext.
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.
2139 ac_rmfiles=
2140 for ac_file in $ac_files
2142 case $ac_file in
2143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2144 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2145 esac
2146 done
2147 rm -f $ac_rmfiles
2149 if { (ac_try="$ac_link_default"
2150 case "(($ac_try" in
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2153 esac
2154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2155 (eval "$ac_link_default") 2>&5
2156 ac_status=$?
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
2163 # Autoconf.
2164 for ac_file in $ac_files ''
2166 test -f "$ac_file" || continue
2167 case $ac_file in
2168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2170 [ab].out )
2171 # We found the default executable, but exeext='' is most
2172 # certainly right.
2173 break;;
2174 *.* )
2175 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2176 then :; else
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
2183 # actually working.
2184 break;;
2186 break;;
2187 esac
2188 done
2189 test "$ac_cv_exeext" = no && ac_cv_exeext=
2191 else
2192 ac_file=''
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;;
2221 esac
2222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2223 (eval "$ac_try") 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 cross_compiling=no
2228 else
2229 if test "$cross_compiling" = maybe; then
2230 cross_compiling=yes
2231 else
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"
2257 case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2260 esac
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262 (eval "$ac_link") 2>&5
2263 ac_status=$?
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
2269 # `rm'.
2270 for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
2272 case $ac_file in
2273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275 break;;
2276 * ) break;;
2277 esac
2278 done
2279 else
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
2293 ac_exeext=$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
2298 else
2299 cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h. */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2307 main ()
2311 return 0;
2313 _ACEOF
2314 rm -f conftest.o conftest.obj
2315 if { (ac_try="$ac_compile"
2316 case "(($ac_try" in
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compile") 2>&5
2322 ac_status=$?
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;
2327 case $ac_file in
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2330 break;;
2331 esac
2332 done
2333 else
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
2349 ac_objext=$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
2354 else
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2363 main ()
2365 #ifndef __GNUC__
2366 choke me
2367 #endif
2370 return 0;
2372 _ACEOF
2373 rm -f conftest.$ac_objext
2374 if { (ac_try="$ac_compile"
2375 case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378 esac
2379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380 (eval "$ac_compile") 2>conftest.er1
2381 ac_status=$?
2382 grep -v '^ *+' conftest.er1 >conftest.err
2383 rm -f conftest.er1
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
2390 ac_compiler_gnu=yes
2391 else
2392 echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2395 ac_compiler_gnu=no
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
2411 else
2412 ac_save_c_werror_flag=$ac_c_werror_flag
2413 ac_c_werror_flag=yes
2414 ac_cv_prog_cc_g=no
2415 CFLAGS="-g"
2416 cat >conftest.$ac_ext <<_ACEOF
2417 /* confdefs.h. */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h. */
2424 main ()
2428 return 0;
2430 _ACEOF
2431 rm -f conftest.$ac_objext
2432 if { (ac_try="$ac_compile"
2433 case "(($ac_try" in
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2436 esac
2437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2438 (eval "$ac_compile") 2>conftest.er1
2439 ac_status=$?
2440 grep -v '^ *+' conftest.er1 >conftest.err
2441 rm -f conftest.er1
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
2448 ac_cv_prog_cc_g=yes
2449 else
2450 echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2453 CFLAGS=""
2454 cat >conftest.$ac_ext <<_ACEOF
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2462 main ()
2466 return 0;
2468 _ACEOF
2469 rm -f conftest.$ac_objext
2470 if { (ac_try="$ac_compile"
2471 case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_compile") 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
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
2487 else
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
2492 CFLAGS="-g"
2493 cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h. */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2501 main ()
2505 return 0;
2507 _ACEOF
2508 rm -f conftest.$ac_objext
2509 if { (ac_try="$ac_compile"
2510 case "(($ac_try" in
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2513 esac
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_compile") 2>conftest.er1
2516 ac_status=$?
2517 grep -v '^ *+' conftest.er1 >conftest.err
2518 rm -f conftest.er1
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
2525 ac_cv_prog_cc_g=yes
2526 else
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
2548 CFLAGS="-g -O2"
2549 else
2550 CFLAGS="-g"
2552 else
2553 if test "$GCC" = yes; then
2554 CFLAGS="-O2"
2555 else
2556 CFLAGS=
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
2563 else
2564 ac_cv_prog_cc_c89=no
2565 ac_save_CC=$CC
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572 #include <stdarg.h>
2573 #include <stdio.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)
2580 char **p;
2581 int i;
2583 return p[i];
2585 static char *f (char * (*g) (char **, int), char **p, ...)
2587 char *s;
2588 va_list v;
2589 va_start (v,p);
2590 s = g (p, va_arg (v,int));
2591 va_end (v);
2592 return s;
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. */
2606 #define FOO(x) 'x'
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);
2613 int argc;
2614 char **argv;
2616 main ()
2618 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2620 return 0;
2622 _ACEOF
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"
2629 case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632 esac
2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634 (eval "$ac_compile") 2>conftest.er1
2635 ac_status=$?
2636 grep -v '^ *+' conftest.er1 >conftest.err
2637 rm -f conftest.er1
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
2645 else
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
2654 done
2655 rm -f conftest.$ac_ext
2656 CC=$ac_save_CC
2659 # AC_CACHE_VAL
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; } ;;
2664 xno)
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; } ;;
2671 esac
2674 ac_ext=c
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"
2683 ac_aux_dir=
2684 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2685 if test -f "$ac_dir/install-sh"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/install-sh -c"
2688 break
2689 elif test -f "$ac_dir/install.sh"; then
2690 ac_aux_dir=$ac_dir
2691 ac_install_sh="$ac_aux_dir/install.sh -c"
2692 break
2693 elif test -f "$ac_dir/shtool"; then
2694 ac_aux_dir=$ac_dir
2695 ac_install_sh="$ac_aux_dir/shtool install -c"
2696 break
2698 done
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
2720 # AIX /bin/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
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 # Account for people who put trailing slashes in PATH elements.
2739 case $as_dir/ in
2740 ./ | .// | /cC/* | \
2741 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2742 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2743 /usr/ucb/* ) ;;
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
2747 # by default.
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.
2759 else
2760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2761 break 3
2764 done
2765 done
2767 esac
2768 done
2769 IFS=$as_save_IFS
2773 if test "${ac_cv_path_install+set}" = set; then
2774 INSTALL=$ac_cv_path_install
2775 else
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; }
2796 LN_S=$as_ln_s
2797 if test "$LN_S" = "ln -s"; then
2798 { echo "$as_me:$LINENO: result: yes" >&5
2799 echo "${ECHO_T}yes" >&6; }
2800 else
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
2810 else
2811 cat >conftest.make <<\_ACEOF
2812 SHELL = /bin/sh
2813 all:
2814 @echo '@@@%%%=$(MAKE)=@@@%%%'
2815 _ACEOF
2816 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2817 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2818 *@@@%%%=?*=@@@%%%*)
2819 eval ac_cv_prog_make_${ac_make}_set=yes;;
2821 eval ac_cv_prog_make_${ac_make}_set=no;;
2822 esac
2823 rm -f conftest.make
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; }
2828 SET_MAKE=
2829 else
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
2842 else
2843 case $RM in
2844 [\\/]* | ?:[\\/]*)
2845 ac_cv_path_RM="$RM" # Let the user override the test with a path.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2851 IFS=$as_save_IFS
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
2857 break 2
2859 done
2860 done
2861 IFS=$as_save_IFS
2864 esac
2866 RM=$ac_cv_path_RM
2867 if test -n "$RM"; then
2868 { echo "$as_me:$LINENO: result: $RM" >&5
2869 echo "${ECHO_T}$RM" >&6; }
2870 else
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
2882 else
2883 case $MV in
2884 [\\/]* | ?:[\\/]*)
2885 ac_cv_path_MV="$MV" # Let the user override the test with a path.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
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
2897 break 2
2899 done
2900 done
2901 IFS=$as_save_IFS
2904 esac
2906 MV=$ac_cv_path_MV
2907 if test -n "$MV"; then
2908 { echo "$as_me:$LINENO: result: $MV" >&5
2909 echo "${ECHO_T}$MV" >&6; }
2910 else
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
2922 else
2923 case $CP in
2924 [\\/]* | ?:[\\/]*)
2925 ac_cv_path_CP="$CP" # Let the user override the test with a path.
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2931 IFS=$as_save_IFS
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
2937 break 2
2939 done
2940 done
2941 IFS=$as_save_IFS
2944 esac
2946 CP=$ac_cv_path_CP
2947 if test -n "$CP"; then
2948 { echo "$as_me:$LINENO: result: $CP" >&5
2949 echo "${ECHO_T}$CP" >&6; }
2950 else
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}/"
2979 else
2980 libpath="./lib/"
2981 bindir=".."
2984 case "/$libpath" in
2985 */) game_datadir="$libpath"
2986 game_datadir=`(
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/"
2993 game_datadir=`(
2994 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
2995 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
2996 eval echo \""$game_datadir"\"
2999 esac
3002 cat >>confdefs.h <<_ACEOF
3003 #define DEFAULT_PATH "${game_datadir}"
3004 _ACEOF
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
3014 else
3015 enable_gtk=no
3018 # Check whether --enable-curses was given.
3019 if test "${enable_curses+set}" = set; then
3020 enableval=$enable_curses; enable_curses=$enableval
3021 else
3022 enable_curses=yes
3025 # Check whether --enable-x11 was given.
3026 if test "${enable_x11+set}" = set; then
3027 enableval=$enable_x11; enable_x11=$enableval
3028 else
3029 enable_x11=yes
3032 # Check whether --enable-sdl was given.
3033 if test "${enable_sdl+set}" = set; then
3034 enableval=$enable_sdl; enable_sdl=$enableval
3035 else
3036 enable_sdl=no
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
3043 else
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
3057 else
3058 ac_check_lib_save_LIBS=$LIBS
3059 LIBS="-lcurses $LIBS"
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _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. */
3070 #ifdef __cplusplus
3071 extern "C"
3072 #endif
3073 char initscr ();
3075 main ()
3077 return initscr ();
3079 return 0;
3081 _ACEOF
3082 rm -f conftest.$ac_objext conftest$ac_exeext
3083 if { (ac_try="$ac_link"
3084 case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_link") 2>conftest.er1
3090 ac_status=$?
3091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
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
3101 else
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
3115 found_curses=yes
3116 else
3117 found_curses=no
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
3124 else
3125 ac_check_lib_save_LIBS=$LIBS
3126 LIBS="-lncurses $LIBS"
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _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. */
3137 #ifdef __cplusplus
3138 extern "C"
3139 #endif
3140 char initscr ();
3142 main ()
3144 return initscr ();
3146 return 0;
3148 _ACEOF
3149 rm -f conftest.$ac_objext conftest$ac_exeext
3150 if { (ac_try="$ac_link"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_link") 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
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
3168 else
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
3182 found_ncurses=yes
3183 else
3184 found_ncurses=no
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
3191 else
3192 ac_check_lib_save_LIBS=$LIBS
3193 LIBS="-lpdcurses $LIBS"
3194 cat >conftest.$ac_ext <<_ACEOF
3195 /* confdefs.h. */
3196 _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. */
3204 #ifdef __cplusplus
3205 extern "C"
3206 #endif
3207 char initscr ();
3209 main ()
3211 return initscr ();
3213 return 0;
3215 _ACEOF
3216 rm -f conftest.$ac_objext conftest$ac_exeext
3217 if { (ac_try="$ac_link"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_link") 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
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
3235 else
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
3249 found_pdcurses=yes
3250 else
3251 found_pdcurses=no
3254 if test "x$found_ncurses" = "xno"; then
3255 if test "x$found_pdcurses" = "xno"; then
3256 if test "x$found_curses" = "xno"; then
3257 with_curses=no
3258 else
3260 cat >>confdefs.h <<\_ACEOF
3261 #define USE_CURSES 1
3262 _ACEOF
3265 cat >>confdefs.h <<\_ACEOF
3266 #define USE_GCU 1
3267 _ACEOF
3269 LDFLAGS="${LDFLAGS} -lcurses"
3270 with_curses=yes
3272 else
3274 cat >>confdefs.h <<\_ACEOF
3275 #define USE_CURSES 1
3276 _ACEOF
3279 cat >>confdefs.h <<\_ACEOF
3280 #define USE_GCU 1
3281 _ACEOF
3283 LDFLAGS="${LDFLAGS} -lpdcurses"
3284 with_curses=yes
3286 else
3288 cat >>confdefs.h <<\_ACEOF
3289 #define USE_NCURSES 1
3290 _ACEOF
3293 cat >>confdefs.h <<\_ACEOF
3294 #define USE_GCU 1
3295 _ACEOF
3297 LDFLAGS="${LDFLAGS} -lncurses"
3298 with_curses=yes
3303 if test "$enable_x11" = "yes"; then
3304 ac_ext=c
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
3313 CPP=
3315 if test -z "$CPP"; then
3316 if test "${ac_cv_prog_CPP+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319 # Double quotes because CPP needs to be expanded
3320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3322 ac_preproc_ok=false
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
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337 #ifdef __STDC__
3338 # include <limits.h>
3339 #else
3340 # include <assert.h>
3341 #endif
3342 Syntax error
3343 _ACEOF
3344 if { (ac_try="$ac_cpp conftest.$ac_ext"
3345 case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3351 ac_status=$?
3352 grep -v '^ *+' conftest.er1 >conftest.err
3353 rm -f conftest.er1
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
3359 }; then
3361 else
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 # Broken: fails on valid input.
3366 continue
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
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 #include <ac_nonexistent.h>
3380 _ACEOF
3381 if { (ac_try="$ac_cpp conftest.$ac_ext"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
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
3396 }; then
3397 # Broken: success on invalid input.
3398 continue
3399 else
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3403 # Passes both tests.
3404 ac_preproc_ok=:
3405 break
3408 rm -f conftest.err conftest.$ac_ext
3410 done
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
3414 break
3417 done
3418 ac_cv_prog_CPP=$CPP
3421 CPP=$ac_cv_prog_CPP
3422 else
3423 ac_cv_prog_CPP=$CPP
3425 { echo "$as_me:$LINENO: result: $CPP" >&5
3426 echo "${ECHO_T}$CPP" >&6; }
3427 ac_preproc_ok=false
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
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #ifdef __STDC__
3443 # include <limits.h>
3444 #else
3445 # include <assert.h>
3446 #endif
3447 Syntax error
3448 _ACEOF
3449 if { (ac_try="$ac_cpp conftest.$ac_ext"
3450 case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
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
3464 }; then
3466 else
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 # Broken: fails on valid input.
3471 continue
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
3479 /* confdefs.h. */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3484 #include <ac_nonexistent.h>
3485 _ACEOF
3486 if { (ac_try="$ac_cpp conftest.$ac_ext"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
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
3501 }; then
3502 # Broken: success on invalid input.
3503 continue
3504 else
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 # Passes both tests.
3509 ac_preproc_ok=:
3510 break
3513 rm -f conftest.err conftest.$ac_ext
3515 done
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
3520 else
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; }; }
3528 ac_ext=c
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
3541 withval=$with_x;
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.
3547 have_x=disabled
3548 else
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
3555 else
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
3560 cd conftest.dir
3561 cat >Imakefile <<'_ACEOF'
3562 incroot:
3563 @echo incroot='${INCROOT}'
3564 usrlibdir:
3565 @echo usrlibdir='${USRLIBDIR}'
3566 libdir:
3567 @echo libdir='${LIBDIR}'
3568 _ACEOF
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'\`"
3573 done
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
3580 done
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;;
3587 esac
3588 case $ac_im_usrlibdir in
3589 /usr/lib | /lib) ;;
3590 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3591 esac
3593 cd ..
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.
3599 ac_x_header_dirs='
3600 /usr/X11/include
3601 /usr/X11R6/include
3602 /usr/X11R5/include
3603 /usr/X11R4/include
3605 /usr/include/X11
3606 /usr/include/X11R6
3607 /usr/include/X11R5
3608 /usr/include/X11R4
3610 /usr/local/X11/include
3611 /usr/local/X11R6/include
3612 /usr/local/X11R5/include
3613 /usr/local/X11R4/include
3615 /usr/local/include/X11
3616 /usr/local/include/X11R6
3617 /usr/local/include/X11R5
3618 /usr/local/include/X11R4
3620 /usr/X386/include
3621 /usr/x386/include
3622 /usr/XFree86/include/X11
3624 /usr/include
3625 /usr/local/include
3626 /usr/unsupported/include
3627 /usr/athena/include
3628 /usr/local/x11r5/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
3638 /* confdefs.h. */
3639 _ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3643 #include <X11/Xlib.h>
3644 _ACEOF
3645 if { (ac_try="$ac_cpp conftest.$ac_ext"
3646 case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649 esac
3650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3652 ac_status=$?
3653 grep -v '^ *+' conftest.er1 >conftest.err
3654 rm -f conftest.er1
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
3660 }; then
3661 # We can compile using X headers with no special include directory.
3662 ac_x_includes=
3663 else
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
3670 break
3672 done
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.
3682 ac_save_LIBS=$LIBS
3683 LIBS="-lX11 $LIBS"
3684 cat >conftest.$ac_ext <<_ACEOF
3685 /* confdefs.h. */
3686 _ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3690 #include <X11/Xlib.h>
3692 main ()
3694 XrmInitialize ()
3696 return 0;
3698 _ACEOF
3699 rm -f conftest.$ac_objext conftest$ac_exeext
3700 if { (ac_try="$ac_link"
3701 case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_link") 2>conftest.er1
3707 ac_status=$?
3708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
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
3717 LIBS=$ac_save_LIBS
3718 # We can link X programs with no special library path.
3719 ac_x_libraries=
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3724 LIBS=$ac_save_LIBS
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
3731 break 2
3733 done
3734 done
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 #(
3742 no,* | *,no | *\'*)
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'"
3750 esac
3752 ;; #(
3753 *) have_x=yes;;
3754 esac
3755 eval "$ac_cv_have_x"
3756 fi # $with_x != no
3758 if test "$have_x" != yes; then
3759 { echo "$as_me:$LINENO: result: $have_x" >&5
3760 echo "${ECHO_T}$have_x" >&6; }
3761 no_x=yes
3762 else
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
3779 _ACEOF
3781 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3782 else
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
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3805 main ()
3809 return 0;
3811 _ACEOF
3812 rm -f conftest.$ac_objext conftest$ac_exeext
3813 if { (ac_try="$ac_link"
3814 case "(($ac_try" in
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3817 esac
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_link") 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
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"
3833 else
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
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3846 main ()
3850 return 0;
3852 _ACEOF
3853 rm -f conftest.$ac_objext conftest$ac_exeext
3854 if { (ac_try="$ac_link"
3855 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_link") 2>conftest.er1
3861 ac_status=$?
3862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
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"
3874 else
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
3889 LIBS=$ac_xsave_LIBS
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"
3898 else
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
3904 /* confdefs.h. */
3905 _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. */
3913 #ifdef __cplusplus
3914 extern "C"
3915 #endif
3916 char XOpenDisplay ();
3918 main ()
3920 return XOpenDisplay ();
3922 return 0;
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_link") 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
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
3944 else
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
3952 else
3953 ac_check_lib_save_LIBS=$LIBS
3954 LIBS="-ldnet $LIBS"
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _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. */
3965 #ifdef __cplusplus
3966 extern "C"
3967 #endif
3968 char dnet_ntoa ();
3970 main ()
3972 return dnet_ntoa ();
3974 return 0;
3976 _ACEOF
3977 rm -f conftest.$ac_objext conftest$ac_exeext
3978 if { (ac_try="$ac_link"
3979 case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982 esac
3983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_link") 2>conftest.er1
3985 ac_status=$?
3986 grep -v '^ *+' conftest.er1 >conftest.err
3987 rm -f conftest.er1
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
3996 else
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
4018 else
4019 ac_check_lib_save_LIBS=$LIBS
4020 LIBS="-ldnet_stub $LIBS"
4021 cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h. */
4023 _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. */
4031 #ifdef __cplusplus
4032 extern "C"
4033 #endif
4034 char dnet_ntoa ();
4036 main ()
4038 return dnet_ntoa ();
4040 return 0;
4042 _ACEOF
4043 rm -f conftest.$ac_objext conftest$ac_exeext
4044 if { (ac_try="$ac_link"
4045 case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_link") 2>conftest.er1
4051 ac_status=$?
4052 grep -v '^ *+' conftest.er1 >conftest.err
4053 rm -f conftest.er1
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
4062 else
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)
4089 # needs -lnsl.
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
4098 else
4099 cat >conftest.$ac_ext <<_ACEOF
4100 /* confdefs.h. */
4101 _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. */
4114 #ifdef __STDC__
4115 # include <limits.h>
4116 #else
4117 # include <assert.h>
4118 #endif
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. */
4125 #ifdef __cplusplus
4126 extern "C"
4127 #endif
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
4133 choke me
4134 #endif
4137 main ()
4139 return gethostbyname ();
4141 return 0;
4143 _ACEOF
4144 rm -f conftest.$ac_objext conftest$ac_exeext
4145 if { (ac_try="$ac_link"
4146 case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149 esac
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>conftest.er1
4152 ac_status=$?
4153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
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
4163 else
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
4181 else
4182 ac_check_lib_save_LIBS=$LIBS
4183 LIBS="-lnsl $LIBS"
4184 cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h. */
4186 _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. */
4194 #ifdef __cplusplus
4195 extern "C"
4196 #endif
4197 char gethostbyname ();
4199 main ()
4201 return gethostbyname ();
4203 return 0;
4205 _ACEOF
4206 rm -f conftest.$ac_objext conftest$ac_exeext
4207 if { (ac_try="$ac_link"
4208 case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_link") 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
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
4225 else
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
4247 else
4248 ac_check_lib_save_LIBS=$LIBS
4249 LIBS="-lbsd $LIBS"
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h. */
4252 _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. */
4260 #ifdef __cplusplus
4261 extern "C"
4262 #endif
4263 char gethostbyname ();
4265 main ()
4267 return gethostbyname ();
4269 return 0;
4271 _ACEOF
4272 rm -f conftest.$ac_objext conftest$ac_exeext
4273 if { (ac_try="$ac_link"
4274 case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277 esac
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_link") 2>conftest.er1
4280 ac_status=$?
4281 grep -v '^ *+' conftest.er1 >conftest.err
4282 rm -f conftest.er1
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
4291 else
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
4322 else
4323 cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h. */
4325 _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. */
4338 #ifdef __STDC__
4339 # include <limits.h>
4340 #else
4341 # include <assert.h>
4342 #endif
4344 #undef connect
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. */
4349 #ifdef __cplusplus
4350 extern "C"
4351 #endif
4352 char connect ();
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
4357 choke me
4358 #endif
4361 main ()
4363 return connect ();
4365 return 0;
4367 _ACEOF
4368 rm -f conftest.$ac_objext conftest$ac_exeext
4369 if { (ac_try="$ac_link"
4370 case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373 esac
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_link") 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
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
4387 else
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
4405 else
4406 ac_check_lib_save_LIBS=$LIBS
4407 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4408 cat >conftest.$ac_ext <<_ACEOF
4409 /* confdefs.h. */
4410 _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. */
4418 #ifdef __cplusplus
4419 extern "C"
4420 #endif
4421 char connect ();
4423 main ()
4425 return connect ();
4427 return 0;
4429 _ACEOF
4430 rm -f conftest.$ac_objext conftest$ac_exeext
4431 if { (ac_try="$ac_link"
4432 case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_link") 2>conftest.er1
4438 ac_status=$?
4439 grep -v '^ *+' conftest.er1 >conftest.err
4440 rm -f conftest.er1
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
4449 else
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
4473 else
4474 cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h. */
4476 _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. */
4489 #ifdef __STDC__
4490 # include <limits.h>
4491 #else
4492 # include <assert.h>
4493 #endif
4495 #undef remove
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. */
4500 #ifdef __cplusplus
4501 extern "C"
4502 #endif
4503 char remove ();
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
4508 choke me
4509 #endif
4512 main ()
4514 return remove ();
4516 return 0;
4518 _ACEOF
4519 rm -f conftest.$ac_objext conftest$ac_exeext
4520 if { (ac_try="$ac_link"
4521 case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_link") 2>conftest.er1
4527 ac_status=$?
4528 grep -v '^ *+' conftest.er1 >conftest.err
4529 rm -f conftest.er1
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
4538 else
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
4556 else
4557 ac_check_lib_save_LIBS=$LIBS
4558 LIBS="-lposix $LIBS"
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _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. */
4569 #ifdef __cplusplus
4570 extern "C"
4571 #endif
4572 char remove ();
4574 main ()
4576 return remove ();
4578 return 0;
4580 _ACEOF
4581 rm -f conftest.$ac_objext conftest$ac_exeext
4582 if { (ac_try="$ac_link"
4583 case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586 esac
4587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_link") 2>conftest.er1
4589 ac_status=$?
4590 grep -v '^ *+' conftest.er1 >conftest.err
4591 rm -f conftest.er1
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
4600 else
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
4624 else
4625 cat >conftest.$ac_ext <<_ACEOF
4626 /* confdefs.h. */
4627 _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. */
4640 #ifdef __STDC__
4641 # include <limits.h>
4642 #else
4643 # include <assert.h>
4644 #endif
4646 #undef shmat
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. */
4651 #ifdef __cplusplus
4652 extern "C"
4653 #endif
4654 char shmat ();
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
4659 choke me
4660 #endif
4663 main ()
4665 return shmat ();
4667 return 0;
4669 _ACEOF
4670 rm -f conftest.$ac_objext conftest$ac_exeext
4671 if { (ac_try="$ac_link"
4672 case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675 esac
4676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4677 (eval "$ac_link") 2>conftest.er1
4678 ac_status=$?
4679 grep -v '^ *+' conftest.er1 >conftest.err
4680 rm -f conftest.er1
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
4689 else
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4693 ac_cv_func_shmat=no
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
4707 else
4708 ac_check_lib_save_LIBS=$LIBS
4709 LIBS="-lipc $LIBS"
4710 cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h. */
4712 _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. */
4720 #ifdef __cplusplus
4721 extern "C"
4722 #endif
4723 char shmat ();
4725 main ()
4727 return shmat ();
4729 return 0;
4731 _ACEOF
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (ac_try="$ac_link"
4734 case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_link") 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
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
4751 else
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
4784 else
4785 ac_check_lib_save_LIBS=$LIBS
4786 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _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. */
4797 #ifdef __cplusplus
4798 extern "C"
4799 #endif
4800 char IceConnectionNumber ();
4802 main ()
4804 return IceConnectionNumber ();
4806 return 0;
4808 _ACEOF
4809 rm -f conftest.$ac_objext conftest$ac_exeext
4810 if { (ac_try="$ac_link"
4811 case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814 esac
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_link") 2>conftest.er1
4817 ac_status=$?
4818 grep -v '^ *+' conftest.er1 >conftest.err
4819 rm -f conftest.er1
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
4828 else
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
4851 with_x11=no
4852 else
4854 cat >>confdefs.h <<\_ACEOF
4855 #define USE_X11 1
4856 _ACEOF
4858 CFLAGS="$CFLAGS $X_CFLAGS"
4859 LDFLAGS="$LDFLAGS $X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
4860 with_x11=yes
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"
4869 else
4870 sdl_prefix=""
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"
4877 else
4878 sdl_exec_prefix=""
4881 # Check whether --enable-sdltest was given.
4882 if test "${enable_sdltest+set}" = set; then
4883 enableval=$enable_sdltest;
4884 else
4885 enable_sdltest=yes
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
4908 else
4909 case $SDL_CONFIG in
4910 [\\/]* | ?:[\\/]*)
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
4915 for as_dir in $PATH
4917 IFS=$as_save_IFS
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
4923 break 2
4925 done
4926 done
4927 IFS=$as_save_IFS
4929 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4931 esac
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; }
4937 else
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; }
4946 no_sdl=""
4947 if test "$SDL_CONFIG" = "no" ; then
4948 no_sdl=yes
4949 else
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"
4964 rm -f conf.sdltest
4965 if test "$cross_compiling" = yes; then
4966 echo $ac_n "cross compiling; assumed OK... $ac_c"
4967 else
4968 cat >conftest.$ac_ext <<_ACEOF
4969 /* confdefs.h. */
4970 _ACEOF
4971 cat confdefs.h >>conftest.$ac_ext
4972 cat >>conftest.$ac_ext <<_ACEOF
4973 /* end confdefs.h. */
4975 #include <stdio.h>
4976 #include <stdlib.h>
4977 #include <string.h>
4978 #include "SDL.h"
4980 char*
4981 my_strdup (char *str)
4983 char *new_str;
4985 if (str)
4987 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
4988 strcpy (new_str, str);
4990 else
4991 new_str = NULL;
4993 return new_str;
4996 int main (int argc, char *argv[])
4998 int major, minor, micro;
4999 char *tmp_version;
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, &micro) != 3) {
5009 printf("%s, bad version string\n", "$min_sdl_version");
5010 exit(1);
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)))
5017 return 0;
5019 else
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");
5027 return 1;
5032 _ACEOF
5033 rm -f conftest$ac_exeext
5034 if { (ac_try="$ac_link"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_link") 2>&5
5041 ac_status=$?
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;;
5047 esac
5048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5049 (eval "$ac_try") 2>&5
5050 ac_status=$?
5051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); }; }; then
5054 else
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
5059 ( exit $ac_status )
5060 no_sdl=yes
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; }
5074 else
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."
5082 else
5083 if test -f conf.sdltest ; then
5085 else
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
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5096 #include <stdio.h>
5097 #include "SDL.h"
5100 main ()
5102 return 0;
5104 return 0;
5106 _ACEOF
5107 rm -f conftest.$ac_objext conftest$ac_exeext
5108 if { (ac_try="$ac_link"
5109 case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112 esac
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_link") 2>conftest.er1
5115 ac_status=$?
5116 grep -v '^ *+' conftest.er1 >conftest.err
5117 rm -f conftest.er1
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"
5131 echo "***"
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"
5134 else
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"
5150 SDL_CFLAGS=""
5151 SDL_LIBS=""
5156 rm -f conf.sdltest
5159 if test "$SDL_CONFIG" = "no"; then
5160 with_sdl=no
5161 else
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
5166 else
5167 ac_check_lib_save_LIBS=$LIBS
5168 LIBS="-lSDL_image $LIBS"
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _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. */
5179 #ifdef __cplusplus
5180 extern "C"
5181 #endif
5182 char IMG_LoadPNG_RW ();
5184 main ()
5186 return IMG_LoadPNG_RW ();
5188 return 0;
5190 _ACEOF
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (ac_try="$ac_link"
5193 case "(($ac_try" in
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5196 esac
5197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5198 (eval "$ac_link") 2>conftest.er1
5199 ac_status=$?
5200 grep -v '^ *+' conftest.er1 >conftest.err
5201 rm -f conftest.er1
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
5210 else
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
5224 with_sdl=yes
5225 else
5226 with_sdl=no
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
5233 else
5234 ac_check_lib_save_LIBS=$LIBS
5235 LIBS="-lSDL_ttf $LIBS"
5236 cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h. */
5238 _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. */
5246 #ifdef __cplusplus
5247 extern "C"
5248 #endif
5249 char TTF_Init ();
5251 main ()
5253 return TTF_Init ();
5255 return 0;
5257 _ACEOF
5258 rm -f conftest.$ac_objext conftest$ac_exeext
5259 if { (ac_try="$ac_link"
5260 case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_link") 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
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
5277 else
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
5291 with_sdlx=yes
5292 else
5293 with_sdl=no
5297 if test "$with_sdl" = "yes"; then
5299 cat >>confdefs.h <<\_ACEOF
5300 #define USE_SDL 1
5301 _ACEOF
5303 CFLAGS="${CFLAGS} ${SDL_CFLAGS}"
5304 LDFLAGS="${LDFLAGS} ${SDL_LIBS} -lSDL_image -lSDL_ttf"
5310 if test "$enable_gtk" = "yes"; then
5312 succeeded=no
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
5321 else
5322 case $PKG_CONFIG in
5323 [\\/]* | ?:[\\/]*)
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
5328 for as_dir in $PATH
5330 IFS=$as_save_IFS
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
5336 break 2
5338 done
5339 done
5340 IFS=$as_save_IFS
5342 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5344 esac
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; }
5350 else
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."
5363 else
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; }
5372 succeeded=yes
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; }
5385 else
5386 { echo "$as_me:$LINENO: result: no" >&5
5387 echo "${ECHO_T}no" >&6; }
5388 GTK_CFLAGS=""
5389 GTK_LIBS=""
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"`
5398 else
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
5405 with_gtk=yes
5406 else
5407 with_gtk=no
5412 succeeded=no
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
5421 else
5422 case $PKG_CONFIG in
5423 [\\/]* | ?:[\\/]*)
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
5428 for as_dir in $PATH
5430 IFS=$as_save_IFS
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
5436 break 2
5438 done
5439 done
5440 IFS=$as_save_IFS
5442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5444 esac
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; }
5450 else
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."
5463 else
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; }
5472 succeeded=yes
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; }
5485 else
5486 { echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6; }
5488 GLIB_CFLAGS=""
5489 GLIB_LIBS=""
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"`
5498 else
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
5505 with_gtkx=yes
5506 else
5507 with_gtk=no
5512 if "x$SETEGID" != "x"; then
5513 enable_gtk=no
5514 with_gtk=no
5517 if test "$with_gtk" = "yes"; then
5519 cat >>confdefs.h <<\_ACEOF
5520 #define USE_GTK 1
5521 _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
5534 else
5535 ac_check_lib_save_LIBS=$LIBS
5536 LIBS="-lSDL_mixer $LIBS"
5537 cat >conftest.$ac_ext <<_ACEOF
5538 /* confdefs.h. */
5539 _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. */
5547 #ifdef __cplusplus
5548 extern "C"
5549 #endif
5550 char Mix_OpenAudio ();
5552 main ()
5554 return Mix_OpenAudio ();
5556 return 0;
5558 _ACEOF
5559 rm -f conftest.$ac_objext conftest$ac_exeext
5560 if { (ac_try="$ac_link"
5561 case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564 esac
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_link") 2>conftest.er1
5567 ac_status=$?
5568 grep -v '^ *+' conftest.er1 >conftest.err
5569 rm -f conftest.er1
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
5578 else
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
5592 found_sdl_mixer=yes
5593 else
5594 found_sdl_mixer=no
5598 if test "$found_sdl_mixer" = "yes"; then
5600 cat >>confdefs.h <<\_ACEOF
5601 #define SOUND_SDL 1
5602 _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
5616 else
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
5622 else
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/xpg4/bin
5628 IFS=$as_save_IFS
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
5637 *GNU*)
5638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5640 ac_count=0
5641 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5642 while :
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
5658 done
5659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5660 esac
5663 $ac_path_GREP_found && break 3
5664 done
5665 done
5667 done
5668 IFS=$as_save_IFS
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; }; }
5680 else
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
5695 else
5696 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5697 then ac_cv_path_EGREP="$GREP -E"
5698 else
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
5704 else
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/xpg4/bin
5710 IFS=$as_save_IFS
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
5719 *GNU*)
5720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5722 ac_count=0
5723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5724 while :
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
5740 done
5741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5742 esac
5745 $ac_path_EGREP_found && break 3
5746 done
5747 done
5749 done
5750 IFS=$as_save_IFS
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; }; }
5762 else
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
5778 else
5779 cat >conftest.$ac_ext <<_ACEOF
5780 /* confdefs.h. */
5781 _ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 #include <stdlib.h>
5786 #include <stdarg.h>
5787 #include <string.h>
5788 #include <float.h>
5791 main ()
5795 return 0;
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
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
5816 else
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
5828 /* confdefs.h. */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h. */
5833 #include <string.h>
5835 _ACEOF
5836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5837 $EGREP "memchr" >/dev/null 2>&1; then
5839 else
5840 ac_cv_header_stdc=no
5842 rm -f conftest*
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
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #include <stdlib.h>
5856 _ACEOF
5857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5858 $EGREP "free" >/dev/null 2>&1; then
5860 else
5861 ac_cv_header_stdc=no
5863 rm -f conftest*
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
5871 else
5872 cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h. */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 #include <ctype.h>
5879 #include <stdlib.h>
5880 #if ((' ' & 0x0FF) == 0x020)
5881 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5882 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5883 #else
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))
5889 #endif
5891 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5893 main ()
5895 int i;
5896 for (i = 0; i < 256; i++)
5897 if (XOR (islower (i), ISLOWER (i))
5898 || toupper (i) != TOUPPER (i))
5899 return 2;
5900 return 0;
5902 _ACEOF
5903 rm -f conftest$ac_exeext
5904 if { (ac_try="$ac_link"
5905 case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_link") 2>&5
5911 ac_status=$?
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;;
5917 esac
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5920 ac_status=$?
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5924 else
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
5929 ( exit $ac_status )
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
5944 _ACEOF
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
5966 else
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _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>
5976 _ACEOF
5977 rm -f conftest.$ac_objext
5978 if { (ac_try="$ac_compile"
5979 case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982 esac
5983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
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"
5995 else
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
6010 _ACEOF
6014 done
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; }
6032 else
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
6037 /* confdefs.h. */
6038 _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>
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6047 case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_compile") 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
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
6063 else
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
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <$ac_header>
6084 _ACEOF
6085 if { (ac_try="$ac_cpp conftest.$ac_ext"
6086 case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089 esac
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6092 ac_status=$?
6093 grep -v '^ *+' conftest.er1 >conftest.err
6094 rm -f conftest.er1
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
6100 }; then
6101 ac_header_preproc=yes
6102 else
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
6115 yes:no: )
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
6122 no: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;}
6135 ( cat <<\_ASBOX
6136 ## ------------------------------- ##
6137 ## Report this to bugs@rephial.org ##
6138 ## ------------------------------- ##
6139 _ASBOX
6140 ) | sed "s/^/$as_me: WARNING: /" >&2
6142 esac
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
6147 else
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
6158 _ACEOF
6162 done
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
6168 else
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h. */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6176 #include <stdbool.h>
6177 #ifndef bool
6178 "error: bool is not defined"
6179 #endif
6180 #ifndef false
6181 "error: false is not defined"
6182 #endif
6183 #if false
6184 "error: false is not 0"
6185 #endif
6186 #ifndef true
6187 "error: true is not defined"
6188 #endif
6189 #if true != 1
6190 "error: true is not 1"
6191 #endif
6192 #ifndef __bool_true_false_are_defined
6193 "error: __bool_true_false_are_defined is not defined"
6194 #endif
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];
6202 bool e = &s;
6203 char f[(_Bool) 0.0 == false ? 1 : -1];
6204 char g[true];
6205 char h[sizeof (_Bool)];
6206 char i[sizeof s.t];
6207 enum { j = false, k = true, l = false * true, m = true * 256 };
6208 _Bool n[m];
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
6226 future. */
6227 char digs[] = "0123456789";
6228 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6229 # endif
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
6234 _Bool q = true;
6235 _Bool *pq = &q;
6238 main ()
6241 *pq |= q;
6242 *pq |= ! q;
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);
6248 return 0;
6250 _ACEOF
6251 rm -f conftest.$ac_objext
6252 if { (ac_try="$ac_compile"
6253 case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256 esac
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_compile") 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
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
6269 else
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
6284 else
6285 cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h. */
6287 _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_;
6294 main ()
6296 if ((ac__type_new_ *) 0)
6297 return 0;
6298 if (sizeof (ac__type_new_))
6299 return 0;
6301 return 0;
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (ac_try="$ac_compile"
6306 case "(($ac_try" in
6307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_compile") 2>conftest.er1
6312 ac_status=$?
6313 grep -v '^ *+' conftest.er1 >conftest.err
6314 rm -f conftest.er1
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
6322 else
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_cv_type__Bool=no
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
6337 _ACEOF
6342 if test $ac_cv_header_stdbool_h = yes; then
6344 cat >>confdefs.h <<\_ACEOF
6345 #define HAVE_STDBOOL_H 1
6346 _ACEOF
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
6354 else
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6363 main ()
6365 /* FIXME: Include the comments suggested by Paul. */
6366 #ifndef __cplusplus
6367 /* Ultrix mips cc rejects this. */
6368 typedef int charset[2];
6369 const charset cs;
6370 /* SunOS 4.1.1 cc rejects this. */
6371 char const *const *pcpcc;
6372 char **ppc;
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
6379 expression */
6380 const char *g = "string";
6381 pcpcc = &g + (g ? g-g : 0);
6382 /* HPUX 7.0 cc rejects these. */
6383 ++pcpcc;
6384 ppc = (char**) pcpcc;
6385 pcpcc = (char const *const *) ppc;
6386 { /* SCO 3.2v4 cc rejects this. */
6387 char *t;
6388 char const *s = 0 ? (char *) 0 : (char const *) 0;
6390 *t++ = 0;
6391 if (s) return 0;
6393 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6394 int x[] = {25, 17};
6395 const int *foo = &x[0];
6396 ++foo;
6398 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6399 typedef const int *iptr;
6400 iptr p = 0;
6401 ++p;
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 */
6409 const int foo = 10;
6410 if (!foo) return 0;
6412 return !cs[0] && !zero.x;
6413 #endif
6416 return 0;
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (ac_try="$ac_compile"
6421 case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_compile") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
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
6436 ac_cv_c_const=yes
6437 else
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6441 ac_cv_c_const=no
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
6451 #define const
6452 _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
6460 else
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <sys/types.h>
6468 #include <signal.h>
6471 main ()
6473 return *(signal (0, 0)) (0) == 1;
6475 return 0;
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6480 case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
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
6496 else
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
6510 _ACEOF
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
6524 else
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _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. */
6540 #ifdef __STDC__
6541 # include <limits.h>
6542 #else
6543 # include <assert.h>
6544 #endif
6546 #undef $ac_func
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. */
6551 #ifdef __cplusplus
6552 extern "C"
6553 #endif
6554 char $ac_func ();
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
6559 choke me
6560 #endif
6563 main ()
6565 return $ac_func ();
6567 return 0;
6569 _ACEOF
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (ac_try="$ac_link"
6572 case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575 esac
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_link") 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
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"
6589 else
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
6605 _ACEOF
6608 done
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
6627 # following values.
6629 _ACEOF
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
6639 case $ac_val in #(
6640 *${as_nl}*)
6641 case $ac_var in #(
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;} ;;
6644 esac
6645 case $ac_var in #(
6646 _ | IFS | as_nl) ;; #(
6647 *) $as_unset $ac_var ;;
6648 esac ;;
6649 esac
6650 done
6652 (set) 2>&1 |
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 \).
6657 sed -n \
6658 "s/'/'\\\\''/g;
6659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6660 ;; #(
6662 # `set' quotes correctly as required by POSIX, so do not add quotes.
6663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6665 esac |
6666 sort
6668 sed '
6669 /^ac_cv_env_/b end
6670 t clear
6671 :clear
6672 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6673 t end
6674 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6675 :end' >>confcache
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
6682 else
6683 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6684 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6687 rm -f confcache
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
6695 ac_libobjs=
6696 ac_ltlibobjs=
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'
6705 done
6706 LIBOBJS=$ac_libobjs
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
6718 #! $SHELL
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.
6724 debug=false
6725 ac_cs_recheck=false
6726 ac_cs_silent=false
6727 SHELL=\${CONFIG_SHELL-$SHELL}
6728 _ACEOF
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
6738 emulate sh
6739 NULLCMD=:
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
6744 else
6745 case `(set -o) 2>/dev/null` in
6746 *posix*) set -o posix ;;
6747 esac
6754 # PATH needs CR
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
6766 chmod +x conf$$.sh
6767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6768 PATH_SEPARATOR=';'
6769 else
6770 PATH_SEPARATOR=:
6772 rm -f conf$$.sh
6775 # Support unset when possible.
6776 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6777 as_unset=unset
6778 else
6779 as_unset=false
6783 # IFS
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.)
6788 as_nl='
6790 IFS=" "" $as_nl"
6792 # Find who we are. Look in the path if we contain no directory separator.
6793 case $0 in
6794 *[\\/]* ) as_myself=$0 ;;
6795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6801 done
6802 IFS=$as_save_IFS
6805 esac
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
6809 as_myself=$0
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
6819 done
6820 PS1='$ '
6821 PS2='> '
6822 PS4='+ '
6824 # NLS nuisances.
6825 for as_var in \
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
6832 else
6833 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6835 done
6837 # Required to use basename.
6838 if expr a : '\(a\)' >/dev/null 2>&1 &&
6839 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6840 as_expr=expr
6841 else
6842 as_expr=false
6845 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6846 as_basename=basename
6847 else
6848 as_basename=false
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 ||
6857 echo X/"$0" |
6858 sed '/^.*\/\([^/][^/]*\)\/*$/{
6859 s//\1/
6862 /^X\/\(\/\/\)$/{
6863 s//\1/
6866 /^X\/\(\/\).*/{
6867 s//\1/
6870 s/.*/./; q'`
6872 # CDPATH.
6873 $as_unset CDPATH
6877 as_lineno_1=$LINENO
6878 as_lineno_2=$LINENO
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
6888 # case at line end.
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. :-)
6892 sed -n '
6894 /[$]LINENO/=
6895 ' <$as_myself |
6896 sed '
6897 s/[$]LINENO.*/&-/
6898 t lineno
6900 :lineno
6902 :loop
6903 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6904 t loop
6905 s/-\n.*//
6906 ' >$as_me.lineno &&
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).
6914 . "./$as_me.lineno"
6915 # Exit status is that of the last command.
6916 exit
6920 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6921 as_dirname=dirname
6922 else
6923 as_dirname=false
6926 ECHO_C= ECHO_N= ECHO_T=
6927 case `echo -n x` in
6928 -n*)
6929 case `echo 'x\c'` in
6930 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6931 *) ECHO_C='\c';;
6932 esac;;
6934 ECHO_N='-n';;
6935 esac
6937 if expr a : '\(a\)' >/dev/null 2>&1 &&
6938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6939 as_expr=expr
6940 else
6941 as_expr=false
6944 rm -f conf$$ conf$$.exe conf$$.file
6945 if test -d conf$$.dir; then
6946 rm -f conf$$.dir/conf$$.file
6947 else
6948 rm -f conf$$.dir
6949 mkdir conf$$.dir
6951 echo >conf$$.file
6952 if ln -s conf$$.file conf$$ 2>/dev/null; then
6953 as_ln_s='ln -s'
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 ||
6959 as_ln_s='cp -p'
6960 elif ln conf$$.file conf$$ 2>/dev/null; then
6961 as_ln_s=ln
6962 else
6963 as_ln_s='cp -p'
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
6969 as_mkdir_p=:
6970 else
6971 test -d ./-p && rmdir ./-p
6972 as_mkdir_p=false
6975 if test -x / >/dev/null 2>&1; then
6976 as_test_x='test -x'
6977 else
6978 if ls -dL / >/dev/null 2>&1; then
6979 as_ls_L_option=L
6980 else
6981 as_ls_L_option=
6983 as_test_x='
6984 eval sh -c '\''
6985 if test -d "$1"; then
6986 test -d "$1/.";
6987 else
6988 case $1 in
6989 -*)set "./$1";;
6990 esac;
6991 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6992 ???[sx]*):;;*)false;;esac;fi
6993 '\'' sh
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'"
7005 exec 6>&1
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.
7010 ac_log="
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
7018 $ $0 $@
7020 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7023 _ACEOF
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"
7030 _ACEOF
7032 cat >>$CONFIG_STATUS <<\_ACEOF
7033 ac_cs_usage="\
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:
7050 $config_files
7052 Configuration headers:
7053 $config_headers
7055 Report bugs to <bug-autoconf@gnu.org>."
7057 _ACEOF
7058 cat >>$CONFIG_STATUS <<_ACEOF
7059 ac_cs_version="\\
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."
7068 ac_pwd='$ac_pwd'
7069 srcdir='$srcdir'
7070 INSTALL='$INSTALL'
7071 _ACEOF
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.
7076 ac_need_defaults=:
7077 while test $# != 0
7079 case $1 in
7080 --*=*)
7081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7082 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7083 ac_shift=:
7086 ac_option=$1
7087 ac_optarg=$2
7088 ac_shift=shift
7090 esac
7092 case $ac_option in
7093 # Handling of the options.
7094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7095 ac_cs_recheck=: ;;
7096 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7097 echo "$ac_cs_version"; exit ;;
7098 --debug | --debu | --deb | --de | --d | -d )
7099 debug=: ;;
7100 --file | --fil | --fi | --f )
7101 $ac_shift
7102 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7103 ac_need_defaults=false;;
7104 --header | --heade | --head | --hea )
7105 $ac_shift
7106 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7107 ac_need_defaults=false;;
7108 --he | --h)
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)
7117 ac_cs_silent=: ;;
7119 # This is an error.
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 ;;
7127 esac
7128 shift
7129 done
7131 ac_configure_extra_args=
7133 if $ac_cs_silent; then
7134 exec 6>/dev/null
7135 ac_configure_extra_args="$ac_configure_extra_args --silent"
7138 _ACEOF
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
7142 CONFIG_SHELL=$SHELL
7143 export CONFIG_SHELL
7144 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7147 _ACEOF
7148 cat >>$CONFIG_STATUS <<\_ACEOF
7149 exec 5>>config.log
7151 echo
7152 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7153 ## Running $as_me. ##
7154 _ASBOX
7155 echo "$ac_log"
7156 } >&5
7158 _ACEOF
7159 cat >>$CONFIG_STATUS <<_ACEOF
7160 _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; }; };;
7174 esac
7175 done
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'.
7193 $debug ||
7195 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"
7206 } ||
7208 tmp=./conf$$-$RANDOM
7209 (umask 077 && mkdir "$tmp")
7210 } ||
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
7224 _ACEOF
7228 ac_delim='%!_!# '
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
7260 DEFS!$DEFS$ac_delim
7261 ECHO_C!$ECHO_C$ac_delim
7262 ECHO_N!$ECHO_N$ac_delim
7263 ECHO_T!$ECHO_T$ac_delim
7264 LIBS!$LIBS$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
7270 CC!$CC$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
7280 LN_S!$LN_S$ac_delim
7281 SET_MAKE!$SET_MAKE$ac_delim
7282 RM!$RM$ac_delim
7283 MV!$MV$ac_delim
7284 CP!$CP$ac_delim
7285 SETEGID!$SETEGID$ac_delim
7286 DATA_PATH!$DATA_PATH$ac_delim
7287 XMKMF!$XMKMF$ac_delim
7288 CPP!$CPP$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
7301 GREP!$GREP$ac_delim
7302 EGREP!$EGREP$ac_delim
7303 LIBOBJS!$LIBOBJS$ac_delim
7304 LTLIBOBJS!$LTLIBOBJS$ac_delim
7305 _ACEOF
7307 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
7308 break
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; }; }
7313 else
7314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7316 done
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
7327 _ACEOF
7328 sed '
7329 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
7330 s/^/s,@/; s/!/@,|#_!!_#|/
7333 s/'"$ac_delim"'$/,g/; t
7334 s/$/\\/; p
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
7339 :end
7340 s/|#_!!_#|//g
7341 CEOF$ac_eof
7342 _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[ ]*=/{
7351 s/:*\$(srcdir):*/:/
7352 s/:*\${srcdir}:*/:/
7353 s/:*@srcdir@:*/:/
7354 s/^\([^=]*=[ ]*\):*/\1/
7355 s/:*$//
7356 s/^[^=]*=[ ]*$//
7360 cat >>$CONFIG_STATUS <<\_ACEOF
7361 fi # test -n "$CONFIG_FILES"
7364 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
7366 case $ac_tag in
7367 :[FHLC]) ac_mode=$ac_tag; continue;;
7368 esac
7369 case $ac_mode$ac_tag in
7370 :[FHL]*:*);;
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;;
7376 esac
7377 ac_save_IFS=$IFS
7378 IFS=:
7379 set x $ac_tag
7380 IFS=$ac_save_IFS
7381 shift
7382 ac_file=$1
7383 shift
7385 case $ac_mode in
7386 :L) ac_source=$1;;
7387 :[FH])
7388 ac_file_inputs=
7389 for ac_f
7391 case $ac_f 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 `:'.
7396 test -f "$ac_f" ||
7397 case $ac_f in
7398 [\\/$]*) false;;
7399 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7400 esac ||
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; }; };;
7404 esac
7405 ac_file_inputs="$ac_file_inputs $ac_f"
7406 done
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;}
7419 case $ac_tag in
7420 *:-:* | *:-) cat >"$tmp/stdin";;
7421 esac
7423 esac
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 ||
7430 echo X"$ac_file" |
7431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7432 s//\1/
7435 /^X\(\/\/\)[^/].*/{
7436 s//\1/
7439 /^X\(\/\/\)$/{
7440 s//\1/
7443 /^X\(\/\).*/{
7444 s//\1/
7447 s/.*/./; q'`
7448 { as_dir="$ac_dir"
7449 case $as_dir in #(
7450 -*) as_dir=./$as_dir;;
7451 esac
7452 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7453 as_dirs=
7454 while :; do
7455 case $as_dir in #(
7456 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
7457 *) as_qdir=$as_dir;;
7458 esac
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 ||
7465 echo X"$as_dir" |
7466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7467 s//\1/
7470 /^X\(\/\/\)[^/].*/{
7471 s//\1/
7474 /^X\(\/\/\)$/{
7475 s//\1/
7478 /^X\(\/\).*/{
7479 s//\1/
7482 s/.*/./; q'`
7483 test -d "$as_dir" && break
7484 done
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; }; }; }
7489 ac_builddir=.
7491 case "$ac_dir" in
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/ ;;
7500 esac ;;
7501 esac
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
7507 case $srcdir in
7508 .) # We are building in place.
7509 ac_srcdir=.
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 ;;
7516 *) # Relative name.
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 ;;
7520 esac
7521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7524 case $ac_mode in
7527 # CONFIG_FILE
7530 case $INSTALL in
7531 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7532 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7533 esac
7534 _ACEOF
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/ {
7545 /@datadir@/p
7546 /@docdir@/p
7547 /@infodir@/p
7548 /@localedir@/p
7549 /@mandir@/p
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;}
7555 _ACEOF
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' ;;
7564 esac
7565 _ACEOF
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
7571 sed "$ac_vpsub
7572 $extrasub
7573 _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;}
7598 rm -f "$tmp/stdin"
7599 case $ac_file in
7600 -) cat "$tmp/out"; rm -f "$tmp/out";;
7601 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
7602 esac
7606 # CONFIG_HEADER
7608 _ACEOF
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'
7627 ac_dC=' '
7628 ac_dD=' ,'
7630 uniq confdefs.h |
7631 sed -n '
7632 t rset
7633 :rset
7634 s/^[ ]*#[ ]*define[ ][ ]*//
7635 t ok
7638 s/[\\&,]/\\&/g
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.)
7648 echo 's/ $//
7649 s,^[ #]*u.*,/* & */,' >>conftest.defines
7651 # Break up conftest.defines:
7652 ac_max_sed_lines=50
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"
7657 # et cetera.
7658 ac_in='$ac_file_inputs'
7659 ac_out='"$tmp/out1"'
7660 ac_nxt='"$tmp/out2"'
7662 while :
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
7671 :def
7672 _ACEOF
7673 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
7674 echo 'CEOF
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
7681 done
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;}
7692 else
7693 rm -f $ac_file
7694 mv "$tmp/config.h" $ac_file
7696 else
7697 echo "/* $configure_input */"
7698 cat "$ac_result"
7700 rm -f "$tmp/out12"
7704 esac
7706 done # for ac_tag
7709 { (exit 0); exit 0; }
7710 _ACEOF
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
7724 ac_cs_success=:
7725 ac_config_status_args=
7726 test "$silent" = yes &&
7727 ac_config_status_args="$ac_config_status_args --quiet"
7728 exec 5>/dev/null
7729 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7730 exec 5>>config.log
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; }
7738 echo
7739 echo "Configuration:"
7740 echo
7741 echo " Install path: ${prefix}"
7742 echo " lib/ path: ${game_datadir}"
7743 echo
7744 echo "-- Frontends --"
7745 if test "$enable_curses" = "yes"; then
7746 if test "$with_curses" = "no"; then
7747 echo "- Curses No; missing libraries"
7748 else
7749 echo "- Curses Yes"
7751 else
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"
7757 else
7758 echo "- GTK 2.x Yes"
7760 else
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"
7766 else
7767 echo "- X11 Yes"
7769 else
7770 echo "- X11 Disabled"
7772 if test "$enable_sdl" = "yes"; then
7773 if test "$with_sdl" = "no"; then
7774 echo "- SDL No; missing libraries"
7775 else
7776 echo "- SDL Yes"
7778 else
7779 echo "- SDL Disabled"