2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for swig 1.3.40.
5 # Report bugs to <http://www.swig.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix=/usr/local
566 ac_config_libobj_dir=.
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
576 PACKAGE_TARNAME='swig'
577 PACKAGE_VERSION='1.3.40'
578 PACKAGE_STRING='swig 1.3.40'
579 PACKAGE_BUGREPORT='http://www.swig.org'
581 ac_unique_file="Source/Swig/swig.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
677 INSTALL_STRIP_PROGRAM
755 PYTHON3DYNAMICLINKING
861 ac_precious_vars='build_alias
876 ac_subdirs_all='CCache'
878 # Initialize some variables set by options.
880 ac_init_version=false
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
890 program_transform_name=s,x,x,
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
915 infodir='${datarootdir}/info'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\$ac_option
936 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 # Accept the important Cygnus configure options, so we can diagnose typos.
942 case $ac_dashdash$ac_option in
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
964 cache_file=config.cache ;;
966 -datadir | --datadir | --datadi | --datad)
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
978 -disable-* | --disable-*)
979 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
982 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983 { (exit 1); exit 1; }; }
984 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
985 eval enable_$ac_feature=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 -enable-* | --enable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=\$ac_optarg ;;
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 htmldir=$ac_optarg ;;
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1049 -libdir | --libdir | --libdi | --libd)
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1140 -psdir | --psdir | --psdi | --psd | --ps)
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 sbindir=$ac_optarg ;;
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 sharedstatedir=$ac_optarg ;;
1166 -site | --site | --sit)
1168 -site=* | --site=* | --sit=*)
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1195 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 { echo "$as_me: error: invalid package name: $ac_package" >&2
1199 { (exit 1); exit 1; }; }
1200 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1201 eval with_$ac_package=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 { echo "$as_me: error: invalid package name: $ac_package" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1210 eval with_$ac_package=no ;;
1213 # Obsolete; use --with-x.
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) { echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 { echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1261 # Be sure to have absolute directory names.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273 { (exit 1); exit 1; }; }
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 { echo "$as_me: error: Working directory cannot be determined" >&2
1304 { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 { echo "$as_me: error: pwd does not report name of working directory" >&2
1307 { (exit 1); exit 1; }; }
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$0" ||
1315 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$0" : 'X\(//\)[^/]' \| \
1317 X"$0" : 'X\(//\)$' \| \
1318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347 { (exit 1); exit 1; }; }
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352 { (exit 1); exit 1; }; }
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures swig 1.3.40 to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/swig]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1441 --x-includes=DIR X include files are in DIR
1442 --x-libraries=DIR X library files are in DIR
1445 --build=BUILD configure for building on BUILD [guessed]
1446 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of swig 1.3.40:";;
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --disable-dependency-tracking speeds up one-time build
1460 --enable-dependency-tracking do not reject slow dependency extractors
1461 --disable-ccache disable building and installation of ccache-swig
1462 executable (default enabled)
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --without-maximum-compile-warnings
1468 Disable maximum warning verbosity
1469 --without-popen Disable popen
1470 --with-rxspencer Enable RxSpencer
1471 --with-libm=STRING math library
1472 --with-libc=STRING C library
1473 --with-x use the X Window System
1474 --without-alllang Disable all languages
1475 --without-tcl Disable Tcl
1476 --with-tclconfig=path Set location of tclConfig.sh
1477 --with-tcl=path Set location of Tcl package
1478 --with-tclincl=path Set location of Tcl include directory
1479 --with-tcllib=path Set location of Tcl library directory
1480 --without-python Disable Python
1481 --with-python=path Set location of Python executable
1482 --without-python3 Disable Python 3.x support
1483 --with-python3=path Set location of Python 3.x executable
1484 --without-perl5 Disable Perl5
1485 --with-perl5=path Set location of Perl5 executable
1486 --without-octave Disable Octave
1487 --with-octave=path Set location of Octave executable
1488 --without-java Disable Java
1489 --with-java=path Set location of java executable
1490 --with-javac=path Set location of javac executable
1491 --with-javaincl=path Set location of Java include directory
1492 --without-gcj Disable GCJ
1493 --with-gcj=path Set location of gcj executable
1494 --with-gcjh=path Set location of gcjh executable
1495 --without-guile Disable Guile
1496 --with-guile-config=path
1497 Set location of guile-config
1498 --with-guile-prefix=path
1499 Set location of Guile tree
1500 --with-guile=path Set location of Guile executable
1501 --with-guileincl=path Set location of Guile include directory
1502 --with-guilelib=path Set location of Guile library directory
1503 --without-mzscheme Disable MzScheme
1504 --with-mzscheme=path Set location of MzScheme executable
1505 --with-mzc=path Set location of MzScheme's mzc
1506 --without-ruby Disable Ruby
1507 --with-ruby=path Set location of Ruby executable
1508 --without-php Disable PHP
1509 --with-php=path Set location of PHP executable
1510 --without-ocaml Disable OCaml
1511 --with-ocaml=path Set location of ocaml executable
1512 --with-ocamlc=path Set location of ocamlc executable
1513 --with-ocamldlgen=path Set location of ocamldlgen
1514 --with-ocamlfind=path Set location of ocamlfind
1515 --with-ocamlmktop=path Set location of ocamlmktop executable
1516 --without-pike Disable Pike
1517 --with-pike=path Set location of Pike executable
1518 --with-pike-config=path Set location of pike-config script
1519 --with-pikeincl=path Set location of Pike include directory
1520 --without-chicken Disable CHICKEN
1521 --with-chicken=path Set location of CHICKEN executable
1522 --with-chickencsc=path Set location of csc executable
1523 --with-chickencsi=path Set location of csi executable
1524 --with-chickenopts=args Set compiler options for static CHICKEN generated code
1525 --with-chickensharedlib=args Set linker options for shared CHICKEN generated code
1526 --with-chickenlib=args Set linker options for static CHICKEN generated code
1527 --without-csharp Disable CSharp
1528 --with-cil-interpreter=path Set location of CIL interpreter for CSharp
1529 --with-csharp-compiler=path Set location of CSharp compiler
1530 --without-lua Disable Lua
1531 --with-lua=path Set location of Lua executable
1532 --with-luaincl=path Set location of Lua include directory
1533 --with-lualib=path Set location of Lua library directory
1534 --without-allegrocl Disable Allegro CL
1535 --with-allegrocl=path Set location of Allegro CL executable (alisp)
1536 --without-clisp Disable CLISP
1537 --with-clisp=path Set location of CLISP executable (clisp)
1538 --without-r Disable R
1539 --with-r=path Set location of R executable (r)
1540 --with-swiglibdir=DIR Put SWIG system-independent libraries into DIR.
1542 Some influential environment variables:
1543 CC C compiler command
1544 CFLAGS C compiler flags
1545 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1546 nonstandard directory <lib dir>
1547 LIBS libraries to pass to the linker, e.g. -l<library>
1548 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1549 you have headers in a nonstandard directory <include dir>
1550 CXX C++ compiler command
1551 CXXFLAGS C++ compiler flags
1553 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1554 the first program found out of: `bison -y', `byacc', `yacc'.
1555 YFLAGS The list of arguments that will be passed by default to $YACC.
1556 This script will default YFLAGS to the empty string to avoid a
1557 default value of `-d' given by some make applications.
1558 XMKMF Path to xmkmf, Makefile generator for X Window System
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1563 Report bugs to <http://www.swig.org>.
1568 if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" || continue
1575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 ac_abs_top_builddir=$ac_pwd
1586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587 # for backward compatibility:
1588 ac_top_builddir=$ac_top_build_prefix
1591 .) # We are building in place.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1615 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 cd "$ac_pwd" || { ac_status=$?; break; }
1621 test -n "$ac_init_help" && exit $ac_status
1622 if $ac_init_version; then
1624 swig configure 1.3.40
1625 generated by GNU Autoconf 2.61
1627 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1628 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1634 cat >config.log <<_ACEOF
1635 This file contains any messages produced by compilers while
1636 running configure, to aid debugging if configure makes a mistake.
1638 It was created by swig $as_me 1.3.40, which was
1639 generated by GNU Autoconf 2.61. Invocation command line was
1651 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1652 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1653 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1654 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1655 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1657 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1658 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1660 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1661 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1662 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1663 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1664 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1665 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1666 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir=.
1675 echo "PATH: $as_dir"
1691 # Keep a trace of the command line.
1692 # Strip out --no-create and --no-recursion so they do not pile up.
1693 # Strip out --silent because we don't want to record it for future runs.
1694 # Also quote any args containing shell meta-characters.
1695 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_must_keep_next=false
1705 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1706 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1707 | -silent | --silent | --silen | --sile | --sil)
1710 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1715 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1716 if test $ac_must_keep_next = true; then
1717 ac_must_keep_next=false # Got value, back to normal.
1720 *=* | --config-cache | -C | -disable-* | --disable-* \
1721 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1722 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1723 | -with-* | --with-* | -without-* | --without-* | --x)
1724 case "$ac_configure_args0 " in
1725 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728 -* ) ac_must_keep_next=true ;;
1731 ac_configure_args="$ac_configure_args '$ac_arg'"
1736 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1737 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1739 # When interrupted or exit'd, cleanup temporary files, and complete
1740 # config.log. We remove comments because anyway the quotes in there
1741 # would cause problems or look ugly.
1742 # WARNING: Use '\'' to represent an apostrophe within the trap.
1743 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1744 trap 'exit_status=$?
1745 # Save into config.log some information that might help in debugging.
1750 ## ---------------- ##
1751 ## Cache variables. ##
1752 ## ---------------- ##
1755 # The following way of writing the cache mishandles newlines in values,
1757 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1758 eval ac_val=\$$ac_var
1762 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1763 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1766 _ | IFS | as_nl) ;; #(
1767 *) $as_unset $ac_var ;;
1772 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1773 *${as_nl}ac_space=\ *)
1775 "s/'\''/'\''\\\\'\'''\''/g;
1776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1787 ## ----------------- ##
1788 ## Output variables. ##
1789 ## ----------------- ##
1792 for ac_var in $ac_subst_vars
1794 eval ac_val=\$$ac_var
1796 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1798 echo "$ac_var='\''$ac_val'\''"
1802 if test -n "$ac_subst_files"; then
1804 ## ------------------- ##
1805 ## File substitutions. ##
1806 ## ------------------- ##
1809 for ac_var in $ac_subst_files
1811 eval ac_val=\$$ac_var
1813 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1815 echo "$ac_var='\''$ac_val'\''"
1820 if test -s confdefs.h; then
1830 test "$ac_signal" != 0 &&
1831 echo "$as_me: caught signal $ac_signal"
1832 echo "$as_me: exit $exit_status"
1834 rm -f core *.core core.conftest.* &&
1835 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1838 for ac_signal in 1 2 13 15; do
1839 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1843 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1844 rm -f -r conftest* confdefs.h
1846 # Predefined preprocessor variables.
1848 cat >>confdefs.h <<_ACEOF
1849 #define PACKAGE_NAME "$PACKAGE_NAME"
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_STRING "$PACKAGE_STRING"
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1873 # Let the site file select an alternate cache file if it wants to.
1874 # Prefer explicitly selected file to automatically selected ones.
1875 if test -n "$CONFIG_SITE"; then
1876 set x "$CONFIG_SITE"
1877 elif test "x$prefix" != xNONE; then
1878 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1880 set x "$ac_default_prefix/share/config.site" \
1881 "$ac_default_prefix/etc/config.site"
1886 if test -r "$ac_site_file"; then
1887 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1888 echo "$as_me: loading site script $ac_site_file" >&6;}
1889 sed 's/^/| /' "$ac_site_file" >&5
1894 if test -r "$cache_file"; then
1895 # Some versions of bash will fail to source /dev/null (special
1896 # files actually), so we avoid doing that.
1897 if test -f "$cache_file"; then
1898 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1899 echo "$as_me: loading cache $cache_file" >&6;}
1901 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902 *) . "./$cache_file";;
1906 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1907 echo "$as_me: creating cache $cache_file" >&6;}
1911 # Check that the precious variables saved in the cache have kept the same
1913 ac_cache_corrupted=false
1914 for ac_var in $ac_precious_vars; do
1915 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1916 eval ac_new_set=\$ac_env_${ac_var}_set
1917 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1918 eval ac_new_val=\$ac_env_${ac_var}_value
1919 case $ac_old_set,$ac_new_set in
1921 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1922 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1923 ac_cache_corrupted=: ;;
1925 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1926 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1927 ac_cache_corrupted=: ;;
1930 if test "x$ac_old_val" != "x$ac_new_val"; then
1931 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1932 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1933 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1934 echo "$as_me: former value: $ac_old_val" >&2;}
1935 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1936 echo "$as_me: current value: $ac_new_val" >&2;}
1937 ac_cache_corrupted=:
1940 # Pass precious variables to config.status.
1941 if test "$ac_new_set" = set; then
1943 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1944 *) ac_arg=$ac_var=$ac_new_val ;;
1946 case " $ac_configure_args " in
1947 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1948 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1952 if $ac_cache_corrupted; then
1953 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1954 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1955 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1956 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1957 { (exit 1); exit 1; }; }
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994 for ac_dir in Tools/config "$srcdir"/Tools/config; do
1995 if test -f "$ac_dir/install-sh"; then
1997 ac_install_sh="$ac_aux_dir/install-sh -c"
1999 elif test -f "$ac_dir/install.sh"; then
2001 ac_install_sh="$ac_aux_dir/install.sh -c"
2003 elif test -f "$ac_dir/shtool"; then
2005 ac_install_sh="$ac_aux_dir/shtool install -c"
2009 if test -z "$ac_aux_dir"; then
2010 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in Tools/config \"$srcdir\"/Tools/config" >&5
2011 echo "$as_me: error: cannot find install-sh or install.sh in Tools/config \"$srcdir\"/Tools/config" >&2;}
2012 { (exit 1); exit 1; }; }
2015 # These three variables are undocumented and unsupported,
2016 # and are intended to be withdrawn in a future Autoconf release.
2017 # They can cause serious problems if a builder's source tree is in a directory
2018 # whose full name contains unusual characters.
2019 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2020 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2021 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2024 ac_config_headers="$ac_config_headers Source/Include/swigconfig.h"
2026 # Make sure we can run config.sub.
2027 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2028 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2029 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2030 { (exit 1); exit 1; }; }
2032 { echo "$as_me:$LINENO: checking build system type" >&5
2033 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2034 if test "${ac_cv_build+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 ac_build_alias=$build_alias
2038 test "x$ac_build_alias" = x &&
2039 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2040 test "x$ac_build_alias" = x &&
2041 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2042 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2043 { (exit 1); exit 1; }; }
2044 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2045 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2046 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2047 { (exit 1); exit 1; }; }
2050 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2051 echo "${ECHO_T}$ac_cv_build" >&6; }
2052 case $ac_cv_build in
2054 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2055 echo "$as_me: error: invalid value of canonical build" >&2;}
2056 { (exit 1); exit 1; }; };;
2059 ac_save_IFS=$IFS; IFS='-'
2065 # Remember, the first character of IFS is used to create $*,
2066 # except with old shells:
2069 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2072 { echo "$as_me:$LINENO: checking host system type" >&5
2073 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2074 if test "${ac_cv_host+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test "x$host_alias" = x; then
2078 ac_cv_host=$ac_cv_build
2080 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2087 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2088 echo "${ECHO_T}$ac_cv_host" >&6; }
2091 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2092 echo "$as_me: error: invalid value of canonical host" >&2;}
2093 { (exit 1); exit 1; }; };;
2096 ac_save_IFS=$IFS; IFS='-'
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2106 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2109 am__api_version='1.10'
2111 # Find a good install program. We prefer a C program (faster),
2112 # so one script is as good as another. But avoid the broken or
2113 # incompatible versions:
2114 # SysV /etc/install, /usr/sbin/install
2115 # SunOS /usr/etc/install
2116 # IRIX /sbin/install
2118 # AmigaOS /C/install, which installs bootblocks on floppy discs
2119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2122 # OS/2's system install, which has a completely different semantic
2123 # ./install, which can be erroneously created by make from ./install.sh.
2124 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2125 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2126 if test -z "$INSTALL"; then
2127 if test "${ac_cv_path_install+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 test -z "$as_dir" && as_dir=.
2135 # Account for people who put trailing slashes in PATH elements.
2137 ./ | .// | /cC/* | \
2138 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2139 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2142 # OSF1 and SCO ODT 3.0 have their own names for install.
2143 # Don't use installbsd from OSF since it installs stuff as root
2145 for ac_prog in ginstall scoinst install; do
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2148 if test $ac_prog = install &&
2149 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2150 # AIX install. It has an incompatible calling convention.
2152 elif test $ac_prog = install &&
2153 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2154 # program-specific install script used by HP pwplus--don't use.
2157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2170 if test "${ac_cv_path_install+set}" = set; then
2171 INSTALL=$ac_cv_path_install
2173 # As a last resort, use the slow shell script. Don't cache a
2174 # value for INSTALL within a source directory, because that will
2175 # break other packages using the cache if that directory is
2176 # removed, or if the value is a relative name.
2177 INSTALL=$ac_install_sh
2180 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2181 echo "${ECHO_T}$INSTALL" >&6; }
2183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2184 # It thinks the first close brace ends the variable substitution.
2185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2191 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2192 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2195 echo timestamp > conftest.file
2196 # Do `set' in a subshell so we don't clobber the current shell's
2197 # arguments. Must try -L first in case configure is actually a
2198 # symlink; some systems play weird games with the mod time of symlinks
2199 # (eg FreeBSD returns the mod time of the symlink's containing
2202 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2203 if test "$*" = "X"; then
2205 set X `ls -t $srcdir/configure conftest.file`
2208 if test "$*" != "X $srcdir/configure conftest.file" \
2209 && test "$*" != "X conftest.file $srcdir/configure"; then
2211 # If neither matched, then we have a broken ls. This can happen
2212 # if, for instance, CONFIG_SHELL is bash and it inherits a
2213 # broken ls alias from the environment. This has actually
2214 # happened. Such a system could not be considered "sane".
2215 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2216 alias in your environment" >&5
2217 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2218 alias in your environment" >&2;}
2219 { (exit 1); exit 1; }; }
2222 test "$2" = conftest.file
2228 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2229 Check your system clock" >&5
2230 echo "$as_me: error: newly created file is older than distributed files!
2231 Check your system clock" >&2;}
2232 { (exit 1); exit 1; }; }
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6; }
2236 test "$program_prefix" != NONE &&
2237 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2238 # Use a double $ so make ignores it.
2239 test "$program_suffix" != NONE &&
2240 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2241 # Double any \ or $. echo might interpret backslashes.
2242 # By default was `s,x,x', remove it if useless.
2243 cat <<\_ACEOF >conftest.sed
2244 s/[\\$]/&&/g;s/;s,x,x,$//
2246 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2249 # expand $ac_aux_dir to an absolute path
2250 am_aux_dir=`cd $ac_aux_dir && pwd`
2252 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2253 # Use eval to expand $SHELL
2254 if eval "$MISSING --run true"; then
2255 am_missing_run="$MISSING --run "
2258 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2259 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2262 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2263 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2264 if test -z "$MKDIR_P"; then
2265 if test "${ac_cv_path_mkdir+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2272 test -z "$as_dir" && as_dir=.
2273 for ac_prog in mkdir gmkdir; do
2274 for ac_exec_ext in '' $ac_executable_extensions; do
2275 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2276 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2277 'mkdir (GNU coreutils) '* | \
2278 'mkdir (coreutils) '* | \
2279 'mkdir (fileutils) '4.1*)
2280 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2290 if test "${ac_cv_path_mkdir+set}" = set; then
2291 MKDIR_P="$ac_cv_path_mkdir -p"
2293 # As a last resort, use the slow shell script. Don't cache a
2294 # value for MKDIR_P within a source directory, because that will
2295 # break other packages using the cache if that directory is
2296 # removed, or if the value is a relative name.
2297 test -d ./--version && rmdir ./--version
2298 MKDIR_P="$ac_install_sh -d"
2301 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2302 echo "${ECHO_T}$MKDIR_P" >&6; }
2306 [\\/$]* | ?:[\\/]*) ;;
2307 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2310 for ac_prog in gawk mawk nawk awk
2312 # Extract the first word of "$ac_prog", so it can be a program name with args.
2313 set dummy $ac_prog; ac_word=$2
2314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2316 if test "${ac_cv_prog_AWK+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 if test -n "$AWK"; then
2320 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2329 ac_cv_prog_AWK="$ac_prog"
2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 if test -n "$AWK"; then
2341 { echo "$as_me:$LINENO: result: $AWK" >&5
2342 echo "${ECHO_T}$AWK" >&6; }
2344 { echo "$as_me:$LINENO: result: no" >&5
2345 echo "${ECHO_T}no" >&6; }
2349 test -n "$AWK" && break
2352 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2353 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2354 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2355 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 cat >conftest.make <<\_ACEOF
2361 @echo '@@@%%%=$(MAKE)=@@@%%%'
2363 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2364 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2366 eval ac_cv_prog_make_${ac_make}_set=yes;;
2368 eval ac_cv_prog_make_${ac_make}_set=no;;
2372 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2373 { echo "$as_me:$LINENO: result: yes" >&5
2374 echo "${ECHO_T}yes" >&6; }
2377 { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 SET_MAKE="MAKE=${MAKE-make}"
2382 rm -rf .tst 2>/dev/null
2383 mkdir .tst 2>/dev/null
2384 if test -d .tst; then
2389 rmdir .tst 2>/dev/null
2391 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2392 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2393 # is not polluted with repeated "-I."
2394 am__isrc=' -I$(srcdir)'
2395 # test to see if srcdir already configured
2396 if test -f $srcdir/config.status; then
2397 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2398 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2399 { (exit 1); exit 1; }; }
2403 # test whether we have cygpath
2404 if test -z "$CYGPATH_W"; then
2405 if (cygpath --version) >/dev/null 2>/dev/null; then
2406 CYGPATH_W='cygpath -w'
2413 # Define the identity of the package.
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE "$PACKAGE"
2423 cat >>confdefs.h <<_ACEOF
2424 #define VERSION "$VERSION"
2427 # Some tools Automake needs.
2429 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2432 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2435 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2438 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2441 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2443 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2445 # Installed binaries are usually stripped using `strip' when the user
2446 # run `make install-strip'. However `strip' might not be the right
2447 # tool to use in cross-compilation environments, therefore Automake
2448 # will honor the `STRIP' environment variable to overrule this program.
2449 if test "$cross_compiling" != no; then
2450 if test -n "$ac_tool_prefix"; then
2451 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2452 set dummy ${ac_tool_prefix}strip; ac_word=$2
2453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2455 if test "${ac_cv_prog_STRIP+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 if test -n "$STRIP"; then
2459 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 STRIP=$ac_cv_prog_STRIP
2479 if test -n "$STRIP"; then
2480 { echo "$as_me:$LINENO: result: $STRIP" >&5
2481 echo "${ECHO_T}$STRIP" >&6; }
2483 { echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6; }
2489 if test -z "$ac_cv_prog_STRIP"; then
2491 # Extract the first word of "strip", so it can be a program name with args.
2492 set dummy strip; ac_word=$2
2493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2495 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 if test -n "$ac_ct_STRIP"; then
2499 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2508 ac_cv_prog_ac_ct_STRIP="strip"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2519 if test -n "$ac_ct_STRIP"; then
2520 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2521 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2527 if test "x$ac_ct_STRIP" = x; then
2530 case $cross_compiling:$ac_tool_warned in
2532 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2533 whose name does not start with the host triplet. If you think this
2534 configuration is useful to you, please write to autoconf@gnu.org." >&5
2535 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2536 whose name does not start with the host triplet. If you think this
2537 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2538 ac_tool_warned=yes ;;
2543 STRIP="$ac_cv_prog_STRIP"
2547 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2549 # We need awk for the "check" target. The system "awk" is bad on
2551 # Always define AMTAR for backward compatibility.
2553 AMTAR=${AMTAR-"${am_missing_run}tar"}
2555 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2566 ac_cpp='$CPP $CPPFLAGS'
2567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570 if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 if test -n "$CC"; then
2600 { echo "$as_me:$LINENO: result: $CC" >&5
2601 echo "${ECHO_T}$CC" >&6; }
2603 { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2609 if test -z "$ac_cv_prog_CC"; then
2611 # Extract the first word of "gcc", so it can be a program name with args.
2612 set dummy gcc; ac_word=$2
2613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2618 if test -n "$ac_ct_CC"; then
2619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_ac_ct_CC="gcc"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2639 if test -n "$ac_ct_CC"; then
2640 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2641 echo "${ECHO_T}$ac_ct_CC" >&6; }
2643 { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2647 if test "x$ac_ct_CC" = x; then
2650 case $cross_compiling:$ac_tool_warned in
2652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2653 whose name does not start with the host triplet. If you think this
2654 configuration is useful to you, please write to autoconf@gnu.org." >&5
2655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2656 whose name does not start with the host triplet. If you think this
2657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2658 ac_tool_warned=yes ;;
2666 if test -z "$CC"; then
2667 if test -n "$ac_tool_prefix"; then
2668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2669 set dummy ${ac_tool_prefix}cc; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_CC+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 if test -n "$CC"; then
2676 ac_cv_prog_CC="$CC" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_CC="${ac_tool_prefix}cc"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test -n "$CC"; then
2697 { echo "$as_me:$LINENO: result: $CC" >&5
2698 echo "${ECHO_T}$CC" >&6; }
2700 { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2707 if test -z "$CC"; then
2708 # Extract the first word of "cc", so it can be a program name with args.
2709 set dummy cc; ac_word=$2
2710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_CC+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 if test -n "$CC"; then
2716 ac_cv_prog_CC="$CC" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2727 ac_prog_rejected=yes
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 if test $ac_prog_rejected = yes; then
2739 # We found a bogon in the path, so make sure we never use it.
2740 set dummy $ac_cv_prog_CC
2742 if test $# != 0; then
2743 # We chose a different compiler from the bogus one.
2744 # However, it has the same basename, so the bogon will be chosen
2745 # first if we set CC to just the basename; use the full file name.
2747 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2753 if test -n "$CC"; then
2754 { echo "$as_me:$LINENO: result: $CC" >&5
2755 echo "${ECHO_T}$CC" >&6; }
2757 { echo "$as_me:$LINENO: result: no" >&5
2758 echo "${ECHO_T}no" >&6; }
2763 if test -z "$CC"; then
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in cl.exe
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_CC+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 if test -n "$CC"; then
2796 { echo "$as_me:$LINENO: result: $CC" >&5
2797 echo "${ECHO_T}$CC" >&6; }
2799 { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2804 test -n "$CC" && break
2807 if test -z "$CC"; then
2809 for ac_prog in cl.exe
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -n "$ac_ct_CC"; then
2819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CC="$ac_prog"
2829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6; }
2843 { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2848 test -n "$ac_ct_CC" && break
2851 if test "x$ac_ct_CC" = x; then
2854 case $cross_compiling:$ac_tool_warned in
2856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857 whose name does not start with the host triplet. If you think this
2858 configuration is useful to you, please write to autoconf@gnu.org." >&5
2859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860 whose name does not start with the host triplet. If you think this
2861 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862 ac_tool_warned=yes ;;
2871 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: no acceptable C compiler found in \$PATH
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }
2877 # Provide some information about the compiler.
2878 echo "$as_me:$LINENO: checking for C compiler version" >&5
2879 ac_compiler=`set X $ac_compile; echo $2`
2880 { (ac_try="$ac_compiler --version >&5"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_compiler --version >&5") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }
2890 { (ac_try="$ac_compiler -v >&5"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compiler -v >&5") 2>&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }
2900 { (ac_try="$ac_compiler -V >&5"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compiler -V >&5") 2>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2926 ac_clean_files_save=$ac_clean_files
2927 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2928 # Try to create an executable without -o first, disregard a.out.
2929 # It will help us diagnose broken compilers, and finding out an intuition
2931 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2932 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2933 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2935 # List of possible output files, starting from the most likely.
2936 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2937 # only as a last resort. b.out is created by i960 compilers.
2938 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2940 # The IRIX 6 linker writes into existing files which may not be
2941 # executable, retaining their permissions. Remove them first so a
2942 # subsequent execution test works.
2944 for ac_file in $ac_files
2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2948 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2953 if { (ac_try="$ac_link_default"
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_link_default") 2>&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
2963 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2964 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2965 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2966 # so that the user can short-circuit this test for compilers unknown to
2968 for ac_file in $ac_files ''
2970 test -f "$ac_file" || continue
2972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2975 # We found the default executable, but exeext='' is most
2979 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2981 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 # We set ac_cv_exeext here because the later test for it is not
2984 # safe: cross compilers may not add the suffix if given an `-o'
2985 # argument, so we may need to know it at that point already.
2986 # Even if this section looks crufty: it has the advantage of
2993 test "$ac_cv_exeext" = no && ac_cv_exeext=
2999 { echo "$as_me:$LINENO: result: $ac_file" >&5
3000 echo "${ECHO_T}$ac_file" >&6; }
3001 if test -z "$ac_file"; then
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3005 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: C compiler cannot create executables
3008 See \`config.log' for more details." >&2;}
3009 { (exit 77); exit 77; }; }
3012 ac_exeext=$ac_cv_exeext
3014 # Check that the compiler produces executables we can run. If not, either
3015 # the compiler is broken, or we cross compile.
3016 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3017 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3018 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3019 # If not cross compiling, check that we can run a simple program.
3020 if test "$cross_compiling" != yes; then
3021 if { ac_try='./$ac_file'
3022 { (case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_try") 2>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3033 if test "$cross_compiling" = maybe; then
3036 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3037 If you meant to cross compile, use \`--host'.
3038 See \`config.log' for more details." >&5
3039 echo "$as_me: error: cannot run C compiled programs.
3040 If you meant to cross compile, use \`--host'.
3041 See \`config.log' for more details." >&2;}
3042 { (exit 1); exit 1; }; }
3046 { echo "$as_me:$LINENO: result: yes" >&5
3047 echo "${ECHO_T}yes" >&6; }
3049 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3050 ac_clean_files=$ac_clean_files_save
3051 # Check that the compiler produces executables we can run. If not, either
3052 # the compiler is broken, or we cross compile.
3053 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3054 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3055 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3056 echo "${ECHO_T}$cross_compiling" >&6; }
3058 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3059 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3060 if { (ac_try="$ac_link"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_link") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; then
3070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3072 # work properly (i.e., refer to `conftest.exe'), while it won't with
3074 for ac_file in conftest.exe conftest conftest.*; do
3075 test -f "$ac_file" || continue
3077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3087 See \`config.log' for more details." >&2;}
3088 { (exit 1); exit 1; }; }
3091 rm -f conftest$ac_cv_exeext
3092 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3093 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3095 rm -f conftest.$ac_ext
3096 EXEEXT=$ac_cv_exeext
3098 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3099 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3100 if test "${ac_cv_objext+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 cat >conftest.$ac_ext <<_ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3118 rm -f conftest.o conftest.obj
3119 if { (ac_try="$ac_compile"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; then
3129 for ac_file in conftest.o conftest.obj conftest.*; do
3130 test -f "$ac_file" || continue;
3132 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3133 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3138 echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3141 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details." >&5
3143 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3144 See \`config.log' for more details." >&2;}
3145 { (exit 1); exit 1; }; }
3148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3150 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3151 echo "${ECHO_T}$ac_cv_objext" >&6; }
3152 OBJEXT=$ac_cv_objext
3154 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3155 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3156 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_compile") 2>conftest.er1
3186 grep -v '^ *+' conftest.er1 >conftest.err
3188 cat conftest.err >&5
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.$ac_objext; then
3196 echo "$as_me: failed program was:" >&5
3197 sed 's/^/| /' conftest.$ac_ext >&5
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3206 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3207 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3208 GCC=`test $ac_compiler_gnu = yes && echo yes`
3209 ac_test_CFLAGS=${CFLAGS+set}
3210 ac_save_CFLAGS=$CFLAGS
3211 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3212 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3213 if test "${ac_cv_prog_cc_g+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242 (eval "$ac_compile") 2>conftest.er1
3244 grep -v '^ *+' conftest.er1 >conftest.err
3246 cat conftest.err >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } && {
3249 test -z "$ac_c_werror_flag" ||
3250 test ! -s conftest.err
3251 } && test -s conftest.$ac_objext; then
3254 echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_compile") 2>conftest.er1
3282 grep -v '^ *+' conftest.er1 >conftest.err
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } && {
3287 test -z "$ac_c_werror_flag" ||
3288 test ! -s conftest.err
3289 } && test -s conftest.$ac_objext; then
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 ac_c_werror_flag=$ac_save_c_werror_flag
3297 cat >conftest.$ac_ext <<_ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3312 rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_compile") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } && {
3326 test -z "$ac_c_werror_flag" ||
3327 test ! -s conftest.err
3328 } && test -s conftest.$ac_objext; then
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 ac_c_werror_flag=$ac_save_c_werror_flag
3346 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3348 if test "$ac_test_CFLAGS" = set; then
3349 CFLAGS=$ac_save_CFLAGS
3350 elif test $ac_cv_prog_cc_g = yes; then
3351 if test "$GCC" = yes; then
3357 if test "$GCC" = yes; then
3363 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3364 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3365 if test "${ac_cv_prog_cc_c89+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 ac_cv_prog_cc_c89=no
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3378 #include <sys/types.h>
3379 #include <sys/stat.h>
3380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3381 struct buf { int x; };
3382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383 static char *e (p, i)
3389 static char *f (char * (*g) (char **, int), char **p, ...)
3394 s = g (p, va_arg (v,int));
3399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3400 function prototypes and stuff, but not '\xHH' hex character constants.
3401 These don't provoke an error unfortunately, instead are silently treated
3402 as 'x'. The following induces an error, until -std is added to get
3403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3404 array size at least. It's necessary to write '\x00'==0 to get something
3405 that's true only with -std. */
3406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409 inside strings and character constants. */
3411 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3413 int test (int i, double x);
3414 struct s1 {int (*f) (int a);};
3415 struct s2 {int (*f) (double a);};
3416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3422 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3427 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3430 CC="$ac_save_CC $ac_arg"
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_compile") 2>conftest.er1
3440 grep -v '^ *+' conftest.er1 >conftest.err
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } && {
3445 test -z "$ac_c_werror_flag" ||
3446 test ! -s conftest.err
3447 } && test -s conftest.$ac_objext; then
3448 ac_cv_prog_cc_c89=$ac_arg
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3456 rm -f core conftest.err conftest.$ac_objext
3457 test "x$ac_cv_prog_cc_c89" != "xno" && break
3459 rm -f conftest.$ac_ext
3464 case "x$ac_cv_prog_cc_c89" in
3466 { echo "$as_me:$LINENO: result: none needed" >&5
3467 echo "${ECHO_T}none needed" >&6; } ;;
3469 { echo "$as_me:$LINENO: result: unsupported" >&5
3470 echo "${ECHO_T}unsupported" >&6; } ;;
3472 CC="$CC $ac_cv_prog_cc_c89"
3473 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3474 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3479 ac_cpp='$CPP $CPPFLAGS'
3480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 DEPDIR="${am__leading_dot}deps"
3485 ac_config_commands="$ac_config_commands depfiles"
3488 am_make=${MAKE-make}
3489 cat > confinc << 'END'
3494 # If we don't find an include directive, just comment out the code.
3495 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3496 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3500 # First try GNU make style include.
3501 echo "include confinc" > confmf
3502 # We grep out `Entering directory' and `Leaving directory'
3503 # messages which can occur if `w' ends up in MAKEFLAGS.
3504 # In particular we don't look at `^make:' because GNU make might
3505 # be invoked under some other name (usually "gmake"), in which
3506 # case it prints its new name instead of `make'.
3507 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3512 # Now try BSD make style include.
3513 if test "$am__include" = "#"; then
3514 echo '.include "confinc"' > confmf
3515 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3516 am__include=.include
3523 { echo "$as_me:$LINENO: result: $_am_result" >&5
3524 echo "${ECHO_T}$_am_result" >&6; }
3525 rm -f confinc confmf
3527 # Check whether --enable-dependency-tracking was given.
3528 if test "${enable_dependency_tracking+set}" = set; then
3529 enableval=$enable_dependency_tracking;
3532 if test "x$enable_dependency_tracking" != xno; then
3533 am_depcomp="$ac_aux_dir/depcomp"
3536 if test "x$enable_dependency_tracking" != xno; then
3546 depcc="$CC" am_compiler_list=
3548 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3549 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3550 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3554 # We make a subdir and do the tests there. Otherwise we can end up
3555 # making bogus files that we don't know about and never remove. For
3556 # instance it was reported that on HP-UX the gcc test will end up
3557 # making a dummy file named `D' -- because `-MD' means `put the output
3560 # Copy depcomp to subdir because otherwise we won't find it if we're
3561 # using a relative directory.
3562 cp "$am_depcomp" conftest.dir
3564 # We will build objects and dependencies in a subdirectory because
3565 # it helps to detect inapplicable dependency modes. For instance
3566 # both Tru64's cc and ICC support -MD to output dependencies as a
3567 # side effect of compilation, but ICC will put the dependencies in
3568 # the current directory while Tru64 will put them in the object
3572 am_cv_CC_dependencies_compiler_type=none
3573 if test "$am_compiler_list" = ""; then
3574 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3576 for depmode in $am_compiler_list; do
3577 # Setup a source with many dependencies, because some compilers
3578 # like to wrap large dependency lists on column 80 (with \), and
3579 # we should not choose a depcomp mode which is confused by this.
3581 # We need to recreate these files for each test, as the compiler may
3582 # overwrite some of them when testing with obscure command lines.
3583 # This happens at least with the AIX C compiler.
3585 for i in 1 2 3 4 5 6; do
3586 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3587 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3588 # Solaris 8's {/usr,}/bin/sh.
3589 touch sub/conftst$i.h
3591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3595 # after this tag, mechanisms are not by side-effect, so they'll
3596 # only be used when explicitly requested
3597 if test "x$enable_dependency_tracking" = xyes; then
3605 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3606 # mode. It turns out that the SunPro C++ compiler does not properly
3607 # handle `-M -o', and we need to detect this.
3608 if depmode=$depmode \
3609 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3610 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3611 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3612 >/dev/null 2>conftest.err &&
3613 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3614 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3615 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3617 # icc doesn't choke on unknown options, it will just issue warnings
3618 # or remarks (even with -Werror). So we grep stderr for any message
3619 # that says an option was ignored or not supported.
3620 # When given -MP, icc 7.0 and 7.1 complain thusly:
3621 # icc: Command line warning: ignoring option '-M'; no argument required
3622 # The diagnosis changed in icc 8.0:
3623 # icc: Command line remark: option '-MP' not supported
3624 if (grep 'ignoring option' conftest.err ||
3625 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3626 am_cv_CC_dependencies_compiler_type=$depmode
3635 am_cv_CC_dependencies_compiler_type=none
3639 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3640 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3641 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3644 test "x$enable_dependency_tracking" != xno \
3645 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3647 am__fastdepCC_FALSE='#'
3649 am__fastdepCC_TRUE='#'
3650 am__fastdepCC_FALSE=
3655 ac_cpp='$CXXCPP $CPPFLAGS'
3656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3659 if test -z "$CXX"; then
3660 if test -n "$CCC"; then
3663 if test -n "$ac_tool_prefix"; then
3664 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3670 if test "${ac_cv_prog_CXX+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 if test -n "$CXX"; then
3674 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 if test -n "$CXX"; then
3695 { echo "$as_me:$LINENO: result: $CXX" >&5
3696 echo "${ECHO_T}$CXX" >&6; }
3698 { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3703 test -n "$CXX" && break
3706 if test -z "$CXX"; then
3708 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3710 # Extract the first word of "$ac_prog", so it can be a program name with args.
3711 set dummy $ac_prog; ac_word=$2
3712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3714 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 if test -n "$ac_ct_CXX"; then
3718 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727 ac_cv_prog_ac_ct_CXX="$ac_prog"
3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3738 if test -n "$ac_ct_CXX"; then
3739 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3740 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3742 { echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6; }
3747 test -n "$ac_ct_CXX" && break
3750 if test "x$ac_ct_CXX" = x; then
3753 case $cross_compiling:$ac_tool_warned in
3755 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3756 whose name does not start with the host triplet. If you think this
3757 configuration is useful to you, please write to autoconf@gnu.org." >&5
3758 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3759 whose name does not start with the host triplet. If you think this
3760 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3761 ac_tool_warned=yes ;;
3769 # Provide some information about the compiler.
3770 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3771 ac_compiler=`set X $ac_compile; echo $2`
3772 { (ac_try="$ac_compiler --version >&5"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778 (eval "$ac_compiler --version >&5") 2>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }
3782 { (ac_try="$ac_compiler -v >&5"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_compiler -v >&5") 2>&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }
3792 { (ac_try="$ac_compiler -V >&5"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compiler -V >&5") 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }
3803 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3804 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3805 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3826 rm -f conftest.$ac_objext
3827 if { (ac_try="$ac_compile"
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_compile") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1 >conftest.err
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } && {
3840 test -z "$ac_cxx_werror_flag" ||
3841 test ! -s conftest.err
3842 } && test -s conftest.$ac_objext; then
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3852 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3855 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3856 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3857 GXX=`test $ac_compiler_gnu = yes && echo yes`
3858 ac_test_CXXFLAGS=${CXXFLAGS+set}
3859 ac_save_CXXFLAGS=$CXXFLAGS
3860 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3861 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3862 if test "${ac_cv_prog_cxx_g+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3866 ac_cxx_werror_flag=yes
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3884 rm -f conftest.$ac_objext
3885 if { (ac_try="$ac_compile"
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_compile") 2>conftest.er1
3893 grep -v '^ *+' conftest.er1 >conftest.err
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } && {
3898 test -z "$ac_cxx_werror_flag" ||
3899 test ! -s conftest.err
3900 } && test -s conftest.$ac_objext; then
3901 ac_cv_prog_cxx_g=yes
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3907 cat >conftest.$ac_ext <<_ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3922 rm -f conftest.$ac_objext
3923 if { (ac_try="$ac_compile"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_compile") 2>conftest.er1
3931 grep -v '^ *+' conftest.er1 >conftest.err
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && {
3936 test -z "$ac_cxx_werror_flag" ||
3937 test ! -s conftest.err
3938 } && test -s conftest.$ac_objext; then
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3944 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3946 cat >conftest.$ac_ext <<_ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_compile") 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && {
3975 test -z "$ac_cxx_werror_flag" ||
3976 test ! -s conftest.err
3977 } && test -s conftest.$ac_objext; then
3978 ac_cv_prog_cxx_g=yes
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3995 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3996 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3997 if test "$ac_test_CXXFLAGS" = set; then
3998 CXXFLAGS=$ac_save_CXXFLAGS
3999 elif test $ac_cv_prog_cxx_g = yes; then
4000 if test "$GXX" = yes; then
4006 if test "$GXX" = yes; then
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4018 depcc="$CXX" am_compiler_list=
4020 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4021 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4022 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4026 # We make a subdir and do the tests there. Otherwise we can end up
4027 # making bogus files that we don't know about and never remove. For
4028 # instance it was reported that on HP-UX the gcc test will end up
4029 # making a dummy file named `D' -- because `-MD' means `put the output
4032 # Copy depcomp to subdir because otherwise we won't find it if we're
4033 # using a relative directory.
4034 cp "$am_depcomp" conftest.dir
4036 # We will build objects and dependencies in a subdirectory because
4037 # it helps to detect inapplicable dependency modes. For instance
4038 # both Tru64's cc and ICC support -MD to output dependencies as a
4039 # side effect of compilation, but ICC will put the dependencies in
4040 # the current directory while Tru64 will put them in the object
4044 am_cv_CXX_dependencies_compiler_type=none
4045 if test "$am_compiler_list" = ""; then
4046 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4048 for depmode in $am_compiler_list; do
4049 # Setup a source with many dependencies, because some compilers
4050 # like to wrap large dependency lists on column 80 (with \), and
4051 # we should not choose a depcomp mode which is confused by this.
4053 # We need to recreate these files for each test, as the compiler may
4054 # overwrite some of them when testing with obscure command lines.
4055 # This happens at least with the AIX C compiler.
4057 for i in 1 2 3 4 5 6; do
4058 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4059 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4060 # Solaris 8's {/usr,}/bin/sh.
4061 touch sub/conftst$i.h
4063 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4067 # after this tag, mechanisms are not by side-effect, so they'll
4068 # only be used when explicitly requested
4069 if test "x$enable_dependency_tracking" = xyes; then
4077 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4078 # mode. It turns out that the SunPro C++ compiler does not properly
4079 # handle `-M -o', and we need to detect this.
4080 if depmode=$depmode \
4081 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4082 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4083 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4084 >/dev/null 2>conftest.err &&
4085 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4086 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4087 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4088 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4089 # icc doesn't choke on unknown options, it will just issue warnings
4090 # or remarks (even with -Werror). So we grep stderr for any message
4091 # that says an option was ignored or not supported.
4092 # When given -MP, icc 7.0 and 7.1 complain thusly:
4093 # icc: Command line warning: ignoring option '-M'; no argument required
4094 # The diagnosis changed in icc 8.0:
4095 # icc: Command line remark: option '-MP' not supported
4096 if (grep 'ignoring option' conftest.err ||
4097 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4098 am_cv_CXX_dependencies_compiler_type=$depmode
4107 am_cv_CXX_dependencies_compiler_type=none
4111 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4112 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4113 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4116 test "x$enable_dependency_tracking" != xno \
4117 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4118 am__fastdepCXX_TRUE=
4119 am__fastdepCXX_FALSE='#'
4121 am__fastdepCXX_TRUE='#'
4122 am__fastdepCXX_FALSE=
4128 if test "x$CC" != xcc; then
4129 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4130 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
4132 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4133 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
4135 set dummy $CC; ac_cc=`echo $2 |
4136 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4137 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4155 # Make sure it works both with $CC and with simple cc.
4156 # We do the test twice because some compilers refuse to overwrite an
4157 # existing .o file with -o, though they will create one.
4158 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4160 if { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); };
4179 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4180 if test "x$CC" != xcc; then
4181 # Test first that cc exists at all.
4182 if { ac_try='cc -c conftest.$ac_ext >&5'
4183 { (case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188 (eval "$ac_try") 2>&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; }; then
4192 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4194 if { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } &&
4203 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_try") 2>&5
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); };
4216 # cc exists but doesn't like -o.
4217 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4222 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4224 rm -f core conftest*
4227 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4228 { echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6; }
4231 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4234 cat >>confdefs.h <<\_ACEOF
4235 #define NO_MINUS_C_MINUS_O 1
4240 # FIXME: we rely on the cache variable name because
4241 # there is no other way.
4243 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4244 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4245 # Losing compiler, so override with the script.
4246 # FIXME: It is wrong to rewrite CC.
4247 # But if we don't then we get into trouble of one sort or another.
4248 # A longer-term fix would be to have automake use am__CC in this case,
4249 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4250 CC="$am_aux_dir/compile $CC"
4253 # Needed for subdir-objects in AUTOMAKE_OPTIONS
4256 { echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
4257 echo $ECHO_N "checking maximum warning verbosity option... $ECHO_C" >&6; }
4262 # Check whether --with-maximum-compile-warnings was given.
4263 if test "${with_maximum_compile_warnings+set}" = set; then
4264 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
4266 ac_compile_warnings_on=""
4270 if test x"$ac_compile_warnings_on" = xno
4272 ac_compile_warnings_msg=no
4276 if test "$GXX" = "yes"
4278 ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
4280 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
4281 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
4286 if test "$GCC" = "yes"
4288 ac_compile_warnings_opt='-Wall -W -ansi -pedantic'
4290 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
4291 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
4294 { echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
4295 echo "${ECHO_T}$ac_compile_warnings_msg" >&6; }
4296 unset ac_compile_warnings_msg
4297 unset ac_compile_warnings_opt
4298 # Increase warning levels
4301 cat >>confdefs.h <<_ACEOF
4302 #define SWIG_CXX "$CXX"
4306 cat >>confdefs.h <<_ACEOF
4307 #define SWIG_PLATFORM "$build"
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4318 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4319 # On Suns, sometimes $CPP names a directory.
4320 if test -n "$CPP" && test -d "$CPP"; then
4323 if test -z "$CPP"; then
4324 if test "${ac_cv_prog_CPP+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 # Double quotes because CPP needs to be expanded
4328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4331 for ac_c_preproc_warn_flag in '' yes
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4346 # include <limits.h>
4348 # include <assert.h>
4352 if { (ac_try="$ac_cpp conftest.$ac_ext"
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4360 grep -v '^ *+' conftest.er1 >conftest.err
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } >/dev/null && {
4365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 # Broken: fails on valid input.
4377 rm -f conftest.err conftest.$ac_ext
4379 # OK, works on sane cases. Now check whether nonexistent headers
4380 # can be detected and how.
4381 cat >conftest.$ac_ext <<_ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 #include <ac_nonexistent.h>
4389 if { (ac_try="$ac_cpp conftest.$ac_ext"
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } >/dev/null && {
4402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4405 # Broken: success on invalid input.
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 # Passes both tests.
4416 rm -f conftest.err conftest.$ac_ext
4419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420 rm -f conftest.err conftest.$ac_ext
4421 if $ac_preproc_ok; then
4433 { echo "$as_me:$LINENO: result: $CPP" >&5
4434 echo "${ECHO_T}$CPP" >&6; }
4436 for ac_c_preproc_warn_flag in '' yes
4438 # Use a header file that comes with gcc, so configuring glibc
4439 # with a fresh cross-compiler works.
4440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441 # <limits.h> exists even on freestanding compilers.
4442 # On the NeXT, cc -E runs the code through the compiler's parser,
4443 # not just through cpp. "Syntax error" is here to catch this case.
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4451 # include <limits.h>
4453 # include <assert.h>
4457 if { (ac_try="$ac_cpp conftest.$ac_ext"
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null && {
4470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 # Broken: fails on valid input.
4482 rm -f conftest.err conftest.$ac_ext
4484 # OK, works on sane cases. Now check whether nonexistent headers
4485 # can be detected and how.
4486 cat >conftest.$ac_ext <<_ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 #include <ac_nonexistent.h>
4494 if { (ac_try="$ac_cpp conftest.$ac_ext"
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4502 grep -v '^ *+' conftest.er1 >conftest.err
4504 cat conftest.err >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); } >/dev/null && {
4507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4508 test ! -s conftest.err
4510 # Broken: success on invalid input.
4513 echo "$as_me: failed program was:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 # Passes both tests.
4521 rm -f conftest.err conftest.$ac_ext
4524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525 rm -f conftest.err conftest.$ac_ext
4526 if $ac_preproc_ok; then
4529 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4530 See \`config.log' for more details." >&5
4531 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4532 See \`config.log' for more details." >&2;}
4533 { (exit 1); exit 1; }; }
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4544 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4545 if test "${ac_cv_path_GREP+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 # Extract the first word of "grep ggrep" to use in msg output
4549 if test -z "$GREP"; then
4550 set dummy grep ggrep; ac_prog_name=$2
4551 if test "${ac_cv_path_GREP+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_path_GREP_found=false
4555 # Loop through the user's path and test for each of PROGNAME-LIST
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560 test -z "$as_dir" && as_dir=.
4561 for ac_prog in grep ggrep; do
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4564 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4565 # Check for GNU ac_path_GREP and select it if it is found.
4566 # Check for GNU $ac_path_GREP
4567 case `"$ac_path_GREP" --version 2>&1` in
4569 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4575 cat "conftest.in" "conftest.in" >"conftest.tmp"
4576 mv "conftest.tmp" "conftest.in"
4577 cp "conftest.in" "conftest.nl"
4578 echo 'GREP' >> "conftest.nl"
4579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4581 ac_count=`expr $ac_count + 1`
4582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4583 # Best one so far, save it but keep looking for a better one
4584 ac_cv_path_GREP="$ac_path_GREP"
4585 ac_path_GREP_max=$ac_count
4587 # 10*(2^10) chars as input seems more than enough
4588 test $ac_count -gt 10 && break
4590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4594 $ac_path_GREP_found && break 3
4604 GREP="$ac_cv_path_GREP"
4605 if test -z "$GREP"; then
4606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4608 { (exit 1); exit 1; }; }
4612 ac_cv_path_GREP=$GREP
4617 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4618 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4619 GREP="$ac_cv_path_GREP"
4622 { echo "$as_me:$LINENO: checking for egrep" >&5
4623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4624 if test "${ac_cv_path_EGREP+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4628 then ac_cv_path_EGREP="$GREP -E"
4630 # Extract the first word of "egrep" to use in msg output
4631 if test -z "$EGREP"; then
4632 set dummy egrep; ac_prog_name=$2
4633 if test "${ac_cv_path_EGREP+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 ac_path_EGREP_found=false
4637 # Loop through the user's path and test for each of PROGNAME-LIST
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4642 test -z "$as_dir" && as_dir=.
4643 for ac_prog in egrep; do
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4646 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4647 # Check for GNU ac_path_EGREP and select it if it is found.
4648 # Check for GNU $ac_path_EGREP
4649 case `"$ac_path_EGREP" --version 2>&1` in
4651 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4654 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4657 cat "conftest.in" "conftest.in" >"conftest.tmp"
4658 mv "conftest.tmp" "conftest.in"
4659 cp "conftest.in" "conftest.nl"
4660 echo 'EGREP' >> "conftest.nl"
4661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4662 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4663 ac_count=`expr $ac_count + 1`
4664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4665 # Best one so far, save it but keep looking for a better one
4666 ac_cv_path_EGREP="$ac_path_EGREP"
4667 ac_path_EGREP_max=$ac_count
4669 # 10*(2^10) chars as input seems more than enough
4670 test $ac_count -gt 10 && break
4672 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4676 $ac_path_EGREP_found && break 3
4686 EGREP="$ac_cv_path_EGREP"
4687 if test -z "$EGREP"; then
4688 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4689 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4690 { (exit 1); exit 1; }; }
4694 ac_cv_path_EGREP=$EGREP
4700 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4701 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4702 EGREP="$ac_cv_path_EGREP"
4705 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4706 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4707 if test "${ac_cv_header_stdc+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4729 rm -f conftest.$ac_objext
4730 if { (ac_try="$ac_compile"
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_compile") 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && {
4743 test -z "$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4745 } && test -s conftest.$ac_objext; then
4746 ac_cv_header_stdc=yes
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 ac_cv_header_stdc=no
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 if test $ac_cv_header_stdc = yes; then
4757 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 $EGREP "memchr" >/dev/null 2>&1; then
4771 ac_cv_header_stdc=no
4777 if test $ac_cv_header_stdc = yes; then
4778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4779 cat >conftest.$ac_ext <<_ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4789 $EGREP "free" >/dev/null 2>&1; then
4792 ac_cv_header_stdc=no
4798 if test $ac_cv_header_stdc = yes; then
4799 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4800 if test "$cross_compiling" = yes; then
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4811 #if ((' ' & 0x0FF) == 0x020)
4812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4815 # define ISLOWER(c) \
4816 (('a' <= (c) && (c) <= 'i') \
4817 || ('j' <= (c) && (c) <= 'r') \
4818 || ('s' <= (c) && (c) <= 'z'))
4819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4827 for (i = 0; i < 256; i++)
4828 if (XOR (islower (i), ISLOWER (i))
4829 || toupper (i) != TOUPPER (i))
4834 rm -f conftest$ac_exeext
4835 if { (ac_try="$ac_link"
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_link") 2>&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4845 { (case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_try") 2>&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4856 echo "$as_me: program exited with status $ac_status" >&5
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4861 ac_cv_header_stdc=no
4863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4869 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4870 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4871 if test $ac_cv_header_stdc = yes; then
4873 cat >>confdefs.h <<\_ACEOF
4874 #define STDC_HEADERS 1
4881 ac_cpp='$CXXCPP $CPPFLAGS'
4882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4887 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4897 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4898 inttypes.h stdint.h unistd.h
4900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 $ac_includes_default
4914 #include <$ac_header>
4916 rm -f conftest.$ac_objext
4917 if { (ac_try="$ac_compile"
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_compile") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_cxx_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest.$ac_objext; then
4933 eval "$as_ac_Header=yes"
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 eval "$as_ac_Header=no"
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 ac_res=`eval echo '${'$as_ac_Header'}'`
4944 { echo "$as_me:$LINENO: result: $ac_res" >&5
4945 echo "${ECHO_T}$ac_res" >&6; }
4946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4947 cat >>confdefs.h <<_ACEOF
4948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4956 { echo "$as_me:$LINENO: checking for bool" >&5
4957 echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
4958 if test "${ac_cv_type_bool+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4961 cat >conftest.$ac_ext <<_ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4967 $ac_includes_default
4968 typedef bool ac__type_new_;
4972 if ((ac__type_new_ *) 0)
4974 if (sizeof (ac__type_new_))
4980 rm -f conftest.$ac_objext
4981 if { (ac_try="$ac_compile"
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_compile") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_cxx_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest.$ac_objext; then
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5007 { echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
5008 echo "${ECHO_T}$ac_cv_type_bool" >&6; }
5009 if test $ac_cv_type_bool = yes; then
5011 cat >>confdefs.h <<_ACEOF
5019 ac_cpp='$CPP $CPPFLAGS'
5020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026 # Check whether --with-popen was given.
5027 if test "${with_popen+set}" = set; then
5028 withval=$with_popen; with_popen="$withval"
5031 if test x"${with_popen}" = xno ; then
5032 { echo "$as_me:$LINENO: Disabling popen" >&5
5033 echo "$as_me: Disabling popen" >&6;}
5035 { echo "$as_me:$LINENO: checking for popen" >&5
5036 echo $ECHO_N "checking for popen... $ECHO_C" >&6; }
5037 if test "${ac_cv_func_popen+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 cat >conftest.$ac_ext <<_ACEOF
5043 cat confdefs.h >>conftest.$ac_ext
5044 cat >>conftest.$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 /* Define popen to an innocuous variant, in case <limits.h> declares popen.
5047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5048 #define popen innocuous_popen
5050 /* System header to define __stub macros and hopefully few prototypes,
5051 which can conflict with char popen (); below.
5052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5053 <limits.h> exists even on freestanding compilers. */
5056 # include <limits.h>
5058 # include <assert.h>
5063 /* Override any GCC internal prototype to avoid an error.
5064 Use char because int might match the return type of a GCC
5065 builtin and then its argument prototype would still apply. */
5070 /* The GNU C library defines this for functions which it implements
5071 to always fail with ENOSYS. Some functions are actually named
5072 something starting with __ and the normal name is an alias. */
5073 #if defined __stub_popen || defined __stub___popen
5085 rm -f conftest.$ac_objext conftest$ac_exeext
5086 if { (ac_try="$ac_link"
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_link") 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && {
5099 test -z "$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 } && test -s conftest$ac_exeext &&
5102 $as_test_x conftest$ac_exeext; then
5103 ac_cv_func_popen=yes
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5112 conftest$ac_exeext conftest.$ac_ext
5114 { echo "$as_me:$LINENO: result: $ac_cv_func_popen" >&5
5115 echo "${ECHO_T}$ac_cv_func_popen" >&6; }
5116 if test $ac_cv_func_popen = yes; then
5118 cat >>confdefs.h <<\_ACEOF
5119 #define HAVE_POPEN 1
5123 { echo "$as_me:$LINENO: Disabling popen" >&5
5124 echo "$as_me: Disabling popen" >&6;}
5130 # Check whether --with-rxspencer was given.
5131 if test "${with_rxspencer+set}" = set; then
5132 withval=$with_rxspencer; with_rxspencer="yes"
5135 if test x"${with_rxspencer}" = xyes ; then
5136 #check first for the header
5137 if test "${ac_cv_header_rxspencer_regex_h+set}" = set; then
5138 { echo "$as_me:$LINENO: checking for rxspencer/regex.h" >&5
5139 echo $ECHO_N "checking for rxspencer/regex.h... $ECHO_C" >&6; }
5140 if test "${ac_cv_header_rxspencer_regex_h+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 { echo "$as_me:$LINENO: result: $ac_cv_header_rxspencer_regex_h" >&5
5144 echo "${ECHO_T}$ac_cv_header_rxspencer_regex_h" >&6; }
5146 # Is the header compilable?
5147 { echo "$as_me:$LINENO: checking rxspencer/regex.h usability" >&5
5148 echo $ECHO_N "checking rxspencer/regex.h usability... $ECHO_C" >&6; }
5149 cat >conftest.$ac_ext <<_ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 $ac_includes_default
5156 #include <rxspencer/regex.h>
5158 rm -f conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_compile") 2>conftest.er1
5167 grep -v '^ *+' conftest.er1 >conftest.err
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } && {
5172 test -z "$ac_c_werror_flag" ||
5173 test ! -s conftest.err
5174 } && test -s conftest.$ac_objext; then
5175 ac_header_compiler=yes
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5180 ac_header_compiler=no
5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5185 echo "${ECHO_T}$ac_header_compiler" >&6; }
5187 # Is the header present?
5188 { echo "$as_me:$LINENO: checking rxspencer/regex.h presence" >&5
5189 echo $ECHO_N "checking rxspencer/regex.h presence... $ECHO_C" >&6; }
5190 cat >conftest.$ac_ext <<_ACEOF
5193 cat confdefs.h >>conftest.$ac_ext
5194 cat >>conftest.$ac_ext <<_ACEOF
5195 /* end confdefs.h. */
5196 #include <rxspencer/regex.h>
5198 if { (ac_try="$ac_cpp conftest.$ac_ext"
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5203 eval "echo \"\$as_me:$LINENO: $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 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } >/dev/null && {
5211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5212 test ! -s conftest.err
5214 ac_header_preproc=yes
5216 echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5219 ac_header_preproc=no
5222 rm -f conftest.err conftest.$ac_ext
5223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5224 echo "${ECHO_T}$ac_header_preproc" >&6; }
5226 # So? What about this header?
5227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5229 { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
5230 echo "$as_me: WARNING: rxspencer/regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5231 { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: proceeding with the compiler's result" >&5
5232 echo "$as_me: WARNING: rxspencer/regex.h: proceeding with the compiler's result" >&2;}
5233 ac_header_preproc=yes
5236 { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: present but cannot be compiled" >&5
5237 echo "$as_me: WARNING: rxspencer/regex.h: present but cannot be compiled" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: check for missing prerequisite headers?" >&5
5239 echo "$as_me: WARNING: rxspencer/regex.h: check for missing prerequisite headers?" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: see the Autoconf documentation" >&5
5241 echo "$as_me: WARNING: rxspencer/regex.h: see the Autoconf documentation" >&2;}
5242 { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: section \"Present But Cannot Be Compiled\"" >&5
5243 echo "$as_me: WARNING: rxspencer/regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
5244 { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: proceeding with the preprocessor's result" >&5
5245 echo "$as_me: WARNING: rxspencer/regex.h: proceeding with the preprocessor's result" >&2;}
5246 { echo "$as_me:$LINENO: WARNING: rxspencer/regex.h: in the future, the compiler will take precedence" >&5
5247 echo "$as_me: WARNING: rxspencer/regex.h: in the future, the compiler will take precedence" >&2;}
5249 ## ---------------------------------- ##
5250 ## Report this to http://www.swig.org ##
5251 ## ---------------------------------- ##
5253 ) | sed "s/^/$as_me: WARNING: /" >&2
5256 { echo "$as_me:$LINENO: checking for rxspencer/regex.h" >&5
5257 echo $ECHO_N "checking for rxspencer/regex.h... $ECHO_C" >&6; }
5258 if test "${ac_cv_header_rxspencer_regex_h+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 ac_cv_header_rxspencer_regex_h=$ac_header_preproc
5263 { echo "$as_me:$LINENO: result: $ac_cv_header_rxspencer_regex_h" >&5
5264 echo "${ECHO_T}$ac_cv_header_rxspencer_regex_h" >&6; }
5267 if test $ac_cv_header_rxspencer_regex_h = yes; then
5268 with_rxspencer="yes"
5274 if test x"${with_rxspencer}" = xyes ; then
5275 # now check for the library
5276 { echo "$as_me:$LINENO: checking for regcomp in -lrxspencer" >&5
5277 echo $ECHO_N "checking for regcomp in -lrxspencer... $ECHO_C" >&6; }
5278 if test "${ac_cv_lib_rxspencer_regcomp+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 ac_check_lib_save_LIBS=$LIBS
5282 LIBS="-lrxspencer $LIBS"
5283 cat >conftest.$ac_ext <<_ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5290 /* Override any GCC internal prototype to avoid an error.
5291 Use char because int might match the return type of a GCC
5292 builtin and then its argument prototype would still apply. */
5305 rm -f conftest.$ac_objext conftest$ac_exeext
5306 if { (ac_try="$ac_link"
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_link") 2>conftest.er1
5314 grep -v '^ *+' conftest.er1 >conftest.err
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && {
5319 test -z "$ac_c_werror_flag" ||
5320 test ! -s conftest.err
5321 } && test -s conftest$ac_exeext &&
5322 $as_test_x conftest$ac_exeext; then
5323 ac_cv_lib_rxspencer_regcomp=yes
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5328 ac_cv_lib_rxspencer_regcomp=no
5331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5332 conftest$ac_exeext conftest.$ac_ext
5333 LIBS=$ac_check_lib_save_LIBS
5335 { echo "$as_me:$LINENO: result: $ac_cv_lib_rxspencer_regcomp" >&5
5336 echo "${ECHO_T}$ac_cv_lib_rxspencer_regcomp" >&6; }
5337 if test $ac_cv_lib_rxspencer_regcomp = yes; then
5338 with_rxspencer="yes"
5344 if test x"${with_rxspencer}" = xyes ; then
5345 # library and header are available
5347 cat >>confdefs.h <<\_ACEOF
5348 #define HAVE_RXSPENCER 1
5351 LIBS="$LIBS -lrxspencer"
5353 { echo "$as_me:$LINENO: RxSpencer not found. Obtain it at http://arglist.com/regex or http://gnuwin32.sourceforge.net/packages.html" >&5
5354 echo "$as_me: RxSpencer not found. Obtain it at http://arglist.com/regex or http://gnuwin32.sourceforge.net/packages.html" >&6;}
5358 # Check whether --enable-ccache was given.
5359 if test "${enable_ccache+set}" = set; then
5360 enableval=$enable_ccache; enable_ccache=$enableval
5365 { echo "$as_me:$LINENO: checking whether to enable ccache-swig" >&5
5366 echo $ECHO_N "checking whether to enable ccache-swig... $ECHO_C" >&6; }
5367 { echo "$as_me:$LINENO: result: $enable_ccache" >&5
5368 echo "${ECHO_T}$enable_ccache" >&6; }
5370 if test "$enable_ccache" = yes; then
5371 subdirs="$subdirs CCache"
5379 echo "Checking packages required for SWIG developers."
5380 echo "Note : None of the following packages are required for users to compile and install SWIG"
5383 for ac_prog in 'bison -y' byacc
5385 # Extract the first word of "$ac_prog", so it can be a program name with args.
5386 set dummy $ac_prog; ac_word=$2
5387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5389 if test "${ac_cv_prog_YACC+set}" = set; then
5390 echo $ECHO_N "(cached) $ECHO_C" >&6
5392 if test -n "$YACC"; then
5393 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_YACC="$ac_prog"
5403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 YACC=$ac_cv_prog_YACC
5413 if test -n "$YACC"; then
5414 { echo "$as_me:$LINENO: result: $YACC" >&5
5415 echo "${ECHO_T}$YACC" >&6; }
5417 { echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6; }
5422 test -n "$YACC" && break
5424 test -n "$YACC" || YACC="yacc"
5426 if test -n "$ac_tool_prefix"; then
5427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5431 if test "${ac_cv_prog_RANLIB+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 if test -n "$RANLIB"; then
5435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 RANLIB=$ac_cv_prog_RANLIB
5455 if test -n "$RANLIB"; then
5456 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5457 echo "${ECHO_T}$RANLIB" >&6; }
5459 { echo "$as_me:$LINENO: result: no" >&5
5460 echo "${ECHO_T}no" >&6; }
5465 if test -z "$ac_cv_prog_RANLIB"; then
5466 ac_ct_RANLIB=$RANLIB
5467 # Extract the first word of "ranlib", so it can be a program name with args.
5468 set dummy ranlib; ac_word=$2
5469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5471 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 if test -n "$ac_ct_RANLIB"; then
5475 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484 ac_cv_prog_ac_ct_RANLIB="ranlib"
5485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5495 if test -n "$ac_ct_RANLIB"; then
5496 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5497 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5499 { echo "$as_me:$LINENO: result: no" >&5
5500 echo "${ECHO_T}no" >&6; }
5503 if test "x$ac_ct_RANLIB" = x; then
5506 case $cross_compiling:$ac_tool_warned in
5508 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5509 whose name does not start with the host triplet. If you think this
5510 configuration is useful to you, please write to autoconf@gnu.org." >&5
5511 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5512 whose name does not start with the host triplet. If you think this
5513 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5514 ac_tool_warned=yes ;;
5516 RANLIB=$ac_ct_RANLIB
5519 RANLIB="$ac_cv_prog_RANLIB"
5522 for ac_prog in ar aal
5524 # Extract the first word of "$ac_prog", so it can be a program name with args.
5525 set dummy $ac_prog; ac_word=$2
5526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5528 if test "${ac_cv_prog_AR+set}" = set; then
5529 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 if test -n "$AR"; then
5532 ac_cv_prog_AR="$AR" # Let the user override the test.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 ac_cv_prog_AR="$ac_prog"
5542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 if test -n "$AR"; then
5553 { echo "$as_me:$LINENO: result: $AR" >&5
5554 echo "${ECHO_T}$AR" >&6; }
5556 { echo "$as_me:$LINENO: result: no" >&5
5557 echo "${ECHO_T}no" >&6; }
5561 test -n "$AR" && break
5563 test -n "$AR" || AR="ar"
5566 for ac_prog in yodl2man
5568 # Extract the first word of "$ac_prog", so it can be a program name with args.
5569 set dummy $ac_prog; ac_word=$2
5570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5572 if test "${ac_cv_prog_YODL2MAN+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 if test -n "$YODL2MAN"; then
5576 ac_cv_prog_YODL2MAN="$YODL2MAN" # Let the user override the test.
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_prog_YODL2MAN="$ac_prog"
5586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 YODL2MAN=$ac_cv_prog_YODL2MAN
5596 if test -n "$YODL2MAN"; then
5597 { echo "$as_me:$LINENO: result: $YODL2MAN" >&5
5598 echo "${ECHO_T}$YODL2MAN" >&6; }
5600 { echo "$as_me:$LINENO: result: no" >&5
5601 echo "${ECHO_T}no" >&6; }
5605 test -n "$YODL2MAN" && break
5608 for ac_prog in yodl2html
5610 # Extract the first word of "$ac_prog", so it can be a program name with args.
5611 set dummy $ac_prog; ac_word=$2
5612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5614 if test "${ac_cv_prog_YODL2HTML+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 if test -n "$YODL2HTML"; then
5618 ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627 ac_cv_prog_YODL2HTML="$ac_prog"
5628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 YODL2HTML=$ac_cv_prog_YODL2HTML
5638 if test -n "$YODL2HTML"; then
5639 { echo "$as_me:$LINENO: result: $YODL2HTML" >&5
5640 echo "${ECHO_T}$YODL2HTML" >&6; }
5642 { echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6; }
5647 test -n "$YODL2HTML" && break
5653 echo "Checking for installed target languages and other information in order to compile and run the examples."
5654 echo "Note : None of the following packages are required for users to compile and install SWIG"
5658 # -I should not be used on system directories (GCC)
5659 if test "$GCC" = yes; then
5667 # SO is the extension of shared libraries (including the dot!)
5668 { echo "$as_me:$LINENO: checking SO" >&5
5669 echo $ECHO_N "checking SO... $ECHO_C" >&6; }
5674 *-*-darwin*) SO=.bundle;;
5675 *-*-cygwin* | *-*-mingw*) SO=.dll;;
5679 { echo "$as_me:$LINENO: result: $SO" >&5
5680 echo "${ECHO_T}$SO" >&6; }
5682 # LDSHARED is the ld *command* used to create shared library
5683 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
5684 # (Shared libraries in this instance are shared modules to be loaded into
5685 # Python, as opposed to building Python itself as a shared library.)
5686 { echo "$as_me:$LINENO: checking LDSHARED" >&5
5687 echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6; }
5688 if test -z "$LDSHARED"
5691 *-*-aix*) LDSHARED="\$(srcdir)/ld_so_aix \$(CC)";;
5692 *-*-cygwin* | *-*-mingw*)
5693 if test "$GCC" = yes; then
5694 LDSHARED="$CC -shared"
5696 if test "cl" = $CC ; then
5697 # Microsoft Visual C++ (MSVC)
5698 LDSHARED="$CC -nologo -LD"
5700 # Unknown compiler try gcc approach
5701 LDSHARED="$CC -shared"
5704 *-*-irix5*) LDSHARED="ld -shared";;
5705 *-*-irix6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
5706 *-*-sunos4*) LDSHARED="ld";;
5707 *-*-solaris*) LDSHARED="ld -G";;
5708 *-*-hp*) LDSHARED="ld -b";;
5709 *-*-osf*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
5710 *-sequent-sysv4) LDSHARED="ld -G";;
5713 then LDSHARED='$(CC) $(LDFLAGS) -bundle -prebind'
5714 else LDSHARED='$(CC) $(CFLAGS) -nostdlib -r';
5716 if test "$with_next_framework" ; then
5717 LDSHARED="$LDSHARED \$(LDLIBRARY)"
5719 *-*-linux*) LDSHARED="gcc -shared";;
5720 *-*-dgux*) LDSHARED="ld -G";;
5721 *-*-freebsd3*) LDSHARED="gcc -shared";;
5722 *-*-freebsd* | *-*-openbsd*) LDSHARED="ld -Bshareable";;
5724 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
5726 LDSHARED="cc -shared"
5728 LDSHARED="ld -Bshareable"
5730 *-sco-sysv*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
5731 *-*-darwin*) LDSHARED="cc -bundle -undefined suppress -flat_namespace";;
5735 { echo "$as_me:$LINENO: result: $LDSHARED" >&5
5736 echo "${ECHO_T}$LDSHARED" >&6; }
5737 # CXXSHARED is the ld *command* used to create C++ shared library
5738 # -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
5739 # (Shared libraries in this instance are shared modules to be loaded into
5740 # Python, as opposed to building Python itself as a shared library.)
5741 { echo "$as_me:$LINENO: checking CXXSHARED" >&5
5742 echo $ECHO_N "checking CXXSHARED... $ECHO_C" >&6; }
5743 if test -z "$CXXSHARED"
5745 CXXSHARED="$LDSHARED"
5747 { echo "$as_me:$LINENO: result: $CXXSHARED" >&5
5748 echo "${ECHO_T}$CXXSHARED" >&6; }
5751 { echo "$as_me:$LINENO: checking TRYLINKINGWITHCXX" >&5
5752 echo $ECHO_N "checking TRYLINKINGWITHCXX... $ECHO_C" >&6; }
5753 if test -z "$TRYLINKINGWITHCXX"
5756 *-*-solaris*) if test "$GCC" = yes;
5757 then TRYLINKINGWITHCXX="CXXSHARED= $CXX -Wl,-G";
5758 else TRYLINKINGWITHCXX="CXXSHARED= $CXX -G -L/opt/SUNWspro/lib -lCrun -lCstd";
5760 *-*-hp*) TRYLINKINGWITHCXX="CXXSHARED= $CXX +z ";;
5761 *-*-darwin*) TRYLINKINGWITHCXX="CXXSHARED= $CXX -bundle -undefined suppress -flat_namespace";;
5762 *-*-cygwin* | *-*-mingw*)
5763 if test "$GCC" = yes; then
5764 TRYLINKINGWITHCXX="CXXSHARED= $CXX -shared "
5766 if test "cl" = $CXX ; then
5767 # Microsoft Visual C++ (MSVC)
5768 TRYLINKINGWITHCXX="CXXSHARED= $CXX -nologo -LD"
5770 TRYLINKINGWITHCXX="#unknown Windows compiler"
5773 *) TRYLINKINGWITHCXX="CXXSHARED= $CXX -shared ";;
5776 { echo "$as_me:$LINENO: result: $TRYLINKINGWITHCXX" >&5
5777 echo "${ECHO_T}$TRYLINKINGWITHCXX" >&6; }
5778 # CCSHARED are the C *flags* used to create objects to go into a shared
5779 # library (module) -- this is only needed for a few systems
5780 { echo "$as_me:$LINENO: checking CCSHARED" >&5
5781 echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6; }
5782 if test -z "$CCSHARED"
5785 *-*-hp*) if test "$GCC" = yes;
5786 then CCSHARED="-fpic";
5789 *-*-linux*) CCSHARED="-fpic";;
5790 *-*-freebsd* | *-*-openbsd*) CCSHARED="-fpic";;
5791 *-*-netbsd*) CCSHARED="-fPIC";;
5792 *-sco-sysv*) CCSHARED="-KPIC -dy -Bdynamic";;
5793 *-*-irix6*) case $CC in
5794 *gcc*) CCSHARED="-shared";;
5799 { echo "$as_me:$LINENO: result: $CCSHARED" >&5
5800 echo "${ECHO_T}$CCSHARED" >&6; }
5802 # RPATH is the path used to look for shared library files.
5803 { echo "$as_me:$LINENO: checking RPATH" >&5
5804 echo $ECHO_N "checking RPATH... $ECHO_C" >&6; }
5808 *-*-solaris*) RPATH='-R. -R$(exec_prefix)/lib';;
5809 *-*-irix*) RPATH='-rpath .:$(exec_prefix)/lib';;
5810 *-*-linux*) RPATH='-Xlinker -rpath $(exec_prefix)/lib -Xlinker -rpath .';;
5814 { echo "$as_me:$LINENO: result: $RPATH" >&5
5815 echo "${ECHO_T}$RPATH" >&6; }
5817 # LINKFORSHARED are the flags passed to the $(CC) command that links
5818 # the a few executables -- this is only needed for a few systems
5820 { echo "$as_me:$LINENO: checking LINKFORSHARED" >&5
5821 echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6; }
5822 if test -z "$LINKFORSHARED"
5825 *-*-aix*) LINKFORSHARED='-Wl,-bE:$(srcdir)/python.exp -lld';;
5827 LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
5828 *-*-linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
5829 *-*-next*) LINKFORSHARED="-u libsys_s";;
5830 *-sco-sysv*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
5831 *-*-irix6*) LINKFORSHARED="-all";;
5834 { echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5
5835 echo "${ECHO_T}$LINKFORSHARED" >&6; }
5837 # Set info about shared libraries.
5846 # This variation is needed on OS-X because there is no (apparent) consistency in shared library naming.
5847 # Sometimes .bundle works, but sometimes .so is needed. It depends on the target language
5851 *-*-mingw*) PYTHON_SO=.pyd;;
5852 *-*-darwin*) PYTHON_SO=.so;;
5858 *-*-darwin*) TCL_SO=.dylib;;
5864 *-*-darwin*) GUILE_SO=.so;;
5870 *-*-darwin*) PHP_SO=.so;;
5876 *) MZSCHEME_SO=.so;;
5881 *-*-darwin*) LUA_SO=.so;;
5885 # Optional CFLAGS used to silence compiler warnings on some platforms.
5889 *-*-darwin*) PLATFLAGS="-Wno-long-double";;
5894 # Check for specific libraries. Used for SWIG examples
5896 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5897 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5898 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 ac_check_lib_save_LIBS=$LIBS
5903 cat >conftest.$ac_ext <<_ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5910 /* Override any GCC internal prototype to avoid an error.
5911 Use char because int might match the return type of a GCC
5912 builtin and then its argument prototype would still apply. */
5925 rm -f conftest.$ac_objext conftest$ac_exeext
5926 if { (ac_try="$ac_link"
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_link") 2>conftest.er1
5934 grep -v '^ *+' conftest.er1 >conftest.err
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } && {
5939 test -z "$ac_c_werror_flag" ||
5940 test ! -s conftest.err
5941 } && test -s conftest$ac_exeext &&
5942 $as_test_x conftest$ac_exeext; then
5943 ac_cv_lib_dl_dlopen=yes
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5948 ac_cv_lib_dl_dlopen=no
5951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5952 conftest$ac_exeext conftest.$ac_ext
5953 LIBS=$ac_check_lib_save_LIBS
5955 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5956 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5957 if test $ac_cv_lib_dl_dlopen = yes; then
5958 cat >>confdefs.h <<_ACEOF
5959 #define HAVE_LIBDL 1
5965 # Dynamic linking for SunOS/Solaris and SYSV
5967 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
5968 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
5969 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 ac_check_lib_save_LIBS=$LIBS
5974 cat >conftest.$ac_ext <<_ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5981 /* Override any GCC internal prototype to avoid an error.
5982 Use char because int might match the return type of a GCC
5983 builtin and then its argument prototype would still apply. */
5996 rm -f conftest.$ac_objext conftest$ac_exeext
5997 if { (ac_try="$ac_link"
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_link") 2>conftest.er1
6005 grep -v '^ *+' conftest.er1 >conftest.err
6007 cat conftest.err >&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); } && {
6010 test -z "$ac_c_werror_flag" ||
6011 test ! -s conftest.err
6012 } && test -s conftest$ac_exeext &&
6013 $as_test_x conftest$ac_exeext; then
6014 ac_cv_lib_dld_shl_load=yes
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6019 ac_cv_lib_dld_shl_load=no
6022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6023 conftest$ac_exeext conftest.$ac_ext
6024 LIBS=$ac_check_lib_save_LIBS
6026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6027 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
6028 if test $ac_cv_lib_dld_shl_load = yes; then
6029 cat >>confdefs.h <<_ACEOF
6030 #define HAVE_LIBDLD 1
6036 # Dynamic linking for HP-UX
6038 { echo "$as_me:$LINENO: checking for library containing t_open" >&5
6039 echo $ECHO_N "checking for library containing t_open... $ECHO_C" >&6; }
6040 if test "${ac_cv_search_t_open+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 ac_func_search_save_LIBS=$LIBS
6044 cat >conftest.$ac_ext <<_ACEOF
6047 cat confdefs.h >>conftest.$ac_ext
6048 cat >>conftest.$ac_ext <<_ACEOF
6049 /* end confdefs.h. */
6051 /* Override any GCC internal prototype to avoid an error.
6052 Use char because int might match the return type of a GCC
6053 builtin and then its argument prototype would still apply. */
6066 for ac_lib in '' nsl; do
6067 if test -z "$ac_lib"; then
6068 ac_res="none required"
6071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6073 rm -f conftest.$ac_objext conftest$ac_exeext
6074 if { (ac_try="$ac_link"
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_link") 2>conftest.er1
6082 grep -v '^ *+' conftest.er1 >conftest.err
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && {
6087 test -z "$ac_c_werror_flag" ||
6088 test ! -s conftest.err
6089 } && test -s conftest$ac_exeext &&
6090 $as_test_x conftest$ac_exeext; then
6091 ac_cv_search_t_open=$ac_res
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6101 if test "${ac_cv_search_t_open+set}" = set; then
6105 if test "${ac_cv_search_t_open+set}" = set; then
6108 ac_cv_search_t_open=no
6111 LIBS=$ac_func_search_save_LIBS
6113 { echo "$as_me:$LINENO: result: $ac_cv_search_t_open" >&5
6114 echo "${ECHO_T}$ac_cv_search_t_open" >&6; }
6115 ac_res=$ac_cv_search_t_open
6116 if test "$ac_res" != no; then
6117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6121 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6122 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
6123 if test "${ac_cv_search_gethostbyname+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 ac_func_search_save_LIBS=$LIBS
6127 cat >conftest.$ac_ext <<_ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6134 /* Override any GCC internal prototype to avoid an error.
6135 Use char because int might match the return type of a GCC
6136 builtin and then its argument prototype would still apply. */
6140 char gethostbyname ();
6144 return gethostbyname ();
6149 for ac_lib in '' inet; do
6150 if test -z "$ac_lib"; then
6151 ac_res="none required"
6154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6156 rm -f conftest.$ac_objext conftest$ac_exeext
6157 if { (ac_try="$ac_link"
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_link") 2>conftest.er1
6165 grep -v '^ *+' conftest.er1 >conftest.err
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest$ac_exeext &&
6173 $as_test_x conftest$ac_exeext; then
6174 ac_cv_search_gethostbyname=$ac_res
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6184 if test "${ac_cv_search_gethostbyname+set}" = set; then
6188 if test "${ac_cv_search_gethostbyname+set}" = set; then
6191 ac_cv_search_gethostbyname=no
6194 LIBS=$ac_func_search_save_LIBS
6196 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6197 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
6198 ac_res=$ac_cv_search_gethostbyname
6199 if test "$ac_res" != no; then
6200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6204 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6205 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6206 if test "${ac_cv_search_socket+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 ac_func_search_save_LIBS=$LIBS
6210 cat >conftest.$ac_ext <<_ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6217 /* Override any GCC internal prototype to avoid an error.
6218 Use char because int might match the return type of a GCC
6219 builtin and then its argument prototype would still apply. */
6232 for ac_lib in '' socket; do
6233 if test -z "$ac_lib"; then
6234 ac_res="none required"
6237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6239 rm -f conftest.$ac_objext conftest$ac_exeext
6240 if { (ac_try="$ac_link"
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246 (eval "$ac_link") 2>conftest.er1
6248 grep -v '^ *+' conftest.er1 >conftest.err
6250 cat conftest.err >&5
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } && {
6253 test -z "$ac_c_werror_flag" ||
6254 test ! -s conftest.err
6255 } && test -s conftest$ac_exeext &&
6256 $as_test_x conftest$ac_exeext; then
6257 ac_cv_search_socket=$ac_res
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6267 if test "${ac_cv_search_socket+set}" = set; then
6271 if test "${ac_cv_search_socket+set}" = set; then
6274 ac_cv_search_socket=no
6277 LIBS=$ac_func_search_save_LIBS
6279 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6280 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6281 ac_res=$ac_cv_search_socket
6282 if test "$ac_res" != no; then
6283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6288 { echo "$as_me:$LINENO: checking for swill_init in -lswill" >&5
6289 echo $ECHO_N "checking for swill_init in -lswill... $ECHO_C" >&6; }
6290 if test "${ac_cv_lib_swill_swill_init+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 ac_check_lib_save_LIBS=$LIBS
6294 LIBS="-lswill $LIBS"
6295 cat >conftest.$ac_ext <<_ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6302 /* Override any GCC internal prototype to avoid an error.
6303 Use char because int might match the return type of a GCC
6304 builtin and then its argument prototype would still apply. */
6312 return swill_init ();
6317 rm -f conftest.$ac_objext conftest$ac_exeext
6318 if { (ac_try="$ac_link"
6320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6321 *) ac_try_echo=$ac_try;;
6323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6324 (eval "$ac_link") 2>conftest.er1
6326 grep -v '^ *+' conftest.er1 >conftest.err
6328 cat conftest.err >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } && {
6331 test -z "$ac_c_werror_flag" ||
6332 test ! -s conftest.err
6333 } && test -s conftest$ac_exeext &&
6334 $as_test_x conftest$ac_exeext; then
6335 ac_cv_lib_swill_swill_init=yes
6337 echo "$as_me: failed program was:" >&5
6338 sed 's/^/| /' conftest.$ac_ext >&5
6340 ac_cv_lib_swill_swill_init=no
6343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6344 conftest$ac_exeext conftest.$ac_ext
6345 LIBS=$ac_check_lib_save_LIBS
6347 { echo "$as_me:$LINENO: result: $ac_cv_lib_swill_swill_init" >&5
6348 echo "${ECHO_T}$ac_cv_lib_swill_swill_init" >&6; }
6349 if test $ac_cv_lib_swill_swill_init = yes; then
6350 SWIGLIBS="-lswill $LIBS" SWILL="-DSWIG_SWILL"
6356 # check for --with-libm=...
6360 # Check whether --with-libm was given.
6361 if test "${with_libm+set}" = set; then
6363 if test "$withval" != yes
6365 else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5
6366 echo "$as_me: error: proper usage is --with-libm=STRING" >&2;}
6367 { (exit 1); exit 1; }; }
6371 { echo "$as_me:$LINENO: checking for main in -lieee" >&5
6372 echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; }
6373 if test "${ac_cv_lib_ieee_main+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 ac_check_lib_save_LIBS=$LIBS
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_link") 2>conftest.er1
6403 grep -v '^ *+' conftest.er1 >conftest.err
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && {
6408 test -z "$ac_c_werror_flag" ||
6409 test ! -s conftest.err
6410 } && test -s conftest$ac_exeext &&
6411 $as_test_x conftest$ac_exeext; then
6412 ac_cv_lib_ieee_main=yes
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 ac_cv_lib_ieee_main=no
6420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6421 conftest$ac_exeext conftest.$ac_ext
6422 LIBS=$ac_check_lib_save_LIBS
6424 { echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5
6425 echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; }
6426 if test $ac_cv_lib_ieee_main = yes; then
6430 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
6431 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
6432 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 ac_check_lib_save_LIBS=$LIBS
6436 LIBS="-lcrypt $LIBS"
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6444 /* Override any GCC internal prototype to avoid an error.
6445 Use char because int might match the return type of a GCC
6446 builtin and then its argument prototype would still apply. */
6459 rm -f conftest.$ac_objext conftest$ac_exeext
6460 if { (ac_try="$ac_link"
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_link") 2>conftest.er1
6468 grep -v '^ *+' conftest.er1 >conftest.err
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && {
6473 test -z "$ac_c_werror_flag" ||
6474 test ! -s conftest.err
6475 } && test -s conftest$ac_exeext &&
6476 $as_test_x conftest$ac_exeext; then
6477 ac_cv_lib_crypt_crypt=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_cv_lib_crypt_crypt=no
6485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6486 conftest$ac_exeext conftest.$ac_ext
6487 LIBS=$ac_check_lib_save_LIBS
6489 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
6490 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
6491 if test $ac_cv_lib_crypt_crypt = yes; then
6497 # check for --with-libc=...
6500 # Check whether --with-libc was given.
6501 if test "${with_libc+set}" = set; then
6503 if test "$withval" != yes
6505 else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5
6506 echo "$as_me: error: proper usage is --with-libc=STRING" >&2;}
6507 { (exit 1); exit 1; }; }
6512 #--------------------------------------------------------------------
6513 # Locate the X11 header files and the X11 library archive. Try
6514 # the ac_path_x macro first, but if it doesn't find the X stuff
6515 # (e.g. because there's no xmkmf program) then check through
6516 # a list of possible directories. Under some conditions the
6517 # autoconf macro will return an include directory that contains
6518 # no include files, so double-check its result just to be safe.
6519 #--------------------------------------------------------------------
6521 { echo "$as_me:$LINENO: checking for X" >&5
6522 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
6525 # Check whether --with-x was given.
6526 if test "${with_x+set}" = set; then
6530 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6531 if test "x$with_x" = xno; then
6532 # The user explicitly disabled X.
6535 case $x_includes,$x_libraries in #(
6536 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6537 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6538 { (exit 1); exit 1; }; };; #(
6539 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 # One or both of the vars are not set, and there is no cached value.
6543 ac_x_includes=no ac_x_libraries=no
6544 rm -f -r conftest.dir
6545 if mkdir conftest.dir; then
6547 cat >Imakefile <<'_ACEOF'
6549 @echo incroot='${INCROOT}'
6551 @echo usrlibdir='${USRLIBDIR}'
6553 @echo libdir='${LIBDIR}'
6555 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6556 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6557 for ac_var in incroot usrlibdir libdir; do
6558 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6560 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6561 for ac_extension in a so sl; do
6562 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6563 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6564 ac_im_usrlibdir=$ac_im_libdir; break
6567 # Screen out bogus values from the imake configuration. They are
6568 # bogus both because they are the default anyway, and because
6569 # using them would break gcc on systems where it needs fixed includes.
6570 case $ac_im_incroot in
6571 /usr/include) ac_x_includes= ;;
6572 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6574 case $ac_im_usrlibdir in
6576 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6580 rm -f -r conftest.dir
6583 # Standard set of common directories for X headers.
6584 # Check X11 before X11Rn because it is often a symlink to the current release.
6596 /usr/local/X11/include
6597 /usr/local/X11R6/include
6598 /usr/local/X11R5/include
6599 /usr/local/X11R4/include
6601 /usr/local/include/X11
6602 /usr/local/include/X11R6
6603 /usr/local/include/X11R5
6604 /usr/local/include/X11R4
6608 /usr/XFree86/include/X11
6612 /usr/unsupported/include
6614 /usr/local/x11r5/include
6615 /usr/lpp/Xamples/include
6617 /usr/openwin/include
6618 /usr/openwin/share/include'
6620 if test "$ac_x_includes" = no; then
6621 # Guess where to find include files, by looking for Xlib.h.
6622 # First, try using that file with no special directory specified.
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 #include <X11/Xlib.h>
6631 if { (ac_try="$ac_cpp conftest.$ac_ext"
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6639 grep -v '^ *+' conftest.er1 >conftest.err
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } >/dev/null && {
6644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6647 # We can compile using X headers with no special include directory.
6650 echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6653 for ac_dir in $ac_x_header_dirs; do
6654 if test -r "$ac_dir/X11/Xlib.h"; then
6655 ac_x_includes=$ac_dir
6661 rm -f conftest.err conftest.$ac_ext
6662 fi # $ac_x_includes = no
6664 if test "$ac_x_libraries" = no; then
6665 # Check for the libraries.
6666 # See if we find them without any special options.
6667 # Don't add to $LIBS permanently.
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <X11/Xlib.h>
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (ac_try="$ac_link"
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6692 (eval "$ac_link") 2>conftest.er1
6694 grep -v '^ *+' conftest.er1 >conftest.err
6696 cat conftest.err >&5
6697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698 (exit $ac_status); } && {
6699 test -z "$ac_c_werror_flag" ||
6700 test ! -s conftest.err
6701 } && test -s conftest$ac_exeext &&
6702 $as_test_x conftest$ac_exeext; then
6704 # We can link X programs with no special library path.
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6711 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6713 # Don't even attempt the hair of trying to link an X program!
6714 for ac_extension in a so sl; do
6715 if test -r "$ac_dir/libX11.$ac_extension"; then
6716 ac_x_libraries=$ac_dir
6723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6724 conftest$ac_exeext conftest.$ac_ext
6725 fi # $ac_x_libraries = no
6727 case $ac_x_includes,$ac_x_libraries in #(
6729 # Didn't find X, or a directory has "'" in its name.
6730 ac_cv_have_x="have_x=no";; #(
6732 # Record where we found X for the cache.
6733 ac_cv_have_x="have_x=yes\
6734 ac_x_includes='$ac_x_includes'\
6735 ac_x_libraries='$ac_x_libraries'"
6741 eval "$ac_cv_have_x"
6744 if test "$have_x" != yes; then
6745 { echo "$as_me:$LINENO: result: $have_x" >&5
6746 echo "${ECHO_T}$have_x" >&6; }
6749 # If each of the values was on the command line, it overrides each guess.
6750 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6751 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6752 # Update the cache value to reflect the command line values.
6753 ac_cv_have_x="have_x=yes\
6754 ac_x_includes='$x_includes'\
6755 ac_x_libraries='$x_libraries'"
6756 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6757 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6761 if test "$no_x" = ""; then
6762 if test "$x_includes" = ""; then
6763 cat >conftest.$ac_ext <<_ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <X11/XIntrinsic.h>
6771 if { (ac_try="$ac_cpp conftest.$ac_ext"
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6779 grep -v '^ *+' conftest.er1 >conftest.err
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } >/dev/null && {
6784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 not_really_there="yes"
6795 rm -f conftest.err conftest.$ac_ext
6797 if test ! -r $x_includes/X11/Intrinsic.h; then
6798 not_really_there="yes"
6802 if test "$no_x" = "yes" -o "$not_really_there" = "yes"; then
6803 { echo "$as_me:$LINENO: checking for X11 header files" >&5
6804 echo $ECHO_N "checking for X11 header files... $ECHO_C" >&6; }
6805 XINCLUDES="# no special path needed"
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <X11/Intrinsic.h>
6814 if { (ac_try="$ac_cpp conftest.$ac_ext"
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6822 grep -v '^ *+' conftest.er1 >conftest.err
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } >/dev/null && {
6827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6828 test ! -s conftest.err
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6838 rm -f conftest.err conftest.$ac_ext
6839 if test -z "$XINCLUDES"; then
6840 dirs="/usr/unsupported/include /usr/local/include /usr/X386/include /usr/include/X11R4 /usr/X11R5/include /usr/include/X11R5 /usr/openwin/include /usr/X11/include /usr/sww/include /usr/X11R6/include /usr/include/X11R6"
6842 if test -r $i/X11/Intrinsic.h; then
6848 { echo "$as_me:$LINENO: result: $XINCLUDES" >&5
6849 echo "${ECHO_T}$XINCLUDES" >&6; }
6851 if test "$x_includes" != ""; then
6852 XINCLUDES=-I$x_includes
6854 XINCLUDES="# no special path needed"
6857 if test -z "$XINCLUDES"; then
6858 { echo "$as_me:$LINENO: result: couldn't find any!" >&5
6859 echo "${ECHO_T}couldn't find any!" >&6; }
6860 XINCLUDES="# no include files found"
6863 if test "$no_x" = yes; then
6864 { echo "$as_me:$LINENO: checking for X11 libraries" >&5
6865 echo $ECHO_N "checking for X11 libraries... $ECHO_C" >&6; }
6867 dirs="/usr/unsupported/lib /usr/local/lib /usr/X386/lib /usr/lib/X11R4 /usr/X11R5/lib /usr/lib/X11R5 /usr/X11R6/lib /usr/lib/X11R6 /usr/openwin/lib /usr/X11/lib /usr/sww/X11/lib"
6869 if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl; then
6870 { echo "$as_me:$LINENO: result: $i" >&5
6871 echo "${ECHO_T}$i" >&6; }
6877 if test "$x_libraries" = ""; then
6880 XLIBSW="-L$x_libraries -lX11"
6883 if test -z "$XLIBSW" ; then
6884 { echo "$as_me:$LINENO: checking for XCreateWindow in -lXwindow" >&5
6885 echo $ECHO_N "checking for XCreateWindow in -lXwindow... $ECHO_C" >&6; }
6886 if test "${ac_cv_lib_Xwindow_XCreateWindow+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 ac_check_lib_save_LIBS=$LIBS
6890 LIBS="-lXwindow $LIBS"
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6898 /* Override any GCC internal prototype to avoid an error.
6899 Use char because int might match the return type of a GCC
6900 builtin and then its argument prototype would still apply. */
6904 char XCreateWindow ();
6908 return XCreateWindow ();
6913 rm -f conftest.$ac_objext conftest$ac_exeext
6914 if { (ac_try="$ac_link"
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920 (eval "$ac_link") 2>conftest.er1
6922 grep -v '^ *+' conftest.er1 >conftest.err
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_c_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest$ac_exeext &&
6930 $as_test_x conftest$ac_exeext; then
6931 ac_cv_lib_Xwindow_XCreateWindow=yes
6933 echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_cv_lib_Xwindow_XCreateWindow=no
6939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6940 conftest$ac_exeext conftest.$ac_ext
6941 LIBS=$ac_check_lib_save_LIBS
6943 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xwindow_XCreateWindow" >&5
6944 echo "${ECHO_T}$ac_cv_lib_Xwindow_XCreateWindow" >&6; }
6945 if test $ac_cv_lib_Xwindow_XCreateWindow = yes; then
6950 if test -z "$XLIBSW" ; then
6951 { echo "$as_me:$LINENO: result: couldn't find any! Using -lX11." >&5
6952 echo "${ECHO_T}couldn't find any! Using -lX11." >&6; }
6960 # Check whether --with-alllang was given.
6961 if test "${with_alllang+set}" = set; then
6962 withval=$with_alllang; with_alllang="$withval"
6966 #--------------------------------------------------------------------
6968 #--------------------------------------------------------------------
6975 # Check whether --with-tclconfig was given.
6976 if test "${with_tclconfig+set}" = set; then
6977 withval=$with_tclconfig; with_tclconfig="$withval"
6983 # Check whether --with-tcl was given.
6984 if test "${with_tcl+set}" = set; then
6986 TCLPACKAGE="$withval"
6992 # Check whether --with-tclincl was given.
6993 if test "${with_tclincl+set}" = set; then
6994 withval=$with_tclincl;
6995 TCLINCLUDE="$ISYSTEM$withval"
7001 # Check whether --with-tcllib was given.
7002 if test "${with_tcllib+set}" = set; then
7003 withval=$with_tcllib;
7010 # First, check for "--without-tcl" or "--with-tcl=no".
7011 if test x"${TCLPACKAGE}" = xno -o x"${with_alllang}" = xno; then
7012 { echo "$as_me:$LINENO: Disabling Tcl" >&5
7013 echo "$as_me: Disabling Tcl" >&6;}
7015 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5
7016 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; }
7017 # First check to see if --with-tclconfig was specified.
7018 if test x"${with_tclconfig}" != x ; then
7019 if test -f "${with_tclconfig}/tclConfig.sh" ; then
7020 TCLCONFIG=`(cd ${with_tclconfig}; pwd)`
7022 { { echo "$as_me:$LINENO: error: ${with_tcl} directory doesn't contain tclConfig.sh" >&5
7023 echo "$as_me: error: ${with_tcl} directory doesn't contain tclConfig.sh" >&2;}
7024 { (exit 1); exit 1; }; }
7027 # check in a few common install locations
7028 if test x"${TCLCONFIG}" = x ; then
7029 for i in `ls -d /usr/lib/ 2>/dev/null` \
7030 `ls -d -r /usr/lib/tcl*/ 2>/dev/null` \
7031 `ls -d /usr/local/lib/ 2>/dev/null` \
7032 `ls -d -r /usr/local/lib/tcl*/ 2>/dev/null` ; do
7033 if test -f $i"tclConfig.sh" ; then
7034 TCLCONFIG=`(cd $i; pwd)`
7039 if test x"${TCLCONFIG}" = x ; then
7040 { echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6; }
7043 { echo "$as_me:$LINENO: result: found $TCLCONFIG/tclConfig.sh" >&5
7044 echo "${ECHO_T}found $TCLCONFIG/tclConfig.sh" >&6; }
7045 . $TCLCONFIG/tclConfig.sh
7046 if test -z "$TCLINCLUDE"; then
7047 TCLINCLUDE=`echo $TCL_INCLUDE_SPEC | sed "s/-I/$ISYSTEM/"`
7049 if test -z "$TCLLIB"; then
7050 TCLLIB=$TCL_LIB_SPEC
7054 if test -z "$TCLINCLUDE"; then
7055 if test "x$TCLPACKAGE" != xyes; then
7056 TCLINCLUDE="$ISYSTEM$TCLPACKAGE/include"
7060 if test -z "$TCLLIB"; then
7061 if test "x$TCLPACKAGE" != xyes; then
7062 TCLLIB="-L$TCLPACKAGE/lib -ltcl"
7066 { echo "$as_me:$LINENO: checking for Tcl header files" >&5
7067 echo $ECHO_N "checking for Tcl header files... $ECHO_C" >&6; }
7068 if test -z "$TCLINCLUDE"; then
7069 cat >conftest.$ac_ext <<_ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7077 if { (ac_try="$ac_cpp conftest.$ac_ext"
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7085 grep -v '^ *+' conftest.er1 >conftest.err
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } >/dev/null && {
7090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7101 rm -f conftest.err conftest.$ac_ext
7102 if test -z "$TCLINCLUDE"; then
7103 dirs="/usr/local/include /usr/include /opt/local/include"
7105 if test -r $i/tcl.h; then
7106 { echo "$as_me:$LINENO: result: $i" >&5
7107 echo "${ECHO_T}$i" >&6; }
7108 TCLINCLUDE="$ISYSTEM$i"
7113 if test -z "$TCLINCLUDE"; then
7114 { echo "$as_me:$LINENO: result: not found" >&5
7115 echo "${ECHO_T}not found" >&6; }
7118 { echo "$as_me:$LINENO: result: $TCLINCLUDE" >&5
7119 echo "${ECHO_T}$TCLINCLUDE" >&6; }
7122 { echo "$as_me:$LINENO: checking for Tcl library" >&5
7123 echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6; }
7124 if test -z "$TCLLIB"; then
7125 dirs="/usr/local/lib /usr/lib /opt/local/lib"
7127 if test -r $i/libtcl.a; then
7128 { echo "$as_me:$LINENO: result: $i" >&5
7129 echo "${ECHO_T}$i" >&6; }
7134 if test -z "$TCLLIB"; then
7135 { echo "$as_me:$LINENO: result: not found" >&5
7136 echo "${ECHO_T}not found" >&6; }
7139 { echo "$as_me:$LINENO: result: $TCLLIB" >&5
7140 echo "${ECHO_T}$TCLLIB" >&6; }
7143 # Cygwin (Windows) needs the library for dynamic linking
7145 *-*-cygwin* | *-*-mingw*) TCLDYNAMICLINKING="$TCLLIB";;
7146 *)TCLDYNAMICLINKING="";;
7151 TCLLDSHARED='$(CC) -dynamiclib -undefined suppress -flat_namespace'
7152 TCLCXXSHARED='$(CXX) -dynamiclib -undefined suppress -flat_namespace'
7155 TCLLDSHARED='$(LDSHARED)'
7156 TCLCXXSHARED='$(CXXSHARED)'
7168 #----------------------------------------------------------------
7170 #----------------------------------------------------------------
7177 # Check whether --with-python was given.
7178 if test "${with_python+set}" = set; then
7179 withval=$with_python; PYBIN="$withval"
7185 # First, check for "--without-python" or "--with-python=no".
7186 if test x"${PYBIN}" = xno -o x"${with_alllang}" = xno ; then
7187 { echo "$as_me:$LINENO: Disabling Python" >&5
7188 echo "$as_me: Disabling Python" >&6;}
7190 # First figure out the name of the Python executable
7192 if test "x$PYBIN" = xyes; then
7193 for ac_prog in python python2.8 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python1.4 python
7195 # Extract the first word of "$ac_prog", so it can be a program name with args.
7196 set dummy $ac_prog; ac_word=$2
7197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7199 if test "${ac_cv_prog_PYTHON+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 if test -n "$PYTHON"; then
7203 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_PYTHON="$ac_prog"
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 PYTHON=$ac_cv_prog_PYTHON
7223 if test -n "$PYTHON"; then
7224 { echo "$as_me:$LINENO: result: $PYTHON" >&5
7225 echo "${ECHO_T}$PYTHON" >&6; }
7227 { echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6; }
7232 test -n "$PYTHON" && break
7239 if test -n "$PYTHON"; then
7240 { echo "$as_me:$LINENO: checking for Python prefix" >&5
7241 echo $ECHO_N "checking for Python prefix... $ECHO_C" >&6; }
7242 PYPREFIX=`($PYTHON -c "import sys; print sys.prefix") 2>/dev/null`
7243 { echo "$as_me:$LINENO: result: $PYPREFIX" >&5
7244 echo "${ECHO_T}$PYPREFIX" >&6; }
7245 { echo "$as_me:$LINENO: checking for Python exec-prefix" >&5
7246 echo $ECHO_N "checking for Python exec-prefix... $ECHO_C" >&6; }
7247 PYEPREFIX=`($PYTHON -c "import sys; print sys.exec_prefix") 2>/dev/null`
7248 { echo "$as_me:$LINENO: result: $PYEPREFIX" >&5
7249 echo "${ECHO_T}$PYEPREFIX" >&6; }
7252 # Note: I could not think of a standard way to get the version string from different versions.
7253 # This trick pulls it out of the file location for a standard library file.
7255 { echo "$as_me:$LINENO: checking for Python version" >&5
7256 echo $ECHO_N "checking for Python version... $ECHO_C" >&6; }
7258 # Need to do this hack since autoconf replaces __file__ with the name of the configure file
7260 PYVERSION=`($PYTHON -c "import string,operator,os.path; print operator.getitem(os.path.split(operator.getitem(os.path.split(string.__$filehack),0)),1)")`
7261 { echo "$as_me:$LINENO: result: $PYVERSION" >&5
7262 echo "${ECHO_T}$PYVERSION" >&6; }
7264 # Find the directory for libraries this is necessary to deal with
7265 # platforms that can have apps built for multiple archs: e.g. x86_64
7266 { echo "$as_me:$LINENO: checking for Python lib dir" >&5
7267 echo $ECHO_N "checking for Python lib dir... $ECHO_C" >&6; }
7268 PYLIBDIR=`($PYTHON -c "import sys; print sys.lib") 2>/dev/null`
7269 if test -z "$PYLIBDIR"; then
7270 # older versions don't have sys.lib so the best we can do is assume lib
7273 { echo "$as_me:$LINENO: result: $PYLIBDIR" >&5
7274 echo "${ECHO_T}$PYLIBDIR" >&6; }
7276 # Set the include directory
7278 { echo "$as_me:$LINENO: checking for Python header files" >&5
7279 echo $ECHO_N "checking for Python header files... $ECHO_C" >&6; }
7280 if test -r $PYPREFIX/include/$PYVERSION/Python.h; then
7281 PYINCLUDE="-I$PYPREFIX/include/$PYVERSION -I$PYEPREFIX/$PYLIBDIR/$PYVERSION/config"
7283 if test -z "$PYINCLUDE"; then
7284 if test -r $PYPREFIX/include/Py/Python.h; then
7285 PYINCLUDE="-I$PYPREFIX/include/Py -I$PYEPREFIX/$PYLIBDIR/python/lib"
7288 { echo "$as_me:$LINENO: result: $PYINCLUDE" >&5
7289 echo "${ECHO_T}$PYINCLUDE" >&6; }
7291 # Set the library directory blindly. This probably won't work with older versions
7292 { echo "$as_me:$LINENO: checking for Python library" >&5
7293 echo $ECHO_N "checking for Python library... $ECHO_C" >&6; }
7294 dirs="$PYVERSION/config $PYVERSION/$PYLIBDIR python/$PYLIBDIR"
7296 if test -d $PYEPREFIX/$PYLIBDIR/$i; then
7297 PYLIB="$PYEPREFIX/$PYLIBDIR/$i"
7301 if test -z "$PYLIB"; then
7302 { echo "$as_me:$LINENO: result: Not found" >&5
7303 echo "${ECHO_T}Not found" >&6; }
7305 { echo "$as_me:$LINENO: result: $PYLIB" >&5
7306 echo "${ECHO_T}$PYLIB" >&6; }
7309 # Check for really old versions
7310 if test -r $PYLIB/libPython.a; then
7311 PYLINK="-lModules -lPython -lObjects -lParser"
7313 PYLINK="-l$PYVERSION"
7317 # Cygwin (Windows) needs the library for dynamic linking
7319 *-*-cygwin* | *-*-mingw*) PYTHONDYNAMICLINKING="-L$PYLIB $PYLINK"
7320 DEFS="-DUSE_DL_IMPORT $DEFS" PYINCLUDE="$PYINCLUDE"
7322 *)PYTHONDYNAMICLINKING="";;
7332 #----------------------------------------------------------------
7333 # Look for Python 3.x
7334 #----------------------------------------------------------------
7336 # mostly copy & pasted from "Look for Python" section,
7337 # did some trim, fix and rename
7344 # Check whether --with-python3 was given.
7345 if test "${with_python3+set}" = set; then
7346 withval=$with_python3; PY3BIN="$withval"
7352 # First, check for "--without-python3" or "--with-python3=no".
7353 if test x"${PY3BIN}" = xno -o x"${with_alllang}" = xno ; then
7354 { echo "$as_me:$LINENO: Disabling Python 3.x support" >&5
7355 echo "$as_me: Disabling Python 3.x support" >&6;}
7357 # First figure out the name of the Python3 executable
7359 if test "x$PY3BIN" = xyes; then
7360 for ac_prog in python3 python3.0 python3.1
7362 # Extract the first word of "$ac_prog", so it can be a program name with args.
7363 set dummy $ac_prog; ac_word=$2
7364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366 if test "${ac_cv_prog_PYTHON3+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 if test -n "$PYTHON3"; then
7370 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_prog_PYTHON3="$ac_prog"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 PYTHON3=$ac_cv_prog_PYTHON3
7390 if test -n "$PYTHON3"; then
7391 { echo "$as_me:$LINENO: result: $PYTHON3" >&5
7392 echo "${ECHO_T}$PYTHON3" >&6; }
7394 { echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6; }
7399 test -n "$PYTHON3" && break
7406 # Check for Python 3.x development tools (header files, static library and python3-config)
7407 if test "x$PYTHON3" = x; then
7408 for ac_prog in python3-config python3.0-config python3.1-config
7410 # Extract the first word of "$ac_prog", so it can be a program name with args.
7411 set dummy $ac_prog; ac_word=$2
7412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7414 if test "${ac_cv_prog_PY3CONFIG+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 if test -n "$PY3CONFIG"; then
7418 ac_cv_prog_PY3CONFIG="$PY3CONFIG" # Let the user override the test.
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_prog_PY3CONFIG="$ac_prog"
7428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 PY3CONFIG=$ac_cv_prog_PY3CONFIG
7438 if test -n "$PY3CONFIG"; then
7439 { echo "$as_me:$LINENO: result: $PY3CONFIG" >&5
7440 echo "${ECHO_T}$PY3CONFIG" >&6; }
7442 { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7447 test -n "$PY3CONFIG" && break
7451 for ac_prog in $PYTHON3-config python3-config python3.0-config python3.1-config
7453 # Extract the first word of "$ac_prog", so it can be a program name with args.
7454 set dummy $ac_prog; ac_word=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_prog_PY3CONFIG+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 if test -n "$PY3CONFIG"; then
7461 ac_cv_prog_PY3CONFIG="$PY3CONFIG" # Let the user override the test.
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_prog_PY3CONFIG="$ac_prog"
7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 PY3CONFIG=$ac_cv_prog_PY3CONFIG
7481 if test -n "$PY3CONFIG"; then
7482 { echo "$as_me:$LINENO: result: $PY3CONFIG" >&5
7483 echo "${ECHO_T}$PY3CONFIG" >&6; }
7485 { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7490 test -n "$PY3CONFIG" && break
7495 if test -n "$PYTHON3" -a -n "$PY3CONFIG"; then
7496 { echo "$as_me:$LINENO: checking for Python 3.x prefix" >&5
7497 echo $ECHO_N "checking for Python 3.x prefix... $ECHO_C" >&6; }
7498 PY3PREFIX=`($PY3CONFIG --prefix) 2>/dev/null`
7499 { echo "$as_me:$LINENO: result: $PY3PREFIX" >&5
7500 echo "${ECHO_T}$PY3PREFIX" >&6; }
7501 { echo "$as_me:$LINENO: checking for Python 3.x exec-prefix" >&5
7502 echo $ECHO_N "checking for Python 3.x exec-prefix... $ECHO_C" >&6; }
7503 PY3EPREFIX=`($PY3CONFIG --exec-prefix) 2>/dev/null`
7504 { echo "$as_me:$LINENO: result: $PY3EPREFIX" >&5
7505 echo "${ECHO_T}$PY3EPREFIX" >&6; }
7507 # Note: I could not think of a standard way to get the version string from different versions.
7508 # This trick pulls it out of the file location for a standard library file.
7510 { echo "$as_me:$LINENO: checking for Python 3.x version" >&5
7511 echo $ECHO_N "checking for Python 3.x version... $ECHO_C" >&6; }
7513 # Need to do this hack since autoconf replaces __file__ with the name of the configure file
7515 PY3VERSION=`($PYTHON3 -c "import string,operator,os.path; print(operator.getitem(os.path.split(operator.getitem(os.path.split(string.__$filehack),0)),1))")`
7516 { echo "$as_me:$LINENO: result: $PY3VERSION" >&5
7517 echo "${ECHO_T}$PY3VERSION" >&6; }
7519 # Find the directory for libraries this is necessary to deal with
7520 # platforms that can have apps built for multiple archs: e.g. x86_64
7521 { echo "$as_me:$LINENO: checking for Python 3.x lib dir" >&5
7522 echo $ECHO_N "checking for Python 3.x lib dir... $ECHO_C" >&6; }
7523 PY3LIBDIR=`($PYTHON3 -c "import sys; print(sys.lib)") 2>/dev/null`
7524 if test -z "$PY3LIBDIR"; then
7525 # some dists don't have sys.lib so the best we can do is assume lib
7528 { echo "$as_me:$LINENO: result: $PY3LIBDIR" >&5
7529 echo "${ECHO_T}$PY3LIBDIR" >&6; }
7531 # Set the include directory
7533 { echo "$as_me:$LINENO: checking for Python 3.x header files" >&5
7534 echo $ECHO_N "checking for Python 3.x header files... $ECHO_C" >&6; }
7535 PY3INCLUDE=`($PY3CONFIG --includes) 2>/dev/null`
7536 { echo "$as_me:$LINENO: result: $PY3INCLUDE" >&5
7537 echo "${ECHO_T}$PY3INCLUDE" >&6; }
7539 # Set the library directory blindly. This probably won't work with older versions
7540 { echo "$as_me:$LINENO: checking for Python 3.x library" >&5
7541 echo $ECHO_N "checking for Python 3.x library... $ECHO_C" >&6; }
7542 dirs="$PY3VERSION/config $PY3VERSION/$PY3LIBDIR python/$PY3LIBDIR"
7544 if test -d $PY3EPREFIX/$PY3LIBDIR/$i; then
7545 PY3LIB="$PY3EPREFIX/$PY3LIBDIR/$i"
7549 if test -z "$PY3LIB"; then
7550 { echo "$as_me:$LINENO: result: Not found" >&5
7551 echo "${ECHO_T}Not found" >&6; }
7553 { echo "$as_me:$LINENO: result: $PY3LIB" >&5
7554 echo "${ECHO_T}$PY3LIB" >&6; }
7557 PY3LINK="-l$PY3VERSION"
7560 # Cygwin (Windows) needs the library for dynamic linking
7562 *-*-cygwin* | *-*-mingw*) PYTHON3DYNAMICLINKING="-L$PYLIB $PY3LINK"
7563 DEFS="-DUSE_DL_IMPORT $DEFS" PY3INCLUDE="$PY3INCLUDE"
7565 *)PYTHON3DYNAMICLINKING="";;
7575 #----------------------------------------------------------------
7577 #----------------------------------------------------------------
7582 # Check whether --with-perl5 was given.
7583 if test "${with_perl5+set}" = set; then
7584 withval=$with_perl5; PERLBIN="$withval"
7590 # First, check for "--without-perl5" or "--with-perl5=no".
7591 if test x"${PERLBIN}" = xno -o x"${with_alllang}" = xno ; then
7592 { echo "$as_me:$LINENO: Disabling Perl5" >&5
7593 echo "$as_me: Disabling Perl5" >&6;}
7597 # First figure out what the name of Perl5 is
7599 if test "x$PERLBIN" = xyes; then
7600 for ac_prog in perl perl5.6.1 perl5.6.0 perl5.004 perl5.003 perl5.002 perl5.001 perl5 perl
7602 # Extract the first word of "$ac_prog", so it can be a program name with args.
7603 set dummy $ac_prog; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_prog_PERL+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 if test -n "$PERL"; then
7610 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619 ac_cv_prog_PERL="$ac_prog"
7620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 PERL=$ac_cv_prog_PERL
7630 if test -n "$PERL"; then
7631 { echo "$as_me:$LINENO: result: $PERL" >&5
7632 echo "${ECHO_T}$PERL" >&6; }
7634 { echo "$as_me:$LINENO: result: no" >&5
7635 echo "${ECHO_T}no" >&6; }
7639 test -n "$PERL" && break
7647 # This could probably be simplified as for all platforms and all versions of Perl the following apparently should be run to get the compilation options:
7648 # perl -MExtUtils::Embed -e ccopts
7649 { echo "$as_me:$LINENO: checking for Perl5 header files" >&5
7650 echo $ECHO_N "checking for Perl5 header files... $ECHO_C" >&6; }
7651 if test -n "$PERL"; then
7652 PERL5DIR=`($PERL -e 'use Config; print $Config{archlib}, "\n";') 2>/dev/null`
7653 if test "$PERL5DIR" != ""; then
7654 dirs="$PERL5DIR $PERL5DIR/CORE"
7657 if test -r $i/perl.h; then
7658 { echo "$as_me:$LINENO: result: $i" >&5
7659 echo "${ECHO_T}$i" >&6; }
7664 if test "$PERL5EXT" = none; then
7665 PERL5EXT="$PERL5DIR/CORE"
7666 { echo "$as_me:$LINENO: result: could not locate perl.h...using $PERL5EXT" >&5
7667 echo "${ECHO_T}could not locate perl.h...using $PERL5EXT" >&6; }
7670 { echo "$as_me:$LINENO: checking for Perl5 library" >&5
7671 echo $ECHO_N "checking for Perl5 library... $ECHO_C" >&6; }
7672 PERL5LIB=`($PERL -e 'use Config; $_=$Config{libperl}; s/^lib//; s/$Config{_a}$//; print $_, "\n"') 2>/dev/null`
7673 if test "$PERL5LIB" = "" ; then
7674 { echo "$as_me:$LINENO: result: not found" >&5
7675 echo "${ECHO_T}not found" >&6; }
7677 { echo "$as_me:$LINENO: result: $PERL5LIB" >&5
7678 echo "${ECHO_T}$PERL5LIB" >&6; }
7680 { echo "$as_me:$LINENO: checking for Perl5 compiler options" >&5
7681 echo $ECHO_N "checking for Perl5 compiler options... $ECHO_C" >&6; }
7682 PERL5CCFLAGS=`($PERL -e 'use Config; print $Config{ccflags}, "\n"' | sed "s/-Wdeclaration-after-statement//" | sed "s/-I/$ISYSTEM/") 2>/dev/null`
7683 if test "$PERL5CCFLAGS" = "" ; then
7684 { echo "$as_me:$LINENO: result: not found" >&5
7685 echo "${ECHO_T}not found" >&6; }
7687 { echo "$as_me:$LINENO: result: $PERL5CCFLAGS" >&5
7688 echo "${ECHO_T}$PERL5CCFLAGS" >&6; }
7691 { echo "$as_me:$LINENO: result: unable to determine perl5 configuration" >&5
7692 echo "${ECHO_T}unable to determine perl5 configuration" >&6; }
7696 { echo "$as_me:$LINENO: result: could not figure out how to run perl5" >&5
7697 echo "${ECHO_T}could not figure out how to run perl5" >&6; }
7700 # Cygwin (Windows) needs the library for dynamic linking
7702 *-*-cygwin* | *-*-mingw*) PERL5DYNAMICLINKING="-L$PERL5EXT -l$PERL5LIB";;
7703 *)PERL5DYNAMICLINKING="";;
7713 #----------------------------------------------------------------
7715 #----------------------------------------------------------------
7718 OCTAVEDYNAMICLINKING=
7722 # Check whether --with-octave was given.
7723 if test "${with_octave+set}" = set; then
7724 withval=$with_octave; OCTAVEBIN="$withval"
7730 # First, check for "--without-octave" or "--with-octave=no".
7731 if test x"${OCTAVEBIN}" = xno -o x"${with_alllang}" = xno ; then
7732 { echo "$as_me:$LINENO: Disabling Octave" >&5
7733 echo "$as_me: Disabling Octave" >&6;}
7737 # First figure out what the name of Octave is
7739 if test "x$OCTAVEBIN" = xyes; then
7740 for ac_prog in octave
7742 # Extract the first word of "$ac_prog", so it can be a program name with args.
7743 set dummy $ac_prog; ac_word=$2
7744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746 if test "${ac_cv_prog_OCTAVE+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 if test -n "$OCTAVE"; then
7750 ac_cv_prog_OCTAVE="$OCTAVE" # Let the user override the test.
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7759 ac_cv_prog_OCTAVE="$ac_prog"
7760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769 OCTAVE=$ac_cv_prog_OCTAVE
7770 if test -n "$OCTAVE"; then
7771 { echo "$as_me:$LINENO: result: $OCTAVE" >&5
7772 echo "${ECHO_T}$OCTAVE" >&6; }
7774 { echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6; }
7779 test -n "$OCTAVE" && break
7787 { echo "$as_me:$LINENO: checking for Octave header files" >&5
7788 echo $ECHO_N "checking for Octave header files... $ECHO_C" >&6; }
7789 if test -n "$OCTAVE"; then
7790 OCTAVEDIR="/usr/include"
7791 if test "$OCTAVEDIR" != ""; then
7795 if test -r $i/octave/oct.h; then
7799 if test -r $i/octave/octave/oct.h; then
7800 OCTAVEEXT="$i/octave"
7804 if test "$OCTAVEEXT" = "" ; then
7805 { echo "$as_me:$LINENO: result: not found" >&5
7806 echo "${ECHO_T}not found" >&6; }
7808 { echo "$as_me:$LINENO: result: $OCTAVEEXT" >&5
7809 echo "${ECHO_T}$OCTAVEEXT" >&6; }
7812 { echo "$as_me:$LINENO: checking for Octave compiler options" >&5
7813 echo $ECHO_N "checking for Octave compiler options... $ECHO_C" >&6; }
7815 { echo "$as_me:$LINENO: result: $OCTAVECCFLAGS" >&5
7816 echo "${ECHO_T}$OCTAVECCFLAGS" >&6; }
7819 { echo "$as_me:$LINENO: result: could not figure out how to run octave" >&5
7820 echo "${ECHO_T}could not figure out how to run octave" >&6; }
7832 #----------------------------------------------------------------
7834 #----------------------------------------------------------------
7837 # Check whether --with-java was given.
7838 if test "${with_java+set}" = set; then
7839 withval=$with_java; JAVABIN="$withval"
7845 # Check whether --with-javac was given.
7846 if test "${with_javac+set}" = set; then
7847 withval=$with_javac; JAVACBIN="$withval"
7853 # First, check for "--without-java" or "--with-java=no".
7854 if test x"${JAVABIN}" = xno -o x"${with_alllang}" = xno ; then
7855 { echo "$as_me:$LINENO: Disabling Java" >&5
7856 echo "$as_me: Disabling Java" >&6;}
7860 if test "x$JAVABIN" = xyes; then
7861 for ac_prog in java kaffe guavac
7863 # Extract the first word of "$ac_prog", so it can be a program name with args.
7864 set dummy $ac_prog; ac_word=$2
7865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7867 if test "${ac_cv_prog_JAVA+set}" = set; then
7868 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 if test -n "$JAVA"; then
7871 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_prog_JAVA="$ac_prog"
7881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 JAVA=$ac_cv_prog_JAVA
7891 if test -n "$JAVA"; then
7892 { echo "$as_me:$LINENO: result: $JAVA" >&5
7893 echo "${ECHO_T}$JAVA" >&6; }
7895 { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7900 test -n "$JAVA" && break
7907 if test -z "$JAVACBIN"; then
7908 for ac_prog in javac
7910 # Extract the first word of "$ac_prog", so it can be a program name with args.
7911 set dummy $ac_prog; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_prog_JAVAC+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 if test -n "$JAVAC"; then
7918 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927 ac_cv_prog_JAVAC="$ac_prog"
7928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 JAVAC=$ac_cv_prog_JAVAC
7938 if test -n "$JAVAC"; then
7939 { echo "$as_me:$LINENO: result: $JAVAC" >&5
7940 echo "${ECHO_T}$JAVAC" >&6; }
7942 { echo "$as_me:$LINENO: result: no" >&5
7943 echo "${ECHO_T}no" >&6; }
7947 test -n "$JAVAC" && break
7954 { echo "$as_me:$LINENO: checking for java include file jni.h" >&5
7955 echo $ECHO_N "checking for java include file jni.h... $ECHO_C" >&6; }
7957 # Check whether --with-javaincl was given.
7958 if test "${with_javaincl+set}" = set; then
7959 withval=$with_javaincl; JAVAINCDIR="$withval"
7965 if test -z "$JAVAINCDIR" ; then
7966 JAVAINCDIR="/usr/j2sdk*/include /usr/local/j2sdk*/include /usr/jdk*/include /usr/local/jdk*/include /opt/j2sdk*/include /opt/jdk*/include /usr/java/include /usr/java/j2sdk*/include /usr/java/jdk*/include /usr/local/java/include /opt/java/include /usr/include/java /usr/local/include/java /usr/lib/java/include /usr/lib/jvm/java*/include /usr/include/kaffe /usr/local/include/kaffe /usr/include"
7968 # Add in default installation directory on Windows for Cygwin
7970 *-*-cygwin* | *-*-mingw*) JAVAINCDIR="c:/Program*Files/Java/jdk*/include d:/Program*Files/Java/jdk*/include c:/j2sdk*/include d:/j2sdk*/include c:/jdk*/include d:/jdk*/include $JAVAINCDIR";;
7971 *-*-darwin*) JAVAINCDIR="/System/Library/Frameworks/JavaVM.framework/Headers $JAVAINCDIR";;
7977 for d in $JAVAINCDIR ; do
7978 if test -r "$d/jni.h" ; then
7979 { echo "$as_me:$LINENO: result: $d" >&5
7980 echo "${ECHO_T}$d" >&6; }
7987 if test "$JAVAINC" = "" ; then
7988 { echo "$as_me:$LINENO: result: not found" >&5
7989 echo "${ECHO_T}not found" >&6; }
7991 # now look for <arch>/jni_md.h
7992 { echo "$as_me:$LINENO: checking for java include file jni_md.h" >&5
7993 echo $ECHO_N "checking for java include file jni_md.h... $ECHO_C" >&6; }
7994 JAVAMDDIR=`find "$JAVAINCDIR" -follow -name jni_md.h -print`
7995 if test "$JAVAMDDIR" = "" ; then
7996 { echo "$as_me:$LINENO: result: not found" >&5
7997 echo "${ECHO_T}not found" >&6; }
7999 JAVAMDDIR=`dirname "$JAVAMDDIR" | tail -1`
8000 JAVAINC="${JAVAINC} -I\"$JAVAMDDIR\""
8001 { echo "$as_me:$LINENO: result: $JAVAMDDIR" >&5
8002 echo "${ECHO_T}$JAVAMDDIR" >&6; }
8006 # java.exe on Cygwin requires the Windows standard (Pascal) calling convention as it is a normal Windows executable and not a Cygwin built executable
8008 *-*-cygwin* | *-*-mingw*)
8009 if test "$GCC" = yes; then
8010 JAVADYNAMICLINKING=" -mno-cygwin -mthreads -Wl,--add-stdcall-alias"
8011 JAVACFLAGS="-mno-cygwin -mthreads"
8013 JAVADYNAMICLINKING=""
8017 JAVADYNAMICLINKING="-dynamiclib -framework JavaVM"
8021 JAVADYNAMICLINKING=""
8026 # Java on Windows platforms including Cygwin doesn't use libname.dll, rather name.dll when loading dlls
8028 *-*-cygwin* | *-*-mingw*) JAVALIBRARYPREFIX="";;
8029 *)JAVALIBRARYPREFIX="lib";;
8032 # Java on Mac OS X tweaks
8036 JAVALDSHARED='$(CC)'
8037 JAVACXXSHARED='$(CXX)'
8041 JAVALDSHARED='$(LDSHARED)'
8042 JAVACXXSHARED='$(CXXSHARED)'
8057 #----------------------------------------------------------------
8059 #----------------------------------------------------------------
8062 # Check whether --with-gcj was given.
8063 if test "${with_gcj+set}" = set; then
8064 withval=$with_gcj; GCJBIN="$withval"
8070 # Check whether --with-gcjh was given.
8071 if test "${with_gcjh+set}" = set; then
8072 withval=$with_gcjh; GCJHBIN="$withval"
8078 # First, check for "--without-gcj" or "--with-gcj=no".
8079 if test x"${GCJBIN}" = xno -o x"${with_alllang}" = xno ; then
8080 { echo "$as_me:$LINENO: Disabling GCJ" >&5
8081 echo "$as_me: Disabling GCJ" >&6;}
8083 if test "x$GCJBIN" = xyes; then
8086 # Extract the first word of "$ac_prog", so it can be a program name with args.
8087 set dummy $ac_prog; ac_word=$2
8088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090 if test "${ac_cv_prog_GCJ+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 if test -n "$GCJ"; then
8094 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103 ac_cv_prog_GCJ="$ac_prog"
8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 if test -n "$GCJ"; then
8115 { echo "$as_me:$LINENO: result: $GCJ" >&5
8116 echo "${ECHO_T}$GCJ" >&6; }
8118 { echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6; }
8123 test -n "$GCJ" && break
8130 if test -z "$GCJCBIN"; then
8133 # Extract the first word of "$ac_prog", so it can be a program name with args.
8134 set dummy $ac_prog; ac_word=$2
8135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8137 if test "${ac_cv_prog_GCJH+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 if test -n "$GCJH"; then
8141 ac_cv_prog_GCJH="$GCJH" # Let the user override the test.
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8150 ac_cv_prog_GCJH="$ac_prog"
8151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 GCJH=$ac_cv_prog_GCJH
8161 if test -n "$GCJH"; then
8162 { echo "$as_me:$LINENO: result: $GCJH" >&5
8163 echo "${ECHO_T}$GCJH" >&6; }
8165 { echo "$as_me:$LINENO: result: no" >&5
8166 echo "${ECHO_T}no" >&6; }
8170 test -n "$GCJH" && break
8181 #----------------------------------------------------------------
8183 #----------------------------------------------------------------
8193 # Check whether --with-guile-config was given.
8194 if test "${with_guile_config+set}" = set; then
8195 withval=$with_guile_config; GUILE_CONFIG="$withval"
8201 # Check whether --with-guilepackage was given.
8202 if test "${with_guilepackage+set}" = set; then
8203 withval=$with_guilepackage;
8204 GUILEPACKAGE="$withval"
8208 # Check whether --with-guile was given.
8209 if test "${with_guile+set}" = set; then
8210 withval=$with_guile;
8217 # Check whether --with-guileincl was given.
8218 if test "${with_guileincl+set}" = set; then
8219 withval=$with_guileincl;
8220 GUILEINCLUDE="$withval"
8224 # Check whether --with-guilelib was given.
8225 if test "${with_guilelib+set}" = set; then
8226 withval=$with_guilelib;
8231 # First, check for "--without-guile" or "--with-guile=no".
8232 if test x"${GUILE}" = xno -o x"${with_alllang}" = xno ; then
8233 { echo "$as_me:$LINENO: Disabling Guile" >&5
8234 echo "$as_me: Disabling Guile" >&6;}
8237 if test -z "$GUILE_CONFIG" ; then
8238 # Extract the first word of "guile-config", so it can be a program name with args.
8239 set dummy guile-config; ac_word=$2
8240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8242 if test "${ac_cv_path_GUILE_CONFIG+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 case $GUILE_CONFIG in
8247 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
8269 if test -n "$GUILE_CONFIG"; then
8270 { echo "$as_me:$LINENO: result: $GUILE_CONFIG" >&5
8271 echo "${ECHO_T}$GUILE_CONFIG" >&6; }
8273 { echo "$as_me:$LINENO: result: no" >&5
8274 echo "${ECHO_T}no" >&6; }
8280 if test -n "$GUILE_CONFIG" ; then
8281 GUILEPACKAGE="`$GUILE_CONFIG info prefix`"
8282 GUILEINCLUDE="`$GUILE_CONFIG info includedir`"
8283 GUILELIB="`$GUILE_CONFIG info libdir`"
8284 GUILE="`$GUILE_CONFIG info bindir`/guile"
8285 GUILELINK="`$GUILE_CONFIG link`"
8286 GUILEPKGDATADIR="`$GUILE_CONFIG info pkgdatadir`"
8289 if test -z "$GUILE" -o "x$GUILE" = xyes; then
8290 if test -n "$GUILEPACKAGE"; then
8291 GUILE="$GUILEPACKAGE/bin/guile"
8297 if test -z "$GUILEINCLUDE"; then
8298 if test -n "$GUILEPACKAGE"; then
8299 GUILEINCLUDE="$GUILEPACKAGE/include"
8303 if test -z "$GUILELIB"; then
8304 if test -n "$GUILEPACKAGE"; then
8305 GUILELIB="$GUILEPACKAGE/lib"
8310 { echo "$as_me:$LINENO: checking for Guile header files" >&5
8311 echo $ECHO_N "checking for Guile header files... $ECHO_C" >&6; }
8313 dirs="$GUILEINCLUDE"
8315 if test -r $i/guile/gh.h; then
8316 { echo "$as_me:$LINENO: result: $i" >&5
8317 echo "${ECHO_T}$i" >&6; }
8318 GUILEINCLUDE="$ISYSTEM$i"
8322 if test -z "$GUILEINCLUDE"; then
8323 { echo "$as_me:$LINENO: result: not found" >&5
8324 echo "${ECHO_T}not found" >&6; }
8327 { echo "$as_me:$LINENO: checking for Guile library" >&5
8328 echo $ECHO_N "checking for Guile library... $ECHO_C" >&6; }
8331 if test -r $i/libguile.so; then
8332 { echo "$as_me:$LINENO: result: $i" >&5
8333 echo "${ECHO_T}$i" >&6; }
8338 if test -z "$GUILELIB"; then
8339 { echo "$as_me:$LINENO: result: not found" >&5
8340 echo "${ECHO_T}not found" >&6; }
8343 if test -z "$GUILELINK"; then
8344 GUILELINK="-L$GUILELIB -lguile"
8347 guilesafe_CFLAGS=$CFLAGS
8348 guilesafe_LIBS=$LIBS
8349 # Filter out "-ansi -pedantic" because Guile header files will not compile with these flags.
8350 # (The flags -ansi -pedantic are automatically added by ac_compile_warnings.m4)
8351 CFLAGS="`echo $CFLAGS | sed 's/-ansi//g;s/-pedantic//g;'` $GUILEINCLUDE"
8352 LIBS="$LIBS $GUILELINK"
8354 { echo "$as_me:$LINENO: checking whether Guile's gh_ API works" >&5
8355 echo $ECHO_N "checking whether Guile's gh_ API works... $ECHO_C" >&6; }
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #include <guile/gh.h>
8358 int main() { SCM s; return gh_scm2int(s); }
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (ac_try="$ac_link"
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_link") 2>conftest.er1
8369 grep -v '^ *+' conftest.er1 >conftest.err
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest$ac_exeext &&
8377 $as_test_x conftest$ac_exeext; then
8378 GUILE_GH_INTERFACE=1
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8387 conftest$ac_exeext conftest.$ac_ext
8388 if test -n "$GUILE_GH_INTERFACE" ; then
8389 { echo "$as_me:$LINENO: result: yes" >&5
8390 echo "${ECHO_T}yes" >&6; }
8392 { echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6; }
8395 { echo "$as_me:$LINENO: checking whether Guile's SCM_ API works" >&5
8396 echo $ECHO_N "checking whether Guile's SCM_ API works... $ECHO_C" >&6; }
8397 cat >conftest.$ac_ext <<_ACEOF
8398 #include <libguile.h>
8399 int main() { SCM s; scm_slot_exists_p(SCM_BOOL_F, SCM_BOOL_F); return SCM_STRING_LENGTH(s); }
8401 rm -f conftest.$ac_objext conftest$ac_exeext
8402 if { (ac_try="$ac_link"
8404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_link") 2>conftest.er1
8410 grep -v '^ *+' conftest.er1 >conftest.err
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest$ac_exeext &&
8418 $as_test_x conftest$ac_exeext; then
8419 GUILE_SCM_INTERFACE=1
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8428 conftest$ac_exeext conftest.$ac_ext
8429 if test -n "$GUILE_SCM_INTERFACE" ; then
8430 { echo "$as_me:$LINENO: result: yes" >&5
8431 echo "${ECHO_T}yes" >&6; }
8433 { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8436 CFLAGS=$guilesafe_CFLAGS
8437 LIBS=$guilesafe_LIBS
8447 #----------------------------------------------------------------
8449 #----------------------------------------------------------------
8452 # Check whether --with-mzscheme was given.
8453 if test "${with_mzscheme+set}" = set; then
8454 withval=$with_mzscheme; MZSCHEMEBIN="$withval"
8460 # Check whether --with-mzc was given.
8461 if test "${with_mzc+set}" = set; then
8462 withval=$with_mzc; MZCBIN="$withval"
8468 # First, check for "--without-mzscheme" or "--with-mzscheme=no".
8469 if test x"${MZSCHEMEBIN}" = xno -o x"${with_alllang}" = xno ; then
8470 { echo "$as_me:$LINENO: Disabling MzScheme" >&5
8471 echo "$as_me: Disabling MzScheme" >&6;}
8474 if test "x$MZSCHEMEBIN" = xyes; then
8475 # Extract the first word of "mzscheme", so it can be a program name with args.
8476 set dummy mzscheme; ac_word=$2
8477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8479 if test "${ac_cv_path_MZSCHEME+set}" = set; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 ac_cv_path_MZSCHEME="$MZSCHEME" # Let the user override the test with a path.
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8494 ac_cv_path_MZSCHEME="$as_dir/$ac_word$ac_exec_ext"
8495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 MZSCHEME=$ac_cv_path_MZSCHEME
8506 if test -n "$MZSCHEME"; then
8507 { echo "$as_me:$LINENO: result: $MZSCHEME" >&5
8508 echo "${ECHO_T}$MZSCHEME" >&6; }
8510 { echo "$as_me:$LINENO: result: no" >&5
8511 echo "${ECHO_T}no" >&6; }
8516 MZSCHEME="$MZSCHEMEBIN"
8519 if test -z "$MZCBIN"; then
8520 # Extract the first word of "mzc", so it can be a program name with args.
8521 set dummy mzc; ac_word=$2
8522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8524 if test "${ac_cv_path_MZC+set}" = set; then
8525 echo $ECHO_N "(cached) $ECHO_C" >&6
8529 ac_cv_path_MZC="$MZC" # Let the user override the test with a path.
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 test -z "$as_dir" && as_dir=.
8537 for ac_exec_ext in '' $ac_executable_extensions; do
8538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8539 ac_cv_path_MZC="$as_dir/$ac_word$ac_exec_ext"
8540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 if test -n "$MZC"; then
8552 { echo "$as_me:$LINENO: result: $MZC" >&5
8553 echo "${ECHO_T}$MZC" >&6; }
8555 { echo "$as_me:$LINENO: result: no" >&5
8556 echo "${ECHO_T}no" >&6; }
8562 if test -n "$MZSCHEME"; then
8563 { echo "$as_me:$LINENO: checking for MzScheme dynext object" >&5
8564 echo $ECHO_N "checking for MzScheme dynext object... $ECHO_C" >&6; }
8565 MZDYNOBJ=`$MZSCHEME --eval '(begin (require dynext/link) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (printf "~a" x)) (expand-for-link-variant (current-standard-link-libraries)))))' 2>/dev/null`
8566 if test -f "$MZDYNOBJ"; then
8567 MZDYNOBJ="$MZDYNOBJ"
8569 # older versions (3.72 approx and earlier)
8570 MZDYNOBJ=`$MZSCHEME --mute-banner --version --eval '(begin (require (lib "link.ss" "dynext")) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x) (display " ")) ((current-make-standard-link-libraries)))) (with-handlers (((lambda args #t) (lambda args #f))) (for-each (lambda (x) (display x)) (expand-for-link-variant (current-standard-link-libraries)))))' 2>/dev/null`
8572 if test -f "$MZDYNOBJ"; then
8573 { echo "$as_me:$LINENO: result: $MZDYNOBJ" >&5
8574 echo "${ECHO_T}$MZDYNOBJ" >&6; }
8576 { echo "$as_me:$LINENO: result: not found" >&5
8577 echo "${ECHO_T}not found" >&6; }
8584 #----------------------------------------------------------------
8586 #----------------------------------------------------------------
8591 # Check whether --with-ruby was given.
8592 if test "${with_ruby+set}" = set; then
8593 withval=$with_ruby; RUBYBIN="$withval"
8599 # First, check for "--without-ruby" or "--with-ruby=no".
8600 if test x"${RUBYBIN}" = xno -o x"${with_alllang}" = xno ; then
8601 { echo "$as_me:$LINENO: Disabling Ruby" >&5
8602 echo "$as_me: Disabling Ruby" >&6;}
8606 # First figure out what the name of Ruby is
8608 if test "x$RUBYBIN" = xyes; then
8611 # Extract the first word of "$ac_prog", so it can be a program name with args.
8612 set dummy $ac_prog; ac_word=$2
8613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8615 if test "${ac_cv_prog_RUBY+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 if test -n "$RUBY"; then
8619 ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8628 ac_cv_prog_RUBY="$ac_prog"
8629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 RUBY=$ac_cv_prog_RUBY
8639 if test -n "$RUBY"; then
8640 { echo "$as_me:$LINENO: result: $RUBY" >&5
8641 echo "${ECHO_T}$RUBY" >&6; }
8643 { echo "$as_me:$LINENO: result: no" >&5
8644 echo "${ECHO_T}no" >&6; }
8648 test -n "$RUBY" && break
8655 { echo "$as_me:$LINENO: checking for Ruby header files" >&5
8656 echo $ECHO_N "checking for Ruby header files... $ECHO_C" >&6; }
8657 if test -n "$RUBY"; then
8658 RUBYDIR=`($RUBY -rmkmf -e 'print Config::CONFIG["archdir"] || $archdir') 2>/dev/null`
8659 if test x"$RUBYDIR" != x""; then
8663 if test -r $i/ruby.h; then
8664 { echo "$as_me:$LINENO: result: $i" >&5
8665 echo "${ECHO_T}$i" >&6; }
8670 if test "$RUBYINCLUDE" = none; then
8671 RUBYINCLUDE="-I$RUBYDIR"
8672 { echo "$as_me:$LINENO: result: could not locate ruby.h...using $RUBYINCLUDE" >&5
8673 echo "${ECHO_T}could not locate ruby.h...using $RUBYINCLUDE" >&6; }
8676 # Find library and path for linking.
8677 { echo "$as_me:$LINENO: checking for Ruby library" >&5
8678 echo $ECHO_N "checking for Ruby library... $ECHO_C" >&6; }
8680 rb_libdir=`($RUBY -rrbconfig -e 'print Config::CONFIG["libdir"]') 2>/dev/null`
8681 rb_bindir=`($RUBY -rrbconfig -e 'print Config::CONFIG["bindir"]') 2>/dev/null`
8682 dirs="$dirs $rb_libdir $rb_bindir"
8684 rb_libruby=`($RUBY -rrbconfig -e 'print Config::CONFIG["LIBRUBY_A"]') 2>/dev/null`
8685 RUBYLINK=`($RUBY -rrbconfig -e '
8687 if c.has_key? "LIBRUBYARG_STATIC" # 1.8.x
8688 if c["LIBRUBY"] == c["LIBRUBY_A"]
8689 link = c["LIBRUBYARG_STATIC"]
8691 link = c["LIBRUBYARG_SHARED"]
8694 link = "-l" + c["RUBY_INSTALL_NAME"]
8697 # Get the target Ruby was built for
8698 target = c["target"]
8700 if target == "i386-pc-mswin32"
8701 # Need to change msvcrt-ruby*.lib to -lmsvcrt-ruby*
8702 ext = File.extname(link)
8703 # Get index that counts backwards from end of string
8704 index = -1 - ext.size
8705 # Strip off the extension
8706 link = link.slice(0..index)
8712 if test "$rb_libruby" != ""; then
8714 if (test -r $i/$rb_libruby;) then
8720 if test "$RUBYLIB" = ""; then
8722 { echo "$as_me:$LINENO: result: not found... using $RUBYDIR" >&5
8723 echo "${ECHO_T}not found... using $RUBYDIR" >&6; }
8725 { echo "$as_me:$LINENO: result: $RUBYLINK in $RUBYLIB" >&5
8726 echo "${ECHO_T}$RUBYLINK in $RUBYLIB" >&6; }
8729 { echo "$as_me:$LINENO: result: unable to determine ruby configuration" >&5
8730 echo "${ECHO_T}unable to determine ruby configuration" >&6; }
8731 RUBYINCLUDE="-I$RUBYDIR"
8736 *-*-mingw*) ;; # do nothing, the default windows libraries are already included
8737 *) RUBYLINK="$RUBYLINK `($RUBY -rrbconfig -e 'print Config::CONFIG["LIBS"]') 2>/dev/null`";;
8740 RUBYCCDLFLAGS=`($RUBY -rrbconfig -e 'print Config::CONFIG["CCDLFLAGS"]') 2>/dev/null`
8742 { echo "$as_me:$LINENO: result: could not figure out how to run ruby" >&5
8743 echo "${ECHO_T}could not figure out how to run ruby" >&6; }
8744 RUBYINCLUDE="-I/usr/local/lib/ruby/1.4/arch"
8745 RUBYLIB="/usr/local/lib/ruby/1.4/arch"
8746 RUBYLINK="-lruby -lm"
8750 *-*-cygwin* | *-*-mingw*) RUBYDYNAMICLINKING="-L$RUBYLIB $RUBYLINK";;
8751 *) RUBYDYNAMICLINKING="";;
8761 #-------------------------------------------------------------------------
8763 #-------------------------------------------------------------------------
8768 # Check whether --with-php was given.
8769 if test "${with_php+set}" = set; then
8770 withval=$with_php; PHPBIN="$withval"
8776 # First, check for "--without-php" or "--with-php=no".
8777 if test x"${PHPBIN}" = xno -o x"${with_alllang}" = xno ; then
8778 { echo "$as_me:$LINENO: Disabling PHP" >&5
8779 echo "$as_me: Disabling PHP" >&6;}
8783 if test "x$PHPBIN" = xyes; then
8784 for ac_prog in php5 php
8786 # Extract the first word of "$ac_prog", so it can be a program name with args.
8787 set dummy $ac_prog; ac_word=$2
8788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8790 if test "${ac_cv_prog_PHP+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 if test -n "$PHP"; then
8794 ac_cv_prog_PHP="$PHP" # Let the user override the test.
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_prog_PHP="$ac_prog"
8804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8814 if test -n "$PHP"; then
8815 { echo "$as_me:$LINENO: result: $PHP" >&5
8816 echo "${ECHO_T}$PHP" >&6; }
8818 { echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6; }
8823 test -n "$PHP" && break
8830 { echo "$as_me:$LINENO: checking for PHP header files" >&5
8831 echo $ECHO_N "checking for PHP header files... $ECHO_C" >&6; }
8834 PHPCONFIG=`echo "$PHP"|sed 's/5$/-config5/'` ;;
8836 PHPCONFIG=$PHP-config ;;
8838 php_version=`$PHPCONFIG --version 2>/dev/null`
8839 case $php_version in
8841 PHPINC=`$PHPCONFIG --includes 2>/dev/null`
8842 if test -n "$PHPINC"; then
8843 { echo "$as_me:$LINENO: result: $PHPINC" >&5
8844 echo "${ECHO_T}$PHPINC" >&6; }
8846 { echo "$as_me:$LINENO: result: not found" >&5
8847 echo "${ECHO_T}not found" >&6; }
8851 { echo "$as_me:$LINENO: result: found PHP $version, but only PHP 5 is supported" >&5
8852 echo "${ECHO_T}found PHP $version, but only PHP 5 is supported" >&6; } ;;
8858 #----------------------------------------------------------------
8860 #----------------------------------------------------------------
8863 # Check whether --with-ocaml was given.
8864 if test "${with_ocaml+set}" = set; then
8865 withval=$with_ocaml; OCAMLBIN="$withval"
8871 # Check whether --with-ocamlc was given.
8872 if test "${with_ocamlc+set}" = set; then
8873 withval=$with_ocamlc; OCAMLC="$withval"
8879 # Check whether --with-ocamldlgen was given.
8880 if test "${with_ocamldlgen+set}" = set; then
8881 withval=$with_ocamldlgen; OCAMLDLGEN="$withval"
8887 # Check whether --with-ocamlfind was given.
8888 if test "${with_ocamlfind+set}" = set; then
8889 withval=$with_ocamlfind; OCAMLFIND="$withval"
8895 # Check whether --with-ocamlmktop was given.
8896 if test "${with_ocamlmktop+set}" = set; then
8897 withval=$with_ocamlmktop; OCAMLMKTOP="$withval"
8903 # First, check for "--without-ocaml" or "--with-ocaml=no".
8904 if test x"${OCAMLBIN}" = xno -o x"${with_alllang}" = xno ; then
8905 { echo "$as_me:$LINENO: Disabling OCaml" >&5
8906 echo "$as_me: Disabling OCaml" >&6;}
8910 { echo "$as_me:$LINENO: checking for Ocaml DL load generator" >&5
8911 echo $ECHO_N "checking for Ocaml DL load generator... $ECHO_C" >&6; }
8912 if test -z "$OCAMLDLGEN"; then
8913 for ac_prog in ocamldlgen
8915 # Extract the first word of "$ac_prog", so it can be a program name with args.
8916 set dummy $ac_prog; ac_word=$2
8917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8919 if test "${ac_cv_prog_OCAMLDLGEN+set}" = set; then
8920 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 if test -n "$OCAMLDLGEN"; then
8923 ac_cv_prog_OCAMLDLGEN="$OCAMLDLGEN" # Let the user override the test.
8925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 test -z "$as_dir" && as_dir=.
8930 for ac_exec_ext in '' $ac_executable_extensions; do
8931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932 ac_cv_prog_OCAMLDLGEN="$ac_prog"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8942 OCAMLDLGEN=$ac_cv_prog_OCAMLDLGEN
8943 if test -n "$OCAMLDLGEN"; then
8944 { echo "$as_me:$LINENO: result: $OCAMLDLGEN" >&5
8945 echo "${ECHO_T}$OCAMLDLGEN" >&6; }
8947 { echo "$as_me:$LINENO: result: no" >&5
8948 echo "${ECHO_T}no" >&6; }
8952 test -n "$OCAMLDLGEN" && break
8954 test -n "$OCAMLDLGEN" || OCAMLDLGEN=":"
8957 OCAMLDLGEN="$OCAMLDLGEN"
8960 { echo "$as_me:$LINENO: checking for Ocaml package tool" >&5
8961 echo $ECHO_N "checking for Ocaml package tool... $ECHO_C" >&6; }
8962 if test -z "$OCAMLFIND"; then
8963 for ac_prog in ocamlfind
8965 # Extract the first word of "$ac_prog", so it can be a program name with args.
8966 set dummy $ac_prog; ac_word=$2
8967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8969 if test "${ac_cv_prog_OCAMLFIND+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 if test -n "$OCAMLFIND"; then
8973 ac_cv_prog_OCAMLFIND="$OCAMLFIND" # Let the user override the test.
8975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8979 test -z "$as_dir" && as_dir=.
8980 for ac_exec_ext in '' $ac_executable_extensions; do
8981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8982 ac_cv_prog_OCAMLFIND="$ac_prog"
8983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 OCAMLFIND=$ac_cv_prog_OCAMLFIND
8993 if test -n "$OCAMLFIND"; then
8994 { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
8995 echo "${ECHO_T}$OCAMLFIND" >&6; }
8997 { echo "$as_me:$LINENO: result: no" >&5
8998 echo "${ECHO_T}no" >&6; }
9002 test -n "$OCAMLFIND" && break
9004 test -n "$OCAMLFIND" || OCAMLFIND=":"
9007 OCAMLFIND="$OCAMLFIND"
9010 { echo "$as_me:$LINENO: checking for Ocaml compiler" >&5
9011 echo $ECHO_N "checking for Ocaml compiler... $ECHO_C" >&6; }
9012 if test -z "$OCAMLC"; then
9013 for ac_prog in ocamlc
9015 # Extract the first word of "$ac_prog", so it can be a program name with args.
9016 set dummy $ac_prog; ac_word=$2
9017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9019 if test "${ac_cv_prog_OCAMLC+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 if test -n "$OCAMLC"; then
9023 ac_cv_prog_OCAMLC="$OCAMLC" # Let the user override the test.
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032 ac_cv_prog_OCAMLC="$ac_prog"
9033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9042 OCAMLC=$ac_cv_prog_OCAMLC
9043 if test -n "$OCAMLC"; then
9044 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
9045 echo "${ECHO_T}$OCAMLC" >&6; }
9047 { echo "$as_me:$LINENO: result: no" >&5
9048 echo "${ECHO_T}no" >&6; }
9052 test -n "$OCAMLC" && break
9054 test -n "$OCAMLC" || OCAMLC=":"
9060 { echo "$as_me:$LINENO: checking for Ocaml interpreter" >&5
9061 echo $ECHO_N "checking for Ocaml interpreter... $ECHO_C" >&6; }
9062 if test "x$OCAMLBIN" = xyes; then
9063 for ac_prog in ocaml
9065 # Extract the first word of "$ac_prog", so it can be a program name with args.
9066 set dummy $ac_prog; ac_word=$2
9067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9069 if test "${ac_cv_prog_OCAMLBIN+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 if test -n "$OCAMLBIN"; then
9073 ac_cv_prog_OCAMLBIN="$OCAMLBIN" # Let the user override the test.
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079 test -z "$as_dir" && as_dir=.
9080 for ac_exec_ext in '' $ac_executable_extensions; do
9081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9082 ac_cv_prog_OCAMLBIN="$ac_prog"
9083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9092 OCAMLBIN=$ac_cv_prog_OCAMLBIN
9093 if test -n "$OCAMLBIN"; then
9094 { echo "$as_me:$LINENO: result: $OCAMLBIN" >&5
9095 echo "${ECHO_T}$OCAMLBIN" >&6; }
9097 { echo "$as_me:$LINENO: result: no" >&5
9098 echo "${ECHO_T}no" >&6; }
9102 test -n "$OCAMLBIN" && break
9104 test -n "$OCAMLBIN" || OCAMLBIN=":"
9107 OCAMLBIN="$OCAMLBIN"
9110 { echo "$as_me:$LINENO: checking for Ocaml toplevel creator" >&5
9111 echo $ECHO_N "checking for Ocaml toplevel creator... $ECHO_C" >&6; }
9112 if test -z "$OCAMLMKTOP"; then
9113 for ac_prog in ocamlmktop
9115 # Extract the first word of "$ac_prog", so it can be a program name with args.
9116 set dummy $ac_prog; ac_word=$2
9117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9119 if test "${ac_cv_prog_OCAMLMKTOP+set}" = set; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 if test -n "$OCAMLMKTOP"; then
9123 ac_cv_prog_OCAMLMKTOP="$OCAMLMKTOP" # Let the user override the test.
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9132 ac_cv_prog_OCAMLMKTOP="$ac_prog"
9133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9142 OCAMLMKTOP=$ac_cv_prog_OCAMLMKTOP
9143 if test -n "$OCAMLMKTOP"; then
9144 { echo "$as_me:$LINENO: result: $OCAMLMKTOP" >&5
9145 echo "${ECHO_T}$OCAMLMKTOP" >&6; }
9147 { echo "$as_me:$LINENO: result: no" >&5
9148 echo "${ECHO_T}no" >&6; }
9152 test -n "$OCAMLMKTOP" && break
9154 test -n "$OCAMLMKTOP" || OCAMLMKTOP=":"
9157 OCAMLMKTOP="$OCAMLMKTOP"
9161 if test "$OCAMLC" != ":" ; then
9162 { echo "$as_me:$LINENO: checking for Ocaml header files" >&5
9163 echo $ECHO_N "checking for Ocaml header files... $ECHO_C" >&6; }
9164 dirs="/usr/lib/ocaml/caml /usr/local/lib/ocaml/caml"
9165 dir="`$OCAMLC -where 2>/dev/null`"
9166 if test "$dir"; then
9167 dirs="$dir/caml $dirs"
9170 if test -r $i/mlvalues.h; then
9171 { echo "$as_me:$LINENO: result: $i" >&5
9172 echo "${ECHO_T}$i" >&6; }
9174 OCAMLINC="-I$OCAMLEXT"
9178 if test -z "$OCAMLINC"; then
9179 { echo "$as_me:$LINENO: result: not found" >&5
9180 echo "${ECHO_T}not found" >&6; }
9183 { echo "$as_me:$LINENO: checking for Ocaml version 3.08.2 or higher" >&5
9184 echo $ECHO_N "checking for Ocaml version 3.08.2 or higher... $ECHO_C" >&6; }
9185 OCAMLVER=`$OCAMLC -version | sed -e 's/.*version //g'`
9187 # Split the version into units.
9190 nodots_a=`echo $ver_a | sed -e 's/\./ /g'`
9192 isolate_b_regex='\([0-9]\+\).*'
9193 for ver_part in $nodots_a ; do
9194 b_ver_part=`echo "$ver_b" | sed -e 's/'"$isolate_b_regex"'/\1/'`
9195 if test \( "$ver_part" -lt "$b_ver_part" \) -a \( "x$condition" == "xequal" \) ; then
9197 elif test \( "$ver_part" -gt "$b_ver_part" \) -a \( "x$condition" == "xequal" \) ; then
9200 isolate_b_regex='[0-9]\+\.'"$isolate_b_regex"
9203 if test "x$condition" == "xequal" ; then
9205 elif test "x$condition" == "xless" ; then
9207 elif test "x$condition" == "xgreater" ; then
9211 { echo "$as_me:$LINENO: result: $OCAMLVER" >&5
9212 echo "${ECHO_T}$OCAMLVER" >&6; }
9214 fi # Disabling ocaml
9234 #----------------------------------------------------------------
9236 #----------------------------------------------------------------
9238 # Identify the name of the Pike executable
9239 # Priority: configure option, automatic search
9242 # Check whether --with-pike was given.
9243 if test "${with_pike+set}" = set; then
9244 withval=$with_pike; PIKEBIN="$withval"
9250 # First, check for "--without-pike" or "--with-pike=no".
9251 if test x"${PIKEBIN}" = xno -o x"${with_alllang}" = xno ; then
9252 { echo "$as_me:$LINENO: Disabling Pike" >&5
9253 echo "$as_me: Disabling Pike" >&6;}
9257 if test "x$PIKEBIN" = xyes; then
9258 for ac_prog in pike pike7.6 pike7.4 pike7.2
9260 # Extract the first word of "$ac_prog", so it can be a program name with args.
9261 set dummy $ac_prog; ac_word=$2
9262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9264 if test "${ac_cv_prog_PIKE+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 if test -n "$PIKE"; then
9268 ac_cv_prog_PIKE="$PIKE" # Let the user override the test.
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9277 ac_cv_prog_PIKE="$ac_prog"
9278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9287 PIKE=$ac_cv_prog_PIKE
9288 if test -n "$PIKE"; then
9289 { echo "$as_me:$LINENO: result: $PIKE" >&5
9290 echo "${ECHO_T}$PIKE" >&6; }
9292 { echo "$as_me:$LINENO: result: no" >&5
9293 echo "${ECHO_T}no" >&6; }
9297 test -n "$PIKE" && break
9305 # Check for pike-config
9306 # Priority: configure option, guessed from $PIKE, search from list
9308 # Check whether --with-pike-config was given.
9309 if test "${with_pike_config+set}" = set; then
9310 withval=$with_pike_config; PIKECONFIG="$withval"
9316 if test -z "$PIKECONFIG" -a -n "$PIKE"; then
9317 for ac_prog in $PIKE-config pike-config \
9318 pike7.6-config pike7.4-config pike7.2-config
9320 # Extract the first word of "$ac_prog", so it can be a program name with args.
9321 set dummy $ac_prog; ac_word=$2
9322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9324 if test "${ac_cv_prog_PIKECONFIG+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 if test -n "$PIKECONFIG"; then
9328 ac_cv_prog_PIKECONFIG="$PIKECONFIG" # Let the user override the test.
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334 test -z "$as_dir" && as_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9337 ac_cv_prog_PIKECONFIG="$ac_prog"
9338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9347 PIKECONFIG=$ac_cv_prog_PIKECONFIG
9348 if test -n "$PIKECONFIG"; then
9349 { echo "$as_me:$LINENO: result: $PIKECONFIG" >&5
9350 echo "${ECHO_T}$PIKECONFIG" >&6; }
9352 { echo "$as_me:$LINENO: result: no" >&5
9353 echo "${ECHO_T}no" >&6; }
9357 test -n "$PIKECONFIG" && break
9362 # Check for a --with-pikeincl option to configure
9363 # Priority: configure option, info from $PIKECONFIG, guessed by pike script
9365 # Check whether --with-pikeincl was given.
9366 if test "${with_pikeincl+set}" = set; then
9367 withval=$with_pikeincl; PIKEINCLUDE="-I$withval"
9373 if test -n "$PIKE"; then
9374 { echo "$as_me:$LINENO: checking for Pike header files" >&5
9375 echo $ECHO_N "checking for Pike header files... $ECHO_C" >&6; }
9376 if test -z "$PIKEINCLUDE" -a -n "$PIKECONFIG"; then
9377 PIKEINCLUDE=`$PIKECONFIG --cflags`
9379 if test -z "$PIKEINCLUDE" -a -n "$PIKE"; then
9380 PIKEPATH=`which $PIKE`
9381 PIKEINCLUDE=`$PIKE Tools/check-include-path.pike $PIKEPATH`
9382 PIKEINCLUDE="-I$PIKEINCLUDE"
9385 if test -z "$PIKEINCLUDE"; then
9386 { echo "$as_me:$LINENO: result: not found" >&5
9387 echo "${ECHO_T}not found" >&6; }
9389 { echo "$as_me:$LINENO: result: $PIKEINCLUDE" >&5
9390 echo "${ECHO_T}$PIKEINCLUDE" >&6; }
9397 #----------------------------------------------------------------
9399 #----------------------------------------------------------------
9409 # Check whether --with-chicken was given.
9410 if test "${with_chicken+set}" = set; then
9411 withval=$with_chicken; CHICKENBIN="$withval"
9417 # First, check for "--without-chicken" or "--with-chicken=no".
9418 if test x"${CHICKENBIN}" = xno -o x"${with_alllang}" = xno ; then
9419 { echo "$as_me:$LINENO: Disabling CHICKEN" >&5
9420 echo "$as_me: Disabling CHICKEN" >&6;}
9423 if test "x$CHICKENBIN" = xyes; then
9424 for ac_prog in chicken
9426 # Extract the first word of "$ac_prog", so it can be a program name with args.
9427 set dummy $ac_prog; ac_word=$2
9428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9430 if test "${ac_cv_prog_CHICKEN+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 if test -n "$CHICKEN"; then
9434 ac_cv_prog_CHICKEN="$CHICKEN" # Let the user override the test.
9436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440 test -z "$as_dir" && as_dir=.
9441 for ac_exec_ext in '' $ac_executable_extensions; do
9442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9443 ac_cv_prog_CHICKEN="$ac_prog"
9444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9453 CHICKEN=$ac_cv_prog_CHICKEN
9454 if test -n "$CHICKEN"; then
9455 { echo "$as_me:$LINENO: result: $CHICKEN" >&5
9456 echo "${ECHO_T}$CHICKEN" >&6; }
9458 { echo "$as_me:$LINENO: result: no" >&5
9459 echo "${ECHO_T}no" >&6; }
9463 test -n "$CHICKEN" && break
9467 CHICKEN="$CHICKENBIN"
9471 # Check whether --with-chickencsc was given.
9472 if test "${with_chickencsc+set}" = set; then
9473 withval=$with_chickencsc; CHICKEN_CSC="$withval"
9479 if test -z "$CHICKEN_CSC"; then
9482 # Extract the first word of "$ac_prog", so it can be a program name with args.
9483 set dummy $ac_prog; ac_word=$2
9484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9486 if test "${ac_cv_prog_CHICKEN_CSC+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 if test -n "$CHICKEN_CSC"; then
9490 ac_cv_prog_CHICKEN_CSC="$CHICKEN_CSC" # Let the user override the test.
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
9498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9499 ac_cv_prog_CHICKEN_CSC="$ac_prog"
9500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 CHICKEN_CSC=$ac_cv_prog_CHICKEN_CSC
9510 if test -n "$CHICKEN_CSC"; then
9511 { echo "$as_me:$LINENO: result: $CHICKEN_CSC" >&5
9512 echo "${ECHO_T}$CHICKEN_CSC" >&6; }
9514 { echo "$as_me:$LINENO: result: no" >&5
9515 echo "${ECHO_T}no" >&6; }
9519 test -n "$CHICKEN_CSC" && break
9522 # Both the Microsoft C# compiler and chicken have an executable called csc, so check that this csc is really the chicken one
9523 if test -n "$CHICKEN_CSC" ; then
9524 { echo "$as_me:$LINENO: checking whether csc is the chicken compiler" >&5
9525 echo $ECHO_N "checking whether csc is the chicken compiler... $ECHO_C" >&6; }
9526 $CHICKEN_CSC -version 2>/dev/null | grep "chicken" > /dev/null || CHICKEN_CSC=""
9527 if test -z "$CHICKEN_CSC"; then
9528 { echo "$as_me:$LINENO: result: no" >&5
9529 echo "${ECHO_T}no" >&6; }
9531 { echo "$as_me:$LINENO: result: yes" >&5
9532 echo "${ECHO_T}yes" >&6; }
9538 # Check whether --with-chickencsi was given.
9539 if test "${with_chickencsi+set}" = set; then
9540 withval=$with_chickencsi; CHICKEN_CSI="$withval"
9546 if test -z "$CHICKEN_CSI"; then
9549 # Extract the first word of "$ac_prog", so it can be a program name with args.
9550 set dummy $ac_prog; ac_word=$2
9551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9553 if test "${ac_cv_prog_CHICKEN_CSI+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 if test -n "$CHICKEN_CSI"; then
9557 ac_cv_prog_CHICKEN_CSI="$CHICKEN_CSI" # Let the user override the test.
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566 ac_cv_prog_CHICKEN_CSI="$ac_prog"
9567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9576 CHICKEN_CSI=$ac_cv_prog_CHICKEN_CSI
9577 if test -n "$CHICKEN_CSI"; then
9578 { echo "$as_me:$LINENO: result: $CHICKEN_CSI" >&5
9579 echo "${ECHO_T}$CHICKEN_CSI" >&6; }
9581 { echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6; }
9586 test -n "$CHICKEN_CSI" && break
9591 if test -n "$CHICKEN_CSC" ; then
9594 # Check whether --with-chickenopts was given.
9595 if test "${with_chickenopts+set}" = set; then
9596 withval=$with_chickenopts;
9597 CHICKENOPTS="$withval"
9603 # Check whether --with-chickensharedlib was given.
9604 if test "${with_chickensharedlib+set}" = set; then
9605 withval=$with_chickensharedlib;
9606 CHICKENSHAREDLIB="$withval"
9612 # Check whether --with-chickenlib was given.
9613 if test "${with_chickenlib+set}" = set; then
9614 withval=$with_chickenlib;
9615 CHICKENLIB="$withval"
9621 { echo "$as_me:$LINENO: checking for compiler options for static CHICKEN generated code" >&5
9622 echo $ECHO_N "checking for compiler options for static CHICKEN generated code... $ECHO_C" >&6; }
9623 if test -z "$CHICKENOPTS"; then
9624 CHICKENOPTS="`$CHICKEN_CSC -cflags`"
9626 CHICKENOPTS="`$CHICKEN_CSC -cflags` $CHICKENOPTS"
9628 if test -z "$CHICKENOPTS"; then
9629 { echo "$as_me:$LINENO: result: not found" >&5
9630 echo "${ECHO_T}not found" >&6; }
9632 { echo "$as_me:$LINENO: result: $CHICKENOPTS" >&5
9633 echo "${ECHO_T}$CHICKENOPTS" >&6; }
9636 { echo "$as_me:$LINENO: checking for linker options for shared CHICKEN generated code" >&5
9637 echo $ECHO_N "checking for linker options for shared CHICKEN generated code... $ECHO_C" >&6; }
9638 if test -z "$CHICKENSHAREDLIB"; then
9639 CHICKENSHAREDLIB="`$CHICKEN_CSC -shared -libs`"
9641 CHICKENSHAREDLIB="`$CHICKEN_CSC -shared -libs` $CHICKENSHAREDLIB"
9643 if test -z "$CHICKENSHAREDLIB"; then
9644 { echo "$as_me:$LINENO: result: not found" >&5
9645 echo "${ECHO_T}not found" >&6; }
9647 { echo "$as_me:$LINENO: result: $CHICKENSHAREDLIB" >&5
9648 echo "${ECHO_T}$CHICKENSHAREDLIB" >&6; }
9651 { echo "$as_me:$LINENO: checking for linker options for static CHICKEN generated code" >&5
9652 echo $ECHO_N "checking for linker options for static CHICKEN generated code... $ECHO_C" >&6; }
9653 if test -z "$CHICKENLIB"; then
9654 CHICKENLIB="`$CHICKEN_CSC -libs`"
9656 CHICKENLIB="`$CHICKEN_CSC -libs` $CHICKENLIB"
9658 if test -z "$CHICKENLIB"; then
9659 { echo "$as_me:$LINENO: result: not found" >&5
9660 echo "${ECHO_T}not found" >&6; }
9662 { echo "$as_me:$LINENO: result: $CHICKENLIB" >&5
9663 echo "${ECHO_T}$CHICKENLIB" >&6; }
9666 fi # have CHICKEN_CONFIG
9667 fi # Check for --without-chicken
9676 #----------------------------------------------------------------
9678 #----------------------------------------------------------------
9681 # Check whether --with-csharp was given.
9682 if test "${with_csharp+set}" = set; then
9683 withval=$with_csharp; with_csharp="$withval"
9689 # Check whether --with-cil-interpreter was given.
9690 if test "${with_cil_interpreter+set}" = set; then
9691 withval=$with_cil_interpreter; CSHARPBIN="$withval"
9697 # Check whether --with-csharp-compiler was given.
9698 if test "${with_csharp_compiler+set}" = set; then
9699 withval=$with_csharp_compiler; CSHARPCOMPILERBIN="$withval"
9705 # First, check for "--without-csharp" or "--with-csharp=no".
9706 if test x"${with_csharp}" = xno -o x"${with_alllang}" = xno ; then
9707 { echo "$as_me:$LINENO: Disabling CSharp" >&5
9708 echo "$as_me: Disabling CSharp" >&6;}
9712 if test -z "$CSHARPCOMPILERBIN" ; then
9714 *-*-cygwin* | *-*-mingw*)
9715 # prefer Mono gmcs (.NET 2.0) over mcs (.NET 1.1) - note mcs-1.2.3 has major pinvoke bug
9716 for ac_prog in csc gmcs mcs cscc
9718 # Extract the first word of "$ac_prog", so it can be a program name with args.
9719 set dummy $ac_prog; ac_word=$2
9720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9722 if test "${ac_cv_prog_CSHARPCOMPILER+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 if test -n "$CSHARPCOMPILER"; then
9726 ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735 ac_cv_prog_CSHARPCOMPILER="$ac_prog"
9736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER
9746 if test -n "$CSHARPCOMPILER"; then
9747 { echo "$as_me:$LINENO: result: $CSHARPCOMPILER" >&5
9748 echo "${ECHO_T}$CSHARPCOMPILER" >&6; }
9750 { echo "$as_me:$LINENO: result: no" >&5
9751 echo "${ECHO_T}no" >&6; }
9755 test -n "$CSHARPCOMPILER" && break
9758 if test -n "$CSHARPCOMPILER" && test "$CSHARPCOMPILER" = "csc" ; then
9759 { echo "$as_me:$LINENO: checking whether csc is the Microsoft CSharp compiler" >&5
9760 echo $ECHO_N "checking whether csc is the Microsoft CSharp compiler... $ECHO_C" >&6; }
9761 csc 2>/dev/null | grep "C#" > /dev/null || CSHARPCOMPILER=""
9762 if test -z "$CSHARPCOMPILER" ; then
9763 { echo "$as_me:$LINENO: result: no" >&5
9764 echo "${ECHO_T}no" >&6; }
9765 for ac_prog in gmcs mcs cscc
9767 # Extract the first word of "$ac_prog", so it can be a program name with args.
9768 set dummy $ac_prog; ac_word=$2
9769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9771 if test "${ac_cv_prog_CSHARPCOMPILER+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 if test -n "$CSHARPCOMPILER"; then
9775 ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test.
9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_prog_CSHARPCOMPILER="$ac_prog"
9785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER
9795 if test -n "$CSHARPCOMPILER"; then
9796 { echo "$as_me:$LINENO: result: $CSHARPCOMPILER" >&5
9797 echo "${ECHO_T}$CSHARPCOMPILER" >&6; }
9799 { echo "$as_me:$LINENO: result: no" >&5
9800 echo "${ECHO_T}no" >&6; }
9804 test -n "$CSHARPCOMPILER" && break
9808 { echo "$as_me:$LINENO: result: yes" >&5
9809 echo "${ECHO_T}yes" >&6; }
9813 *)for ac_prog in gmcs mcs cscc
9815 # Extract the first word of "$ac_prog", so it can be a program name with args.
9816 set dummy $ac_prog; ac_word=$2
9817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9819 if test "${ac_cv_prog_CSHARPCOMPILER+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 if test -n "$CSHARPCOMPILER"; then
9823 ac_cv_prog_CSHARPCOMPILER="$CSHARPCOMPILER" # Let the user override the test.
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832 ac_cv_prog_CSHARPCOMPILER="$ac_prog"
9833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9842 CSHARPCOMPILER=$ac_cv_prog_CSHARPCOMPILER
9843 if test -n "$CSHARPCOMPILER"; then
9844 { echo "$as_me:$LINENO: result: $CSHARPCOMPILER" >&5
9845 echo "${ECHO_T}$CSHARPCOMPILER" >&6; }
9847 { echo "$as_me:$LINENO: result: no" >&5
9848 echo "${ECHO_T}no" >&6; }
9852 test -n "$CSHARPCOMPILER" && break
9857 CSHARPCOMPILER="$CSHARPCOMPILERBIN"
9860 CSHARPPATHSEPARATOR="/"
9861 CSHARPCYGPATH_W=echo
9862 if test -z "$CSHARPBIN" ; then
9863 CSHARPCILINTERPRETER=""
9864 if test "cscc" = "$CSHARPCOMPILER" ; then
9865 for ac_prog in ilrun
9867 # Extract the first word of "$ac_prog", so it can be a program name with args.
9868 set dummy $ac_prog; ac_word=$2
9869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9871 if test "${ac_cv_prog_CSHARPCILINTERPRETER+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 if test -n "$CSHARPCILINTERPRETER"; then
9875 ac_cv_prog_CSHARPCILINTERPRETER="$CSHARPCILINTERPRETER" # Let the user override the test.
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 test -z "$as_dir" && as_dir=.
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9884 ac_cv_prog_CSHARPCILINTERPRETER="$ac_prog"
9885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9894 CSHARPCILINTERPRETER=$ac_cv_prog_CSHARPCILINTERPRETER
9895 if test -n "$CSHARPCILINTERPRETER"; then
9896 { echo "$as_me:$LINENO: result: $CSHARPCILINTERPRETER" >&5
9897 echo "${ECHO_T}$CSHARPCILINTERPRETER" >&6; }
9899 { echo "$as_me:$LINENO: result: no" >&5
9900 echo "${ECHO_T}no" >&6; }
9904 test -n "$CSHARPCILINTERPRETER" && break
9908 if test "mcs" = "$CSHARPCOMPILER"; then
9909 # Check that mcs is the C# compiler and not the Unix mcs utility by examining the output of 'mcs --version'
9910 # The Mono compiler should emit: Mono C# compiler version a.b.c.d
9911 csharp_version_raw=`(mcs --version) 2>/dev/null`
9912 csharp_version_searched=`(mcs --version | sed -e "/C#/b" -e "/Mono/b" -e d) 2>/dev/null` # return string if contains 'Mono' or 'C#'
9914 if test -n "$csharp_version_raw" ; then
9915 if test "$csharp_version_raw" = "$csharp_version_searched" ; then
9916 CSHARPCOMPILER="mcs"
9919 if test "mcs" != "$CSHARPCOMPILER" ; then
9920 echo "mcs is not a working Mono C# compiler"
9923 if test "mcs" = "$CSHARPCOMPILER" || test "gmcs" = "$CSHARPCOMPILER"; then
9926 # Extract the first word of "$ac_prog", so it can be a program name with args.
9927 set dummy $ac_prog; ac_word=$2
9928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9930 if test "${ac_cv_prog_CSHARPCILINTERPRETER+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 if test -n "$CSHARPCILINTERPRETER"; then
9934 ac_cv_prog_CSHARPCILINTERPRETER="$CSHARPCILINTERPRETER" # Let the user override the test.
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9943 ac_cv_prog_CSHARPCILINTERPRETER="$ac_prog"
9944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 CSHARPCILINTERPRETER=$ac_cv_prog_CSHARPCILINTERPRETER
9954 if test -n "$CSHARPCILINTERPRETER"; then
9955 { echo "$as_me:$LINENO: result: $CSHARPCILINTERPRETER" >&5
9956 echo "${ECHO_T}$CSHARPCILINTERPRETER" >&6; }
9958 { echo "$as_me:$LINENO: result: no" >&5
9959 echo "${ECHO_T}no" >&6; }
9963 test -n "$CSHARPCILINTERPRETER" && break
9967 if test "csc" = "$CSHARPCOMPILER"; then
9968 CSHARPPATHSEPARATOR="\\\\"
9969 CSHARPCYGPATH_W='cygpath -w'
9974 CSHARPCILINTERPRETER="$CSHARPBIN"
9977 # Cygwin requires the Windows standard (Pascal) calling convention as it is a Windows executable and not a Cygwin built executable
9979 *-*-cygwin* | *-*-mingw*)
9980 if test "$GCC" = yes; then
9981 CSHARPDYNAMICLINKING=" -mno-cygwin -mthreads -Wl,--add-stdcall-alias"
9982 CSHARPCFLAGS="-mno-cygwin -mthreads"
9984 CSHARPDYNAMICLINKING=""
9988 CSHARPDYNAMICLINKING=""
9993 # CSharp on Windows platforms including Cygwin doesn't use libname.dll, rather name.dll when loading dlls
9995 *-*-cygwin* | *-*-mingw*) CSHARPLIBRARYPREFIX="";;
9996 *)CSHARPLIBRARYPREFIX="lib";;
9999 # C#/Mono on Mac OS X tweaks
10015 # Is this going to be used?
10019 #----------------------------------------------------------------
10021 #----------------------------------------------------------------
10029 # note: if LUABIN is empty then lua tests will not be done
10030 # LUABIN will be cleared if certain dependencies cannot be found
10033 # Check whether --with-lua was given.
10034 if test "${with_lua+set}" = set; then
10035 withval=$with_lua; LUABIN="$withval"
10041 # Check whether --with-luaincl was given.
10042 if test "${with_luaincl+set}" = set; then
10043 withval=$with_luaincl;
10044 LUAINCLUDE="$withval"
10050 # Check whether --with-lualib was given.
10051 if test "${with_lualib+set}" = set; then
10052 withval=$with_lualib;
10059 # First, check for "--without-lua" or "--with-lua=no".
10060 if test x"${LUABIN}" = xno -o x"${with_alllang}" = xno ; then
10061 { echo "$as_me:$LINENO: Disabling Lua" >&5
10062 echo "$as_me: Disabling Lua" >&6;}
10066 if test "x$LUABIN" = xyes; then
10067 # Extract the first word of "lua", so it can be a program name with args.
10068 set dummy lua; ac_word=$2
10069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10071 if test "${ac_cv_path_LUABIN+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 ac_cv_path_LUABIN="$LUABIN" # Let the user override the test with a path.
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10086 ac_cv_path_LUABIN="$as_dir/$ac_word$ac_exec_ext"
10087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 LUABIN=$ac_cv_path_LUABIN
10098 if test -n "$LUABIN"; then
10099 { echo "$as_me:$LINENO: result: $LUABIN" >&5
10100 echo "${ECHO_T}$LUABIN" >&6; }
10102 { echo "$as_me:$LINENO: result: no" >&5
10103 echo "${ECHO_T}no" >&6; }
10109 # check version: we need Lua 5.x
10110 if test "$LUABIN"; then
10111 { echo "$as_me:$LINENO: checking Lua version" >&5
10112 echo $ECHO_N "checking Lua version... $ECHO_C" >&6; }
10114 LUAV5=`$LUABIN -e 'if string.sub(_VERSION,5,5)=="5" then print "1" end'`
10115 # if not version 5.0
10116 LUAV51=`$LUABIN -e 'if string.sub(_VERSION,5,7)~="5.0" then print "1" end'`
10118 if test -z "$LUAV5"; then
10119 { echo "$as_me:$LINENO: WARNING: Not Lua 5.x" >&5
10120 echo "$as_me: WARNING: Not Lua 5.x" >&2;}
10122 elif test -z "$LUAV51"; then
10123 { echo "$as_me:$LINENO: result: Lua 5.0.x" >&5
10124 echo "${ECHO_T}Lua 5.0.x" >&6; }
10126 { echo "$as_me:$LINENO: result: Lua 5.1 or later" >&5
10127 echo "${ECHO_T}Lua 5.1 or later" >&6; }
10131 if test "$LUABIN"; then
10132 { echo "$as_me:$LINENO: checking whether Lua dynamic loading is enabled" >&5
10133 echo $ECHO_N "checking whether Lua dynamic loading is enabled... $ECHO_C" >&6; }
10134 # using Lua to check Lua
10135 # lua 5.0 & 5.1 have different fn names
10136 if test -z "$LUAV51"; then
10137 LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=loadlib("no_such_lib","") if c~="absent" then print "1" end'`
10139 LUADYNAMICLOADLIB=`$LUABIN -e '_,_,c=package.loadlib("no_such_lib","") if c~="absent" then print "1" end'`
10142 if test -z "$LUADYNAMICLOADLIB"; then
10143 { echo "$as_me:$LINENO: result: no" >&5
10144 echo "${ECHO_T}no" >&6; }
10146 { echo "$as_me:$LINENO: result: yes" >&5
10147 echo "${ECHO_T}yes" >&6; }
10151 # look for the header files & set LUAFLAGS accordingly
10152 # will clear LUABIN if not present
10153 if test -n "$LUAINCLUDE"; then
10154 as_ac_File=`echo "ac_cv_file_$LUAINCLUDE/lua.h" | $as_tr_sh`
10155 { echo "$as_me:$LINENO: checking for $LUAINCLUDE/lua.h" >&5
10156 echo $ECHO_N "checking for $LUAINCLUDE/lua.h... $ECHO_C" >&6; }
10157 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 test "$cross_compiling" = yes &&
10161 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10162 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10163 { (exit 1); exit 1; }; }
10164 if test -r "$LUAINCLUDE/lua.h"; then
10165 eval "$as_ac_File=yes"
10167 eval "$as_ac_File=no"
10170 ac_res=`eval echo '${'$as_ac_File'}'`
10171 { echo "$as_me:$LINENO: result: $ac_res" >&5
10172 echo "${ECHO_T}$ac_res" >&6; }
10173 if test `eval echo '${'$as_ac_File'}'` = yes; then
10174 LUAFLAGS="$ISYSTEM$LUAINCLUDE"
10181 if test "${ac_cv_header_lua_h+set}" = set; then
10182 { echo "$as_me:$LINENO: checking for lua.h" >&5
10183 echo $ECHO_N "checking for lua.h... $ECHO_C" >&6; }
10184 if test "${ac_cv_header_lua_h+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 { echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
10188 echo "${ECHO_T}$ac_cv_header_lua_h" >&6; }
10190 # Is the header compilable?
10191 { echo "$as_me:$LINENO: checking lua.h usability" >&5
10192 echo $ECHO_N "checking lua.h usability... $ECHO_C" >&6; }
10193 cat >conftest.$ac_ext <<_ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 $ac_includes_default
10202 rm -f conftest.$ac_objext
10203 if { (ac_try="$ac_compile"
10204 case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_compile") 2>conftest.er1
10211 grep -v '^ *+' conftest.er1 >conftest.err
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } && {
10216 test -z "$ac_c_werror_flag" ||
10217 test ! -s conftest.err
10218 } && test -s conftest.$ac_objext; then
10219 ac_header_compiler=yes
10221 echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10224 ac_header_compiler=no
10227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10229 echo "${ECHO_T}$ac_header_compiler" >&6; }
10231 # Is the header present?
10232 { echo "$as_me:$LINENO: checking lua.h presence" >&5
10233 echo $ECHO_N "checking lua.h presence... $ECHO_C" >&6; }
10234 cat >conftest.$ac_ext <<_ACEOF
10237 cat confdefs.h >>conftest.$ac_ext
10238 cat >>conftest.$ac_ext <<_ACEOF
10239 /* end confdefs.h. */
10242 if { (ac_try="$ac_cpp conftest.$ac_ext"
10243 case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10250 grep -v '^ *+' conftest.er1 >conftest.err
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } >/dev/null && {
10255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10258 ac_header_preproc=yes
10260 echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10263 ac_header_preproc=no
10266 rm -f conftest.err conftest.$ac_ext
10267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10268 echo "${ECHO_T}$ac_header_preproc" >&6; }
10270 # So? What about this header?
10271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10273 { echo "$as_me:$LINENO: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&5
10274 echo "$as_me: WARNING: lua.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10275 { echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the compiler's result" >&5
10276 echo "$as_me: WARNING: lua.h: proceeding with the compiler's result" >&2;}
10277 ac_header_preproc=yes
10280 { echo "$as_me:$LINENO: WARNING: lua.h: present but cannot be compiled" >&5
10281 echo "$as_me: WARNING: lua.h: present but cannot be compiled" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: lua.h: check for missing prerequisite headers?" >&5
10283 echo "$as_me: WARNING: lua.h: check for missing prerequisite headers?" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: lua.h: see the Autoconf documentation" >&5
10285 echo "$as_me: WARNING: lua.h: see the Autoconf documentation" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: lua.h: section \"Present But Cannot Be Compiled\"" >&5
10287 echo "$as_me: WARNING: lua.h: section \"Present But Cannot Be Compiled\"" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: lua.h: proceeding with the preprocessor's result" >&5
10289 echo "$as_me: WARNING: lua.h: proceeding with the preprocessor's result" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: lua.h: in the future, the compiler will take precedence" >&5
10291 echo "$as_me: WARNING: lua.h: in the future, the compiler will take precedence" >&2;}
10293 ## ---------------------------------- ##
10294 ## Report this to http://www.swig.org ##
10295 ## ---------------------------------- ##
10297 ) | sed "s/^/$as_me: WARNING: /" >&2
10300 { echo "$as_me:$LINENO: checking for lua.h" >&5
10301 echo $ECHO_N "checking for lua.h... $ECHO_C" >&6; }
10302 if test "${ac_cv_header_lua_h+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 ac_cv_header_lua_h=$ac_header_preproc
10307 { echo "$as_me:$LINENO: result: $ac_cv_header_lua_h" >&5
10308 echo "${ECHO_T}$ac_cv_header_lua_h" >&6; }
10311 if test $ac_cv_header_lua_h = yes; then
10318 # if we didn't get it, going to have to look elsewhere (the hard way)
10319 if test -z "$LUA_OK"; then
10320 { echo "$as_me:$LINENO: checking for lua.h in other locations" >&5
10321 echo $ECHO_N "checking for lua.h in other locations... $ECHO_C" >&6; }
10322 # note: ubuntu seems to like /usr/include/lua5.1/lua.h
10323 dirs="/usr/include/lua* /usr/local/include"
10326 if test -r $i/lua.h; then
10327 { echo "$as_me:$LINENO: result: $i/lua.h" >&5
10328 echo "${ECHO_T}$i/lua.h" >&6; }
10329 LUAFLAGS="$ISYSTEM$i"
10333 if test -z "$LUAFLAGS"; then
10334 { echo "$as_me:$LINENO: result: not found" >&5
10335 echo "${ECHO_T}not found" >&6; }
10336 LUABIN="" # clear the bin
10341 # look for the library files & set LUALINK accordingly
10342 # will clear LUABIN if not present
10343 lua_save_LIBS=$LIBS # the code seems to disrupt LIBS, so saving
10345 if test -n "$LUALIB"; then
10346 as_ac_File=`echo "ac_cv_file_$LUALIB/liblua.a" | $as_tr_sh`
10347 { echo "$as_me:$LINENO: checking for $LUALIB/liblua.a" >&5
10348 echo $ECHO_N "checking for $LUALIB/liblua.a... $ECHO_C" >&6; }
10349 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 test "$cross_compiling" = yes &&
10353 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10354 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10355 { (exit 1); exit 1; }; }
10356 if test -r "$LUALIB/liblua.a"; then
10357 eval "$as_ac_File=yes"
10359 eval "$as_ac_File=no"
10362 ac_res=`eval echo '${'$as_ac_File'}'`
10363 { echo "$as_me:$LINENO: result: $ac_res" >&5
10364 echo "${ECHO_T}$ac_res" >&6; }
10365 if test `eval echo '${'$as_ac_File'}'` = yes; then
10366 LUALINK="-L$LUALIB -llua"
10372 { echo "$as_me:$LINENO: checking for library containing lua_close" >&5
10373 echo $ECHO_N "checking for library containing lua_close... $ECHO_C" >&6; }
10374 if test "${ac_cv_search_lua_close+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_func_search_save_LIBS=$LIBS
10378 cat >conftest.$ac_ext <<_ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10385 /* Override any GCC internal prototype to avoid an error.
10386 Use char because int might match the return type of a GCC
10387 builtin and then its argument prototype would still apply. */
10395 return lua_close ();
10400 for ac_lib in '' lua lua51 lua5.1 lua50 lua5.0; do
10401 if test -z "$ac_lib"; then
10402 ac_res="none required"
10405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10407 rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (ac_try="$ac_link"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_link") 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest$ac_exeext &&
10424 $as_test_x conftest$ac_exeext; then
10425 ac_cv_search_lua_close=$ac_res
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10435 if test "${ac_cv_search_lua_close+set}" = set; then
10439 if test "${ac_cv_search_lua_close+set}" = set; then
10442 ac_cv_search_lua_close=no
10444 rm conftest.$ac_ext
10445 LIBS=$ac_func_search_save_LIBS
10447 { echo "$as_me:$LINENO: result: $ac_cv_search_lua_close" >&5
10448 echo "${ECHO_T}$ac_cv_search_lua_close" >&6; }
10449 ac_res=$ac_cv_search_lua_close
10450 if test "$ac_res" != no; then
10451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10452 LUALINK="-l$ac_lib"
10459 # adding lualib for lua 5.0
10460 if test -z "$LUAV51"; then # extra for lua 5.0
10461 LUALINK="$LUALINK -llualib"
10464 LIBS=$lua_save_LIBS # restore LIBS
10466 fi # if not disabled
10473 #----------------------------------------------------------------
10474 # Look for Allegro Common Lisp
10475 #----------------------------------------------------------------
10480 # Check whether --with-allegrocl was given.
10481 if test "${with_allegrocl+set}" = set; then
10482 withval=$with_allegrocl; ALLEGROCLBIN="$withval"
10488 # First, check for "--without-allegrocl" or "--with-allegrocl=no".
10489 if test x"${ALLEGROCLBIN}" = xno -o x"${with_alllang}" = xno ; then
10490 { echo "$as_me:$LINENO: Disabling Allegro CL" >&5
10491 echo "$as_me: Disabling Allegro CL" >&6;}
10495 # can we find allegrocl?
10496 if test "x$ALLEGROCLBIN" = xyes; then
10497 # Extract the first word of "alisp", so it can be a program name with args.
10498 set dummy alisp; ac_word=$2
10499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10501 if test "${ac_cv_path_ALLEGROCLBIN+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 case $ALLEGROCLBIN in
10506 ac_cv_path_ALLEGROCLBIN="$ALLEGROCLBIN" # Let the user override the test with a path.
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10513 test -z "$as_dir" && as_dir=.
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10516 ac_cv_path_ALLEGROCLBIN="$as_dir/$ac_word$ac_exec_ext"
10517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10527 ALLEGROCLBIN=$ac_cv_path_ALLEGROCLBIN
10528 if test -n "$ALLEGROCLBIN"; then
10529 { echo "$as_me:$LINENO: result: $ALLEGROCLBIN" >&5
10530 echo "${ECHO_T}$ALLEGROCLBIN" >&6; }
10532 { echo "$as_me:$LINENO: result: no" >&5
10533 echo "${ECHO_T}no" >&6; }
10542 #----------------------------------------------------------------
10543 # Look for GNU CLISP
10544 #----------------------------------------------------------------
10549 # Check whether --with-clisp was given.
10550 if test "${with_clisp+set}" = set; then
10551 withval=$with_clisp; CLISPBIN="$withval"
10557 # First, check for "--without-clisp" or "--with-clisp=no".
10558 if test x"${CLISPBIN}" = xno -o x"${with_alllang}" = xno ; then
10559 { echo "$as_me:$LINENO: Disabling CLISP" >&5
10560 echo "$as_me: Disabling CLISP" >&6;}
10564 # can we find clisp?
10565 if test "x$CLISPBIN" = xyes; then
10566 # Extract the first word of "clisp", so it can be a program name with args.
10567 set dummy clisp; ac_word=$2
10568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10570 if test "${ac_cv_path_CLISPBIN+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 ac_cv_path_CLISPBIN="$CLISPBIN" # Let the user override the test with a path.
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10585 ac_cv_path_CLISPBIN="$as_dir/$ac_word$ac_exec_ext"
10586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10596 CLISPBIN=$ac_cv_path_CLISPBIN
10597 if test -n "$CLISPBIN"; then
10598 { echo "$as_me:$LINENO: result: $CLISPBIN" >&5
10599 echo "${ECHO_T}$CLISPBIN" >&6; }
10601 { echo "$as_me:$LINENO: result: no" >&5
10602 echo "${ECHO_T}no" >&6; }
10611 #----------------------------------------------------------------
10613 #----------------------------------------------------------------
10618 # Check whether --with-r was given.
10619 if test "${with_r+set}" = set; then
10620 withval=$with_r; RBIN="$withval"
10626 # First, check for "--without-r" or "--with-r=no".
10627 if test x"${RBIN}" = xno -o x"${with_alllang}" = xno ; then
10628 { echo "$as_me:$LINENO: Disabling R" >&5
10629 echo "$as_me: Disabling R" >&6;}
10634 if test "x$RBIN" = xyes; then
10635 # Extract the first word of "R", so it can be a program name with args.
10636 set dummy R; ac_word=$2
10637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10639 if test "${ac_cv_path_RBIN+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10644 ac_cv_path_RBIN="$RBIN" # Let the user override the test with a path.
10647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10648 for as_dir in $PATH
10651 test -z "$as_dir" && as_dir=.
10652 for ac_exec_ext in '' $ac_executable_extensions; do
10653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10654 ac_cv_path_RBIN="$as_dir/$ac_word$ac_exec_ext"
10655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10665 RBIN=$ac_cv_path_RBIN
10666 if test -n "$RBIN"; then
10667 { echo "$as_me:$LINENO: result: $RBIN" >&5
10668 echo "${ECHO_T}$RBIN" >&6; }
10670 { echo "$as_me:$LINENO: result: no" >&5
10671 echo "${ECHO_T}no" >&6; }
10680 #----------------------------------------------------------------
10681 # Determine which languages to use for examples/test-suite
10682 #----------------------------------------------------------------
10685 if test -z "$TCLINCLUDE" || test -z "$TCLLIB" ; then
10692 if test -z "$PERL" || test -z "$PERL5EXT" ; then
10699 if test -z "$OCTAVE" || test -z "$OCTAVEEXT" ; then
10706 if (test -z "$PYINCLUDE" || test -z "$PYLIB") &&
10707 (test -z "$PY3INCLUDE" || test -z "PY3LIB") ; then
10713 if test -z "$PY3INCLUDE" || test -z "$PY3LIB" ; then
10719 if test -z "$JAVA" || test -z "$JAVAC" || test -z "$JAVAINC" ; then
10726 if test -z "$GUILEINCLUDE" || test -z "$GUILELIB" || test -z "$GUILE_GH_INTERFACE"; then
10732 if test -z "$GUILEINCLUDE" || test -z "$GUILELIB" || test -z "$GUILE_SCM_INTERFACE"; then
10739 if test -z "$MZC" || test -z "$MZDYNOBJ" ; then
10746 if test -z "$RUBY" || test -z "$RUBYINCLUDE" || test -z "$RUBYLIB" ; then
10753 if test -z "$PHP" || test -z "$PHPINC" ; then
10760 if test -z "$OCAMLBIN" || test -z "$OCAMLINC" ; then
10766 SKIP_PIKE="1" # Always skipped!
10767 if test -z "$PIKE" || test -z "$PIKEINCLUDE" ; then
10774 if test -z "$CHICKEN_CSC" || test -z "$CHICKEN"; then
10781 if test -z "$CSHARPCOMPILER" ; then
10784 if test "cscc" = "$CSHARPCOMPILER" && test -z "$CSHARPCILINTERPRETER" ; then
10790 SKIP_MODULA3="1" # Always skipped!
10794 # we need LUABIN & dynamic loading
10795 if test -z "$LUABIN" || test -z "$LUADYNAMICLOADLIB"; then
10801 if test -z "$ALLEGROCLBIN" ; then
10807 if test -z "$CLISPBIN" ; then
10813 if test -z "$RBIN" ; then
10819 #if test -z "$CFFIBIN" ; then
10825 #if test -z "$UFFIBIN" ; then
10830 #----------------------------------------------------------------
10831 # Additional language dependencies
10832 #----------------------------------------------------------------
10834 if test -z "$GCJ" || test -z "$GCJH" ; then
10837 if test "$GCC" != yes; then
10844 #----------------------------------------------------------------
10846 #----------------------------------------------------------------
10850 # Translate path for native Windows compilers for use with 'make check'
10853 *-*-cygwin* | *-*-mingw*)
10854 if (cygpath --mixed $ROOT_DIR) >/dev/null 2>/dev/null; then
10855 ROOT_DIR=`cygpath --mixed $ROOT_DIR`
10857 # Extra files generated by some Windows compilers
10858 EXTRA_CLEAN="*.stackdump *.exp *.lib *.pdb *.ilk"
10866 # Configure SWIG_LIB path
10869 # Check whether --with-swiglibdir was given.
10870 if test "${with_swiglibdir+set}" = set; then
10871 withval=$with_swiglibdir; swig_lib="$withval"
10873 swig_lib="${datadir}/swig/${PACKAGE_VERSION}"
10880 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
10881 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
10882 eval ac_define_dir="\"$swig_lib\""
10883 eval ac_define_dir="\"$ac_define_dir\""
10884 SWIG_LIB="$ac_define_dir"
10887 cat >>confdefs.h <<_ACEOF
10888 #define SWIG_LIB "$ac_define_dir"
10891 test "$prefix_NONE" && prefix=NONE
10892 test "$exec_prefix_NONE" && exec_prefix=NONE
10896 # Windows does not understand unix directories. Convert into a windows directory with drive letter.
10897 *-*-mingw*) SWIG_LIB_WIN_UNIX=`cmd //c echo $SWIG_LIB | sed -e "s/ *$//"`;; # This echo converts unix to mixed paths. Then zap unexpected trailing space.
10898 *-*-cygwin*) SWIG_LIB_WIN_UNIX=`cygpath --mixed "$SWIG_LIB"`;;
10899 *) SWIG_LIB_WIN_UNIX="";;
10902 cat >>confdefs.h <<_ACEOF
10903 #define SWIG_LIB_WIN_UNIX "$SWIG_LIB_WIN_UNIX"
10907 ac_config_files="$ac_config_files Makefile swig.spec Source/Makefile Examples/Makefile Examples/guile/Makefile Examples/xml/Makefile Examples/GIFPlot/Makefile Examples/GIFPlot/Lib/Makefile Examples/test-suite/chicken/Makefile Examples/test-suite/csharp/Makefile Examples/test-suite/guile/Makefile Examples/test-suite/guilescm/Makefile Examples/test-suite/java/Makefile Examples/test-suite/mzscheme/Makefile Examples/test-suite/ocaml/Makefile Examples/test-suite/octave/Makefile Examples/test-suite/perl5/Makefile Examples/test-suite/php/Makefile Examples/test-suite/pike/Makefile Examples/test-suite/python/Makefile Examples/test-suite/ruby/Makefile Examples/test-suite/tcl/Makefile Examples/test-suite/lua/Makefile Examples/test-suite/allegrocl/Makefile Examples/test-suite/clisp/Makefile Examples/test-suite/cffi/Makefile Examples/test-suite/uffi/Makefile Examples/test-suite/r/Makefile Lib/ocaml/swigp4.ml"
10909 ac_config_files="$ac_config_files preinst-swig"
10911 ac_config_files="$ac_config_files CCache/ccache_swig_config.h"
10914 cat >confcache <<\_ACEOF
10915 # This file is a shell script that caches the results of configure
10916 # tests run on this system so they can be shared between configure
10917 # scripts and configure runs, see configure's option --config-cache.
10918 # It is not useful on other systems. If it contains results you don't
10919 # want to keep, you may remove or edit it.
10921 # config.status only pays attention to the cache file if you give it
10922 # the --recheck option to rerun configure.
10924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10926 # following values.
10930 # The following way of writing the cache mishandles newlines in values,
10931 # but we know of no workaround that is simple, portable, and efficient.
10932 # So, we kill variables containing newlines.
10933 # Ultrix sh set writes to stderr and can't be redirected directly,
10934 # and sets the high bit in the cache file unless we assign to the vars.
10936 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10937 eval ac_val=\$$ac_var
10941 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10942 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10945 _ | IFS | as_nl) ;; #(
10946 *) $as_unset $ac_var ;;
10952 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10953 *${as_nl}ac_space=\ *)
10954 # `set' does not quote correctly, so add quotes (double-quote
10955 # substitution turns \\\\ into \\, and sed turns \\ into \).
10958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10961 # `set' quotes correctly as required by POSIX, so do not add quotes.
10962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10973 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10976 if test -w "$cache_file"; then
10977 test "x$cache_file" != "x/dev/null" &&
10978 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10979 echo "$as_me: updating cache $cache_file" >&6;}
10980 cat confcache >$cache_file
10982 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10983 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10989 # Let make expand exec_prefix.
10990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10992 DEFS=-DHAVE_CONFIG_H
10996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10997 # 1. Remove the extension, and $U if already installed.
10998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10999 ac_i=`echo "$ac_i" | sed "$ac_script"`
11000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11001 # will be set to the directory where LIBOBJS objects are built.
11002 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11003 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11005 LIBOBJS=$ac_libobjs
11007 LTLIBOBJS=$ac_ltlibobjs
11010 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11011 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11012 Usually this means the macro was only invoked conditionally." >&5
11013 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11014 Usually this means the macro was only invoked conditionally." >&2;}
11015 { (exit 1); exit 1; }; }
11017 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11018 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11019 Usually this means the macro was only invoked conditionally." >&5
11020 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11021 Usually this means the macro was only invoked conditionally." >&2;}
11022 { (exit 1); exit 1; }; }
11024 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11025 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11026 Usually this means the macro was only invoked conditionally." >&5
11027 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11028 Usually this means the macro was only invoked conditionally." >&2;}
11029 { (exit 1); exit 1; }; }
11032 : ${CONFIG_STATUS=./config.status}
11033 ac_clean_files_save=$ac_clean_files
11034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11035 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11036 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11037 cat >$CONFIG_STATUS <<_ACEOF
11039 # Generated by $as_me.
11040 # Run this file to recreate the current configuration.
11041 # Compiler output produced by configure, useful for debugging
11042 # configure, is in config.log if it exists.
11045 ac_cs_recheck=false
11047 SHELL=\${CONFIG_SHELL-$SHELL}
11050 cat >>$CONFIG_STATUS <<\_ACEOF
11051 ## --------------------- ##
11052 ## M4sh Initialization. ##
11053 ## --------------------- ##
11055 # Be more Bourne compatible
11056 DUALCASE=1; export DUALCASE # for MKS sh
11057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11060 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11061 # is contrary to our usage. Disable this feature.
11062 alias -g '${1+"$@"}'='"$@"'
11063 setopt NO_GLOB_SUBST
11065 case `(set -o) 2>/dev/null` in
11066 *posix*) set -o posix ;;
11075 # Avoid depending upon Character Ranges.
11076 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11077 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11078 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11079 as_cr_digits='0123456789'
11080 as_cr_alnum=$as_cr_Letters$as_cr_digits
11082 # The user is always right.
11083 if test "${PATH_SEPARATOR+set}" != set; then
11084 echo "#! /bin/sh" >conf$$.sh
11085 echo "exit 0" >>conf$$.sh
11087 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11095 # Support unset when possible.
11096 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11104 # We need space, tab and new line, in precisely that order. Quoting is
11105 # there to prevent editors from complaining about space-tab.
11106 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11107 # splitting by setting IFS to empty value.)
11112 # Find who we are. Look in the path if we contain no directory separator.
11114 *[\\/]* ) as_myself=$0 ;;
11115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11119 test -z "$as_dir" && as_dir=.
11120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11126 # We did not find ourselves, most probably we were run as `sh COMMAND'
11127 # in which case we are not to be found in the path.
11128 if test "x$as_myself" = x; then
11131 if test ! -f "$as_myself"; then
11132 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11133 { (exit 1); exit 1; }
11136 # Work around bugs in pre-3.0 UWIN ksh.
11137 for as_var in ENV MAIL MAILPATH
11138 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11146 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11147 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11148 LC_TELEPHONE LC_TIME
11150 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11151 eval $as_var=C; export $as_var
11153 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11157 # Required to use basename.
11158 if expr a : '\(a\)' >/dev/null 2>&1 &&
11159 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11165 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11166 as_basename=basename
11172 # Name of the executable.
11173 as_me=`$as_basename -- "$0" ||
11174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11175 X"$0" : 'X\(//\)$' \| \
11176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11178 sed '/^.*\/\([^/][^/]*\)\/*$/{
11197 as_lineno_1=$LINENO
11198 as_lineno_2=$LINENO
11199 test "x$as_lineno_1" != "x$as_lineno_2" &&
11200 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11202 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11203 # uniformly replaced by the line number. The first 'sed' inserts a
11204 # line-number line after each line using $LINENO; the second 'sed'
11205 # does the real work. The second script uses 'N' to pair each
11206 # line-number line with the line containing $LINENO, and appends
11207 # trailing '-' during substitution so that $LINENO is not a special
11208 # case at line end.
11209 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11210 # scripts with optimization help from Paolo Bonzini. Blame Lee
11211 # E. McMahon (1931-1989) for sed's syntax. :-)
11223 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11226 ' >$as_me.lineno &&
11227 chmod +x "$as_me.lineno" ||
11228 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11229 { (exit 1); exit 1; }; }
11231 # Don't try to exec as it changes $[0], causing all sort of problems
11232 # (the dirname of $[0] is not the place where we might find the
11233 # original and so on. Autoconf is especially sensitive to this).
11234 . "./$as_me.lineno"
11235 # Exit status is that of the last command.
11240 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11246 ECHO_C= ECHO_N= ECHO_T=
11247 case `echo -n x` in
11249 case `echo 'x\c'` in
11250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11257 if expr a : '\(a\)' >/dev/null 2>&1 &&
11258 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11264 rm -f conf$$ conf$$.exe conf$$.file
11265 if test -d conf$$.dir; then
11266 rm -f conf$$.dir/conf$$.file
11272 if ln -s conf$$.file conf$$ 2>/dev/null; then
11274 # ... but there are two gotchas:
11275 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11276 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11277 # In both cases, we have to default to `cp -p'.
11278 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11280 elif ln conf$$.file conf$$ 2>/dev/null; then
11285 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11286 rmdir conf$$.dir 2>/dev/null
11288 if mkdir -p . 2>/dev/null; then
11291 test -d ./-p && rmdir ./-p
11295 if test -x / >/dev/null 2>&1; then
11296 as_test_x='test -x'
11298 if ls -dL / >/dev/null 2>&1; then
11305 if test -d "$1"; then
11311 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11312 ???[sx]*):;;*)false;;esac;fi
11316 as_executable_p=$as_test_x
11318 # Sed expression to map a string onto a valid CPP name.
11319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11321 # Sed expression to map a string onto a valid variable name.
11322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11327 # Save the log message, to keep $[0] and so on meaningful, and to
11328 # report actual input values of CONFIG_FILES etc. instead of their
11329 # values after options handling.
11331 This file was extended by swig $as_me 1.3.40, which was
11332 generated by GNU Autoconf 2.61. Invocation command line was
11334 CONFIG_FILES = $CONFIG_FILES
11335 CONFIG_HEADERS = $CONFIG_HEADERS
11336 CONFIG_LINKS = $CONFIG_LINKS
11337 CONFIG_COMMANDS = $CONFIG_COMMANDS
11340 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11345 cat >>$CONFIG_STATUS <<_ACEOF
11346 # Files that config.status was made for.
11347 config_files="$ac_config_files"
11348 config_headers="$ac_config_headers"
11349 config_commands="$ac_config_commands"
11353 cat >>$CONFIG_STATUS <<\_ACEOF
11355 \`$as_me' instantiates files from templates according to the
11356 current configuration.
11358 Usage: $0 [OPTIONS] [FILE]...
11360 -h, --help print this help, then exit
11361 -V, --version print version number and configuration settings, then exit
11362 -q, --quiet do not print progress messages
11363 -d, --debug don't remove temporary files
11364 --recheck update $as_me by reconfiguring in the same conditions
11365 --file=FILE[:TEMPLATE]
11366 instantiate the configuration file FILE
11367 --header=FILE[:TEMPLATE]
11368 instantiate the configuration header FILE
11370 Configuration files:
11373 Configuration headers:
11376 Configuration commands:
11379 Report bugs to <bug-autoconf@gnu.org>."
11382 cat >>$CONFIG_STATUS <<_ACEOF
11384 swig config.status 1.3.40
11385 configured by $0, generated by GNU Autoconf 2.61,
11386 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11388 Copyright (C) 2006 Free Software Foundation, Inc.
11389 This config.status script is free software; the Free Software Foundation
11390 gives unlimited permission to copy, distribute and modify it."
11398 cat >>$CONFIG_STATUS <<\_ACEOF
11399 # If no file are specified by the user, then we need to provide default
11400 # value. By we need to know if files were specified by the user.
11406 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11407 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11418 # Handling of the options.
11419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11421 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11422 echo "$ac_cs_version"; exit ;;
11423 --debug | --debu | --deb | --de | --d | -d )
11425 --file | --fil | --fi | --f )
11427 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11428 ac_need_defaults=false;;
11429 --header | --heade | --head | --hea )
11431 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11432 ac_need_defaults=false;;
11434 # Conflict between --help and --header
11435 { echo "$as_me: error: ambiguous option: $1
11436 Try \`$0 --help' for more information." >&2
11437 { (exit 1); exit 1; }; };;
11438 --help | --hel | -h )
11439 echo "$ac_cs_usage"; exit ;;
11440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11441 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11444 # This is an error.
11445 -*) { echo "$as_me: error: unrecognized option: $1
11446 Try \`$0 --help' for more information." >&2
11447 { (exit 1); exit 1; }; } ;;
11449 *) ac_config_targets="$ac_config_targets $1"
11450 ac_need_defaults=false ;;
11456 ac_configure_extra_args=
11458 if $ac_cs_silent; then
11460 ac_configure_extra_args="$ac_configure_extra_args --silent"
11464 cat >>$CONFIG_STATUS <<_ACEOF
11465 if \$ac_cs_recheck; then
11466 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11467 CONFIG_SHELL=$SHELL
11468 export CONFIG_SHELL
11469 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11473 cat >>$CONFIG_STATUS <<\_ACEOF
11477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11478 ## Running $as_me. ##
11484 cat >>$CONFIG_STATUS <<_ACEOF
11488 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11492 cat >>$CONFIG_STATUS <<\_ACEOF
11494 # Handling of arguments.
11495 for ac_config_target in $ac_config_targets
11497 case $ac_config_target in
11498 "Source/Include/swigconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS Source/Include/swigconfig.h" ;;
11499 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11500 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11501 "swig.spec") CONFIG_FILES="$CONFIG_FILES swig.spec" ;;
11502 "Source/Makefile") CONFIG_FILES="$CONFIG_FILES Source/Makefile" ;;
11503 "Examples/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/Makefile" ;;
11504 "Examples/guile/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/guile/Makefile" ;;
11505 "Examples/xml/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/xml/Makefile" ;;
11506 "Examples/GIFPlot/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/GIFPlot/Makefile" ;;
11507 "Examples/GIFPlot/Lib/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/GIFPlot/Lib/Makefile" ;;
11508 "Examples/test-suite/chicken/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/chicken/Makefile" ;;
11509 "Examples/test-suite/csharp/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/csharp/Makefile" ;;
11510 "Examples/test-suite/guile/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/guile/Makefile" ;;
11511 "Examples/test-suite/guilescm/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/guilescm/Makefile" ;;
11512 "Examples/test-suite/java/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/java/Makefile" ;;
11513 "Examples/test-suite/mzscheme/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/mzscheme/Makefile" ;;
11514 "Examples/test-suite/ocaml/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/ocaml/Makefile" ;;
11515 "Examples/test-suite/octave/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/octave/Makefile" ;;
11516 "Examples/test-suite/perl5/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/perl5/Makefile" ;;
11517 "Examples/test-suite/php/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/php/Makefile" ;;
11518 "Examples/test-suite/pike/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/pike/Makefile" ;;
11519 "Examples/test-suite/python/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/python/Makefile" ;;
11520 "Examples/test-suite/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/ruby/Makefile" ;;
11521 "Examples/test-suite/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/tcl/Makefile" ;;
11522 "Examples/test-suite/lua/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/lua/Makefile" ;;
11523 "Examples/test-suite/allegrocl/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/allegrocl/Makefile" ;;
11524 "Examples/test-suite/clisp/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/clisp/Makefile" ;;
11525 "Examples/test-suite/cffi/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/cffi/Makefile" ;;
11526 "Examples/test-suite/uffi/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/uffi/Makefile" ;;
11527 "Examples/test-suite/r/Makefile") CONFIG_FILES="$CONFIG_FILES Examples/test-suite/r/Makefile" ;;
11528 "Lib/ocaml/swigp4.ml") CONFIG_FILES="$CONFIG_FILES Lib/ocaml/swigp4.ml" ;;
11529 "preinst-swig") CONFIG_FILES="$CONFIG_FILES preinst-swig" ;;
11530 "CCache/ccache_swig_config.h") CONFIG_FILES="$CONFIG_FILES CCache/ccache_swig_config.h" ;;
11532 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11533 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11534 { (exit 1); exit 1; }; };;
11539 # If the user did not use the arguments to specify the items to instantiate,
11540 # then the envvar interface is used. Set only those that are not.
11541 # We use the long form for the default assignment because of an extremely
11542 # bizarre bug on SunOS 4.1.3.
11543 if $ac_need_defaults; then
11544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11549 # Have a temporary directory for convenience. Make it in the build tree
11550 # simply because there is no reason against having it here, and in addition,
11551 # creating and moving files from /tmp can sometimes cause problems.
11552 # Hook for its removal unless debugging.
11553 # Note that there is a small window in which the directory will not be cleaned:
11554 # after its creation but before its name has been assigned to `$tmp'.
11558 trap 'exit_status=$?
11559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11561 trap '{ (exit 1); exit 1; }' 1 2 13 15
11563 # Create a (secure) tmp directory for tmp files.
11566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11567 test -n "$tmp" && test -d "$tmp"
11570 tmp=./conf$$-$RANDOM
11571 (umask 077 && mkdir "$tmp")
11574 echo "$me: cannot create a temporary directory in ." >&2
11575 { (exit 1); exit 1; }
11579 # Set up the sed scripts for CONFIG_FILES section.
11582 # No need to generate the scripts if there are no CONFIG_FILES.
11583 # This happens for instance when ./config.status config.h
11584 if test -n "$CONFIG_FILES"; then
11591 for ac_last_try in false false false false false :; do
11592 cat >conf$$subs.sed <<_ACEOF
11593 SHELL!$SHELL$ac_delim
11594 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11595 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11596 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11597 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11598 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11599 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11600 exec_prefix!$exec_prefix$ac_delim
11601 prefix!$prefix$ac_delim
11602 program_transform_name!$program_transform_name$ac_delim
11603 bindir!$bindir$ac_delim
11604 sbindir!$sbindir$ac_delim
11605 libexecdir!$libexecdir$ac_delim
11606 datarootdir!$datarootdir$ac_delim
11607 datadir!$datadir$ac_delim
11608 sysconfdir!$sysconfdir$ac_delim
11609 sharedstatedir!$sharedstatedir$ac_delim
11610 localstatedir!$localstatedir$ac_delim
11611 includedir!$includedir$ac_delim
11612 oldincludedir!$oldincludedir$ac_delim
11613 docdir!$docdir$ac_delim
11614 infodir!$infodir$ac_delim
11615 htmldir!$htmldir$ac_delim
11616 dvidir!$dvidir$ac_delim
11617 pdfdir!$pdfdir$ac_delim
11618 psdir!$psdir$ac_delim
11619 libdir!$libdir$ac_delim
11620 localedir!$localedir$ac_delim
11621 mandir!$mandir$ac_delim
11622 DEFS!$DEFS$ac_delim
11623 ECHO_C!$ECHO_C$ac_delim
11624 ECHO_N!$ECHO_N$ac_delim
11625 ECHO_T!$ECHO_T$ac_delim
11626 LIBS!$LIBS$ac_delim
11627 build_alias!$build_alias$ac_delim
11628 host_alias!$host_alias$ac_delim
11629 target_alias!$target_alias$ac_delim
11630 build!$build$ac_delim
11631 build_cpu!$build_cpu$ac_delim
11632 build_vendor!$build_vendor$ac_delim
11633 build_os!$build_os$ac_delim
11634 host!$host$ac_delim
11635 host_cpu!$host_cpu$ac_delim
11636 host_vendor!$host_vendor$ac_delim
11637 host_os!$host_os$ac_delim
11638 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11639 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11640 INSTALL_DATA!$INSTALL_DATA$ac_delim
11641 am__isrc!$am__isrc$ac_delim
11642 CYGPATH_W!$CYGPATH_W$ac_delim
11643 PACKAGE!$PACKAGE$ac_delim
11644 VERSION!$VERSION$ac_delim
11645 ACLOCAL!$ACLOCAL$ac_delim
11646 AUTOCONF!$AUTOCONF$ac_delim
11647 AUTOMAKE!$AUTOMAKE$ac_delim
11648 AUTOHEADER!$AUTOHEADER$ac_delim
11649 MAKEINFO!$MAKEINFO$ac_delim
11650 install_sh!$install_sh$ac_delim
11651 STRIP!$STRIP$ac_delim
11652 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11653 mkdir_p!$mkdir_p$ac_delim
11655 SET_MAKE!$SET_MAKE$ac_delim
11656 am__leading_dot!$am__leading_dot$ac_delim
11657 AMTAR!$AMTAR$ac_delim
11658 am__tar!$am__tar$ac_delim
11659 am__untar!$am__untar$ac_delim
11661 CFLAGS!$CFLAGS$ac_delim
11662 LDFLAGS!$LDFLAGS$ac_delim
11663 CPPFLAGS!$CPPFLAGS$ac_delim
11664 ac_ct_CC!$ac_ct_CC$ac_delim
11665 EXEEXT!$EXEEXT$ac_delim
11666 OBJEXT!$OBJEXT$ac_delim
11667 DEPDIR!$DEPDIR$ac_delim
11668 am__include!$am__include$ac_delim
11669 am__quote!$am__quote$ac_delim
11670 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11671 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11672 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11673 CCDEPMODE!$CCDEPMODE$ac_delim
11674 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11675 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11677 CXXFLAGS!$CXXFLAGS$ac_delim
11678 ac_ct_CXX!$ac_ct_CXX$ac_delim
11679 CXXDEPMODE!$CXXDEPMODE$ac_delim
11680 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
11681 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
11683 GREP!$GREP$ac_delim
11684 EGREP!$EGREP$ac_delim
11685 subdirs!$subdirs$ac_delim
11686 ENABLE_CCACHE!$ENABLE_CCACHE$ac_delim
11687 YACC!$YACC$ac_delim
11688 YFLAGS!$YFLAGS$ac_delim
11689 RANLIB!$RANLIB$ac_delim
11692 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11694 elif $ac_last_try; then
11695 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11696 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11697 { (exit 1); exit 1; }; }
11699 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11703 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11704 if test -n "$ac_eof"; then
11705 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11706 ac_eof=`expr $ac_eof + 1`
11709 cat >>$CONFIG_STATUS <<_ACEOF
11710 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11714 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11715 s/^/s,@/; s/!/@,|#_!!_#|/
11718 s/'"$ac_delim"'$/,g/; t
11720 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11721 ' >>$CONFIG_STATUS <conf$$subs.sed
11722 rm -f conf$$subs.sed
11723 cat >>$CONFIG_STATUS <<_ACEOF
11729 for ac_last_try in false false false false false :; do
11730 cat >conf$$subs.sed <<_ACEOF
11732 YODL2MAN!$YODL2MAN$ac_delim
11733 YODL2HTML!$YODL2HTML$ac_delim
11735 LDSHARED!$LDSHARED$ac_delim
11736 CCSHARED!$CCSHARED$ac_delim
11737 CXXSHARED!$CXXSHARED$ac_delim
11738 TRYLINKINGWITHCXX!$TRYLINKINGWITHCXX$ac_delim
11739 LINKFORSHARED!$LINKFORSHARED$ac_delim
11740 RPATH!$RPATH$ac_delim
11741 PYTHON_SO!$PYTHON_SO$ac_delim
11742 TCL_SO!$TCL_SO$ac_delim
11743 GUILE_SO!$GUILE_SO$ac_delim
11744 PHP_SO!$PHP_SO$ac_delim
11745 MZSCHEME_SO!$MZSCHEME_SO$ac_delim
11746 LUA_SO!$LUA_SO$ac_delim
11747 PLATFLAGS!$PLATFLAGS$ac_delim
11748 SWIGLIBS!$SWIGLIBS$ac_delim
11749 SWILL!$SWILL$ac_delim
11750 LIBM!$LIBM$ac_delim
11751 LIBCRYPT!$LIBCRYPT$ac_delim
11752 LIBC!$LIBC$ac_delim
11753 XMKMF!$XMKMF$ac_delim
11754 XINCLUDES!$XINCLUDES$ac_delim
11755 XLIBSW!$XLIBSW$ac_delim
11756 TCLINCLUDE!$TCLINCLUDE$ac_delim
11757 TCLLIB!$TCLLIB$ac_delim
11758 TCLDYNAMICLINKING!$TCLDYNAMICLINKING$ac_delim
11759 TCLLDSHARED!$TCLLDSHARED$ac_delim
11760 TCLCXXSHARED!$TCLCXXSHARED$ac_delim
11761 PYTHON!$PYTHON$ac_delim
11762 PYINCLUDE!$PYINCLUDE$ac_delim
11763 PYLIB!$PYLIB$ac_delim
11764 PYLINK!$PYLINK$ac_delim
11765 PYTHONDYNAMICLINKING!$PYTHONDYNAMICLINKING$ac_delim
11766 PYTHON3!$PYTHON3$ac_delim
11767 PY3CONFIG!$PY3CONFIG$ac_delim
11768 PY3INCLUDE!$PY3INCLUDE$ac_delim
11769 PY3LIB!$PY3LIB$ac_delim
11770 PY3LINK!$PY3LINK$ac_delim
11771 PYTHON3DYNAMICLINKING!$PYTHON3DYNAMICLINKING$ac_delim
11772 PERL!$PERL$ac_delim
11773 PERL5EXT!$PERL5EXT$ac_delim
11774 PERL5DYNAMICLINKING!$PERL5DYNAMICLINKING$ac_delim
11775 PERL5LIB!$PERL5LIB$ac_delim
11776 PERL5CCFLAGS!$PERL5CCFLAGS$ac_delim
11777 OCTAVE!$OCTAVE$ac_delim
11778 OCTAVEEXT!$OCTAVEEXT$ac_delim
11779 OCTAVE_SO!$OCTAVE_SO$ac_delim
11780 OCTAVEDYNAMICLINKING!$OCTAVEDYNAMICLINKING$ac_delim
11781 OCTAVELIB!$OCTAVELIB$ac_delim
11782 OCTAVECCFLAGS!$OCTAVECCFLAGS$ac_delim
11783 JAVA!$JAVA$ac_delim
11784 JAVAC!$JAVAC$ac_delim
11785 JAVAINC!$JAVAINC$ac_delim
11786 JAVADYNAMICLINKING!$JAVADYNAMICLINKING$ac_delim
11787 JAVALIBRARYPREFIX!$JAVALIBRARYPREFIX$ac_delim
11788 JAVASO!$JAVASO$ac_delim
11789 JAVALDSHARED!$JAVALDSHARED$ac_delim
11790 JAVACXXSHARED!$JAVACXXSHARED$ac_delim
11791 JAVACFLAGS!$JAVACFLAGS$ac_delim
11793 GCJH!$GCJH$ac_delim
11794 GUILE_CONFIG!$GUILE_CONFIG$ac_delim
11795 GUILE!$GUILE$ac_delim
11796 GUILEINCLUDE!$GUILEINCLUDE$ac_delim
11797 GUILELIB!$GUILELIB$ac_delim
11798 GUILELINK!$GUILELINK$ac_delim
11799 GUILE_GH_INTERFACE!$GUILE_GH_INTERFACE$ac_delim
11800 GUILE_SCM_INTERFACE!$GUILE_SCM_INTERFACE$ac_delim
11801 MZSCHEME!$MZSCHEME$ac_delim
11803 MZDYNOBJ!$MZDYNOBJ$ac_delim
11804 RUBY!$RUBY$ac_delim
11805 RUBYINCLUDE!$RUBYINCLUDE$ac_delim
11806 RUBYLIB!$RUBYLIB$ac_delim
11807 RUBYLINK!$RUBYLINK$ac_delim
11808 RUBYCCDLFLAGS!$RUBYCCDLFLAGS$ac_delim
11809 RUBYDYNAMICLINKING!$RUBYDYNAMICLINKING$ac_delim
11811 PHPINC!$PHPINC$ac_delim
11812 OCAMLDLGEN!$OCAMLDLGEN$ac_delim
11813 OCAMLFIND!$OCAMLFIND$ac_delim
11814 OCAMLC!$OCAMLC$ac_delim
11815 OCAMLBIN!$OCAMLBIN$ac_delim
11816 OCAMLMKTOP!$OCAMLMKTOP$ac_delim
11817 OCAMLLOC!$OCAMLLOC$ac_delim
11818 OCAMLVER!$OCAMLVER$ac_delim
11819 OCAMLINC!$OCAMLINC$ac_delim
11820 PIKE!$PIKE$ac_delim
11821 PIKECONFIG!$PIKECONFIG$ac_delim
11822 PIKEINCLUDE!$PIKEINCLUDE$ac_delim
11823 PIKECCDLFLAGS!$PIKECCDLFLAGS$ac_delim
11824 PIKEDYNAMICLINKING!$PIKEDYNAMICLINKING$ac_delim
11825 CHICKEN!$CHICKEN$ac_delim
11826 CHICKEN_CSC!$CHICKEN_CSC$ac_delim
11827 CHICKEN_CSI!$CHICKEN_CSI$ac_delim
11830 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11832 elif $ac_last_try; then
11833 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11834 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11835 { (exit 1); exit 1; }; }
11837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11841 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11842 if test -n "$ac_eof"; then
11843 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11844 ac_eof=`expr $ac_eof + 1`
11847 cat >>$CONFIG_STATUS <<_ACEOF
11848 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11852 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11853 s/^/s,@/; s/!/@,|#_!!_#|/
11856 s/'"$ac_delim"'$/,g/; t
11858 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11859 ' >>$CONFIG_STATUS <conf$$subs.sed
11860 rm -f conf$$subs.sed
11861 cat >>$CONFIG_STATUS <<_ACEOF
11867 for ac_last_try in false false false false false :; do
11868 cat >conf$$subs.sed <<_ACEOF
11869 CHICKENOPTS!$CHICKENOPTS$ac_delim
11870 CHICKENLIB!$CHICKENLIB$ac_delim
11871 CHICKENSHAREDLIB!$CHICKENSHAREDLIB$ac_delim
11872 CSHARPCOMPILER!$CSHARPCOMPILER$ac_delim
11873 CSHARPCILINTERPRETER!$CSHARPCILINTERPRETER$ac_delim
11874 CSHARPPATHSEPARATOR!$CSHARPPATHSEPARATOR$ac_delim
11875 CSHARPCYGPATH_W!$CSHARPCYGPATH_W$ac_delim
11876 CSHARPDYNAMICLINKING!$CSHARPDYNAMICLINKING$ac_delim
11877 CSHARPLIBRARYPREFIX!$CSHARPLIBRARYPREFIX$ac_delim
11878 CSHARPCFLAGS!$CSHARPCFLAGS$ac_delim
11879 CSHARPSO!$CSHARPSO$ac_delim
11880 LUABIN!$LUABIN$ac_delim
11881 LUADYNAMICLINKING!$LUADYNAMICLINKING$ac_delim
11882 LUAFLAGS!$LUAFLAGS$ac_delim
11883 LUALINK!$LUALINK$ac_delim
11884 ALLEGROCLBIN!$ALLEGROCLBIN$ac_delim
11885 CLISPBIN!$CLISPBIN$ac_delim
11886 RBIN!$RBIN$ac_delim
11887 SKIP_TCL!$SKIP_TCL$ac_delim
11888 SKIP_PERL5!$SKIP_PERL5$ac_delim
11889 SKIP_OCTAVE!$SKIP_OCTAVE$ac_delim
11890 SKIP_PYTHON!$SKIP_PYTHON$ac_delim
11891 SKIP_PYTHON3!$SKIP_PYTHON3$ac_delim
11892 SKIP_JAVA!$SKIP_JAVA$ac_delim
11893 SKIP_GUILE!$SKIP_GUILE$ac_delim
11894 SKIP_GUILESCM!$SKIP_GUILESCM$ac_delim
11895 SKIP_MZSCHEME!$SKIP_MZSCHEME$ac_delim
11896 SKIP_RUBY!$SKIP_RUBY$ac_delim
11897 SKIP_PHP!$SKIP_PHP$ac_delim
11898 SKIP_OCAML!$SKIP_OCAML$ac_delim
11899 SKIP_PIKE!$SKIP_PIKE$ac_delim
11900 SKIP_CHICKEN!$SKIP_CHICKEN$ac_delim
11901 SKIP_CSHARP!$SKIP_CSHARP$ac_delim
11902 SKIP_MODULA3!$SKIP_MODULA3$ac_delim
11903 SKIP_LUA!$SKIP_LUA$ac_delim
11904 SKIP_ALLEGROCL!$SKIP_ALLEGROCL$ac_delim
11905 SKIP_CLISP!$SKIP_CLISP$ac_delim
11906 SKIP_R!$SKIP_R$ac_delim
11907 SKIP_CFFI!$SKIP_CFFI$ac_delim
11908 SKIP_UFFI!$SKIP_UFFI$ac_delim
11909 SKIP_GCJ!$SKIP_GCJ$ac_delim
11910 ROOT_DIR!$ROOT_DIR$ac_delim
11911 EXTRA_CLEAN!$EXTRA_CLEAN$ac_delim
11912 ac_aux_dir!$ac_aux_dir$ac_delim
11913 swig_lib!$swig_lib$ac_delim
11914 SWIG_LIB!$SWIG_LIB$ac_delim
11915 LIBOBJS!$LIBOBJS$ac_delim
11916 LTLIBOBJS!$LTLIBOBJS$ac_delim
11919 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
11921 elif $ac_last_try; then
11922 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11923 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11924 { (exit 1); exit 1; }; }
11926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11930 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11931 if test -n "$ac_eof"; then
11932 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11933 ac_eof=`expr $ac_eof + 1`
11936 cat >>$CONFIG_STATUS <<_ACEOF
11937 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
11938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11941 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11942 s/^/s,@/; s/!/@,|#_!!_#|/
11945 s/'"$ac_delim"'$/,g/; t
11947 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11948 ' >>$CONFIG_STATUS <conf$$subs.sed
11949 rm -f conf$$subs.sed
11950 cat >>$CONFIG_STATUS <<_ACEOF
11957 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11958 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11959 # trailing colons and then remove the whole line if VPATH becomes empty
11960 # (actually we leave an empty line to preserve line numbers).
11961 if test "x$srcdir" = x.; then
11962 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11963 s/:*\$(srcdir):*/:/
11964 s/:*\${srcdir}:*/:/
11966 s/^\([^=]*=[ ]*\):*/\1/
11972 cat >>$CONFIG_STATUS <<\_ACEOF
11973 fi # test -n "$CONFIG_FILES"
11976 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
11979 :[FHLC]) ac_mode=$ac_tag; continue;;
11981 case $ac_mode$ac_tag in
11983 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11984 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11985 { (exit 1); exit 1; }; };;
11986 :[FH]-) ac_tag=-:-;;
11987 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12004 -) ac_f="$tmp/stdin";;
12005 *) # Look for the file first in the build tree, then in the source tree
12006 # (if the path is not absolute). The absolute path cannot be DOS-style,
12007 # because $ac_f cannot contain `:'.
12011 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12013 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12014 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12015 { (exit 1); exit 1; }; };;
12017 ac_file_inputs="$ac_file_inputs $ac_f"
12020 # Let's still pretend it is `configure' which instantiates (i.e., don't
12021 # use $as_me), people would be surprised to read:
12022 # /* config.h. Generated by config.status. */
12023 configure_input="Generated from "`IFS=:
12024 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12025 if test x"$ac_file" != x-; then
12026 configure_input="$ac_file. $configure_input"
12027 { echo "$as_me:$LINENO: creating $ac_file" >&5
12028 echo "$as_me: creating $ac_file" >&6;}
12032 *:-:* | *:-) cat >"$tmp/stdin";;
12037 ac_dir=`$as_dirname -- "$ac_file" ||
12038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12039 X"$ac_file" : 'X\(//\)[^/]' \| \
12040 X"$ac_file" : 'X\(//\)$' \| \
12041 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12047 /^X\(\/\/\)[^/].*/{
12062 -*) as_dir=./$as_dir;;
12064 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12068 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12069 *) as_qdir=$as_dir;;
12071 as_dirs="'$as_qdir' $as_dirs"
12072 as_dir=`$as_dirname -- "$as_dir" ||
12073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12074 X"$as_dir" : 'X\(//\)[^/]' \| \
12075 X"$as_dir" : 'X\(//\)$' \| \
12076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12082 /^X\(\/\/\)[^/].*/{
12095 test -d "$as_dir" && break
12097 test -z "$as_dirs" || eval "mkdir $as_dirs"
12098 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12099 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12100 { (exit 1); exit 1; }; }; }
12104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12107 # A ".." for each directory in $ac_dir_suffix.
12108 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12109 case $ac_top_builddir_sub in
12110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12114 ac_abs_top_builddir=$ac_pwd
12115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12116 # for backward compatibility:
12117 ac_top_builddir=$ac_top_build_prefix
12120 .) # We are building in place.
12122 ac_top_srcdir=$ac_top_builddir_sub
12123 ac_abs_top_srcdir=$ac_pwd ;;
12124 [\\/]* | ?:[\\/]* ) # Absolute name.
12125 ac_srcdir=$srcdir$ac_dir_suffix;
12126 ac_top_srcdir=$srcdir
12127 ac_abs_top_srcdir=$srcdir ;;
12128 *) # Relative name.
12129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12130 ac_top_srcdir=$ac_top_build_prefix$srcdir
12131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12143 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12144 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12146 ac_MKDIR_P=$MKDIR_P
12148 [\\/$]* | ?:[\\/]* ) ;;
12149 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12153 cat >>$CONFIG_STATUS <<\_ACEOF
12154 # If the template does not know about datarootdir, expand it.
12155 # FIXME: This hack should be removed a few years after 2.60.
12156 ac_datarootdir_hack=; ac_datarootdir_seen=
12158 case `sed -n '/datarootdir/ {
12167 ' $ac_file_inputs` in
12168 *datarootdir*) ac_datarootdir_seen=yes;;
12169 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12170 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12171 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12173 cat >>$CONFIG_STATUS <<_ACEOF
12174 ac_datarootdir_hack='
12175 s&@datadir@&$datadir&g
12176 s&@docdir@&$docdir&g
12177 s&@infodir@&$infodir&g
12178 s&@localedir@&$localedir&g
12179 s&@mandir@&$mandir&g
12180 s&\\\${datarootdir}&$datarootdir&g' ;;
12184 # Neutralize VPATH when `$srcdir' = `.'.
12185 # Shell code in configure.ac might set extrasub.
12186 # FIXME: do we really want to maintain this feature?
12187 cat >>$CONFIG_STATUS <<_ACEOF
12191 cat >>$CONFIG_STATUS <<\_ACEOF
12193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12194 s&@configure_input@&$configure_input&;t t
12195 s&@top_builddir@&$ac_top_builddir_sub&;t t
12196 s&@srcdir@&$ac_srcdir&;t t
12197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12198 s&@top_srcdir@&$ac_top_srcdir&;t t
12199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12200 s&@builddir@&$ac_builddir&;t t
12201 s&@abs_builddir@&$ac_abs_builddir&;t t
12202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12203 s&@INSTALL@&$ac_INSTALL&;t t
12204 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12205 $ac_datarootdir_hack
12206 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
12208 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12209 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12210 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12211 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12212 which seems to be undefined. Please make sure it is defined." >&5
12213 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12214 which seems to be undefined. Please make sure it is defined." >&2;}
12218 -) cat "$tmp/out"; rm -f "$tmp/out";;
12219 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12228 # Transform confdefs.h into a sed script `conftest.defines', that
12229 # substitutes the proper values into config.h.in to produce config.h.
12230 rm -f conftest.defines conftest.tail
12231 # First, append a space to every undef/define line, to ease matching.
12232 echo 's/$/ /' >conftest.defines
12233 # Then, protect against being on the right side of a sed subst, or in
12234 # an unquoted here document, in config.status. If some macros were
12235 # called several times there might be several #defines for the same
12236 # symbol, which is useless. But do not sort them, since the last
12237 # AC_DEFINE must be honored.
12238 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12239 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12240 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12241 # PARAMS is the parameter list in the macro definition--in most cases, it's
12242 # just an empty string.
12243 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12244 ac_dB='\\)[ (].*,\\1define\\2'
12252 s/^[ ]*#[ ]*define[ ][ ]*//
12257 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12258 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12259 ' >>conftest.defines
12261 # Remove the space that was appended to ease matching.
12262 # Then replace #undef with comments. This is necessary, for
12263 # example, in the case of _POSIX_SOURCE, which is predefined and required
12264 # on some systems where configure will not decide to define it.
12265 # (The regexp can be short, since the line contains either #define or #undef.)
12267 s,^[ #]*u.*,/* & */,' >>conftest.defines
12269 # Break up conftest.defines:
12270 ac_max_sed_lines=50
12272 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12273 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12274 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12276 ac_in='$ac_file_inputs'
12277 ac_out='"$tmp/out1"'
12278 ac_nxt='"$tmp/out2"'
12282 # Write a here document:
12283 cat >>$CONFIG_STATUS <<_ACEOF
12284 # First, check the format of the line:
12285 cat >"\$tmp/defines.sed" <<\\CEOF
12286 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12287 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12291 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12293 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12294 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12295 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12296 grep . conftest.tail >/dev/null || break
12297 rm -f conftest.defines
12298 mv conftest.tail conftest.defines
12300 rm -f conftest.defines conftest.tail
12302 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12303 cat >>$CONFIG_STATUS <<\_ACEOF
12304 if test x"$ac_file" != x-; then
12305 echo "/* $configure_input */" >"$tmp/config.h"
12306 cat "$ac_result" >>"$tmp/config.h"
12307 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12308 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12309 echo "$as_me: $ac_file is unchanged" >&6;}
12312 mv "$tmp/config.h" $ac_file
12315 echo "/* $configure_input */"
12319 # Compute $ac_file's index in $config_headers.
12322 for _am_header in $config_headers :; do
12323 case $_am_header in
12324 $_am_arg | $_am_arg:* )
12327 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12330 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12331 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12332 X"$_am_arg" : 'X\(//\)[^/]' \| \
12333 X"$_am_arg" : 'X\(//\)$' \| \
12334 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12340 /^X\(\/\/\)[^/].*/{
12352 s/.*/./; q'`/stamp-h$_am_stamp_count
12355 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12356 echo "$as_me: executing $ac_file commands" >&6;}
12361 case $ac_file$ac_mode in
12362 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12363 # Strip MF so we end up with the name of the file.
12364 mf=`echo "$mf" | sed -e 's/:.*$//'`
12365 # Check whether this is an Automake generated Makefile or not.
12366 # We used to match only the files named `Makefile.in', but
12367 # some people rename them; so instead we look at the file content.
12368 # Grep'ing the first line is not enough: some people post-process
12369 # each Makefile.in and add a new line on top of each file to say so.
12370 # Grep'ing the whole file is not good either: AIX grep has a line
12371 # limit of 2048, but all sed's we know have understand at least 4000.
12372 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12373 dirpart=`$as_dirname -- "$mf" ||
12374 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12375 X"$mf" : 'X\(//\)[^/]' \| \
12376 X"$mf" : 'X\(//\)$' \| \
12377 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12383 /^X\(\/\/\)[^/].*/{
12399 # Extract the definition of DEPDIR, am__include, and am__quote
12400 # from the Makefile without running `make'.
12401 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12402 test -z "$DEPDIR" && continue
12403 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12404 test -z "am__include" && continue
12405 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12406 # When using ansi2knr, U may be empty or an underscore; expand it
12407 U=`sed -n 's/^U = //p' < "$mf"`
12408 # Find all dependency output files, they are included files with
12409 # $(DEPDIR) in their names. We invoke sed twice because it is the
12410 # simplest approach to changing $(DEPDIR) to its actual value in the
12412 for file in `sed -n "
12413 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12414 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12415 # Make sure the directory exists.
12416 test -f "$dirpart/$file" && continue
12417 fdir=`$as_dirname -- "$file" ||
12418 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12419 X"$file" : 'X\(//\)[^/]' \| \
12420 X"$file" : 'X\(//\)$' \| \
12421 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12427 /^X\(\/\/\)[^/].*/{
12440 { as_dir=$dirpart/$fdir
12442 -*) as_dir=./$as_dir;;
12444 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12448 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12449 *) as_qdir=$as_dir;;
12451 as_dirs="'$as_qdir' $as_dirs"
12452 as_dir=`$as_dirname -- "$as_dir" ||
12453 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12454 X"$as_dir" : 'X\(//\)[^/]' \| \
12455 X"$as_dir" : 'X\(//\)$' \| \
12456 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12462 /^X\(\/\/\)[^/].*/{
12475 test -d "$as_dir" && break
12477 test -z "$as_dirs" || eval "mkdir $as_dirs"
12478 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12479 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12480 { (exit 1); exit 1; }; }; }
12481 # echo "creating $dirpart/$file"
12482 echo '# dummy' > "$dirpart/$file"
12486 "preinst-swig":F) chmod +x preinst-swig ;;
12492 { (exit 0); exit 0; }
12494 chmod +x $CONFIG_STATUS
12495 ac_clean_files=$ac_clean_files_save
12498 # configure is writing to config.log, and then calls config.status.
12499 # config.status does its own redirection, appending to config.log.
12500 # Unfortunately, on DOS this fails, as config.log is still kept open
12501 # by configure, so config.status won't be able to write to it; its
12502 # output is simply discarded. So we exec the FD to /dev/null,
12503 # effectively closing config.log, so it can be properly (re)opened and
12504 # appended to by config.status. When coming back to configure, we
12505 # need to make the FD available again.
12506 if test "$no_create" != yes; then
12508 ac_config_status_args=
12509 test "$silent" = yes &&
12510 ac_config_status_args="$ac_config_status_args --quiet"
12512 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12514 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12515 # would make configure fail if this is the last instruction.
12516 $ac_cs_success || { (exit 1); exit 1; }
12520 # CONFIG_SUBDIRS section.
12522 if test "$no_recursion" != yes; then
12524 # Remove --cache-file and --srcdir arguments so they do not pile up.
12525 ac_sub_configure_args=
12527 eval "set x $ac_configure_args"
12531 if test -n "$ac_prev"; then
12536 -cache-file | --cache-file | --cache-fil | --cache-fi \
12537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12538 ac_prev=cache_file ;;
12539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
12543 --config-cache | -C)
12545 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12547 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12549 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12551 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12555 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12557 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
12561 # Always prepend --prefix to ensure using the same prefix
12562 # in subdir configurations.
12563 ac_arg="--prefix=$prefix"
12565 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
12567 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
12570 if test "$silent" = yes; then
12571 ac_sub_configure_args="--silent $ac_sub_configure_args"
12575 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
12577 # Do not complain, so a configure script can configure whichever
12578 # parts of a large source tree are present.
12579 test -d "$srcdir/$ac_dir" || continue
12581 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
12582 echo "$as_me:$LINENO: $ac_msg" >&5
12586 -*) as_dir=./$as_dir;;
12588 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12592 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12593 *) as_qdir=$as_dir;;
12595 as_dirs="'$as_qdir' $as_dirs"
12596 as_dir=`$as_dirname -- "$as_dir" ||
12597 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12598 X"$as_dir" : 'X\(//\)[^/]' \| \
12599 X"$as_dir" : 'X\(//\)$' \| \
12600 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12606 /^X\(\/\/\)[^/].*/{
12619 test -d "$as_dir" && break
12621 test -z "$as_dirs" || eval "mkdir $as_dirs"
12622 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12623 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12624 { (exit 1); exit 1; }; }; }
12628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12630 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12631 # A ".." for each directory in $ac_dir_suffix.
12632 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12633 case $ac_top_builddir_sub in
12634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12638 ac_abs_top_builddir=$ac_pwd
12639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12640 # for backward compatibility:
12641 ac_top_builddir=$ac_top_build_prefix
12644 .) # We are building in place.
12646 ac_top_srcdir=$ac_top_builddir_sub
12647 ac_abs_top_srcdir=$ac_pwd ;;
12648 [\\/]* | ?:[\\/]* ) # Absolute name.
12649 ac_srcdir=$srcdir$ac_dir_suffix;
12650 ac_top_srcdir=$srcdir
12651 ac_abs_top_srcdir=$srcdir ;;
12652 *) # Relative name.
12653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12654 ac_top_srcdir=$ac_top_build_prefix$srcdir
12655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12662 # Check for guested configure; otherwise get Cygnus style configure.
12663 if test -f "$ac_srcdir/configure.gnu"; then
12664 ac_sub_configure=$ac_srcdir/configure.gnu
12665 elif test -f "$ac_srcdir/configure"; then
12666 ac_sub_configure=$ac_srcdir/configure
12667 elif test -f "$ac_srcdir/configure.in"; then
12668 # This should be Cygnus configure.
12669 ac_sub_configure=$ac_aux_dir/configure
12671 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
12672 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
12676 # The recursion is here.
12677 if test -n "$ac_sub_configure"; then
12678 # Make the cache file name correct relative to the subdirectory.
12679 case $cache_file in
12680 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
12681 *) # Relative name.
12682 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
12685 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
12686 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
12687 # The eval makes quoting arguments work.
12688 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
12689 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
12690 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
12691 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
12692 { (exit 1); exit 1; }; }