2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="ragel/main.cpp"
589 program_transform_name
642 ac_precious_vars='build_alias
655 # Initialize some variables set by options.
657 ac_init_version=false
658 # The variables have the same names as the options, with
659 # dashes changed to underlines.
667 program_transform_name=s,x,x,
675 # Installation directory options.
676 # These are left unexpanded so users can "make install exec_prefix=/foo"
677 # and all the variables that are supposed to be based on exec_prefix
678 # by default will actually change.
679 # Use braces instead of parens because sh, perl, etc. also accept them.
680 # (The list follows the same order as the GNU Coding Standards.)
681 bindir='${exec_prefix}/bin'
682 sbindir='${exec_prefix}/sbin'
683 libexecdir='${exec_prefix}/libexec'
684 datarootdir='${prefix}/share'
685 datadir='${datarootdir}'
686 sysconfdir='${prefix}/etc'
687 sharedstatedir='${prefix}/com'
688 localstatedir='${prefix}/var'
689 includedir='${prefix}/include'
690 oldincludedir='/usr/include'
691 docdir='${datarootdir}/doc/${PACKAGE}'
692 infodir='${datarootdir}/info'
697 libdir='${exec_prefix}/lib'
698 localedir='${datarootdir}/locale'
699 mandir='${datarootdir}/man'
705 # If the previous option needs an argument, assign it.
706 if test -n "$ac_prev"; then
707 eval $ac_prev=\$ac_option
713 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
717 # Accept the important Cygnus configure options, so we can diagnose typos.
719 case $ac_dashdash$ac_option in
723 -bindir | --bindir | --bindi | --bind | --bin | --bi)
725 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
728 -build | --build | --buil | --bui | --bu)
729 ac_prev=build_alias ;;
730 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
731 build_alias=$ac_optarg ;;
733 -cache-file | --cache-file | --cache-fil | --cache-fi \
734 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
735 ac_prev=cache_file ;;
736 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
737 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
738 cache_file=$ac_optarg ;;
741 cache_file=config.cache ;;
743 -datadir | --datadir | --datadi | --datad)
745 -datadir=* | --datadir=* | --datadi=* | --datad=*)
746 datadir=$ac_optarg ;;
748 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
749 | --dataroo | --dataro | --datar)
750 ac_prev=datarootdir ;;
751 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
752 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
753 datarootdir=$ac_optarg ;;
755 -disable-* | --disable-*)
756 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
760 { (exit 1); exit 1; }; }
761 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
762 eval enable_$ac_feature=no ;;
764 -docdir | --docdir | --docdi | --doc | --do)
766 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
769 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
771 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
774 -enable-* | --enable-*)
775 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
776 # Reject names that are not valid shell variable names.
777 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
778 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
779 { (exit 1); exit 1; }; }
780 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
781 eval enable_$ac_feature=\$ac_optarg ;;
783 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
784 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
785 | --exec | --exe | --ex)
786 ac_prev=exec_prefix ;;
787 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
788 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
789 | --exec=* | --exe=* | --ex=*)
790 exec_prefix=$ac_optarg ;;
792 -gas | --gas | --ga | --g)
793 # Obsolete; use --with-gas.
796 -help | --help | --hel | --he | -h)
798 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
799 ac_init_help=recursive ;;
800 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
801 ac_init_help=short ;;
803 -host | --host | --hos | --ho)
804 ac_prev=host_alias ;;
805 -host=* | --host=* | --hos=* | --ho=*)
806 host_alias=$ac_optarg ;;
808 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
810 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
812 htmldir=$ac_optarg ;;
814 -includedir | --includedir | --includedi | --included | --include \
815 | --includ | --inclu | --incl | --inc)
816 ac_prev=includedir ;;
817 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
818 | --includ=* | --inclu=* | --incl=* | --inc=*)
819 includedir=$ac_optarg ;;
821 -infodir | --infodir | --infodi | --infod | --info | --inf)
823 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
824 infodir=$ac_optarg ;;
826 -libdir | --libdir | --libdi | --libd)
828 -libdir=* | --libdir=* | --libdi=* | --libd=*)
831 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
832 | --libexe | --libex | --libe)
833 ac_prev=libexecdir ;;
834 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
835 | --libexe=* | --libex=* | --libe=*)
836 libexecdir=$ac_optarg ;;
838 -localedir | --localedir | --localedi | --localed | --locale)
840 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
841 localedir=$ac_optarg ;;
843 -localstatedir | --localstatedir | --localstatedi | --localstated \
844 | --localstate | --localstat | --localsta | --localst | --locals)
845 ac_prev=localstatedir ;;
846 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
847 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
848 localstatedir=$ac_optarg ;;
850 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
852 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
856 # Obsolete; use --without-fp.
859 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
860 | --no-cr | --no-c | -n)
863 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
864 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
867 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
868 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
869 | --oldin | --oldi | --old | --ol | --o)
870 ac_prev=oldincludedir ;;
871 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
872 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
873 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
874 oldincludedir=$ac_optarg ;;
876 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
878 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
881 -program-prefix | --program-prefix | --program-prefi | --program-pref \
882 | --program-pre | --program-pr | --program-p)
883 ac_prev=program_prefix ;;
884 -program-prefix=* | --program-prefix=* | --program-prefi=* \
885 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
886 program_prefix=$ac_optarg ;;
888 -program-suffix | --program-suffix | --program-suffi | --program-suff \
889 | --program-suf | --program-su | --program-s)
890 ac_prev=program_suffix ;;
891 -program-suffix=* | --program-suffix=* | --program-suffi=* \
892 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
893 program_suffix=$ac_optarg ;;
895 -program-transform-name | --program-transform-name \
896 | --program-transform-nam | --program-transform-na \
897 | --program-transform-n | --program-transform- \
898 | --program-transform | --program-transfor \
899 | --program-transfo | --program-transf \
900 | --program-trans | --program-tran \
901 | --progr-tra | --program-tr | --program-t)
902 ac_prev=program_transform_name ;;
903 -program-transform-name=* | --program-transform-name=* \
904 | --program-transform-nam=* | --program-transform-na=* \
905 | --program-transform-n=* | --program-transform-=* \
906 | --program-transform=* | --program-transfor=* \
907 | --program-transfo=* | --program-transf=* \
908 | --program-trans=* | --program-tran=* \
909 | --progr-tra=* | --program-tr=* | --program-t=*)
910 program_transform_name=$ac_optarg ;;
912 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
914 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
917 -psdir | --psdir | --psdi | --psd | --ps)
919 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
923 | -silent | --silent | --silen | --sile | --sil)
926 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
928 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
930 sbindir=$ac_optarg ;;
932 -sharedstatedir | --sharedstatedir | --sharedstatedi \
933 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
934 | --sharedst | --shareds | --shared | --share | --shar \
936 ac_prev=sharedstatedir ;;
937 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
938 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
939 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
941 sharedstatedir=$ac_optarg ;;
943 -site | --site | --sit)
945 -site=* | --site=* | --sit=*)
948 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
950 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
953 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
954 | --syscon | --sysco | --sysc | --sys | --sy)
955 ac_prev=sysconfdir ;;
956 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
957 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
958 sysconfdir=$ac_optarg ;;
960 -target | --target | --targe | --targ | --tar | --ta | --t)
961 ac_prev=target_alias ;;
962 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
963 target_alias=$ac_optarg ;;
965 -v | -verbose | --verbose | --verbos | --verbo | --verb)
968 -version | --version | --versio | --versi | --vers | -V)
972 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
975 { echo "$as_me: error: invalid package name: $ac_package" >&2
976 { (exit 1); exit 1; }; }
977 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
978 eval with_$ac_package=\$ac_optarg ;;
980 -without-* | --without-*)
981 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
984 { echo "$as_me: error: invalid package name: $ac_package" >&2
985 { (exit 1); exit 1; }; }
986 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
987 eval with_$ac_package=no ;;
990 # Obsolete; use --with-x.
993 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
994 | --x-incl | --x-inc | --x-in | --x-i)
995 ac_prev=x_includes ;;
996 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
997 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
998 x_includes=$ac_optarg ;;
1000 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1001 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1002 ac_prev=x_libraries ;;
1003 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1004 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1005 x_libraries=$ac_optarg ;;
1007 -*) { echo "$as_me: error: unrecognized option: $ac_option
1008 Try \`$0 --help' for more information." >&2
1009 { (exit 1); exit 1; }; }
1013 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1016 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1017 { (exit 1); exit 1; }; }
1018 eval $ac_envvar=\$ac_optarg
1019 export $ac_envvar ;;
1022 # FIXME: should be removed in autoconf 3.0.
1023 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1024 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1026 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1032 if test -n "$ac_prev"; then
1033 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1034 { echo "$as_me: error: missing argument to $ac_option" >&2
1035 { (exit 1); exit 1; }; }
1038 # Be sure to have absolute directory names.
1039 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1040 datadir sysconfdir sharedstatedir localstatedir includedir \
1041 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1042 libdir localedir mandir
1044 eval ac_val=\$$ac_var
1046 [\\/$]* | ?:[\\/]* ) continue;;
1047 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1049 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1050 { (exit 1); exit 1; }; }
1053 # There might be people who depend on the old broken behavior: `$host'
1054 # used to hold the argument of --host etc.
1055 # FIXME: To remove some day.
1058 target=$target_alias
1060 # FIXME: To remove some day.
1061 if test "x$host_alias" != x; then
1062 if test "x$build_alias" = x; then
1063 cross_compiling=maybe
1064 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1065 If a cross compiler is detected then cross compile mode will be used." >&2
1066 elif test "x$build_alias" != "x$host_alias"; then
1072 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1074 test "$silent" = yes && exec 6>/dev/null
1077 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1078 ac_ls_di=`ls -di .` &&
1079 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1080 { echo "$as_me: error: Working directory cannot be determined" >&2
1081 { (exit 1); exit 1; }; }
1082 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1083 { echo "$as_me: error: pwd does not report name of working directory" >&2
1084 { (exit 1); exit 1; }; }
1087 # Find the source files, if location was not specified.
1088 if test -z "$srcdir"; then
1089 ac_srcdir_defaulted=yes
1090 # Try the directory containing this script, then the parent directory.
1091 ac_confdir=`$as_dirname -- "$0" ||
1092 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1093 X"$0" : 'X\(//\)[^/]' \| \
1094 X"$0" : 'X\(//\)$' \| \
1095 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1115 if test ! -r "$srcdir/$ac_unique_file"; then
1119 ac_srcdir_defaulted=no
1121 if test ! -r "$srcdir/$ac_unique_file"; then
1122 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1123 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1124 { (exit 1); exit 1; }; }
1126 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1128 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1129 { (exit 1); exit 1; }; }
1131 # When building in place, set srcdir=.
1132 if test "$ac_abs_confdir" = "$ac_pwd"; then
1135 # Remove unnecessary trailing slashes from srcdir.
1136 # Double slashes in file names in object file debugging info
1137 # mess up M-x gdb in Emacs.
1139 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1141 for ac_var in $ac_precious_vars; do
1142 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1143 eval ac_env_${ac_var}_value=\$${ac_var}
1144 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1145 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1149 # Report the --help message.
1151 if test "$ac_init_help" = "long"; then
1152 # Omit some internal or obsolete options to make the list less imposing.
1153 # This message is too long to be a string in the A/UX 3.1 sh.
1155 \`configure' configures this package to adapt to many kinds of systems.
1157 Usage: $0 [OPTION]... [VAR=VALUE]...
1159 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1160 VAR=VALUE. See below for descriptions of some of the useful variables.
1162 Defaults for the options are specified in brackets.
1165 -h, --help display this help and exit
1166 --help=short display options specific to this package
1167 --help=recursive display the short help of all the included packages
1168 -V, --version display version information and exit
1169 -q, --quiet, --silent do not print \`checking...' messages
1170 --cache-file=FILE cache test results in FILE [disabled]
1171 -C, --config-cache alias for \`--cache-file=config.cache'
1172 -n, --no-create do not create output files
1173 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1175 Installation directories:
1176 --prefix=PREFIX install architecture-independent files in PREFIX
1177 [$ac_default_prefix]
1178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1181 By default, \`make install' will install all the files in
1182 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1183 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1184 for instance \`--prefix=\$HOME'.
1186 For better control, use the options below.
1188 Fine tuning of the installation directories:
1189 --bindir=DIR user executables [EPREFIX/bin]
1190 --sbindir=DIR system admin executables [EPREFIX/sbin]
1191 --libexecdir=DIR program executables [EPREFIX/libexec]
1192 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1193 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1194 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1195 --libdir=DIR object code libraries [EPREFIX/lib]
1196 --includedir=DIR C header files [PREFIX/include]
1197 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1198 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1199 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1200 --infodir=DIR info documentation [DATAROOTDIR/info]
1201 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1202 --mandir=DIR man documentation [DATAROOTDIR/man]
1203 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1204 --htmldir=DIR html documentation [DOCDIR]
1205 --dvidir=DIR dvi documentation [DOCDIR]
1206 --pdfdir=DIR pdf documentation [DOCDIR]
1207 --psdir=DIR ps documentation [DOCDIR]
1214 if test -n "$ac_init_help"; then
1218 Some influential environment variables:
1219 CC C compiler command
1220 CFLAGS C compiler flags
1221 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1222 nonstandard directory <lib dir>
1223 LIBS libraries to pass to the linker, e.g. -l<library>
1224 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1225 you have headers in a nonstandard directory <include dir>
1226 CXX C++ compiler command
1227 CXXFLAGS C++ compiler flags
1229 Use these variables to override the choices made by `configure' or to help
1230 it to find libraries and programs with nonstandard names/locations.
1236 if test "$ac_init_help" = "recursive"; then
1237 # If there are subdirs, report their specific --help.
1238 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1239 test -d "$ac_dir" || continue
1243 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1245 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1246 # A ".." for each directory in $ac_dir_suffix.
1247 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1248 case $ac_top_builddir_sub in
1249 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1250 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1253 ac_abs_top_builddir=$ac_pwd
1254 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1255 # for backward compatibility:
1256 ac_top_builddir=$ac_top_build_prefix
1259 .) # We are building in place.
1261 ac_top_srcdir=$ac_top_builddir_sub
1262 ac_abs_top_srcdir=$ac_pwd ;;
1263 [\\/]* | ?:[\\/]* ) # Absolute name.
1264 ac_srcdir=$srcdir$ac_dir_suffix;
1265 ac_top_srcdir=$srcdir
1266 ac_abs_top_srcdir=$srcdir ;;
1268 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1269 ac_top_srcdir=$ac_top_build_prefix$srcdir
1270 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1272 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1274 cd "$ac_dir" || { ac_status=$?; continue; }
1275 # Check for guested configure.
1276 if test -f "$ac_srcdir/configure.gnu"; then
1278 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1279 elif test -f "$ac_srcdir/configure"; then
1281 $SHELL "$ac_srcdir/configure" --help=recursive
1283 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1285 cd "$ac_pwd" || { ac_status=$?; break; }
1289 test -n "$ac_init_help" && exit $ac_status
1290 if $ac_init_version; then
1293 generated by GNU Autoconf 2.61
1295 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1296 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1297 This configure script is free software; the Free Software Foundation
1298 gives unlimited permission to copy, distribute and modify it.
1302 cat >config.log <<_ACEOF
1303 This file contains any messages produced by compilers while
1304 running configure, to aid debugging if configure makes a mistake.
1306 It was created by $as_me, which was
1307 generated by GNU Autoconf 2.61. Invocation command line was
1319 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1320 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1321 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1322 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1323 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1325 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1326 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1328 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1329 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1330 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1331 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1332 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1333 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1334 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1342 test -z "$as_dir" && as_dir=.
1343 echo "PATH: $as_dir"
1359 # Keep a trace of the command line.
1360 # Strip out --no-create and --no-recursion so they do not pile up.
1361 # Strip out --silent because we don't want to record it for future runs.
1362 # Also quote any args containing shell meta-characters.
1363 # Make two passes to allow for proper duplicate-argument suppression.
1367 ac_must_keep_next=false
1373 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1375 | -silent | --silent | --silen | --sile | --sil)
1378 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1381 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1383 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1384 if test $ac_must_keep_next = true; then
1385 ac_must_keep_next=false # Got value, back to normal.
1388 *=* | --config-cache | -C | -disable-* | --disable-* \
1389 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1390 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1391 | -with-* | --with-* | -without-* | --without-* | --x)
1392 case "$ac_configure_args0 " in
1393 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1396 -* ) ac_must_keep_next=true ;;
1399 ac_configure_args="$ac_configure_args '$ac_arg'"
1404 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1405 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1407 # When interrupted or exit'd, cleanup temporary files, and complete
1408 # config.log. We remove comments because anyway the quotes in there
1409 # would cause problems or look ugly.
1410 # WARNING: Use '\'' to represent an apostrophe within the trap.
1411 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1412 trap 'exit_status=$?
1413 # Save into config.log some information that might help in debugging.
1418 ## ---------------- ##
1419 ## Cache variables. ##
1420 ## ---------------- ##
1423 # The following way of writing the cache mishandles newlines in values,
1425 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1426 eval ac_val=\$$ac_var
1430 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1431 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1434 _ | IFS | as_nl) ;; #(
1435 *) $as_unset $ac_var ;;
1440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1441 *${as_nl}ac_space=\ *)
1443 "s/'\''/'\''\\\\'\'''\''/g;
1444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1455 ## ----------------- ##
1456 ## Output variables. ##
1457 ## ----------------- ##
1460 for ac_var in $ac_subst_vars
1462 eval ac_val=\$$ac_var
1464 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1466 echo "$ac_var='\''$ac_val'\''"
1470 if test -n "$ac_subst_files"; then
1472 ## ------------------- ##
1473 ## File substitutions. ##
1474 ## ------------------- ##
1477 for ac_var in $ac_subst_files
1479 eval ac_val=\$$ac_var
1481 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1483 echo "$ac_var='\''$ac_val'\''"
1488 if test -s confdefs.h; then
1498 test "$ac_signal" != 0 &&
1499 echo "$as_me: caught signal $ac_signal"
1500 echo "$as_me: exit $exit_status"
1502 rm -f core *.core core.conftest.* &&
1503 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1506 for ac_signal in 1 2 13 15; do
1507 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1512 rm -f -r conftest* confdefs.h
1514 # Predefined preprocessor variables.
1516 cat >>confdefs.h <<_ACEOF
1517 #define PACKAGE_NAME "$PACKAGE_NAME"
1521 cat >>confdefs.h <<_ACEOF
1522 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1526 cat >>confdefs.h <<_ACEOF
1527 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1531 cat >>confdefs.h <<_ACEOF
1532 #define PACKAGE_STRING "$PACKAGE_STRING"
1536 cat >>confdefs.h <<_ACEOF
1537 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1541 # Let the site file select an alternate cache file if it wants to.
1542 # Prefer explicitly selected file to automatically selected ones.
1543 if test -n "$CONFIG_SITE"; then
1544 set x "$CONFIG_SITE"
1545 elif test "x$prefix" != xNONE; then
1546 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1548 set x "$ac_default_prefix/share/config.site" \
1549 "$ac_default_prefix/etc/config.site"
1554 if test -r "$ac_site_file"; then
1555 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1556 echo "$as_me: loading site script $ac_site_file" >&6;}
1557 sed 's/^/| /' "$ac_site_file" >&5
1562 if test -r "$cache_file"; then
1563 # Some versions of bash will fail to source /dev/null (special
1564 # files actually), so we avoid doing that.
1565 if test -f "$cache_file"; then
1566 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1567 echo "$as_me: loading cache $cache_file" >&6;}
1569 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1570 *) . "./$cache_file";;
1574 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1575 echo "$as_me: creating cache $cache_file" >&6;}
1579 # Check that the precious variables saved in the cache have kept the same
1581 ac_cache_corrupted=false
1582 for ac_var in $ac_precious_vars; do
1583 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1584 eval ac_new_set=\$ac_env_${ac_var}_set
1585 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1586 eval ac_new_val=\$ac_env_${ac_var}_value
1587 case $ac_old_set,$ac_new_set in
1589 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1590 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1591 ac_cache_corrupted=: ;;
1593 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1594 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1595 ac_cache_corrupted=: ;;
1598 if test "x$ac_old_val" != "x$ac_new_val"; then
1599 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1600 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1601 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1602 echo "$as_me: former value: $ac_old_val" >&2;}
1603 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1604 echo "$as_me: current value: $ac_new_val" >&2;}
1605 ac_cache_corrupted=:
1608 # Pass precious variables to config.status.
1609 if test "$ac_new_set" = set; then
1611 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1612 *) ac_arg=$ac_var=$ac_new_val ;;
1614 case " $ac_configure_args " in
1615 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1616 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1620 if $ac_cache_corrupted; then
1621 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1622 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1623 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1624 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1625 { (exit 1); exit 1; }; }
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1651 ac_config_headers="$ac_config_headers ragel/config.h"
1658 ac_cpp='$CPP $CPPFLAGS'
1659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662 if test -n "$ac_tool_prefix"; then
1663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1667 if test "${ac_cv_prog_CC+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 if test -n "$CC"; then
1671 ac_cv_prog_CC="$CC" # Let the user override the test.
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 test -z "$as_dir" && as_dir=.
1678 for ac_exec_ext in '' $ac_executable_extensions; do
1679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1680 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 if test -n "$CC"; then
1692 { echo "$as_me:$LINENO: result: $CC" >&5
1693 echo "${ECHO_T}$CC" >&6; }
1695 { echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6; }
1701 if test -z "$ac_cv_prog_CC"; then
1703 # Extract the first word of "gcc", so it can be a program name with args.
1704 set dummy gcc; ac_word=$2
1705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 if test -n "$ac_ct_CC"; then
1711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717 test -z "$as_dir" && as_dir=.
1718 for ac_exec_ext in '' $ac_executable_extensions; do
1719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1720 ac_cv_prog_ac_ct_CC="gcc"
1721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1731 if test -n "$ac_ct_CC"; then
1732 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1733 echo "${ECHO_T}$ac_ct_CC" >&6; }
1735 { echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6; }
1739 if test "x$ac_ct_CC" = x; then
1742 case $cross_compiling:$ac_tool_warned in
1744 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1745 whose name does not start with the host triplet. If you think this
1746 configuration is useful to you, please write to autoconf@gnu.org." >&5
1747 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1748 whose name does not start with the host triplet. If you think this
1749 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1750 ac_tool_warned=yes ;;
1758 if test -z "$CC"; then
1759 if test -n "$ac_tool_prefix"; then
1760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1761 set dummy ${ac_tool_prefix}cc; ac_word=$2
1762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1764 if test "${ac_cv_prog_CC+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 if test -n "$CC"; then
1768 ac_cv_prog_CC="$CC" # Let the user override the test.
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 test -z "$as_dir" && as_dir=.
1775 for ac_exec_ext in '' $ac_executable_extensions; do
1776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1777 ac_cv_prog_CC="${ac_tool_prefix}cc"
1778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 if test -n "$CC"; then
1789 { echo "$as_me:$LINENO: result: $CC" >&5
1790 echo "${ECHO_T}$CC" >&6; }
1792 { echo "$as_me:$LINENO: result: no" >&5
1793 echo "${ECHO_T}no" >&6; }
1799 if test -z "$CC"; then
1800 # Extract the first word of "cc", so it can be a program name with args.
1801 set dummy cc; ac_word=$2
1802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1804 if test "${ac_cv_prog_CC+set}" = set; then
1805 echo $ECHO_N "(cached) $ECHO_C" >&6
1807 if test -n "$CC"; then
1808 ac_cv_prog_CC="$CC" # Let the user override the test.
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1819 ac_prog_rejected=yes
1823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1830 if test $ac_prog_rejected = yes; then
1831 # We found a bogon in the path, so make sure we never use it.
1832 set dummy $ac_cv_prog_CC
1834 if test $# != 0; then
1835 # We chose a different compiler from the bogus one.
1836 # However, it has the same basename, so the bogon will be chosen
1837 # first if we set CC to just the basename; use the full file name.
1839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1845 if test -n "$CC"; then
1846 { echo "$as_me:$LINENO: result: $CC" >&5
1847 echo "${ECHO_T}$CC" >&6; }
1849 { echo "$as_me:$LINENO: result: no" >&5
1850 echo "${ECHO_T}no" >&6; }
1855 if test -z "$CC"; then
1856 if test -n "$ac_tool_prefix"; then
1857 for ac_prog in cl.exe
1859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1863 if test "${ac_cv_prog_CC+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 if test -n "$CC"; then
1867 ac_cv_prog_CC="$CC" # Let the user override the test.
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 test -z "$as_dir" && as_dir=.
1874 for ac_exec_ext in '' $ac_executable_extensions; do
1875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 if test -n "$CC"; then
1888 { echo "$as_me:$LINENO: result: $CC" >&5
1889 echo "${ECHO_T}$CC" >&6; }
1891 { echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6; }
1896 test -n "$CC" && break
1899 if test -z "$CC"; then
1901 for ac_prog in cl.exe
1903 # Extract the first word of "$ac_prog", so it can be a program name with args.
1904 set dummy $ac_prog; ac_word=$2
1905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$ac_ct_CC"; then
1911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1920 ac_cv_prog_ac_ct_CC="$ac_prog"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1931 if test -n "$ac_ct_CC"; then
1932 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1933 echo "${ECHO_T}$ac_ct_CC" >&6; }
1935 { echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6; }
1940 test -n "$ac_ct_CC" && break
1943 if test "x$ac_ct_CC" = x; then
1946 case $cross_compiling:$ac_tool_warned in
1948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1949 whose name does not start with the host triplet. If you think this
1950 configuration is useful to you, please write to autoconf@gnu.org." >&5
1951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1952 whose name does not start with the host triplet. If you think this
1953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1954 ac_tool_warned=yes ;;
1963 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: no acceptable C compiler found in \$PATH
1966 See \`config.log' for more details." >&2;}
1967 { (exit 1); exit 1; }; }
1969 # Provide some information about the compiler.
1970 echo "$as_me:$LINENO: checking for C compiler version" >&5
1971 ac_compiler=`set X $ac_compile; echo $2`
1972 { (ac_try="$ac_compiler --version >&5"
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1978 (eval "$ac_compiler --version >&5") 2>&5
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }
1982 { (ac_try="$ac_compiler -v >&5"
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1988 (eval "$ac_compiler -v >&5") 2>&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }
1992 { (ac_try="$ac_compiler -V >&5"
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1998 (eval "$ac_compiler -V >&5") 2>&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); }
2003 cat >conftest.$ac_ext <<_ACEOF
2006 cat confdefs.h >>conftest.$ac_ext
2007 cat >>conftest.$ac_ext <<_ACEOF
2008 /* end confdefs.h. */
2018 ac_clean_files_save=$ac_clean_files
2019 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2020 # Try to create an executable without -o first, disregard a.out.
2021 # It will help us diagnose broken compilers, and finding out an intuition
2023 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2024 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2025 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2027 # List of possible output files, starting from the most likely.
2028 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2029 # only as a last resort. b.out is created by i960 compilers.
2030 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2032 # The IRIX 6 linker writes into existing files which may not be
2033 # executable, retaining their permissions. Remove them first so a
2034 # subsequent execution test works.
2036 for ac_file in $ac_files
2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2045 if { (ac_try="$ac_link_default"
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2051 (eval "$ac_link_default") 2>&5
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; then
2055 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2056 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2057 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2058 # so that the user can short-circuit this test for compilers unknown to
2060 for ac_file in $ac_files ''
2062 test -f "$ac_file" || continue
2064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2067 # We found the default executable, but exeext='' is most
2071 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2073 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075 # We set ac_cv_exeext here because the later test for it is not
2076 # safe: cross compilers may not add the suffix if given an `-o'
2077 # argument, so we may need to know it at that point already.
2078 # Even if this section looks crufty: it has the advantage of
2085 test "$ac_cv_exeext" = no && ac_cv_exeext=
2091 { echo "$as_me:$LINENO: result: $ac_file" >&5
2092 echo "${ECHO_T}$ac_file" >&6; }
2093 if test -z "$ac_file"; then
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2097 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2098 See \`config.log' for more details." >&5
2099 echo "$as_me: error: C compiler cannot create executables
2100 See \`config.log' for more details." >&2;}
2101 { (exit 77); exit 77; }; }
2104 ac_exeext=$ac_cv_exeext
2106 # Check that the compiler produces executables we can run. If not, either
2107 # the compiler is broken, or we cross compile.
2108 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111 # If not cross compiling, check that we can run a simple program.
2112 if test "$cross_compiling" != yes; then
2113 if { ac_try='./$ac_file'
2114 { (case "(($ac_try" in
2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116 *) ac_try_echo=$ac_try;;
2118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2119 (eval "$ac_try") 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2125 if test "$cross_compiling" = maybe; then
2128 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2129 If you meant to cross compile, use \`--host'.
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: cannot run C compiled programs.
2132 If you meant to cross compile, use \`--host'.
2133 See \`config.log' for more details." >&2;}
2134 { (exit 1); exit 1; }; }
2138 { echo "$as_me:$LINENO: result: yes" >&5
2139 echo "${ECHO_T}yes" >&6; }
2141 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2142 ac_clean_files=$ac_clean_files_save
2143 # Check that the compiler produces executables we can run. If not, either
2144 # the compiler is broken, or we cross compile.
2145 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2146 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2147 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2148 echo "${ECHO_T}$cross_compiling" >&6; }
2150 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2151 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2152 if { (ac_try="$ac_link"
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158 (eval "$ac_link") 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2164 # work properly (i.e., refer to `conftest.exe'), while it won't with
2166 for ac_file in conftest.exe conftest conftest.*; do
2167 test -f "$ac_file" || continue
2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2177 See \`config.log' for more details." >&5
2178 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2179 See \`config.log' for more details." >&2;}
2180 { (exit 1); exit 1; }; }
2183 rm -f conftest$ac_cv_exeext
2184 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2185 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2187 rm -f conftest.$ac_ext
2188 EXEEXT=$ac_cv_exeext
2190 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2191 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2192 if test "${ac_cv_objext+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 cat >conftest.$ac_ext <<_ACEOF
2198 cat confdefs.h >>conftest.$ac_ext
2199 cat >>conftest.$ac_ext <<_ACEOF
2200 /* end confdefs.h. */
2210 rm -f conftest.o conftest.obj
2211 if { (ac_try="$ac_compile"
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2217 (eval "$ac_compile") 2>&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; then
2221 for ac_file in conftest.o conftest.obj conftest.*; do
2222 test -f "$ac_file" || continue;
2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2236 See \`config.log' for more details." >&2;}
2237 { (exit 1); exit 1; }; }
2240 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2242 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2243 echo "${ECHO_T}$ac_cv_objext" >&6; }
2244 OBJEXT=$ac_cv_objext
2246 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2247 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2248 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 cat >conftest.$ac_ext <<_ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h. */
2269 rm -f conftest.$ac_objext
2270 if { (ac_try="$ac_compile"
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2276 (eval "$ac_compile") 2>conftest.er1
2278 grep -v '^ *+' conftest.er1 >conftest.err
2280 cat conftest.err >&5
2281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); } && {
2283 test -z "$ac_c_werror_flag" ||
2284 test ! -s conftest.err
2285 } && test -s conftest.$ac_objext; then
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2298 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2299 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2300 GCC=`test $ac_compiler_gnu = yes && echo yes`
2301 ac_test_CFLAGS=${CFLAGS+set}
2302 ac_save_CFLAGS=$CFLAGS
2303 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2304 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_cc_g+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 ac_save_c_werror_flag=$ac_c_werror_flag
2309 ac_c_werror_flag=yes
2312 cat >conftest.$ac_ext <<_ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2327 rm -f conftest.$ac_objext
2328 if { (ac_try="$ac_compile"
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2334 (eval "$ac_compile") 2>conftest.er1
2336 grep -v '^ *+' conftest.er1 >conftest.err
2338 cat conftest.err >&5
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } && {
2341 test -z "$ac_c_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest.$ac_objext; then
2346 echo "$as_me: failed program was:" >&5
2347 sed 's/^/| /' conftest.$ac_ext >&5
2350 cat >conftest.$ac_ext <<_ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2365 rm -f conftest.$ac_objext
2366 if { (ac_try="$ac_compile"
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2372 (eval "$ac_compile") 2>conftest.er1
2374 grep -v '^ *+' conftest.er1 >conftest.err
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } && {
2379 test -z "$ac_c_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest.$ac_objext; then
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2387 ac_c_werror_flag=$ac_save_c_werror_flag
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2404 rm -f conftest.$ac_objext
2405 if { (ac_try="$ac_compile"
2407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408 *) ac_try_echo=$ac_try;;
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411 (eval "$ac_compile") 2>conftest.er1
2413 grep -v '^ *+' conftest.er1 >conftest.err
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } && {
2418 test -z "$ac_c_werror_flag" ||
2419 test ! -s conftest.err
2420 } && test -s conftest.$ac_objext; then
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ac_c_werror_flag=$ac_save_c_werror_flag
2438 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2439 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2440 if test "$ac_test_CFLAGS" = set; then
2441 CFLAGS=$ac_save_CFLAGS
2442 elif test $ac_cv_prog_cc_g = yes; then
2443 if test "$GCC" = yes; then
2449 if test "$GCC" = yes; then
2455 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2456 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_cc_c89+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 ac_cv_prog_cc_c89=no
2462 cat >conftest.$ac_ext <<_ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2470 #include <sys/types.h>
2471 #include <sys/stat.h>
2472 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2473 struct buf { int x; };
2474 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2475 static char *e (p, i)
2481 static char *f (char * (*g) (char **, int), char **p, ...)
2486 s = g (p, va_arg (v,int));
2491 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2492 function prototypes and stuff, but not '\xHH' hex character constants.
2493 These don't provoke an error unfortunately, instead are silently treated
2494 as 'x'. The following induces an error, until -std is added to get
2495 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2496 array size at least. It's necessary to write '\x00'==0 to get something
2497 that's true only with -std. */
2498 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2500 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2501 inside strings and character constants. */
2503 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2505 int test (int i, double x);
2506 struct s1 {int (*f) (int a);};
2507 struct s2 {int (*f) (double a);};
2508 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2514 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2519 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2520 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2522 CC="$ac_save_CC $ac_arg"
2523 rm -f conftest.$ac_objext
2524 if { (ac_try="$ac_compile"
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compile") 2>conftest.er1
2532 grep -v '^ *+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } && {
2537 test -z "$ac_c_werror_flag" ||
2538 test ! -s conftest.err
2539 } && test -s conftest.$ac_objext; then
2540 ac_cv_prog_cc_c89=$ac_arg
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2548 rm -f core conftest.err conftest.$ac_objext
2549 test "x$ac_cv_prog_cc_c89" != "xno" && break
2551 rm -f conftest.$ac_ext
2556 case "x$ac_cv_prog_cc_c89" in
2558 { echo "$as_me:$LINENO: result: none needed" >&5
2559 echo "${ECHO_T}none needed" >&6; } ;;
2561 { echo "$as_me:$LINENO: result: unsupported" >&5
2562 echo "${ECHO_T}unsupported" >&6; } ;;
2564 CC="$CC $ac_cv_prog_cc_c89"
2565 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577 ac_cpp='$CXXCPP $CPPFLAGS'
2578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2581 if test -z "$CXX"; then
2582 if test -n "$CCC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CXX+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$CXX"; then
2596 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 if test -n "$CXX"; then
2617 { echo "$as_me:$LINENO: result: $CXX" >&5
2618 echo "${ECHO_T}$CXX" >&6; }
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$CXX" && break
2628 if test -z "$CXX"; then
2630 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$ac_ct_CXX"; then
2640 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CXX="$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2660 if test -n "$ac_ct_CXX"; then
2661 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2662 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$ac_ct_CXX" && break
2672 if test "x$ac_ct_CXX" = x; then
2675 case $cross_compiling:$ac_tool_warned in
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet. If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet. If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2691 # Provide some information about the compiler.
2692 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2693 ac_compiler=`set X $ac_compile; echo $2`
2694 { (ac_try="$ac_compiler --version >&5"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compiler --version >&5") 2>&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }
2704 { (ac_try="$ac_compiler -v >&5"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler -v >&5") 2>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714 { (ac_try="$ac_compiler -V >&5"
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler -V >&5") 2>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
2725 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2726 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2727 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 cat >conftest.$ac_ext <<_ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2748 rm -f conftest.$ac_objext
2749 if { (ac_try="$ac_compile"
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_compile") 2>conftest.er1
2757 grep -v '^ *+' conftest.er1 >conftest.err
2759 cat conftest.err >&5
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); } && {
2762 test -z "$ac_cxx_werror_flag" ||
2763 test ! -s conftest.err
2764 } && test -s conftest.$ac_objext; then
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2777 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2779 GXX=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CXXFLAGS=${CXXFLAGS+set}
2781 ac_save_CXXFLAGS=$CXXFLAGS
2782 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2783 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_cxx_g+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2788 ac_cxx_werror_flag=yes
2791 cat >conftest.$ac_ext <<_ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2806 rm -f conftest.$ac_objext
2807 if { (ac_try="$ac_compile"
2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810 *) ac_try_echo=$ac_try;;
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813 (eval "$ac_compile") 2>conftest.er1
2815 grep -v '^ *+' conftest.er1 >conftest.err
2817 cat conftest.err >&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); } && {
2820 test -z "$ac_cxx_werror_flag" ||
2821 test ! -s conftest.err
2822 } && test -s conftest.$ac_objext; then
2823 ac_cv_prog_cxx_g=yes
2825 echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2829 cat >conftest.$ac_ext <<_ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2844 rm -f conftest.$ac_objext
2845 if { (ac_try="$ac_compile"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_compile") 2>conftest.er1
2853 grep -v '^ *+' conftest.er1 >conftest.err
2855 cat conftest.err >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } && {
2858 test -z "$ac_cxx_werror_flag" ||
2859 test ! -s conftest.err
2860 } && test -s conftest.$ac_objext; then
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2866 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2868 cat >conftest.$ac_ext <<_ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compile") 2>conftest.er1
2892 grep -v '^ *+' conftest.er1 >conftest.err
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } && {
2897 test -z "$ac_cxx_werror_flag" ||
2898 test ! -s conftest.err
2899 } && test -s conftest.$ac_objext; then
2900 ac_cv_prog_cxx_g=yes
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2917 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2918 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2919 if test "$ac_test_CXXFLAGS" = set; then
2920 CXXFLAGS=$ac_save_CXXFLAGS
2921 elif test $ac_cv_prog_cxx_g = yes; then
2922 if test "$GXX" = yes; then
2928 if test "$GXX" = yes; then
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}ar; ac_word=$2
2943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2945 if test "${ac_cv_prog_AR+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 if test -n "$AR"; then
2949 ac_cv_prog_AR="$AR" # Let the user override the test.
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_AR="${ac_tool_prefix}ar"
2959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 if test -n "$AR"; then
2970 { echo "$as_me:$LINENO: result: $AR" >&5
2971 echo "${ECHO_T}$AR" >&6; }
2973 { echo "$as_me:$LINENO: result: no" >&5
2974 echo "${ECHO_T}no" >&6; }
2979 if test -z "$ac_cv_prog_AR"; then
2981 # Extract the first word of "ar", so it can be a program name with args.
2982 set dummy ar; ac_word=$2
2983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2985 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 if test -n "$ac_ct_AR"; then
2989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_ac_ct_AR="ar"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3009 if test -n "$ac_ct_AR"; then
3010 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3011 echo "${ECHO_T}$ac_ct_AR" >&6; }
3013 { echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6; }
3017 if test "x$ac_ct_AR" = x; then
3020 case $cross_compiling:$ac_tool_warned in
3022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3023 whose name does not start with the host triplet. If you think this
3024 configuration is useful to you, please write to autoconf@gnu.org." >&5
3025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3026 whose name does not start with the host triplet. If you think this
3027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3028 ac_tool_warned=yes ;;
3036 if test -n "$ac_tool_prefix"; then
3037 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3038 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_RANLIB+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 if test -n "$RANLIB"; then
3045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 RANLIB=$ac_cv_prog_RANLIB
3065 if test -n "$RANLIB"; then
3066 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3067 echo "${ECHO_T}$RANLIB" >&6; }
3069 { echo "$as_me:$LINENO: result: no" >&5
3070 echo "${ECHO_T}no" >&6; }
3075 if test -z "$ac_cv_prog_RANLIB"; then
3076 ac_ct_RANLIB=$RANLIB
3077 # Extract the first word of "ranlib", so it can be a program name with args.
3078 set dummy ranlib; ac_word=$2
3079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3081 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 if test -n "$ac_ct_RANLIB"; then
3085 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3094 ac_cv_prog_ac_ct_RANLIB="ranlib"
3095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3105 if test -n "$ac_ct_RANLIB"; then
3106 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3107 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3109 { echo "$as_me:$LINENO: result: no" >&5
3110 echo "${ECHO_T}no" >&6; }
3113 if test "x$ac_ct_RANLIB" = x; then
3116 case $cross_compiling:$ac_tool_warned in
3118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3119 whose name does not start with the host triplet. If you think this
3120 configuration is useful to you, please write to autoconf@gnu.org." >&5
3121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3122 whose name does not start with the host triplet. If you think this
3123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3124 ac_tool_warned=yes ;;
3126 RANLIB=$ac_ct_RANLIB
3129 RANLIB="$ac_cv_prog_RANLIB"
3132 cat >>confdefs.h <<_ACEOF
3136 cat >>confdefs.h <<_ACEOF
3140 cat >>confdefs.h <<_ACEOF
3144 cat >>confdefs.h <<_ACEOF
3145 #define RANLIB $RANLIB
3150 ac_cpp='$CXXCPP $CPPFLAGS'
3151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3156 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3157 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3158 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3159 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 cat >conftest.make <<\_ACEOF
3165 @echo '@@@%%%=$(MAKE)=@@@%%%'
3167 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3168 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3170 eval ac_cv_prog_make_${ac_make}_set=yes;;
3172 eval ac_cv_prog_make_${ac_make}_set=no;;
3176 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3177 { echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6; }
3181 { echo "$as_me:$LINENO: result: no" >&5
3182 echo "${ECHO_T}no" >&6; }
3183 SET_MAKE="MAKE=${MAKE-make}"
3187 if test $BUILD_PARSERS = true; then
3189 # Extract the first word of "ragel", so it can be a program name with args.
3190 set dummy ragel; ac_word=$2
3191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3193 if test "${ac_cv_prog_RAGEL+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 if test -n "$RAGEL"; then
3197 ac_cv_prog_RAGEL="$RAGEL" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_RAGEL="ragel"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 RAGEL=$ac_cv_prog_RAGEL
3217 if test -n "$RAGEL"; then
3218 { echo "$as_me:$LINENO: result: $RAGEL" >&5
3219 echo "${ECHO_T}$RAGEL" >&6; }
3221 { echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6; }
3226 if test -z "$RAGEL"; then
3228 echo "error: ragel is required to build the parsers"
3233 # Extract the first word of "kelbt", so it can be a program name with args.
3234 set dummy kelbt; ac_word=$2
3235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3237 if test "${ac_cv_prog_KELBT+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 if test -n "$KELBT"; then
3241 ac_cv_prog_KELBT="$KELBT" # Let the user override the test.
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_KELBT="kelbt"
3251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 KELBT=$ac_cv_prog_KELBT
3261 if test -n "$KELBT"; then
3262 { echo "$as_me:$LINENO: result: $KELBT" >&5
3263 echo "${ECHO_T}$KELBT" >&6; }
3265 { echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6; }
3270 if test -z "$KELBT"; then
3272 echo "error: kelbt is required to build the parsers"
3279 # Extract the first word of "gdc", so it can be a program name with args.
3280 set dummy gdc; ac_word=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_GDC+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 if test -n "$GDC"; then
3287 ac_cv_prog_GDC="$GDC" # Let the user override the test.
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_GDC="gdc"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 if test -n "$GDC"; then
3308 { echo "$as_me:$LINENO: result: $GDC" >&5
3309 echo "${ECHO_T}$GDC" >&6; }
3311 { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3316 if test -n "$GDC"; then
3317 cat >>confdefs.h <<_ACEOF
3323 { echo "$as_me:$LINENO: checking for the Objective-C compiler" >&5
3324 echo $ECHO_N "checking for the Objective-C compiler... $ECHO_C" >&6; }
3325 cat > conftest.m <<EOF
3326 int main() { return 0; }
3329 if gcc -x objective-c conftest.m -o conftest.bin 2>/dev/null; then
3330 GOBJC="gcc -x objective-c"
3331 { echo "$as_me:$LINENO: result: yes" >&5
3332 echo "${ECHO_T}yes" >&6; }
3333 cat >>confdefs.h <<_ACEOF
3334 #define GOBJC $GOBJC
3338 { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3343 # Extract the first word of "javac", so it can be a program name with args.
3344 set dummy javac; ac_word=$2
3345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3347 if test "${ac_cv_prog_JAVAC+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 if test -n "$JAVAC"; then
3351 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3360 ac_cv_prog_JAVAC="javac"
3361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 JAVAC=$ac_cv_prog_JAVAC
3371 if test -n "$JAVAC"; then
3372 { echo "$as_me:$LINENO: result: $JAVAC" >&5
3373 echo "${ECHO_T}$JAVAC" >&6; }
3375 { echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6; }
3380 if test -n "$JAVAC"; then
3381 cat >>confdefs.h <<_ACEOF
3382 #define JAVAC $JAVAC
3387 # Extract the first word of "txl", so it can be a program name with args.
3388 set dummy txl; ac_word=$2
3389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3391 if test "${ac_cv_prog_TXL+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 if test -n "$TXL"; then
3395 ac_cv_prog_TXL="$TXL" # Let the user override the test.
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 ac_cv_prog_TXL="txl"
3405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 if test -n "$TXL"; then
3416 { echo "$as_me:$LINENO: result: $TXL" >&5
3417 echo "${ECHO_T}$TXL" >&6; }
3419 { echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6; }
3424 if test -n "$TXL"; then
3425 cat >>confdefs.h <<_ACEOF
3431 # Extract the first word of "ruby", so it can be a program name with args.
3432 set dummy ruby; ac_word=$2
3433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3435 if test "${ac_cv_prog_RUBY+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 if test -n "$RUBY"; then
3439 ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_RUBY="ruby"
3449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 RUBY=$ac_cv_prog_RUBY
3459 if test -n "$RUBY"; then
3460 { echo "$as_me:$LINENO: result: $RUBY" >&5
3461 echo "${ECHO_T}$RUBY" >&6; }
3463 { echo "$as_me:$LINENO: result: no" >&5
3464 echo "${ECHO_T}no" >&6; }
3468 if test -n "$RUBY"; then
3469 cat >>confdefs.h <<_ACEOF
3475 # Extract the first word of "gmcs", so it can be a program name with args.
3476 set dummy gmcs; ac_word=$2
3477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3479 if test "${ac_cv_prog_GMCS+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 if test -n "$GMCS"; then
3483 ac_cv_prog_GMCS="$GMCS" # Let the user override the test.
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492 ac_cv_prog_GMCS="gmcs"
3493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 GMCS=$ac_cv_prog_GMCS
3503 if test -n "$GMCS"; then
3504 { echo "$as_me:$LINENO: result: $GMCS" >&5
3505 echo "${ECHO_T}$GMCS" >&6; }
3507 { echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6; }
3512 if test -n "$GMCS"; then
3513 cat >>confdefs.h <<_ACEOF
3519 ac_config_files="$ac_config_files Makefile ragel/Makefile doc/Makefile test/Makefile"
3521 cat >confcache <<\_ACEOF
3522 # This file is a shell script that caches the results of configure
3523 # tests run on this system so they can be shared between configure
3524 # scripts and configure runs, see configure's option --config-cache.
3525 # It is not useful on other systems. If it contains results you don't
3526 # want to keep, you may remove or edit it.
3528 # config.status only pays attention to the cache file if you give it
3529 # the --recheck option to rerun configure.
3531 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3532 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3537 # The following way of writing the cache mishandles newlines in values,
3538 # but we know of no workaround that is simple, portable, and efficient.
3539 # So, we kill variables containing newlines.
3540 # Ultrix sh set writes to stderr and can't be redirected directly,
3541 # and sets the high bit in the cache file unless we assign to the vars.
3543 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3544 eval ac_val=\$$ac_var
3548 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3549 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3552 _ | IFS | as_nl) ;; #(
3553 *) $as_unset $ac_var ;;
3559 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3560 *${as_nl}ac_space=\ *)
3561 # `set' does not quote correctly, so add quotes (double-quote
3562 # substitution turns \\\\ into \\, and sed turns \\ into \).
3565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3568 # `set' quotes correctly as required by POSIX, so do not add quotes.
3569 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3580 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3582 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3583 if test -w "$cache_file"; then
3584 test "x$cache_file" != "x/dev/null" &&
3585 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3586 echo "$as_me: updating cache $cache_file" >&6;}
3587 cat confcache >$cache_file
3589 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3590 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3595 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3596 # Let make expand exec_prefix.
3597 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3599 DEFS=-DHAVE_CONFIG_H
3603 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3604 # 1. Remove the extension, and $U if already installed.
3605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3606 ac_i=`echo "$ac_i" | sed "$ac_script"`
3607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3608 # will be set to the directory where LIBOBJS objects are built.
3609 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3610 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3614 LTLIBOBJS=$ac_ltlibobjs
3618 : ${CONFIG_STATUS=./config.status}
3619 ac_clean_files_save=$ac_clean_files
3620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3621 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3622 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3623 cat >$CONFIG_STATUS <<_ACEOF
3625 # Generated by $as_me.
3626 # Run this file to recreate the current configuration.
3627 # Compiler output produced by configure, useful for debugging
3628 # configure, is in config.log if it exists.
3633 SHELL=\${CONFIG_SHELL-$SHELL}
3636 cat >>$CONFIG_STATUS <<\_ACEOF
3637 ## --------------------- ##
3638 ## M4sh Initialization. ##
3639 ## --------------------- ##
3641 # Be more Bourne compatible
3642 DUALCASE=1; export DUALCASE # for MKS sh
3643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3646 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3647 # is contrary to our usage. Disable this feature.
3648 alias -g '${1+"$@"}'='"$@"'
3649 setopt NO_GLOB_SUBST
3651 case `(set -o) 2>/dev/null` in
3652 *posix*) set -o posix ;;
3661 # Avoid depending upon Character Ranges.
3662 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3663 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3664 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3665 as_cr_digits='0123456789'
3666 as_cr_alnum=$as_cr_Letters$as_cr_digits
3668 # The user is always right.
3669 if test "${PATH_SEPARATOR+set}" != set; then
3670 echo "#! /bin/sh" >conf$$.sh
3671 echo "exit 0" >>conf$$.sh
3673 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3681 # Support unset when possible.
3682 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3690 # We need space, tab and new line, in precisely that order. Quoting is
3691 # there to prevent editors from complaining about space-tab.
3692 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3693 # splitting by setting IFS to empty value.)
3698 # Find who we are. Look in the path if we contain no directory separator.
3700 *[\\/]* ) as_myself=$0 ;;
3701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3712 # We did not find ourselves, most probably we were run as `sh COMMAND'
3713 # in which case we are not to be found in the path.
3714 if test "x$as_myself" = x; then
3717 if test ! -f "$as_myself"; then
3718 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3719 { (exit 1); exit 1; }
3722 # Work around bugs in pre-3.0 UWIN ksh.
3723 for as_var in ENV MAIL MAILPATH
3724 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3732 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3733 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3734 LC_TELEPHONE LC_TIME
3736 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3737 eval $as_var=C; export $as_var
3739 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3743 # Required to use basename.
3744 if expr a : '\(a\)' >/dev/null 2>&1 &&
3745 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3751 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3752 as_basename=basename
3758 # Name of the executable.
3759 as_me=`$as_basename -- "$0" ||
3760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3761 X"$0" : 'X\(//\)$' \| \
3762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3764 sed '/^.*\/\([^/][^/]*\)\/*$/{
3785 test "x$as_lineno_1" != "x$as_lineno_2" &&
3786 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3788 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3789 # uniformly replaced by the line number. The first 'sed' inserts a
3790 # line-number line after each line using $LINENO; the second 'sed'
3791 # does the real work. The second script uses 'N' to pair each
3792 # line-number line with the line containing $LINENO, and appends
3793 # trailing '-' during substitution so that $LINENO is not a special
3795 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3796 # scripts with optimization help from Paolo Bonzini. Blame Lee
3797 # E. McMahon (1931-1989) for sed's syntax. :-)
3809 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3813 chmod +x "$as_me.lineno" ||
3814 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3815 { (exit 1); exit 1; }; }
3817 # Don't try to exec as it changes $[0], causing all sort of problems
3818 # (the dirname of $[0] is not the place where we might find the
3819 # original and so on. Autoconf is especially sensitive to this).
3821 # Exit status is that of the last command.
3826 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3832 ECHO_C= ECHO_N= ECHO_T=
3835 case `echo 'x\c'` in
3836 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
3843 if expr a : '\(a\)' >/dev/null 2>&1 &&
3844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3850 rm -f conf$$ conf$$.exe conf$$.file
3851 if test -d conf$$.dir; then
3852 rm -f conf$$.dir/conf$$.file
3858 if ln -s conf$$.file conf$$ 2>/dev/null; then
3860 # ... but there are two gotchas:
3861 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3862 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3863 # In both cases, we have to default to `cp -p'.
3864 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3866 elif ln conf$$.file conf$$ 2>/dev/null; then
3871 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3872 rmdir conf$$.dir 2>/dev/null
3874 if mkdir -p . 2>/dev/null; then
3877 test -d ./-p && rmdir ./-p
3881 if test -x / >/dev/null 2>&1; then
3884 if ls -dL / >/dev/null 2>&1; then
3891 if test -d "$1"; then
3897 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3898 ???[sx]*):;;*)false;;esac;fi
3902 as_executable_p=$as_test_x
3904 # Sed expression to map a string onto a valid CPP name.
3905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3907 # Sed expression to map a string onto a valid variable name.
3908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3913 # Save the log message, to keep $[0] and so on meaningful, and to
3914 # report actual input values of CONFIG_FILES etc. instead of their
3915 # values after options handling.
3917 This file was extended by $as_me, which was
3918 generated by GNU Autoconf 2.61. Invocation command line was
3920 CONFIG_FILES = $CONFIG_FILES
3921 CONFIG_HEADERS = $CONFIG_HEADERS
3922 CONFIG_LINKS = $CONFIG_LINKS
3923 CONFIG_COMMANDS = $CONFIG_COMMANDS
3926 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3931 cat >>$CONFIG_STATUS <<_ACEOF
3932 # Files that config.status was made for.
3933 config_files="$ac_config_files"
3934 config_headers="$ac_config_headers"
3938 cat >>$CONFIG_STATUS <<\_ACEOF
3940 \`$as_me' instantiates files from templates according to the
3941 current configuration.
3943 Usage: $0 [OPTIONS] [FILE]...
3945 -h, --help print this help, then exit
3946 -V, --version print version number and configuration settings, then exit
3947 -q, --quiet do not print progress messages
3948 -d, --debug don't remove temporary files
3949 --recheck update $as_me by reconfiguring in the same conditions
3950 --file=FILE[:TEMPLATE]
3951 instantiate the configuration file FILE
3952 --header=FILE[:TEMPLATE]
3953 instantiate the configuration header FILE
3955 Configuration files:
3958 Configuration headers:
3961 Report bugs to <bug-autoconf@gnu.org>."
3964 cat >>$CONFIG_STATUS <<_ACEOF
3967 configured by $0, generated by GNU Autoconf 2.61,
3968 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3970 Copyright (C) 2006 Free Software Foundation, Inc.
3971 This config.status script is free software; the Free Software Foundation
3972 gives unlimited permission to copy, distribute and modify it."
3978 cat >>$CONFIG_STATUS <<\_ACEOF
3979 # If no file are specified by the user, then we need to provide default
3980 # value. By we need to know if files were specified by the user.
3986 ac_option=`expr "X$1" : 'X\([^=]*\)='`
3987 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3998 # Handling of the options.
3999 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4001 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4002 echo "$ac_cs_version"; exit ;;
4003 --debug | --debu | --deb | --de | --d | -d )
4005 --file | --fil | --fi | --f )
4007 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4008 ac_need_defaults=false;;
4009 --header | --heade | --head | --hea )
4011 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4012 ac_need_defaults=false;;
4014 # Conflict between --help and --header
4015 { echo "$as_me: error: ambiguous option: $1
4016 Try \`$0 --help' for more information." >&2
4017 { (exit 1); exit 1; }; };;
4018 --help | --hel | -h )
4019 echo "$ac_cs_usage"; exit ;;
4020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4021 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4025 -*) { echo "$as_me: error: unrecognized option: $1
4026 Try \`$0 --help' for more information." >&2
4027 { (exit 1); exit 1; }; } ;;
4029 *) ac_config_targets="$ac_config_targets $1"
4030 ac_need_defaults=false ;;
4036 ac_configure_extra_args=
4038 if $ac_cs_silent; then
4040 ac_configure_extra_args="$ac_configure_extra_args --silent"
4044 cat >>$CONFIG_STATUS <<_ACEOF
4045 if \$ac_cs_recheck; then
4046 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4049 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4053 cat >>$CONFIG_STATUS <<\_ACEOF
4057 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4058 ## Running $as_me. ##
4064 cat >>$CONFIG_STATUS <<_ACEOF
4067 cat >>$CONFIG_STATUS <<\_ACEOF
4069 # Handling of arguments.
4070 for ac_config_target in $ac_config_targets
4072 case $ac_config_target in
4073 "ragel/config.h") CONFIG_HEADERS="$CONFIG_HEADERS ragel/config.h" ;;
4074 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4075 "ragel/Makefile") CONFIG_FILES="$CONFIG_FILES ragel/Makefile" ;;
4076 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4077 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
4079 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4080 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4081 { (exit 1); exit 1; }; };;
4086 # If the user did not use the arguments to specify the items to instantiate,
4087 # then the envvar interface is used. Set only those that are not.
4088 # We use the long form for the default assignment because of an extremely
4089 # bizarre bug on SunOS 4.1.3.
4090 if $ac_need_defaults; then
4091 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4092 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4095 # Have a temporary directory for convenience. Make it in the build tree
4096 # simply because there is no reason against having it here, and in addition,
4097 # creating and moving files from /tmp can sometimes cause problems.
4098 # Hook for its removal unless debugging.
4099 # Note that there is a small window in which the directory will not be cleaned:
4100 # after its creation but before its name has been assigned to `$tmp'.
4104 trap 'exit_status=$?
4105 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4107 trap '{ (exit 1); exit 1; }' 1 2 13 15
4109 # Create a (secure) tmp directory for tmp files.
4112 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4113 test -n "$tmp" && test -d "$tmp"
4116 tmp=./conf$$-$RANDOM
4117 (umask 077 && mkdir "$tmp")
4120 echo "$me: cannot create a temporary directory in ." >&2
4121 { (exit 1); exit 1; }
4125 # Set up the sed scripts for CONFIG_FILES section.
4128 # No need to generate the scripts if there are no CONFIG_FILES.
4129 # This happens for instance when ./config.status config.h
4130 if test -n "$CONFIG_FILES"; then
4137 for ac_last_try in false false false false false :; do
4138 cat >conf$$subs.sed <<_ACEOF
4139 SHELL!$SHELL$ac_delim
4140 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4141 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4142 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4143 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4144 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4145 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4146 exec_prefix!$exec_prefix$ac_delim
4147 prefix!$prefix$ac_delim
4148 program_transform_name!$program_transform_name$ac_delim
4149 bindir!$bindir$ac_delim
4150 sbindir!$sbindir$ac_delim
4151 libexecdir!$libexecdir$ac_delim
4152 datarootdir!$datarootdir$ac_delim
4153 datadir!$datadir$ac_delim
4154 sysconfdir!$sysconfdir$ac_delim
4155 sharedstatedir!$sharedstatedir$ac_delim
4156 localstatedir!$localstatedir$ac_delim
4157 includedir!$includedir$ac_delim
4158 oldincludedir!$oldincludedir$ac_delim
4159 docdir!$docdir$ac_delim
4160 infodir!$infodir$ac_delim
4161 htmldir!$htmldir$ac_delim
4162 dvidir!$dvidir$ac_delim
4163 pdfdir!$pdfdir$ac_delim
4164 psdir!$psdir$ac_delim
4165 libdir!$libdir$ac_delim
4166 localedir!$localedir$ac_delim
4167 mandir!$mandir$ac_delim
4169 ECHO_C!$ECHO_C$ac_delim
4170 ECHO_N!$ECHO_N$ac_delim
4171 ECHO_T!$ECHO_T$ac_delim
4173 build_alias!$build_alias$ac_delim
4174 host_alias!$host_alias$ac_delim
4175 target_alias!$target_alias$ac_delim
4176 BUILD_PARSERS!$BUILD_PARSERS$ac_delim
4178 CFLAGS!$CFLAGS$ac_delim
4179 LDFLAGS!$LDFLAGS$ac_delim
4180 CPPFLAGS!$CPPFLAGS$ac_delim
4181 ac_ct_CC!$ac_ct_CC$ac_delim
4182 EXEEXT!$EXEEXT$ac_delim
4183 OBJEXT!$OBJEXT$ac_delim
4185 CXXFLAGS!$CXXFLAGS$ac_delim
4186 ac_ct_CXX!$ac_ct_CXX$ac_delim
4188 RANLIB!$RANLIB$ac_delim
4189 SET_MAKE!$SET_MAKE$ac_delim
4190 RAGEL!$RAGEL$ac_delim
4191 KELBT!$KELBT$ac_delim
4193 GOBJC!$GOBJC$ac_delim
4194 JAVAC!$JAVAC$ac_delim
4198 LIBOBJS!$LIBOBJS$ac_delim
4199 LTLIBOBJS!$LTLIBOBJS$ac_delim
4202 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 61; then
4204 elif $ac_last_try; then
4205 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4206 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4207 { (exit 1); exit 1; }; }
4209 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4213 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4214 if test -n "$ac_eof"; then
4215 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4216 ac_eof=`expr $ac_eof + 1`
4219 cat >>$CONFIG_STATUS <<_ACEOF
4220 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4224 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4225 s/^/s,@/; s/!/@,|#_!!_#|/
4228 s/'"$ac_delim"'$/,g/; t
4230 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4231 ' >>$CONFIG_STATUS <conf$$subs.sed
4232 rm -f conf$$subs.sed
4233 cat >>$CONFIG_STATUS <<_ACEOF
4240 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4241 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4242 # trailing colons and then remove the whole line if VPATH becomes empty
4243 # (actually we leave an empty line to preserve line numbers).
4244 if test "x$srcdir" = x.; then
4245 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4249 s/^\([^=]*=[ ]*\):*/\1/
4255 cat >>$CONFIG_STATUS <<\_ACEOF
4256 fi # test -n "$CONFIG_FILES"
4259 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
4262 :[FHLC]) ac_mode=$ac_tag; continue;;
4264 case $ac_mode$ac_tag in
4266 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4267 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4268 { (exit 1); exit 1; }; };;
4269 :[FH]-) ac_tag=-:-;;
4270 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4287 -) ac_f="$tmp/stdin";;
4288 *) # Look for the file first in the build tree, then in the source tree
4289 # (if the path is not absolute). The absolute path cannot be DOS-style,
4290 # because $ac_f cannot contain `:'.
4294 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4296 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4297 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4298 { (exit 1); exit 1; }; };;
4300 ac_file_inputs="$ac_file_inputs $ac_f"
4303 # Let's still pretend it is `configure' which instantiates (i.e., don't
4304 # use $as_me), people would be surprised to read:
4305 # /* config.h. Generated by config.status. */
4306 configure_input="Generated from "`IFS=:
4307 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4308 if test x"$ac_file" != x-; then
4309 configure_input="$ac_file. $configure_input"
4310 { echo "$as_me:$LINENO: creating $ac_file" >&5
4311 echo "$as_me: creating $ac_file" >&6;}
4315 *:-:* | *:-) cat >"$tmp/stdin";;
4320 ac_dir=`$as_dirname -- "$ac_file" ||
4321 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4322 X"$ac_file" : 'X\(//\)[^/]' \| \
4323 X"$ac_file" : 'X\(//\)$' \| \
4324 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4345 -*) as_dir=./$as_dir;;
4347 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4351 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4352 *) as_qdir=$as_dir;;
4354 as_dirs="'$as_qdir' $as_dirs"
4355 as_dir=`$as_dirname -- "$as_dir" ||
4356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4357 X"$as_dir" : 'X\(//\)[^/]' \| \
4358 X"$as_dir" : 'X\(//\)$' \| \
4359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4378 test -d "$as_dir" && break
4380 test -z "$as_dirs" || eval "mkdir $as_dirs"
4381 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4382 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4383 { (exit 1); exit 1; }; }; }
4387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4390 # A ".." for each directory in $ac_dir_suffix.
4391 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4392 case $ac_top_builddir_sub in
4393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4397 ac_abs_top_builddir=$ac_pwd
4398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4399 # for backward compatibility:
4400 ac_top_builddir=$ac_top_build_prefix
4403 .) # We are building in place.
4405 ac_top_srcdir=$ac_top_builddir_sub
4406 ac_abs_top_srcdir=$ac_pwd ;;
4407 [\\/]* | ?:[\\/]* ) # Absolute name.
4408 ac_srcdir=$srcdir$ac_dir_suffix;
4409 ac_top_srcdir=$srcdir
4410 ac_abs_top_srcdir=$srcdir ;;
4412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4413 ac_top_srcdir=$ac_top_build_prefix$srcdir
4414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4427 cat >>$CONFIG_STATUS <<\_ACEOF
4428 # If the template does not know about datarootdir, expand it.
4429 # FIXME: This hack should be removed a few years after 2.60.
4430 ac_datarootdir_hack=; ac_datarootdir_seen=
4432 case `sed -n '/datarootdir/ {
4441 ' $ac_file_inputs` in
4442 *datarootdir*) ac_datarootdir_seen=yes;;
4443 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4444 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4445 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4447 cat >>$CONFIG_STATUS <<_ACEOF
4448 ac_datarootdir_hack='
4449 s&@datadir@&$datadir&g
4450 s&@docdir@&$docdir&g
4451 s&@infodir@&$infodir&g
4452 s&@localedir@&$localedir&g
4453 s&@mandir@&$mandir&g
4454 s&\\\${datarootdir}&$datarootdir&g' ;;
4458 # Neutralize VPATH when `$srcdir' = `.'.
4459 # Shell code in configure.ac might set extrasub.
4460 # FIXME: do we really want to maintain this feature?
4461 cat >>$CONFIG_STATUS <<_ACEOF
4465 cat >>$CONFIG_STATUS <<\_ACEOF
4467 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4468 s&@configure_input@&$configure_input&;t t
4469 s&@top_builddir@&$ac_top_builddir_sub&;t t
4470 s&@srcdir@&$ac_srcdir&;t t
4471 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4472 s&@top_srcdir@&$ac_top_srcdir&;t t
4473 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4474 s&@builddir@&$ac_builddir&;t t
4475 s&@abs_builddir@&$ac_abs_builddir&;t t
4476 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4477 $ac_datarootdir_hack
4478 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4483 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4484 which seems to be undefined. Please make sure it is defined." >&5
4485 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4486 which seems to be undefined. Please make sure it is defined." >&2;}
4490 -) cat "$tmp/out"; rm -f "$tmp/out";;
4491 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4500 # Transform confdefs.h into a sed script `conftest.defines', that
4501 # substitutes the proper values into config.h.in to produce config.h.
4502 rm -f conftest.defines conftest.tail
4503 # First, append a space to every undef/define line, to ease matching.
4504 echo 's/$/ /' >conftest.defines
4505 # Then, protect against being on the right side of a sed subst, or in
4506 # an unquoted here document, in config.status. If some macros were
4507 # called several times there might be several #defines for the same
4508 # symbol, which is useless. But do not sort them, since the last
4509 # AC_DEFINE must be honored.
4510 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4511 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
4512 # NAME is the cpp macro being defined, VALUE is the value it is being given.
4513 # PARAMS is the parameter list in the macro definition--in most cases, it's
4514 # just an empty string.
4515 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
4516 ac_dB='\\)[ (].*,\\1define\\2'
4524 s/^[ ]*#[ ]*define[ ][ ]*//
4529 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
4530 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
4531 ' >>conftest.defines
4533 # Remove the space that was appended to ease matching.
4534 # Then replace #undef with comments. This is necessary, for
4535 # example, in the case of _POSIX_SOURCE, which is predefined and required
4536 # on some systems where configure will not decide to define it.
4537 # (The regexp can be short, since the line contains either #define or #undef.)
4539 s,^[ #]*u.*,/* & */,' >>conftest.defines
4541 # Break up conftest.defines:
4544 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
4545 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
4546 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
4548 ac_in='$ac_file_inputs'
4549 ac_out='"$tmp/out1"'
4550 ac_nxt='"$tmp/out2"'
4554 # Write a here document:
4555 cat >>$CONFIG_STATUS <<_ACEOF
4556 # First, check the format of the line:
4557 cat >"\$tmp/defines.sed" <<\\CEOF
4558 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
4559 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
4563 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4565 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
4566 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
4567 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
4568 grep . conftest.tail >/dev/null || break
4569 rm -f conftest.defines
4570 mv conftest.tail conftest.defines
4572 rm -f conftest.defines conftest.tail
4574 echo "ac_result=$ac_in" >>$CONFIG_STATUS
4575 cat >>$CONFIG_STATUS <<\_ACEOF
4576 if test x"$ac_file" != x-; then
4577 echo "/* $configure_input */" >"$tmp/config.h"
4578 cat "$ac_result" >>"$tmp/config.h"
4579 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
4580 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4581 echo "$as_me: $ac_file is unchanged" >&6;}
4584 mv "$tmp/config.h" $ac_file
4587 echo "/* $configure_input */"
4599 { (exit 0); exit 0; }
4601 chmod +x $CONFIG_STATUS
4602 ac_clean_files=$ac_clean_files_save
4605 # configure is writing to config.log, and then calls config.status.
4606 # config.status does its own redirection, appending to config.log.
4607 # Unfortunately, on DOS this fails, as config.log is still kept open
4608 # by configure, so config.status won't be able to write to it; its
4609 # output is simply discarded. So we exec the FD to /dev/null,
4610 # effectively closing config.log, so it can be properly (re)opened and
4611 # appended to by config.status. When coming back to configure, we
4612 # need to make the FD available again.
4613 if test "$no_create" != yes; then
4615 ac_config_status_args=
4616 test "$silent" = yes &&
4617 ac_config_status_args="$ac_config_status_args --quiet"
4619 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4621 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4622 # would make configure fail if this is the last instruction.
4623 $ac_cs_success || { (exit 1); exit 1; }
4627 echo "configuration of ragel complete"