2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for nazghul 0.7.1.
5 # Report bugs to <nazghul-devel@lists.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
576 exec 7<&0 </dev/null 6>&1
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
586 ac_default_prefix=/usr/local
588 ac_config_libobj_dir=.
594 SHELL=${CONFIG_SHELL-/bin/sh}
596 # Identity of this package.
597 PACKAGE_NAME='nazghul'
598 PACKAGE_TARNAME='nazghul'
599 PACKAGE_VERSION='0.7.1'
600 PACKAGE_STRING='nazghul 0.7.1'
601 PACKAGE_BUGREPORT='nazghul-devel@lists.sourceforge.net'
603 ac_unique_file="src/nazghul.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
617 # ifdef HAVE_STDLIB_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
640 ac_subst_vars='am__EXEEXT_FALSE
674 MAINTAINER_MODE_FALSE
684 INSTALL_STRIP_PROGRAM
738 program_transform_name
750 enable_option_checking
751 enable_maintainer_mode
752 enable_dependency_tracking
758 ac_precious_vars='build_alias
773 # Initialize some variables set by options.
775 ac_init_version=false
776 ac_unrecognized_opts=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
787 program_transform_name=s,x,x,
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir='${exec_prefix}/bin'
802 sbindir='${exec_prefix}/sbin'
803 libexecdir='${exec_prefix}/libexec'
804 datarootdir='${prefix}/share'
805 datadir='${datarootdir}'
806 sysconfdir='${prefix}/etc'
807 sharedstatedir='${prefix}/com'
808 localstatedir='${prefix}/var'
809 includedir='${prefix}/include'
810 oldincludedir='/usr/include'
811 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812 infodir='${datarootdir}/info'
817 libdir='${exec_prefix}/lib'
818 localedir='${datarootdir}/locale'
819 mandir='${datarootdir}/man'
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
833 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
861 cache_file=config.cache ;;
863 -datadir | --datadir | --datadi | --datad)
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
880 { (exit 1); exit 1; }; }
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
890 eval enable_$ac_useropt=no ;;
892 -docdir | --docdir | --docdi | --doc | --do)
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
907 { (exit 1); exit 1; }; }
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
917 eval enable_$ac_useropt=\$ac_optarg ;;
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
932 -help | --help | --hel | --he | -h)
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 htmldir=$ac_optarg ;;
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
962 -libdir | --libdir | --libdi | --libd)
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
974 -localedir | --localedir | --localedi | --localed | --locale)
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 # Obsolete; use --without-fp.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1053 -psdir | --psdir | --psdi | --psd | --ps)
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 sbindir=$ac_optarg ;;
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 sharedstatedir=$ac_optarg ;;
1079 -site | --site | --sit)
1081 -site=* | --site=* | --sit=*)
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1108 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1122 eval with_$ac_useropt=\$ac_optarg ;;
1124 -without-* | --without-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1129 { (exit 1); exit 1; }; }
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1139 eval with_$ac_useropt=no ;;
1142 # Obsolete; use --with-x.
1145 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1146 | --x-incl | --x-inc | --x-in | --x-i)
1147 ac_prev=x_includes ;;
1148 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1149 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1150 x_includes=$ac_optarg ;;
1152 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1153 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1154 ac_prev=x_libraries ;;
1155 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1156 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1157 x_libraries=$ac_optarg ;;
1159 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1160 Try \`$0 --help' for more information." >&2
1161 { (exit 1); exit 1; }; }
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1168 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1169 { (exit 1); exit 1; }; }
1170 eval $ac_envvar=\$ac_optarg
1171 export $ac_envvar ;;
1174 # FIXME: should be removed in autoconf 3.0.
1175 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1176 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1178 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1184 if test -n "$ac_prev"; then
1185 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1186 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1187 { (exit 1); exit 1; }; }
1190 if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in
1193 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1194 { (exit 1); exit 1; }; } ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1212 # Be sure to have absolute directory names.
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures nazghul 0.7.1 to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/nazghul]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --program-prefix=PREFIX prepend PREFIX to installed program names
1382 --program-suffix=SUFFIX append SUFFIX to installed program names
1383 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 --target=TARGET configure for building compilers for TARGET [HOST]
1392 if test -n "$ac_init_help"; then
1393 case $ac_init_help in
1394 short | recursive ) echo "Configuration of nazghul 0.7.1:";;
1399 --disable-option-checking ignore unrecognized --enable/--with options
1400 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1401 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1402 --enable-maintainer-mode enable make rules and dependencies not useful
1403 (and sometimes confusing) to the casual installer
1404 --disable-dependency-tracking speeds up one-time build
1405 --enable-dependency-tracking do not reject slow dependency extractors
1406 --disable-sdltest Do not try to compile and run a test SDL program
1407 --enable-dynamic-link Create dynamically linked binaries (default)
1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1412 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1413 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1415 Some influential environment variables:
1416 CC C compiler command
1417 CFLAGS C compiler flags
1418 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1419 nonstandard directory <lib dir>
1420 LIBS libraries to pass to the linker, e.g. -l<library>
1421 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1422 you have headers in a nonstandard directory <include dir>
1423 CXX C++ compiler command
1424 CXXFLAGS C++ compiler flags
1426 CXXCPP C++ preprocessor
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1431 Report bugs to <nazghul-devel@lists.sourceforge.net>.
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1461 .) # We are building in place.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1494 nazghul configure 0.7.1
1495 generated by GNU Autoconf 2.63
1497 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1498 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1504 cat >config.log <<_ACEOF
1505 This file contains any messages produced by compilers while
1506 running configure, to aid debugging if configure makes a mistake.
1508 It was created by nazghul $as_me 0.7.1, which was
1509 generated by GNU Autoconf 2.63. Invocation command line was
1521 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1522 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1523 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1524 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1525 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1527 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1528 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1530 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1531 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1532 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1533 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1534 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1535 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1536 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 test -z "$as_dir" && as_dir=.
1545 $as_echo "PATH: $as_dir"
1561 # Keep a trace of the command line.
1562 # Strip out --no-create and --no-recursion so they do not pile up.
1563 # Strip out --silent because we don't want to record it for future runs.
1564 # Also quote any args containing shell meta-characters.
1565 # Make two passes to allow for proper duplicate-argument suppression.
1569 ac_must_keep_next=false
1575 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1577 | -silent | --silent | --silen | --sile | --sil)
1580 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1583 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1585 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1586 if test $ac_must_keep_next = true; then
1587 ac_must_keep_next=false # Got value, back to normal.
1590 *=* | --config-cache | -C | -disable-* | --disable-* \
1591 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1592 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1593 | -with-* | --with-* | -without-* | --without-* | --x)
1594 case "$ac_configure_args0 " in
1595 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1598 -* ) ac_must_keep_next=true ;;
1601 ac_configure_args="$ac_configure_args '$ac_arg'"
1606 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1607 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1609 # When interrupted or exit'd, cleanup temporary files, and complete
1610 # config.log. We remove comments because anyway the quotes in there
1611 # would cause problems or look ugly.
1612 # WARNING: Use '\'' to represent an apostrophe within the trap.
1613 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1614 trap 'exit_status=$?
1615 # Save into config.log some information that might help in debugging.
1620 ## ---------------- ##
1621 ## Cache variables. ##
1622 ## ---------------- ##
1625 # The following way of writing the cache mishandles newlines in values,
1627 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1628 eval ac_val=\$$ac_var
1632 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1633 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1636 _ | IFS | as_nl) ;; #(
1637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1638 *) $as_unset $ac_var ;;
1643 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1644 *${as_nl}ac_space=\ *)
1646 "s/'\''/'\''\\\\'\'''\''/g;
1647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1658 ## ----------------- ##
1659 ## Output variables. ##
1660 ## ----------------- ##
1663 for ac_var in $ac_subst_vars
1665 eval ac_val=\$$ac_var
1667 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669 $as_echo "$ac_var='\''$ac_val'\''"
1673 if test -n "$ac_subst_files"; then
1675 ## ------------------- ##
1676 ## File substitutions. ##
1677 ## ------------------- ##
1680 for ac_var in $ac_subst_files
1682 eval ac_val=\$$ac_var
1684 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686 $as_echo "$ac_var='\''$ac_val'\''"
1691 if test -s confdefs.h; then
1701 test "$ac_signal" != 0 &&
1702 $as_echo "$as_me: caught signal $ac_signal"
1703 $as_echo "$as_me: exit $exit_status"
1705 rm -f core *.core core.conftest.* &&
1706 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1709 for ac_signal in 1 2 13 15; do
1710 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1715 rm -f -r conftest* confdefs.h
1717 # Predefined preprocessor variables.
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_NAME "$PACKAGE_NAME"
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE_STRING "$PACKAGE_STRING"
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1744 # Let the site file select an alternate cache file if it wants to.
1745 # Prefer an explicitly selected file to automatically selected ones.
1748 if test -n "$CONFIG_SITE"; then
1749 ac_site_file1=$CONFIG_SITE
1750 elif test "x$prefix" != xNONE; then
1751 ac_site_file1=$prefix/share/config.site
1752 ac_site_file2=$prefix/etc/config.site
1754 ac_site_file1=$ac_default_prefix/share/config.site
1755 ac_site_file2=$ac_default_prefix/etc/config.site
1757 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1759 test "x$ac_site_file" = xNONE && continue
1760 if test -r "$ac_site_file"; then
1761 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1762 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1763 sed 's/^/| /' "$ac_site_file" >&5
1768 if test -r "$cache_file"; then
1769 # Some versions of bash will fail to source /dev/null (special
1770 # files actually), so we avoid doing that.
1771 if test -f "$cache_file"; then
1772 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1773 $as_echo "$as_me: loading cache $cache_file" >&6;}
1775 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1776 *) . "./$cache_file";;
1780 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1781 $as_echo "$as_me: creating cache $cache_file" >&6;}
1785 # Check that the precious variables saved in the cache have kept the same
1787 ac_cache_corrupted=false
1788 for ac_var in $ac_precious_vars; do
1789 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1790 eval ac_new_set=\$ac_env_${ac_var}_set
1791 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1792 eval ac_new_val=\$ac_env_${ac_var}_value
1793 case $ac_old_set,$ac_new_set in
1795 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1796 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1797 ac_cache_corrupted=: ;;
1799 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1800 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1801 ac_cache_corrupted=: ;;
1804 if test "x$ac_old_val" != "x$ac_new_val"; then
1805 # differences in whitespace do not lead to failure.
1806 ac_old_val_w=`echo x $ac_old_val`
1807 ac_new_val_w=`echo x $ac_new_val`
1808 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1809 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1810 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1811 ac_cache_corrupted=:
1813 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1814 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1815 eval $ac_var=\$ac_old_val
1817 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1818 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1819 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1820 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1823 # Pass precious variables to config.status.
1824 if test "$ac_new_set" = set; then
1826 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1827 *) ac_arg=$ac_var=$ac_new_val ;;
1829 case " $ac_configure_args " in
1830 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1831 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1835 if $ac_cache_corrupted; then
1836 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1838 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1839 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1840 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1841 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1842 { (exit 1); exit 1; }; }
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877 ac_config_headers="$ac_config_headers config.h"
1881 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1882 if test -f "$ac_dir/install-sh"; then
1884 ac_install_sh="$ac_aux_dir/install-sh -c"
1886 elif test -f "$ac_dir/install.sh"; then
1888 ac_install_sh="$ac_aux_dir/install.sh -c"
1890 elif test -f "$ac_dir/shtool"; then
1892 ac_install_sh="$ac_aux_dir/shtool install -c"
1896 if test -z "$ac_aux_dir"; then
1897 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1898 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1899 { (exit 1); exit 1; }; }
1902 # These three variables are undocumented and unsupported,
1903 # and are intended to be withdrawn in a future Autoconf release.
1904 # They can cause serious problems if a builder's source tree is in a directory
1905 # whose full name contains unusual characters.
1906 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1907 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1908 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1911 # Make sure we can run config.sub.
1912 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1913 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1914 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1915 { (exit 1); exit 1; }; }
1917 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1918 $as_echo_n "checking build system type... " >&6; }
1919 if test "${ac_cv_build+set}" = set; then
1920 $as_echo_n "(cached) " >&6
1922 ac_build_alias=$build_alias
1923 test "x$ac_build_alias" = x &&
1924 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1925 test "x$ac_build_alias" = x &&
1926 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1927 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1928 { (exit 1); exit 1; }; }
1929 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1930 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1931 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1932 { (exit 1); exit 1; }; }
1935 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1936 $as_echo "$ac_cv_build" >&6; }
1937 case $ac_cv_build in
1939 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1940 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1941 { (exit 1); exit 1; }; };;
1944 ac_save_IFS=$IFS; IFS='-'
1950 # Remember, the first character of IFS is used to create $*,
1951 # except with old shells:
1954 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1957 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1958 $as_echo_n "checking host system type... " >&6; }
1959 if test "${ac_cv_host+set}" = set; then
1960 $as_echo_n "(cached) " >&6
1962 if test "x$host_alias" = x; then
1963 ac_cv_host=$ac_cv_build
1965 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1966 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1967 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1968 { (exit 1); exit 1; }; }
1972 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1973 $as_echo "$ac_cv_host" >&6; }
1976 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1977 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1978 { (exit 1); exit 1; }; };;
1981 ac_save_IFS=$IFS; IFS='-'
1987 # Remember, the first character of IFS is used to create $*,
1988 # except with old shells:
1991 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1995 { $as_echo "$as_me:$LINENO: checking target system type" >&5
1996 $as_echo_n "checking target system type... " >&6; }
1997 if test "${ac_cv_target+set}" = set; then
1998 $as_echo_n "(cached) " >&6
2000 if test "x$target_alias" = x; then
2001 ac_cv_target=$ac_cv_host
2003 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2004 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2005 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2006 { (exit 1); exit 1; }; }
2010 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2011 $as_echo "$ac_cv_target" >&6; }
2012 case $ac_cv_target in
2014 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2015 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2016 { (exit 1); exit 1; }; };;
2018 target=$ac_cv_target
2019 ac_save_IFS=$IFS; IFS='-'
2025 # Remember, the first character of IFS is used to create $*,
2026 # except with old shells:
2029 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2032 # The aliases save the names the user supplied, while $host etc.
2033 # will get canonicalized.
2034 test -n "$target_alias" &&
2035 test "$program_prefix$program_suffix$program_transform_name" = \
2037 program_prefix=${target_alias}-
2039 am__api_version='1.11'
2041 # Find a good install program. We prefer a C program (faster),
2042 # so one script is as good as another. But avoid the broken or
2043 # incompatible versions:
2044 # SysV /etc/install, /usr/sbin/install
2045 # SunOS /usr/etc/install
2046 # IRIX /sbin/install
2048 # AmigaOS /C/install, which installs bootblocks on floppy discs
2049 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2050 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2051 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2052 # OS/2's system install, which has a completely different semantic
2053 # ./install, which can be erroneously created by make from ./install.sh.
2054 # Reject install programs that cannot install multiple files.
2055 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2056 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2057 if test -z "$INSTALL"; then
2058 if test "${ac_cv_path_install+set}" = set; then
2059 $as_echo_n "(cached) " >&6
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 # Account for people who put trailing slashes in PATH elements.
2068 ./ | .// | /cC/* | \
2069 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2070 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2073 # OSF1 and SCO ODT 3.0 have their own names for install.
2074 # Don't use installbsd from OSF since it installs stuff as root
2076 for ac_prog in ginstall scoinst install; do
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2079 if test $ac_prog = install &&
2080 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2081 # AIX install. It has an incompatible calling convention.
2083 elif test $ac_prog = install &&
2084 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2085 # program-specific install script used by HP pwplus--don't use.
2088 rm -rf conftest.one conftest.two conftest.dir
2089 echo one > conftest.one
2090 echo two > conftest.two
2092 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2093 test -s conftest.one && test -s conftest.two &&
2094 test -s conftest.dir/conftest.one &&
2095 test -s conftest.dir/conftest.two
2097 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2110 rm -rf conftest.one conftest.two conftest.dir
2113 if test "${ac_cv_path_install+set}" = set; then
2114 INSTALL=$ac_cv_path_install
2116 # As a last resort, use the slow shell script. Don't cache a
2117 # value for INSTALL within a source directory, because that will
2118 # break other packages using the cache if that directory is
2119 # removed, or if the value is a relative name.
2120 INSTALL=$ac_install_sh
2123 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2124 $as_echo "$INSTALL" >&6; }
2126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2127 # It thinks the first close brace ends the variable substitution.
2128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2134 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2135 $as_echo_n "checking whether build environment is sane... " >&6; }
2138 echo timestamp > conftest.file
2139 # Reject unsafe characters in $srcdir or the absolute working directory
2140 # name. Accept space and tab only in the latter.
2144 *[\\\"\#\$\&\'\`$am_lf]*)
2145 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2146 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2147 { (exit 1); exit 1; }; };;
2150 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2151 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2152 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2153 { (exit 1); exit 1; }; };;
2156 # Do `set' in a subshell so we don't clobber the current shell's
2157 # arguments. Must try -L first in case configure is actually a
2158 # symlink; some systems play weird games with the mod time of symlinks
2159 # (eg FreeBSD returns the mod time of the symlink's containing
2162 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2163 if test "$*" = "X"; then
2165 set X `ls -t "$srcdir/configure" conftest.file`
2168 if test "$*" != "X $srcdir/configure conftest.file" \
2169 && test "$*" != "X conftest.file $srcdir/configure"; then
2171 # If neither matched, then we have a broken ls. This can happen
2172 # if, for instance, CONFIG_SHELL is bash and it inherits a
2173 # broken ls alias from the environment. This has actually
2174 # happened. Such a system could not be considered "sane".
2175 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2176 alias in your environment" >&5
2177 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2178 alias in your environment" >&2;}
2179 { (exit 1); exit 1; }; }
2182 test "$2" = conftest.file
2188 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2189 Check your system clock" >&5
2190 $as_echo "$as_me: error: newly created file is older than distributed files!
2191 Check your system clock" >&2;}
2192 { (exit 1); exit 1; }; }
2194 { $as_echo "$as_me:$LINENO: result: yes" >&5
2195 $as_echo "yes" >&6; }
2196 test "$program_prefix" != NONE &&
2197 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2198 # Use a double $ so make ignores it.
2199 test "$program_suffix" != NONE &&
2200 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2201 # Double any \ or $.
2202 # By default was `s,x,x', remove it if useless.
2203 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2204 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2206 # expand $ac_aux_dir to an absolute path
2207 am_aux_dir=`cd $ac_aux_dir && pwd`
2209 if test x"${MISSING+set}" != xset; then
2212 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2214 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2217 # Use eval to expand $SHELL
2218 if eval "$MISSING --run true"; then
2219 am_missing_run="$MISSING --run "
2222 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2223 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2226 if test x"${install_sh}" != xset; then
2229 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2231 install_sh="\${SHELL} $am_aux_dir/install-sh"
2235 # Installed binaries are usually stripped using `strip' when the user
2236 # run `make install-strip'. However `strip' might not be the right
2237 # tool to use in cross-compilation environments, therefore Automake
2238 # will honor the `STRIP' environment variable to overrule this program.
2239 if test "$cross_compiling" != no; then
2240 if test -n "$ac_tool_prefix"; then
2241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2242 set dummy ${ac_tool_prefix}strip; ac_word=$2
2243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 $as_echo_n "checking for $ac_word... " >&6; }
2245 if test "${ac_cv_prog_STRIP+set}" = set; then
2246 $as_echo_n "(cached) " >&6
2248 if test -n "$STRIP"; then
2249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2258 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 STRIP=$ac_cv_prog_STRIP
2269 if test -n "$STRIP"; then
2270 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2271 $as_echo "$STRIP" >&6; }
2273 { $as_echo "$as_me:$LINENO: result: no" >&5
2274 $as_echo "no" >&6; }
2279 if test -z "$ac_cv_prog_STRIP"; then
2281 # Extract the first word of "strip", so it can be a program name with args.
2282 set dummy strip; ac_word=$2
2283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 $as_echo_n "checking for $ac_word... " >&6; }
2285 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2286 $as_echo_n "(cached) " >&6
2288 if test -n "$ac_ct_STRIP"; then
2289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_prog_ac_ct_STRIP="strip"
2299 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2309 if test -n "$ac_ct_STRIP"; then
2310 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2311 $as_echo "$ac_ct_STRIP" >&6; }
2313 { $as_echo "$as_me:$LINENO: result: no" >&5
2314 $as_echo "no" >&6; }
2317 if test "x$ac_ct_STRIP" = x; then
2320 case $cross_compiling:$ac_tool_warned in
2322 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2324 ac_tool_warned=yes ;;
2329 STRIP="$ac_cv_prog_STRIP"
2333 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2335 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2336 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2337 if test -z "$MKDIR_P"; then
2338 if test "${ac_cv_path_mkdir+set}" = set; then
2339 $as_echo_n "(cached) " >&6
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2345 test -z "$as_dir" && as_dir=.
2346 for ac_prog in mkdir gmkdir; do
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2349 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2350 'mkdir (GNU coreutils) '* | \
2351 'mkdir (coreutils) '* | \
2352 'mkdir (fileutils) '4.1*)
2353 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2363 if test "${ac_cv_path_mkdir+set}" = set; then
2364 MKDIR_P="$ac_cv_path_mkdir -p"
2366 # As a last resort, use the slow shell script. Don't cache a
2367 # value for MKDIR_P within a source directory, because that will
2368 # break other packages using the cache if that directory is
2369 # removed, or if the value is a relative name.
2370 test -d ./--version && rmdir ./--version
2371 MKDIR_P="$ac_install_sh -d"
2374 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2375 $as_echo "$MKDIR_P" >&6; }
2379 [\\/$]* | ?:[\\/]*) ;;
2380 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2383 for ac_prog in gawk mawk nawk awk
2385 # Extract the first word of "$ac_prog", so it can be a program name with args.
2386 set dummy $ac_prog; ac_word=$2
2387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2388 $as_echo_n "checking for $ac_word... " >&6; }
2389 if test "${ac_cv_prog_AWK+set}" = set; then
2390 $as_echo_n "(cached) " >&6
2392 if test -n "$AWK"; then
2393 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 ac_cv_prog_AWK="$ac_prog"
2403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 if test -n "$AWK"; then
2414 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2415 $as_echo "$AWK" >&6; }
2417 { $as_echo "$as_me:$LINENO: result: no" >&5
2418 $as_echo "no" >&6; }
2422 test -n "$AWK" && break
2425 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2426 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2428 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2429 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2430 $as_echo_n "(cached) " >&6
2432 cat >conftest.make <<\_ACEOF
2435 @echo '@@@%%%=$(MAKE)=@@@%%%'
2437 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2438 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2440 eval ac_cv_prog_make_${ac_make}_set=yes;;
2442 eval ac_cv_prog_make_${ac_make}_set=no;;
2446 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2447 { $as_echo "$as_me:$LINENO: result: yes" >&5
2448 $as_echo "yes" >&6; }
2451 { $as_echo "$as_me:$LINENO: result: no" >&5
2452 $as_echo "no" >&6; }
2453 SET_MAKE="MAKE=${MAKE-make}"
2456 rm -rf .tst 2>/dev/null
2457 mkdir .tst 2>/dev/null
2458 if test -d .tst; then
2463 rmdir .tst 2>/dev/null
2465 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2466 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2467 # is not polluted with repeated "-I."
2468 am__isrc=' -I$(srcdir)'
2469 # test to see if srcdir already configured
2470 if test -f $srcdir/config.status; then
2471 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2472 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2473 { (exit 1); exit 1; }; }
2477 # test whether we have cygpath
2478 if test -z "$CYGPATH_W"; then
2479 if (cygpath --version) >/dev/null 2>/dev/null; then
2480 CYGPATH_W='cygpath -w'
2487 # Define the identity of the package.
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE "$PACKAGE"
2497 cat >>confdefs.h <<_ACEOF
2498 #define VERSION "$VERSION"
2501 # Some tools Automake needs.
2503 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2506 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2509 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2512 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2515 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2517 # We need awk for the "check" target. The system "awk" is bad on
2519 # Always define AMTAR for backward compatibility.
2521 AMTAR=${AMTAR-"${am_missing_run}tar"}
2523 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2530 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2531 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2532 # Check whether --enable-maintainer-mode was given.
2533 if test "${enable_maintainer_mode+set}" = set; then
2534 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2536 USE_MAINTAINER_MODE=no
2539 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2540 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2541 if test $USE_MAINTAINER_MODE = yes; then
2542 MAINTAINER_MODE_TRUE=
2543 MAINTAINER_MODE_FALSE='#'
2545 MAINTAINER_MODE_TRUE='#'
2546 MAINTAINER_MODE_FALSE=
2549 MAINT=$MAINTAINER_MODE_TRUE
2556 ac_cpp='$CPP $CPPFLAGS'
2557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2562 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if test "${ac_cv_prog_CC+set}" = set; then
2566 $as_echo_n "(cached) " >&6
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 if test -n "$CC"; then
2590 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2591 $as_echo "$CC" >&6; }
2593 { $as_echo "$as_me:$LINENO: result: no" >&5
2594 $as_echo "no" >&6; }
2599 if test -z "$ac_cv_prog_CC"; then
2601 # Extract the first word of "gcc", so it can be a program name with args.
2602 set dummy gcc; ac_word=$2
2603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 $as_echo_n "checking for $ac_word... " >&6; }
2605 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2606 $as_echo_n "(cached) " >&6
2608 if test -n "$ac_ct_CC"; then
2609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_ac_ct_CC="gcc"
2619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629 if test -n "$ac_ct_CC"; then
2630 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2631 $as_echo "$ac_ct_CC" >&6; }
2633 { $as_echo "$as_me:$LINENO: result: no" >&5
2634 $as_echo "no" >&6; }
2637 if test "x$ac_ct_CC" = x; then
2640 case $cross_compiling:$ac_tool_warned in
2642 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2644 ac_tool_warned=yes ;;
2652 if test -z "$CC"; then
2653 if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2655 set dummy ${ac_tool_prefix}cc; ac_word=$2
2656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_CC="${ac_tool_prefix}cc"
2672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 if test -n "$CC"; then
2683 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2684 $as_echo "$CC" >&6; }
2686 { $as_echo "$as_me:$LINENO: result: no" >&5
2687 $as_echo "no" >&6; }
2693 if test -z "$CC"; then
2694 # Extract the first word of "cc", so it can be a program name with args.
2695 set dummy cc; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2713 ac_prog_rejected=yes
2717 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 if test $ac_prog_rejected = yes; then
2725 # We found a bogon in the path, so make sure we never use it.
2726 set dummy $ac_cv_prog_CC
2728 if test $# != 0; then
2729 # We chose a different compiler from the bogus one.
2730 # However, it has the same basename, so the bogon will be chosen
2731 # first if we set CC to just the basename; use the full file name.
2733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2739 if test -n "$CC"; then
2740 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2741 $as_echo "$CC" >&6; }
2743 { $as_echo "$as_me:$LINENO: result: no" >&5
2744 $as_echo "no" >&6; }
2749 if test -z "$CC"; then
2750 if test -n "$ac_tool_prefix"; then
2751 for ac_prog in cl.exe
2753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if test "${ac_cv_prog_CC+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781 if test -n "$CC"; then
2782 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2783 $as_echo "$CC" >&6; }
2785 { $as_echo "$as_me:$LINENO: result: no" >&5
2786 $as_echo "no" >&6; }
2790 test -n "$CC" && break
2793 if test -z "$CC"; then
2795 for ac_prog in cl.exe
2797 # Extract the first word of "$ac_prog", so it can be a program name with args.
2798 set dummy $ac_prog; ac_word=$2
2799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 $as_echo_n "checking for $ac_word... " >&6; }
2801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2802 $as_echo_n "(cached) " >&6
2804 if test -n "$ac_ct_CC"; then
2805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_ac_ct_CC="$ac_prog"
2815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825 if test -n "$ac_ct_CC"; then
2826 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2827 $as_echo "$ac_ct_CC" >&6; }
2829 { $as_echo "$as_me:$LINENO: result: no" >&5
2830 $as_echo "no" >&6; }
2834 test -n "$ac_ct_CC" && break
2837 if test "x$ac_ct_CC" = x; then
2840 case $cross_compiling:$ac_tool_warned in
2842 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2844 ac_tool_warned=yes ;;
2853 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2855 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&5
2857 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }; }
2861 # Provide some information about the compiler.
2862 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2865 { (ac_try="$ac_compiler --version >&5"
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871 $as_echo "$ac_try_echo") >&5
2872 (eval "$ac_compiler --version >&5") 2>&5
2874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876 { (ac_try="$ac_compiler -v >&5"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2882 $as_echo "$ac_try_echo") >&5
2883 (eval "$ac_compiler -v >&5") 2>&5
2885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2887 { (ac_try="$ac_compiler -V >&5"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2893 $as_echo "$ac_try_echo") >&5
2894 (eval "$ac_compiler -V >&5") 2>&5
2896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2899 cat >conftest.$ac_ext <<_ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2914 ac_clean_files_save=$ac_clean_files
2915 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2916 # Try to create an executable without -o first, disregard a.out.
2917 # It will help us diagnose broken compilers, and finding out an intuition
2919 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2920 $as_echo_n "checking for C compiler default output file name... " >&6; }
2921 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2923 # The possible output files:
2924 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2927 for ac_file in $ac_files
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2936 if { (ac_try="$ac_link_default"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2942 $as_echo "$ac_try_echo") >&5
2943 (eval "$ac_link_default") 2>&5
2945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2948 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2950 # so that the user can short-circuit this test for compilers unknown to
2952 for ac_file in $ac_files ''
2954 test -f "$ac_file" || continue
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2959 # We found the default executable, but exeext='' is most
2963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967 # We set ac_cv_exeext here because the later test for it is not
2968 # safe: cross compilers may not add the suffix if given an `-o'
2969 # argument, so we may need to know it at that point already.
2970 # Even if this section looks crufty: it has the advantage of
2977 test "$ac_cv_exeext" = no && ac_cv_exeext=
2983 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2984 $as_echo "$ac_file" >&6; }
2985 if test -z "$ac_file"; then
2986 $as_echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2989 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2992 See \`config.log' for more details." >&5
2993 $as_echo "$as_me: error: C compiler cannot create executables
2994 See \`config.log' for more details." >&2;}
2995 { (exit 77); exit 77; }; }; }
2998 ac_exeext=$ac_cv_exeext
3000 # Check that the compiler produces executables we can run. If not, either
3001 # the compiler is broken, or we cross compile.
3002 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3003 $as_echo_n "checking whether the C compiler works... " >&6; }
3004 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3005 # If not cross compiling, check that we can run a simple program.
3006 if test "$cross_compiling" != yes; then
3007 if { ac_try='./$ac_file'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3013 $as_echo "$ac_try_echo") >&5
3014 (eval "$ac_try") 2>&5
3016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; }; then
3020 if test "$cross_compiling" = maybe; then
3023 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3026 If you meant to cross compile, use \`--host'.
3027 See \`config.log' for more details." >&5
3028 $as_echo "$as_me: error: cannot run C compiled programs.
3029 If you meant to cross compile, use \`--host'.
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }; }
3035 { $as_echo "$as_me:$LINENO: result: yes" >&5
3036 $as_echo "yes" >&6; }
3038 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3039 ac_clean_files=$ac_clean_files_save
3040 # Check that the compiler produces executables we can run. If not, either
3041 # the compiler is broken, or we cross compile.
3042 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3043 $as_echo_n "checking whether we are cross compiling... " >&6; }
3044 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3045 $as_echo "$cross_compiling" >&6; }
3047 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3048 $as_echo_n "checking for suffix of executables... " >&6; }
3049 if { (ac_try="$ac_link"
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3055 $as_echo "$ac_try_echo") >&5
3056 (eval "$ac_link") 2>&5
3058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; then
3060 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3061 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3062 # work properly (i.e., refer to `conftest.exe'), while it won't with
3064 for ac_file in conftest.exe conftest conftest.*; do
3065 test -f "$ac_file" || continue
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3077 See \`config.log' for more details." >&5
3078 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3079 See \`config.log' for more details." >&2;}
3080 { (exit 1); exit 1; }; }; }
3083 rm -f conftest$ac_cv_exeext
3084 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3085 $as_echo "$ac_cv_exeext" >&6; }
3087 rm -f conftest.$ac_ext
3088 EXEEXT=$ac_cv_exeext
3090 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3091 $as_echo_n "checking for suffix of object files... " >&6; }
3092 if test "${ac_cv_objext+set}" = set; then
3093 $as_echo_n "(cached) " >&6
3095 cat >conftest.$ac_ext <<_ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h. */
3110 rm -f conftest.o conftest.obj
3111 if { (ac_try="$ac_compile"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3117 $as_echo "$ac_try_echo") >&5
3118 (eval "$ac_compile") 2>&5
3120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121 (exit $ac_status); }; then
3122 for ac_file in conftest.o conftest.obj conftest.*; do
3123 test -f "$ac_file" || continue;
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3131 $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details." >&5
3138 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3139 See \`config.log' for more details." >&2;}
3140 { (exit 1); exit 1; }; }; }
3143 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3145 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3146 $as_echo "$ac_cv_objext" >&6; }
3147 OBJEXT=$ac_cv_objext
3149 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3150 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3152 $as_echo_n "(cached) " >&6
3154 cat >conftest.$ac_ext <<_ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3179 $as_echo "$ac_try_echo") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } && {
3187 test -z "$ac_c_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
3192 $as_echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3202 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3204 if test $ac_compiler_gnu = yes; then
3209 ac_test_CFLAGS=${CFLAGS+set}
3210 ac_save_CFLAGS=$CFLAGS
3211 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3213 if test "${ac_cv_prog_cc_g+set}" = set; then
3214 $as_echo_n "(cached) " >&6
3216 ac_save_c_werror_flag=$ac_c_werror_flag
3217 ac_c_werror_flag=yes
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3235 rm -f conftest.$ac_objext
3236 if { (ac_try="$ac_compile"
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3242 $as_echo "$ac_try_echo") >&5
3243 (eval "$ac_compile") 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } && {
3250 test -z "$ac_c_werror_flag" ||
3251 test ! -s conftest.err
3252 } && test -s conftest.$ac_objext; then
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3281 $as_echo "$ac_try_echo") >&5
3282 (eval "$ac_compile") 2>conftest.er1
3284 grep -v '^ *+' conftest.er1 >conftest.err
3286 cat conftest.err >&5
3287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && {
3289 test -z "$ac_c_werror_flag" ||
3290 test ! -s conftest.err
3291 } && test -s conftest.$ac_objext; then
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 ac_c_werror_flag=$ac_save_c_werror_flag
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3314 rm -f conftest.$ac_objext
3315 if { (ac_try="$ac_compile"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3321 $as_echo "$ac_try_echo") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3334 $as_echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_c_werror_flag=$ac_save_c_werror_flag
3349 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3350 $as_echo "$ac_cv_prog_cc_g" >&6; }
3351 if test "$ac_test_CFLAGS" = set; then
3352 CFLAGS=$ac_save_CFLAGS
3353 elif test $ac_cv_prog_cc_g = yes; then
3354 if test "$GCC" = yes; then
3360 if test "$GCC" = yes; then
3366 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3367 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3368 if test "${ac_cv_prog_cc_c89+set}" = set; then
3369 $as_echo_n "(cached) " >&6
3371 ac_cv_prog_cc_c89=no
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3381 #include <sys/types.h>
3382 #include <sys/stat.h>
3383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3384 struct buf { int x; };
3385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3386 static char *e (p, i)
3392 static char *f (char * (*g) (char **, int), char **p, ...)
3397 s = g (p, va_arg (v,int));
3402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3403 function prototypes and stuff, but not '\xHH' hex character constants.
3404 These don't provoke an error unfortunately, instead are silently treated
3405 as 'x'. The following induces an error, until -std is added to get
3406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3407 array size at least. It's necessary to write '\x00'==0 to get something
3408 that's true only with -std. */
3409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3412 inside strings and character constants. */
3414 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3416 int test (int i, double x);
3417 struct s1 {int (*f) (int a);};
3418 struct s2 {int (*f) (double a);};
3419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3425 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3430 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3431 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3433 CC="$ac_save_CC $ac_arg"
3434 rm -f conftest.$ac_objext
3435 if { (ac_try="$ac_compile"
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3441 $as_echo "$ac_try_echo") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3444 grep -v '^ *+' conftest.er1 >conftest.err
3446 cat conftest.err >&5
3447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && {
3449 test -z "$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 } && test -s conftest.$ac_objext; then
3452 ac_cv_prog_cc_c89=$ac_arg
3454 $as_echo "$as_me: failed program was:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3460 rm -f core conftest.err conftest.$ac_objext
3461 test "x$ac_cv_prog_cc_c89" != "xno" && break
3463 rm -f conftest.$ac_ext
3468 case "x$ac_cv_prog_cc_c89" in
3470 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3471 $as_echo "none needed" >&6; } ;;
3473 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3474 $as_echo "unsupported" >&6; } ;;
3476 CC="$CC $ac_cv_prog_cc_c89"
3477 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3478 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3487 DEPDIR="${am__leading_dot}deps"
3489 ac_config_commands="$ac_config_commands depfiles"
3492 am_make=${MAKE-make}
3493 cat > confinc << 'END'
3495 @echo this is the am__doit target
3498 # If we don't find an include directive, just comment out the code.
3499 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3500 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3504 # First try GNU make style include.
3505 echo "include confinc" > confmf
3506 # Ignore all kinds of additional output from `make'.
3507 case `$am_make -s -f confmf 2> /dev/null` in #(
3508 *the\ am__doit\ target*)
3514 # Now try BSD make style include.
3515 if test "$am__include" = "#"; then
3516 echo '.include "confinc"' > confmf
3517 case `$am_make -s -f confmf 2> /dev/null` in #(
3518 *the\ am__doit\ target*)
3519 am__include=.include
3527 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3528 $as_echo "$_am_result" >&6; }
3529 rm -f confinc confmf
3531 # Check whether --enable-dependency-tracking was given.
3532 if test "${enable_dependency_tracking+set}" = set; then
3533 enableval=$enable_dependency_tracking;
3536 if test "x$enable_dependency_tracking" != xno; then
3537 am_depcomp="$ac_aux_dir/depcomp"
3540 if test "x$enable_dependency_tracking" != xno; then
3550 depcc="$CC" am_compiler_list=
3552 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3553 $as_echo_n "checking dependency style of $depcc... " >&6; }
3554 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3555 $as_echo_n "(cached) " >&6
3557 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3558 # We make a subdir and do the tests there. Otherwise we can end up
3559 # making bogus files that we don't know about and never remove. For
3560 # instance it was reported that on HP-UX the gcc test will end up
3561 # making a dummy file named `D' -- because `-MD' means `put the output
3564 # Copy depcomp to subdir because otherwise we won't find it if we're
3565 # using a relative directory.
3566 cp "$am_depcomp" conftest.dir
3568 # We will build objects and dependencies in a subdirectory because
3569 # it helps to detect inapplicable dependency modes. For instance
3570 # both Tru64's cc and ICC support -MD to output dependencies as a
3571 # side effect of compilation, but ICC will put the dependencies in
3572 # the current directory while Tru64 will put them in the object
3576 am_cv_CC_dependencies_compiler_type=none
3577 if test "$am_compiler_list" = ""; then
3578 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3581 case " $depcc " in #(
3582 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3585 for depmode in $am_compiler_list; do
3586 # Setup a source with many dependencies, because some compilers
3587 # like to wrap large dependency lists on column 80 (with \), and
3588 # we should not choose a depcomp mode which is confused by this.
3590 # We need to recreate these files for each test, as the compiler may
3591 # overwrite some of them when testing with obscure command lines.
3592 # This happens at least with the AIX C compiler.
3594 for i in 1 2 3 4 5 6; do
3595 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3596 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3597 # Solaris 8's {/usr,}/bin/sh.
3598 touch sub/conftst$i.h
3600 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3602 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3603 # mode. It turns out that the SunPro C++ compiler does not properly
3604 # handle `-M -o', and we need to detect this. Also, some Intel
3605 # versions had trouble with output in subdirs
3606 am__obj=sub/conftest.${OBJEXT-o}
3607 am__minus_obj="-o $am__obj"
3610 # This depmode causes a compiler race in universal mode.
3611 test "$am__universal" = false || continue
3614 # after this tag, mechanisms are not by side-effect, so they'll
3615 # only be used when explicitly requested
3616 if test "x$enable_dependency_tracking" = xyes; then
3622 msvisualcpp | msvcmsys)
3623 # This compiler won't grok `-c -o', but also, the minuso test has
3624 # not run yet. These depmodes are late enough in the game, and
3625 # so weak that their functioning should not be impacted.
3626 am__obj=conftest.${OBJEXT-o}
3631 if depmode=$depmode \
3632 source=sub/conftest.c object=$am__obj \
3633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3634 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3635 >/dev/null 2>conftest.err &&
3636 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3637 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3638 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3639 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3640 # icc doesn't choke on unknown options, it will just issue warnings
3641 # or remarks (even with -Werror). So we grep stderr for any message
3642 # that says an option was ignored or not supported.
3643 # When given -MP, icc 7.0 and 7.1 complain thusly:
3644 # icc: Command line warning: ignoring option '-M'; no argument required
3645 # The diagnosis changed in icc 8.0:
3646 # icc: Command line remark: option '-MP' not supported
3647 if (grep 'ignoring option' conftest.err ||
3648 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3649 am_cv_CC_dependencies_compiler_type=$depmode
3658 am_cv_CC_dependencies_compiler_type=none
3662 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3663 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3664 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3667 test "x$enable_dependency_tracking" != xno \
3668 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3670 am__fastdepCC_FALSE='#'
3672 am__fastdepCC_TRUE='#'
3673 am__fastdepCC_FALSE=
3679 ac_cpp='$CXXCPP $CPPFLAGS'
3680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3683 if test -z "$CXX"; then
3684 if test -n "$CCC"; then
3687 if test -n "$ac_tool_prefix"; then
3688 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_CXX+set}" = set; then
3695 $as_echo_n "(cached) " >&6
3697 if test -n "$CXX"; then
3698 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 if test -n "$CXX"; then
3719 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3720 $as_echo "$CXX" >&6; }
3722 { $as_echo "$as_me:$LINENO: result: no" >&5
3723 $as_echo "no" >&6; }
3727 test -n "$CXX" && break
3730 if test -z "$CXX"; then
3732 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3739 $as_echo_n "(cached) " >&6
3741 if test -n "$ac_ct_CXX"; then
3742 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_ac_ct_CXX="$ac_prog"
3752 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3762 if test -n "$ac_ct_CXX"; then
3763 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3764 $as_echo "$ac_ct_CXX" >&6; }
3766 { $as_echo "$as_me:$LINENO: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$ac_ct_CXX" && break
3774 if test "x$ac_ct_CXX" = x; then
3777 case $cross_compiling:$ac_tool_warned in
3779 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned=yes ;;
3789 # Provide some information about the compiler.
3790 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3793 { (ac_try="$ac_compiler --version >&5"
3795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796 *) ac_try_echo=$ac_try;;
3798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3799 $as_echo "$ac_try_echo") >&5
3800 (eval "$ac_compiler --version >&5") 2>&5
3802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }
3804 { (ac_try="$ac_compiler -v >&5"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3810 $as_echo "$ac_try_echo") >&5
3811 (eval "$ac_compiler -v >&5") 2>&5
3813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }
3815 { (ac_try="$ac_compiler -V >&5"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3821 $as_echo "$ac_try_echo") >&5
3822 (eval "$ac_compiler -V >&5") 2>&5
3824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }
3827 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3828 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3829 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3830 $as_echo_n "(cached) " >&6
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3857 $as_echo "$ac_try_echo") >&5
3858 (eval "$ac_compile") 2>conftest.er1
3860 grep -v '^ *+' conftest.er1 >conftest.err
3862 cat conftest.err >&5
3863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); } && {
3865 test -z "$ac_cxx_werror_flag" ||
3866 test ! -s conftest.err
3867 } && test -s conftest.$ac_objext; then
3870 $as_echo "$as_me: failed program was:" >&5
3871 sed 's/^/| /' conftest.$ac_ext >&5
3876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3880 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3881 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3882 if test $ac_compiler_gnu = yes; then
3887 ac_test_CXXFLAGS=${CXXFLAGS+set}
3888 ac_save_CXXFLAGS=$CXXFLAGS
3889 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3890 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3891 if test "${ac_cv_prog_cxx_g+set}" = set; then
3892 $as_echo_n "(cached) " >&6
3894 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3895 ac_cxx_werror_flag=yes
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3913 rm -f conftest.$ac_objext
3914 if { (ac_try="$ac_compile"
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3920 $as_echo "$ac_try_echo") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3923 grep -v '^ *+' conftest.er1 >conftest.err
3925 cat conftest.err >&5
3926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_cxx_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.$ac_objext; then
3931 ac_cv_prog_cxx_g=yes
3933 $as_echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3959 $as_echo "$ac_try_echo") >&5
3960 (eval "$ac_compile") 2>conftest.er1
3962 grep -v '^ *+' conftest.er1 >conftest.err
3964 cat conftest.err >&5
3965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); } && {
3967 test -z "$ac_cxx_werror_flag" ||
3968 test ! -s conftest.err
3969 } && test -s conftest.$ac_objext; then
3972 $as_echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3977 cat >conftest.$ac_ext <<_ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3992 rm -f conftest.$ac_objext
3993 if { (ac_try="$ac_compile"
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3999 $as_echo "$ac_try_echo") >&5
4000 (eval "$ac_compile") 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && {
4007 test -z "$ac_cxx_werror_flag" ||
4008 test ! -s conftest.err
4009 } && test -s conftest.$ac_objext; then
4010 ac_cv_prog_cxx_g=yes
4012 $as_echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4027 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4028 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4029 if test "$ac_test_CXXFLAGS" = set; then
4030 CXXFLAGS=$ac_save_CXXFLAGS
4031 elif test $ac_cv_prog_cxx_g = yes; then
4032 if test "$GXX" = yes; then
4038 if test "$GXX" = yes; then
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4050 depcc="$CXX" am_compiler_list=
4052 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4053 $as_echo_n "checking dependency style of $depcc... " >&6; }
4054 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4055 $as_echo_n "(cached) " >&6
4057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4058 # We make a subdir and do the tests there. Otherwise we can end up
4059 # making bogus files that we don't know about and never remove. For
4060 # instance it was reported that on HP-UX the gcc test will end up
4061 # making a dummy file named `D' -- because `-MD' means `put the output
4064 # Copy depcomp to subdir because otherwise we won't find it if we're
4065 # using a relative directory.
4066 cp "$am_depcomp" conftest.dir
4068 # We will build objects and dependencies in a subdirectory because
4069 # it helps to detect inapplicable dependency modes. For instance
4070 # both Tru64's cc and ICC support -MD to output dependencies as a
4071 # side effect of compilation, but ICC will put the dependencies in
4072 # the current directory while Tru64 will put them in the object
4076 am_cv_CXX_dependencies_compiler_type=none
4077 if test "$am_compiler_list" = ""; then
4078 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4081 case " $depcc " in #(
4082 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4085 for depmode in $am_compiler_list; do
4086 # Setup a source with many dependencies, because some compilers
4087 # like to wrap large dependency lists on column 80 (with \), and
4088 # we should not choose a depcomp mode which is confused by this.
4090 # We need to recreate these files for each test, as the compiler may
4091 # overwrite some of them when testing with obscure command lines.
4092 # This happens at least with the AIX C compiler.
4094 for i in 1 2 3 4 5 6; do
4095 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4096 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4097 # Solaris 8's {/usr,}/bin/sh.
4098 touch sub/conftst$i.h
4100 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4102 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4103 # mode. It turns out that the SunPro C++ compiler does not properly
4104 # handle `-M -o', and we need to detect this. Also, some Intel
4105 # versions had trouble with output in subdirs
4106 am__obj=sub/conftest.${OBJEXT-o}
4107 am__minus_obj="-o $am__obj"
4110 # This depmode causes a compiler race in universal mode.
4111 test "$am__universal" = false || continue
4114 # after this tag, mechanisms are not by side-effect, so they'll
4115 # only be used when explicitly requested
4116 if test "x$enable_dependency_tracking" = xyes; then
4122 msvisualcpp | msvcmsys)
4123 # This compiler won't grok `-c -o', but also, the minuso test has
4124 # not run yet. These depmodes are late enough in the game, and
4125 # so weak that their functioning should not be impacted.
4126 am__obj=conftest.${OBJEXT-o}
4131 if depmode=$depmode \
4132 source=sub/conftest.c object=$am__obj \
4133 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4134 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4135 >/dev/null 2>conftest.err &&
4136 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4137 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4138 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4139 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4140 # icc doesn't choke on unknown options, it will just issue warnings
4141 # or remarks (even with -Werror). So we grep stderr for any message
4142 # that says an option was ignored or not supported.
4143 # When given -MP, icc 7.0 and 7.1 complain thusly:
4144 # icc: Command line warning: ignoring option '-M'; no argument required
4145 # The diagnosis changed in icc 8.0:
4146 # icc: Command line remark: option '-MP' not supported
4147 if (grep 'ignoring option' conftest.err ||
4148 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4149 am_cv_CXX_dependencies_compiler_type=$depmode
4158 am_cv_CXX_dependencies_compiler_type=none
4162 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4163 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4164 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4167 test "x$enable_dependency_tracking" != xno \
4168 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4169 am__fastdepCXX_TRUE=
4170 am__fastdepCXX_FALSE='#'
4172 am__fastdepCXX_TRUE='#'
4173 am__fastdepCXX_FALSE=
4180 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4181 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4183 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4184 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4185 $as_echo_n "(cached) " >&6
4187 cat >conftest.make <<\_ACEOF
4190 @echo '@@@%%%=$(MAKE)=@@@%%%'
4192 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4193 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4195 eval ac_cv_prog_make_${ac_make}_set=yes;;
4197 eval ac_cv_prog_make_${ac_make}_set=no;;
4201 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4202 { $as_echo "$as_me:$LINENO: result: yes" >&5
4203 $as_echo "yes" >&6; }
4206 { $as_echo "$as_me:$LINENO: result: no" >&5
4207 $as_echo "no" >&6; }
4208 SET_MAKE="MAKE=${MAKE-make}"
4216 # Check whether --with-sdl-prefix was given.
4217 if test "${with_sdl_prefix+set}" = set; then
4218 withval=$with_sdl_prefix; sdl_prefix="$withval"
4224 # Check whether --with-sdl-exec-prefix was given.
4225 if test "${with_sdl_exec_prefix+set}" = set; then
4226 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
4231 # Check whether --enable-sdltest was given.
4232 if test "${enable_sdltest+set}" = set; then
4233 enableval=$enable_sdltest;
4239 if test x$sdl_exec_prefix != x ; then
4240 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
4241 if test x${SDL_CONFIG+set} != xset ; then
4242 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
4245 if test x$sdl_prefix != x ; then
4246 sdl_args="$sdl_args --prefix=$sdl_prefix"
4247 if test x${SDL_CONFIG+set} != xset ; then
4248 SDL_CONFIG=$sdl_prefix/bin/sdl-config
4253 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
4254 # Extract the first word of "sdl-config", so it can be a program name with args.
4255 set dummy sdl-config; ac_word=$2
4256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
4259 $as_echo_n "(cached) " >&6
4263 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4285 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
4286 if test -n "$SDL_CONFIG"; then
4287 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
4288 $as_echo "$SDL_CONFIG" >&6; }
4290 { $as_echo "$as_me:$LINENO: result: no" >&5
4291 $as_echo "no" >&6; }
4295 min_sdl_version=$SDL_VERSION
4296 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
4297 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
4299 if test "$SDL_CONFIG" = "no" ; then
4302 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
4303 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
4305 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
4306 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4307 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
4308 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4309 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
4310 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4311 if test "x$enable_sdltest" = "xyes" ; then
4312 ac_save_CFLAGS="$CFLAGS"
4313 ac_save_LIBS="$LIBS"
4314 CFLAGS="$CFLAGS $SDL_CFLAGS"
4315 LIBS="$LIBS $SDL_LIBS"
4317 if test "$cross_compiling" = yes; then
4318 echo $ac_n "cross compiling; assumed OK... $ac_c"
4320 cat >conftest.$ac_ext <<_ACEOF
4323 cat confdefs.h >>conftest.$ac_ext
4324 cat >>conftest.$ac_ext <<_ACEOF
4325 /* end confdefs.h. */
4333 my_strdup (char *str)
4339 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
4340 strcpy (new_str, str);
4348 int main (int argc, char *argv[])
4350 int major, minor, micro;
4353 /* This hangs on some systems (?)
4354 system ("touch conf.sdltest");
4356 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
4358 /* HP/UX 9 (%@#!) writes to sscanf strings */
4359 tmp_version = my_strdup("$min_sdl_version");
4360 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4361 printf("%s, bad version string\n", "$min_sdl_version");
4365 if (($sdl_major_version > major) ||
4366 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
4367 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
4373 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
4374 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
4375 printf("*** best to upgrade to the required version.\n");
4376 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
4377 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
4378 printf("*** config.cache before re-running configure\n");
4385 rm -f conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4392 $as_echo "$ac_try_echo") >&5
4393 (eval "$ac_link") 2>&5
4395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397 { (case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4402 $as_echo "$ac_try_echo") >&5
4403 (eval "$ac_try") 2>&5
4405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; }; then
4409 $as_echo "$as_me: program exited with status $ac_status" >&5
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4416 rm -rf conftest.dSYM
4417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4421 CFLAGS="$ac_save_CFLAGS"
4422 LIBS="$ac_save_LIBS"
4425 if test "x$no_sdl" = x ; then
4426 { $as_echo "$as_me:$LINENO: result: yes" >&5
4427 $as_echo "yes" >&6; }
4430 { $as_echo "$as_me:$LINENO: result: no" >&5
4431 $as_echo "no" >&6; }
4432 if test "$SDL_CONFIG" = "no" ; then
4433 echo "*** The sdl-config script installed by SDL could not be found"
4434 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
4435 echo "*** your path, or set the SDL_CONFIG environment variable to the"
4436 echo "*** full path to sdl-config."
4438 if test -f conf.sdltest ; then
4441 echo "*** Could not run SDL test program, checking why..."
4442 CFLAGS="$CFLAGS $SDL_CFLAGS"
4443 LIBS="$LIBS $SDL_LIBS"
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4454 int main(int argc, char *argv[])
4457 #define main K_and_R_C_main
4467 rm -f conftest.$ac_objext conftest$ac_exeext
4468 if { (ac_try="$ac_link"
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4474 $as_echo "$ac_try_echo") >&5
4475 (eval "$ac_link") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } && {
4482 test -z "$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4484 } && test -s conftest$ac_exeext && {
4485 test "$cross_compiling" = yes ||
4486 $as_test_x conftest$ac_exeext
4488 echo "*** The test program compiled, but did not run. This usually means"
4489 echo "*** that the run-time linker is not finding SDL or finding the wrong"
4490 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
4491 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4492 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4493 echo "*** is required on your system"
4495 echo "*** If you have an old version installed, it is best to remove it, although"
4496 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 echo "*** The test program failed to compile or link. See the file config.log for the"
4502 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
4503 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
4504 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
4507 rm -rf conftest.dSYM
4508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4509 conftest$ac_exeext conftest.$ac_ext
4510 CFLAGS="$ac_save_CFLAGS"
4511 LIBS="$ac_save_LIBS"
4516 { { $as_echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
4517 $as_echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
4518 { (exit 1); exit 1; }; }
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533 ac_cpp='$CPP $CPPFLAGS'
4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4537 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4538 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4539 # On Suns, sometimes $CPP names a directory.
4540 if test -n "$CPP" && test -d "$CPP"; then
4543 if test -z "$CPP"; then
4544 if test "${ac_cv_prog_CPP+set}" = set; then
4545 $as_echo_n "(cached) " >&6
4547 # Double quotes because CPP needs to be expanded
4548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4551 for ac_c_preproc_warn_flag in '' yes
4553 # Use a header file that comes with gcc, so configuring glibc
4554 # with a fresh cross-compiler works.
4555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4556 # <limits.h> exists even on freestanding compilers.
4557 # On the NeXT, cc -E runs the code through the compiler's parser,
4558 # not just through cpp. "Syntax error" is here to catch this case.
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4566 # include <limits.h>
4568 # include <assert.h>
4572 if { (ac_try="$ac_cpp conftest.$ac_ext"
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4578 $as_echo "$ac_try_echo") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null && {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4591 $as_echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 # Broken: fails on valid input.
4598 rm -f conftest.err conftest.$ac_ext
4600 # OK, works on sane cases. Now check whether nonexistent headers
4601 # can be detected and how.
4602 cat >conftest.$ac_ext <<_ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 #include <ac_nonexistent.h>
4610 if { (ac_try="$ac_cpp conftest.$ac_ext"
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4616 $as_echo "$ac_try_echo") >&5
4617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4619 grep -v '^ *+' conftest.er1 >conftest.err
4621 cat conftest.err >&5
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } >/dev/null && {
4624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4627 # Broken: success on invalid input.
4630 $as_echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 # Passes both tests.
4638 rm -f conftest.err conftest.$ac_ext
4641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4642 rm -f conftest.err conftest.$ac_ext
4643 if $ac_preproc_ok; then
4655 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4656 $as_echo "$CPP" >&6; }
4658 for ac_c_preproc_warn_flag in '' yes
4660 # Use a header file that comes with gcc, so configuring glibc
4661 # with a fresh cross-compiler works.
4662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4663 # <limits.h> exists even on freestanding compilers.
4664 # On the NeXT, cc -E runs the code through the compiler's parser,
4665 # not just through cpp. "Syntax error" is here to catch this case.
4666 cat >conftest.$ac_ext <<_ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4673 # include <limits.h>
4675 # include <assert.h>
4679 if { (ac_try="$ac_cpp conftest.$ac_ext"
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4685 $as_echo "$ac_try_echo") >&5
4686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4688 grep -v '^ *+' conftest.er1 >conftest.err
4690 cat conftest.err >&5
4691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } >/dev/null && {
4693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4698 $as_echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 # Broken: fails on valid input.
4705 rm -f conftest.err conftest.$ac_ext
4707 # OK, works on sane cases. Now check whether nonexistent headers
4708 # can be detected and how.
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 #include <ac_nonexistent.h>
4717 if { (ac_try="$ac_cpp conftest.$ac_ext"
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4723 $as_echo "$ac_try_echo") >&5
4724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 grep -v '^ *+' conftest.er1 >conftest.err
4728 cat conftest.err >&5
4729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } >/dev/null && {
4731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4734 # Broken: success on invalid input.
4737 $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 # Passes both tests.
4745 rm -f conftest.err conftest.$ac_ext
4748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4749 rm -f conftest.err conftest.$ac_ext
4750 if $ac_preproc_ok; then
4753 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4755 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4756 See \`config.log' for more details." >&5
4757 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4758 See \`config.log' for more details." >&2;}
4759 { (exit 1); exit 1; }; }; }
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4771 if test "${ac_cv_path_GREP+set}" = set; then
4772 $as_echo_n "(cached) " >&6
4774 if test -z "$GREP"; then
4775 ac_path_GREP_found=false
4776 # Loop through the user's path and test for each of PROGNAME-LIST
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4781 test -z "$as_dir" && as_dir=.
4782 for ac_prog in grep ggrep; do
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4785 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4786 # Check for GNU ac_path_GREP and select it if it is found.
4787 # Check for GNU $ac_path_GREP
4788 case `"$ac_path_GREP" --version 2>&1` in
4790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4793 $as_echo_n 0123456789 >"conftest.in"
4796 cat "conftest.in" "conftest.in" >"conftest.tmp"
4797 mv "conftest.tmp" "conftest.in"
4798 cp "conftest.in" "conftest.nl"
4799 $as_echo 'GREP' >> "conftest.nl"
4800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802 ac_count=`expr $ac_count + 1`
4803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4804 # Best one so far, save it but keep looking for a better one
4805 ac_cv_path_GREP="$ac_path_GREP"
4806 ac_path_GREP_max=$ac_count
4808 # 10*(2^10) chars as input seems more than enough
4809 test $ac_count -gt 10 && break
4811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4814 $ac_path_GREP_found && break 3
4819 if test -z "$ac_cv_path_GREP"; then
4820 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4821 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4822 { (exit 1); exit 1; }; }
4825 ac_cv_path_GREP=$GREP
4829 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4830 $as_echo "$ac_cv_path_GREP" >&6; }
4831 GREP="$ac_cv_path_GREP"
4834 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4835 $as_echo_n "checking for egrep... " >&6; }
4836 if test "${ac_cv_path_EGREP+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4839 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4840 then ac_cv_path_EGREP="$GREP -E"
4842 if test -z "$EGREP"; then
4843 ac_path_EGREP_found=false
4844 # Loop through the user's path and test for each of PROGNAME-LIST
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4849 test -z "$as_dir" && as_dir=.
4850 for ac_prog in egrep; do
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4853 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4854 # Check for GNU ac_path_EGREP and select it if it is found.
4855 # Check for GNU $ac_path_EGREP
4856 case `"$ac_path_EGREP" --version 2>&1` in
4858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4861 $as_echo_n 0123456789 >"conftest.in"
4864 cat "conftest.in" "conftest.in" >"conftest.tmp"
4865 mv "conftest.tmp" "conftest.in"
4866 cp "conftest.in" "conftest.nl"
4867 $as_echo 'EGREP' >> "conftest.nl"
4868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870 ac_count=`expr $ac_count + 1`
4871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4872 # Best one so far, save it but keep looking for a better one
4873 ac_cv_path_EGREP="$ac_path_EGREP"
4874 ac_path_EGREP_max=$ac_count
4876 # 10*(2^10) chars as input seems more than enough
4877 test $ac_count -gt 10 && break
4879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4882 $ac_path_EGREP_found && break 3
4887 if test -z "$ac_cv_path_EGREP"; then
4888 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4889 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4890 { (exit 1); exit 1; }; }
4893 ac_cv_path_EGREP=$EGREP
4898 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4899 $as_echo "$ac_cv_path_EGREP" >&6; }
4900 EGREP="$ac_cv_path_EGREP"
4903 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4904 $as_echo_n "checking for ANSI C header files... " >&6; }
4905 if test "${ac_cv_header_stdc+set}" = set; then
4906 $as_echo_n "(cached) " >&6
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4927 rm -f conftest.$ac_objext
4928 if { (ac_try="$ac_compile"
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4934 $as_echo "$ac_try_echo") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4937 grep -v '^ *+' conftest.er1 >conftest.err
4939 cat conftest.err >&5
4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4945 ac_cv_header_stdc=yes
4947 $as_echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 ac_cv_header_stdc=no
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 if test $ac_cv_header_stdc = yes; then
4956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4957 cat >conftest.$ac_ext <<_ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967 $EGREP "memchr" >/dev/null 2>&1; then
4970 ac_cv_header_stdc=no
4976 if test $ac_cv_header_stdc = yes; then
4977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4978 cat >conftest.$ac_ext <<_ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4988 $EGREP "free" >/dev/null 2>&1; then
4991 ac_cv_header_stdc=no
4997 if test $ac_cv_header_stdc = yes; then
4998 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4999 if test "$cross_compiling" = yes; then
5002 cat >conftest.$ac_ext <<_ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5010 #if ((' ' & 0x0FF) == 0x020)
5011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5014 # define ISLOWER(c) \
5015 (('a' <= (c) && (c) <= 'i') \
5016 || ('j' <= (c) && (c) <= 'r') \
5017 || ('s' <= (c) && (c) <= 'z'))
5018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5026 for (i = 0; i < 256; i++)
5027 if (XOR (islower (i), ISLOWER (i))
5028 || toupper (i) != TOUPPER (i))
5033 rm -f conftest$ac_exeext
5034 if { (ac_try="$ac_link"
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5040 $as_echo "$ac_try_echo") >&5
5041 (eval "$ac_link") 2>&5
5043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5045 { (case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5050 $as_echo "$ac_try_echo") >&5
5051 (eval "$ac_try") 2>&5
5053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5057 $as_echo "$as_me: program exited with status $ac_status" >&5
5058 $as_echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5062 ac_cv_header_stdc=no
5064 rm -rf conftest.dSYM
5065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5071 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5072 $as_echo "$ac_cv_header_stdc" >&6; }
5073 if test $ac_cv_header_stdc = yes; then
5075 cat >>confdefs.h <<\_ACEOF
5076 #define STDC_HEADERS 1
5082 ac_cpp='$CXXCPP $CPPFLAGS'
5083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5088 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5098 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5099 inttypes.h stdint.h unistd.h
5101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5102 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5103 $as_echo_n "checking for $ac_header... " >&6; }
5104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5105 $as_echo_n "(cached) " >&6
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5113 $ac_includes_default
5115 #include <$ac_header>
5117 rm -f conftest.$ac_objext
5118 if { (ac_try="$ac_compile"
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5124 $as_echo "$ac_try_echo") >&5
5125 (eval "$ac_compile") 2>conftest.er1
5127 grep -v '^ *+' conftest.er1 >conftest.err
5129 cat conftest.err >&5
5130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } && {
5132 test -z "$ac_cxx_werror_flag" ||
5133 test ! -s conftest.err
5134 } && test -s conftest.$ac_objext; then
5135 eval "$as_ac_Header=yes"
5137 $as_echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5140 eval "$as_ac_Header=no"
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 ac_res=`eval 'as_val=${'$as_ac_Header'}
5146 $as_echo "$as_val"'`
5147 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5148 $as_echo "$ac_res" >&6; }
5149 as_val=`eval 'as_val=${'$as_ac_Header'}
5150 $as_echo "$as_val"'`
5151 if test "x$as_val" = x""yes; then
5152 cat >>confdefs.h <<_ACEOF
5153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5162 ac_cpp='$CXXCPP $CPPFLAGS'
5163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5166 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5167 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5168 if test -z "$CXXCPP"; then
5169 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5170 $as_echo_n "(cached) " >&6
5172 # Double quotes because CXXCPP needs to be expanded
5173 for CXXCPP in "$CXX -E" "/lib/cpp"
5176 for ac_cxx_preproc_warn_flag in '' yes
5178 # Use a header file that comes with gcc, so configuring glibc
5179 # with a fresh cross-compiler works.
5180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5181 # <limits.h> exists even on freestanding compilers.
5182 # On the NeXT, cc -E runs the code through the compiler's parser,
5183 # not just through cpp. "Syntax error" is here to catch this case.
5184 cat >conftest.$ac_ext <<_ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5191 # include <limits.h>
5193 # include <assert.h>
5197 if { (ac_try="$ac_cpp conftest.$ac_ext"
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5203 $as_echo "$ac_try_echo") >&5
5204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5206 grep -v '^ *+' conftest.er1 >conftest.err
5208 cat conftest.err >&5
5209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } >/dev/null && {
5211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5212 test ! -s conftest.err
5216 $as_echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 # Broken: fails on valid input.
5223 rm -f conftest.err conftest.$ac_ext
5225 # OK, works on sane cases. Now check whether nonexistent headers
5226 # can be detected and how.
5227 cat >conftest.$ac_ext <<_ACEOF
5230 cat confdefs.h >>conftest.$ac_ext
5231 cat >>conftest.$ac_ext <<_ACEOF
5232 /* end confdefs.h. */
5233 #include <ac_nonexistent.h>
5235 if { (ac_try="$ac_cpp conftest.$ac_ext"
5237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238 *) ac_try_echo=$ac_try;;
5240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5241 $as_echo "$ac_try_echo") >&5
5242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } >/dev/null && {
5249 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5250 test ! -s conftest.err
5252 # Broken: success on invalid input.
5255 $as_echo "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5258 # Passes both tests.
5263 rm -f conftest.err conftest.$ac_ext
5266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5267 rm -f conftest.err conftest.$ac_ext
5268 if $ac_preproc_ok; then
5273 ac_cv_prog_CXXCPP=$CXXCPP
5276 CXXCPP=$ac_cv_prog_CXXCPP
5278 ac_cv_prog_CXXCPP=$CXXCPP
5280 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5281 $as_echo "$CXXCPP" >&6; }
5283 for ac_cxx_preproc_warn_flag in '' yes
5285 # Use a header file that comes with gcc, so configuring glibc
5286 # with a fresh cross-compiler works.
5287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5288 # <limits.h> exists even on freestanding compilers.
5289 # On the NeXT, cc -E runs the code through the compiler's parser,
5290 # not just through cpp. "Syntax error" is here to catch this case.
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5298 # include <limits.h>
5300 # include <assert.h>
5304 if { (ac_try="$ac_cpp conftest.$ac_ext"
5306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5307 *) ac_try_echo=$ac_try;;
5309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5310 $as_echo "$ac_try_echo") >&5
5311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5313 grep -v '^ *+' conftest.er1 >conftest.err
5315 cat conftest.err >&5
5316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } >/dev/null && {
5318 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5319 test ! -s conftest.err
5323 $as_echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 # Broken: fails on valid input.
5330 rm -f conftest.err conftest.$ac_ext
5332 # OK, works on sane cases. Now check whether nonexistent headers
5333 # can be detected and how.
5334 cat >conftest.$ac_ext <<_ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <ac_nonexistent.h>
5342 if { (ac_try="$ac_cpp conftest.$ac_ext"
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5348 $as_echo "$ac_try_echo") >&5
5349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5351 grep -v '^ *+' conftest.er1 >conftest.err
5353 cat conftest.err >&5
5354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } >/dev/null && {
5356 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5357 test ! -s conftest.err
5359 # Broken: success on invalid input.
5362 $as_echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5365 # Passes both tests.
5370 rm -f conftest.err conftest.$ac_ext
5373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5374 rm -f conftest.err conftest.$ac_ext
5375 if $ac_preproc_ok; then
5378 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5380 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5381 See \`config.log' for more details." >&5
5382 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5383 See \`config.log' for more details." >&2;}
5384 { (exit 1); exit 1; }; }; }
5388 ac_cpp='$CXXCPP $CPPFLAGS'
5389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5398 for ac_header in fcntl.h \
5403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5405 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5406 $as_echo_n "checking for $ac_header... " >&6; }
5407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5408 $as_echo_n "(cached) " >&6
5410 ac_res=`eval 'as_val=${'$as_ac_Header'}
5411 $as_echo "$as_val"'`
5412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5413 $as_echo "$ac_res" >&6; }
5415 # Is the header compilable?
5416 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5417 $as_echo_n "checking $ac_header usability... " >&6; }
5418 cat >conftest.$ac_ext <<_ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424 $ac_includes_default
5425 #include <$ac_header>
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5434 $as_echo "$ac_try_echo") >&5
5435 (eval "$ac_compile") 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_cxx_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.$ac_objext; then
5445 ac_header_compiler=yes
5447 $as_echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 ac_header_compiler=no
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5455 $as_echo "$ac_header_compiler" >&6; }
5457 # Is the header present?
5458 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5459 $as_echo_n "checking $ac_header presence... " >&6; }
5460 cat >conftest.$ac_ext <<_ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <$ac_header>
5468 if { (ac_try="$ac_cpp conftest.$ac_ext"
5470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471 *) ac_try_echo=$ac_try;;
5473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5474 $as_echo "$ac_try_echo") >&5
5475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5477 grep -v '^ *+' conftest.er1 >conftest.err
5479 cat conftest.err >&5
5480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } >/dev/null && {
5482 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5483 test ! -s conftest.err
5485 ac_header_preproc=yes
5487 $as_echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5490 ac_header_preproc=no
5493 rm -f conftest.err conftest.$ac_ext
5494 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5495 $as_echo "$ac_header_preproc" >&6; }
5497 # So? What about this header?
5498 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5501 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5503 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5504 ac_header_preproc=yes
5507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5508 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5510 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5511 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5512 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5514 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5516 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5518 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5520 ## -------------------------------------------------- ##
5521 ## Report this to nazghul-devel@lists.sourceforge.net ##
5522 ## -------------------------------------------------- ##
5524 ) | sed "s/^/$as_me: WARNING: /" >&2
5527 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5528 $as_echo_n "checking for $ac_header... " >&6; }
5529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5530 $as_echo_n "(cached) " >&6
5532 eval "$as_ac_Header=\$ac_header_preproc"
5534 ac_res=`eval 'as_val=${'$as_ac_Header'}
5535 $as_echo "$as_val"'`
5536 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5537 $as_echo "$ac_res" >&6; }
5540 as_val=`eval 'as_val=${'$as_ac_Header'}
5541 $as_echo "$as_val"'`
5542 if test "x$as_val" = x""yes; then
5543 cat >>confdefs.h <<_ACEOF
5544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5553 { $as_echo "$as_me:$LINENO: checking whether what binaries we shall create" >&5
5554 $as_echo_n "checking whether what binaries we shall create... " >&6; }
5555 # Check whether --enable-dynamic-link was given.
5556 if test "${enable_dynamic_link+set}" = set; then
5557 enableval=$enable_dynamic_link; if test "$enableval" = "yes"; then
5558 { $as_echo "$as_me:$LINENO: result: dynamically linked" >&5
5559 $as_echo "dynamically linked" >&6; }
5561 LDFLAGS="$LDFLAGS -static"
5562 { $as_echo "$as_me:$LINENO: result: statically linked" >&5
5563 $as_echo "statically linked" >&6; }
5566 { $as_echo "$as_me:$LINENO: result: dynamically linked" >&5
5567 $as_echo "dynamically linked" >&6; }
5571 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5572 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5573 if test "${ac_cv_c_const+set}" = set; then
5574 $as_echo_n "(cached) " >&6
5576 cat >conftest.$ac_ext <<_ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5586 /* FIXME: Include the comments suggested by Paul. */
5588 /* Ultrix mips cc rejects this. */
5589 typedef int charset[2];
5591 /* SunOS 4.1.1 cc rejects this. */
5592 char const *const *pcpcc;
5594 /* NEC SVR4.0.2 mips cc rejects this. */
5595 struct point {int x, y;};
5596 static struct point const zero = {0,0};
5597 /* AIX XL C 1.02.0.0 rejects this.
5598 It does not let you subtract one const X* pointer from another in
5599 an arm of an if-expression whose if-part is not a constant
5601 const char *g = "string";
5602 pcpcc = &g + (g ? g-g : 0);
5603 /* HPUX 7.0 cc rejects these. */
5605 ppc = (char**) pcpcc;
5606 pcpcc = (char const *const *) ppc;
5607 { /* SCO 3.2v4 cc rejects this. */
5609 char const *s = 0 ? (char *) 0 : (char const *) 0;
5614 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5616 const int *foo = &x[0];
5619 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5620 typedef const int *iptr;
5624 { /* AIX XL C 1.02.0.0 rejects this saying
5625 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5626 struct s { int j; const int *ap[3]; };
5627 struct s *b; b->j = 5;
5629 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5633 return !cs[0] && !zero.x;
5640 rm -f conftest.$ac_objext
5641 if { (ac_try="$ac_compile"
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5647 $as_echo "$ac_try_echo") >&5
5648 (eval "$ac_compile") 2>conftest.er1
5650 grep -v '^ *+' conftest.er1 >conftest.err
5652 cat conftest.err >&5
5653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } && {
5655 test -z "$ac_cxx_werror_flag" ||
5656 test ! -s conftest.err
5657 } && test -s conftest.$ac_objext; then
5660 $as_echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5669 $as_echo "$ac_cv_c_const" >&6; }
5670 if test $ac_cv_c_const = no; then
5672 cat >>confdefs.h <<\_ACEOF
5678 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5679 $as_echo_n "checking for inline... " >&6; }
5680 if test "${ac_cv_c_inline+set}" = set; then
5681 $as_echo_n "(cached) " >&6
5684 for ac_kw in inline __inline__ __inline; do
5685 cat >conftest.$ac_ext <<_ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5693 static $ac_kw foo_t static_foo () {return 0; }
5694 $ac_kw foo_t foo () {return 0; }
5698 rm -f conftest.$ac_objext
5699 if { (ac_try="$ac_compile"
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5705 $as_echo "$ac_try_echo") >&5
5706 (eval "$ac_compile") 2>conftest.er1
5708 grep -v '^ *+' conftest.er1 >conftest.err
5710 cat conftest.err >&5
5711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } && {
5713 test -z "$ac_cxx_werror_flag" ||
5714 test ! -s conftest.err
5715 } && test -s conftest.$ac_objext; then
5716 ac_cv_c_inline=$ac_kw
5718 $as_echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 test "$ac_cv_c_inline" != no && break
5729 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5730 $as_echo "$ac_cv_c_inline" >&6; }
5733 case $ac_cv_c_inline in
5736 case $ac_cv_c_inline in
5738 *) ac_val=$ac_cv_c_inline;;
5740 cat >>confdefs.h <<_ACEOF
5742 #define inline $ac_val
5748 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
5749 $as_echo_n "checking for working volatile... " >&6; }
5750 if test "${ac_cv_c_volatile+set}" = set; then
5751 $as_echo_n "(cached) " >&6
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5765 int * volatile y = (int *) 0;
5771 rm -f conftest.$ac_objext
5772 if { (ac_try="$ac_compile"
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5778 $as_echo "$ac_try_echo") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_cxx_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
5789 ac_cv_c_volatile=yes
5791 $as_echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5800 $as_echo "$ac_cv_c_volatile" >&6; }
5801 if test $ac_cv_c_volatile = no; then
5803 cat >>confdefs.h <<\_ACEOF
5804 #define volatile /**/
5824 for ac_func in malloc \
5839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5840 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5841 $as_echo_n "checking for $ac_func... " >&6; }
5842 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5843 $as_echo_n "(cached) " >&6
5845 cat >conftest.$ac_ext <<_ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5853 #define $ac_func innocuous_$ac_func
5855 /* System header to define __stub macros and hopefully few prototypes,
5856 which can conflict with char $ac_func (); below.
5857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5858 <limits.h> exists even on freestanding compilers. */
5861 # include <limits.h>
5863 # include <assert.h>
5868 /* Override any GCC internal prototype to avoid an error.
5869 Use char because int might match the return type of a GCC
5870 builtin and then its argument prototype would still apply. */
5875 /* The GNU C library defines this for functions which it implements
5876 to always fail with ENOSYS. Some functions are actually named
5877 something starting with __ and the normal name is an alias. */
5878 #if defined __stub_$ac_func || defined __stub___$ac_func
5890 rm -f conftest.$ac_objext conftest$ac_exeext
5891 if { (ac_try="$ac_link"
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5897 $as_echo "$ac_try_echo") >&5
5898 (eval "$ac_link") 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_cxx_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest$ac_exeext && {
5908 test "$cross_compiling" = yes ||
5909 $as_test_x conftest$ac_exeext
5911 eval "$as_ac_var=yes"
5913 $as_echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5916 eval "$as_ac_var=no"
5919 rm -rf conftest.dSYM
5920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5921 conftest$ac_exeext conftest.$ac_ext
5923 ac_res=`eval 'as_val=${'$as_ac_var'}
5924 $as_echo "$as_val"'`
5925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5926 $as_echo "$ac_res" >&6; }
5927 as_val=`eval 'as_val=${'$as_ac_var'}
5928 $as_echo "$as_val"'`
5929 if test "x$as_val" = x""yes; then
5930 cat >>confdefs.h <<_ACEOF
5931 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5938 CFLAGS="$CFLAGS $SDL_CFLAGS"
5942 CXXCPP="$CXXCPP $CXXFLAGS"
5946 LIBS="$LIBS $SDL_LIBS"
5949 { $as_echo "$as_me:$LINENO: checking for png_create_write_struct in -lpng" >&5
5950 $as_echo_n "checking for png_create_write_struct in -lpng... " >&6; }
5951 if test "${ac_cv_lib_png_png_create_write_struct+set}" = set; then
5952 $as_echo_n "(cached) " >&6
5954 ac_check_lib_save_LIBS=$LIBS
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5963 /* Override any GCC internal prototype to avoid an error.
5964 Use char because int might match the return type of a GCC
5965 builtin and then its argument prototype would still apply. */
5969 char png_create_write_struct ();
5973 return png_create_write_struct ();
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (ac_try="$ac_link"
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5985 $as_echo "$ac_try_echo") >&5
5986 (eval "$ac_link") 2>conftest.er1
5988 grep -v '^ *+' conftest.er1 >conftest.err
5990 cat conftest.err >&5
5991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } && {
5993 test -z "$ac_cxx_werror_flag" ||
5994 test ! -s conftest.err
5995 } && test -s conftest$ac_exeext && {
5996 test "$cross_compiling" = yes ||
5997 $as_test_x conftest$ac_exeext
5999 ac_cv_lib_png_png_create_write_struct=yes
6001 $as_echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6004 ac_cv_lib_png_png_create_write_struct=no
6007 rm -rf conftest.dSYM
6008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6009 conftest$ac_exeext conftest.$ac_ext
6010 LIBS=$ac_check_lib_save_LIBS
6012 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_write_struct" >&5
6013 $as_echo "$ac_cv_lib_png_png_create_write_struct" >&6; }
6014 if test "x$ac_cv_lib_png_png_create_write_struct" = x""yes; then
6015 cat >>confdefs.h <<_ACEOF
6016 #define HAVE_LIBPNG 1
6024 if test "${ac_cv_header_png_h+set}" = set; then
6025 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
6026 $as_echo_n "checking for png.h... " >&6; }
6027 if test "${ac_cv_header_png_h+set}" = set; then
6028 $as_echo_n "(cached) " >&6
6030 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6031 $as_echo "$ac_cv_header_png_h" >&6; }
6033 # Is the header compilable?
6034 { $as_echo "$as_me:$LINENO: checking png.h usability" >&5
6035 $as_echo_n "checking png.h usability... " >&6; }
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 $ac_includes_default
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6052 $as_echo "$ac_try_echo") >&5
6053 (eval "$ac_compile") 2>conftest.er1
6055 grep -v '^ *+' conftest.er1 >conftest.err
6057 cat conftest.err >&5
6058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && {
6060 test -z "$ac_cxx_werror_flag" ||
6061 test ! -s conftest.err
6062 } && test -s conftest.$ac_objext; then
6063 ac_header_compiler=yes
6065 $as_echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 ac_header_compiler=no
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6073 $as_echo "$ac_header_compiler" >&6; }
6075 # Is the header present?
6076 { $as_echo "$as_me:$LINENO: checking png.h presence" >&5
6077 $as_echo_n "checking png.h presence... " >&6; }
6078 cat >conftest.$ac_ext <<_ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6086 if { (ac_try="$ac_cpp conftest.$ac_ext"
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092 $as_echo "$ac_try_echo") >&5
6093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6095 grep -v '^ *+' conftest.er1 >conftest.err
6097 cat conftest.err >&5
6098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } >/dev/null && {
6100 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6101 test ! -s conftest.err
6103 ac_header_preproc=yes
6105 $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_header_preproc=no
6111 rm -f conftest.err conftest.$ac_ext
6112 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6113 $as_echo "$ac_header_preproc" >&6; }
6115 # So? What about this header?
6116 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6118 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
6119 $as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6120 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
6121 $as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
6122 ac_header_preproc=yes
6125 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
6126 $as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
6127 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
6128 $as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
6129 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
6130 $as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
6131 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
6132 $as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
6133 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
6134 $as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
6135 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
6136 $as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
6138 ## -------------------------------------------------- ##
6139 ## Report this to nazghul-devel@lists.sourceforge.net ##
6140 ## -------------------------------------------------- ##
6142 ) | sed "s/^/$as_me: WARNING: /" >&2
6145 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
6146 $as_echo_n "checking for png.h... " >&6; }
6147 if test "${ac_cv_header_png_h+set}" = set; then
6148 $as_echo_n "(cached) " >&6
6150 ac_cv_header_png_h=$ac_header_preproc
6152 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
6153 $as_echo "$ac_cv_header_png_h" >&6; }
6156 if test "x$ac_cv_header_png_h" = x""yes; then
6159 { { $as_echo "$as_me:$LINENO: error: *** png include file not found!
6160 You should install development package." >&5
6161 $as_echo "$as_me: error: *** png include file not found!
6162 You should install development package." >&2;}
6163 { (exit 1); exit 1; }; }
6169 { $as_echo "$as_me:$LINENO: checking for IMG_ReadXPMFromArray in -lSDL_image" >&5
6170 $as_echo_n "checking for IMG_ReadXPMFromArray in -lSDL_image... " >&6; }
6171 if test "${ac_cv_lib_SDL_image_IMG_ReadXPMFromArray+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6174 ac_check_lib_save_LIBS=$LIBS
6175 LIBS="-lSDL_image $LIBS"
6176 cat >conftest.$ac_ext <<_ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6183 /* Override any GCC internal prototype to avoid an error.
6184 Use char because int might match the return type of a GCC
6185 builtin and then its argument prototype would still apply. */
6189 char IMG_ReadXPMFromArray ();
6193 return IMG_ReadXPMFromArray ();
6198 rm -f conftest.$ac_objext conftest$ac_exeext
6199 if { (ac_try="$ac_link"
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6205 $as_echo "$ac_try_echo") >&5
6206 (eval "$ac_link") 2>conftest.er1
6208 grep -v '^ *+' conftest.er1 >conftest.err
6210 cat conftest.err >&5
6211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_cxx_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest$ac_exeext && {
6216 test "$cross_compiling" = yes ||
6217 $as_test_x conftest$ac_exeext
6219 ac_cv_lib_SDL_image_IMG_ReadXPMFromArray=yes
6221 $as_echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 ac_cv_lib_SDL_image_IMG_ReadXPMFromArray=no
6227 rm -rf conftest.dSYM
6228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6229 conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6232 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_IMG_ReadXPMFromArray" >&5
6233 $as_echo "$ac_cv_lib_SDL_image_IMG_ReadXPMFromArray" >&6; }
6234 if test "x$ac_cv_lib_SDL_image_IMG_ReadXPMFromArray" = x""yes; then
6235 cat >>confdefs.h <<_ACEOF
6236 #define HAVE_LIBSDL_IMAGE 1
6239 LIBS="-lSDL_image $LIBS"
6244 if test "${ac_cv_header_SDL_image_h+set}" = set; then
6245 { $as_echo "$as_me:$LINENO: checking for SDL_image.h" >&5
6246 $as_echo_n "checking for SDL_image.h... " >&6; }
6247 if test "${ac_cv_header_SDL_image_h+set}" = set; then
6248 $as_echo_n "(cached) " >&6
6250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
6251 $as_echo "$ac_cv_header_SDL_image_h" >&6; }
6253 # Is the header compilable?
6254 { $as_echo "$as_me:$LINENO: checking SDL_image.h usability" >&5
6255 $as_echo_n "checking SDL_image.h usability... " >&6; }
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6263 #include <SDL_image.h>
6265 rm -f conftest.$ac_objext
6266 if { (ac_try="$ac_compile"
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6272 $as_echo "$ac_try_echo") >&5
6273 (eval "$ac_compile") 2>conftest.er1
6275 grep -v '^ *+' conftest.er1 >conftest.err
6277 cat conftest.err >&5
6278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } && {
6280 test -z "$ac_cxx_werror_flag" ||
6281 test ! -s conftest.err
6282 } && test -s conftest.$ac_objext; then
6283 ac_header_compiler=yes
6285 $as_echo "$as_me: failed program was:" >&5
6286 sed 's/^/| /' conftest.$ac_ext >&5
6288 ac_header_compiler=no
6291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6293 $as_echo "$ac_header_compiler" >&6; }
6295 # Is the header present?
6296 { $as_echo "$as_me:$LINENO: checking SDL_image.h presence" >&5
6297 $as_echo_n "checking SDL_image.h presence... " >&6; }
6298 cat >conftest.$ac_ext <<_ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 #include <SDL_image.h>
6306 if { (ac_try="$ac_cpp conftest.$ac_ext"
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6312 $as_echo "$ac_try_echo") >&5
6313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6315 grep -v '^ *+' conftest.er1 >conftest.err
6317 cat conftest.err >&5
6318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } >/dev/null && {
6320 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6321 test ! -s conftest.err
6323 ac_header_preproc=yes
6325 $as_echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 ac_header_preproc=no
6331 rm -f conftest.err conftest.$ac_ext
6332 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6333 $as_echo "$ac_header_preproc" >&6; }
6335 # So? What about this header?
6336 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6338 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&5
6339 $as_echo "$as_me: WARNING: SDL_image.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6340 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the compiler's result" >&5
6341 $as_echo "$as_me: WARNING: SDL_image.h: proceeding with the compiler's result" >&2;}
6342 ac_header_preproc=yes
6345 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: present but cannot be compiled" >&5
6346 $as_echo "$as_me: WARNING: SDL_image.h: present but cannot be compiled" >&2;}
6347 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: check for missing prerequisite headers?" >&5
6348 $as_echo "$as_me: WARNING: SDL_image.h: check for missing prerequisite headers?" >&2;}
6349 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: see the Autoconf documentation" >&5
6350 $as_echo "$as_me: WARNING: SDL_image.h: see the Autoconf documentation" >&2;}
6351 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&5
6352 $as_echo "$as_me: WARNING: SDL_image.h: section \"Present But Cannot Be Compiled\"" >&2;}
6353 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&5
6354 $as_echo "$as_me: WARNING: SDL_image.h: proceeding with the preprocessor's result" >&2;}
6355 { $as_echo "$as_me:$LINENO: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&5
6356 $as_echo "$as_me: WARNING: SDL_image.h: in the future, the compiler will take precedence" >&2;}
6358 ## -------------------------------------------------- ##
6359 ## Report this to nazghul-devel@lists.sourceforge.net ##
6360 ## -------------------------------------------------- ##
6362 ) | sed "s/^/$as_me: WARNING: /" >&2
6365 { $as_echo "$as_me:$LINENO: checking for SDL_image.h" >&5
6366 $as_echo_n "checking for SDL_image.h... " >&6; }
6367 if test "${ac_cv_header_SDL_image_h+set}" = set; then
6368 $as_echo_n "(cached) " >&6
6370 ac_cv_header_SDL_image_h=$ac_header_preproc
6372 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_SDL_image_h" >&5
6373 $as_echo "$ac_cv_header_SDL_image_h" >&6; }
6376 if test "x$ac_cv_header_SDL_image_h" = x""yes; then
6379 { { $as_echo "$as_me:$LINENO: error: *** SDL_image include files not found!
6380 You should install development package." >&5
6381 $as_echo "$as_me: error: *** SDL_image include files not found!
6382 You should install development package." >&2;}
6383 { (exit 1); exit 1; }; }
6389 { $as_echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
6390 $as_echo_n "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; }
6391 if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6394 ac_check_lib_save_LIBS=$LIBS
6395 LIBS="-lSDL_mixer $LIBS"
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6403 /* Override any GCC internal prototype to avoid an error.
6404 Use char because int might match the return type of a GCC
6405 builtin and then its argument prototype would still apply. */
6409 char Mix_OpenAudio ();
6413 return Mix_OpenAudio ();
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (ac_try="$ac_link"
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6425 $as_echo "$ac_try_echo") >&5
6426 (eval "$ac_link") 2>conftest.er1
6428 grep -v '^ *+' conftest.er1 >conftest.err
6430 cat conftest.err >&5
6431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_cxx_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest$ac_exeext && {
6436 test "$cross_compiling" = yes ||
6437 $as_test_x conftest$ac_exeext
6439 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
6441 $as_echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
6447 rm -rf conftest.dSYM
6448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6449 conftest$ac_exeext conftest.$ac_ext
6450 LIBS=$ac_check_lib_save_LIBS
6452 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
6453 $as_echo "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
6454 if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = x""yes; then
6455 cat >>confdefs.h <<_ACEOF
6456 #define HAVE_LIBSDL_MIXER 1
6459 LIBS="-lSDL_mixer $LIBS"
6464 if test "${ac_cv_header_SDL_mixer_h+set}" = set; then
6465 { $as_echo "$as_me:$LINENO: checking for SDL_mixer.h" >&5
6466 $as_echo_n "checking for SDL_mixer.h... " >&6; }
6467 if test "${ac_cv_header_SDL_mixer_h+set}" = set; then
6468 $as_echo_n "(cached) " >&6
6470 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_SDL_mixer_h" >&5
6471 $as_echo "$ac_cv_header_SDL_mixer_h" >&6; }
6473 # Is the header compilable?
6474 { $as_echo "$as_me:$LINENO: checking SDL_mixer.h usability" >&5
6475 $as_echo_n "checking SDL_mixer.h usability... " >&6; }
6476 cat >conftest.$ac_ext <<_ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 $ac_includes_default
6483 #include <SDL_mixer.h>
6485 rm -f conftest.$ac_objext
6486 if { (ac_try="$ac_compile"
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6492 $as_echo "$ac_try_echo") >&5
6493 (eval "$ac_compile") 2>conftest.er1
6495 grep -v '^ *+' conftest.er1 >conftest.err
6497 cat conftest.err >&5
6498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } && {
6500 test -z "$ac_cxx_werror_flag" ||
6501 test ! -s conftest.err
6502 } && test -s conftest.$ac_objext; then
6503 ac_header_compiler=yes
6505 $as_echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_header_compiler=no
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6513 $as_echo "$ac_header_compiler" >&6; }
6515 # Is the header present?
6516 { $as_echo "$as_me:$LINENO: checking SDL_mixer.h presence" >&5
6517 $as_echo_n "checking SDL_mixer.h presence... " >&6; }
6518 cat >conftest.$ac_ext <<_ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 #include <SDL_mixer.h>
6526 if { (ac_try="$ac_cpp conftest.$ac_ext"
6528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6532 $as_echo "$ac_try_echo") >&5
6533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6535 grep -v '^ *+' conftest.er1 >conftest.err
6537 cat conftest.err >&5
6538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } >/dev/null && {
6540 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6541 test ! -s conftest.err
6543 ac_header_preproc=yes
6545 $as_echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6548 ac_header_preproc=no
6551 rm -f conftest.err conftest.$ac_ext
6552 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6553 $as_echo "$ac_header_preproc" >&6; }
6555 # So? What about this header?
6556 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6558 { $as_echo "$as_me:$LINENO: WARNING: SDL_mixer.h: accepted by the compiler, rejected by the preprocessor!" >&5
6559 $as_echo "$as_me: WARNING: SDL_mixer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6560 { $as_echo "$as_me:$LINENO: WARNING: SDL_mixer.h: proceeding with the compiler's result" >&5
6561 $as_echo "$as_me: WARNING: SDL_mixer.h: proceeding with the compiler's result" >&2;}
6562 ac_header_preproc=yes
6565 { $as_echo "$as_me:$LINENO: WARNING: SDL_mixer.h: present but cannot be compiled" >&5
6566 $as_echo "$as_me: WARNING: SDL_mixer.h: present but cannot be compiled" >&2;}
6567 { $as_echo "$as_me:$LINENO: WARNING: SDL_mixer.h: check for missing prerequisite headers?" >&5
6568 $as_echo "$as_me: WARNING: SDL_mixer.h: check for missing prerequisite headers?" >&2;}
6569 { $as_echo "$as_me:$LINENO: WARNING: SDL_mixer.h: see the Autoconf documentation" >&5
6570 $as_echo "$as_me: WARNING: SDL_mixer.h: see the Autoconf documentation" >&2;}
6571 { $as_echo "$as_me:$LINENO: WARNING: SDL_mixer.h: section \"Present But Cannot Be Compiled\"" >&5
6572 $as_echo "$as_me: WARNING: SDL_mixer.h: section \"Present But Cannot Be Compiled\"" >&2;}
6573 { $as_echo "$as_me:$LINENO: WARNING: SDL_mixer.h: proceeding with the preprocessor's result" >&5
6574 $as_echo "$as_me: WARNING: SDL_mixer.h: proceeding with the preprocessor's result" >&2;}
6575 { $as_echo "$as_me:$LINENO: WARNING: SDL_mixer.h: in the future, the compiler will take precedence" >&5
6576 $as_echo "$as_me: WARNING: SDL_mixer.h: in the future, the compiler will take precedence" >&2;}
6578 ## -------------------------------------------------- ##
6579 ## Report this to nazghul-devel@lists.sourceforge.net ##
6580 ## -------------------------------------------------- ##
6582 ) | sed "s/^/$as_me: WARNING: /" >&2
6585 { $as_echo "$as_me:$LINENO: checking for SDL_mixer.h" >&5
6586 $as_echo_n "checking for SDL_mixer.h... " >&6; }
6587 if test "${ac_cv_header_SDL_mixer_h+set}" = set; then
6588 $as_echo_n "(cached) " >&6
6590 ac_cv_header_SDL_mixer_h=$ac_header_preproc
6592 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_SDL_mixer_h" >&5
6593 $as_echo "$ac_cv_header_SDL_mixer_h" >&6; }
6596 if test "x$ac_cv_header_SDL_mixer_h" = x""yes; then
6599 { { $as_echo "$as_me:$LINENO: error: *** SDL_mixer include files not found!
6600 You should install development package." >&5
6601 $as_echo "$as_me: error: *** SDL_mixer include files not found!
6602 You should install development package." >&2;}
6603 { (exit 1); exit 1; }; }
6609 # User directories for saving game data
6612 cat >>confdefs.h <<\_ACEOF
6613 #define NAZGHUL_USER_DIR "/.nazghul"
6618 cat >>confdefs.h <<\_ACEOF
6619 #define NAZGHUL_USER_DIR_WIN "/_nazghul"
6624 cat >>confdefs.h <<\_ACEOF
6625 #define HOME_ENV "HOME"
6630 cat >>confdefs.h <<\_ACEOF
6631 #define MIN_SCRIPT_MAJOR 0
6636 cat >>confdefs.h <<\_ACEOF
6637 #define MIN_SCRIPT_MINOR 6
6642 cat >>confdefs.h <<\_ACEOF
6643 #define MIN_SCRIPT_RELEASE 0
6648 cat >>confdefs.h <<\_ACEOF
6649 #define USE_SKILLS 1
6653 cat >>confdefs.h <<\_ACEOF
6654 #define USE_QUESTS 1
6658 # Finally create all the generated files
6659 ac_config_files="$ac_config_files Makefile m4/Makefile src/Makefile worlds/Makefile worlds/haxima-1.002/Makefile worlds/haxima-1.002/music/Makefile"
6662 cat >confcache <<\_ACEOF
6663 # This file is a shell script that caches the results of configure
6664 # tests run on this system so they can be shared between configure
6665 # scripts and configure runs, see configure's option --config-cache.
6666 # It is not useful on other systems. If it contains results you don't
6667 # want to keep, you may remove or edit it.
6669 # config.status only pays attention to the cache file if you give it
6670 # the --recheck option to rerun configure.
6672 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6673 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6678 # The following way of writing the cache mishandles newlines in values,
6679 # but we know of no workaround that is simple, portable, and efficient.
6680 # So, we kill variables containing newlines.
6681 # Ultrix sh set writes to stderr and can't be redirected directly,
6682 # and sets the high bit in the cache file unless we assign to the vars.
6684 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6685 eval ac_val=\$$ac_var
6689 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
6690 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6693 _ | IFS | as_nl) ;; #(
6694 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6695 *) $as_unset $ac_var ;;
6701 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6702 *${as_nl}ac_space=\ *)
6703 # `set' does not quote correctly, so add quotes (double-quote
6704 # substitution turns \\\\ into \\, and sed turns \\ into \).
6707 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6710 # `set' quotes correctly as required by POSIX, so do not add quotes.
6711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6720 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6722 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6724 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6725 if test -w "$cache_file"; then
6726 test "x$cache_file" != "x/dev/null" &&
6727 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
6728 $as_echo "$as_me: updating cache $cache_file" >&6;}
6729 cat confcache >$cache_file
6731 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6732 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6737 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6738 # Let make expand exec_prefix.
6739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6741 DEFS=-DHAVE_CONFIG_H
6745 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6746 # 1. Remove the extension, and $U if already installed.
6747 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6748 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6749 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6750 # will be set to the directory where LIBOBJS objects are built.
6751 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6752 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6756 LTLIBOBJS=$ac_ltlibobjs
6759 if test -n "$EXEEXT"; then
6761 am__EXEEXT_FALSE='#'
6767 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6768 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
6769 Usually this means the macro was only invoked conditionally." >&5
6770 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
6771 Usually this means the macro was only invoked conditionally." >&2;}
6772 { (exit 1); exit 1; }; }
6774 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6775 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6776 Usually this means the macro was only invoked conditionally." >&5
6777 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
6778 Usually this means the macro was only invoked conditionally." >&2;}
6779 { (exit 1); exit 1; }; }
6781 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6782 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6783 Usually this means the macro was only invoked conditionally." >&5
6784 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6785 Usually this means the macro was only invoked conditionally." >&2;}
6786 { (exit 1); exit 1; }; }
6788 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6789 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6790 Usually this means the macro was only invoked conditionally." >&5
6791 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6792 Usually this means the macro was only invoked conditionally." >&2;}
6793 { (exit 1); exit 1; }; }
6796 : ${CONFIG_STATUS=./config.status}
6798 ac_clean_files_save=$ac_clean_files
6799 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6800 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6801 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6802 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6804 # Generated by $as_me.
6805 # Run this file to recreate the current configuration.
6806 # Compiler output produced by configure, useful for debugging
6807 # configure, is in config.log if it exists.
6812 SHELL=\${CONFIG_SHELL-$SHELL}
6815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6816 ## --------------------- ##
6817 ## M4sh Initialization. ##
6818 ## --------------------- ##
6820 # Be more Bourne compatible
6821 DUALCASE=1; export DUALCASE # for MKS sh
6822 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6825 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6826 # is contrary to our usage. Disable this feature.
6827 alias -g '${1+"$@"}'='"$@"'
6828 setopt NO_GLOB_SUBST
6830 case `(set -o) 2>/dev/null` in
6831 *posix*) set -o posix ;;
6840 # Avoid depending upon Character Ranges.
6841 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6842 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6843 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6844 as_cr_digits='0123456789'
6845 as_cr_alnum=$as_cr_Letters$as_cr_digits
6850 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6851 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6852 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6853 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6854 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6855 as_echo='printf %s\n'
6856 as_echo_n='printf %s'
6858 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6859 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6860 as_echo_n='/usr/ucb/echo -n'
6862 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6863 as_echo_n_body='eval
6867 expr "X$arg" : "X\\(.*\\)$as_nl";
6868 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6870 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6872 export as_echo_n_body
6873 as_echo_n='sh -c $as_echo_n_body as_echo'
6876 as_echo='sh -c $as_echo_body as_echo'
6879 # The user is always right.
6880 if test "${PATH_SEPARATOR+set}" != set; then
6882 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6883 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6888 # Support unset when possible.
6889 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6897 # We need space, tab and new line, in precisely that order. Quoting is
6898 # there to prevent editors from complaining about space-tab.
6899 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6900 # splitting by setting IFS to empty value.)
6903 # Find who we are. Look in the path if we contain no directory separator.
6905 *[\\/]* ) as_myself=$0 ;;
6906 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 test -z "$as_dir" && as_dir=.
6911 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6917 # We did not find ourselves, most probably we were run as `sh COMMAND'
6918 # in which case we are not to be found in the path.
6919 if test "x$as_myself" = x; then
6922 if test ! -f "$as_myself"; then
6923 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6924 { (exit 1); exit 1; }
6927 # Work around bugs in pre-3.0 UWIN ksh.
6928 for as_var in ENV MAIL MAILPATH
6929 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6941 # Required to use basename.
6942 if expr a : '\(a\)' >/dev/null 2>&1 &&
6943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6949 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6950 as_basename=basename
6956 # Name of the executable.
6957 as_me=`$as_basename -- "$0" ||
6958 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6959 X"$0" : 'X\(//\)$' \| \
6960 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6962 sed '/^.*\/\([^/][^/]*\)\/*$/{
6983 test "x$as_lineno_1" != "x$as_lineno_2" &&
6984 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6986 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6987 # uniformly replaced by the line number. The first 'sed' inserts a
6988 # line-number line after each line using $LINENO; the second 'sed'
6989 # does the real work. The second script uses 'N' to pair each
6990 # line-number line with the line containing $LINENO, and appends
6991 # trailing '-' during substitution so that $LINENO is not a special
6993 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6994 # scripts with optimization help from Paolo Bonzini. Blame Lee
6995 # E. McMahon (1931-1989) for sed's syntax. :-)
7007 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7011 chmod +x "$as_me.lineno" ||
7012 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7013 { (exit 1); exit 1; }; }
7015 # Don't try to exec as it changes $[0], causing all sort of problems
7016 # (the dirname of $[0] is not the place where we might find the
7017 # original and so on. Autoconf is especially sensitive to this).
7019 # Exit status is that of the last command.
7024 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7030 ECHO_C= ECHO_N= ECHO_T=
7033 case `echo 'x\c'` in
7034 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7040 if expr a : '\(a\)' >/dev/null 2>&1 &&
7041 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7047 rm -f conf$$ conf$$.exe conf$$.file
7048 if test -d conf$$.dir; then
7049 rm -f conf$$.dir/conf$$.file
7052 mkdir conf$$.dir 2>/dev/null
7054 if (echo >conf$$.file) 2>/dev/null; then
7055 if ln -s conf$$.file conf$$ 2>/dev/null; then
7057 # ... but there are two gotchas:
7058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7060 # In both cases, we have to default to `cp -p'.
7061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7063 elif ln conf$$.file conf$$ 2>/dev/null; then
7071 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7072 rmdir conf$$.dir 2>/dev/null
7074 if mkdir -p . 2>/dev/null; then
7077 test -d ./-p && rmdir ./-p
7081 if test -x / >/dev/null 2>&1; then
7084 if ls -dL / >/dev/null 2>&1; then
7091 if test -d "$1"; then
7097 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7098 ???[sx]*):;;*)false;;esac;fi
7102 as_executable_p=$as_test_x
7104 # Sed expression to map a string onto a valid CPP name.
7105 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7107 # Sed expression to map a string onto a valid variable name.
7108 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7113 # Save the log message, to keep $[0] and so on meaningful, and to
7114 # report actual input values of CONFIG_FILES etc. instead of their
7115 # values after options handling.
7117 This file was extended by nazghul $as_me 0.7.1, which was
7118 generated by GNU Autoconf 2.63. Invocation command line was
7120 CONFIG_FILES = $CONFIG_FILES
7121 CONFIG_HEADERS = $CONFIG_HEADERS
7122 CONFIG_LINKS = $CONFIG_LINKS
7123 CONFIG_COMMANDS = $CONFIG_COMMANDS
7126 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7131 case $ac_config_files in *"
7132 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7135 case $ac_config_headers in *"
7136 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7141 # Files that config.status was made for.
7142 config_files="$ac_config_files"
7143 config_headers="$ac_config_headers"
7144 config_commands="$ac_config_commands"
7148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7150 \`$as_me' instantiates files from templates according to the
7151 current configuration.
7153 Usage: $0 [OPTION]... [FILE]...
7155 -h, --help print this help, then exit
7156 -V, --version print version number and configuration settings, then exit
7157 -q, --quiet, --silent
7158 do not print progress messages
7159 -d, --debug don't remove temporary files
7160 --recheck update $as_me by reconfiguring in the same conditions
7161 --file=FILE[:TEMPLATE]
7162 instantiate the configuration file FILE
7163 --header=FILE[:TEMPLATE]
7164 instantiate the configuration header FILE
7166 Configuration files:
7169 Configuration headers:
7172 Configuration commands:
7175 Report bugs to <bug-autoconf@gnu.org>."
7178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7180 nazghul config.status 0.7.1
7181 configured by $0, generated by GNU Autoconf 2.63,
7182 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7184 Copyright (C) 2008 Free Software Foundation, Inc.
7185 This config.status script is free software; the Free Software Foundation
7186 gives unlimited permission to copy, distribute and modify it."
7193 test -n "\$AWK" || AWK=awk
7196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7197 # The default lists apply if the user does not specify any file.
7203 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7204 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7215 # Handling of the options.
7216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7218 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7219 $as_echo "$ac_cs_version"; exit ;;
7220 --debug | --debu | --deb | --de | --d | -d )
7222 --file | --fil | --fi | --f )
7225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7227 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
7228 ac_need_defaults=false;;
7229 --header | --heade | --head | --hea )
7232 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7234 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
7235 ac_need_defaults=false;;
7237 # Conflict between --help and --header
7238 { $as_echo "$as_me: error: ambiguous option: $1
7239 Try \`$0 --help' for more information." >&2
7240 { (exit 1); exit 1; }; };;
7241 --help | --hel | -h )
7242 $as_echo "$ac_cs_usage"; exit ;;
7243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7244 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7248 -*) { $as_echo "$as_me: error: unrecognized option: $1
7249 Try \`$0 --help' for more information." >&2
7250 { (exit 1); exit 1; }; } ;;
7252 *) ac_config_targets="$ac_config_targets $1"
7253 ac_need_defaults=false ;;
7259 ac_configure_extra_args=
7261 if $ac_cs_silent; then
7263 ac_configure_extra_args="$ac_configure_extra_args --silent"
7267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7268 if \$ac_cs_recheck; then
7269 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7271 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7272 CONFIG_SHELL='$SHELL'
7278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7282 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7283 ## Running $as_me. ##
7289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7293 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7299 # Handling of arguments.
7300 for ac_config_target in $ac_config_targets
7302 case $ac_config_target in
7303 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7304 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7305 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7306 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
7307 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7308 "worlds/Makefile") CONFIG_FILES="$CONFIG_FILES worlds/Makefile" ;;
7309 "worlds/haxima-1.002/Makefile") CONFIG_FILES="$CONFIG_FILES worlds/haxima-1.002/Makefile" ;;
7310 "worlds/haxima-1.002/music/Makefile") CONFIG_FILES="$CONFIG_FILES worlds/haxima-1.002/music/Makefile" ;;
7312 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7313 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7314 { (exit 1); exit 1; }; };;
7319 # If the user did not use the arguments to specify the items to instantiate,
7320 # then the envvar interface is used. Set only those that are not.
7321 # We use the long form for the default assignment because of an extremely
7322 # bizarre bug on SunOS 4.1.3.
7323 if $ac_need_defaults; then
7324 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7325 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7326 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7329 # Have a temporary directory for convenience. Make it in the build tree
7330 # simply because there is no reason against having it here, and in addition,
7331 # creating and moving files from /tmp can sometimes cause problems.
7332 # Hook for its removal unless debugging.
7333 # Note that there is a small window in which the directory will not be cleaned:
7334 # after its creation but before its name has been assigned to `$tmp'.
7338 trap 'exit_status=$?
7339 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7341 trap '{ (exit 1); exit 1; }' 1 2 13 15
7343 # Create a (secure) tmp directory for tmp files.
7346 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7347 test -n "$tmp" && test -d "$tmp"
7350 tmp=./conf$$-$RANDOM
7351 (umask 077 && mkdir "$tmp")
7354 $as_echo "$as_me: cannot create a temporary directory in ." >&2
7355 { (exit 1); exit 1; }
7358 # Set up the scripts for CONFIG_FILES section.
7359 # No need to generate them if there are no CONFIG_FILES.
7360 # This happens for instance with `./config.status config.h'.
7361 if test -n "$CONFIG_FILES"; then
7365 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7366 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7372 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7377 echo "cat >conf$$subs.awk <<_ACEOF" &&
7378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7381 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7382 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7383 { (exit 1); exit 1; }; }
7384 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7386 for ac_last_try in false false false false false :; do
7387 . ./conf$$subs.sh ||
7388 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7389 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7390 { (exit 1); exit 1; }; }
7392 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7393 if test $ac_delim_n = $ac_delim_num; then
7395 elif $ac_last_try; then
7396 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7397 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7398 { (exit 1); exit 1; }; }
7400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7406 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7410 s/^/S["/; s/!.*/"]=/
7420 s/\(.\{148\}\).*/\1/
7422 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7434 s/\(.\{148\}\).*/\1/
7436 s/["\\]/\\&/g; s/^/"/; s/$/"/
7440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7445 ' <conf$$subs.awk | sed '
7450 ' >>$CONFIG_STATUS || ac_write_fail=1
7451 rm -f conf$$subs.awk
7452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7454 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7455 for (key in S) S_is_set[key] = 1
7461 nfields = split(line, field, "@")
7463 len = length(field[1])
7464 for (i = 2; i < nfields; i++) {
7466 keylen = length(key)
7467 if (S_is_set[key]) {
7469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7470 len += length(value) + length(field[++i])
7481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7486 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7487 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
7488 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
7489 { (exit 1); exit 1; }; }
7492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7494 # trailing colons and then remove the whole line if VPATH becomes empty
7495 # (actually we leave an empty line to preserve line numbers).
7496 if test "x$srcdir" = x.; then
7497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7501 s/^\([^=]*=[ ]*\):*/\1/
7507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7508 fi # test -n "$CONFIG_FILES"
7510 # Set up the scripts for CONFIG_HEADERS section.
7511 # No need to generate them if there are no CONFIG_HEADERS.
7512 # This happens for instance with `./config.status Makefile'.
7513 if test -n "$CONFIG_HEADERS"; then
7514 cat >"$tmp/defines.awk" <<\_ACAWK ||
7518 # Transform confdefs.h into an awk script `defines.awk', embedded as
7519 # here-document in config.status, that substitutes the proper values into
7520 # config.h.in to produce config.h.
7522 # Create a delimiter string that does not exist in confdefs.h, to ease
7523 # handling of long lines.
7525 for ac_last_try in false false :; do
7526 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7527 if test -z "$ac_t"; then
7529 elif $ac_last_try; then
7530 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
7531 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
7532 { (exit 1); exit 1; }; }
7534 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7538 # For the awk script, D is an array of macro values keyed by name,
7539 # likewise P contains macro parameters if any. Preserve backslash
7540 # newline sequences.
7542 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7544 s/.\{148\}/&'"$ac_delim"'/g
7547 s/^[ ]*#[ ]*define[ ][ ]*/ /
7554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7556 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7560 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7561 D["\1"]=" \3\\\\\\n"\\/p
7563 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7568 s/.\{148\}/&'"$ac_delim"'/g
7573 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7576 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7578 ' <confdefs.h | sed '
7579 s/'"$ac_delim"'/"\\\
7580 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7583 for (key in D) D_is_set[key] = 1
7586 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7588 split(line, arg, " ")
7589 if (arg[1] == "#") {
7593 defundef = substr(arg[1], 2)
7596 split(mac1, mac2, "(") #)
7598 prefix = substr(line, 1, index(line, defundef) - 1)
7599 if (D_is_set[macro]) {
7600 # Preserve the white space surrounding the "#".
7601 print prefix "define", macro P[macro] D[macro]
7604 # Replace #undef with comments. This is necessary, for example,
7605 # in the case of _POSIX_SOURCE, which is predefined and required
7606 # on some systems where configure will not decide to define it.
7607 if (defundef == "undef") {
7608 print "/*", prefix defundef, macro, "*/"
7616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7617 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
7618 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
7619 { (exit 1); exit 1; }; }
7620 fi # test -n "$CONFIG_HEADERS"
7623 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7628 :[FHLC]) ac_mode=$ac_tag; continue;;
7630 case $ac_mode$ac_tag in
7632 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
7633 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7634 { (exit 1); exit 1; }; };;
7635 :[FH]-) ac_tag=-:-;;
7636 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7653 -) ac_f="$tmp/stdin";;
7654 *) # Look for the file first in the build tree, then in the source tree
7655 # (if the path is not absolute). The absolute path cannot be DOS-style,
7656 # because $ac_f cannot contain `:'.
7660 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7662 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7663 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7664 { (exit 1); exit 1; }; };;
7666 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7667 ac_file_inputs="$ac_file_inputs '$ac_f'"
7670 # Let's still pretend it is `configure' which instantiates (i.e., don't
7671 # use $as_me), people would be surprised to read:
7672 # /* config.h. Generated by config.status. */
7673 configure_input='Generated from '`
7674 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7676 if test x"$ac_file" != x-; then
7677 configure_input="$ac_file. $configure_input"
7678 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
7679 $as_echo "$as_me: creating $ac_file" >&6;}
7681 # Neutralize special characters interpreted by sed in replacement strings.
7682 case $configure_input in #(
7683 *\&* | *\|* | *\\* )
7684 ac_sed_conf_input=`$as_echo "$configure_input" |
7685 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7686 *) ac_sed_conf_input=$configure_input;;
7690 *:-:* | *:-) cat >"$tmp/stdin" \
7691 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7692 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7693 { (exit 1); exit 1; }; } ;;
7698 ac_dir=`$as_dirname -- "$ac_file" ||
7699 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7700 X"$ac_file" : 'X\(//\)[^/]' \| \
7701 X"$ac_file" : 'X\(//\)$' \| \
7702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7703 $as_echo X"$ac_file" |
7704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7723 -*) as_dir=./$as_dir;;
7725 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7729 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7730 *) as_qdir=$as_dir;;
7732 as_dirs="'$as_qdir' $as_dirs"
7733 as_dir=`$as_dirname -- "$as_dir" ||
7734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7735 X"$as_dir" : 'X\(//\)[^/]' \| \
7736 X"$as_dir" : 'X\(//\)$' \| \
7737 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7738 $as_echo X"$as_dir" |
7739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7756 test -d "$as_dir" && break
7758 test -z "$as_dirs" || eval "mkdir $as_dirs"
7759 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7760 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7761 { (exit 1); exit 1; }; }; }
7765 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7767 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7768 # A ".." for each directory in $ac_dir_suffix.
7769 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7770 case $ac_top_builddir_sub in
7771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7775 ac_abs_top_builddir=$ac_pwd
7776 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7777 # for backward compatibility:
7778 ac_top_builddir=$ac_top_build_prefix
7781 .) # We are building in place.
7783 ac_top_srcdir=$ac_top_builddir_sub
7784 ac_abs_top_srcdir=$ac_pwd ;;
7785 [\\/]* | ?:[\\/]* ) # Absolute name.
7786 ac_srcdir=$srcdir$ac_dir_suffix;
7787 ac_top_srcdir=$srcdir
7788 ac_abs_top_srcdir=$srcdir ;;
7790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7791 ac_top_srcdir=$ac_top_build_prefix$srcdir
7792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7794 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7804 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7805 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7809 [\\/$]* | ?:[\\/]* ) ;;
7810 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7815 # If the template does not know about datarootdir, expand it.
7816 # FIXME: This hack should be removed a few years after 2.60.
7817 ac_datarootdir_hack=; ac_datarootdir_seen=
7830 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7831 *datarootdir*) ac_datarootdir_seen=yes;;
7832 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7833 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7834 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7837 ac_datarootdir_hack='
7838 s&@datadir@&$datadir&g
7839 s&@docdir@&$docdir&g
7840 s&@infodir@&$infodir&g
7841 s&@localedir@&$localedir&g
7842 s&@mandir@&$mandir&g
7843 s&\\\${datarootdir}&$datarootdir&g' ;;
7847 # Neutralize VPATH when `$srcdir' = `.'.
7848 # Shell code in configure.ac might set extrasub.
7849 # FIXME: do we really want to maintain this feature?
7850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7851 ac_sed_extra="$ac_vpsub
7854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7857 s|@configure_input@|$ac_sed_conf_input|;t t
7858 s&@top_builddir@&$ac_top_builddir_sub&;t t
7859 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7860 s&@srcdir@&$ac_srcdir&;t t
7861 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7862 s&@top_srcdir@&$ac_top_srcdir&;t t
7863 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7864 s&@builddir@&$ac_builddir&;t t
7865 s&@abs_builddir@&$ac_abs_builddir&;t t
7866 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7867 s&@INSTALL@&$ac_INSTALL&;t t
7868 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7869 $ac_datarootdir_hack
7871 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7872 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7873 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7874 { (exit 1); exit 1; }; }
7876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7877 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7879 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7880 which seems to be undefined. Please make sure it is defined." >&5
7881 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7882 which seems to be undefined. Please make sure it is defined." >&2;}
7886 -) cat "$tmp/out" && rm -f "$tmp/out";;
7887 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7889 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7890 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7891 { (exit 1); exit 1; }; }
7897 if test x"$ac_file" != x-; then
7899 $as_echo "/* $configure_input */" \
7900 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7901 } >"$tmp/config.h" \
7902 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7903 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7904 { (exit 1); exit 1; }; }
7905 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7906 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7907 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7910 mv "$tmp/config.h" "$ac_file" \
7911 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7912 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7913 { (exit 1); exit 1; }; }
7916 $as_echo "/* $configure_input */" \
7917 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7918 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
7919 $as_echo "$as_me: error: could not create -" >&2;}
7920 { (exit 1); exit 1; }; }
7922 # Compute "$ac_file"'s index in $config_headers.
7925 for _am_header in $config_headers :; do
7927 $_am_arg | $_am_arg:* )
7930 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7933 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7934 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7935 X"$_am_arg" : 'X\(//\)[^/]' \| \
7936 X"$_am_arg" : 'X\(//\)$' \| \
7937 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7938 $as_echo X"$_am_arg" |
7939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7955 s/.*/./; q'`/stamp-h$_am_stamp_count
7958 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
7959 $as_echo "$as_me: executing $ac_file commands" >&6;}
7964 case $ac_file$ac_mode in
7965 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7966 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7967 # are listed without --file. Let's play safe and only enable the eval
7968 # if we detect the quoting.
7969 case $CONFIG_FILES in
7970 *\'*) eval set x "$CONFIG_FILES" ;;
7971 *) set x $CONFIG_FILES ;;
7976 # Strip MF so we end up with the name of the file.
7977 mf=`echo "$mf" | sed -e 's/:.*$//'`
7978 # Check whether this is an Automake generated Makefile or not.
7979 # We used to match only the files named `Makefile.in', but
7980 # some people rename them; so instead we look at the file content.
7981 # Grep'ing the first line is not enough: some people post-process
7982 # each Makefile.in and add a new line on top of each file to say so.
7983 # Grep'ing the whole file is not good either: AIX grep has a line
7984 # limit of 2048, but all sed's we know have understand at least 4000.
7985 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7986 dirpart=`$as_dirname -- "$mf" ||
7987 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7988 X"$mf" : 'X\(//\)[^/]' \| \
7989 X"$mf" : 'X\(//\)$' \| \
7990 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8012 # Extract the definition of DEPDIR, am__include, and am__quote
8013 # from the Makefile without running `make'.
8014 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8015 test -z "$DEPDIR" && continue
8016 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8017 test -z "am__include" && continue
8018 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8019 # When using ansi2knr, U may be empty or an underscore; expand it
8020 U=`sed -n 's/^U = //p' < "$mf"`
8021 # Find all dependency output files, they are included files with
8022 # $(DEPDIR) in their names. We invoke sed twice because it is the
8023 # simplest approach to changing $(DEPDIR) to its actual value in the
8025 for file in `sed -n "
8026 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8027 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8028 # Make sure the directory exists.
8029 test -f "$dirpart/$file" && continue
8030 fdir=`$as_dirname -- "$file" ||
8031 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8032 X"$file" : 'X\(//\)[^/]' \| \
8033 X"$file" : 'X\(//\)$' \| \
8034 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8053 { as_dir=$dirpart/$fdir
8055 -*) as_dir=./$as_dir;;
8057 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8061 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8062 *) as_qdir=$as_dir;;
8064 as_dirs="'$as_qdir' $as_dirs"
8065 as_dir=`$as_dirname -- "$as_dir" ||
8066 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8067 X"$as_dir" : 'X\(//\)[^/]' \| \
8068 X"$as_dir" : 'X\(//\)$' \| \
8069 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8070 $as_echo X"$as_dir" |
8071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8088 test -d "$as_dir" && break
8090 test -z "$as_dirs" || eval "mkdir $as_dirs"
8091 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8092 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8093 { (exit 1); exit 1; }; }; }
8094 # echo "creating $dirpart/$file"
8095 echo '# dummy' > "$dirpart/$file"
8105 { (exit 0); exit 0; }
8107 chmod +x $CONFIG_STATUS
8108 ac_clean_files=$ac_clean_files_save
8110 test $ac_write_fail = 0 ||
8111 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
8112 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
8113 { (exit 1); exit 1; }; }
8116 # configure is writing to config.log, and then calls config.status.
8117 # config.status does its own redirection, appending to config.log.
8118 # Unfortunately, on DOS this fails, as config.log is still kept open
8119 # by configure, so config.status won't be able to write to it; its
8120 # output is simply discarded. So we exec the FD to /dev/null,
8121 # effectively closing config.log, so it can be properly (re)opened and
8122 # appended to by config.status. When coming back to configure, we
8123 # need to make the FD available again.
8124 if test "$no_create" != yes; then
8126 ac_config_status_args=
8127 test "$silent" = yes &&
8128 ac_config_status_args="$ac_config_status_args --quiet"
8130 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8132 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8133 # would make configure fail if this is the last instruction.
8134 $ac_cs_success || { (exit 1); exit 1; }
8136 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8137 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8138 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8144 $PACKAGE_NAME $PACKAGE_VERSION configured.
8146 You can now type \`gmake' to compile $PACKAGE_NAME.
8147 If \`gmake' is not available on your system, try \`make' instead.