2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="lily/main.cc"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
706 build_package_datadir
742 ugh_ugh_autoconf250_builddir
770 program_transform_name
782 enable_option_checking
798 ac_precious_vars='build_alias
814 # Initialize some variables set by options.
816 ac_init_version=false
817 ac_unrecognized_opts=
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE}'
853 infodir='${datarootdir}/info'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 # Accept the important Cygnus configure options, so we can diagnose typos.
880 case $ac_dashdash$ac_option in
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
902 cache_file=config.cache ;;
904 -datadir | --datadir | --datadi | --datad)
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
921 { (exit 1); exit 1; }; }
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
958 eval enable_$ac_useropt=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1163 eval with_$ac_useropt=\$ac_optarg ;;
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1170 { (exit 1); exit 1; }; }
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1180 eval with_$ac_useropt=no ;;
1183 # Obsolete; use --with-x.
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1200 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1201 Try \`$0 --help' for more information." >&2
1202 { (exit 1); exit 1; }; }
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1209 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1210 { (exit 1); exit 1; }; }
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1215 # FIXME: should be removed in autoconf 3.0.
1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1228 { (exit 1); exit 1; }; }
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1234 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1235 { (exit 1); exit 1; }; } ;;
1236 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1253 # Be sure to have absolute directory names.
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1259 { (exit 1); exit 1; }; }
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1267 target=$target_alias
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1274 If a cross compiler is detected then cross compile mode will be used." >&2
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1290 { (exit 1); exit 1; }; }
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1293 { (exit 1); exit 1; }; }
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298 ac_srcdir_defaulted=yes
1299 # Try the directory containing this script, then the parent directory.
1300 ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302 X"$as_myself" : 'X\(//\)[^/]' \| \
1303 X"$as_myself" : 'X\(//\)$' \| \
1304 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1328 ac_srcdir_defaulted=no
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1333 { (exit 1); exit 1; }; }
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1338 { (exit 1); exit 1; }; }
1340 # When building in place, set srcdir=.
1341 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 # Remove unnecessary trailing slashes from srcdir.
1345 # Double slashes in file names in object file debugging info
1346 # mess up M-x gdb in Emacs.
1348 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350 for ac_var in $ac_precious_vars; do
1351 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_env_${ac_var}_value=\$${ac_var}
1353 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 # Report the --help message.
1360 if test "$ac_init_help" = "long"; then
1361 # Omit some internal or obsolete options to make the list less imposing.
1362 # This message is too long to be a string in the A/UX 3.1 sh.
1364 \`configure' configures this package to adapt to many kinds of systems.
1366 Usage: $0 [OPTION]... [VAR=VALUE]...
1368 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1369 VAR=VALUE. See below for descriptions of some of the useful variables.
1371 Defaults for the options are specified in brackets.
1374 -h, --help display this help and exit
1375 --help=short display options specific to this package
1376 --help=recursive display the short help of all the included packages
1377 -V, --version display version information and exit
1378 -q, --quiet, --silent do not print \`checking...' messages
1379 --cache-file=FILE cache test results in FILE [disabled]
1380 -C, --config-cache alias for \`--cache-file=config.cache'
1381 -n, --no-create do not create output files
1382 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1384 Installation directories:
1385 --prefix=PREFIX install architecture-independent files in PREFIX
1386 [$ac_default_prefix]
1387 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 By default, \`make install' will install all the files in
1391 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1392 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1393 for instance \`--prefix=\$HOME'.
1395 For better control, use the options below.
1397 Fine tuning of the installation directories:
1398 --bindir=DIR user executables [EPREFIX/bin]
1399 --sbindir=DIR system admin executables [EPREFIX/sbin]
1400 --libexecdir=DIR program executables [EPREFIX/libexec]
1401 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1402 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1403 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1404 --libdir=DIR object code libraries [EPREFIX/lib]
1405 --includedir=DIR C header files [PREFIX/include]
1406 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1407 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1408 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1409 --infodir=DIR info documentation [DATAROOTDIR/info]
1410 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1411 --mandir=DIR man documentation [DATAROOTDIR/man]
1412 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1413 --htmldir=DIR html documentation [DOCDIR]
1414 --dvidir=DIR dvi documentation [DOCDIR]
1415 --pdfdir=DIR pdf documentation [DOCDIR]
1416 --psdir=DIR ps documentation [DOCDIR]
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 if test -n "$ac_init_help"; then
1432 --disable-option-checking ignore unrecognized --enable/--with options
1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1435 --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
1436 do `make conf=CONF' to get output in ./out-CONF
1437 --enable-documentation build Documentation. Default: on
1438 --enable-relocation compile with dynamic relocation. Default: off
1439 --enable-rpath hardcode runtime library path. Default: off
1440 --enable-static-gxx link libstdc++.a statically. Default: off
1441 --enable-debugging compile with debugging info. Default: on
1442 --enable-optimising compile with optimising. Default: on
1443 --enable-profiling compile with gprof support. Default: off
1444 --enable-pipe compile with -pipe. Default: on
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-ncsb-dir=DIR location of Century Schoolbook fonts.
1450 --with-localedir=DIR location of locales. Default: PREFIX/share/locale
1451 --with-lang=LANG use LANG as language to emit messages
1452 --with-python-include=DIR
1453 location of the python include dir
1454 --with-python-lib=NAME name of the python lib
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1466 CXXCPP C++ preprocessor
1467 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1468 the first program found out of: `bison -y', `byacc', `yacc'.
1469 YFLAGS The list of arguments that will be passed by default to $YACC.
1470 This script will default YFLAGS to the empty string to avoid a
1471 default value of `-d' given by some make applications.
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1505 .) # We are building in place.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1539 generated by GNU Autoconf 2.63
1541 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1542 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by $as_me, which was
1553 generated by GNU Autoconf 2.63. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 $as_echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1677 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1682 *) $as_unset $ac_var ;;
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1707 for ac_var in $ac_subst_vars
1709 eval ac_val=\$$ac_var
1711 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 $as_echo "$ac_var='\''$ac_val'\''"
1717 if test -n "$ac_subst_files"; then
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1724 for ac_var in $ac_subst_files
1726 eval ac_val=\$$ac_var
1728 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 $as_echo "$ac_var='\''$ac_val'\''"
1735 if test -s confdefs.h; then
1745 test "$ac_signal" != 0 &&
1746 $as_echo "$as_me: caught signal $ac_signal"
1747 $as_echo "$as_me: exit $exit_status"
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1753 for ac_signal in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1761 # Predefined preprocessor variables.
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer an explicitly selected file to automatically selected ones.
1792 if test -n "$CONFIG_SITE"; then
1793 ac_site_file1=$CONFIG_SITE
1794 elif test "x$prefix" != xNONE; then
1795 ac_site_file1=$prefix/share/config.site
1796 ac_site_file2=$prefix/etc/config.site
1798 ac_site_file1=$ac_default_prefix/share/config.site
1799 ac_site_file2=$ac_default_prefix/etc/config.site
1801 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1803 test "x$ac_site_file" = xNONE && continue
1804 if test -r "$ac_site_file"; then
1805 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1806 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1807 sed 's/^/| /' "$ac_site_file" >&5
1812 if test -r "$cache_file"; then
1813 # Some versions of bash will fail to source /dev/null (special
1814 # files actually), so we avoid doing that.
1815 if test -f "$cache_file"; then
1816 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1817 $as_echo "$as_me: loading cache $cache_file" >&6;}
1819 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1820 *) . "./$cache_file";;
1824 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1825 $as_echo "$as_me: creating cache $cache_file" >&6;}
1829 # Check that the precious variables saved in the cache have kept the same
1831 ac_cache_corrupted=false
1832 for ac_var in $ac_precious_vars; do
1833 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1834 eval ac_new_set=\$ac_env_${ac_var}_set
1835 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1836 eval ac_new_val=\$ac_env_${ac_var}_value
1837 case $ac_old_set,$ac_new_set in
1839 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1843 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1848 if test "x$ac_old_val" != "x$ac_new_val"; then
1849 # differences in whitespace do not lead to failure.
1850 ac_old_val_w=`echo x $ac_old_val`
1851 ac_new_val_w=`echo x $ac_new_val`
1852 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1853 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855 ac_cache_corrupted=:
1857 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1858 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1859 eval $ac_var=\$ac_old_val
1861 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1862 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1863 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1864 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1867 # Pass precious variables to config.status.
1868 if test "$ac_new_set" = set; then
1870 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 *) ac_arg=$ac_var=$ac_new_val ;;
1873 case " $ac_configure_args " in
1874 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1875 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1879 if $ac_cache_corrupted; then
1880 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1882 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886 { (exit 1); exit 1; }; }
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 # Bootstrap StepMake configure
1916 for ac_dir in stepmake/bin "$srcdir"/stepmake/bin; do
1917 if test -f "$ac_dir/install-sh"; then
1919 ac_install_sh="$ac_aux_dir/install-sh -c"
1921 elif test -f "$ac_dir/install.sh"; then
1923 ac_install_sh="$ac_aux_dir/install.sh -c"
1925 elif test -f "$ac_dir/shtool"; then
1927 ac_install_sh="$ac_aux_dir/shtool install -c"
1931 if test -z "$ac_aux_dir"; then
1932 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&5
1933 $as_echo "$as_me: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&2;}
1934 { (exit 1); exit 1; }; }
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947 # For stepmake package:
1948 # AC_CONFIG_AUX_DIR(bin)
1951 # Make sure we can run config.sub.
1952 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1953 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1954 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1955 { (exit 1); exit 1; }; }
1957 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1958 $as_echo_n "checking build system type... " >&6; }
1959 if test "${ac_cv_build+set}" = set; then
1960 $as_echo_n "(cached) " >&6
1962 ac_build_alias=$build_alias
1963 test "x$ac_build_alias" = x &&
1964 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1965 test "x$ac_build_alias" = x &&
1966 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1967 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1968 { (exit 1); exit 1; }; }
1969 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1970 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1971 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1972 { (exit 1); exit 1; }; }
1975 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1976 $as_echo "$ac_cv_build" >&6; }
1977 case $ac_cv_build in
1979 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1980 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1981 { (exit 1); exit 1; }; };;
1984 ac_save_IFS=$IFS; IFS='-'
1990 # Remember, the first character of IFS is used to create $*,
1991 # except with old shells:
1994 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2000 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2001 MICRO_VERSION=$PATCH_LEVEL
2002 TOPLEVEL_VERSION=$FULL_VERSION
2003 if test x$MY_PATCH_LEVEL != x; then
2004 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2006 VERSION=$FULL_VERSION
2007 export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2008 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2010 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2011 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2014 # No versioning on directory names of sub-packages
2016 stepmake=${datadir}/stepmake
2018 if test "$prefix" = "NONE"; then
2019 presome=${ac_default_prefix}
2021 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2023 # urg, how is this supposed to work?
2024 if test "$program_prefix" = "NONE"; then
2027 if test "$program_suffix" = "NONE"; then
2031 { $as_echo "$as_me:$LINENO: checking Package" >&5
2032 $as_echo_n "checking Package... " >&6; }
2033 if test "$PACKAGE" = "STEPMAKE"; then
2034 { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2035 $as_echo "Stepmake package!" >&6; }
2037 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2038 $as_echo_n "checking builddir... " >&6; }
2040 ugh_ugh_autoconf250_builddir="`pwd`"
2042 if test "$srcdir" = "."; then
2046 package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2047 package_srcdir="`dirname $srcdir`"
2049 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2050 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2052 (cd stepmake 2>/dev/null || mkdir stepmake)
2053 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2056 { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2057 $as_echo "$PACKAGE" >&6; }
2059 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2060 $as_echo_n "checking builddir... " >&6; }
2061 ugh_ugh_autoconf250_builddir="`pwd`"
2063 here_dir=$(cd . && pwd)
2064 full_src_dir=$(cd $srcdir && pwd)
2066 if test "$full_src_dir" = "$here_dir"; then
2071 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2072 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2074 { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2075 $as_echo_n "checking for stepmake... " >&6; }
2076 # Check for installed stepmake
2077 if test -d $stepmake; then
2078 { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2079 $as_echo "$stepmake" >&6; }
2081 stepmake="`cd $srcdir/stepmake; pwd`"
2082 { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake ($datadir/stepmake not found)" >&5
2083 $as_echo "$srcdir/stepmake ($datadir/stepmake not found)" >&6; }
2089 # Use absolute directory for non-srcdir builds, so that build
2091 if test "$srcdir_build" = "no" ; then
2092 srcdir="`cd $srcdir; pwd`"
2105 # stepmake nonstandard names
2109 # We don't need the upper case variant,
2110 # so stick to macros are uppercase convention.
2111 # AC_DEFINE_UNQUOTED(package, ["${package}"])
2112 # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE "${package}"
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_NAME "${PACKAGE_NAME}"
2121 cat >>confdefs.h <<_ACEOF
2122 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2126 if test -z "$package_depth"; then
2129 package_depth="../$package_depth"
2131 export package_depth
2134 AUTOGENERATE="This file was automatically generated by configure"
2138 # Check whether --enable-config was given.
2139 if test "${enable_config+set}" = set; then
2140 enableval=$enable_config; CONFIGURATION=$enableval
2146 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2147 CONFIGFILE=config$CONFIGSUFFIX
2150 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2151 $as_echo_n "checking host system type... " >&6; }
2152 if test "${ac_cv_host+set}" = set; then
2153 $as_echo_n "(cached) " >&6
2155 if test "x$host_alias" = x; then
2156 ac_cv_host=$ac_cv_build
2158 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2159 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2160 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2161 { (exit 1); exit 1; }; }
2165 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2166 $as_echo "$ac_cv_host" >&6; }
2169 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2170 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2171 { (exit 1); exit 1; }; };;
2174 ac_save_IFS=$IFS; IFS='-'
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2184 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2188 for ac_prog in gmake make
2190 # Extract the first word of "$ac_prog", so it can be a program name with args.
2191 set dummy $ac_prog; ac_word=$2
2192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 $as_echo_n "checking for $ac_word... " >&6; }
2194 if test "${ac_cv_prog_MAKE+set}" = set; then
2195 $as_echo_n "(cached) " >&6
2197 if test -n "$MAKE"; then
2198 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 ac_cv_prog_MAKE="$ac_prog"
2208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 MAKE=$ac_cv_prog_MAKE
2218 if test -n "$MAKE"; then
2219 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2220 $as_echo "$MAKE" >&6; }
2222 { $as_echo "$as_me:$LINENO: result: no" >&5
2223 $as_echo "no" >&6; }
2227 test -n "$MAKE" && break
2229 test -n "$MAKE" || MAKE="no"
2233 r="`eval echo '$'"MAKE"`"
2234 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2237 ##STEPMAKE_WARN(cannot find . )
2241 if test $? -ne 0; then
2243 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2245 if test "REQUIRED" = "REQUIRED"; then
2246 command="echo ERROR: gmake make not found"
2247 # abort configure process here?
2249 command="- echo gmake make not found"
2251 eval "MAKE"='$command'
2257 if test $? -eq 0 -a -n ""; then
2259 r="`eval echo '$'"MAKE"`"
2260 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2261 $as_echo_n "checking $r version... " >&6; }
2263 ## which doesn't work in ash, if /usr/bin/which isn't installed
2264 ## type -p doesn't work in ash
2265 ## command -v doesn't work in zsh
2266 ## command -v "$r" 2>&1
2267 ## this test should work in ash, bash, pdksh (ksh), zsh
2268 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2274 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2277 ## Workaround for broken Debian gcc version string:
2278 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2280 ## -V: Workaround for python
2284 ## Assume and hunt for dotted version multiplet.
2285 ## use eval trickery, because we cannot use multi-level $() instead of ``
2286 ## for compatibility reasons.
2288 ## grab the first version number in --version output.
2289 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2290 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2293 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2294 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2297 if test -z "$_ver"; then
2298 ## If empty, try date [fontforge]
2299 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2301 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2308 echo "$ver" | awk -F. '
2310 if ($3) {three = $3}
2313 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2318 if ($3) {three = $3}
2321 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2323 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2324 $as_echo "$ver" >&6; }
2325 if test "$num" -lt "$req"; then
2327 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2330 vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2331 eval `echo $vervar=$num`
2332 ## AC_SUBST(`eval echo $vervar`)
2339 # Extract the first word of "$ac_prog", so it can be a program name with args.
2340 set dummy $ac_prog; ac_word=$2
2341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 $as_echo_n "checking for $ac_word... " >&6; }
2343 if test "${ac_cv_prog_FIND+set}" = set; then
2344 $as_echo_n "(cached) " >&6
2346 if test -n "$FIND"; then
2347 ac_cv_prog_FIND="$FIND" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_FIND="$ac_prog"
2357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 FIND=$ac_cv_prog_FIND
2367 if test -n "$FIND"; then
2368 { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2369 $as_echo "$FIND" >&6; }
2371 { $as_echo "$as_me:$LINENO: result: no" >&5
2372 $as_echo "no" >&6; }
2376 test -n "$FIND" && break
2378 test -n "$FIND" || FIND="no"
2382 r="`eval echo '$'"FIND"`"
2383 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2386 ##STEPMAKE_WARN(cannot find . )
2390 if test $? -ne 0; then
2392 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2394 if test "REQUIRED" = "REQUIRED"; then
2395 command="echo ERROR: find not found"
2396 # abort configure process here?
2398 command="- echo find not found"
2400 eval "FIND"='$command'
2406 if test $? -eq 0 -a -n ""; then
2408 r="`eval echo '$'"FIND"`"
2409 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2410 $as_echo_n "checking $r version... " >&6; }
2412 ## which doesn't work in ash, if /usr/bin/which isn't installed
2413 ## type -p doesn't work in ash
2414 ## command -v doesn't work in zsh
2415 ## command -v "$r" 2>&1
2416 ## this test should work in ash, bash, pdksh (ksh), zsh
2417 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2423 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2426 ## Workaround for broken Debian gcc version string:
2427 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2429 ## -V: Workaround for python
2433 ## Assume and hunt for dotted version multiplet.
2434 ## use eval trickery, because we cannot use multi-level $() instead of ``
2435 ## for compatibility reasons.
2437 ## grab the first version number in --version output.
2438 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2439 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2442 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2443 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2446 if test -z "$_ver"; then
2447 ## If empty, try date [fontforge]
2448 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2450 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2457 echo "$ver" | awk -F. '
2459 if ($3) {three = $3}
2462 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2467 if ($3) {three = $3}
2470 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2472 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2473 $as_echo "$ver" >&6; }
2474 if test "$num" -lt "$req"; then
2476 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2479 vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2480 eval `echo $vervar=$num`
2481 ## AC_SUBST(`eval echo $vervar`)
2489 # Extract the first word of "$ac_prog", so it can be a program name with args.
2490 set dummy $ac_prog; ac_word=$2
2491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 $as_echo_n "checking for $ac_word... " >&6; }
2493 if test "${ac_cv_prog_TAR+set}" = set; then
2494 $as_echo_n "(cached) " >&6
2496 if test -n "$TAR"; then
2497 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_TAR="$ac_prog"
2507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 if test -n "$TAR"; then
2518 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2519 $as_echo "$TAR" >&6; }
2521 { $as_echo "$as_me:$LINENO: result: no" >&5
2522 $as_echo "no" >&6; }
2526 test -n "$TAR" && break
2528 test -n "$TAR" || TAR="no"
2532 r="`eval echo '$'"TAR"`"
2533 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2536 ##STEPMAKE_WARN(cannot find . )
2540 if test $? -ne 0; then
2542 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2544 if test "REQUIRED" = "REQUIRED"; then
2545 command="echo ERROR: tar not found"
2546 # abort configure process here?
2548 command="- echo tar not found"
2550 eval "TAR"='$command'
2556 if test $? -eq 0 -a -n ""; then
2558 r="`eval echo '$'"TAR"`"
2559 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2560 $as_echo_n "checking $r version... " >&6; }
2562 ## which doesn't work in ash, if /usr/bin/which isn't installed
2563 ## type -p doesn't work in ash
2564 ## command -v doesn't work in zsh
2565 ## command -v "$r" 2>&1
2566 ## this test should work in ash, bash, pdksh (ksh), zsh
2567 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2573 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2576 ## Workaround for broken Debian gcc version string:
2577 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2579 ## -V: Workaround for python
2583 ## Assume and hunt for dotted version multiplet.
2584 ## use eval trickery, because we cannot use multi-level $() instead of ``
2585 ## for compatibility reasons.
2587 ## grab the first version number in --version output.
2588 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2589 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2592 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2593 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2596 if test -z "$_ver"; then
2597 ## If empty, try date [fontforge]
2598 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2600 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2607 echo "$ver" | awk -F. '
2609 if ($3) {three = $3}
2612 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2617 if ($3) {three = $3}
2620 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2622 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2623 $as_echo "$ver" >&6; }
2624 if test "$num" -lt "$req"; then
2626 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2629 vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2630 eval `echo $vervar=$num`
2631 ## AC_SUBST(`eval echo $vervar`)
2636 if test "$(echo 2)" != "2" ||
2637 test "x`uname`" = "xHP-UX"; then
2638 # Extract the first word of "ksh", so it can be a program name with args.
2639 set dummy ksh; ac_word=$2
2640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_path_KSH+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2647 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2670 if test -n "$KSH"; then
2671 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2672 $as_echo "$KSH" >&6; }
2674 { $as_echo "$as_me:$LINENO: result: no" >&5
2675 $as_echo "no" >&6; }
2679 # Extract the first word of "bash", so it can be a program name with args.
2680 set dummy bash; ac_word=$2
2681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 $as_echo_n "checking for $ac_word... " >&6; }
2683 if test "${ac_cv_path_BASH+set}" = set; then
2684 $as_echo_n "(cached) " >&6
2688 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2710 BASH=$ac_cv_path_BASH
2711 if test -n "$BASH"; then
2712 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2713 $as_echo "$BASH" >&6; }
2715 { $as_echo "$as_me:$LINENO: result: no" >&5
2716 $as_echo "no" >&6; }
2721 { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2722 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2725 # Extract the first word of "bash", so it can be a program name with args.
2726 set dummy bash; ac_word=$2
2727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if test "${ac_cv_path_SHELL+set}" = set; then
2730 $as_echo_n "(cached) " >&6
2734 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2745 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2756 SHELL=$ac_cv_path_SHELL
2757 if test -n "$SHELL"; then
2758 { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2759 $as_echo "$SHELL" >&6; }
2761 { $as_echo "$as_me:$LINENO: result: no" >&5
2762 $as_echo "no" >&6; }
2768 # Extract the first word of "bash", so it can be a program name with args.
2769 set dummy bash; ac_word=$2
2770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if test "${ac_cv_path_BASH+set}" = set; then
2773 $as_echo_n "(cached) " >&6
2777 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2788 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2799 BASH=$ac_cv_path_BASH
2800 if test -n "$BASH"; then
2801 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2802 $as_echo "$BASH" >&6; }
2804 { $as_echo "$as_me:$LINENO: result: no" >&5
2805 $as_echo "no" >&6; }
2814 { $as_echo "$as_me:$LINENO: checking for python" >&5
2815 $as_echo_n "checking for python... " >&6; }
2816 for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
2817 { $as_echo "$as_me:$LINENO: result: $python" >&5
2818 $as_echo "$python" >&6; }
2819 if ! $python -V > /dev/null 2>&1 ; then
2820 #AC_MSG_WARN([cannot execute $python])
2821 PYTHON='echo no python'
2825 r="`eval echo '$'"python"`"
2826 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2827 $as_echo_n "checking $r version... " >&6; }
2829 ## which doesn't work in ash, if /usr/bin/which isn't installed
2830 ## type -p doesn't work in ash
2831 ## command -v doesn't work in zsh
2832 ## command -v "$r" 2>&1
2833 ## this test should work in ash, bash, pdksh (ksh), zsh
2834 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2840 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2843 ## Workaround for broken Debian gcc version string:
2844 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2846 ## -V: Workaround for python
2850 ## Assume and hunt for dotted version multiplet.
2851 ## use eval trickery, because we cannot use multi-level $() instead of ``
2852 ## for compatibility reasons.
2854 ## grab the first version number in --version output.
2855 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2856 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2859 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2860 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2863 if test -z "$_ver"; then
2864 ## If empty, try date [fontforge]
2865 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2867 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2874 echo "$ver" | awk -F. '
2876 if ($3) {three = $3}
2879 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2882 echo "1.5" | awk -F. '
2884 if ($3) {three = $3}
2887 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2889 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2890 $as_echo "$ver" >&6; }
2891 if test "$num" -lt "$req"; then
2893 eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 1.5 (installed: $ver)"\"`\"
2896 vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
2897 eval `echo $vervar=$num`
2898 ## AC_SUBST(`eval echo $vervar`)
2900 if test -z "$pv"; then
2906 if test -n "$pv"; then
2908 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
2911 # clear cached value since arg 2 might point us to a new binary
2912 unset ac_cv_path_PYTHON
2914 # Extract the first word of "$PYTHON", so it can be a program name with args.
2915 set dummy $PYTHON; ac_word=$2
2916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_path_PYTHON+set}" = set; then
2919 $as_echo_n "(cached) " >&6
2923 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2934 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 PYTHON=$ac_cv_path_PYTHON
2945 if test -n "$PYTHON"; then
2946 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2947 $as_echo "$PYTHON" >&6; }
2949 { $as_echo "$as_me:$LINENO: result: no" >&5
2950 $as_echo "no" >&6; }
2957 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2958 $MAKE -v 2> /dev/null | grep GNU > /dev/null
2959 if test "$?" = 1; then
2960 warn='make (Please install *GNU* make)'
2961 # STEPMAKE_WARN($warn)
2963 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2980 cat >>confdefs.h <<_ACEOF
2981 #define DIRSEP '${DIRSEP}'
2984 cat >>confdefs.h <<_ACEOF
2985 #define PATHSEP '${PATHSEP}'
2993 if test "$datadir" = "\${prefix}/share"; then
2994 datadir='${prefix}/share'
2997 if test "$prefix" = "NONE"; then
2998 presome=${ac_default_prefix}
3001 build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3003 DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${prefix}/share!"`
3004 DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3005 BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3010 cat >>confdefs.h <<_ACEOF
3011 #define DATADIR "${DATADIR}"
3014 cat >>confdefs.h <<_ACEOF
3015 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3021 if test "$libdir" = "\${exec_prefix}/lib"; then
3022 libdir='${exec_prefix}/lib'
3024 presome=$exec_prefix
3025 build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3027 LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3028 BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3032 cat >>confdefs.h <<_ACEOF
3033 #define LIBDIR "${LIBDIR}"
3036 cat >>confdefs.h <<_ACEOF
3037 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3043 # List a file that identifies your package.
3046 # Move to aclocal.m4?
3047 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3050 # Uncomment the configuration options your package needs.
3053 # Check whether --enable-documentation was given.
3054 if test "${enable_documentation+set}" = set; then
3055 enableval=$enable_documentation; DOCUMENTATION=$enableval
3061 # Check whether --with-ncsb-dir was given.
3062 if test "${with_ncsb_dir+set}" = set; then
3063 withval=$with_ncsb_dir; NCSB_DIR=$withval
3070 # Check whether --enable-relocation was given.
3071 if test "${enable_relocation+set}" = set; then
3072 enableval=$enable_relocation; reloc_b=$enableval
3077 # Check whether --enable-rpath was given.
3078 if test "${enable_rpath+set}" = set; then
3079 enableval=$enable_rpath; rpath_b=$enableval
3083 LINK_GXX_STATICALLY=no
3084 # Check whether --enable-static-gxx was given.
3085 if test "${enable_static_gxx+set}" = set; then
3086 enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3091 # must come before any header checks
3093 # -O is necessary to get inlining
3095 CXXFLAGS=${CXXFLAGS-$CFLAGS}
3096 LDFLAGS=${LDFLAGS-""}
3102 # Check whether --enable-debugging was given.
3103 if test "${enable_debugging+set}" = set; then
3104 enableval=$enable_debugging; debug_b=$enableval
3108 # Check whether --enable-optimising was given.
3109 if test "${enable_optimising+set}" = set; then
3110 enableval=$enable_optimising; optimise_b=$enableval
3114 # Check whether --enable-profiling was given.
3115 if test "${enable_profiling+set}" = set; then
3116 enableval=$enable_profiling; profile_b=$enableval
3120 # Check whether --enable-pipe was given.
3121 if test "${enable_pipe+set}" = set; then
3122 enableval=$enable_pipe; pipe_b=$enableval
3126 if test "$optimise_b" = yes; then
3127 cat >>confdefs.h <<\_ACEOF
3131 DEFINES="$DEFINES -DNDEBUG"
3132 OPTIMIZE=" -O2 -finline-functions"
3135 if test $profile_b = yes; then
3137 OPTIMIZE="$OPTIMIZE -pg"
3140 if test $debug_b = yes; then
3141 OPTIMIZE="$OPTIMIZE -g"
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then
3155 $as_echo_n "(cached) " >&6
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 if test -n "$CC"; then
3179 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3182 { $as_echo "$as_me:$LINENO: result: no" >&5
3183 $as_echo "no" >&6; }
3188 if test -z "$ac_cv_prog_CC"; then
3190 # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3195 $as_echo_n "(cached) " >&6
3197 if test -n "$ac_ct_CC"; then
3198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_ac_ct_CC="gcc"
3208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3226 if test "x$ac_ct_CC" = x; then
3229 case $cross_compiling:$ac_tool_warned in
3231 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3241 if test -z "$CC"; then
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="${ac_tool_prefix}cc"
3261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3282 if test -z "$CC"; then
3283 # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288 $as_echo_n "(cached) " >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302 ac_prog_rejected=yes
3306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test $ac_prog_rejected = yes; then
3314 # We found a bogon in the path, so make sure we never use it.
3315 set dummy $ac_cv_prog_CC
3317 if test $# != 0; then
3318 # We chose a different compiler from the bogus one.
3319 # However, it has the same basename, so the bogon will be chosen
3320 # first if we set CC to just the basename; use the full file name.
3322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3332 { $as_echo "$as_me:$LINENO: result: no" >&5
3333 $as_echo "no" >&6; }
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 for ac_prog in cl.exe
3342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then
3347 $as_echo_n "(cached) " >&6
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 if test -n "$CC"; then
3371 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3374 { $as_echo "$as_me:$LINENO: result: no" >&5
3375 $as_echo "no" >&6; }
3379 test -n "$CC" && break
3382 if test -z "$CC"; then
3384 for ac_prog in cl.exe
3386 # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3391 $as_echo_n "(cached) " >&6
3393 if test -n "$ac_ct_CC"; then
3394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_ac_ct_CC="$ac_prog"
3404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3418 { $as_echo "$as_me:$LINENO: result: no" >&5
3419 $as_echo "no" >&6; }
3423 test -n "$ac_ct_CC" && break
3426 if test "x$ac_ct_CC" = x; then
3429 case $cross_compiling:$ac_tool_warned in
3431 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3442 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." >&5
3446 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details." >&2;}
3448 { (exit 1); exit 1; }; }; }
3450 # Provide some information about the compiler.
3451 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3454 { (ac_try="$ac_compiler --version >&5"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3460 $as_echo "$ac_try_echo") >&5
3461 (eval "$ac_compiler --version >&5") 2>&5
3463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); }
3465 { (ac_try="$ac_compiler -v >&5"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471 $as_echo "$ac_try_echo") >&5
3472 (eval "$ac_compiler -v >&5") 2>&5
3474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }
3476 { (ac_try="$ac_compiler -V >&5"
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482 $as_echo "$ac_try_echo") >&5
3483 (eval "$ac_compiler -V >&5") 2>&5
3485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3508 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516 for ac_file in $ac_files
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3525 if { (ac_try="$ac_link_default"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3531 $as_echo "$ac_try_echo") >&5
3532 (eval "$ac_link_default") 2>&5
3534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; then
3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3541 for ac_file in $ac_files ''
3543 test -f "$ac_file" || continue
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548 # We found the default executable, but exeext='' is most
3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556 # We set ac_cv_exeext here because the later test for it is not
3557 # safe: cross compilers may not add the suffix if given an `-o'
3558 # argument, so we may need to know it at that point already.
3559 # Even if this section looks crufty: it has the advantage of
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3572 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 if test -z "$ac_file"; then
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&5
3582 $as_echo "$as_me: error: C compiler cannot create executables
3583 See \`config.log' for more details." >&2;}
3584 { (exit 77); exit 77; }; }; }
3587 ac_exeext=$ac_cv_exeext
3589 # Check that the compiler produces executables we can run. If not, either
3590 # the compiler is broken, or we cross compile.
3591 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3592 $as_echo_n "checking whether the C compiler works... " >&6; }
3593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3594 # If not cross compiling, check that we can run a simple program.
3595 if test "$cross_compiling" != yes; then
3596 if { ac_try='./$ac_file'
3597 { (case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3602 $as_echo "$ac_try_echo") >&5
3603 (eval "$ac_try") 2>&5
3605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; }; then
3609 if test "$cross_compiling" = maybe; then
3612 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3615 If you meant to cross compile, use \`--host'.
3616 See \`config.log' for more details." >&5
3617 $as_echo "$as_me: error: cannot run C compiled programs.
3618 If you meant to cross compile, use \`--host'.
3619 See \`config.log' for more details." >&2;}
3620 { (exit 1); exit 1; }; }; }
3624 { $as_echo "$as_me:$LINENO: result: yes" >&5
3625 $as_echo "yes" >&6; }
3627 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3628 ac_clean_files=$ac_clean_files_save
3629 # Check that the compiler produces executables we can run. If not, either
3630 # the compiler is broken, or we cross compile.
3631 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3632 $as_echo_n "checking whether we are cross compiling... " >&6; }
3633 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3634 $as_echo "$cross_compiling" >&6; }
3636 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3637 $as_echo_n "checking for suffix of executables... " >&6; }
3638 if { (ac_try="$ac_link"
3640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641 *) ac_try_echo=$ac_try;;
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645 (eval "$ac_link") 2>&5
3647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; then
3649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3651 # work properly (i.e., refer to `conftest.exe'), while it won't with
3653 for ac_file in conftest.exe conftest conftest.*; do
3654 test -f "$ac_file" || continue
3656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details." >&5
3667 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3668 See \`config.log' for more details." >&2;}
3669 { (exit 1); exit 1; }; }; }
3672 rm -f conftest$ac_cv_exeext
3673 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3674 $as_echo "$ac_cv_exeext" >&6; }
3676 rm -f conftest.$ac_ext
3677 EXEEXT=$ac_cv_exeext
3679 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3680 $as_echo_n "checking for suffix of object files... " >&6; }
3681 if test "${ac_cv_objext+set}" = set; then
3682 $as_echo_n "(cached) " >&6
3684 cat >conftest.$ac_ext <<_ACEOF
3687 cat confdefs.h >>conftest.$ac_ext
3688 cat >>conftest.$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3699 rm -f conftest.o conftest.obj
3700 if { (ac_try="$ac_compile"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; then
3711 for ac_file in conftest.o conftest.obj conftest.*; do
3712 test -f "$ac_file" || continue;
3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3715 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3720 $as_echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&5
3727 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3728 See \`config.log' for more details." >&2;}
3729 { (exit 1); exit 1; }; }; }
3732 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3735 $as_echo "$ac_cv_objext" >&6; }
3736 OBJEXT=$ac_cv_objext
3738 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3739 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3741 $as_echo_n "(cached) " >&6
3743 cat >conftest.$ac_ext <<_ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768 $as_echo "$ac_try_echo") >&5
3769 (eval "$ac_compile") 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } && {
3776 test -z "$ac_c_werror_flag" ||
3777 test ! -s conftest.err
3778 } && test -s conftest.$ac_objext; then
3781 $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3792 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3793 if test $ac_compiler_gnu = yes; then
3798 ac_test_CFLAGS=${CFLAGS+set}
3799 ac_save_CFLAGS=$CFLAGS
3800 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3801 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3802 if test "${ac_cv_prog_cc_g+set}" = set; then
3803 $as_echo_n "(cached) " >&6
3805 ac_save_c_werror_flag=$ac_c_werror_flag
3806 ac_c_werror_flag=yes
3809 cat >conftest.$ac_ext <<_ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831 $as_echo "$ac_try_echo") >&5
3832 (eval "$ac_compile") 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } && {
3839 test -z "$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3841 } && test -s conftest.$ac_objext; then
3844 $as_echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3863 rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3870 $as_echo "$ac_try_echo") >&5
3871 (eval "$ac_compile") 2>conftest.er1
3873 grep -v '^ *+' conftest.er1 >conftest.err
3875 cat conftest.err >&5
3876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } && {
3878 test -z "$ac_c_werror_flag" ||
3879 test ! -s conftest.err
3880 } && test -s conftest.$ac_objext; then
3883 $as_echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ac_c_werror_flag=$ac_save_c_werror_flag
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3903 rm -f conftest.$ac_objext
3904 if { (ac_try="$ac_compile"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3910 $as_echo "$ac_try_echo") >&5
3911 (eval "$ac_compile") 2>conftest.er1
3913 grep -v '^ *+' conftest.er1 >conftest.err
3915 cat conftest.err >&5
3916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } && {
3918 test -z "$ac_c_werror_flag" ||
3919 test ! -s conftest.err
3920 } && test -s conftest.$ac_objext; then
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 ac_c_werror_flag=$ac_save_c_werror_flag
3938 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3939 $as_echo "$ac_cv_prog_cc_g" >&6; }
3940 if test "$ac_test_CFLAGS" = set; then
3941 CFLAGS=$ac_save_CFLAGS
3942 elif test $ac_cv_prog_cc_g = yes; then
3943 if test "$GCC" = yes; then
3949 if test "$GCC" = yes; then
3955 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3956 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3957 if test "${ac_cv_prog_cc_c89+set}" = set; then
3958 $as_echo_n "(cached) " >&6
3960 ac_cv_prog_cc_c89=no
3962 cat >conftest.$ac_ext <<_ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3970 #include <sys/types.h>
3971 #include <sys/stat.h>
3972 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3973 struct buf { int x; };
3974 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3975 static char *e (p, i)
3981 static char *f (char * (*g) (char **, int), char **p, ...)
3986 s = g (p, va_arg (v,int));
3991 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3992 function prototypes and stuff, but not '\xHH' hex character constants.
3993 These don't provoke an error unfortunately, instead are silently treated
3994 as 'x'. The following induces an error, until -std is added to get
3995 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3996 array size at least. It's necessary to write '\x00'==0 to get something
3997 that's true only with -std. */
3998 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4000 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4001 inside strings and character constants. */
4003 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4005 int test (int i, double x);
4006 struct s1 {int (*f) (int a);};
4007 struct s2 {int (*f) (double a);};
4008 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4014 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4019 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4020 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4022 CC="$ac_save_CC $ac_arg"
4023 rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027 *) ac_try_echo=$ac_try;;
4029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4030 $as_echo "$ac_try_echo") >&5
4031 (eval "$ac_compile") 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } && {
4038 test -z "$ac_c_werror_flag" ||
4039 test ! -s conftest.err
4040 } && test -s conftest.$ac_objext; then
4041 ac_cv_prog_cc_c89=$ac_arg
4043 $as_echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4049 rm -f core conftest.err conftest.$ac_objext
4050 test "x$ac_cv_prog_cc_c89" != "xno" && break
4052 rm -f conftest.$ac_ext
4057 case "x$ac_cv_prog_cc_c89" in
4059 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4060 $as_echo "none needed" >&6; } ;;
4062 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4063 $as_echo "unsupported" >&6; } ;;
4065 CC="$CC $ac_cv_prog_cc_c89"
4066 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4067 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084 r="`eval echo '$'"CC"`"
4085 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4088 ##STEPMAKE_WARN(cannot find . )
4092 if test $? -ne 0; then
4094 eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4096 if test "" = "REQUIRED"; then
4097 command="echo ERROR: cc not found"
4098 # abort configure process here?
4100 command="- echo cc not found"
4102 eval "CC"='$command'
4111 # If -pipe requested, test if it works and add to CFLAGS.
4112 if test "$pipe_b" = yes; then
4113 save_cflags="$CFLAGS"
4114 CFLAGS=" -pipe $CFLAGS";
4115 { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4116 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4117 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4118 $as_echo_n "(cached) " >&6
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4136 rm -f conftest.$ac_objext
4137 if { (ac_try="$ac_compile"
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4143 $as_echo "$ac_try_echo") >&5
4144 (eval "$ac_compile") 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && {
4151 test -z "$ac_c_werror_flag" ||
4152 test ! -s conftest.err
4153 } && test -s conftest.$ac_objext; then
4154 stepmake_cv_cflags_pipe=yes
4156 $as_echo "$as_me: failed program was:" >&5
4157 sed 's/^/| /' conftest.$ac_ext >&5
4159 stepmake_cv_cflags_pipe=no
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4165 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4167 if test $stepmake_cv_cflags_pipe = yes; then
4168 OPTIMIZE="$OPTIMIZE -pipe"
4172 CFLAGS="$CFLAGS $OPTIMIZE"
4173 CPPFLAGS=${CPPFLAGS-""}
4175 { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4176 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4177 save_cflags="$CFLAGS"
4180 { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4181 $as_echo "-mieee" >&6; }
4182 CFLAGS=" -mieee $CFLAGS"
4185 { $as_echo "$as_me:$LINENO: result: none" >&5
4186 $as_echo "none" >&6; }
4198 # Extract the first word of "fc-list", so it can be a program name with args.
4199 set dummy fc-list; ac_word=$2
4200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_FCLIST+set}" = set; then
4203 $as_echo_n "(cached) " >&6
4205 if test -n "$FCLIST"; then
4206 ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_FCLIST="fc-list"
4216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 FCLIST=$ac_cv_prog_FCLIST
4226 if test -n "$FCLIST"; then
4227 { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4228 $as_echo "$FCLIST" >&6; }
4230 { $as_echo "$as_me:$LINENO: result: no" >&5
4231 $as_echo "no" >&6; }
4235 { $as_echo "$as_me:$LINENO: checking New Century Schoolbook PFB files" >&5
4236 $as_echo_n "checking New Century Schoolbook PFB files... " >&6; }
4239 UNCHECKED_NCSB_SOURCE_FILES=""
4240 if test "$NCSB_DIR" != "" ; then
4241 for f in c059013l c059016l c059033l c059036l; do
4242 if test ! -f "$NCSB_DIR/$f.pfb"; then
4244 { $as_echo "$as_me:$LINENO: WARNING: $NCSB_DIR does not contain $f.pfb." >&5
4245 $as_echo "$as_me: WARNING: $NCSB_DIR does not contain $f.pfb." >&2;}
4249 UNCHECKED_NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $UNCHECKED_NCSB_SOURCE_FILES"
4253 if test "$FCLIST" != ""; then
4254 for style in Roman Italic "Bold Italic" Bold; do
4255 NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file \
4257 NCSB_FILE=`echo $NCSB_FILE | sed 's/\(:.*\)$//g'`
4258 NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
4259 UNCHECKED_NCSB_SOURCE_FILES="$NCSB_FILE $UNCHECKED_NCSB_SOURCE_FILES"
4261 NCSB_DIR=`$as_dirname -- $NCSB_FILE ||
4262 $as_expr X$NCSB_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4263 X$NCSB_FILE : 'X\(//\)[^/]' \| \
4264 X$NCSB_FILE : 'X\(//\)$' \| \
4265 X$NCSB_FILE : 'X\(/\)' \| . 2>/dev/null ||
4266 $as_echo X$NCSB_FILE |
4267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4285 { $as_echo "$as_me:$LINENO: result: not found" >&5
4286 $as_echo "not found" >&6; }
4287 echo "Can't find Century Schoolbook files. Install FontConfig's fc-list,"
4288 echo "or use --with-ncsb-dir"
4291 NCSB_SOURCE_FILES=""
4292 for f in $UNCHECKED_NCSB_SOURCE_FILES; do
4293 if test "`grep Cyrillic "$f"`" = ""; then
4295 { $as_echo "$as_me:$LINENO: WARNING: $f does not have Cyrillic characters." >&5
4296 $as_echo "$as_me: WARNING: $f does not have Cyrillic characters." >&2;}
4300 NCSB_SOURCE_FILES="$f $NCSB_SOURCE_FILES"
4303 { $as_echo "$as_me:$LINENO: result: $NCSB_SOURCE_FILES" >&5
4304 $as_echo "$NCSB_SOURCE_FILES" >&6; }
4307 ac_cpp='$CXXCPP $CPPFLAGS'
4308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4315 { $as_echo "$as_me:$LINENO: checking for python" >&5
4316 $as_echo_n "checking for python... " >&6; }
4317 for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
4318 { $as_echo "$as_me:$LINENO: result: $python" >&5
4319 $as_echo "$python" >&6; }
4320 if ! $python -V > /dev/null 2>&1 ; then
4321 #AC_MSG_WARN([cannot execute $python])
4322 PYTHON='echo no python'
4326 r="`eval echo '$'"python"`"
4327 { $as_echo "$as_me:$LINENO: checking $r version" >&5
4328 $as_echo_n "checking $r version... " >&6; }
4330 ## which doesn't work in ash, if /usr/bin/which isn't installed
4331 ## type -p doesn't work in ash
4332 ## command -v doesn't work in zsh
4333 ## command -v "$r" 2>&1
4334 ## this test should work in ash, bash, pdksh (ksh), zsh
4335 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4341 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4344 ## Workaround for broken Debian gcc version string:
4345 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4347 ## -V: Workaround for python
4351 ## Assume and hunt for dotted version multiplet.
4352 ## use eval trickery, because we cannot use multi-level $() instead of ``
4353 ## for compatibility reasons.
4355 ## grab the first version number in --version output.
4356 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4357 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4360 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4361 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4364 if test -z "$_ver"; then
4365 ## If empty, try date [fontforge]
4366 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4368 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4375 echo "$ver" | awk -F. '
4377 if ($3) {three = $3}
4380 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4383 echo "2.4" | awk -F. '
4385 if ($3) {three = $3}
4388 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4390 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4391 $as_echo "$ver" >&6; }
4392 if test "$num" -lt "$req"; then
4394 eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 2.4 (installed: $ver)"\"`\"
4397 vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
4398 eval `echo $vervar=$num`
4399 ## AC_SUBST(`eval echo $vervar`)
4401 if test -z "$pv"; then
4407 if test -n "$pv"; then
4409 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
4412 # clear cached value since arg 2 might point us to a new binary
4413 unset ac_cv_path_PYTHON
4415 # Extract the first word of "$PYTHON", so it can be a program name with args.
4416 set dummy $PYTHON; ac_word=$2
4417 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if test "${ac_cv_path_PYTHON+set}" = set; then
4420 $as_echo_n "(cached) " >&6
4424 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4435 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 PYTHON=$ac_cv_path_PYTHON
4446 if test -n "$PYTHON"; then
4447 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4448 $as_echo "$PYTHON" >&6; }
4450 { $as_echo "$as_me:$LINENO: result: no" >&5
4451 $as_echo "no" >&6; }
4457 # this checks if we have GNU C by compiling a program with
4458 # __GNUC__, but that macro now unofficially means "the compiler
4459 # supports the GNU C extensions" -- the intel C compiler and clang
4460 # both support __GNUC__!
4462 ac_cpp='$CXXCPP $CPPFLAGS'
4463 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4466 if test -z "$CXX"; then
4467 if test -n "$CCC"; then
4470 if test -n "$ac_tool_prefix"; then
4471 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4476 $as_echo_n "checking for $ac_word... " >&6; }
4477 if test "${ac_cv_prog_CXX+set}" = set; then
4478 $as_echo_n "(cached) " >&6
4480 if test -n "$CXX"; then
4481 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4490 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 if test -n "$CXX"; then
4502 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4503 $as_echo "$CXX" >&6; }
4505 { $as_echo "$as_me:$LINENO: result: no" >&5
4506 $as_echo "no" >&6; }
4510 test -n "$CXX" && break
4513 if test -z "$CXX"; then
4515 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4517 # Extract the first word of "$ac_prog", so it can be a program name with args.
4518 set dummy $ac_prog; ac_word=$2
4519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4522 $as_echo_n "(cached) " >&6
4524 if test -n "$ac_ct_CXX"; then
4525 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 ac_cv_prog_ac_ct_CXX="$ac_prog"
4535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4545 if test -n "$ac_ct_CXX"; then
4546 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4547 $as_echo "$ac_ct_CXX" >&6; }
4549 { $as_echo "$as_me:$LINENO: result: no" >&5
4550 $as_echo "no" >&6; }
4554 test -n "$ac_ct_CXX" && break
4557 if test "x$ac_ct_CXX" = x; then
4560 case $cross_compiling:$ac_tool_warned in
4562 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4564 ac_tool_warned=yes ;;
4572 # Provide some information about the compiler.
4573 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4576 { (ac_try="$ac_compiler --version >&5"
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4582 $as_echo "$ac_try_echo") >&5
4583 (eval "$ac_compiler --version >&5") 2>&5
4585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }
4587 { (ac_try="$ac_compiler -v >&5"
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4593 $as_echo "$ac_try_echo") >&5
4594 (eval "$ac_compiler -v >&5") 2>&5
4596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }
4598 { (ac_try="$ac_compiler -V >&5"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4604 $as_echo "$ac_try_echo") >&5
4605 (eval "$ac_compiler -V >&5") 2>&5
4607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }
4610 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4611 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4612 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4613 $as_echo_n "(cached) " >&6
4615 cat >conftest.$ac_ext <<_ACEOF
4618 cat confdefs.h >>conftest.$ac_ext
4619 cat >>conftest.$ac_ext <<_ACEOF
4620 /* end confdefs.h. */
4633 rm -f conftest.$ac_objext
4634 if { (ac_try="$ac_compile"
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4640 $as_echo "$ac_try_echo") >&5
4641 (eval "$ac_compile") 2>conftest.er1
4643 grep -v '^ *+' conftest.er1 >conftest.err
4645 cat conftest.err >&5
4646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && {
4648 test -z "$ac_cxx_werror_flag" ||
4649 test ! -s conftest.err
4650 } && test -s conftest.$ac_objext; then
4653 $as_echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.$ac_ext >&5
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4663 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4664 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665 if test $ac_compiler_gnu = yes; then
4670 ac_test_CXXFLAGS=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS=$CXXFLAGS
4672 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4673 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674 if test "${ac_cv_prog_cxx_g+set}" = set; then
4675 $as_echo_n "(cached) " >&6
4677 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4678 ac_cxx_werror_flag=yes
4681 cat >conftest.$ac_ext <<_ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4696 rm -f conftest.$ac_objext
4697 if { (ac_try="$ac_compile"
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4703 $as_echo "$ac_try_echo") >&5
4704 (eval "$ac_compile") 2>conftest.er1
4706 grep -v '^ *+' conftest.er1 >conftest.err
4708 cat conftest.err >&5
4709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } && {
4711 test -z "$ac_cxx_werror_flag" ||
4712 test ! -s conftest.err
4713 } && test -s conftest.$ac_objext; then
4714 ac_cv_prog_cxx_g=yes
4716 $as_echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4742 $as_echo "$ac_try_echo") >&5
4743 (eval "$ac_compile") 2>conftest.er1
4745 grep -v '^ *+' conftest.er1 >conftest.err
4747 cat conftest.err >&5
4748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_cxx_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest.$ac_objext; then
4755 $as_echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4758 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4760 cat >conftest.$ac_ext <<_ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4775 rm -f conftest.$ac_objext
4776 if { (ac_try="$ac_compile"
4778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4779 *) ac_try_echo=$ac_try;;
4781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4782 $as_echo "$ac_try_echo") >&5
4783 (eval "$ac_compile") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1 >conftest.err
4787 cat conftest.err >&5
4788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } && {
4790 test -z "$ac_cxx_werror_flag" ||
4791 test ! -s conftest.err
4792 } && test -s conftest.$ac_objext; then
4793 ac_cv_prog_cxx_g=yes
4795 $as_echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4810 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4811 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4812 if test "$ac_test_CXXFLAGS" = set; then
4813 CXXFLAGS=$ac_save_CXXFLAGS
4814 elif test $ac_cv_prog_cxx_g = yes; then
4815 if test "$GXX" = yes; then
4821 if test "$GXX" = yes; then
4828 ac_cpp='$CXXCPP $CPPFLAGS'
4829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4835 ac_cpp='$CXXCPP $CPPFLAGS'
4836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4839 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4840 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4841 if test -z "$CXXCPP"; then
4842 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4843 $as_echo_n "(cached) " >&6
4845 # Double quotes because CXXCPP needs to be expanded
4846 for CXXCPP in "$CXX -E" "/lib/cpp"
4849 for ac_cxx_preproc_warn_flag in '' yes
4851 # Use a header file that comes with gcc, so configuring glibc
4852 # with a fresh cross-compiler works.
4853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4854 # <limits.h> exists even on freestanding compilers.
4855 # On the NeXT, cc -E runs the code through the compiler's parser,
4856 # not just through cpp. "Syntax error" is here to catch this case.
4857 cat >conftest.$ac_ext <<_ACEOF
4860 cat confdefs.h >>conftest.$ac_ext
4861 cat >>conftest.$ac_ext <<_ACEOF
4862 /* end confdefs.h. */
4864 # include <limits.h>
4866 # include <assert.h>
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4873 *) ac_try_echo=$ac_try;;
4875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4876 $as_echo "$ac_try_echo") >&5
4877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4879 grep -v '^ *+' conftest.er1 >conftest.err
4881 cat conftest.err >&5
4882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev/null && {
4884 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4885 test ! -s conftest.err
4889 $as_echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 # Broken: fails on valid input.
4896 rm -f conftest.err conftest.$ac_ext
4898 # OK, works on sane cases. Now check whether nonexistent headers
4899 # can be detected and how.
4900 cat >conftest.$ac_ext <<_ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 #include <ac_nonexistent.h>
4908 if { (ac_try="$ac_cpp conftest.$ac_ext"
4910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4911 *) ac_try_echo=$ac_try;;
4913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4914 $as_echo "$ac_try_echo") >&5
4915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4917 grep -v '^ *+' conftest.er1 >conftest.err
4919 cat conftest.err >&5
4920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); } >/dev/null && {
4922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4923 test ! -s conftest.err
4925 # Broken: success on invalid input.
4928 $as_echo "$as_me: failed program was:" >&5
4929 sed 's/^/| /' conftest.$ac_ext >&5
4931 # Passes both tests.
4936 rm -f conftest.err conftest.$ac_ext
4939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4940 rm -f conftest.err conftest.$ac_ext
4941 if $ac_preproc_ok; then
4946 ac_cv_prog_CXXCPP=$CXXCPP
4949 CXXCPP=$ac_cv_prog_CXXCPP
4951 ac_cv_prog_CXXCPP=$CXXCPP
4953 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
4954 $as_echo "$CXXCPP" >&6; }
4956 for ac_cxx_preproc_warn_flag in '' yes
4958 # Use a header file that comes with gcc, so configuring glibc
4959 # with a fresh cross-compiler works.
4960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4961 # <limits.h> exists even on freestanding compilers.
4962 # On the NeXT, cc -E runs the code through the compiler's parser,
4963 # not just through cpp. "Syntax error" is here to catch this case.
4964 cat >conftest.$ac_ext <<_ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4971 # include <limits.h>
4973 # include <assert.h>
4977 if { (ac_try="$ac_cpp conftest.$ac_ext"
4979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980 *) ac_try_echo=$ac_try;;
4982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4983 $as_echo "$ac_try_echo") >&5
4984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4986 grep -v '^ *+' conftest.er1 >conftest.err
4988 cat conftest.err >&5
4989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } >/dev/null && {
4991 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4992 test ! -s conftest.err
4996 $as_echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 # Broken: fails on valid input.
5003 rm -f conftest.err conftest.$ac_ext
5005 # OK, works on sane cases. Now check whether nonexistent headers
5006 # can be detected and how.
5007 cat >conftest.$ac_ext <<_ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 #include <ac_nonexistent.h>
5015 if { (ac_try="$ac_cpp conftest.$ac_ext"
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021 $as_echo "$ac_try_echo") >&5
5022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } >/dev/null && {
5029 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5030 test ! -s conftest.err
5032 # Broken: success on invalid input.
5035 $as_echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5038 # Passes both tests.
5043 rm -f conftest.err conftest.$ac_ext
5046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5047 rm -f conftest.err conftest.$ac_ext
5048 if $ac_preproc_ok; then
5051 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5054 See \`config.log' for more details." >&5
5055 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5056 See \`config.log' for more details." >&2;}
5057 { (exit 1); exit 1; }; }; }
5061 ac_cpp='$CXXCPP $CPPFLAGS'
5062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5067 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5068 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5069 if test "${ac_cv_path_GREP+set}" = set; then
5070 $as_echo_n "(cached) " >&6
5072 if test -z "$GREP"; then
5073 ac_path_GREP_found=false
5074 # Loop through the user's path and test for each of PROGNAME-LIST
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5079 test -z "$as_dir" && as_dir=.
5080 for ac_prog in grep ggrep; do
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5083 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5084 # Check for GNU ac_path_GREP and select it if it is found.
5085 # Check for GNU $ac_path_GREP
5086 case `"$ac_path_GREP" --version 2>&1` in
5088 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5091 $as_echo_n 0123456789 >"conftest.in"
5094 cat "conftest.in" "conftest.in" >"conftest.tmp"
5095 mv "conftest.tmp" "conftest.in"
5096 cp "conftest.in" "conftest.nl"
5097 $as_echo 'GREP' >> "conftest.nl"
5098 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5100 ac_count=`expr $ac_count + 1`
5101 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5102 # Best one so far, save it but keep looking for a better one
5103 ac_cv_path_GREP="$ac_path_GREP"
5104 ac_path_GREP_max=$ac_count
5106 # 10*(2^10) chars as input seems more than enough
5107 test $ac_count -gt 10 && break
5109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5112 $ac_path_GREP_found && break 3
5117 if test -z "$ac_cv_path_GREP"; then
5118 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5119 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5120 { (exit 1); exit 1; }; }
5123 ac_cv_path_GREP=$GREP
5127 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5128 $as_echo "$ac_cv_path_GREP" >&6; }
5129 GREP="$ac_cv_path_GREP"
5132 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5133 $as_echo_n "checking for egrep... " >&6; }
5134 if test "${ac_cv_path_EGREP+set}" = set; then
5135 $as_echo_n "(cached) " >&6
5137 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5138 then ac_cv_path_EGREP="$GREP -E"
5140 if test -z "$EGREP"; then
5141 ac_path_EGREP_found=false
5142 # Loop through the user's path and test for each of PROGNAME-LIST
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5147 test -z "$as_dir" && as_dir=.
5148 for ac_prog in egrep; do
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5151 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5152 # Check for GNU ac_path_EGREP and select it if it is found.
5153 # Check for GNU $ac_path_EGREP
5154 case `"$ac_path_EGREP" --version 2>&1` in
5156 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5159 $as_echo_n 0123456789 >"conftest.in"
5162 cat "conftest.in" "conftest.in" >"conftest.tmp"
5163 mv "conftest.tmp" "conftest.in"
5164 cp "conftest.in" "conftest.nl"
5165 $as_echo 'EGREP' >> "conftest.nl"
5166 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5168 ac_count=`expr $ac_count + 1`
5169 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5170 # Best one so far, save it but keep looking for a better one
5171 ac_cv_path_EGREP="$ac_path_EGREP"
5172 ac_path_EGREP_max=$ac_count
5174 # 10*(2^10) chars as input seems more than enough
5175 test $ac_count -gt 10 && break
5177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5180 $ac_path_EGREP_found && break 3
5185 if test -z "$ac_cv_path_EGREP"; then
5186 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5187 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5188 { (exit 1); exit 1; }; }
5191 ac_cv_path_EGREP=$EGREP
5196 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5197 $as_echo "$ac_cv_path_EGREP" >&6; }
5198 EGREP="$ac_cv_path_EGREP"
5203 cat >conftest.$ac_ext <<_ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5215 $EGREP "yes" >/dev/null 2>&1; then
5223 if test "$HAS_CLANG" = "no"; then
5224 if test "$GCC" = "yes"; then
5226 r="`eval echo '$'"CC"`"
5227 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5228 $as_echo_n "checking $r version... " >&6; }
5230 ## which doesn't work in ash, if /usr/bin/which isn't installed
5231 ## type -p doesn't work in ash
5232 ## command -v doesn't work in zsh
5233 ## command -v "$r" 2>&1
5234 ## this test should work in ash, bash, pdksh (ksh), zsh
5235 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5241 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5244 ## Workaround for broken Debian gcc version string:
5245 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5247 ## -V: Workaround for python
5251 ## Assume and hunt for dotted version multiplet.
5252 ## use eval trickery, because we cannot use multi-level $() instead of ``
5253 ## for compatibility reasons.
5255 ## grab the first version number in --version output.
5256 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5257 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5260 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5261 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5264 if test -z "$_ver"; then
5265 ## If empty, try date [fontforge]
5266 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5268 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5275 echo "$ver" | awk -F. '
5277 if ($3) {three = $3}
5280 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5283 echo "3.4" | awk -F. '
5285 if ($3) {three = $3}
5288 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5290 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5291 $as_echo "$ver" >&6; }
5292 if test "$num" -lt "$req"; then
5294 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5297 vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5298 eval `echo $vervar=$num`
5299 ## AC_SUBST(`eval echo $vervar`)
5302 warn="$CC (Please install *GNU* cc)"
5304 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5308 # no else, we're fine with any clang
5313 ac_cpp='$CXXCPP $CPPFLAGS'
5314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5317 if test -z "$CXX"; then
5318 if test -n "$CCC"; then
5321 if test -n "$ac_tool_prefix"; then
5322 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_prog_CXX+set}" = set; then
5329 $as_echo_n "(cached) " >&6
5331 if test -n "$CXX"; then
5332 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 if test -n "$CXX"; then
5353 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5354 $as_echo "$CXX" >&6; }
5356 { $as_echo "$as_me:$LINENO: result: no" >&5
5357 $as_echo "no" >&6; }
5361 test -n "$CXX" && break
5364 if test -z "$CXX"; then
5366 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5368 # Extract the first word of "$ac_prog", so it can be a program name with args.
5369 set dummy $ac_prog; ac_word=$2
5370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5373 $as_echo_n "(cached) " >&6
5375 if test -n "$ac_ct_CXX"; then
5376 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_prog_ac_ct_CXX="$ac_prog"
5386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5396 if test -n "$ac_ct_CXX"; then
5397 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5398 $as_echo "$ac_ct_CXX" >&6; }
5400 { $as_echo "$as_me:$LINENO: result: no" >&5
5401 $as_echo "no" >&6; }
5405 test -n "$ac_ct_CXX" && break
5408 if test "x$ac_ct_CXX" = x; then
5411 case $cross_compiling:$ac_tool_warned in
5413 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5423 # Provide some information about the compiler.
5424 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5427 { (ac_try="$ac_compiler --version >&5"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5433 $as_echo "$ac_try_echo") >&5
5434 (eval "$ac_compiler --version >&5") 2>&5
5436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }
5438 { (ac_try="$ac_compiler -v >&5"
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5444 $as_echo "$ac_try_echo") >&5
5445 (eval "$ac_compiler -v >&5") 2>&5
5447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }
5449 { (ac_try="$ac_compiler -V >&5"
5451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452 *) ac_try_echo=$ac_try;;
5454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5455 $as_echo "$ac_try_echo") >&5
5456 (eval "$ac_compiler -V >&5") 2>&5
5458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }
5461 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5462 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5463 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5464 $as_echo_n "(cached) " >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5491 $as_echo "$ac_try_echo") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_cxx_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5504 $as_echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5514 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5515 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5516 if test $ac_compiler_gnu = yes; then
5521 ac_test_CXXFLAGS=${CXXFLAGS+set}
5522 ac_save_CXXFLAGS=$CXXFLAGS
5523 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5524 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5525 if test "${ac_cv_prog_cxx_g+set}" = set; then
5526 $as_echo_n "(cached) " >&6
5528 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5529 ac_cxx_werror_flag=yes
5532 cat >conftest.$ac_ext <<_ACEOF
5535 cat confdefs.h >>conftest.$ac_ext
5536 cat >>conftest.$ac_ext <<_ACEOF
5537 /* end confdefs.h. */
5547 rm -f conftest.$ac_objext
5548 if { (ac_try="$ac_compile"
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5554 $as_echo "$ac_try_echo") >&5
5555 (eval "$ac_compile") 2>conftest.er1
5557 grep -v '^ *+' conftest.er1 >conftest.err
5559 cat conftest.err >&5
5560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } && {
5562 test -z "$ac_cxx_werror_flag" ||
5563 test ! -s conftest.err
5564 } && test -s conftest.$ac_objext; then
5565 ac_cv_prog_cxx_g=yes
5567 $as_echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5593 $as_echo "$ac_try_echo") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_cxx_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5606 $as_echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5611 cat >conftest.$ac_ext <<_ACEOF
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5626 rm -f conftest.$ac_objext
5627 if { (ac_try="$ac_compile"
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5633 $as_echo "$ac_try_echo") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5636 grep -v '^ *+' conftest.er1 >conftest.err
5638 cat conftest.err >&5
5639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_cxx_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest.$ac_objext; then
5644 ac_cv_prog_cxx_g=yes
5646 $as_echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5661 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5662 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5663 if test "$ac_test_CXXFLAGS" = set; then
5664 CXXFLAGS=$ac_save_CXXFLAGS
5665 elif test $ac_cv_prog_cxx_g = yes; then
5666 if test "$GXX" = yes; then
5672 if test "$GXX" = yes; then
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5686 r="`eval echo '$'"CXX"`"
5687 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5690 ##STEPMAKE_WARN(cannot find . )
5694 if test $? -ne 0; then
5696 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5698 if test "REQUIRED" = "REQUIRED"; then
5699 command="echo ERROR: c++ not found"
5700 # abort configure process here?
5702 command="- echo c++ not found"
5704 eval "CXX"='$command'
5711 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5720 cat >conftest.$ac_ext <<_ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5732 $EGREP "yes" >/dev/null 2>&1; then
5740 if test "$HAS_CLANG" = "no"; then
5741 if test "$GXX" = "yes"; then
5743 r="`eval echo '$'"CXX"`"
5744 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5745 $as_echo_n "checking $r version... " >&6; }
5747 ## which doesn't work in ash, if /usr/bin/which isn't installed
5748 ## type -p doesn't work in ash
5749 ## command -v doesn't work in zsh
5750 ## command -v "$r" 2>&1
5751 ## this test should work in ash, bash, pdksh (ksh), zsh
5752 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5758 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5761 ## Workaround for broken Debian gcc version string:
5762 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5764 ## -V: Workaround for python
5768 ## Assume and hunt for dotted version multiplet.
5769 ## use eval trickery, because we cannot use multi-level $() instead of ``
5770 ## for compatibility reasons.
5772 ## grab the first version number in --version output.
5773 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5774 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5777 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5778 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5781 if test -z "$_ver"; then
5782 ## If empty, try date [fontforge]
5783 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5785 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5792 echo "$ver" | awk -F. '
5794 if ($3) {three = $3}
5797 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5800 echo "3.4" | awk -F. '
5802 if ($3) {three = $3}
5805 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5807 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5808 $as_echo "$ver" >&6; }
5809 if test "$num" -lt "$req"; then
5811 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5814 vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5815 eval `echo $vervar=$num`
5816 ## AC_SUBST(`eval echo $vervar`)
5819 warn="$CXX (Please install *GNU* c++)"
5821 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5825 # no else, we're fine with any clang
5828 { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5829 $as_echo_n "checking options for known g++ bugs... " >&6; }
5830 case "$GXX:$CXX_VERSION" in
5832 { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5833 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5834 CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5837 { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5838 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5839 CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5841 *) { $as_echo "$as_me:$LINENO: result: none" >&5
5842 $as_echo "none" >&6; }
5847 { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5848 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5849 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5850 $as_echo_n "(cached) " >&6
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5859 template <class T> struct foo { static int baz; };
5860 template <class T> int foo<T>::baz = 1;
5865 return foo<int>::baz;
5870 rm -f conftest.$ac_objext conftest$ac_exeext
5871 if { (ac_try="$ac_link"
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5877 $as_echo "$ac_try_echo") >&5
5878 (eval "$ac_link") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } && {
5885 test -z "$ac_cxx_werror_flag" ||
5886 test ! -s conftest.err
5887 } && test -s conftest$ac_exeext && {
5888 test "$cross_compiling" = yes ||
5889 $as_test_x conftest$ac_exeext
5891 stepmake_cv_need_explicit_instantiation=no
5893 $as_echo "$as_me: failed program was:" >&5
5894 sed 's/^/| /' conftest.$ac_ext >&5
5896 stepmake_cv_need_explicit_instantiation=yes
5899 rm -rf conftest.dSYM
5900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5901 conftest$ac_exeext conftest.$ac_ext
5903 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5904 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5905 if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5906 cat >>confdefs.h <<\_ACEOF
5907 #define NEED_EXPLICIT_INSTANTIATION 1
5913 { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5914 $as_echo_n "checking for stl.data () method... " >&6; }
5915 if test "${stepmake_cv_stl_data_method+set}" = set; then
5916 $as_echo_n "(cached) " >&6
5918 cat >conftest.$ac_ext <<_ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h. */
5926 using namespace std;
5928 void *p = v.data ();
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5948 grep -v '^ *+' conftest.er1 >conftest.err
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_cxx_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 stepmake_cv_stl_data_method=yes
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 stepmake_cv_stl_data_method=no
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5967 $as_echo "$stepmake_cv_stl_data_method" >&6; }
5968 if test $stepmake_cv_stl_data_method = yes; then
5970 cat >>confdefs.h <<\_ACEOF
5971 #define HAVE_STL_DATA_METHOD 1
5980 # Extract the first word of "$ac_prog", so it can be a program name with args.
5981 set dummy $ac_prog; ac_word=$2
5982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if test "${ac_cv_prog_AR+set}" = set; then
5985 $as_echo_n "(cached) " >&6
5987 if test -n "$AR"; then
5988 ac_cv_prog_AR="$AR" # Let the user override the test.
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 test -z "$as_dir" && as_dir=.
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997 ac_cv_prog_AR="$ac_prog"
5998 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008 if test -n "$AR"; then
6009 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6010 $as_echo "$AR" >&6; }
6012 { $as_echo "$as_me:$LINENO: result: no" >&5
6013 $as_echo "no" >&6; }
6017 test -n "$AR" && break
6019 test -n "$AR" || AR="no"
6023 r="`eval echo '$'"AR"`"
6024 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6027 ##STEPMAKE_WARN(cannot find . )
6031 if test $? -ne 0; then
6033 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6035 if test "REQUIRED" = "REQUIRED"; then
6036 command="echo ERROR: ar not found"
6037 # abort configure process here?
6039 command="- echo ar not found"
6041 eval "AR"='$command'
6047 if test $? -eq 0 -a -n ""; then
6049 r="`eval echo '$'"AR"`"
6050 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6051 $as_echo_n "checking $r version... " >&6; }
6053 ## which doesn't work in ash, if /usr/bin/which isn't installed
6054 ## type -p doesn't work in ash
6055 ## command -v doesn't work in zsh
6056 ## command -v "$r" 2>&1
6057 ## this test should work in ash, bash, pdksh (ksh), zsh
6058 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6064 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6067 ## Workaround for broken Debian gcc version string:
6068 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6070 ## -V: Workaround for python
6074 ## Assume and hunt for dotted version multiplet.
6075 ## use eval trickery, because we cannot use multi-level $() instead of ``
6076 ## for compatibility reasons.
6078 ## grab the first version number in --version output.
6079 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6080 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6083 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6084 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6087 if test -z "$_ver"; then
6088 ## If empty, try date [fontforge]
6089 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6091 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6098 echo "$ver" | awk -F. '
6100 if ($3) {three = $3}
6103 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6108 if ($3) {three = $3}
6111 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6113 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6114 $as_echo "$ver" >&6; }
6115 if test "$num" -lt "$req"; then
6117 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6120 vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6121 eval `echo $vervar=$num`
6122 ## AC_SUBST(`eval echo $vervar`)
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_RANLIB+set}" = set; then
6132 $as_echo_n "(cached) " >&6
6134 if test -n "$RANLIB"; then
6135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 RANLIB=$ac_cv_prog_RANLIB
6155 if test -n "$RANLIB"; then
6156 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6157 $as_echo "$RANLIB" >&6; }
6159 { $as_echo "$as_me:$LINENO: result: no" >&5
6160 $as_echo "no" >&6; }
6165 if test -z "$ac_cv_prog_RANLIB"; then
6166 ac_ct_RANLIB=$RANLIB
6167 # Extract the first word of "ranlib", so it can be a program name with args.
6168 set dummy ranlib; ac_word=$2
6169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6174 if test -n "$ac_ct_RANLIB"; then
6175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_RANLIB="ranlib"
6185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195 if test -n "$ac_ct_RANLIB"; then
6196 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6197 $as_echo "$ac_ct_RANLIB" >&6; }
6199 { $as_echo "$as_me:$LINENO: result: no" >&5
6200 $as_echo "no" >&6; }
6203 if test "x$ac_ct_RANLIB" = x; then
6206 case $cross_compiling:$ac_tool_warned in
6208 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6212 RANLIB=$ac_ct_RANLIB
6215 RANLIB="$ac_cv_prog_RANLIB"
6220 r="`eval echo '$'"RANLIB"`"
6221 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6224 ##STEPMAKE_WARN(cannot find . )
6228 if test $? -ne 0; then
6230 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6232 if test "REQUIRED" = "REQUIRED"; then
6233 command="echo ERROR: ranlib not found"
6234 # abort configure process here?
6236 command="- echo ranlib not found"
6238 eval "RANLIB"='$command'
6247 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6248 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6250 $as_echo_n "(cached) " >&6
6252 ac_check_lib_save_LIBS=$LIBS
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6261 /* Override any GCC internal prototype to avoid an error.
6262 Use char because int might match the return type of a GCC
6263 builtin and then its argument prototype would still apply. */
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_link") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_cxx_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest$ac_exeext && {
6294 test "$cross_compiling" = yes ||
6295 $as_test_x conftest$ac_exeext
6297 ac_cv_lib_dl_dlopen=yes
6299 $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_cv_lib_dl_dlopen=no
6305 rm -rf conftest.dSYM
6306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6307 conftest$ac_exeext conftest.$ac_ext
6308 LIBS=$ac_check_lib_save_LIBS
6310 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6311 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6312 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6313 cat >>confdefs.h <<_ACEOF
6314 #define HAVE_LIBDL 1
6322 for ac_func in dlopen
6324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6325 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6326 $as_echo_n "checking for $ac_func... " >&6; }
6327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6328 $as_echo_n "(cached) " >&6
6330 cat >conftest.$ac_ext <<_ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h. */
6336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6338 #define $ac_func innocuous_$ac_func
6340 /* System header to define __stub macros and hopefully few prototypes,
6341 which can conflict with char $ac_func (); below.
6342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6343 <limits.h> exists even on freestanding compilers. */
6346 # include <limits.h>
6348 # include <assert.h>
6353 /* Override any GCC internal prototype to avoid an error.
6354 Use char because int might match the return type of a GCC
6355 builtin and then its argument prototype would still apply. */
6360 /* The GNU C library defines this for functions which it implements
6361 to always fail with ENOSYS. Some functions are actually named
6362 something starting with __ and the normal name is an alias. */
6363 #if defined __stub_$ac_func || defined __stub___$ac_func
6375 rm -f conftest.$ac_objext conftest$ac_exeext
6376 if { (ac_try="$ac_link"
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6382 $as_echo "$ac_try_echo") >&5
6383 (eval "$ac_link") 2>conftest.er1
6385 grep -v '^ *+' conftest.er1 >conftest.err
6387 cat conftest.err >&5
6388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } && {
6390 test -z "$ac_cxx_werror_flag" ||
6391 test ! -s conftest.err
6392 } && test -s conftest$ac_exeext && {
6393 test "$cross_compiling" = yes ||
6394 $as_test_x conftest$ac_exeext
6396 eval "$as_ac_var=yes"
6398 $as_echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6401 eval "$as_ac_var=no"
6404 rm -rf conftest.dSYM
6405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6406 conftest$ac_exeext conftest.$ac_ext
6408 ac_res=`eval 'as_val=${'$as_ac_var'}
6409 $as_echo "$as_val"'`
6410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6411 $as_echo "$ac_res" >&6; }
6412 as_val=`eval 'as_val=${'$as_ac_var'}
6413 $as_echo "$as_val"'`
6414 if test "x$as_val" = x""yes; then
6415 cat >>confdefs.h <<_ACEOF
6416 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6423 # Do not use bison 1.50 and 1.75.
6424 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6426 # ugh, automake: we want (and check for) bison
6427 for ac_prog in 'bison -y' byacc
6429 # Extract the first word of "$ac_prog", so it can be a program name with args.
6430 set dummy $ac_prog; ac_word=$2
6431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_YACC+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6436 if test -n "$YACC"; then
6437 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_prog_YACC="$ac_prog"
6447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 YACC=$ac_cv_prog_YACC
6457 if test -n "$YACC"; then
6458 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6459 $as_echo "$YACC" >&6; }
6461 { $as_echo "$as_me:$LINENO: result: no" >&5
6462 $as_echo "no" >&6; }
6466 test -n "$YACC" && break
6468 test -n "$YACC" || YACC="yacc"
6472 for ac_prog in bison
6474 # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if test "${ac_cv_prog_BISON+set}" = set; then
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$BISON"; then
6482 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_BISON="$ac_prog"
6492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 BISON=$ac_cv_prog_BISON
6502 if test -n "$BISON"; then
6503 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6504 $as_echo "$BISON" >&6; }
6506 { $as_echo "$as_me:$LINENO: result: no" >&5
6507 $as_echo "no" >&6; }
6511 test -n "$BISON" && break
6513 test -n "$BISON" || BISON="no"
6517 r="`eval echo '$'"BISON"`"
6518 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6521 ##STEPMAKE_WARN(cannot find . )
6525 if test $? -ne 0; then
6527 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"bison\"`\"
6529 if test "OPTIONAL" = "REQUIRED"; then
6530 command="echo ERROR: bison not found"
6531 # abort configure process here?
6533 command="- echo bison not found"
6535 eval "BISON"='$command'
6541 if test $? -eq 0 -a -n ""; then
6543 r="`eval echo '$'"BISON"`"
6544 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6545 $as_echo_n "checking $r version... " >&6; }
6547 ## which doesn't work in ash, if /usr/bin/which isn't installed
6548 ## type -p doesn't work in ash
6549 ## command -v doesn't work in zsh
6550 ## command -v "$r" 2>&1
6551 ## this test should work in ash, bash, pdksh (ksh), zsh
6552 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6558 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6561 ## Workaround for broken Debian gcc version string:
6562 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6564 ## -V: Workaround for python
6568 ## Assume and hunt for dotted version multiplet.
6569 ## use eval trickery, because we cannot use multi-level $() instead of ``
6570 ## for compatibility reasons.
6572 ## grab the first version number in --version output.
6573 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6574 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6577 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6578 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6581 if test -z "$_ver"; then
6582 ## If empty, try date [fontforge]
6583 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6585 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6592 echo "$ver" | awk -F. '
6594 if ($3) {three = $3}
6597 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6602 if ($3) {three = $3}
6605 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6607 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6608 $as_echo "$ver" >&6; }
6609 if test "$num" -lt "$req"; then
6611 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
6614 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6615 eval `echo $vervar=$num`
6616 ## AC_SUBST(`eval echo $vervar`)
6621 # urg. should test functionality rather than version.
6622 if test "$BISON" = "bison" -a -n "1.29"; then
6624 r="`eval echo '$'"BISON"`"
6625 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6626 $as_echo_n "checking $r version... " >&6; }
6628 ## which doesn't work in ash, if /usr/bin/which isn't installed
6629 ## type -p doesn't work in ash
6630 ## command -v doesn't work in zsh
6631 ## command -v "$r" 2>&1
6632 ## this test should work in ash, bash, pdksh (ksh), zsh
6633 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6639 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6642 ## Workaround for broken Debian gcc version string:
6643 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6645 ## -V: Workaround for python
6649 ## Assume and hunt for dotted version multiplet.
6650 ## use eval trickery, because we cannot use multi-level $() instead of ``
6651 ## for compatibility reasons.
6653 ## grab the first version number in --version output.
6654 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6655 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6658 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6659 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6662 if test -z "$_ver"; then
6663 ## If empty, try date [fontforge]
6664 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6666 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6673 echo "$ver" | awk -F. '
6675 if ($3) {three = $3}
6678 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6681 echo "1.29" | awk -F. '
6683 if ($3) {three = $3}
6686 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6688 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6689 $as_echo "$ver" >&6; }
6690 if test "$num" -lt "$req"; then
6692 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.29 (installed: $ver)"\"`\"
6695 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6696 eval `echo $vervar=$num`
6697 ## AC_SUBST(`eval echo $vervar`)
6702 # ugh, automake: we want (and check for) flex
6704 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6708 ac_cv_prog_lex_root=lex.yy
6712 # Extract the first word of "$ac_prog", so it can be a program name with args.
6713 set dummy $ac_prog; ac_word=$2
6714 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if test "${ac_cv_prog_FLEX+set}" = set; then
6717 $as_echo_n "(cached) " >&6
6719 if test -n "$FLEX"; then
6720 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6729 ac_cv_prog_FLEX="$ac_prog"
6730 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 FLEX=$ac_cv_prog_FLEX
6740 if test -n "$FLEX"; then
6741 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6742 $as_echo "$FLEX" >&6; }
6744 { $as_echo "$as_me:$LINENO: result: no" >&5
6745 $as_echo "no" >&6; }
6749 test -n "$FLEX" && break
6751 test -n "$FLEX" || FLEX="no"
6755 r="`eval echo '$'"FLEX"`"
6756 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6759 ##STEPMAKE_WARN(cannot find . )
6763 if test $? -ne 0; then
6765 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6767 if test "REQUIRED" = "REQUIRED"; then
6768 command="echo ERROR: flex not found"
6769 # abort configure process here?
6771 command="- echo flex not found"
6773 eval "FLEX"='$command'
6779 if test $? -eq 0 -a -n ""; then
6781 r="`eval echo '$'"FLEX"`"
6782 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6783 $as_echo_n "checking $r version... " >&6; }
6785 ## which doesn't work in ash, if /usr/bin/which isn't installed
6786 ## type -p doesn't work in ash
6787 ## command -v doesn't work in zsh
6788 ## command -v "$r" 2>&1
6789 ## this test should work in ash, bash, pdksh (ksh), zsh
6790 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6796 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6799 ## Workaround for broken Debian gcc version string:
6800 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6802 ## -V: Workaround for python
6806 ## Assume and hunt for dotted version multiplet.
6807 ## use eval trickery, because we cannot use multi-level $() instead of ``
6808 ## for compatibility reasons.
6810 ## grab the first version number in --version output.
6811 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6812 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6815 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6816 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6819 if test -z "$_ver"; then
6820 ## If empty, try date [fontforge]
6821 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
6823 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6830 echo "$ver" | awk -F. '
6832 if ($3) {three = $3}
6835 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6840 if ($3) {three = $3}
6843 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6845 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6846 $as_echo "$ver" >&6; }
6847 if test "$num" -lt "$req"; then
6849 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6852 vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6853 eval `echo $vervar=$num`
6854 ## AC_SUBST(`eval echo $vervar`)
6859 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6860 $as_echo_n "checking for ANSI C header files... " >&6; }
6861 if test "${ac_cv_header_stdc+set}" = set; then
6862 $as_echo_n "(cached) " >&6
6864 cat >conftest.$ac_ext <<_ACEOF
6867 cat confdefs.h >>conftest.$ac_ext
6868 cat >>conftest.$ac_ext <<_ACEOF
6869 /* end confdefs.h. */
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6890 $as_echo "$ac_try_echo") >&5
6891 (eval "$ac_compile") 2>conftest.er1
6893 grep -v '^ *+' conftest.er1 >conftest.err
6895 cat conftest.err >&5
6896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } && {
6898 test -z "$ac_cxx_werror_flag" ||
6899 test ! -s conftest.err
6900 } && test -s conftest.$ac_objext; then
6901 ac_cv_header_stdc=yes
6903 $as_echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6906 ac_cv_header_stdc=no
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 if test $ac_cv_header_stdc = yes; then
6912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6923 $EGREP "memchr" >/dev/null 2>&1; then
6926 ac_cv_header_stdc=no
6932 if test $ac_cv_header_stdc = yes; then
6933 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6934 cat >conftest.$ac_ext <<_ACEOF
6937 cat confdefs.h >>conftest.$ac_ext
6938 cat >>conftest.$ac_ext <<_ACEOF
6939 /* end confdefs.h. */
6943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6944 $EGREP "free" >/dev/null 2>&1; then
6947 ac_cv_header_stdc=no
6953 if test $ac_cv_header_stdc = yes; then
6954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6955 if test "$cross_compiling" = yes; then
6958 cat >conftest.$ac_ext <<_ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6966 #if ((' ' & 0x0FF) == 0x020)
6967 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6968 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6970 # define ISLOWER(c) \
6971 (('a' <= (c) && (c) <= 'i') \
6972 || ('j' <= (c) && (c) <= 'r') \
6973 || ('s' <= (c) && (c) <= 'z'))
6974 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6982 for (i = 0; i < 256; i++)
6983 if (XOR (islower (i), ISLOWER (i))
6984 || toupper (i) != TOUPPER (i))
6989 rm -f conftest$ac_exeext
6990 if { (ac_try="$ac_link"
6992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6993 *) ac_try_echo=$ac_try;;
6995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6996 $as_echo "$ac_try_echo") >&5
6997 (eval "$ac_link") 2>&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001 { (case "(($ac_try" in
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7006 $as_echo "$ac_try_echo") >&5
7007 (eval "$ac_try") 2>&5
7009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7013 $as_echo "$as_me: program exited with status $ac_status" >&5
7014 $as_echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7018 ac_cv_header_stdc=no
7020 rm -rf conftest.dSYM
7021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7027 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7028 $as_echo "$ac_cv_header_stdc" >&6; }
7029 if test $ac_cv_header_stdc = yes; then
7031 cat >>confdefs.h <<\_ACEOF
7032 #define STDC_HEADERS 1
7037 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7048 inttypes.h stdint.h unistd.h
7050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7051 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7052 $as_echo_n "checking for $ac_header... " >&6; }
7053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7054 $as_echo_n "(cached) " >&6
7056 cat >conftest.$ac_ext <<_ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 $ac_includes_default
7064 #include <$ac_header>
7066 rm -f conftest.$ac_objext
7067 if { (ac_try="$ac_compile"
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073 $as_echo "$ac_try_echo") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7076 grep -v '^ *+' conftest.er1 >conftest.err
7078 cat conftest.err >&5
7079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_cxx_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 eval "$as_ac_Header=yes"
7086 $as_echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 eval "$as_ac_Header=no"
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 ac_res=`eval 'as_val=${'$as_ac_Header'}
7095 $as_echo "$as_val"'`
7096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7097 $as_echo "$ac_res" >&6; }
7098 as_val=`eval 'as_val=${'$as_ac_Header'}
7099 $as_echo "$as_val"'`
7100 if test "x$as_val" = x""yes; then
7101 cat >>confdefs.h <<_ACEOF
7102 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7112 for ac_header in FlexLexer.h
7114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7117 $as_echo_n "checking for $ac_header... " >&6; }
7118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7119 $as_echo_n "(cached) " >&6
7121 ac_res=`eval 'as_val=${'$as_ac_Header'}
7122 $as_echo "$as_val"'`
7123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7124 $as_echo "$ac_res" >&6; }
7126 # Is the header compilable?
7127 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7128 $as_echo_n "checking $ac_header usability... " >&6; }
7129 cat >conftest.$ac_ext <<_ACEOF
7132 cat confdefs.h >>conftest.$ac_ext
7133 cat >>conftest.$ac_ext <<_ACEOF
7134 /* end confdefs.h. */
7135 $ac_includes_default
7136 #include <$ac_header>
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7144 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7145 $as_echo "$ac_try_echo") >&5
7146 (eval "$ac_compile") 2>conftest.er1
7148 grep -v '^ *+' conftest.er1 >conftest.err
7150 cat conftest.err >&5
7151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } && {
7153 test -z "$ac_cxx_werror_flag" ||
7154 test ! -s conftest.err
7155 } && test -s conftest.$ac_objext; then
7156 ac_header_compiler=yes
7158 $as_echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161 ac_header_compiler=no
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7166 $as_echo "$ac_header_compiler" >&6; }
7168 # Is the header present?
7169 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7170 $as_echo_n "checking $ac_header presence... " >&6; }
7171 cat >conftest.$ac_ext <<_ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #include <$ac_header>
7179 if { (ac_try="$ac_cpp conftest.$ac_ext"
7181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7185 $as_echo "$ac_try_echo") >&5
7186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7188 grep -v '^ *+' conftest.er1 >conftest.err
7190 cat conftest.err >&5
7191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } >/dev/null && {
7193 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7194 test ! -s conftest.err
7196 ac_header_preproc=yes
7198 $as_echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 ac_header_preproc=no
7204 rm -f conftest.err conftest.$ac_ext
7205 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7206 $as_echo "$ac_header_preproc" >&6; }
7208 # So? What about this header?
7209 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7212 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7214 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7215 ac_header_preproc=yes
7218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7219 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7221 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7223 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7225 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7229 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7234 $as_echo_n "checking for $ac_header... " >&6; }
7235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7236 $as_echo_n "(cached) " >&6
7238 eval "$as_ac_Header=\$ac_header_preproc"
7240 ac_res=`eval 'as_val=${'$as_ac_Header'}
7241 $as_echo "$as_val"'`
7242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7243 $as_echo "$ac_res" >&6; }
7246 as_val=`eval 'as_val=${'$as_ac_Header'}
7247 $as_echo "$as_val"'`
7248 if test "x$as_val" = x""yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7259 if test $? -ne 0; then
7260 warn='FlexLexer.h (flex package)'
7262 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7265 # check for yyFlexLexer.yy_current_buffer,
7266 # in 2.5.4 <= flex < 2.5.29
7267 { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7268 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7269 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7270 $as_echo_n "(cached) " >&6
7272 cat >conftest.$ac_ext <<_ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7279 using namespace std;
7280 #include <FlexLexer.h>
7281 class yy_flex_lexer: public yyFlexLexer
7286 yy_current_buffer = 0;
7298 rm -f conftest.$ac_objext
7299 if { (ac_try="$ac_compile"
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7305 $as_echo "$ac_try_echo") >&5
7306 (eval "$ac_compile") 2>conftest.er1
7308 grep -v '^ *+' conftest.er1 >conftest.err
7310 cat conftest.err >&5
7311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && {
7313 test -z "$ac_cxx_werror_flag" ||
7314 test ! -s conftest.err
7315 } && test -s conftest.$ac_objext; then
7316 stepmake_cv_flexlexer_yy_current_buffer=yes
7318 $as_echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 stepmake_cv_flexlexer_yy_current_buffer=no
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7327 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7328 if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7330 cat >>confdefs.h <<\_ACEOF
7331 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7337 { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7338 $as_echo_n "checking FlexLexer.h location... " >&6; }
7341 cat <<EOF > conftest.cc
7342 using namespace std;
7343 #include <FlexLexer.h>
7345 FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7346 sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7347 sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7350 { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7351 $as_echo "$FLEXLEXER_FILE" >&6; }
7359 # Check whether --with-localedir was given.
7360 if test "${with_localedir+set}" = set; then
7361 withval=$with_localedir; localedir=$with_localedir
7363 localedir='${prefix}/share/locale'
7368 # Check whether --with-lang was given.
7369 if test "${with_lang+set}" = set; then
7370 withval=$with_lang; language=$with_lang
7376 { $as_echo "$as_me:$LINENO: checking language" >&5
7377 $as_echo_n "checking language... " >&6; }
7379 En* | en* | Am* | am* | US* | us*)
7381 NL | nl | Du* | du* | Ned* | ned*)
7388 { $as_echo "$as_me:$LINENO: result: $lang" >&5
7389 $as_echo "$lang" >&6; }
7391 if test "$lang" = "unknown" ; then
7393 { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7394 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7402 if test "$prefix" = "NONE"; then
7403 presome=${ac_default_prefix}
7405 LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7408 cat >>confdefs.h <<_ACEOF
7409 #define LOCALEDIR "${LOCALEDIR}"
7413 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7414 $as_echo_n "checking for gettext in -lintl... " >&6; }
7415 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7416 $as_echo_n "(cached) " >&6
7418 ac_check_lib_save_LIBS=$LIBS
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7427 /* Override any GCC internal prototype to avoid an error.
7428 Use char because int might match the return type of a GCC
7429 builtin and then its argument prototype would still apply. */
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (ac_try="$ac_link"
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7449 $as_echo "$ac_try_echo") >&5
7450 (eval "$ac_link") 2>conftest.er1
7452 grep -v '^ *+' conftest.er1 >conftest.err
7454 cat conftest.err >&5
7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && {
7457 test -z "$ac_cxx_werror_flag" ||
7458 test ! -s conftest.err
7459 } && test -s conftest$ac_exeext && {
7460 test "$cross_compiling" = yes ||
7461 $as_test_x conftest$ac_exeext
7463 ac_cv_lib_intl_gettext=yes
7465 $as_echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_cv_lib_intl_gettext=no
7471 rm -rf conftest.dSYM
7472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7473 conftest$ac_exeext conftest.$ac_ext
7474 LIBS=$ac_check_lib_save_LIBS
7476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7477 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7478 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7479 cat >>confdefs.h <<_ACEOF
7480 #define HAVE_LIBINTL 1
7488 for ac_func in gettext
7490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7492 $as_echo_n "checking for $ac_func... " >&6; }
7493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7494 $as_echo_n "(cached) " >&6
7496 cat >conftest.$ac_ext <<_ACEOF
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7504 #define $ac_func innocuous_$ac_func
7506 /* System header to define __stub macros and hopefully few prototypes,
7507 which can conflict with char $ac_func (); below.
7508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7509 <limits.h> exists even on freestanding compilers. */
7512 # include <limits.h>
7514 # include <assert.h>
7519 /* Override any GCC internal prototype to avoid an error.
7520 Use char because int might match the return type of a GCC
7521 builtin and then its argument prototype would still apply. */
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined __stub_$ac_func || defined __stub___$ac_func
7541 rm -f conftest.$ac_objext conftest$ac_exeext
7542 if { (ac_try="$ac_link"
7544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545 *) ac_try_echo=$ac_try;;
7547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7548 $as_echo "$ac_try_echo") >&5
7549 (eval "$ac_link") 2>conftest.er1
7551 grep -v '^ *+' conftest.er1 >conftest.err
7553 cat conftest.err >&5
7554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } && {
7556 test -z "$ac_cxx_werror_flag" ||
7557 test ! -s conftest.err
7558 } && test -s conftest$ac_exeext && {
7559 test "$cross_compiling" = yes ||
7560 $as_test_x conftest$ac_exeext
7562 eval "$as_ac_var=yes"
7564 $as_echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7567 eval "$as_ac_var=no"
7570 rm -rf conftest.dSYM
7571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7572 conftest$ac_exeext conftest.$ac_ext
7574 ac_res=`eval 'as_val=${'$as_ac_var'}
7575 $as_echo "$as_val"'`
7576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7577 $as_echo "$ac_res" >&6; }
7578 as_val=`eval 'as_val=${'$as_ac_var'}
7579 $as_echo "$as_val"'`
7580 if test "x$as_val" = x""yes; then
7581 cat >>confdefs.h <<_ACEOF
7582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7591 for ac_prog in msgfmt
7593 # Extract the first word of "$ac_prog", so it can be a program name with args.
7594 set dummy $ac_prog; ac_word=$2
7595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$MSGFMT"; then
7601 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610 ac_cv_prog_MSGFMT="$ac_prog"
7611 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 MSGFMT=$ac_cv_prog_MSGFMT
7621 if test -n "$MSGFMT"; then
7622 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7623 $as_echo "$MSGFMT" >&6; }
7625 { $as_echo "$as_me:$LINENO: result: no" >&5
7626 $as_echo "no" >&6; }
7630 test -n "$MSGFMT" && break
7632 test -n "$MSGFMT" || MSGFMT="no"
7636 r="`eval echo '$'"MSGFMT"`"
7637 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7640 ##STEPMAKE_WARN(cannot find . )
7644 if test $? -ne 0; then
7646 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7648 if test "REQUIRED" = "REQUIRED"; then
7649 command="echo ERROR: msgfmt not found"
7650 # abort configure process here?
7652 command="- echo msgfmt not found"
7654 eval "MSGFMT"='$command'
7660 if test $? -eq 0 -a -n ""; then
7662 r="`eval echo '$'"MSGFMT"`"
7663 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7664 $as_echo_n "checking $r version... " >&6; }
7666 ## which doesn't work in ash, if /usr/bin/which isn't installed
7667 ## type -p doesn't work in ash
7668 ## command -v doesn't work in zsh
7669 ## command -v "$r" 2>&1
7670 ## this test should work in ash, bash, pdksh (ksh), zsh
7671 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7677 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7680 ## Workaround for broken Debian gcc version string:
7681 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7683 ## -V: Workaround for python
7687 ## Assume and hunt for dotted version multiplet.
7688 ## use eval trickery, because we cannot use multi-level $() instead of ``
7689 ## for compatibility reasons.
7691 ## grab the first version number in --version output.
7692 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7693 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7696 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7697 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7700 if test -z "$_ver"; then
7701 ## If empty, try date [fontforge]
7702 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7704 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7711 echo "$ver" | awk -F. '
7713 if ($3) {three = $3}
7716 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7721 if ($3) {three = $3}
7724 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7726 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7727 $as_echo "$ver" >&6; }
7728 if test "$num" -lt "$req"; then
7730 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7733 vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7734 eval `echo $vervar=$num`
7735 ## AC_SUBST(`eval echo $vervar`)
7742 for ac_prog in mf-nowin mf mfw mfont
7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_METAFONT+set}" = set; then
7749 $as_echo_n "(cached) " >&6
7751 if test -n "$METAFONT"; then
7752 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_METAFONT="$ac_prog"
7762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 METAFONT=$ac_cv_prog_METAFONT
7772 if test -n "$METAFONT"; then
7773 { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7774 $as_echo "$METAFONT" >&6; }
7776 { $as_echo "$as_me:$LINENO: result: no" >&5
7777 $as_echo "no" >&6; }
7781 test -n "$METAFONT" && break
7783 test -n "$METAFONT" || METAFONT="no"
7787 r="`eval echo '$'"METAFONT"`"
7788 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7791 ##STEPMAKE_WARN(cannot find . )
7795 if test $? -ne 0; then
7797 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7799 if test "REQUIRED" = "REQUIRED"; then
7800 command="echo ERROR: mf-nowin mf mfw mfont not found"
7801 # abort configure process here?
7803 command="- echo mf-nowin mf mfw mfont not found"
7805 eval "METAFONT"='$command'
7811 if test $? -eq 0 -a -n ""; then
7813 r="`eval echo '$'"METAFONT"`"
7814 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7815 $as_echo_n "checking $r version... " >&6; }
7817 ## which doesn't work in ash, if /usr/bin/which isn't installed
7818 ## type -p doesn't work in ash
7819 ## command -v doesn't work in zsh
7820 ## command -v "$r" 2>&1
7821 ## this test should work in ash, bash, pdksh (ksh), zsh
7822 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7828 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7831 ## Workaround for broken Debian gcc version string:
7832 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7834 ## -V: Workaround for python
7838 ## Assume and hunt for dotted version multiplet.
7839 ## use eval trickery, because we cannot use multi-level $() instead of ``
7840 ## for compatibility reasons.
7842 ## grab the first version number in --version output.
7843 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7844 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7847 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7848 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7851 if test -z "$_ver"; then
7852 ## If empty, try date [fontforge]
7853 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7855 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7862 echo "$ver" | awk -F. '
7864 if ($3) {three = $3}
7867 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7872 if ($3) {three = $3}
7875 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7877 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7878 $as_echo "$ver" >&6; }
7879 if test "$num" -lt "$req"; then
7881 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7884 vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7885 eval `echo $vervar=$num`
7886 ## AC_SUBST(`eval echo $vervar`)
7891 for ac_prog in mpost
7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy $ac_prog; ac_word=$2
7895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_prog_METAPOST+set}" = set; then
7898 $as_echo_n "(cached) " >&6
7900 if test -n "$METAPOST"; then
7901 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7910 ac_cv_prog_METAPOST="$ac_prog"
7911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 METAPOST=$ac_cv_prog_METAPOST
7921 if test -n "$METAPOST"; then
7922 { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7923 $as_echo "$METAPOST" >&6; }
7925 { $as_echo "$as_me:$LINENO: result: no" >&5
7926 $as_echo "no" >&6; }
7930 test -n "$METAPOST" && break
7932 test -n "$METAPOST" || METAPOST="no"
7936 r="`eval echo '$'"METAPOST"`"
7937 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7940 ##STEPMAKE_WARN(cannot find . )
7944 if test $? -ne 0; then
7946 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7948 if test "REQUIRED" = "REQUIRED"; then
7949 command="echo ERROR: mpost not found"
7950 # abort configure process here?
7952 command="- echo mpost not found"
7954 eval "METAPOST"='$command'
7960 if test $? -eq 0 -a -n ""; then
7962 r="`eval echo '$'"METAPOST"`"
7963 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7964 $as_echo_n "checking $r version... " >&6; }
7966 ## which doesn't work in ash, if /usr/bin/which isn't installed
7967 ## type -p doesn't work in ash
7968 ## command -v doesn't work in zsh
7969 ## command -v "$r" 2>&1
7970 ## this test should work in ash, bash, pdksh (ksh), zsh
7971 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7977 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7980 ## Workaround for broken Debian gcc version string:
7981 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7983 ## -V: Workaround for python
7987 ## Assume and hunt for dotted version multiplet.
7988 ## use eval trickery, because we cannot use multi-level $() instead of ``
7989 ## for compatibility reasons.
7991 ## grab the first version number in --version output.
7992 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7993 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7996 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7997 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8000 if test -z "$_ver"; then
8001 ## If empty, try date [fontforge]
8002 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8004 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8011 echo "$ver" | awk -F. '
8013 if ($3) {three = $3}
8016 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8021 if ($3) {three = $3}
8024 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8026 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8027 $as_echo "$ver" >&6; }
8028 if test "$num" -lt "$req"; then
8030 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8033 vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8034 eval `echo $vervar=$num`
8035 ## AC_SUBST(`eval echo $vervar`)
8040 { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8041 $as_echo_n "checking for working metafont mode... " >&6; }
8042 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8043 for MFMODE in $modelist; do
8044 $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8045 if test -f mfput.tfm; then
8049 { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8050 $as_echo "$MFMODE" >&6; }
8059 for ac_prog in kpsewhich
8061 # Extract the first word of "$ac_prog", so it can be a program name with args.
8062 set dummy $ac_prog; ac_word=$2
8063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8066 $as_echo_n "(cached) " >&6
8068 if test -n "$KPSEWHICH"; then
8069 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_prog_KPSEWHICH="$ac_prog"
8079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8088 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8089 if test -n "$KPSEWHICH"; then
8090 { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8091 $as_echo "$KPSEWHICH" >&6; }
8093 { $as_echo "$as_me:$LINENO: result: no" >&5
8094 $as_echo "no" >&6; }
8098 test -n "$KPSEWHICH" && break
8100 test -n "$KPSEWHICH" || KPSEWHICH="no"
8104 r="`eval echo '$'"KPSEWHICH"`"
8105 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8108 ##STEPMAKE_WARN(cannot find . )
8112 if test $? -ne 0; then
8114 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
8116 if test "OPTIONAL" = "REQUIRED"; then
8117 command="echo ERROR: kpsewhich not found"
8118 # abort configure process here?
8120 command="- echo kpsewhich not found"
8122 eval "KPSEWHICH"='$command'
8128 if test $? -eq 0 -a -n ""; then
8130 r="`eval echo '$'"KPSEWHICH"`"
8131 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8132 $as_echo_n "checking $r version... " >&6; }
8134 ## which doesn't work in ash, if /usr/bin/which isn't installed
8135 ## type -p doesn't work in ash
8136 ## command -v doesn't work in zsh
8137 ## command -v "$r" 2>&1
8138 ## this test should work in ash, bash, pdksh (ksh), zsh
8139 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8145 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8148 ## Workaround for broken Debian gcc version string:
8149 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8151 ## -V: Workaround for python
8155 ## Assume and hunt for dotted version multiplet.
8156 ## use eval trickery, because we cannot use multi-level $() instead of ``
8157 ## for compatibility reasons.
8159 ## grab the first version number in --version output.
8160 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8161 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8164 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8165 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8168 if test -z "$_ver"; then
8169 ## If empty, try date [fontforge]
8170 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8172 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8179 echo "$ver" | awk -F. '
8181 if ($3) {three = $3}
8184 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8189 if ($3) {three = $3}
8192 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8194 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8195 $as_echo "$ver" >&6; }
8196 if test "$num" -lt "$req"; then
8198 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
8201 vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8202 eval `echo $vervar=$num`
8203 ## AC_SUBST(`eval echo $vervar`)
8209 ## First, let's just see if we can find Guile at all.
8210 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8211 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8212 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8213 $as_echo_n "checking for guile-config... " >&6; }
8214 for guile_config in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile1-config; do
8215 { $as_echo "$as_me:$LINENO: result: $guile_config" >&5
8216 $as_echo "$guile_config" >&6; }
8217 if ! $guile_config --version > /dev/null 2>&1 ; then
8218 { $as_echo "$as_me:$LINENO: WARNING: cannot execute $guile_config" >&5
8219 $as_echo "$as_me: WARNING: cannot execute $guile_config" >&2;}
8220 { $as_echo "$as_me:$LINENO: checking if we are cross compiling" >&5
8221 $as_echo_n "checking if we are cross compiling... " >&6; }
8222 GUILE_CONFIG='echo no guile-config'
8224 GUILE_CONFIG=$guile_config
8230 r="`eval echo '$'"GUILE_CONFIG"`"
8231 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8234 ##STEPMAKE_WARN(cannot find . )
8238 if test $? -ne 0; then
8240 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\"
8242 if test "REQUIRED" = "REQUIRED"; then
8243 command="echo ERROR: $guile_config not found"
8244 # abort configure process here?
8246 command="- echo $guile_config not found"
8248 eval "GUILE_CONFIG"='$command'
8254 if test $? -ne 0; then
8256 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package) or guile1-config (guile1-devel package)'\"`\"
8261 r="`eval echo '$'"GUILE_CONFIG"`"
8262 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
8265 ##STEPMAKE_WARN(cannot find . )
8269 # urg. should test functionality rather than version.
8270 if test $? -eq 0 -a -n "1.8.2"; then
8272 r="`eval echo '$'"GUILE_CONFIG"`"
8273 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8274 $as_echo_n "checking $r version... " >&6; }
8276 ## which doesn't work in ash, if /usr/bin/which isn't installed
8277 ## type -p doesn't work in ash
8278 ## command -v doesn't work in zsh
8279 ## command -v "$r" 2>&1
8280 ## this test should work in ash, bash, pdksh (ksh), zsh
8281 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8287 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8290 ## Workaround for broken Debian gcc version string:
8291 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8293 ## -V: Workaround for python
8297 ## Assume and hunt for dotted version multiplet.
8298 ## use eval trickery, because we cannot use multi-level $() instead of ``
8299 ## for compatibility reasons.
8301 ## grab the first version number in --version output.
8302 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8303 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8306 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8307 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8310 if test -z "$_ver"; then
8311 ## If empty, try date [fontforge]
8312 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
8314 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8321 echo "$ver" | awk -F. '
8323 if ($3) {three = $3}
8326 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8329 echo "1.8.2" | awk -F. '
8331 if ($3) {three = $3}
8334 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8336 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8337 $as_echo "$ver" >&6; }
8338 if test "$num" -lt "$req"; then
8340 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.8.2 (installed: $ver)"\"`\"
8343 vervar="`echo GUILE_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
8344 eval `echo $vervar=$num`
8345 ## AC_SUBST(`eval echo $vervar`)
8351 guile_version="$ver"
8353 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8354 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8355 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8359 ## which doesn't work in ash, if /usr/bin/which isn't installed
8360 ## type -p doesn't work in ash
8361 ## command -v doesn't work in zsh
8362 ## command -v "$guile_config" 2>&1
8363 ## this test should work in ash, bash, pdksh (ksh), zsh
8364 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8366 if test -x $exe; then
8367 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8368 $as_echo_n "checking guile compile flags... " >&6; }
8369 GUILE_CFLAGS="`$guile_config compile`"
8370 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8371 $as_echo "$GUILE_CFLAGS" >&6; }
8372 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8373 $as_echo_n "checking guile link flags... " >&6; }
8374 GUILE_LDFLAGS="`$guile_config link`"
8375 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8376 $as_echo "$GUILE_LDFLAGS" >&6; }
8381 save_CPPFLAGS="$CPPFLAGS"
8383 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8384 LIBS="$GUILE_LDFLAGS $LIBS"
8386 for ac_header in libguile.h
8388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8390 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8391 $as_echo_n "checking for $ac_header... " >&6; }
8392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8393 $as_echo_n "(cached) " >&6
8395 ac_res=`eval 'as_val=${'$as_ac_Header'}
8396 $as_echo "$as_val"'`
8397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8398 $as_echo "$ac_res" >&6; }
8400 # Is the header compilable?
8401 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8402 $as_echo_n "checking $ac_header usability... " >&6; }
8403 cat >conftest.$ac_ext <<_ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8409 $ac_includes_default
8410 #include <$ac_header>
8412 rm -f conftest.$ac_objext
8413 if { (ac_try="$ac_compile"
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8419 $as_echo "$ac_try_echo") >&5
8420 (eval "$ac_compile") 2>conftest.er1
8422 grep -v '^ *+' conftest.er1 >conftest.err
8424 cat conftest.err >&5
8425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_cxx_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest.$ac_objext; then
8430 ac_header_compiler=yes
8432 $as_echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_header_compiler=no
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8440 $as_echo "$ac_header_compiler" >&6; }
8442 # Is the header present?
8443 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8444 $as_echo_n "checking $ac_header presence... " >&6; }
8445 cat >conftest.$ac_ext <<_ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 #include <$ac_header>
8453 if { (ac_try="$ac_cpp conftest.$ac_ext"
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8459 $as_echo "$ac_try_echo") >&5
8460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } >/dev/null && {
8467 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8468 test ! -s conftest.err
8470 ac_header_preproc=yes
8472 $as_echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 ac_header_preproc=no
8478 rm -f conftest.err conftest.$ac_ext
8479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8480 $as_echo "$ac_header_preproc" >&6; }
8482 # So? What about this header?
8483 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8486 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8489 ac_header_preproc=yes
8492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8493 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8495 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8497 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8499 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8501 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8502 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8503 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 $as_echo_n "checking for $ac_header... " >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510 $as_echo_n "(cached) " >&6
8512 eval "$as_ac_Header=\$ac_header_preproc"
8514 ac_res=`eval 'as_val=${'$as_ac_Header'}
8515 $as_echo "$as_val"'`
8516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8517 $as_echo "$ac_res" >&6; }
8520 as_val=`eval 'as_val=${'$as_ac_Header'}
8521 $as_echo "$as_val"'`
8522 if test "x$as_val" = x""yes; then
8523 cat >>confdefs.h <<_ACEOF
8524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8532 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8533 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8534 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8535 $as_echo_n "(cached) " >&6
8537 ac_check_lib_save_LIBS=$LIBS
8538 LIBS="-lguile $LIBS"
8539 cat >conftest.$ac_ext <<_ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8546 /* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
8552 char scm_boot_guile ();
8556 return scm_boot_guile ();
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (ac_try="$ac_link"
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568 $as_echo "$ac_try_echo") >&5
8569 (eval "$ac_link") 2>conftest.er1
8571 grep -v '^ *+' conftest.er1 >conftest.err
8573 cat conftest.err >&5
8574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_cxx_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest$ac_exeext && {
8579 test "$cross_compiling" = yes ||
8580 $as_test_x conftest$ac_exeext
8582 ac_cv_lib_guile_scm_boot_guile=yes
8584 $as_echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8587 ac_cv_lib_guile_scm_boot_guile=no
8590 rm -rf conftest.dSYM
8591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592 conftest$ac_exeext conftest.$ac_ext
8593 LIBS=$ac_check_lib_save_LIBS
8595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8596 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8597 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8598 cat >>confdefs.h <<_ACEOF
8599 #define HAVE_LIBGUILE 1
8602 LIBS="-lguile $LIBS"
8607 for ac_func in scm_boot_guile
8609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8610 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8611 $as_echo_n "checking for $ac_func... " >&6; }
8612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8613 $as_echo_n "(cached) " >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8623 #define $ac_func innocuous_$ac_func
8625 /* System header to define __stub macros and hopefully few prototypes,
8626 which can conflict with char $ac_func (); below.
8627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8628 <limits.h> exists even on freestanding compilers. */
8631 # include <limits.h>
8633 # include <assert.h>
8638 /* Override any GCC internal prototype to avoid an error.
8639 Use char because int might match the return type of a GCC
8640 builtin and then its argument prototype would still apply. */
8645 /* The GNU C library defines this for functions which it implements
8646 to always fail with ENOSYS. Some functions are actually named
8647 something starting with __ and the normal name is an alias. */
8648 #if defined __stub_$ac_func || defined __stub___$ac_func
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (ac_try="$ac_link"
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667 $as_echo "$ac_try_echo") >&5
8668 (eval "$ac_link") 2>conftest.er1
8670 grep -v '^ *+' conftest.er1 >conftest.err
8672 cat conftest.err >&5
8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_cxx_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest$ac_exeext && {
8678 test "$cross_compiling" = yes ||
8679 $as_test_x conftest$ac_exeext
8681 eval "$as_ac_var=yes"
8683 $as_echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 eval "$as_ac_var=no"
8689 rm -rf conftest.dSYM
8690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8691 conftest$ac_exeext conftest.$ac_ext
8693 ac_res=`eval 'as_val=${'$as_ac_var'}
8694 $as_echo "$as_val"'`
8695 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8696 $as_echo "$ac_res" >&6; }
8697 as_val=`eval 'as_val=${'$as_ac_var'}
8698 $as_echo "$as_val"'`
8699 if test "x$as_val" = x""yes; then
8700 cat >>confdefs.h <<_ACEOF
8701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8709 if test "$libguile_b" = "no"; then
8710 warn='libguile (libguile-dev, guile-devel or guile-dev
8713 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8716 CPPFLAGS="$save_CPPFLAGS"
8718 cat >>confdefs.h <<_ACEOF
8719 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8722 cat >>confdefs.h <<_ACEOF
8723 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8726 cat >>confdefs.h <<_ACEOF
8727 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8732 # check for 3 typedefs added in Guile 1.9
8733 save_CXXFLAGS="$CXXFLAGS"
8734 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
8735 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
8736 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
8737 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
8738 $as_echo_n "(cached) " >&6
8740 ac_cv_type_scm_t_hash_fold_fn=no
8741 cat >conftest.$ac_ext <<_ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8747 #include <libguile.h>
8752 if (sizeof (scm_t_hash_fold_fn))
8758 rm -f conftest.$ac_objext
8759 if { (ac_try="$ac_compile"
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8765 $as_echo "$ac_try_echo") >&5
8766 (eval "$ac_compile") 2>conftest.er1
8768 grep -v '^ *+' conftest.er1 >conftest.err
8770 cat conftest.err >&5
8771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_cxx_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest.$ac_objext; then
8776 cat >conftest.$ac_ext <<_ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 #include <libguile.h>
8787 if (sizeof ((scm_t_hash_fold_fn)))
8793 rm -f conftest.$ac_objext
8794 if { (ac_try="$ac_compile"
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800 $as_echo "$ac_try_echo") >&5
8801 (eval "$ac_compile") 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
8805 cat conftest.err >&5
8806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_cxx_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest.$ac_objext; then
8813 $as_echo "$as_me: failed program was:" >&5
8814 sed 's/^/| /' conftest.$ac_ext >&5
8816 ac_cv_type_scm_t_hash_fold_fn=yes
8819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 $as_echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
8830 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
8831 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
8833 cat >>confdefs.h <<_ACEOF
8834 #define HAVE_SCM_T_HASH_FOLD_FN 1
8837 cat >>confdefs.h <<\_ACEOF
8838 #define HAVE_GUILE_HASH_FUNC 1
8842 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
8843 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
8844 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8847 ac_cv_type_scm_t_hash_handle_fn=no
8848 cat >conftest.$ac_ext <<_ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8854 #include <libguile.h>
8859 if (sizeof (scm_t_hash_handle_fn))
8865 rm -f conftest.$ac_objext
8866 if { (ac_try="$ac_compile"
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873 (eval "$ac_compile") 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_cxx_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest.$ac_objext; then
8883 cat >conftest.$ac_ext <<_ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8889 #include <libguile.h>
8894 if (sizeof ((scm_t_hash_handle_fn)))
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8907 $as_echo "$ac_try_echo") >&5
8908 (eval "$ac_compile") 2>conftest.er1
8910 grep -v '^ *+' conftest.er1 >conftest.err
8912 cat conftest.err >&5
8913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } && {
8915 test -z "$ac_cxx_werror_flag" ||
8916 test ! -s conftest.err
8917 } && test -s conftest.$ac_objext; then
8920 $as_echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 ac_cv_type_scm_t_hash_handle_fn=yes
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8928 $as_echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
8937 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
8938 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
8940 cat >>confdefs.h <<_ACEOF
8941 #define HAVE_SCM_T_HASH_HANDLE_FN 1
8944 cat >>confdefs.h <<\_ACEOF
8945 #define HAVE_GUILE_HASH_FUNC 1
8950 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
8951 $as_echo_n "checking for scm_t_subr... " >&6; }
8952 if test "${ac_cv_type_scm_t_subr+set}" = set; then
8953 $as_echo_n "(cached) " >&6
8955 ac_cv_type_scm_t_subr=no
8956 cat >conftest.$ac_ext <<_ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 #include <libguile.h>
8967 if (sizeof (scm_t_subr))
8973 rm -f conftest.$ac_objext
8974 if { (ac_try="$ac_compile"
8976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8980 $as_echo "$ac_try_echo") >&5
8981 (eval "$ac_compile") 2>conftest.er1
8983 grep -v '^ *+' conftest.er1 >conftest.err
8985 cat conftest.err >&5
8986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } && {
8988 test -z "$ac_cxx_werror_flag" ||
8989 test ! -s conftest.err
8990 } && test -s conftest.$ac_objext; then
8991 cat >conftest.$ac_ext <<_ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8997 #include <libguile.h>
9002 if (sizeof ((scm_t_subr)))
9008 rm -f conftest.$ac_objext
9009 if { (ac_try="$ac_compile"
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9015 $as_echo "$ac_try_echo") >&5
9016 (eval "$ac_compile") 2>conftest.er1
9018 grep -v '^ *+' conftest.er1 >conftest.err
9020 cat conftest.err >&5
9021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_cxx_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest.$ac_objext; then
9028 $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_type_scm_t_subr=yes
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036 $as_echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9045 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9046 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9048 cat >>confdefs.h <<_ACEOF
9049 #define HAVE_SCM_T_SUBR 1
9052 cat >>confdefs.h <<\_ACEOF
9053 #define HAVE_GUILE_SUBR_TYPE 1
9058 CXXFLAGS="$save_CXXFLAGS"
9060 ## Check for usable cxxabi
9062 LIBS="$LIBS $CXXABI_LIBS"
9063 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9064 $as_echo_n "checking for usable C++ demangler... " >&6; }
9065 cat >conftest.$ac_ext <<_ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h. */
9075 abi::__cxa_demangle ("", 0, 0, 0)
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (ac_try="$ac_link"
9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9087 $as_echo "$ac_try_echo") >&5
9088 (eval "$ac_link") 2>conftest.er1
9090 grep -v '^ *+' conftest.er1 >conftest.err
9092 cat conftest.err >&5
9093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } && {
9095 test -z "$ac_cxx_werror_flag" ||
9096 test ! -s conftest.err
9097 } && test -s conftest$ac_exeext && {
9098 test "$cross_compiling" = yes ||
9099 $as_test_x conftest$ac_exeext
9101 cat >>confdefs.h <<\_ACEOF
9102 #define HAVE_CXA_DEMANGLE 1
9105 { $as_echo "$as_me:$LINENO: result: yes" >&5
9106 $as_echo "yes" >&6; }
9108 $as_echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9112 LIBS="$LIBS -lsupc++"
9113 cat >conftest.$ac_ext <<_ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9123 abi::__cxa_demangle ("", 0, 0, 0)
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (ac_try="$ac_link"
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9135 $as_echo "$ac_try_echo") >&5
9136 (eval "$ac_link") 2>conftest.er1
9138 grep -v '^ *+' conftest.er1 >conftest.err
9140 cat conftest.err >&5
9141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } && {
9143 test -z "$ac_cxx_werror_flag" ||
9144 test ! -s conftest.err
9145 } && test -s conftest$ac_exeext && {
9146 test "$cross_compiling" = yes ||
9147 $as_test_x conftest$ac_exeext
9149 cat >>confdefs.h <<\_ACEOF
9150 #define HAVE_CXA_DEMANGLE 1
9153 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9154 $as_echo "yes, using -lsupc++" >&6; }
9155 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9157 $as_echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9161 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9164 rm -rf conftest.dSYM
9165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9166 conftest$ac_exeext conftest.$ac_ext
9169 rm -rf conftest.dSYM
9170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9171 conftest$ac_exeext conftest.$ac_ext
9175 ## check rational bugfix.
9176 save_CPPFLAGS="$CPPFLAGS"
9177 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9178 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9179 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9180 cat >conftest.$ac_ext <<_ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 #include <libguile.h>
9187 #ifdef SCM_FRACTION_REDUCED_BIT
9192 if { (ac_try="$ac_cpp conftest.$ac_ext"
9194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195 *) ac_try_echo=$ac_try;;
9197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9198 $as_echo "$ac_try_echo") >&5
9199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9201 grep -v '^ *+' conftest.er1 >conftest.err
9203 cat conftest.err >&5
9204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } >/dev/null && {
9206 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9207 test ! -s conftest.err
9209 { $as_echo "$as_me:$LINENO: result: ok" >&5
9210 $as_echo "ok" >&6; }
9212 $as_echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9216 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9217 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9220 rm -f conftest.err conftest.$ac_ext
9221 CPPFLAGS="$save_CPPFLAGS"
9226 # Check whether --with-python-include was given.
9227 if test "${with_python_include+set}" = set; then
9228 withval=$with_python_include;
9229 if test "$withval" = "yes" -o "$withval" = "no"; then
9230 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9231 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9233 PYTHON_CFLAGS="-I${withval}"
9240 # Check whether --with-python-lib was given.
9241 if test "${with_python_lib+set}" = set; then
9242 withval=$with_python_lib;
9243 if test "$withval" = "yes" -o "$withval" = "no"; then
9244 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9245 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9247 LDFLAGS="$LDFLAGS -l${withval}"
9253 for ac_prog in python-config
9255 # Extract the first word of "$ac_prog", so it can be a program name with args.
9256 set dummy $ac_prog; ac_word=$2
9257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
9260 $as_echo_n "(cached) " >&6
9262 if test -n "$PYTHON_CONFIG"; then
9263 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
9265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 test -z "$as_dir" && as_dir=.
9270 for ac_exec_ext in '' $ac_executable_extensions; do
9271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9272 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
9273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9282 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
9283 if test -n "$PYTHON_CONFIG"; then
9284 { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
9285 $as_echo "$PYTHON_CONFIG" >&6; }
9287 { $as_echo "$as_me:$LINENO: result: no" >&5
9288 $as_echo "no" >&6; }
9292 test -n "$PYTHON_CONFIG" && break
9294 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
9297 if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
9298 # Clean out junk: http://bugs.python.org/issue3290
9299 # Python headers may need some -f* flags, leave them in.
9300 # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
9301 #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9302 # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
9303 # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
9304 # Tentative fix to require a non alphanumeric character before the initial hyphen of the BRE or the hyphen being the first character in the string.
9305 PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
9306 PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
9309 if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
9311 # alternatively, for python >= 2.0
9312 # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
9313 PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
9314 PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
9318 if test -z "$PYTHON_HEADER"; then
9319 CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
9321 for ac_header in Python.h
9323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9325 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9326 $as_echo_n "checking for $ac_header... " >&6; }
9327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328 $as_echo_n "(cached) " >&6
9330 ac_res=`eval 'as_val=${'$as_ac_Header'}
9331 $as_echo "$as_val"'`
9332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9333 $as_echo "$ac_res" >&6; }
9335 # Is the header compilable?
9336 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9337 $as_echo_n "checking $ac_header usability... " >&6; }
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 $ac_includes_default
9345 #include <$ac_header>
9347 rm -f conftest.$ac_objext
9348 if { (ac_try="$ac_compile"
9350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351 *) ac_try_echo=$ac_try;;
9353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9354 $as_echo "$ac_try_echo") >&5
9355 (eval "$ac_compile") 2>conftest.er1
9357 grep -v '^ *+' conftest.er1 >conftest.err
9359 cat conftest.err >&5
9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); } && {
9362 test -z "$ac_cxx_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest.$ac_objext; then
9365 ac_header_compiler=yes
9367 $as_echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9370 ac_header_compiler=no
9373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9375 $as_echo "$ac_header_compiler" >&6; }
9377 # Is the header present?
9378 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9379 $as_echo_n "checking $ac_header presence... " >&6; }
9380 cat >conftest.$ac_ext <<_ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9386 #include <$ac_header>
9388 if { (ac_try="$ac_cpp conftest.$ac_ext"
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9394 $as_echo "$ac_try_echo") >&5
9395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9397 grep -v '^ *+' conftest.er1 >conftest.err
9399 cat conftest.err >&5
9400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } >/dev/null && {
9402 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9403 test ! -s conftest.err
9405 ac_header_preproc=yes
9407 $as_echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9410 ac_header_preproc=no
9413 rm -f conftest.err conftest.$ac_ext
9414 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 $as_echo "$ac_header_preproc" >&6; }
9417 # So? What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424 ac_header_preproc=yes
9427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9430 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9434 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9443 $as_echo_n "checking for $ac_header... " >&6; }
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445 $as_echo_n "(cached) " >&6
9447 eval "$as_ac_Header=\$ac_header_preproc"
9449 ac_res=`eval 'as_val=${'$as_ac_Header'}
9450 $as_echo "$as_val"'`
9451 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9452 $as_echo "$ac_res" >&6; }
9455 as_val=`eval 'as_val=${'$as_ac_Header'}
9456 $as_echo "$as_val"'`
9457 if test "x$as_val" = x""yes; then
9458 cat >>confdefs.h <<_ACEOF
9459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468 if test -z "$PYTHON_HEADER"; then
9469 warn="Python.h (python-devel, python-dev or libpython-dev package)"
9471 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9479 # Extract the first word of "$ac_prog", so it can be a program name with args.
9480 set dummy $ac_prog; ac_word=$2
9481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9482 $as_echo_n "checking for $ac_word... " >&6; }
9483 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
9484 $as_echo_n "(cached) " >&6
9486 if test -n "$GHOSTSCRIPT"; then
9487 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496 ac_cv_prog_GHOSTSCRIPT="$ac_prog"
9497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9506 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
9507 if test -n "$GHOSTSCRIPT"; then
9508 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9509 $as_echo "$GHOSTSCRIPT" >&6; }
9511 { $as_echo "$as_me:$LINENO: result: no" >&5
9512 $as_echo "no" >&6; }
9516 test -n "$GHOSTSCRIPT" && break
9518 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
9522 r="`eval echo '$'"GHOSTSCRIPT"`"
9523 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
9526 ##STEPMAKE_WARN(cannot find . )
9530 if test $? -ne 0; then
9532 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
9534 if test "OPTIONAL" = "REQUIRED"; then
9535 command="echo ERROR: gs not found"
9536 # abort configure process here?
9538 command="- echo gs not found"
9540 eval "GHOSTSCRIPT"='$command'
9546 if test $? -eq 0; then
9549 # Extract the first word of "$ac_prog", so it can be a program name with args.
9550 set dummy $ac_prog; ac_word=$2
9551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 $as_echo_n "checking for $ac_word... " >&6; }
9553 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
9554 $as_echo_n "(cached) " >&6
9556 case $GHOSTSCRIPT in
9558 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9565 test -z "$as_dir" && as_dir=.
9566 for ac_exec_ext in '' $ac_executable_extensions; do
9567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9568 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
9569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9579 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
9580 if test -n "$GHOSTSCRIPT"; then
9581 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
9582 $as_echo "$GHOSTSCRIPT" >&6; }
9584 { $as_echo "$as_me:$LINENO: result: no" >&5
9585 $as_echo "no" >&6; }
9589 test -n "$GHOSTSCRIPT" && break
9592 if test -n "8.60"; then
9594 r="`eval echo '$'"GHOSTSCRIPT"`"
9595 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9596 $as_echo_n "checking $r version... " >&6; }
9598 ## which doesn't work in ash, if /usr/bin/which isn't installed
9599 ## type -p doesn't work in ash
9600 ## command -v doesn't work in zsh
9601 ## command -v "$r" 2>&1
9602 ## this test should work in ash, bash, pdksh (ksh), zsh
9603 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9609 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9612 ## Workaround for broken Debian gcc version string:
9613 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9615 ## -V: Workaround for python
9619 ## Assume and hunt for dotted version multiplet.
9620 ## use eval trickery, because we cannot use multi-level $() instead of ``
9621 ## for compatibility reasons.
9623 ## grab the first version number in --version output.
9624 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9625 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9628 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9629 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9632 if test -z "$_ver"; then
9633 ## If empty, try date [fontforge]
9634 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9636 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9643 echo "$ver" | awk -F. '
9645 if ($3) {three = $3}
9648 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9651 echo "8.60" | awk -F. '
9653 if ($3) {three = $3}
9656 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9658 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9659 $as_echo "$ver" >&6; }
9660 if test "$num" -lt "$req"; then
9662 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 8.60 (installed: $ver)"\"`\"
9665 vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
9666 eval `echo $vervar=$num`
9667 ## AC_SUBST(`eval echo $vervar`)
9674 for ac_prog in fontforge
9676 # Extract the first word of "$ac_prog", so it can be a program name with args.
9677 set dummy $ac_prog; ac_word=$2
9678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9679 $as_echo_n "checking for $ac_word... " >&6; }
9680 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9681 $as_echo_n "(cached) " >&6
9683 if test -n "$FONTFORGE"; then
9684 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_prog_FONTFORGE="$ac_prog"
9694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9703 FONTFORGE=$ac_cv_prog_FONTFORGE
9704 if test -n "$FONTFORGE"; then
9705 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9706 $as_echo "$FONTFORGE" >&6; }
9708 { $as_echo "$as_me:$LINENO: result: no" >&5
9709 $as_echo "no" >&6; }
9713 test -n "$FONTFORGE" && break
9715 test -n "$FONTFORGE" || FONTFORGE="no"
9719 r="`eval echo '$'"FONTFORGE"`"
9720 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9723 ##STEPMAKE_WARN(cannot find . )
9727 if test $? -ne 0; then
9729 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
9731 if test "REQUIRED" = "REQUIRED"; then
9732 command="echo ERROR: fontforge not found"
9733 # abort configure process here?
9735 command="- echo fontforge not found"
9737 eval "FONTFORGE"='$command'
9743 if test $? -eq 0; then
9744 for ac_prog in fontforge
9746 # Extract the first word of "$ac_prog", so it can be a program name with args.
9747 set dummy $ac_prog; ac_word=$2
9748 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9749 $as_echo_n "checking for $ac_word... " >&6; }
9750 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9751 $as_echo_n "(cached) " >&6
9755 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9766 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 FONTFORGE=$ac_cv_path_FONTFORGE
9777 if test -n "$FONTFORGE"; then
9778 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9779 $as_echo "$FONTFORGE" >&6; }
9781 { $as_echo "$as_me:$LINENO: result: no" >&5
9782 $as_echo "no" >&6; }
9786 test -n "$FONTFORGE" && break
9789 if test -n "20100501"; then
9791 r="`eval echo '$'"FONTFORGE"`"
9792 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9793 $as_echo_n "checking $r version... " >&6; }
9795 ## which doesn't work in ash, if /usr/bin/which isn't installed
9796 ## type -p doesn't work in ash
9797 ## command -v doesn't work in zsh
9798 ## command -v "$r" 2>&1
9799 ## this test should work in ash, bash, pdksh (ksh), zsh
9800 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9806 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9809 ## Workaround for broken Debian gcc version string:
9810 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9812 ## -V: Workaround for python
9816 ## Assume and hunt for dotted version multiplet.
9817 ## use eval trickery, because we cannot use multi-level $() instead of ``
9818 ## for compatibility reasons.
9820 ## grab the first version number in --version output.
9821 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9822 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9825 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9826 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9829 if test -z "$_ver"; then
9830 ## If empty, try date [fontforge]
9831 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9833 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9840 echo "$ver" | awk -F. '
9842 if ($3) {three = $3}
9845 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9848 echo "20100501" | awk -F. '
9850 if ($3) {three = $3}
9853 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9855 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9856 $as_echo "$ver" >&6; }
9857 if test "$num" -lt "$req"; then
9859 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20100501 (installed: $ver)"\"`\"
9862 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9863 eval `echo $vervar=$num`
9864 ## AC_SUBST(`eval echo $vervar`)
9870 for ac_prog in fontforge
9872 # Extract the first word of "$ac_prog", so it can be a program name with args.
9873 set dummy $ac_prog; ac_word=$2
9874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9875 $as_echo_n "checking for $ac_word... " >&6; }
9876 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9877 $as_echo_n "(cached) " >&6
9879 if test -n "$FONTFORGE"; then
9880 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 test -z "$as_dir" && as_dir=.
9887 for ac_exec_ext in '' $ac_executable_extensions; do
9888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9889 ac_cv_prog_FONTFORGE="$ac_prog"
9890 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9899 FONTFORGE=$ac_cv_prog_FONTFORGE
9900 if test -n "$FONTFORGE"; then
9901 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9902 $as_echo "$FONTFORGE" >&6; }
9904 { $as_echo "$as_me:$LINENO: result: no" >&5
9905 $as_echo "no" >&6; }
9909 test -n "$FONTFORGE" && break
9911 test -n "$FONTFORGE" || FONTFORGE="no"
9915 r="`eval echo '$'"FONTFORGE"`"
9916 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9919 ##STEPMAKE_WARN(cannot find . )
9923 if test $? -ne 0; then
9925 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"fontforge\"`\"
9927 if test "OPTIONAL" = "REQUIRED"; then
9928 command="echo ERROR: fontforge not found"
9929 # abort configure process here?
9931 command="- echo fontforge not found"
9933 eval "FONTFORGE"='$command'
9939 if test $? -eq 0; then
9940 for ac_prog in fontforge
9942 # Extract the first word of "$ac_prog", so it can be a program name with args.
9943 set dummy $ac_prog; ac_word=$2
9944 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9947 $as_echo_n "(cached) " >&6
9951 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958 test -z "$as_dir" && as_dir=.
9959 for ac_exec_ext in '' $ac_executable_extensions; do
9960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9961 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 FONTFORGE=$ac_cv_path_FONTFORGE
9973 if test -n "$FONTFORGE"; then
9974 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9975 $as_echo "$FONTFORGE" >&6; }
9977 { $as_echo "$as_me:$LINENO: result: no" >&5
9978 $as_echo "no" >&6; }
9982 test -n "$FONTFORGE" && break
9985 if test -n "20110222"; then
9987 r="`eval echo '$'"FONTFORGE"`"
9988 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9989 $as_echo_n "checking $r version... " >&6; }
9991 ## which doesn't work in ash, if /usr/bin/which isn't installed
9992 ## type -p doesn't work in ash
9993 ## command -v doesn't work in zsh
9994 ## command -v "$r" 2>&1
9995 ## this test should work in ash, bash, pdksh (ksh), zsh
9996 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10002 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10005 ## Workaround for broken Debian gcc version string:
10006 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10008 ## -V: Workaround for python
10012 ## Assume and hunt for dotted version multiplet.
10013 ## use eval trickery, because we cannot use multi-level $() instead of ``
10014 ## for compatibility reasons.
10016 ## grab the first version number in --version output.
10017 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10018 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10021 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10022 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10025 if test -z "$_ver"; then
10026 ## If empty, try date [fontforge]
10027 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10029 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10036 echo "$ver" | awk -F. '
10038 if ($3) {three = $3}
10041 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10044 echo "20110222" | awk -F. '
10046 if ($3) {three = $3}
10049 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10051 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10052 $as_echo "$ver" >&6; }
10053 if test "$num" -lt "$req"; then
10055 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 20110222 (installed: $ver)"\"`\"
10058 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
10059 eval `echo $vervar=$num`
10060 ## AC_SUBST(`eval echo $vervar`)
10067 for ac_prog in t1asm
10069 # Extract the first word of "$ac_prog", so it can be a program name with args.
10070 set dummy $ac_prog; ac_word=$2
10071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10072 $as_echo_n "checking for $ac_word... " >&6; }
10073 if test "${ac_cv_prog_T1ASM+set}" = set; then
10074 $as_echo_n "(cached) " >&6
10076 if test -n "$T1ASM"; then
10077 ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080 for as_dir in $PATH
10083 test -z "$as_dir" && as_dir=.
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10086 ac_cv_prog_T1ASM="$ac_prog"
10087 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10096 T1ASM=$ac_cv_prog_T1ASM
10097 if test -n "$T1ASM"; then
10098 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10099 $as_echo "$T1ASM" >&6; }
10101 { $as_echo "$as_me:$LINENO: result: no" >&5
10102 $as_echo "no" >&6; }
10106 test -n "$T1ASM" && break
10108 test -n "$T1ASM" || T1ASM="no"
10112 r="`eval echo '$'"T1ASM"`"
10113 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
10116 ##STEPMAKE_WARN(cannot find . )
10120 if test $? -ne 0; then
10122 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
10124 if test "REQUIRED" = "REQUIRED"; then
10125 command="echo ERROR: t1asm not found"
10126 # abort configure process here?
10128 command="- echo t1asm not found"
10130 eval "T1ASM"='$command'
10136 if test $? -eq 0; then
10137 for ac_prog in t1asm
10139 # Extract the first word of "$ac_prog", so it can be a program name with args.
10140 set dummy $ac_prog; ac_word=$2
10141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10142 $as_echo_n "checking for $ac_word... " >&6; }
10143 if test "${ac_cv_path_T1ASM+set}" = set; then
10144 $as_echo_n "(cached) " >&6
10148 ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10158 ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
10159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 T1ASM=$ac_cv_path_T1ASM
10170 if test -n "$T1ASM"; then
10171 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10172 $as_echo "$T1ASM" >&6; }
10174 { $as_echo "$as_me:$LINENO: result: no" >&5
10175 $as_echo "no" >&6; }
10179 test -n "$T1ASM" && break
10182 if test -n ""; then
10184 r="`eval echo '$'"T1ASM"`"
10185 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10186 $as_echo_n "checking $r version... " >&6; }
10188 ## which doesn't work in ash, if /usr/bin/which isn't installed
10189 ## type -p doesn't work in ash
10190 ## command -v doesn't work in zsh
10191 ## command -v "$r" 2>&1
10192 ## this test should work in ash, bash, pdksh (ksh), zsh
10193 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10195 if test -n ""; then
10199 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10202 ## Workaround for broken Debian gcc version string:
10203 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10205 ## -V: Workaround for python
10209 ## Assume and hunt for dotted version multiplet.
10210 ## use eval trickery, because we cannot use multi-level $() instead of ``
10211 ## for compatibility reasons.
10213 ## grab the first version number in --version output.
10214 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10215 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10218 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10219 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10222 if test -z "$_ver"; then
10223 ## If empty, try date [fontforge]
10224 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10226 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10233 echo "$ver" | awk -F. '
10235 if ($3) {three = $3}
10238 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10241 echo "" | awk -F. '
10243 if ($3) {three = $3}
10246 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10248 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10249 $as_echo "$ver" >&6; }
10250 if test "$num" -lt "$req"; then
10252 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
10255 vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10256 eval `echo $vervar=$num`
10257 ## AC_SUBST(`eval echo $vervar`)
10270 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10274 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10275 $as_echo_n "checking for $ac_header... " >&6; }
10276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10277 $as_echo_n "(cached) " >&6
10279 ac_res=`eval 'as_val=${'$as_ac_Header'}
10280 $as_echo "$as_val"'`
10281 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10282 $as_echo "$ac_res" >&6; }
10284 # Is the header compilable?
10285 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10286 $as_echo_n "checking $ac_header usability... " >&6; }
10287 cat >conftest.$ac_ext <<_ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 $ac_includes_default
10294 #include <$ac_header>
10296 rm -f conftest.$ac_objext
10297 if { (ac_try="$ac_compile"
10298 case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303 $as_echo "$ac_try_echo") >&5
10304 (eval "$ac_compile") 2>conftest.er1
10306 grep -v '^ *+' conftest.er1 >conftest.err
10308 cat conftest.err >&5
10309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && {
10311 test -z "$ac_cxx_werror_flag" ||
10312 test ! -s conftest.err
10313 } && test -s conftest.$ac_objext; then
10314 ac_header_compiler=yes
10316 $as_echo "$as_me: failed program was:" >&5
10317 sed 's/^/| /' conftest.$ac_ext >&5
10319 ac_header_compiler=no
10322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10323 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10324 $as_echo "$ac_header_compiler" >&6; }
10326 # Is the header present?
10327 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10328 $as_echo_n "checking $ac_header presence... " >&6; }
10329 cat >conftest.$ac_ext <<_ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h. */
10335 #include <$ac_header>
10337 if { (ac_try="$ac_cpp conftest.$ac_ext"
10338 case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10343 $as_echo "$ac_try_echo") >&5
10344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } >/dev/null && {
10351 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10352 test ! -s conftest.err
10354 ac_header_preproc=yes
10356 $as_echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 ac_header_preproc=no
10362 rm -f conftest.err conftest.$ac_ext
10363 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10364 $as_echo "$ac_header_preproc" >&6; }
10366 # So? What about this header?
10367 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10370 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10373 ac_header_preproc=yes
10376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10377 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10379 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10381 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10383 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10387 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10391 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10392 $as_echo_n "checking for $ac_header... " >&6; }
10393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10394 $as_echo_n "(cached) " >&6
10396 eval "$as_ac_Header=\$ac_header_preproc"
10398 ac_res=`eval 'as_val=${'$as_ac_Header'}
10399 $as_echo "$as_val"'`
10400 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10401 $as_echo "$ac_res" >&6; }
10404 as_val=`eval 'as_val=${'$as_ac_Header'}
10405 $as_echo "$as_val"'`
10406 if test "x$as_val" = x""yes; then
10407 cat >>confdefs.h <<_ACEOF
10408 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10416 for ac_header in sstream
10418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10420 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10421 $as_echo_n "checking for $ac_header... " >&6; }
10422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10423 $as_echo_n "(cached) " >&6
10425 ac_res=`eval 'as_val=${'$as_ac_Header'}
10426 $as_echo "$as_val"'`
10427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10428 $as_echo "$ac_res" >&6; }
10430 # Is the header compilable?
10431 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10432 $as_echo_n "checking $ac_header usability... " >&6; }
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 $ac_includes_default
10440 #include <$ac_header>
10442 rm -f conftest.$ac_objext
10443 if { (ac_try="$ac_compile"
10444 case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10449 $as_echo "$ac_try_echo") >&5
10450 (eval "$ac_compile") 2>conftest.er1
10452 grep -v '^ *+' conftest.er1 >conftest.err
10454 cat conftest.err >&5
10455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } && {
10457 test -z "$ac_cxx_werror_flag" ||
10458 test ! -s conftest.err
10459 } && test -s conftest.$ac_objext; then
10460 ac_header_compiler=yes
10462 $as_echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 ac_header_compiler=no
10468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10469 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10470 $as_echo "$ac_header_compiler" >&6; }
10472 # Is the header present?
10473 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10474 $as_echo_n "checking $ac_header presence... " >&6; }
10475 cat >conftest.$ac_ext <<_ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 #include <$ac_header>
10483 if { (ac_try="$ac_cpp conftest.$ac_ext"
10484 case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10489 $as_echo "$ac_try_echo") >&5
10490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10492 grep -v '^ *+' conftest.er1 >conftest.err
10494 cat conftest.err >&5
10495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } >/dev/null && {
10497 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10498 test ! -s conftest.err
10500 ac_header_preproc=yes
10502 $as_echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10505 ac_header_preproc=no
10508 rm -f conftest.err conftest.$ac_ext
10509 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10510 $as_echo "$ac_header_preproc" >&6; }
10512 # So? What about this header?
10513 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10516 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10518 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10519 ac_header_preproc=yes
10522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10523 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10525 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10527 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10529 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10531 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10533 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10537 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10538 $as_echo_n "checking for $ac_header... " >&6; }
10539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10540 $as_echo_n "(cached) " >&6
10542 eval "$as_ac_Header=\$ac_header_preproc"
10544 ac_res=`eval 'as_val=${'$as_ac_Header'}
10545 $as_echo "$as_val"'`
10546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10547 $as_echo "$ac_res" >&6; }
10550 as_val=`eval 'as_val=${'$as_ac_Header'}
10551 $as_echo "$as_val"'`
10552 if test "x$as_val" = x""yes; then
10553 cat >>confdefs.h <<_ACEOF
10554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10561 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10562 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10563 if test "${ac_cv_header_stat_broken+set}" = set; then
10564 $as_echo_n "(cached) " >&6
10566 cat >conftest.$ac_ext <<_ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 #include <sys/types.h>
10573 #include <sys/stat.h>
10575 #if defined S_ISBLK && defined S_IFDIR
10576 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10579 #if defined S_ISBLK && defined S_IFCHR
10580 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10583 #if defined S_ISLNK && defined S_IFREG
10584 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10587 #if defined S_ISSOCK && defined S_IFREG
10588 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10592 rm -f conftest.$ac_objext
10593 if { (ac_try="$ac_compile"
10594 case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10599 $as_echo "$ac_try_echo") >&5
10600 (eval "$ac_compile") 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_cxx_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest.$ac_objext; then
10610 ac_cv_header_stat_broken=no
10612 $as_echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10615 ac_cv_header_stat_broken=yes
10618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10621 $as_echo "$ac_cv_header_stat_broken" >&6; }
10622 if test $ac_cv_header_stat_broken = yes; then
10624 cat >>confdefs.h <<\_ACEOF
10625 #define STAT_MACROS_BROKEN 1
10630 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
10631 $as_echo_n "checking for working memcmp... " >&6; }
10632 if test "${ac_cv_func_memcmp_working+set}" = set; then
10633 $as_echo_n "(cached) " >&6
10635 if test "$cross_compiling" = yes; then
10636 ac_cv_func_memcmp_working=no
10638 cat >conftest.$ac_ext <<_ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10644 $ac_includes_default
10649 /* Some versions of memcmp are not 8-bit clean. */
10650 char c0 = '\100', c1 = '\200', c2 = '\201';
10651 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10654 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10655 or more and with at least one buffer not starting on a 4-byte boundary.
10656 William Lewis provided this test program. */
10661 for (i = 0; i < 4; i++)
10665 strcpy (a, "--------01111111");
10666 strcpy (b, "--------10000000");
10667 if (memcmp (a, b, 16) >= 0)
10677 rm -f conftest$ac_exeext
10678 if { (ac_try="$ac_link"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685 (eval "$ac_link") 2>&5
10687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10689 { (case "(($ac_try" in
10690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691 *) ac_try_echo=$ac_try;;
10693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10694 $as_echo "$ac_try_echo") >&5
10695 (eval "$ac_try") 2>&5
10697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 ac_cv_func_memcmp_working=yes
10701 $as_echo "$as_me: program exited with status $ac_status" >&5
10702 $as_echo "$as_me: failed program was:" >&5
10703 sed 's/^/| /' conftest.$ac_ext >&5
10705 ( exit $ac_status )
10706 ac_cv_func_memcmp_working=no
10708 rm -rf conftest.dSYM
10709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10714 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10715 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10716 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10717 *" memcmp.$ac_objext "* ) ;;
10718 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10724 for ac_func in vprintf
10726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10727 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10728 $as_echo_n "checking for $ac_func... " >&6; }
10729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10730 $as_echo_n "(cached) " >&6
10732 cat >conftest.$ac_ext <<_ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h. */
10738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10740 #define $ac_func innocuous_$ac_func
10742 /* System header to define __stub macros and hopefully few prototypes,
10743 which can conflict with char $ac_func (); below.
10744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10745 <limits.h> exists even on freestanding compilers. */
10748 # include <limits.h>
10750 # include <assert.h>
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10762 /* The GNU C library defines this for functions which it implements
10763 to always fail with ENOSYS. Some functions are actually named
10764 something starting with __ and the normal name is an alias. */
10765 #if defined __stub_$ac_func || defined __stub___$ac_func
10772 return $ac_func ();
10777 rm -f conftest.$ac_objext conftest$ac_exeext
10778 if { (ac_try="$ac_link"
10779 case "(($ac_try" in
10780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10781 *) ac_try_echo=$ac_try;;
10783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10784 $as_echo "$ac_try_echo") >&5
10785 (eval "$ac_link") 2>conftest.er1
10787 grep -v '^ *+' conftest.er1 >conftest.err
10789 cat conftest.err >&5
10790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_cxx_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest$ac_exeext && {
10795 test "$cross_compiling" = yes ||
10796 $as_test_x conftest$ac_exeext
10798 eval "$as_ac_var=yes"
10800 $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 eval "$as_ac_var=no"
10806 rm -rf conftest.dSYM
10807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10808 conftest$ac_exeext conftest.$ac_ext
10810 ac_res=`eval 'as_val=${'$as_ac_var'}
10811 $as_echo "$as_val"'`
10812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10813 $as_echo "$ac_res" >&6; }
10814 as_val=`eval 'as_val=${'$as_ac_var'}
10815 $as_echo "$as_val"'`
10816 if test "x$as_val" = x""yes; then
10817 cat >>confdefs.h <<_ACEOF
10818 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10821 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10822 $as_echo_n "checking for _doprnt... " >&6; }
10823 if test "${ac_cv_func__doprnt+set}" = set; then
10824 $as_echo_n "(cached) " >&6
10826 cat >conftest.$ac_ext <<_ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10834 #define _doprnt innocuous__doprnt
10836 /* System header to define __stub macros and hopefully few prototypes,
10837 which can conflict with char _doprnt (); below.
10838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10839 <limits.h> exists even on freestanding compilers. */
10842 # include <limits.h>
10844 # include <assert.h>
10849 /* Override any GCC internal prototype to avoid an error.
10850 Use char because int might match the return type of a GCC
10851 builtin and then its argument prototype would still apply. */
10856 /* The GNU C library defines this for functions which it implements
10857 to always fail with ENOSYS. Some functions are actually named
10858 something starting with __ and the normal name is an alias. */
10859 #if defined __stub__doprnt || defined __stub____doprnt
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (ac_try="$ac_link"
10873 case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10878 $as_echo "$ac_try_echo") >&5
10879 (eval "$ac_link") 2>conftest.er1
10881 grep -v '^ *+' conftest.er1 >conftest.err
10883 cat conftest.err >&5
10884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_cxx_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest$ac_exeext && {
10889 test "$cross_compiling" = yes ||
10890 $as_test_x conftest$ac_exeext
10892 ac_cv_func__doprnt=yes
10894 $as_echo "$as_me: failed program was:" >&5
10895 sed 's/^/| /' conftest.$ac_ext >&5
10897 ac_cv_func__doprnt=no
10900 rm -rf conftest.dSYM
10901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10902 conftest$ac_exeext conftest.$ac_ext
10904 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10905 $as_echo "$ac_cv_func__doprnt" >&6; }
10906 if test "x$ac_cv_func__doprnt" = x""yes; then
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_DOPRNT 1
10925 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
10927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10928 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10929 $as_echo_n "checking for $ac_func... " >&6; }
10930 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10931 $as_echo_n "(cached) " >&6
10933 cat >conftest.$ac_ext <<_ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10941 #define $ac_func innocuous_$ac_func
10943 /* System header to define __stub macros and hopefully few prototypes,
10944 which can conflict with char $ac_func (); below.
10945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10946 <limits.h> exists even on freestanding compilers. */
10949 # include <limits.h>
10951 # include <assert.h>
10956 /* Override any GCC internal prototype to avoid an error.
10957 Use char because int might match the return type of a GCC
10958 builtin and then its argument prototype would still apply. */
10963 /* The GNU C library defines this for functions which it implements
10964 to always fail with ENOSYS. Some functions are actually named
10965 something starting with __ and the normal name is an alias. */
10966 #if defined __stub_$ac_func || defined __stub___$ac_func
10973 return $ac_func ();
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (ac_try="$ac_link"
10980 case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10985 $as_echo "$ac_try_echo") >&5
10986 (eval "$ac_link") 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } && {
10993 test -z "$ac_cxx_werror_flag" ||
10994 test ! -s conftest.err
10995 } && test -s conftest$ac_exeext && {
10996 test "$cross_compiling" = yes ||
10997 $as_test_x conftest$ac_exeext
10999 eval "$as_ac_var=yes"
11001 $as_echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11004 eval "$as_ac_var=no"
11007 rm -rf conftest.dSYM
11008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11009 conftest$ac_exeext conftest.$ac_ext
11011 ac_res=`eval 'as_val=${'$as_ac_var'}
11012 $as_echo "$as_val"'`
11013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11014 $as_echo "$ac_res" >&6; }
11015 as_val=`eval 'as_val=${'$as_ac_var'}
11016 $as_echo "$as_val"'`
11017 if test "x$as_val" = x""yes; then
11018 cat >>confdefs.h <<_ACEOF
11019 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11027 for ac_prog in pkg-config
11029 # Extract the first word of "$ac_prog", so it can be a program name with args.
11030 set dummy $ac_prog; ac_word=$2
11031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11032 $as_echo_n "checking for $ac_word... " >&6; }
11033 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
11034 $as_echo_n "(cached) " >&6
11036 if test -n "$PKG_CONFIG"; then
11037 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11043 test -z "$as_dir" && as_dir=.
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11046 ac_cv_prog_PKG_CONFIG="$ac_prog"
11047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11057 if test -n "$PKG_CONFIG"; then
11058 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11059 $as_echo "$PKG_CONFIG" >&6; }
11061 { $as_echo "$as_me:$LINENO: result: no" >&5
11062 $as_echo "no" >&6; }
11066 test -n "$PKG_CONFIG" && break
11068 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
11072 r="`eval echo '$'"PKG_CONFIG"`"
11073 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
11076 ##STEPMAKE_WARN(cannot find . )
11080 if test $? -ne 0; then
11082 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
11084 if test "REQUIRED" = "REQUIRED"; then
11085 command="echo ERROR: pkg-config not found"
11086 # abort configure process here?
11088 command="- echo pkg-config not found"
11090 eval "PKG_CONFIG"='$command'
11096 if test $? -eq 0 -a -n "0.9.0"; then
11098 r="`eval echo '$'"PKG_CONFIG"`"
11099 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11100 $as_echo_n "checking $r version... " >&6; }
11102 ## which doesn't work in ash, if /usr/bin/which isn't installed
11103 ## type -p doesn't work in ash
11104 ## command -v doesn't work in zsh
11105 ## command -v "$r" 2>&1
11106 ## this test should work in ash, bash, pdksh (ksh), zsh
11107 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11109 if test -n ""; then
11113 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11116 ## Workaround for broken Debian gcc version string:
11117 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11119 ## -V: Workaround for python
11123 ## Assume and hunt for dotted version multiplet.
11124 ## use eval trickery, because we cannot use multi-level $() instead of ``
11125 ## for compatibility reasons.
11127 ## grab the first version number in --version output.
11128 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11129 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11132 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11133 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11136 if test -z "$_ver"; then
11137 ## If empty, try date [fontforge]
11138 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11140 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11147 echo "$ver" | awk -F. '
11149 if ($3) {three = $3}
11152 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11155 echo "0.9.0" | awk -F. '
11157 if ($3) {three = $3}
11160 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11162 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11163 $as_echo "$ver" >&6; }
11164 if test "$num" -lt "$req"; then
11166 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
11169 vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
11170 eval `echo $vervar=$num`
11171 ## AC_SUBST(`eval echo $vervar`)
11176 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
11177 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
11178 if test "$reloc_b" = "yes"; then
11179 cat >>confdefs.h <<\_ACEOF
11180 #define ARGV0_RELOCATION 1
11184 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
11185 $as_echo "$reloc_b" >&6; }
11187 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
11188 $as_echo_n "checking for rpath linkage... " >&6; }
11189 if test "$rpath_b" = "yes"; then
11190 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
11191 elif test "$rpath_b" != "no"; then
11192 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
11194 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
11195 $as_echo "$rpath_b" >&6; }
11197 HOST_ARCH=`$CC -dumpmachine`
11204 if test -z "$PKG_CONFIG"; then
11205 # Extract the first word of "pkg-config", so it can be a program name with args.
11206 set dummy pkg-config; ac_word=$2
11207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11208 $as_echo_n "checking for $ac_word... " >&6; }
11209 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11210 $as_echo_n "(cached) " >&6
11212 case $PKG_CONFIG in
11214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11232 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11236 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11237 if test -n "$PKG_CONFIG"; then
11238 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11239 $as_echo "$PKG_CONFIG" >&6; }
11241 { $as_echo "$as_me:$LINENO: result: no" >&5
11242 $as_echo "no" >&6; }
11248 if test "$PKG_CONFIG" = "no" ; then
11249 echo "*** The pkg-config script could not be found. Make sure it is"
11250 echo "*** in your path, or set the PKG_CONFIG environment variable"
11251 echo "*** to the full path to pkg-config."
11252 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11254 PKG_CONFIG_MIN_VERSION=0.9.0
11255 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11256 { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11257 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11259 if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11260 { $as_echo "$as_me:$LINENO: result: yes" >&5
11261 $as_echo "yes" >&6; }
11264 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11265 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11266 PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11267 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11268 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11270 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11271 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11272 PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11273 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11274 $as_echo "$PANGO_FT2_LIBS" >&6; }
11276 PANGO_FT2_CFLAGS=""
11278 ## If we have a custom action on failure, don't print errors, but
11279 ## do set a variable so people can do so.
11280 PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11289 if test $succeeded = yes; then
11295 if test "$have_pangoft2" = yes ; then
11296 cat >>confdefs.h <<\_ACEOF
11297 #define HAVE_PANGO16 1
11300 cat >>confdefs.h <<\_ACEOF
11301 #define HAVE_PANGO_FT2 1
11304 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11305 save_CPPFLAGS="$CPPFLAGS"
11307 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11308 LIBS="$PANGO_FT2_LIBS $LIBS"
11310 for ac_header in pango/pangoft2.h
11312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11315 $as_echo_n "checking for $ac_header... " >&6; }
11316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 $as_echo_n "(cached) " >&6
11319 ac_res=`eval 'as_val=${'$as_ac_Header'}
11320 $as_echo "$as_val"'`
11321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11322 $as_echo "$ac_res" >&6; }
11324 # Is the header compilable?
11325 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11326 $as_echo_n "checking $ac_header usability... " >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 $ac_includes_default
11334 #include <$ac_header>
11336 rm -f conftest.$ac_objext
11337 if { (ac_try="$ac_compile"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11343 $as_echo "$ac_try_echo") >&5
11344 (eval "$ac_compile") 2>conftest.er1
11346 grep -v '^ *+' conftest.er1 >conftest.err
11348 cat conftest.err >&5
11349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && {
11351 test -z "$ac_cxx_werror_flag" ||
11352 test ! -s conftest.err
11353 } && test -s conftest.$ac_objext; then
11354 ac_header_compiler=yes
11356 $as_echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11359 ac_header_compiler=no
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11363 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11364 $as_echo "$ac_header_compiler" >&6; }
11366 # Is the header present?
11367 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11368 $as_echo_n "checking $ac_header presence... " >&6; }
11369 cat >conftest.$ac_ext <<_ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 #include <$ac_header>
11377 if { (ac_try="$ac_cpp conftest.$ac_ext"
11378 case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11383 $as_echo "$ac_try_echo") >&5
11384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11386 grep -v '^ *+' conftest.er1 >conftest.err
11388 cat conftest.err >&5
11389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } >/dev/null && {
11391 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11392 test ! -s conftest.err
11394 ac_header_preproc=yes
11396 $as_echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11399 ac_header_preproc=no
11402 rm -f conftest.err conftest.$ac_ext
11403 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11404 $as_echo "$ac_header_preproc" >&6; }
11406 # So? What about this header?
11407 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11410 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11412 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11413 ac_header_preproc=yes
11416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11417 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11419 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11421 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11423 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11425 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11427 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 $as_echo_n "checking for $ac_header... " >&6; }
11433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 $as_echo_n "(cached) " >&6
11436 eval "$as_ac_Header=\$ac_header_preproc"
11438 ac_res=`eval 'as_val=${'$as_ac_Header'}
11439 $as_echo "$as_val"'`
11440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11441 $as_echo "$ac_res" >&6; }
11444 as_val=`eval 'as_val=${'$as_ac_Header'}
11445 $as_echo "$as_val"'`
11446 if test "x$as_val" = x""yes; then
11447 cat >>confdefs.h <<_ACEOF
11448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11456 for ac_func in pango_ft2_font_map_create_context
11458 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11459 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11460 $as_echo_n "checking for $ac_func... " >&6; }
11461 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11462 $as_echo_n "(cached) " >&6
11464 cat >conftest.$ac_ext <<_ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h. */
11470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11472 #define $ac_func innocuous_$ac_func
11474 /* System header to define __stub macros and hopefully few prototypes,
11475 which can conflict with char $ac_func (); below.
11476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11477 <limits.h> exists even on freestanding compilers. */
11480 # include <limits.h>
11482 # include <assert.h>
11487 /* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11494 /* The GNU C library defines this for functions which it implements
11495 to always fail with ENOSYS. Some functions are actually named
11496 something starting with __ and the normal name is an alias. */
11497 #if defined __stub_$ac_func || defined __stub___$ac_func
11504 return $ac_func ();
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (ac_try="$ac_link"
11511 case "(($ac_try" in
11512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11516 $as_echo "$ac_try_echo") >&5
11517 (eval "$ac_link") 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } && {
11524 test -z "$ac_cxx_werror_flag" ||
11525 test ! -s conftest.err
11526 } && test -s conftest$ac_exeext && {
11527 test "$cross_compiling" = yes ||
11528 $as_test_x conftest$ac_exeext
11530 eval "$as_ac_var=yes"
11532 $as_echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 eval "$as_ac_var=no"
11538 rm -rf conftest.dSYM
11539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11540 conftest$ac_exeext conftest.$ac_ext
11542 ac_res=`eval 'as_val=${'$as_ac_var'}
11543 $as_echo "$as_val"'`
11544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11545 $as_echo "$ac_res" >&6; }
11546 as_val=`eval 'as_val=${'$as_ac_var'}
11547 $as_echo "$as_val"'`
11548 if test "x$as_val" = x""yes; then
11549 cat >>confdefs.h <<_ACEOF
11550 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11558 CPPFLAGS="$save_CPPFLAGS"
11562 #r="libpangoft2-dev or pangoft2-devel"e
11563 r="libpango1.0-dev or pango?-devel"
11564 ver="`pkg-config --modversion pangoft2`"
11566 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11574 if test -z "$PKG_CONFIG"; then
11575 # Extract the first word of "pkg-config", so it can be a program name with args.
11576 set dummy pkg-config; ac_word=$2
11577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11580 $as_echo_n "(cached) " >&6
11582 case $PKG_CONFIG in
11584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11588 for as_dir in $PATH
11591 test -z "$as_dir" && as_dir=.
11592 for ac_exec_ext in '' $ac_executable_extensions; do
11593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11602 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11606 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11607 if test -n "$PKG_CONFIG"; then
11608 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11609 $as_echo "$PKG_CONFIG" >&6; }
11611 { $as_echo "$as_me:$LINENO: result: no" >&5
11612 $as_echo "no" >&6; }
11618 if test "$PKG_CONFIG" = "no" ; then
11619 echo "*** The pkg-config script could not be found. Make sure it is"
11620 echo "*** in your path, or set the PKG_CONFIG environment variable"
11621 echo "*** to the full path to pkg-config."
11622 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11624 PKG_CONFIG_MIN_VERSION=0.9.0
11625 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11626 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
11627 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
11629 if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
11630 { $as_echo "$as_me:$LINENO: result: yes" >&5
11631 $as_echo "yes" >&6; }
11634 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11635 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11636 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
11637 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11638 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11640 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11641 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11642 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
11643 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11644 $as_echo "$FONTCONFIG_LIBS" >&6; }
11646 FONTCONFIG_CFLAGS=""
11648 ## If we have a custom action on failure, don't print errors, but
11649 ## do set a variable so people can do so.
11650 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
11659 if test $succeeded = yes; then
11660 have_fontconfig=yes
11665 if test "$have_fontconfig" = yes ; then
11666 cat >>confdefs.h <<\_ACEOF
11667 #define HAVE_FONTCONFIG 1
11670 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11671 save_CPPFLAGS="$CPPFLAGS"
11673 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11674 LIBS="$FONTCONFIG_LIBS $LIBS"
11677 CPPFLAGS="$save_CPPFLAGS"
11680 r="libfontconfig-dev or fontconfig-devel"
11681 ver="`pkg-config --modversion fontconfig`"
11683 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
11691 if test -z "$PKG_CONFIG"; then
11692 # Extract the first word of "pkg-config", so it can be a program name with args.
11693 set dummy pkg-config; ac_word=$2
11694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11695 $as_echo_n "checking for $ac_word... " >&6; }
11696 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11697 $as_echo_n "(cached) " >&6
11699 case $PKG_CONFIG in
11701 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11711 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11719 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11723 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11724 if test -n "$PKG_CONFIG"; then
11725 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11726 $as_echo "$PKG_CONFIG" >&6; }
11728 { $as_echo "$as_me:$LINENO: result: no" >&5
11729 $as_echo "no" >&6; }
11735 if test "$PKG_CONFIG" = "no" ; then
11736 echo "*** The pkg-config script could not be found. Make sure it is"
11737 echo "*** in your path, or set the PKG_CONFIG environment variable"
11738 echo "*** to the full path to pkg-config."
11739 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11741 PKG_CONFIG_MIN_VERSION=0.9.0
11742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11743 { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
11744 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
11746 if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
11747 { $as_echo "$as_me:$LINENO: result: yes" >&5
11748 $as_echo "yes" >&6; }
11751 { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11752 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
11753 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
11754 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11755 $as_echo "$FREETYPE2_CFLAGS" >&6; }
11757 { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11758 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
11759 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
11760 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11761 $as_echo "$FREETYPE2_LIBS" >&6; }
11763 FREETYPE2_CFLAGS=""
11765 ## If we have a custom action on failure, don't print errors, but
11766 ## do set a variable so people can do so.
11767 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
11776 if test $succeeded = yes; then
11782 if test "$have_freetype2" = yes; then
11783 cat >>confdefs.h <<\_ACEOF
11784 #define HAVE_FREETYPE2 1
11787 save_CPPFLAGS="$CPPFLAGS"
11789 CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
11790 LIBS="$FREETYPE2_LIBS $LIBS"
11793 CPPFLAGS="$save_CPPFLAGS"
11797 #r="libfreetype2-dev or freetype2-devel"
11798 r="libfreetype6-dev or freetype?-devel"
11799 ver="`pkg-config --modversion freetype2`"
11801 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
11807 { $as_echo "$as_me:$LINENO: checking host system type" >&5
11808 $as_echo_n "checking host system type... " >&6; }
11809 if test "${ac_cv_host+set}" = set; then
11810 $as_echo_n "(cached) " >&6
11812 if test "x$host_alias" = x; then
11813 ac_cv_host=$ac_cv_build
11815 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11816 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11817 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11818 { (exit 1); exit 1; }; }
11822 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11823 $as_echo "$ac_cv_host" >&6; }
11824 case $ac_cv_host in
11826 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11827 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11828 { (exit 1); exit 1; }; };;
11831 ac_save_IFS=$IFS; IFS='-'
11837 # Remember, the first character of IFS is used to create $*,
11838 # except with old shells:
11841 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11845 *cygwin* ) CYGWIN=yes;;
11849 { $as_echo "$as_me:$LINENO: checking host system type" >&5
11850 $as_echo_n "checking host system type... " >&6; }
11851 if test "${ac_cv_host+set}" = set; then
11852 $as_echo_n "(cached) " >&6
11854 if test "x$host_alias" = x; then
11855 ac_cv_host=$ac_cv_build
11857 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11858 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11859 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11860 { (exit 1); exit 1; }; }
11864 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11865 $as_echo "$ac_cv_host" >&6; }
11866 case $ac_cv_host in
11868 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11869 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11870 { (exit 1); exit 1; }; };;
11873 ac_save_IFS=$IFS; IFS='-'
11879 # Remember, the first character of IFS is used to create $*,
11880 # except with old shells:
11883 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11887 *mingw32* ) MINGW32=yes;;
11892 if test "$CYGWIN" = "yes"; then
11893 LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
11894 program_suffix=.exe
11895 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11896 elif test "$MINGW32" = "yes"; then
11899 program_suffix=.exe
11900 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11906 cat >>confdefs.h <<_ACEOF
11907 #define DIRSEP '${DIRSEP}'
11910 cat >>confdefs.h <<_ACEOF
11911 #define PATHSEP '${PATHSEP}'
11918 { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
11919 $as_echo_n "checking for some flavor of Windows... " >&6; }
11920 if test "$CYGWIN$MINGW32" = "nono"; then
11921 PLATFORM_WINDOWS=no
11923 PLATFORM_WINDOWS=yes
11925 { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
11926 $as_echo "$PLATFORM_WINDOWS" >&6; }
11929 for ac_prog in $target-windres windres
11931 # Extract the first word of "$ac_prog", so it can be a program name with args.
11932 set dummy $ac_prog; ac_word=$2
11933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11934 $as_echo_n "checking for $ac_word... " >&6; }
11935 if test "${ac_cv_prog_WINDRES+set}" = set; then
11936 $as_echo_n "(cached) " >&6
11938 if test -n "$WINDRES"; then
11939 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11945 test -z "$as_dir" && as_dir=.
11946 for ac_exec_ext in '' $ac_executable_extensions; do
11947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11948 ac_cv_prog_WINDRES="$ac_prog"
11949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11958 WINDRES=$ac_cv_prog_WINDRES
11959 if test -n "$WINDRES"; then
11960 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
11961 $as_echo "$WINDRES" >&6; }
11963 { $as_echo "$as_me:$LINENO: result: no" >&5
11964 $as_echo "no" >&6; }
11968 test -n "$WINDRES" && break
11970 test -n "$WINDRES" || WINDRES="no"
11974 r="`eval echo '$'"WINDRES"`"
11975 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
11978 ##STEPMAKE_WARN(cannot find . )
11982 if test $? -ne 0; then
11984 eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
11986 if test "x" = "REQUIRED"; then
11987 command="echo ERROR: $target-windres windres not found"
11988 # abort configure process here?
11990 command="- echo $target-windres windres not found"
11992 eval "WINDRES"='$command'
11998 if test $? -eq 0 -a -n ""; then
12000 r="`eval echo '$'"WINDRES"`"
12001 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12002 $as_echo_n "checking $r version... " >&6; }
12004 ## which doesn't work in ash, if /usr/bin/which isn't installed
12005 ## type -p doesn't work in ash
12006 ## command -v doesn't work in zsh
12007 ## command -v "$r" 2>&1
12008 ## this test should work in ash, bash, pdksh (ksh), zsh
12009 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12011 if test -n ""; then
12015 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12018 ## Workaround for broken Debian gcc version string:
12019 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12021 ## -V: Workaround for python
12025 ## Assume and hunt for dotted version multiplet.
12026 ## use eval trickery, because we cannot use multi-level $() instead of ``
12027 ## for compatibility reasons.
12029 ## grab the first version number in --version output.
12030 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12031 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12034 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12035 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12038 if test -z "$_ver"; then
12039 ## If empty, try date [fontforge]
12040 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12042 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12049 echo "$ver" | awk -F. '
12051 if ($3) {three = $3}
12054 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12057 echo "" | awk -F. '
12059 if ($3) {three = $3}
12062 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12064 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12065 $as_echo "$ver" >&6; }
12066 if test "$num" -lt "$req"; then
12068 eval "x"=\"`eval echo \"'$'x\" \""$r >= (installed: $ver)"\"`\"
12071 vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
12072 eval `echo $vervar=$num`
12073 ## AC_SUBST(`eval echo $vervar`)
12080 ## Optional tools for building documentation, website, extra fonts.
12082 # guile executable for some scripts
12085 for ac_prog in guile guile1
12087 # Extract the first word of "$ac_prog", so it can be a program name with args.
12088 set dummy $ac_prog; ac_word=$2
12089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12090 $as_echo_n "checking for $ac_word... " >&6; }
12091 if test "${ac_cv_prog_GUILE+set}" = set; then
12092 $as_echo_n "(cached) " >&6
12094 if test -n "$GUILE"; then
12095 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_prog_GUILE="$ac_prog"
12105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12114 GUILE=$ac_cv_prog_GUILE
12115 if test -n "$GUILE"; then
12116 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12117 $as_echo "$GUILE" >&6; }
12119 { $as_echo "$as_me:$LINENO: result: no" >&5
12120 $as_echo "no" >&6; }
12124 test -n "$GUILE" && break
12126 test -n "$GUILE" || GUILE="no"
12130 r="`eval echo '$'"GUILE"`"
12131 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
12134 ##STEPMAKE_WARN(cannot find . )
12138 if test $? -ne 0; then
12140 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile guile1\"`\"
12142 if test "OPTIONAL" = "REQUIRED"; then
12143 command="echo ERROR: guile guile1 not found"
12144 # abort configure process here?
12146 command="- echo guile guile1 not found"
12148 eval "GUILE"='$command'
12154 if test $? -eq 0; then
12155 for ac_prog in guile guile1
12157 # Extract the first word of "$ac_prog", so it can be a program name with args.
12158 set dummy $ac_prog; ac_word=$2
12159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12160 $as_echo_n "checking for $ac_word... " >&6; }
12161 if test "${ac_cv_path_GUILE+set}" = set; then
12162 $as_echo_n "(cached) " >&6
12166 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12173 test -z "$as_dir" && as_dir=.
12174 for ac_exec_ext in '' $ac_executable_extensions; do
12175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12176 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 GUILE=$ac_cv_path_GUILE
12188 if test -n "$GUILE"; then
12189 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12190 $as_echo "$GUILE" >&6; }
12192 { $as_echo "$as_me:$LINENO: result: no" >&5
12193 $as_echo "no" >&6; }
12197 test -n "$GUILE" && break
12200 if test -n ""; then
12202 r="`eval echo '$'"GUILE"`"
12203 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12204 $as_echo_n "checking $r version... " >&6; }
12206 ## which doesn't work in ash, if /usr/bin/which isn't installed
12207 ## type -p doesn't work in ash
12208 ## command -v doesn't work in zsh
12209 ## command -v "$r" 2>&1
12210 ## this test should work in ash, bash, pdksh (ksh), zsh
12211 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12213 if test -n ""; then
12217 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12220 ## Workaround for broken Debian gcc version string:
12221 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12223 ## -V: Workaround for python
12227 ## Assume and hunt for dotted version multiplet.
12228 ## use eval trickery, because we cannot use multi-level $() instead of ``
12229 ## for compatibility reasons.
12231 ## grab the first version number in --version output.
12232 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12233 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12236 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12237 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12240 if test -z "$_ver"; then
12241 ## If empty, try date [fontforge]
12242 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12244 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12251 echo "$ver" | awk -F. '
12253 if ($3) {three = $3}
12256 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12259 echo "" | awk -F. '
12261 if ($3) {three = $3}
12264 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12266 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12267 $as_echo "$ver" >&6; }
12268 if test "$num" -lt "$req"; then
12270 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
12273 vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12274 eval `echo $vervar=$num`
12275 ## AC_SUBST(`eval echo $vervar`)
12282 # perl for help2man.
12285 for ac_prog in perl
12287 # Extract the first word of "$ac_prog", so it can be a program name with args.
12288 set dummy $ac_prog; ac_word=$2
12289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12290 $as_echo_n "checking for $ac_word... " >&6; }
12291 if test "${ac_cv_prog_PERL+set}" = set; then
12292 $as_echo_n "(cached) " >&6
12294 if test -n "$PERL"; then
12295 ac_cv_prog_PERL="$PERL" # Let the user override the test.
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in $PATH
12301 test -z "$as_dir" && as_dir=.
12302 for ac_exec_ext in '' $ac_executable_extensions; do
12303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12304 ac_cv_prog_PERL="$ac_prog"
12305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 PERL=$ac_cv_prog_PERL
12315 if test -n "$PERL"; then
12316 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12317 $as_echo "$PERL" >&6; }
12319 { $as_echo "$as_me:$LINENO: result: no" >&5
12320 $as_echo "no" >&6; }
12324 test -n "$PERL" && break
12326 test -n "$PERL" || PERL="no"
12330 r="`eval echo '$'"PERL"`"
12331 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12334 ##STEPMAKE_WARN(cannot find . )
12338 if test $? -ne 0; then
12340 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\"
12342 if test "OPTIONAL" = "REQUIRED"; then
12343 command="echo ERROR: perl not found"
12344 # abort configure process here?
12346 command="- echo perl not found"
12348 eval "PERL"='$command'
12354 if test $? -eq 0; then
12355 for ac_prog in perl
12357 # Extract the first word of "$ac_prog", so it can be a program name with args.
12358 set dummy $ac_prog; ac_word=$2
12359 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12360 $as_echo_n "checking for $ac_word... " >&6; }
12361 if test "${ac_cv_path_PERL+set}" = set; then
12362 $as_echo_n "(cached) " >&6
12366 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370 for as_dir in $PATH
12373 test -z "$as_dir" && as_dir=.
12374 for ac_exec_ext in '' $ac_executable_extensions; do
12375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12376 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12377 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12387 PERL=$ac_cv_path_PERL
12388 if test -n "$PERL"; then
12389 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12390 $as_echo "$PERL" >&6; }
12392 { $as_echo "$as_me:$LINENO: result: no" >&5
12393 $as_echo "no" >&6; }
12397 test -n "$PERL" && break
12400 if test -n ""; then
12402 r="`eval echo '$'"PERL"`"
12403 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12404 $as_echo_n "checking $r version... " >&6; }
12406 ## which doesn't work in ash, if /usr/bin/which isn't installed
12407 ## type -p doesn't work in ash
12408 ## command -v doesn't work in zsh
12409 ## command -v "$r" 2>&1
12410 ## this test should work in ash, bash, pdksh (ksh), zsh
12411 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12413 if test -n ""; then
12417 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12420 ## Workaround for broken Debian gcc version string:
12421 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12423 ## -V: Workaround for python
12427 ## Assume and hunt for dotted version multiplet.
12428 ## use eval trickery, because we cannot use multi-level $() instead of ``
12429 ## for compatibility reasons.
12431 ## grab the first version number in --version output.
12432 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12433 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12436 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12437 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12440 if test -z "$_ver"; then
12441 ## If empty, try date [fontforge]
12442 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12444 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12451 echo "$ver" | awk -F. '
12453 if ($3) {three = $3}
12456 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12459 echo "" | awk -F. '
12461 if ($3) {three = $3}
12464 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12466 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12467 $as_echo "$ver" >&6; }
12468 if test "$num" -lt "$req"; then
12470 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
12473 vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12474 eval `echo $vervar=$num`
12475 ## AC_SUBST(`eval echo $vervar`)
12483 for ac_prog in makeinfo
12485 # Extract the first word of "$ac_prog", so it can be a program name with args.
12486 set dummy $ac_prog; ac_word=$2
12487 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12488 $as_echo_n "checking for $ac_word... " >&6; }
12489 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12490 $as_echo_n "(cached) " >&6
12492 if test -n "$MAKEINFO"; then
12493 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12502 ac_cv_prog_MAKEINFO="$ac_prog"
12503 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 MAKEINFO=$ac_cv_prog_MAKEINFO
12513 if test -n "$MAKEINFO"; then
12514 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12515 $as_echo "$MAKEINFO" >&6; }
12517 { $as_echo "$as_me:$LINENO: result: no" >&5
12518 $as_echo "no" >&6; }
12522 test -n "$MAKEINFO" && break
12524 test -n "$MAKEINFO" || MAKEINFO="no"
12528 r="`eval echo '$'"MAKEINFO"`"
12529 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
12532 ##STEPMAKE_WARN(cannot find . )
12536 if test $? -ne 0; then
12538 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
12540 if test "REQUIRED" = "REQUIRED"; then
12541 command="echo ERROR: makeinfo not found"
12542 # abort configure process here?
12544 command="- echo makeinfo not found"
12546 eval "MAKEINFO"='$command'
12552 if test $? -eq 0 -a -n "4.11"; then
12554 r="`eval echo '$'"MAKEINFO"`"
12555 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12556 $as_echo_n "checking $r version... " >&6; }
12558 ## which doesn't work in ash, if /usr/bin/which isn't installed
12559 ## type -p doesn't work in ash
12560 ## command -v doesn't work in zsh
12561 ## command -v "$r" 2>&1
12562 ## this test should work in ash, bash, pdksh (ksh), zsh
12563 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12565 if test -n ""; then
12569 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12572 ## Workaround for broken Debian gcc version string:
12573 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12575 ## -V: Workaround for python
12579 ## Assume and hunt for dotted version multiplet.
12580 ## use eval trickery, because we cannot use multi-level $() instead of ``
12581 ## for compatibility reasons.
12583 ## grab the first version number in --version output.
12584 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12585 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12588 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12589 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12592 if test -z "$_ver"; then
12593 ## If empty, try date [fontforge]
12594 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12596 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12603 echo "$ver" | awk -F. '
12605 if ($3) {three = $3}
12608 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12611 echo "4.11" | awk -F. '
12613 if ($3) {three = $3}
12616 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12618 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12619 $as_echo "$ver" >&6; }
12620 if test "$num" -lt "$req"; then
12622 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
12625 vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
12626 eval `echo $vervar=$num`
12627 ## AC_SUBST(`eval echo $vervar`)
12632 for ac_prog in texi2html
12634 # Extract the first word of "$ac_prog", so it can be a program name with args.
12635 set dummy $ac_prog; ac_word=$2
12636 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12637 $as_echo_n "checking for $ac_word... " >&6; }
12638 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
12639 $as_echo_n "(cached) " >&6
12641 if test -n "$TEXI2HTML"; then
12642 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12645 for as_dir in $PATH
12648 test -z "$as_dir" && as_dir=.
12649 for ac_exec_ext in '' $ac_executable_extensions; do
12650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12651 ac_cv_prog_TEXI2HTML="$ac_prog"
12652 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 TEXI2HTML=$ac_cv_prog_TEXI2HTML
12662 if test -n "$TEXI2HTML"; then
12663 { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
12664 $as_echo "$TEXI2HTML" >&6; }
12666 { $as_echo "$as_me:$LINENO: result: no" >&5
12667 $as_echo "no" >&6; }
12671 test -n "$TEXI2HTML" && break
12673 test -n "$TEXI2HTML" || TEXI2HTML="no"
12677 r="`eval echo '$'"TEXI2HTML"`"
12678 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
12681 ##STEPMAKE_WARN(cannot find . )
12685 if test $? -ne 0; then
12687 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"texi2html\"`\"
12689 if test "OPTIONAL" = "REQUIRED"; then
12690 command="echo ERROR: texi2html not found"
12691 # abort configure process here?
12693 command="- echo texi2html not found"
12695 eval "TEXI2HTML"='$command'
12701 if test $? -eq 0 -a -n "1.82"; then
12703 r="`eval echo '$'"TEXI2HTML"`"
12704 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12705 $as_echo_n "checking $r version... " >&6; }
12707 ## which doesn't work in ash, if /usr/bin/which isn't installed
12708 ## type -p doesn't work in ash
12709 ## command -v doesn't work in zsh
12710 ## command -v "$r" 2>&1
12711 ## this test should work in ash, bash, pdksh (ksh), zsh
12712 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12714 if test -n ""; then
12718 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12721 ## Workaround for broken Debian gcc version string:
12722 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12724 ## -V: Workaround for python
12728 ## Assume and hunt for dotted version multiplet.
12729 ## use eval trickery, because we cannot use multi-level $() instead of ``
12730 ## for compatibility reasons.
12732 ## grab the first version number in --version output.
12733 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12734 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12737 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12738 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12741 if test -z "$_ver"; then
12742 ## If empty, try date [fontforge]
12743 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12745 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12752 echo "$ver" | awk -F. '
12754 if ($3) {three = $3}
12757 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12760 echo "1.82" | awk -F. '
12762 if ($3) {three = $3}
12765 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12767 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12768 $as_echo "$ver" >&6; }
12769 if test "$num" -lt "$req"; then
12771 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.82 (installed: $ver)"\"`\"
12774 vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
12775 eval `echo $vervar=$num`
12776 ## AC_SUBST(`eval echo $vervar`)
12781 for ac_prog in dblatex
12783 # Extract the first word of "$ac_prog", so it can be a program name with args.
12784 set dummy $ac_prog; ac_word=$2
12785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12786 $as_echo_n "checking for $ac_word... " >&6; }
12787 if test "${ac_cv_prog_DBLATEX+set}" = set; then
12788 $as_echo_n "(cached) " >&6
12790 if test -n "$DBLATEX"; then
12791 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12797 test -z "$as_dir" && as_dir=.
12798 for ac_exec_ext in '' $ac_executable_extensions; do
12799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12800 ac_cv_prog_DBLATEX="$ac_prog"
12801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12810 DBLATEX=$ac_cv_prog_DBLATEX
12811 if test -n "$DBLATEX"; then
12812 { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
12813 $as_echo "$DBLATEX" >&6; }
12815 { $as_echo "$as_me:$LINENO: result: no" >&5
12816 $as_echo "no" >&6; }
12820 test -n "$DBLATEX" && break
12822 test -n "$DBLATEX" || DBLATEX="no"
12826 r="`eval echo '$'"DBLATEX"`"
12827 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
12830 ##STEPMAKE_WARN(cannot find . )
12834 if test $? -ne 0; then
12836 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"dblatex\"`\"
12838 if test "OPTIONAL" = "REQUIRED"; then
12839 command="echo ERROR: dblatex not found"
12840 # abort configure process here?
12842 command="- echo dblatex not found"
12844 eval "DBLATEX"='$command'
12850 if test $? -eq 0 -a -n "0.1.4"; then
12852 r="`eval echo '$'"DBLATEX"`"
12853 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12854 $as_echo_n "checking $r version... " >&6; }
12856 ## which doesn't work in ash, if /usr/bin/which isn't installed
12857 ## type -p doesn't work in ash
12858 ## command -v doesn't work in zsh
12859 ## command -v "$r" 2>&1
12860 ## this test should work in ash, bash, pdksh (ksh), zsh
12861 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12863 if test -n ""; then
12867 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12870 ## Workaround for broken Debian gcc version string:
12871 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12873 ## -V: Workaround for python
12877 ## Assume and hunt for dotted version multiplet.
12878 ## use eval trickery, because we cannot use multi-level $() instead of ``
12879 ## for compatibility reasons.
12881 ## grab the first version number in --version output.
12882 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12883 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12886 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12887 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12890 if test -z "$_ver"; then
12891 ## If empty, try date [fontforge]
12892 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12894 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12901 echo "$ver" | awk -F. '
12903 if ($3) {three = $3}
12906 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12909 echo "0.1.4" | awk -F. '
12911 if ($3) {three = $3}
12914 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12916 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12917 $as_echo "$ver" >&6; }
12918 if test "$num" -lt "$req"; then
12920 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
12923 vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
12924 eval `echo $vervar=$num`
12925 ## AC_SUBST(`eval echo $vervar`)
12930 for ac_prog in pdflatex
12932 # Extract the first word of "$ac_prog", so it can be a program name with args.
12933 set dummy $ac_prog; ac_word=$2
12934 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12935 $as_echo_n "checking for $ac_word... " >&6; }
12936 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
12937 $as_echo_n "(cached) " >&6
12939 if test -n "$PDFLATEX"; then
12940 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943 for as_dir in $PATH
12946 test -z "$as_dir" && as_dir=.
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12949 ac_cv_prog_PDFLATEX="$ac_prog"
12950 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12959 PDFLATEX=$ac_cv_prog_PDFLATEX
12960 if test -n "$PDFLATEX"; then
12961 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
12962 $as_echo "$PDFLATEX" >&6; }
12964 { $as_echo "$as_me:$LINENO: result: no" >&5
12965 $as_echo "no" >&6; }
12969 test -n "$PDFLATEX" && break
12971 test -n "$PDFLATEX" || PDFLATEX="no"
12975 r="`eval echo '$'"PDFLATEX"`"
12976 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
12979 ##STEPMAKE_WARN(cannot find . )
12983 if test $? -ne 0; then
12985 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pdflatex\"`\"
12987 if test "OPTIONAL" = "REQUIRED"; then
12988 command="echo ERROR: pdflatex not found"
12989 # abort configure process here?
12991 command="- echo pdflatex not found"
12993 eval "PDFLATEX"='$command'
12999 if test $? -eq 0 -a -n ""; then
13001 r="`eval echo '$'"PDFLATEX"`"
13002 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13003 $as_echo_n "checking $r version... " >&6; }
13005 ## which doesn't work in ash, if /usr/bin/which isn't installed
13006 ## type -p doesn't work in ash
13007 ## command -v doesn't work in zsh
13008 ## command -v "$r" 2>&1
13009 ## this test should work in ash, bash, pdksh (ksh), zsh
13010 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13012 if test -n ""; then
13016 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13019 ## Workaround for broken Debian gcc version string:
13020 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13022 ## -V: Workaround for python
13026 ## Assume and hunt for dotted version multiplet.
13027 ## use eval trickery, because we cannot use multi-level $() instead of ``
13028 ## for compatibility reasons.
13030 ## grab the first version number in --version output.
13031 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13032 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13035 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13036 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13039 if test -z "$_ver"; then
13040 ## If empty, try date [fontforge]
13041 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13043 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13050 echo "$ver" | awk -F. '
13052 if ($3) {three = $3}
13055 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13058 echo "" | awk -F. '
13060 if ($3) {three = $3}
13063 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13065 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13066 $as_echo "$ver" >&6; }
13067 if test "$num" -lt "$req"; then
13069 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13072 vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
13073 eval `echo $vervar=$num`
13074 ## AC_SUBST(`eval echo $vervar`)
13079 for ac_prog in pngtopnm
13081 # Extract the first word of "$ac_prog", so it can be a program name with args.
13082 set dummy $ac_prog; ac_word=$2
13083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if test "${ac_cv_prog_NETPBM+set}" = set; then
13086 $as_echo_n "(cached) " >&6
13088 if test -n "$NETPBM"; then
13089 ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13095 test -z "$as_dir" && as_dir=.
13096 for ac_exec_ext in '' $ac_executable_extensions; do
13097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13098 ac_cv_prog_NETPBM="$ac_prog"
13099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13108 NETPBM=$ac_cv_prog_NETPBM
13109 if test -n "$NETPBM"; then
13110 { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
13111 $as_echo "$NETPBM" >&6; }
13113 { $as_echo "$as_me:$LINENO: result: no" >&5
13114 $as_echo "no" >&6; }
13118 test -n "$NETPBM" && break
13120 test -n "$NETPBM" || NETPBM="no"
13124 r="`eval echo '$'"NETPBM"`"
13125 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
13128 ##STEPMAKE_WARN(cannot find . )
13132 if test $? -ne 0; then
13134 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pngtopnm\"`\"
13136 if test "OPTIONAL" = "REQUIRED"; then
13137 command="echo ERROR: pngtopnm not found"
13138 # abort configure process here?
13140 command="- echo pngtopnm not found"
13142 eval "NETPBM"='$command'
13148 if test $? -eq 0 -a -n ""; then
13150 r="`eval echo '$'"NETPBM"`"
13151 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13152 $as_echo_n "checking $r version... " >&6; }
13154 ## which doesn't work in ash, if /usr/bin/which isn't installed
13155 ## type -p doesn't work in ash
13156 ## command -v doesn't work in zsh
13157 ## command -v "$r" 2>&1
13158 ## this test should work in ash, bash, pdksh (ksh), zsh
13159 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13161 if test -n ""; then
13165 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13168 ## Workaround for broken Debian gcc version string:
13169 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13171 ## -V: Workaround for python
13175 ## Assume and hunt for dotted version multiplet.
13176 ## use eval trickery, because we cannot use multi-level $() instead of ``
13177 ## for compatibility reasons.
13179 ## grab the first version number in --version output.
13180 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13181 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13184 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13185 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13188 if test -z "$_ver"; then
13189 ## If empty, try date [fontforge]
13190 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13192 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13199 echo "$ver" | awk -F. '
13201 if ($3) {three = $3}
13204 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13207 echo "" | awk -F. '
13209 if ($3) {three = $3}
13212 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13214 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13215 $as_echo "$ver" >&6; }
13216 if test "$num" -lt "$req"; then
13218 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13221 vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
13222 eval `echo $vervar=$num`
13223 ## AC_SUBST(`eval echo $vervar`)
13228 for ac_prog in convert
13230 # Extract the first word of "$ac_prog", so it can be a program name with args.
13231 set dummy $ac_prog; ac_word=$2
13232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13233 $as_echo_n "checking for $ac_word... " >&6; }
13234 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
13235 $as_echo_n "(cached) " >&6
13237 if test -n "$IMAGEMAGICK"; then
13238 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
13240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241 for as_dir in $PATH
13244 test -z "$as_dir" && as_dir=.
13245 for ac_exec_ext in '' $ac_executable_extensions; do
13246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13247 ac_cv_prog_IMAGEMAGICK="$ac_prog"
13248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13257 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
13258 if test -n "$IMAGEMAGICK"; then
13259 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
13260 $as_echo "$IMAGEMAGICK" >&6; }
13262 { $as_echo "$as_me:$LINENO: result: no" >&5
13263 $as_echo "no" >&6; }
13267 test -n "$IMAGEMAGICK" && break
13269 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
13273 r="`eval echo '$'"IMAGEMAGICK"`"
13274 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
13277 ##STEPMAKE_WARN(cannot find . )
13281 if test $? -ne 0; then
13283 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"convert\"`\"
13285 if test "OPTIONAL" = "REQUIRED"; then
13286 command="echo ERROR: convert not found"
13287 # abort configure process here?
13289 command="- echo convert not found"
13291 eval "IMAGEMAGICK"='$command'
13297 if test $? -eq 0 -a -n ""; then
13299 r="`eval echo '$'"IMAGEMAGICK"`"
13300 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13301 $as_echo_n "checking $r version... " >&6; }
13303 ## which doesn't work in ash, if /usr/bin/which isn't installed
13304 ## type -p doesn't work in ash
13305 ## command -v doesn't work in zsh
13306 ## command -v "$r" 2>&1
13307 ## this test should work in ash, bash, pdksh (ksh), zsh
13308 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13310 if test -n ""; then
13314 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13317 ## Workaround for broken Debian gcc version string:
13318 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13320 ## -V: Workaround for python
13324 ## Assume and hunt for dotted version multiplet.
13325 ## use eval trickery, because we cannot use multi-level $() instead of ``
13326 ## for compatibility reasons.
13328 ## grab the first version number in --version output.
13329 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13330 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13333 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13334 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13337 if test -z "$_ver"; then
13338 ## If empty, try date [fontforge]
13339 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13341 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13348 echo "$ver" | awk -F. '
13350 if ($3) {three = $3}
13353 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13356 echo "" | awk -F. '
13358 if ($3) {three = $3}
13361 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13363 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13364 $as_echo "$ver" >&6; }
13365 if test "$num" -lt "$req"; then
13367 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13370 vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
13371 eval `echo $vervar=$num`
13372 ## AC_SUBST(`eval echo $vervar`)
13376 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
13380 # Extract the first word of "$ac_prog", so it can be a program name with args.
13381 set dummy $ac_prog; ac_word=$2
13382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13383 $as_echo_n "checking for $ac_word... " >&6; }
13384 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
13385 $as_echo_n "(cached) " >&6
13387 if test -n "$ZIPDOC"; then
13388 ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
13390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13394 test -z "$as_dir" && as_dir=.
13395 for ac_exec_ext in '' $ac_executable_extensions; do
13396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13397 ac_cv_prog_ZIPDOC="$ac_prog"
13398 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13407 ZIPDOC=$ac_cv_prog_ZIPDOC
13408 if test -n "$ZIPDOC"; then
13409 { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
13410 $as_echo "$ZIPDOC" >&6; }
13412 { $as_echo "$as_me:$LINENO: result: no" >&5
13413 $as_echo "no" >&6; }
13417 test -n "$ZIPDOC" && break
13419 test -n "$ZIPDOC" || ZIPDOC="no"
13423 r="`eval echo '$'"ZIPDOC"`"
13424 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
13427 ##STEPMAKE_WARN(cannot find . )
13431 if test $? -ne 0; then
13433 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"zip\"`\"
13435 if test "OPTIONAL" = "REQUIRED"; then
13436 command="echo ERROR: zip not found"
13437 # abort configure process here?
13439 command="- echo zip not found"
13441 eval "ZIPDOC"='$command'
13447 if test $? -eq 0 -a -n ""; then
13449 r="`eval echo '$'"ZIPDOC"`"
13450 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13451 $as_echo_n "checking $r version... " >&6; }
13453 ## which doesn't work in ash, if /usr/bin/which isn't installed
13454 ## type -p doesn't work in ash
13455 ## command -v doesn't work in zsh
13456 ## command -v "$r" 2>&1
13457 ## this test should work in ash, bash, pdksh (ksh), zsh
13458 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13460 if test -n ""; then
13464 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13467 ## Workaround for broken Debian gcc version string:
13468 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13470 ## -V: Workaround for python
13474 ## Assume and hunt for dotted version multiplet.
13475 ## use eval trickery, because we cannot use multi-level $() instead of ``
13476 ## for compatibility reasons.
13478 ## grab the first version number in --version output.
13479 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13480 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13483 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13484 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13487 if test -z "$_ver"; then
13488 ## If empty, try date [fontforge]
13489 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13491 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13498 echo "$ver" | awk -F. '
13500 if ($3) {three = $3}
13503 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13506 echo "" | awk -F. '
13508 if ($3) {three = $3}
13511 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13513 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13514 $as_echo "$ver" >&6; }
13515 if test "$num" -lt "$req"; then
13517 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13520 vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
13521 eval `echo $vervar=$num`
13522 ## AC_SUBST(`eval echo $vervar`)
13527 for ac_prog in rsync
13529 # Extract the first word of "$ac_prog", so it can be a program name with args.
13530 set dummy $ac_prog; ac_word=$2
13531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13532 $as_echo_n "checking for $ac_word... " >&6; }
13533 if test "${ac_cv_prog_RSYNC+set}" = set; then
13534 $as_echo_n "(cached) " >&6
13536 if test -n "$RSYNC"; then
13537 ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
13539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540 for as_dir in $PATH
13543 test -z "$as_dir" && as_dir=.
13544 for ac_exec_ext in '' $ac_executable_extensions; do
13545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13546 ac_cv_prog_RSYNC="$ac_prog"
13547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13556 RSYNC=$ac_cv_prog_RSYNC
13557 if test -n "$RSYNC"; then
13558 { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
13559 $as_echo "$RSYNC" >&6; }
13561 { $as_echo "$as_me:$LINENO: result: no" >&5
13562 $as_echo "no" >&6; }
13566 test -n "$RSYNC" && break
13568 test -n "$RSYNC" || RSYNC="no"
13572 r="`eval echo '$'"RSYNC"`"
13573 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
13576 ##STEPMAKE_WARN(cannot find . )
13580 if test $? -ne 0; then
13582 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"rsync\"`\"
13584 if test "OPTIONAL" = "REQUIRED"; then
13585 command="echo ERROR: rsync not found"
13586 # abort configure process here?
13588 command="- echo rsync not found"
13590 eval "RSYNC"='$command'
13596 if test $? -eq 0 -a -n ""; then
13598 r="`eval echo '$'"RSYNC"`"
13599 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13600 $as_echo_n "checking $r version... " >&6; }
13602 ## which doesn't work in ash, if /usr/bin/which isn't installed
13603 ## type -p doesn't work in ash
13604 ## command -v doesn't work in zsh
13605 ## command -v "$r" 2>&1
13606 ## this test should work in ash, bash, pdksh (ksh), zsh
13607 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13609 if test -n ""; then
13613 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13616 ## Workaround for broken Debian gcc version string:
13617 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13619 ## -V: Workaround for python
13623 ## Assume and hunt for dotted version multiplet.
13624 ## use eval trickery, because we cannot use multi-level $() instead of ``
13625 ## for compatibility reasons.
13627 ## grab the first version number in --version output.
13628 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13629 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13632 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13633 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13636 if test -z "$_ver"; then
13637 ## If empty, try date [fontforge]
13638 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13640 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13647 echo "$ver" | awk -F. '
13649 if ($3) {three = $3}
13652 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13655 echo "" | awk -F. '
13657 if ($3) {three = $3}
13660 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13662 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13663 $as_echo "$ver" >&6; }
13664 if test "$num" -lt "$req"; then
13666 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13669 vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
13670 eval `echo $vervar=$num`
13671 ## AC_SUBST(`eval echo $vervar`)
13677 cat >>confdefs.h <<_ACEOF
13678 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
13682 # must also have local.make if configure fails.
13685 if test "$reloc_b$rpath_b" = "yesno"; then
13687 { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&5
13688 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&2;}
13693 # Gather requirements and generate output.
13696 # undo expanding of explicit --infodir=/usr/share
13697 # to ease install-time override with prefix=...
13698 strip=`echo $includedir | eval sed s@^$prefix@@`
13699 if test "$includedir" = "`eval echo $prefix$strip`"; then
13700 includedir='${prefix}'$strip''
13702 strip=`echo $libdir | eval sed s@^$exec_prefix@@`
13703 if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
13704 libdir='${exec_prefix}'$strip''
13706 strip=`echo $infodir | eval sed s@^$datarootdir@@`
13707 if test "$infodir" = "`eval echo $datarootdir$strip`"; then
13708 infodir='${datarootdir}'$strip''
13710 strip=`echo $mandir | eval sed s@^$datarootdir@@`
13711 if test "$mandir" = "`eval echo $datarootdir$strip`"; then
13712 mandir='${datarootdir}'$strip''
13719 ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
13721 cat >confcache <<\_ACEOF
13722 # This file is a shell script that caches the results of configure
13723 # tests run on this system so they can be shared between configure
13724 # scripts and configure runs, see configure's option --config-cache.
13725 # It is not useful on other systems. If it contains results you don't
13726 # want to keep, you may remove or edit it.
13728 # config.status only pays attention to the cache file if you give it
13729 # the --recheck option to rerun configure.
13731 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13732 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13733 # following values.
13737 # The following way of writing the cache mishandles newlines in values,
13738 # but we know of no workaround that is simple, portable, and efficient.
13739 # So, we kill variables containing newlines.
13740 # Ultrix sh set writes to stderr and can't be redirected directly,
13741 # and sets the high bit in the cache file unless we assign to the vars.
13743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13744 eval ac_val=\$$ac_var
13748 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13749 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13752 _ | IFS | as_nl) ;; #(
13753 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13754 *) $as_unset $ac_var ;;
13760 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13761 *${as_nl}ac_space=\ *)
13762 # `set' does not quote correctly, so add quotes (double-quote
13763 # substitution turns \\\\ into \\, and sed turns \\ into \).
13766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13769 # `set' quotes correctly as required by POSIX, so do not add quotes.
13770 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13781 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13783 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13784 if test -w "$cache_file"; then
13785 test "x$cache_file" != "x/dev/null" &&
13786 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13787 $as_echo "$as_me: updating cache $cache_file" >&6;}
13788 cat confcache >$cache_file
13790 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13791 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13796 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13797 # Let make expand exec_prefix.
13798 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13800 DEFS=-DHAVE_CONFIG_H
13804 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13805 # 1. Remove the extension, and $U if already installed.
13806 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13807 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13808 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13809 # will be set to the directory where LIBOBJS objects are built.
13810 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13811 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13813 LIBOBJS=$ac_libobjs
13815 LTLIBOBJS=$ac_ltlibobjs
13819 : ${CONFIG_STATUS=./config.status}
13821 ac_clean_files_save=$ac_clean_files
13822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13823 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13825 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 # Generated by $as_me.
13828 # Run this file to recreate the current configuration.
13829 # Compiler output produced by configure, useful for debugging
13830 # configure, is in config.log if it exists.
13833 ac_cs_recheck=false
13835 SHELL=\${CONFIG_SHELL-$SHELL}
13838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13839 ## --------------------- ##
13840 ## M4sh Initialization. ##
13841 ## --------------------- ##
13843 # Be more Bourne compatible
13844 DUALCASE=1; export DUALCASE # for MKS sh
13845 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13848 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13849 # is contrary to our usage. Disable this feature.
13850 alias -g '${1+"$@"}'='"$@"'
13851 setopt NO_GLOB_SUBST
13853 case `(set -o) 2>/dev/null` in
13854 *posix*) set -o posix ;;
13863 # Avoid depending upon Character Ranges.
13864 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13865 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13866 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13867 as_cr_digits='0123456789'
13868 as_cr_alnum=$as_cr_Letters$as_cr_digits
13873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13877 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13878 as_echo='printf %s\n'
13879 as_echo_n='printf %s'
13881 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13882 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13883 as_echo_n='/usr/ucb/echo -n'
13885 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13886 as_echo_n_body='eval
13890 expr "X$arg" : "X\\(.*\\)$as_nl";
13891 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13893 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13895 export as_echo_n_body
13896 as_echo_n='sh -c $as_echo_n_body as_echo'
13898 export as_echo_body
13899 as_echo='sh -c $as_echo_body as_echo'
13902 # The user is always right.
13903 if test "${PATH_SEPARATOR+set}" != set; then
13905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13911 # Support unset when possible.
13912 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13920 # We need space, tab and new line, in precisely that order. Quoting is
13921 # there to prevent editors from complaining about space-tab.
13922 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13923 # splitting by setting IFS to empty value.)
13926 # Find who we are. Look in the path if we contain no directory separator.
13928 *[\\/]* ) as_myself=$0 ;;
13929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13930 for as_dir in $PATH
13933 test -z "$as_dir" && as_dir=.
13934 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13940 # We did not find ourselves, most probably we were run as `sh COMMAND'
13941 # in which case we are not to be found in the path.
13942 if test "x$as_myself" = x; then
13945 if test ! -f "$as_myself"; then
13946 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13947 { (exit 1); exit 1; }
13950 # Work around bugs in pre-3.0 UWIN ksh.
13951 for as_var in ENV MAIL MAILPATH
13952 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13964 # Required to use basename.
13965 if expr a : '\(a\)' >/dev/null 2>&1 &&
13966 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13972 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13973 as_basename=basename
13979 # Name of the executable.
13980 as_me=`$as_basename -- "$0" ||
13981 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13982 X"$0" : 'X\(//\)$' \| \
13983 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13985 sed '/^.*\/\([^/][^/]*\)\/*$/{
14004 as_lineno_1=$LINENO
14005 as_lineno_2=$LINENO
14006 test "x$as_lineno_1" != "x$as_lineno_2" &&
14007 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14009 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14010 # uniformly replaced by the line number. The first 'sed' inserts a
14011 # line-number line after each line using $LINENO; the second 'sed'
14012 # does the real work. The second script uses 'N' to pair each
14013 # line-number line with the line containing $LINENO, and appends
14014 # trailing '-' during substitution so that $LINENO is not a special
14015 # case at line end.
14016 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14017 # scripts with optimization help from Paolo Bonzini. Blame Lee
14018 # E. McMahon (1931-1989) for sed's syntax. :-)
14030 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14033 ' >$as_me.lineno &&
14034 chmod +x "$as_me.lineno" ||
14035 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14036 { (exit 1); exit 1; }; }
14038 # Don't try to exec as it changes $[0], causing all sort of problems
14039 # (the dirname of $[0] is not the place where we might find the
14040 # original and so on. Autoconf is especially sensitive to this).
14041 . "./$as_me.lineno"
14042 # Exit status is that of the last command.
14047 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14053 ECHO_C= ECHO_N= ECHO_T=
14054 case `echo -n x` in
14056 case `echo 'x\c'` in
14057 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14063 if expr a : '\(a\)' >/dev/null 2>&1 &&
14064 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14070 rm -f conf$$ conf$$.exe conf$$.file
14071 if test -d conf$$.dir; then
14072 rm -f conf$$.dir/conf$$.file
14075 mkdir conf$$.dir 2>/dev/null
14077 if (echo >conf$$.file) 2>/dev/null; then
14078 if ln -s conf$$.file conf$$ 2>/dev/null; then
14080 # ... but there are two gotchas:
14081 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14082 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14083 # In both cases, we have to default to `cp -p'.
14084 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14086 elif ln conf$$.file conf$$ 2>/dev/null; then
14094 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14095 rmdir conf$$.dir 2>/dev/null
14097 if mkdir -p . 2>/dev/null; then
14100 test -d ./-p && rmdir ./-p
14104 if test -x / >/dev/null 2>&1; then
14105 as_test_x='test -x'
14107 if ls -dL / >/dev/null 2>&1; then
14114 if test -d "$1"; then
14120 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14121 ???[sx]*):;;*)false;;esac;fi
14125 as_executable_p=$as_test_x
14127 # Sed expression to map a string onto a valid CPP name.
14128 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14130 # Sed expression to map a string onto a valid variable name.
14131 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14136 # Save the log message, to keep $[0] and so on meaningful, and to
14137 # report actual input values of CONFIG_FILES etc. instead of their
14138 # values after options handling.
14140 This file was extended by $as_me, which was
14141 generated by GNU Autoconf 2.63. Invocation command line was
14143 CONFIG_FILES = $CONFIG_FILES
14144 CONFIG_HEADERS = $CONFIG_HEADERS
14145 CONFIG_LINKS = $CONFIG_LINKS
14146 CONFIG_COMMANDS = $CONFIG_COMMANDS
14149 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14154 case $ac_config_files in *"
14155 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14158 case $ac_config_headers in *"
14159 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14164 # Files that config.status was made for.
14165 config_files="$ac_config_files"
14166 config_headers="$ac_config_headers"
14170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14172 \`$as_me' instantiates files from templates according to the
14173 current configuration.
14175 Usage: $0 [OPTION]... [FILE]...
14177 -h, --help print this help, then exit
14178 -V, --version print version number and configuration settings, then exit
14179 -q, --quiet, --silent
14180 do not print progress messages
14181 -d, --debug don't remove temporary files
14182 --recheck update $as_me by reconfiguring in the same conditions
14183 --file=FILE[:TEMPLATE]
14184 instantiate the configuration file FILE
14185 --header=FILE[:TEMPLATE]
14186 instantiate the configuration header FILE
14188 Configuration files:
14191 Configuration headers:
14194 Report bugs to <bug-autoconf@gnu.org>."
14197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14200 configured by $0, generated by GNU Autoconf 2.63,
14201 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14203 Copyright (C) 2008 Free Software Foundation, Inc.
14204 This config.status script is free software; the Free Software Foundation
14205 gives unlimited permission to copy, distribute and modify it."
14209 test -n "\$AWK" || AWK=awk
14212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14213 # The default lists apply if the user does not specify any file.
14219 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14220 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14231 # Handling of the options.
14232 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14234 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14235 $as_echo "$ac_cs_version"; exit ;;
14236 --debug | --debu | --deb | --de | --d | -d )
14238 --file | --fil | --fi | --f )
14241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14243 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14244 ac_need_defaults=false;;
14245 --header | --heade | --head | --hea )
14248 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14250 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14251 ac_need_defaults=false;;
14253 # Conflict between --help and --header
14254 { $as_echo "$as_me: error: ambiguous option: $1
14255 Try \`$0 --help' for more information." >&2
14256 { (exit 1); exit 1; }; };;
14257 --help | --hel | -h )
14258 $as_echo "$ac_cs_usage"; exit ;;
14259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14263 # This is an error.
14264 -*) { $as_echo "$as_me: error: unrecognized option: $1
14265 Try \`$0 --help' for more information." >&2
14266 { (exit 1); exit 1; }; } ;;
14268 *) ac_config_targets="$ac_config_targets $1"
14269 ac_need_defaults=false ;;
14275 ac_configure_extra_args=
14277 if $ac_cs_silent; then
14279 ac_configure_extra_args="$ac_configure_extra_args --silent"
14283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14284 if \$ac_cs_recheck; then
14285 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14287 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14288 CONFIG_SHELL='$SHELL'
14289 export CONFIG_SHELL
14294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14299 ## Running $as_me. ##
14305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14310 # Handling of arguments.
14311 for ac_config_target in $ac_config_targets
14313 case $ac_config_target in
14314 "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
14315 "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
14317 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14318 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14319 { (exit 1); exit 1; }; };;
14324 # If the user did not use the arguments to specify the items to instantiate,
14325 # then the envvar interface is used. Set only those that are not.
14326 # We use the long form for the default assignment because of an extremely
14327 # bizarre bug on SunOS 4.1.3.
14328 if $ac_need_defaults; then
14329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14333 # Have a temporary directory for convenience. Make it in the build tree
14334 # simply because there is no reason against having it here, and in addition,
14335 # creating and moving files from /tmp can sometimes cause problems.
14336 # Hook for its removal unless debugging.
14337 # Note that there is a small window in which the directory will not be cleaned:
14338 # after its creation but before its name has been assigned to `$tmp'.
14342 trap 'exit_status=$?
14343 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14345 trap '{ (exit 1); exit 1; }' 1 2 13 15
14347 # Create a (secure) tmp directory for tmp files.
14350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14351 test -n "$tmp" && test -d "$tmp"
14354 tmp=./conf$$-$RANDOM
14355 (umask 077 && mkdir "$tmp")
14358 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14359 { (exit 1); exit 1; }
14362 # Set up the scripts for CONFIG_FILES section.
14363 # No need to generate them if there are no CONFIG_FILES.
14364 # This happens for instance with `./config.status config.h'.
14365 if test -n "$CONFIG_FILES"; then
14369 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14370 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14373 ac_cs_awk_cr=$ac_cr
14376 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14381 echo "cat >conf$$subs.awk <<_ACEOF" &&
14382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14384 } >conf$$subs.sh ||
14385 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14386 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14387 { (exit 1); exit 1; }; }
14388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14390 for ac_last_try in false false false false false :; do
14391 . ./conf$$subs.sh ||
14392 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14393 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14394 { (exit 1); exit 1; }; }
14396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14397 if test $ac_delim_n = $ac_delim_num; then
14399 elif $ac_last_try; then
14400 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14401 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14402 { (exit 1); exit 1; }; }
14404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14407 rm -f conf$$subs.sh
14409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14414 s/^/S["/; s/!.*/"]=/
14424 s/\(.\{148\}\).*/\1/
14426 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14438 s/\(.\{148\}\).*/\1/
14440 s/["\\]/\\&/g; s/^/"/; s/$/"/
14444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14449 ' <conf$$subs.awk | sed '
14454 ' >>$CONFIG_STATUS || ac_write_fail=1
14455 rm -f conf$$subs.awk
14456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14458 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14459 for (key in S) S_is_set[key] = 1
14465 nfields = split(line, field, "@")
14467 len = length(field[1])
14468 for (i = 2; i < nfields; i++) {
14470 keylen = length(key)
14471 if (S_is_set[key]) {
14473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14474 len += length(value) + length(field[++i])
14485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14486 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14490 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14491 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14492 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14493 { (exit 1); exit 1; }; }
14496 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14497 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14498 # trailing colons and then remove the whole line if VPATH becomes empty
14499 # (actually we leave an empty line to preserve line numbers).
14500 if test "x$srcdir" = x.; then
14501 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14502 s/:*\$(srcdir):*/:/
14503 s/:*\${srcdir}:*/:/
14505 s/^\([^=]*=[ ]*\):*/\1/
14511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14512 fi # test -n "$CONFIG_FILES"
14514 # Set up the scripts for CONFIG_HEADERS section.
14515 # No need to generate them if there are no CONFIG_HEADERS.
14516 # This happens for instance with `./config.status Makefile'.
14517 if test -n "$CONFIG_HEADERS"; then
14518 cat >"$tmp/defines.awk" <<\_ACAWK ||
14522 # Transform confdefs.h into an awk script `defines.awk', embedded as
14523 # here-document in config.status, that substitutes the proper values into
14524 # config.h.in to produce config.h.
14526 # Create a delimiter string that does not exist in confdefs.h, to ease
14527 # handling of long lines.
14529 for ac_last_try in false false :; do
14530 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14531 if test -z "$ac_t"; then
14533 elif $ac_last_try; then
14534 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14535 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14536 { (exit 1); exit 1; }; }
14538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14542 # For the awk script, D is an array of macro values keyed by name,
14543 # likewise P contains macro parameters if any. Preserve backslash
14544 # newline sequences.
14546 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14548 s/.\{148\}/&'"$ac_delim"'/g
14551 s/^[ ]*#[ ]*define[ ][ ]*/ /
14558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14564 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14565 D["\1"]=" \3\\\\\\n"\\/p
14567 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14572 s/.\{148\}/&'"$ac_delim"'/g
14577 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14580 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14582 ' <confdefs.h | sed '
14583 s/'"$ac_delim"'/"\\\
14584 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14587 for (key in D) D_is_set[key] = 1
14590 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14592 split(line, arg, " ")
14593 if (arg[1] == "#") {
14597 defundef = substr(arg[1], 2)
14600 split(mac1, mac2, "(") #)
14602 prefix = substr(line, 1, index(line, defundef) - 1)
14603 if (D_is_set[macro]) {
14604 # Preserve the white space surrounding the "#".
14605 print prefix "define", macro P[macro] D[macro]
14608 # Replace #undef with comments. This is necessary, for example,
14609 # in the case of _POSIX_SOURCE, which is predefined and required
14610 # on some systems where configure will not decide to define it.
14611 if (defundef == "undef") {
14612 print "/*", prefix defundef, macro, "*/"
14620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14621 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14622 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14623 { (exit 1); exit 1; }; }
14624 fi # test -n "$CONFIG_HEADERS"
14627 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
14632 :[FHLC]) ac_mode=$ac_tag; continue;;
14634 case $ac_mode$ac_tag in
14636 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14637 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14638 { (exit 1); exit 1; }; };;
14639 :[FH]-) ac_tag=-:-;;
14640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14657 -) ac_f="$tmp/stdin";;
14658 *) # Look for the file first in the build tree, then in the source tree
14659 # (if the path is not absolute). The absolute path cannot be DOS-style,
14660 # because $ac_f cannot contain `:'.
14664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14666 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14667 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14668 { (exit 1); exit 1; }; };;
14670 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14671 ac_file_inputs="$ac_file_inputs '$ac_f'"
14674 # Let's still pretend it is `configure' which instantiates (i.e., don't
14675 # use $as_me), people would be surprised to read:
14676 # /* config.h. Generated by config.status. */
14677 configure_input='Generated from '`
14678 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14680 if test x"$ac_file" != x-; then
14681 configure_input="$ac_file. $configure_input"
14682 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14683 $as_echo "$as_me: creating $ac_file" >&6;}
14685 # Neutralize special characters interpreted by sed in replacement strings.
14686 case $configure_input in #(
14687 *\&* | *\|* | *\\* )
14688 ac_sed_conf_input=`$as_echo "$configure_input" |
14689 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14690 *) ac_sed_conf_input=$configure_input;;
14694 *:-:* | *:-) cat >"$tmp/stdin" \
14695 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14696 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14697 { (exit 1); exit 1; }; } ;;
14702 ac_dir=`$as_dirname -- "$ac_file" ||
14703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14704 X"$ac_file" : 'X\(//\)[^/]' \| \
14705 X"$ac_file" : 'X\(//\)$' \| \
14706 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14707 $as_echo X"$ac_file" |
14708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14712 /^X\(\/\/\)[^/].*/{
14727 -*) as_dir=./$as_dir;;
14729 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14733 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14734 *) as_qdir=$as_dir;;
14736 as_dirs="'$as_qdir' $as_dirs"
14737 as_dir=`$as_dirname -- "$as_dir" ||
14738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14739 X"$as_dir" : 'X\(//\)[^/]' \| \
14740 X"$as_dir" : 'X\(//\)$' \| \
14741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14742 $as_echo X"$as_dir" |
14743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14747 /^X\(\/\/\)[^/].*/{
14760 test -d "$as_dir" && break
14762 test -z "$as_dirs" || eval "mkdir $as_dirs"
14763 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14764 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14765 { (exit 1); exit 1; }; }; }
14769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14772 # A ".." for each directory in $ac_dir_suffix.
14773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14774 case $ac_top_builddir_sub in
14775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14779 ac_abs_top_builddir=$ac_pwd
14780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14781 # for backward compatibility:
14782 ac_top_builddir=$ac_top_build_prefix
14785 .) # We are building in place.
14787 ac_top_srcdir=$ac_top_builddir_sub
14788 ac_abs_top_srcdir=$ac_pwd ;;
14789 [\\/]* | ?:[\\/]* ) # Absolute name.
14790 ac_srcdir=$srcdir$ac_dir_suffix;
14791 ac_top_srcdir=$srcdir
14792 ac_abs_top_srcdir=$srcdir ;;
14793 *) # Relative name.
14794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14795 ac_top_srcdir=$ac_top_build_prefix$srcdir
14796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14810 # If the template does not know about datarootdir, expand it.
14811 # FIXME: This hack should be removed a few years after 2.60.
14812 ac_datarootdir_hack=; ac_datarootdir_seen=
14825 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14826 *datarootdir*) ac_datarootdir_seen=yes;;
14827 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14828 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14829 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14832 ac_datarootdir_hack='
14833 s&@datadir@&$datadir&g
14834 s&@docdir@&$docdir&g
14835 s&@infodir@&$infodir&g
14836 s&@localedir@&$localedir&g
14837 s&@mandir@&$mandir&g
14838 s&\\\${datarootdir}&$datarootdir&g' ;;
14842 # Neutralize VPATH when `$srcdir' = `.'.
14843 # Shell code in configure.ac might set extrasub.
14844 # FIXME: do we really want to maintain this feature?
14845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14846 ac_sed_extra="$ac_vpsub
14849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14852 s|@configure_input@|$ac_sed_conf_input|;t t
14853 s&@top_builddir@&$ac_top_builddir_sub&;t t
14854 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14855 s&@srcdir@&$ac_srcdir&;t t
14856 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14857 s&@top_srcdir@&$ac_top_srcdir&;t t
14858 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14859 s&@builddir@&$ac_builddir&;t t
14860 s&@abs_builddir@&$ac_abs_builddir&;t t
14861 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14862 $ac_datarootdir_hack
14864 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14865 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14866 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14867 { (exit 1); exit 1; }; }
14869 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14870 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14871 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14872 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14873 which seems to be undefined. Please make sure it is defined." >&5
14874 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14875 which seems to be undefined. Please make sure it is defined." >&2;}
14879 -) cat "$tmp/out" && rm -f "$tmp/out";;
14880 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14882 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14883 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14884 { (exit 1); exit 1; }; }
14890 if test x"$ac_file" != x-; then
14892 $as_echo "/* $configure_input */" \
14893 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14894 } >"$tmp/config.h" \
14895 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14896 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14897 { (exit 1); exit 1; }; }
14898 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14899 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14900 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14903 mv "$tmp/config.h" "$ac_file" \
14904 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14905 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14906 { (exit 1); exit 1; }; }
14909 $as_echo "/* $configure_input */" \
14910 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14911 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14912 $as_echo "$as_me: error: could not create -" >&2;}
14913 { (exit 1); exit 1; }; }
14923 { (exit 0); exit 0; }
14925 chmod +x $CONFIG_STATUS
14926 ac_clean_files=$ac_clean_files_save
14928 test $ac_write_fail = 0 ||
14929 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14930 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14931 { (exit 1); exit 1; }; }
14934 # configure is writing to config.log, and then calls config.status.
14935 # config.status does its own redirection, appending to config.log.
14936 # Unfortunately, on DOS this fails, as config.log is still kept open
14937 # by configure, so config.status won't be able to write to it; its
14938 # output is simply discarded. So we exec the FD to /dev/null,
14939 # effectively closing config.log, so it can be properly (re)opened and
14940 # appended to by config.status. When coming back to configure, we
14941 # need to make the FD available again.
14942 if test "$no_create" != yes; then
14944 ac_config_status_args=
14945 test "$silent" = yes &&
14946 ac_config_status_args="$ac_config_status_args --quiet"
14948 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14950 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14951 # would make configure fail if this is the last instruction.
14952 $ac_cs_success || { (exit 1); exit 1; }
14954 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14955 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14956 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14960 if test -n "$OPTIONAL"; then
14962 echo "WARNING: Please consider installing optional programs: $OPTIONAL"
14965 if test -n "$REQUIRED"; then
14967 echo "ERROR: Please install required programs: $REQUIRED"
14970 if test -n "$UNSUPPORTED"; then
14972 echo "ERROR: Please use older version of programs: $UNSUPPORTED"
14975 if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
14977 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
14978 if test -f config.cache ; then
14979 echo "Remove config.cache before rerunning ./configure"
14983 if test -n "$REQUIRED$UNSUPPORTED"; then
14984 rm -f $srcdir/GNUmakefile
14988 # regular in-place build
14989 # test for srcdir_build = yes ?
14990 if test "$srcdir_build" = "yes"; then
14991 rm -f $srcdir/GNUmakefile
14992 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
14993 chmod 444 $srcdir/GNUmakefile
14995 if test -f $srcdir/GNUmakefile; then
14997 Source directory already configured. Please clean the source directory
14999 make -C $srcdir distclean
15001 and rerun configure.
15006 abssrcdir="`cd $srcdir; pwd`"
15007 absbuilddir="`pwd`"
15008 for d in 2 3 4 5 ; do
15009 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
15010 case "$abssrcdir" in
15012 # source is below build directory, always copy
15015 case "$abssrcdir/${mf#./}" in
15017 # find descended into build directory, don't copy
15022 cat <<EOF | $PYTHON - > $mf
15023 print 'depth=' + ('../' * ( $d-1 ) )
15024 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
15025 print 'include \$(configure-srcdir)/$mf'
15026 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
15029 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
15030 case "$abssrcdir" in
15032 # source is below build directory, always copy
15035 case "$abssrcdir/${mf#./}" in
15037 # find descended into build directory, don't copy
15042 cat <<EOF | $PYTHON - > $mf
15043 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
15044 print 'include \$(configure-srcdir)/$mf'
15050 cat <<EOF > GNUmakefile
15052 include config\$(if \$(conf),-\$(conf),).make
15053 include \$(configure-srcdir)/GNUmakefile.in
15055 chmod 444 GNUmakefile
15060 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
15062 if make top-doc 1>/dev/null 2>&1; then
15063 rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
15064 rm -f README.txt && ln Documentation/topdocs/out/README.txt .
15070 make$mc all to build LilyPond
15071 make$mc install to install LilyPond
15072 make$mc help to see all possible targets
15074 Edit local.make for local Makefile overrides.