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>
704 build_package_datadir
740 ugh_ugh_autoconf250_builddir
768 program_transform_name
780 enable_option_checking
796 ac_precious_vars='build_alias
812 # Initialize some variables set by options.
814 ac_init_version=false
815 ac_unrecognized_opts=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
826 program_transform_name=s,x,x,
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE}'
851 infodir='${datarootdir}/info'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 # Accept the important Cygnus configure options, so we can diagnose typos.
878 case $ac_dashdash$ac_option in
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
900 cache_file=config.cache ;;
902 -datadir | --datadir | --datadi | --datad)
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
919 { (exit 1); exit 1; }; }
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
929 eval enable_$ac_useropt=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
946 { (exit 1); exit 1; }; }
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=\$ac_optarg ;;
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
971 -help | --help | --hel | --he | -h)
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 htmldir=$ac_optarg ;;
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1001 -libdir | --libdir | --libdi | --libd)
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1092 -psdir | --psdir | --psdi | --psd | --ps)
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 sbindir=$ac_optarg ;;
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 sharedstatedir=$ac_optarg ;;
1118 -site | --site | --sit)
1120 -site=* | --site=* | --sit=*)
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1161 eval with_$ac_useropt=\$ac_optarg ;;
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1168 { (exit 1); exit 1; }; }
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1178 eval with_$ac_useropt=no ;;
1181 # Obsolete; use --with-x.
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1198 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1199 Try \`$0 --help' for more information." >&2
1200 { (exit 1); exit 1; }; }
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1207 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1208 { (exit 1); exit 1; }; }
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1226 { (exit 1); exit 1; }; }
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1232 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1233 { (exit 1); exit 1; }; } ;;
1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 # Check all directory arguments for consistency.
1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1251 # Be sure to have absolute directory names.
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1257 { (exit 1); exit 1; }; }
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1265 target=$target_alias
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281 test "$silent" = yes && exec 6>/dev/null
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1288 { (exit 1); exit 1; }; }
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1291 { (exit 1); exit 1; }; }
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1331 { (exit 1); exit 1; }; }
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1336 { (exit 1); exit 1; }; }
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 for ac_var in $ac_precious_vars; do
1349 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_env_${ac_var}_value=\$${ac_var}
1351 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356 # Report the --help message.
1358 if test "$ac_init_help" = "long"; then
1359 # Omit some internal or obsolete options to make the list less imposing.
1360 # This message is too long to be a string in the A/UX 3.1 sh.
1362 \`configure' configures this package to adapt to many kinds of systems.
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE. See below for descriptions of some of the useful variables.
1369 Defaults for the options are specified in brackets.
1372 -h, --help display this help and exit
1373 --help=short display options specific to this package
1374 --help=recursive display the short help of all the included packages
1375 -V, --version display version information and exit
1376 -q, --quiet, --silent do not print \`checking...' messages
1377 --cache-file=FILE cache test results in FILE [disabled]
1378 -C, --config-cache alias for \`--cache-file=config.cache'
1379 -n, --no-create do not create output files
1380 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1382 Installation directories:
1383 --prefix=PREFIX install architecture-independent files in PREFIX
1384 [$ac_default_prefix]
1385 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1393 For better control, use the options below.
1395 Fine tuning of the installation directories:
1396 --bindir=DIR user executables [EPREFIX/bin]
1397 --sbindir=DIR system admin executables [EPREFIX/sbin]
1398 --libexecdir=DIR program executables [EPREFIX/libexec]
1399 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1411 --htmldir=DIR html documentation [DOCDIR]
1412 --dvidir=DIR dvi documentation [DOCDIR]
1413 --pdfdir=DIR pdf documentation [DOCDIR]
1414 --psdir=DIR ps documentation [DOCDIR]
1420 --build=BUILD configure for building on BUILD [guessed]
1421 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 if test -n "$ac_init_help"; then
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
1434 do `make conf=CONF' to get output in ./out-CONF
1435 --enable-documentation build Documentation. Default: on
1436 --enable-relocation compile with dynamic relocation. Default: off
1437 --enable-rpath hardcode runtime library path. Default: off
1438 --enable-static-gxx link libstdc++.a statically. Default: off
1439 --enable-debugging compile with debugging info. Default: on
1440 --enable-optimising compile with optimising. Default: on
1441 --enable-profiling compile with gprof support. Default: off
1442 --enable-pipe compile with -pipe. Default: on
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-ncsb-dir=DIR location of Century Schoolbook fonts.
1448 --with-localedir=DIR location of locales. Default: PREFIX/share/locale
1449 --with-lang=LANG use LANG as language to emit messages
1450 --with-python-include=DIR
1451 location of the python include dir
1452 --with-python-lib=NAME name of the python lib
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CXX C++ compiler command
1463 CXXFLAGS C++ compiler flags
1464 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1465 the first program found out of: `bison -y', `byacc', `yacc'.
1466 YFLAGS The list of arguments that will be passed by default to $YACC.
1467 This script will default YFLAGS to the empty string to avoid a
1468 default value of `-d' given by some make applications.
1469 CXXCPP C++ preprocessor
1471 Use these variables to override the choices made by `configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1537 generated by GNU Autoconf 2.63
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1546 cat >config.log <<_ACEOF
1547 This file contains any messages produced by compilers while
1548 running configure, to aid debugging if configure makes a mistake.
1550 It was created by $as_me, which was
1551 generated by GNU Autoconf 2.63. Invocation command line was
1563 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1564 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1565 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1566 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1567 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1569 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1570 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1572 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1573 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1574 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1575 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1576 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1577 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1578 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 test -z "$as_dir" && as_dir=.
1587 $as_echo "PATH: $as_dir"
1603 # Keep a trace of the command line.
1604 # Strip out --no-create and --no-recursion so they do not pile up.
1605 # Strip out --silent because we don't want to record it for future runs.
1606 # Also quote any args containing shell meta-characters.
1607 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_must_keep_next=false
1617 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1619 | -silent | --silent | --silen | --sile | --sil)
1622 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1627 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1628 if test $ac_must_keep_next = true; then
1629 ac_must_keep_next=false # Got value, back to normal.
1632 *=* | --config-cache | -C | -disable-* | --disable-* \
1633 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1634 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1635 | -with-* | --with-* | -without-* | --without-* | --x)
1636 case "$ac_configure_args0 " in
1637 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 -* ) ac_must_keep_next=true ;;
1643 ac_configure_args="$ac_configure_args '$ac_arg'"
1648 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1649 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1651 # When interrupted or exit'd, cleanup temporary files, and complete
1652 # config.log. We remove comments because anyway the quotes in there
1653 # would cause problems or look ugly.
1654 # WARNING: Use '\'' to represent an apostrophe within the trap.
1655 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1656 trap 'exit_status=$?
1657 # Save into config.log some information that might help in debugging.
1662 ## ---------------- ##
1663 ## Cache variables. ##
1664 ## ---------------- ##
1667 # The following way of writing the cache mishandles newlines in values,
1669 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1670 eval ac_val=\$$ac_var
1674 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1675 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1678 _ | IFS | as_nl) ;; #(
1679 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1680 *) $as_unset $ac_var ;;
1685 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1686 *${as_nl}ac_space=\ *)
1688 "s/'\''/'\''\\\\'\'''\''/g;
1689 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1700 ## ----------------- ##
1701 ## Output variables. ##
1702 ## ----------------- ##
1705 for ac_var in $ac_subst_vars
1707 eval ac_val=\$$ac_var
1709 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1711 $as_echo "$ac_var='\''$ac_val'\''"
1715 if test -n "$ac_subst_files"; then
1717 ## ------------------- ##
1718 ## File substitutions. ##
1719 ## ------------------- ##
1722 for ac_var in $ac_subst_files
1724 eval ac_val=\$$ac_var
1726 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1728 $as_echo "$ac_var='\''$ac_val'\''"
1733 if test -s confdefs.h; then
1743 test "$ac_signal" != 0 &&
1744 $as_echo "$as_me: caught signal $ac_signal"
1745 $as_echo "$as_me: exit $exit_status"
1747 rm -f core *.core core.conftest.* &&
1748 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751 for ac_signal in 1 2 13 15; do
1752 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1757 rm -f -r conftest* confdefs.h
1759 # Predefined preprocessor variables.
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_NAME "$PACKAGE_NAME"
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_STRING "$PACKAGE_STRING"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1786 # Let the site file select an alternate cache file if it wants to.
1787 # Prefer an explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791 ac_site_file1=$CONFIG_SITE
1792 elif test "x$prefix" != xNONE; then
1793 ac_site_file1=$prefix/share/config.site
1794 ac_site_file2=$prefix/etc/config.site
1796 ac_site_file1=$ac_default_prefix/share/config.site
1797 ac_site_file2=$ac_default_prefix/etc/config.site
1799 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1801 test "x$ac_site_file" = xNONE && continue
1802 if test -r "$ac_site_file"; then
1803 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1804 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1805 sed 's/^/| /' "$ac_site_file" >&5
1810 if test -r "$cache_file"; then
1811 # Some versions of bash will fail to source /dev/null (special
1812 # files actually), so we avoid doing that.
1813 if test -f "$cache_file"; then
1814 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1815 $as_echo "$as_me: loading cache $cache_file" >&6;}
1817 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1818 *) . "./$cache_file";;
1822 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1823 $as_echo "$as_me: creating cache $cache_file" >&6;}
1827 # Check that the precious variables saved in the cache have kept the same
1829 ac_cache_corrupted=false
1830 for ac_var in $ac_precious_vars; do
1831 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1832 eval ac_new_set=\$ac_env_${ac_var}_set
1833 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1834 eval ac_new_val=\$ac_env_${ac_var}_value
1835 case $ac_old_set,$ac_new_set in
1837 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1838 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1841 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1842 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1846 if test "x$ac_old_val" != "x$ac_new_val"; then
1847 # differences in whitespace do not lead to failure.
1848 ac_old_val_w=`echo x $ac_old_val`
1849 ac_new_val_w=`echo x $ac_new_val`
1850 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1851 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1852 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1853 ac_cache_corrupted=:
1855 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1856 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1857 eval $ac_var=\$ac_old_val
1859 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1860 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1861 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1862 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1865 # Pass precious variables to config.status.
1866 if test "$ac_new_set" = set; then
1868 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1869 *) ac_arg=$ac_var=$ac_new_val ;;
1871 case " $ac_configure_args " in
1872 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1873 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1877 if $ac_cache_corrupted; then
1878 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1880 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1881 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1882 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1883 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1884 { (exit 1); exit 1; }; }
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 # Bootstrap StepMake configure
1914 for ac_dir in stepmake/bin "$srcdir"/stepmake/bin; do
1915 if test -f "$ac_dir/install-sh"; then
1917 ac_install_sh="$ac_aux_dir/install-sh -c"
1919 elif test -f "$ac_dir/install.sh"; then
1921 ac_install_sh="$ac_aux_dir/install.sh -c"
1923 elif test -f "$ac_dir/shtool"; then
1925 ac_install_sh="$ac_aux_dir/shtool install -c"
1929 if test -z "$ac_aux_dir"; then
1930 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&5
1931 $as_echo "$as_me: error: cannot find install-sh or install.sh in stepmake/bin \"$srcdir\"/stepmake/bin" >&2;}
1932 { (exit 1); exit 1; }; }
1935 # These three variables are undocumented and unsupported,
1936 # and are intended to be withdrawn in a future Autoconf release.
1937 # They can cause serious problems if a builder's source tree is in a directory
1938 # whose full name contains unusual characters.
1939 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1940 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1941 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1945 # For stepmake package:
1946 # AC_CONFIG_AUX_DIR(bin)
1949 # Make sure we can run config.sub.
1950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1951 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1952 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1953 { (exit 1); exit 1; }; }
1955 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1956 $as_echo_n "checking build system type... " >&6; }
1957 if test "${ac_cv_build+set}" = set; then
1958 $as_echo_n "(cached) " >&6
1960 ac_build_alias=$build_alias
1961 test "x$ac_build_alias" = x &&
1962 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1963 test "x$ac_build_alias" = x &&
1964 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1965 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1966 { (exit 1); exit 1; }; }
1967 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1968 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1969 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1970 { (exit 1); exit 1; }; }
1973 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1974 $as_echo "$ac_cv_build" >&6; }
1975 case $ac_cv_build in
1977 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1978 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1979 { (exit 1); exit 1; }; };;
1982 ac_save_IFS=$IFS; IFS='-'
1988 # Remember, the first character of IFS is used to create $*,
1989 # except with old shells:
1992 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1998 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
1999 MICRO_VERSION=$PATCH_LEVEL
2000 TOPLEVEL_VERSION=$FULL_VERSION
2001 if test x$MY_PATCH_LEVEL != x; then
2002 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2004 VERSION=$FULL_VERSION
2005 export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2006 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2008 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2009 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2012 # No versioning on directory names of sub-packages
2014 stepmake=${datadir}/stepmake
2016 if test "$prefix" = "NONE"; then
2017 presome=${ac_default_prefix}
2019 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2021 # urg, how is this supposed to work?
2022 if test "$program_prefix" = "NONE"; then
2025 if test "$program_suffix" = "NONE"; then
2029 { $as_echo "$as_me:$LINENO: checking Package" >&5
2030 $as_echo_n "checking Package... " >&6; }
2031 if test "$PACKAGE" = "STEPMAKE"; then
2032 { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2033 $as_echo "Stepmake package!" >&6; }
2035 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2036 $as_echo_n "checking builddir... " >&6; }
2038 ugh_ugh_autoconf250_builddir="`pwd`"
2040 if test "$srcdir" = "."; then
2044 package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2045 package_srcdir="`dirname $srcdir`"
2047 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2048 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2050 (cd stepmake 2>/dev/null || mkdir stepmake)
2051 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2054 { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2055 $as_echo "$PACKAGE" >&6; }
2057 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2058 $as_echo_n "checking builddir... " >&6; }
2059 ugh_ugh_autoconf250_builddir="`pwd`"
2061 here_dir=$(cd . && pwd)
2062 full_src_dir=$(cd $srcdir && pwd)
2064 if test "$full_src_dir" = "$here_dir"; then
2069 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2070 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2072 { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2073 $as_echo_n "checking for stepmake... " >&6; }
2074 # Check for installed stepmake
2075 if test -d $stepmake; then
2076 { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2077 $as_echo "$stepmake" >&6; }
2079 stepmake="`cd $srcdir/stepmake; pwd`"
2080 { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake ($datadir/stepmake not found)" >&5
2081 $as_echo "$srcdir/stepmake ($datadir/stepmake not found)" >&6; }
2087 # Use absolute directory for non-srcdir builds, so that build
2089 if test "$srcdir_build" = "no" ; then
2090 srcdir="`cd $srcdir; pwd`"
2103 # stepmake nonstandard names
2107 # We don't need the upper case variant,
2108 # so stick to macros are uppercase convention.
2109 # AC_DEFINE_UNQUOTED(package, ["${package}"])
2110 # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE "${package}"
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_NAME "${PACKAGE_NAME}"
2119 cat >>confdefs.h <<_ACEOF
2120 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2124 if test -z "$package_depth"; then
2127 package_depth="../$package_depth"
2129 export package_depth
2132 AUTOGENERATE="This file was automatically generated by configure"
2136 # Check whether --enable-config was given.
2137 if test "${enable_config+set}" = set; then
2138 enableval=$enable_config; CONFIGURATION=$enableval
2144 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2145 CONFIGFILE=config$CONFIGSUFFIX
2148 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2149 $as_echo_n "checking host system type... " >&6; }
2150 if test "${ac_cv_host+set}" = set; then
2151 $as_echo_n "(cached) " >&6
2153 if test "x$host_alias" = x; then
2154 ac_cv_host=$ac_cv_build
2156 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2157 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2158 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2159 { (exit 1); exit 1; }; }
2163 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2164 $as_echo "$ac_cv_host" >&6; }
2167 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2168 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2169 { (exit 1); exit 1; }; };;
2172 ac_save_IFS=$IFS; IFS='-'
2178 # Remember, the first character of IFS is used to create $*,
2179 # except with old shells:
2182 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2186 for ac_prog in gmake make
2188 # Extract the first word of "$ac_prog", so it can be a program name with args.
2189 set dummy $ac_prog; ac_word=$2
2190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 $as_echo_n "checking for $ac_word... " >&6; }
2192 if test "${ac_cv_prog_MAKE+set}" = set; then
2193 $as_echo_n "(cached) " >&6
2195 if test -n "$MAKE"; then
2196 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205 ac_cv_prog_MAKE="$ac_prog"
2206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 MAKE=$ac_cv_prog_MAKE
2216 if test -n "$MAKE"; then
2217 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2218 $as_echo "$MAKE" >&6; }
2220 { $as_echo "$as_me:$LINENO: result: no" >&5
2221 $as_echo "no" >&6; }
2225 test -n "$MAKE" && break
2227 test -n "$MAKE" || MAKE="no"
2231 r="`eval echo '$'"MAKE"`"
2232 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2235 ##STEPMAKE_WARN(cannot find . )
2239 if test $? -ne 0; then
2241 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2243 if test "REQUIRED" = "REQUIRED"; then
2244 command="echo ERROR: gmake make not found"
2245 # abort configure process here?
2247 command="- echo gmake make not found"
2249 eval "MAKE"='$command'
2255 if test $? -eq 0 -a -n ""; then
2257 r="`eval echo '$'"MAKE"`"
2258 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2259 $as_echo_n "checking $r version... " >&6; }
2261 ## which doesn't work in ash, if /usr/bin/which isn't installed
2262 ## type -p doesn't work in ash
2263 ## command -v doesn't work in zsh
2264 ## command -v "$r" 2>&1
2265 ## this test should work in ash, bash, pdksh (ksh), zsh
2266 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2272 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2275 ## Workaround for broken Debian gcc version string:
2276 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2278 ## -V: Workaround for python
2282 ## Assume and hunt for dotted version multiplet.
2283 ## use eval trickery, because we cannot use multi-level $() instead of ``
2284 ## for compatibility reasons.
2286 ## grab the first version number in --version output.
2287 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2288 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2291 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2292 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2295 if test -z "$_ver"; then
2296 ## If empty, try date [fontforge]
2297 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2299 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2306 echo "$ver" | awk -F. '
2308 if ($3) {three = $3}
2311 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2316 if ($3) {three = $3}
2319 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2321 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2322 $as_echo "$ver" >&6; }
2323 if test "$num" -lt "$req"; then
2325 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2328 vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2329 eval `echo $vervar=$num`
2330 ## AC_SUBST(`eval echo $vervar`)
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 $as_echo_n "checking for $ac_word... " >&6; }
2341 if test "${ac_cv_prog_FIND+set}" = set; then
2342 $as_echo_n "(cached) " >&6
2344 if test -n "$FIND"; then
2345 ac_cv_prog_FIND="$FIND" # Let the user override the test.
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 for ac_exec_ext in '' $ac_executable_extensions; do
2353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354 ac_cv_prog_FIND="$ac_prog"
2355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 FIND=$ac_cv_prog_FIND
2365 if test -n "$FIND"; then
2366 { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2367 $as_echo "$FIND" >&6; }
2369 { $as_echo "$as_me:$LINENO: result: no" >&5
2370 $as_echo "no" >&6; }
2374 test -n "$FIND" && break
2376 test -n "$FIND" || FIND="no"
2380 r="`eval echo '$'"FIND"`"
2381 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2384 ##STEPMAKE_WARN(cannot find . )
2388 if test $? -ne 0; then
2390 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2392 if test "REQUIRED" = "REQUIRED"; then
2393 command="echo ERROR: find not found"
2394 # abort configure process here?
2396 command="- echo find not found"
2398 eval "FIND"='$command'
2404 if test $? -eq 0 -a -n ""; then
2406 r="`eval echo '$'"FIND"`"
2407 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2408 $as_echo_n "checking $r version... " >&6; }
2410 ## which doesn't work in ash, if /usr/bin/which isn't installed
2411 ## type -p doesn't work in ash
2412 ## command -v doesn't work in zsh
2413 ## command -v "$r" 2>&1
2414 ## this test should work in ash, bash, pdksh (ksh), zsh
2415 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2421 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2424 ## Workaround for broken Debian gcc version string:
2425 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2427 ## -V: Workaround for python
2431 ## Assume and hunt for dotted version multiplet.
2432 ## use eval trickery, because we cannot use multi-level $() instead of ``
2433 ## for compatibility reasons.
2435 ## grab the first version number in --version output.
2436 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2437 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2440 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2441 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2444 if test -z "$_ver"; then
2445 ## If empty, try date [fontforge]
2446 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2448 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2455 echo "$ver" | awk -F. '
2457 if ($3) {three = $3}
2460 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2465 if ($3) {three = $3}
2468 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2470 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2471 $as_echo "$ver" >&6; }
2472 if test "$num" -lt "$req"; then
2474 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2477 vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2478 eval `echo $vervar=$num`
2479 ## AC_SUBST(`eval echo $vervar`)
2487 # Extract the first word of "$ac_prog", so it can be a program name with args.
2488 set dummy $ac_prog; ac_word=$2
2489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2490 $as_echo_n "checking for $ac_word... " >&6; }
2491 if test "${ac_cv_prog_TAR+set}" = set; then
2492 $as_echo_n "(cached) " >&6
2494 if test -n "$TAR"; then
2495 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504 ac_cv_prog_TAR="$ac_prog"
2505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2515 if test -n "$TAR"; then
2516 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2517 $as_echo "$TAR" >&6; }
2519 { $as_echo "$as_me:$LINENO: result: no" >&5
2520 $as_echo "no" >&6; }
2524 test -n "$TAR" && break
2526 test -n "$TAR" || TAR="no"
2530 r="`eval echo '$'"TAR"`"
2531 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2534 ##STEPMAKE_WARN(cannot find . )
2538 if test $? -ne 0; then
2540 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2542 if test "REQUIRED" = "REQUIRED"; then
2543 command="echo ERROR: tar not found"
2544 # abort configure process here?
2546 command="- echo tar not found"
2548 eval "TAR"='$command'
2554 if test $? -eq 0 -a -n ""; then
2556 r="`eval echo '$'"TAR"`"
2557 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2558 $as_echo_n "checking $r version... " >&6; }
2560 ## which doesn't work in ash, if /usr/bin/which isn't installed
2561 ## type -p doesn't work in ash
2562 ## command -v doesn't work in zsh
2563 ## command -v "$r" 2>&1
2564 ## this test should work in ash, bash, pdksh (ksh), zsh
2565 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2571 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2574 ## Workaround for broken Debian gcc version string:
2575 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2577 ## -V: Workaround for python
2581 ## Assume and hunt for dotted version multiplet.
2582 ## use eval trickery, because we cannot use multi-level $() instead of ``
2583 ## for compatibility reasons.
2585 ## grab the first version number in --version output.
2586 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2587 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2590 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2591 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2594 if test -z "$_ver"; then
2595 ## If empty, try date [fontforge]
2596 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2598 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2605 echo "$ver" | awk -F. '
2607 if ($3) {three = $3}
2610 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2615 if ($3) {three = $3}
2618 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2620 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2621 $as_echo "$ver" >&6; }
2622 if test "$num" -lt "$req"; then
2624 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2627 vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2628 eval `echo $vervar=$num`
2629 ## AC_SUBST(`eval echo $vervar`)
2634 if test "$(echo 2)" != "2" ||
2635 test "x`uname`" = "xHP-UX"; then
2636 # Extract the first word of "ksh", so it can be a program name with args.
2637 set dummy ksh; ac_word=$2
2638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_path_KSH+set}" = set; then
2641 $as_echo_n "(cached) " >&6
2645 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2656 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2668 if test -n "$KSH"; then
2669 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2670 $as_echo "$KSH" >&6; }
2672 { $as_echo "$as_me:$LINENO: result: no" >&5
2673 $as_echo "no" >&6; }
2677 # Extract the first word of "bash", so it can be a program name with args.
2678 set dummy bash; ac_word=$2
2679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if test "${ac_cv_path_BASH+set}" = set; then
2682 $as_echo_n "(cached) " >&6
2686 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2708 BASH=$ac_cv_path_BASH
2709 if test -n "$BASH"; then
2710 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2711 $as_echo "$BASH" >&6; }
2713 { $as_echo "$as_me:$LINENO: result: no" >&5
2714 $as_echo "no" >&6; }
2719 { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2720 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2723 # Extract the first word of "bash", so it can be a program name with args.
2724 set dummy bash; ac_word=$2
2725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if test "${ac_cv_path_SHELL+set}" = set; then
2728 $as_echo_n "(cached) " >&6
2732 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2754 SHELL=$ac_cv_path_SHELL
2755 if test -n "$SHELL"; then
2756 { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2757 $as_echo "$SHELL" >&6; }
2759 { $as_echo "$as_me:$LINENO: result: no" >&5
2760 $as_echo "no" >&6; }
2766 # Extract the first word of "bash", so it can be a program name with args.
2767 set dummy bash; ac_word=$2
2768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_path_BASH+set}" = set; then
2771 $as_echo_n "(cached) " >&6
2775 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2797 BASH=$ac_cv_path_BASH
2798 if test -n "$BASH"; then
2799 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2800 $as_echo "$BASH" >&6; }
2802 { $as_echo "$as_me:$LINENO: result: no" >&5
2803 $as_echo "no" >&6; }
2812 { $as_echo "$as_me:$LINENO: checking for python" >&5
2813 $as_echo_n "checking for python... " >&6; }
2814 for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
2815 { $as_echo "$as_me:$LINENO: result: $python" >&5
2816 $as_echo "$python" >&6; }
2817 if ! $python -V > /dev/null 2>&1 ; then
2818 #AC_MSG_WARN([cannot execute $python])
2819 PYTHON='echo no python'
2823 r="`eval echo '$'"python"`"
2824 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2825 $as_echo_n "checking $r version... " >&6; }
2827 ## which doesn't work in ash, if /usr/bin/which isn't installed
2828 ## type -p doesn't work in ash
2829 ## command -v doesn't work in zsh
2830 ## command -v "$r" 2>&1
2831 ## this test should work in ash, bash, pdksh (ksh), zsh
2832 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2838 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2841 ## Workaround for broken Debian gcc version string:
2842 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2844 ## -V: Workaround for python
2848 ## Assume and hunt for dotted version multiplet.
2849 ## use eval trickery, because we cannot use multi-level $() instead of ``
2850 ## for compatibility reasons.
2852 ## grab the first version number in --version output.
2853 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2854 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2857 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2858 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2861 if test -z "$_ver"; then
2862 ## If empty, try date [fontforge]
2863 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
2865 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2872 echo "$ver" | awk -F. '
2874 if ($3) {three = $3}
2877 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2880 echo "1.5" | awk -F. '
2882 if ($3) {three = $3}
2885 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2887 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2888 $as_echo "$ver" >&6; }
2889 if test "$num" -lt "$req"; then
2891 eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 1.5 (installed: $ver)"\"`\"
2894 vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
2895 eval `echo $vervar=$num`
2896 ## AC_SUBST(`eval echo $vervar`)
2898 if test -z "$pv"; then
2904 if test -n "$pv"; then
2906 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
2909 # clear cached value since arg 2 might point us to a new binary
2910 unset ac_cv_path_PYTHON
2912 # Extract the first word of "$PYTHON", so it can be a program name with args.
2913 set dummy $PYTHON; ac_word=$2
2914 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if test "${ac_cv_path_PYTHON+set}" = set; then
2917 $as_echo_n "(cached) " >&6
2921 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 PYTHON=$ac_cv_path_PYTHON
2943 if test -n "$PYTHON"; then
2944 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2945 $as_echo "$PYTHON" >&6; }
2947 { $as_echo "$as_me:$LINENO: result: no" >&5
2948 $as_echo "no" >&6; }
2955 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2956 $MAKE -v 2> /dev/null | grep GNU > /dev/null
2957 if test "$?" = 1; then
2958 warn='make (Please install *GNU* make)'
2959 # STEPMAKE_WARN($warn)
2961 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2978 cat >>confdefs.h <<_ACEOF
2979 #define DIRSEP '${DIRSEP}'
2982 cat >>confdefs.h <<_ACEOF
2983 #define PATHSEP '${PATHSEP}'
2991 if test "$datadir" = "\${prefix}/share"; then
2992 datadir='${prefix}/share'
2995 if test "$prefix" = "NONE"; then
2996 presome=${ac_default_prefix}
2999 build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3001 DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${prefix}/share!"`
3002 DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3003 BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3008 cat >>confdefs.h <<_ACEOF
3009 #define DATADIR "${DATADIR}"
3012 cat >>confdefs.h <<_ACEOF
3013 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3019 if test "$libdir" = "\${exec_prefix}/lib"; then
3020 libdir='${exec_prefix}/lib'
3022 presome=$exec_prefix
3023 build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3025 LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3026 BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3030 cat >>confdefs.h <<_ACEOF
3031 #define LIBDIR "${LIBDIR}"
3034 cat >>confdefs.h <<_ACEOF
3035 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3041 # List a file that identifies your package.
3044 # Move to aclocal.m4?
3045 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3048 # Uncomment the configuration options your package needs.
3051 # Check whether --enable-documentation was given.
3052 if test "${enable_documentation+set}" = set; then
3053 enableval=$enable_documentation; DOCUMENTATION=$enableval
3059 # Check whether --with-ncsb-dir was given.
3060 if test "${with_ncsb_dir+set}" = set; then
3061 withval=$with_ncsb_dir; NCSB_DIR=$withval
3068 # Check whether --enable-relocation was given.
3069 if test "${enable_relocation+set}" = set; then
3070 enableval=$enable_relocation; reloc_b=$enableval
3075 # Check whether --enable-rpath was given.
3076 if test "${enable_rpath+set}" = set; then
3077 enableval=$enable_rpath; rpath_b=$enableval
3081 LINK_GXX_STATICALLY=no
3082 # Check whether --enable-static-gxx was given.
3083 if test "${enable_static_gxx+set}" = set; then
3084 enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3089 # must come before any header checks
3091 # -O is necessary to get inlining
3093 CXXFLAGS=${CXXFLAGS-$CFLAGS}
3094 LDFLAGS=${LDFLAGS-""}
3100 # Check whether --enable-debugging was given.
3101 if test "${enable_debugging+set}" = set; then
3102 enableval=$enable_debugging; debug_b=$enableval
3106 # Check whether --enable-optimising was given.
3107 if test "${enable_optimising+set}" = set; then
3108 enableval=$enable_optimising; optimise_b=$enableval
3112 # Check whether --enable-profiling was given.
3113 if test "${enable_profiling+set}" = set; then
3114 enableval=$enable_profiling; profile_b=$enableval
3118 # Check whether --enable-pipe was given.
3119 if test "${enable_pipe+set}" = set; then
3120 enableval=$enable_pipe; pipe_b=$enableval
3124 if test "$optimise_b" = yes; then
3125 cat >>confdefs.h <<\_ACEOF
3129 DEFINES="$DEFINES -DNDEBUG"
3130 OPTIMIZE=" -O2 -finline-functions"
3133 if test $profile_b = yes; then
3135 OPTIMIZE="$OPTIMIZE -pg"
3138 if test $debug_b = yes; then
3139 OPTIMIZE="$OPTIMIZE -g"
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147 if test -n "$ac_tool_prefix"; then
3148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if test "${ac_cv_prog_CC+set}" = set; then
3153 $as_echo_n "(cached) " >&6
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 if test -n "$CC"; then
3177 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3180 { $as_echo "$as_me:$LINENO: result: no" >&5
3181 $as_echo "no" >&6; }
3186 if test -z "$ac_cv_prog_CC"; then
3188 # Extract the first word of "gcc", so it can be a program name with args.
3189 set dummy gcc; ac_word=$2
3190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_ac_ct_CC="gcc"
3206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216 if test -n "$ac_ct_CC"; then
3217 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3218 $as_echo "$ac_ct_CC" >&6; }
3220 { $as_echo "$as_me:$LINENO: result: no" >&5
3221 $as_echo "no" >&6; }
3224 if test "x$ac_ct_CC" = x; then
3227 case $cross_compiling:$ac_tool_warned in
3229 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3231 ac_tool_warned=yes ;;
3239 if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
3241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3242 set dummy ${ac_tool_prefix}cc; ac_word=$2
3243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 $as_echo_n "checking for $ac_word... " >&6; }
3245 if test "${ac_cv_prog_CC+set}" = set; then
3246 $as_echo_n "(cached) " >&6
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_CC="${ac_tool_prefix}cc"
3259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 if test -n "$CC"; then
3270 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3271 $as_echo "$CC" >&6; }
3273 { $as_echo "$as_me:$LINENO: result: no" >&5
3274 $as_echo "no" >&6; }
3280 if test -z "$CC"; then
3281 # Extract the first word of "cc", so it can be a program name with args.
3282 set dummy cc; ac_word=$2
3283 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_CC+set}" = set; then
3286 $as_echo_n "(cached) " >&6
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3300 ac_prog_rejected=yes
3304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test $ac_prog_rejected = yes; then
3312 # We found a bogon in the path, so make sure we never use it.
3313 set dummy $ac_cv_prog_CC
3315 if test $# != 0; then
3316 # We chose a different compiler from the bogus one.
3317 # However, it has the same basename, so the bogon will be chosen
3318 # first if we set CC to just the basename; use the full file name.
3320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3326 if test -n "$CC"; then
3327 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3330 { $as_echo "$as_me:$LINENO: result: no" >&5
3331 $as_echo "no" >&6; }
3336 if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 for ac_prog in cl.exe
3340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if test "${ac_cv_prog_CC+set}" = set; then
3345 $as_echo_n "(cached) " >&6
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 if test -n "$CC"; then
3369 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3372 { $as_echo "$as_me:$LINENO: result: no" >&5
3373 $as_echo "no" >&6; }
3377 test -n "$CC" && break
3380 if test -z "$CC"; then
3382 for ac_prog in cl.exe
3384 # Extract the first word of "$ac_prog", so it can be a program name with args.
3385 set dummy $ac_prog; ac_word=$2
3386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3389 $as_echo_n "(cached) " >&6
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_ac_ct_CC="$ac_prog"
3402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3416 { $as_echo "$as_me:$LINENO: result: no" >&5
3417 $as_echo "no" >&6; }
3421 test -n "$ac_ct_CC" && break
3424 if test "x$ac_ct_CC" = x; then
3427 case $cross_compiling:$ac_tool_warned in
3429 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431 ac_tool_warned=yes ;;
3440 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3443 See \`config.log' for more details." >&5
3444 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }; }
3448 # Provide some information about the compiler.
3449 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3452 { (ac_try="$ac_compiler --version >&5"
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3458 $as_echo "$ac_try_echo") >&5
3459 (eval "$ac_compiler --version >&5") 2>&5
3461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }
3463 { (ac_try="$ac_compiler -v >&5"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469 $as_echo "$ac_try_echo") >&5
3470 (eval "$ac_compiler -v >&5") 2>&5
3472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }
3474 { (ac_try="$ac_compiler -V >&5"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481 (eval "$ac_compiler -V >&5") 2>&5
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }
3486 cat >conftest.$ac_ext <<_ACEOF
3489 cat confdefs.h >>conftest.$ac_ext
3490 cat >>conftest.$ac_ext <<_ACEOF
3491 /* end confdefs.h. */
3501 ac_clean_files_save=$ac_clean_files
3502 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3503 # Try to create an executable without -o first, disregard a.out.
3504 # It will help us diagnose broken compilers, and finding out an intuition
3506 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3507 $as_echo_n "checking for C compiler default output file name... " >&6; }
3508 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3510 # The possible output files:
3511 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514 for ac_file in $ac_files
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3523 if { (ac_try="$ac_link_default"
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3529 $as_echo "$ac_try_echo") >&5
3530 (eval "$ac_link_default") 2>&5
3532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; then
3534 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3535 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3536 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3537 # so that the user can short-circuit this test for compilers unknown to
3539 for ac_file in $ac_files ''
3541 test -f "$ac_file" || continue
3543 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546 # We found the default executable, but exeext='' is most
3550 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3552 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3554 # We set ac_cv_exeext here because the later test for it is not
3555 # safe: cross compilers may not add the suffix if given an `-o'
3556 # argument, so we may need to know it at that point already.
3557 # Even if this section looks crufty: it has the advantage of
3564 test "$ac_cv_exeext" = no && ac_cv_exeext=
3570 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3571 $as_echo "$ac_file" >&6; }
3572 if test -z "$ac_file"; then
3573 $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3579 See \`config.log' for more details." >&5
3580 $as_echo "$as_me: error: C compiler cannot create executables
3581 See \`config.log' for more details." >&2;}
3582 { (exit 77); exit 77; }; }; }
3585 ac_exeext=$ac_cv_exeext
3587 # Check that the compiler produces executables we can run. If not, either
3588 # the compiler is broken, or we cross compile.
3589 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3590 $as_echo_n "checking whether the C compiler works... " >&6; }
3591 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3592 # If not cross compiling, check that we can run a simple program.
3593 if test "$cross_compiling" != yes; then
3594 if { ac_try='./$ac_file'
3595 { (case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3600 $as_echo "$ac_try_echo") >&5
3601 (eval "$ac_try") 2>&5
3603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3607 if test "$cross_compiling" = maybe; then
3610 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3613 If you meant to cross compile, use \`--host'.
3614 See \`config.log' for more details." >&5
3615 $as_echo "$as_me: error: cannot run C compiled programs.
3616 If you meant to cross compile, use \`--host'.
3617 See \`config.log' for more details." >&2;}
3618 { (exit 1); exit 1; }; }; }
3622 { $as_echo "$as_me:$LINENO: result: yes" >&5
3623 $as_echo "yes" >&6; }
3625 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3626 ac_clean_files=$ac_clean_files_save
3627 # Check that the compiler produces executables we can run. If not, either
3628 # the compiler is broken, or we cross compile.
3629 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3630 $as_echo_n "checking whether we are cross compiling... " >&6; }
3631 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3632 $as_echo "$cross_compiling" >&6; }
3634 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3635 $as_echo_n "checking for suffix of executables... " >&6; }
3636 if { (ac_try="$ac_link"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643 (eval "$ac_link") 2>&5
3645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; then
3647 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3648 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3649 # work properly (i.e., refer to `conftest.exe'), while it won't with
3651 for ac_file in conftest.exe conftest conftest.*; do
3652 test -f "$ac_file" || continue
3654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3664 See \`config.log' for more details." >&5
3665 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3666 See \`config.log' for more details." >&2;}
3667 { (exit 1); exit 1; }; }; }
3670 rm -f conftest$ac_cv_exeext
3671 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3672 $as_echo "$ac_cv_exeext" >&6; }
3674 rm -f conftest.$ac_ext
3675 EXEEXT=$ac_cv_exeext
3677 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3678 $as_echo_n "checking for suffix of object files... " >&6; }
3679 if test "${ac_cv_objext+set}" = set; then
3680 $as_echo_n "(cached) " >&6
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3697 rm -f conftest.o conftest.obj
3698 if { (ac_try="$ac_compile"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705 (eval "$ac_compile") 2>&5
3707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); }; then
3709 for ac_file in conftest.o conftest.obj conftest.*; do
3710 test -f "$ac_file" || continue;
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3713 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3718 $as_echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3721 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3724 See \`config.log' for more details." >&5
3725 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3726 See \`config.log' for more details." >&2;}
3727 { (exit 1); exit 1; }; }; }
3730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3732 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3733 $as_echo "$ac_cv_objext" >&6; }
3734 OBJEXT=$ac_cv_objext
3736 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3737 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3738 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3739 $as_echo_n "(cached) " >&6
3741 cat >conftest.$ac_ext <<_ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766 $as_echo "$ac_try_echo") >&5
3767 (eval "$ac_compile") 2>conftest.er1
3769 grep -v '^ *+' conftest.er1 >conftest.err
3771 cat conftest.err >&5
3772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } && {
3774 test -z "$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 } && test -s conftest.$ac_objext; then
3779 $as_echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3789 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3791 if test $ac_compiler_gnu = yes; then
3796 ac_test_CFLAGS=${CFLAGS+set}
3797 ac_save_CFLAGS=$CFLAGS
3798 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3800 if test "${ac_cv_prog_cc_g+set}" = set; then
3801 $as_echo_n "(cached) " >&6
3803 ac_save_c_werror_flag=$ac_c_werror_flag
3804 ac_c_werror_flag=yes
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3822 rm -f conftest.$ac_objext
3823 if { (ac_try="$ac_compile"
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3829 $as_echo "$ac_try_echo") >&5
3830 (eval "$ac_compile") 2>conftest.er1
3832 grep -v '^ *+' conftest.er1 >conftest.err
3834 cat conftest.err >&5
3835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } && {
3837 test -z "$ac_c_werror_flag" ||
3838 test ! -s conftest.err
3839 } && test -s conftest.$ac_objext; then
3842 $as_echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3846 cat >conftest.$ac_ext <<_ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3861 rm -f conftest.$ac_objext
3862 if { (ac_try="$ac_compile"
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3868 $as_echo "$ac_try_echo") >&5
3869 (eval "$ac_compile") 2>conftest.er1
3871 grep -v '^ *+' conftest.er1 >conftest.err
3873 cat conftest.err >&5
3874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && {
3876 test -z "$ac_c_werror_flag" ||
3877 test ! -s conftest.err
3878 } && test -s conftest.$ac_objext; then
3881 $as_echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_c_werror_flag=$ac_save_c_werror_flag
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3901 rm -f conftest.$ac_objext
3902 if { (ac_try="$ac_compile"
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908 $as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3911 grep -v '^ *+' conftest.er1 >conftest.err
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 ac_c_werror_flag=$ac_save_c_werror_flag
3936 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3937 $as_echo "$ac_cv_prog_cc_g" >&6; }
3938 if test "$ac_test_CFLAGS" = set; then
3939 CFLAGS=$ac_save_CFLAGS
3940 elif test $ac_cv_prog_cc_g = yes; then
3941 if test "$GCC" = yes; then
3947 if test "$GCC" = yes; then
3953 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3954 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3955 if test "${ac_cv_prog_cc_c89+set}" = set; then
3956 $as_echo_n "(cached) " >&6
3958 ac_cv_prog_cc_c89=no
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3968 #include <sys/types.h>
3969 #include <sys/stat.h>
3970 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3971 struct buf { int x; };
3972 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3973 static char *e (p, i)
3979 static char *f (char * (*g) (char **, int), char **p, ...)
3984 s = g (p, va_arg (v,int));
3989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3990 function prototypes and stuff, but not '\xHH' hex character constants.
3991 These don't provoke an error unfortunately, instead are silently treated
3992 as 'x'. The following induces an error, until -std is added to get
3993 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3994 array size at least. It's necessary to write '\x00'==0 to get something
3995 that's true only with -std. */
3996 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3999 inside strings and character constants. */
4001 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4003 int test (int i, double x);
4004 struct s1 {int (*f) (int a);};
4005 struct s2 {int (*f) (double a);};
4006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4012 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4017 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4018 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4020 CC="$ac_save_CC $ac_arg"
4021 rm -f conftest.$ac_objext
4022 if { (ac_try="$ac_compile"
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4028 $as_echo "$ac_try_echo") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } && {
4036 test -z "$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4038 } && test -s conftest.$ac_objext; then
4039 ac_cv_prog_cc_c89=$ac_arg
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4047 rm -f core conftest.err conftest.$ac_objext
4048 test "x$ac_cv_prog_cc_c89" != "xno" && break
4050 rm -f conftest.$ac_ext
4055 case "x$ac_cv_prog_cc_c89" in
4057 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4058 $as_echo "none needed" >&6; } ;;
4060 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4061 $as_echo "unsupported" >&6; } ;;
4063 CC="$CC $ac_cv_prog_cc_c89"
4064 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4065 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 r="`eval echo '$'"CC"`"
4083 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4086 ##STEPMAKE_WARN(cannot find . )
4090 if test $? -ne 0; then
4092 eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4094 if test "" = "REQUIRED"; then
4095 command="echo ERROR: cc not found"
4096 # abort configure process here?
4098 command="- echo cc not found"
4100 eval "CC"='$command'
4109 # If -pipe requested, test if it works and add to CFLAGS.
4110 if test "$pipe_b" = yes; then
4111 save_cflags="$CFLAGS"
4112 CFLAGS=" -pipe $CFLAGS";
4113 { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4114 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4115 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4116 $as_echo_n "(cached) " >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4141 $as_echo "$ac_try_echo") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } && {
4149 test -z "$ac_c_werror_flag" ||
4150 test ! -s conftest.err
4151 } && test -s conftest.$ac_objext; then
4152 stepmake_cv_cflags_pipe=yes
4154 $as_echo "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4157 stepmake_cv_cflags_pipe=no
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4163 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4165 if test $stepmake_cv_cflags_pipe = yes; then
4166 OPTIMIZE="$OPTIMIZE -pipe"
4170 CFLAGS="$CFLAGS $OPTIMIZE"
4171 CPPFLAGS=${CPPFLAGS-""}
4173 { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4174 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4175 save_cflags="$CFLAGS"
4178 { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4179 $as_echo "-mieee" >&6; }
4180 CFLAGS=" -mieee $CFLAGS"
4183 { $as_echo "$as_me:$LINENO: result: none" >&5
4184 $as_echo "none" >&6; }
4196 # Extract the first word of "fc-list", so it can be a program name with args.
4197 set dummy fc-list; ac_word=$2
4198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_FCLIST+set}" = set; then
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$FCLIST"; then
4204 ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_FCLIST="fc-list"
4214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 FCLIST=$ac_cv_prog_FCLIST
4224 if test -n "$FCLIST"; then
4225 { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4226 $as_echo "$FCLIST" >&6; }
4228 { $as_echo "$as_me:$LINENO: result: no" >&5
4229 $as_echo "no" >&6; }
4233 { $as_echo "$as_me:$LINENO: checking New Century Schoolbook PFB files" >&5
4234 $as_echo_n "checking New Century Schoolbook PFB files... " >&6; }
4236 if test "$NCSB_DIR" != "" ; then
4237 NCSB_SOURCE_FILES=""
4238 for f in c059013l c059016l c059033l c059036l; do
4239 if test ! -f "$NCSB_DIR/$f.pfb"; then
4241 { $as_echo "$as_me:$LINENO: WARNING: $NCSB_DIR does not contain $f.pfb." >&5
4242 $as_echo "$as_me: WARNING: $NCSB_DIR does not contain $f.pfb." >&2;}
4246 NCSB_SOURCE_FILES="$NCSB_DIR/$f.pfb $NCSB_SOURCE_FILES"
4250 if test "$FCLIST" != ""; then
4251 for style in Roman Italic "Bold Italic" Bold; do
4252 NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file \
4254 NCSB_FILE=`echo $NCSB_FILE | sed 's/^\(.*\):$/\1/g'`
4255 NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
4256 NCSB_SOURCE_FILES="$NCSB_FILE $NCSB_SOURCE_FILES"
4259 { $as_echo "$as_me:$LINENO: result: not found" >&5
4260 $as_echo "not found" >&6; }
4261 echo "Can't find Century Schoolbook files. Install FontConfig's fc-list,"
4262 echo "or use --with-ncsb-dir"
4265 { $as_echo "$as_me:$LINENO: result: $NCSB_SOURCE_FILES" >&5
4266 $as_echo "$NCSB_SOURCE_FILES" >&6; }
4269 ac_cpp='$CXXCPP $CPPFLAGS'
4270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4277 { $as_echo "$as_me:$LINENO: checking for python" >&5
4278 $as_echo_n "checking for python... " >&6; }
4279 for python in $PYTHON python python2 python2.4 python2.3 python2.2 python2.1 python2.0; do
4280 { $as_echo "$as_me:$LINENO: result: $python" >&5
4281 $as_echo "$python" >&6; }
4282 if ! $python -V > /dev/null 2>&1 ; then
4283 #AC_MSG_WARN([cannot execute $python])
4284 PYTHON='echo no python'
4288 r="`eval echo '$'"python"`"
4289 { $as_echo "$as_me:$LINENO: checking $r version" >&5
4290 $as_echo_n "checking $r version... " >&6; }
4292 ## which doesn't work in ash, if /usr/bin/which isn't installed
4293 ## type -p doesn't work in ash
4294 ## command -v doesn't work in zsh
4295 ## command -v "$r" 2>&1
4296 ## this test should work in ash, bash, pdksh (ksh), zsh
4297 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4303 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4306 ## Workaround for broken Debian gcc version string:
4307 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4309 ## -V: Workaround for python
4313 ## Assume and hunt for dotted version multiplet.
4314 ## use eval trickery, because we cannot use multi-level $() instead of ``
4315 ## for compatibility reasons.
4317 ## grab the first version number in --version output.
4318 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4319 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4322 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4323 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4326 if test -z "$_ver"; then
4327 ## If empty, try date [fontforge]
4328 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4330 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4337 echo "$ver" | awk -F. '
4339 if ($3) {three = $3}
4342 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4345 echo "2.4" | awk -F. '
4347 if ($3) {three = $3}
4350 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4352 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4353 $as_echo "$ver" >&6; }
4354 if test "$num" -lt "$req"; then
4356 eval "pv"=\"`eval echo \"'$'pv\" \""$r >= 2.4 (installed: $ver)"\"`\"
4359 vervar="`echo python | tr 'a-z' 'A-Z'`_VERSION"
4360 eval `echo $vervar=$num`
4361 ## AC_SUBST(`eval echo $vervar`)
4363 if test -z "$pv"; then
4369 if test -n "$pv"; then
4371 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$pv\"`\"
4374 # clear cached value since arg 2 might point us to a new binary
4375 unset ac_cv_path_PYTHON
4377 # Extract the first word of "$PYTHON", so it can be a program name with args.
4378 set dummy $PYTHON; ac_word=$2
4379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if test "${ac_cv_path_PYTHON+set}" = set; then
4382 $as_echo_n "(cached) " >&6
4386 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 PYTHON=$ac_cv_path_PYTHON
4408 if test -n "$PYTHON"; then
4409 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4410 $as_echo "$PYTHON" >&6; }
4412 { $as_echo "$as_me:$LINENO: result: no" >&5
4413 $as_echo "no" >&6; }
4420 if test "$GCC" = "yes"; then
4422 r="`eval echo '$'"CC"`"
4423 { $as_echo "$as_me:$LINENO: checking $r version" >&5
4424 $as_echo_n "checking $r version... " >&6; }
4426 ## which doesn't work in ash, if /usr/bin/which isn't installed
4427 ## type -p doesn't work in ash
4428 ## command -v doesn't work in zsh
4429 ## command -v "$r" 2>&1
4430 ## this test should work in ash, bash, pdksh (ksh), zsh
4431 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4437 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4440 ## Workaround for broken Debian gcc version string:
4441 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4443 ## -V: Workaround for python
4447 ## Assume and hunt for dotted version multiplet.
4448 ## use eval trickery, because we cannot use multi-level $() instead of ``
4449 ## for compatibility reasons.
4451 ## grab the first version number in --version output.
4452 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4453 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4456 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4457 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4460 if test -z "$_ver"; then
4461 ## If empty, try date [fontforge]
4462 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4464 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4471 echo "$ver" | awk -F. '
4473 if ($3) {three = $3}
4476 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4479 echo "3.4" | awk -F. '
4481 if ($3) {three = $3}
4484 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4486 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4487 $as_echo "$ver" >&6; }
4488 if test "$num" -lt "$req"; then
4490 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
4493 vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
4494 eval `echo $vervar=$num`
4495 ## AC_SUBST(`eval echo $vervar`)
4498 warn="$CC (Please install *GNU* cc)"
4500 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
4507 ac_cpp='$CXXCPP $CPPFLAGS'
4508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4511 if test -z "$CXX"; then
4512 if test -n "$CCC"; then
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CXX+set}" = set; then
4523 $as_echo_n "(cached) " >&6
4525 if test -n "$CXX"; then
4526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 if test -n "$CXX"; then
4547 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4548 $as_echo "$CXX" >&6; }
4550 { $as_echo "$as_me:$LINENO: result: no" >&5
4551 $as_echo "no" >&6; }
4555 test -n "$CXX" && break
4558 if test -z "$CXX"; then
4560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4567 $as_echo_n "(cached) " >&6
4569 if test -n "$ac_ct_CXX"; then
4570 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CXX="$ac_prog"
4580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4590 if test -n "$ac_ct_CXX"; then
4591 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4592 $as_echo "$ac_ct_CXX" >&6; }
4594 { $as_echo "$as_me:$LINENO: result: no" >&5
4595 $as_echo "no" >&6; }
4599 test -n "$ac_ct_CXX" && break
4602 if test "x$ac_ct_CXX" = x; then
4605 case $cross_compiling:$ac_tool_warned in
4607 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4617 # Provide some information about the compiler.
4618 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4621 { (ac_try="$ac_compiler --version >&5"
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4627 $as_echo "$ac_try_echo") >&5
4628 (eval "$ac_compiler --version >&5") 2>&5
4630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }
4632 { (ac_try="$ac_compiler -v >&5"
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4638 $as_echo "$ac_try_echo") >&5
4639 (eval "$ac_compiler -v >&5") 2>&5
4641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }
4643 { (ac_try="$ac_compiler -V >&5"
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4649 $as_echo "$ac_try_echo") >&5
4650 (eval "$ac_compiler -V >&5") 2>&5
4652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }
4655 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4656 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4657 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4658 $as_echo_n "(cached) " >&6
4660 cat >conftest.$ac_ext <<_ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4678 rm -f conftest.$ac_objext
4679 if { (ac_try="$ac_compile"
4681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4685 $as_echo "$ac_try_echo") >&5
4686 (eval "$ac_compile") 2>conftest.er1
4688 grep -v '^ *+' conftest.er1 >conftest.err
4690 cat conftest.err >&5
4691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } && {
4693 test -z "$ac_cxx_werror_flag" ||
4694 test ! -s conftest.err
4695 } && test -s conftest.$ac_objext; then
4698 $as_echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4708 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4709 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4710 if test $ac_compiler_gnu = yes; then
4715 ac_test_CXXFLAGS=${CXXFLAGS+set}
4716 ac_save_CXXFLAGS=$CXXFLAGS
4717 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4718 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4719 if test "${ac_cv_prog_cxx_g+set}" = set; then
4720 $as_echo_n "(cached) " >&6
4722 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4723 ac_cxx_werror_flag=yes
4726 cat >conftest.$ac_ext <<_ACEOF
4729 cat confdefs.h >>conftest.$ac_ext
4730 cat >>conftest.$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4741 rm -f conftest.$ac_objext
4742 if { (ac_try="$ac_compile"
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4748 $as_echo "$ac_try_echo") >&5
4749 (eval "$ac_compile") 2>conftest.er1
4751 grep -v '^ *+' conftest.er1 >conftest.err
4753 cat conftest.err >&5
4754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } && {
4756 test -z "$ac_cxx_werror_flag" ||
4757 test ! -s conftest.err
4758 } && test -s conftest.$ac_objext; then
4759 ac_cv_prog_cxx_g=yes
4761 $as_echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4765 cat >conftest.$ac_ext <<_ACEOF
4768 cat confdefs.h >>conftest.$ac_ext
4769 cat >>conftest.$ac_ext <<_ACEOF
4770 /* end confdefs.h. */
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4787 $as_echo "$ac_try_echo") >&5
4788 (eval "$ac_compile") 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } && {
4795 test -z "$ac_cxx_werror_flag" ||
4796 test ! -s conftest.err
4797 } && test -s conftest.$ac_objext; then
4800 $as_echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4803 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4805 cat >conftest.$ac_ext <<_ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4820 rm -f conftest.$ac_objext
4821 if { (ac_try="$ac_compile"
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4827 $as_echo "$ac_try_echo") >&5
4828 (eval "$ac_compile") 2>conftest.er1
4830 grep -v '^ *+' conftest.er1 >conftest.err
4832 cat conftest.err >&5
4833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } && {
4835 test -z "$ac_cxx_werror_flag" ||
4836 test ! -s conftest.err
4837 } && test -s conftest.$ac_objext; then
4838 ac_cv_prog_cxx_g=yes
4840 $as_echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4856 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4857 if test "$ac_test_CXXFLAGS" = set; then
4858 CXXFLAGS=$ac_save_CXXFLAGS
4859 elif test $ac_cv_prog_cxx_g = yes; then
4860 if test "$GXX" = yes; then
4866 if test "$GXX" = yes; then
4873 ac_cpp='$CXXCPP $CPPFLAGS'
4874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4880 r="`eval echo '$'"CXX"`"
4881 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
4884 ##STEPMAKE_WARN(cannot find . )
4888 if test $? -ne 0; then
4890 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
4892 if test "REQUIRED" = "REQUIRED"; then
4893 command="echo ERROR: c++ not found"
4894 # abort configure process here?
4896 command="- echo c++ not found"
4898 eval "CXX"='$command'
4905 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
4913 if test "$GXX" = "yes"; then
4915 r="`eval echo '$'"CXX"`"
4916 { $as_echo "$as_me:$LINENO: checking $r version" >&5
4917 $as_echo_n "checking $r version... " >&6; }
4919 ## which doesn't work in ash, if /usr/bin/which isn't installed
4920 ## type -p doesn't work in ash
4921 ## command -v doesn't work in zsh
4922 ## command -v "$r" 2>&1
4923 ## this test should work in ash, bash, pdksh (ksh), zsh
4924 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4930 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4933 ## Workaround for broken Debian gcc version string:
4934 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4936 ## -V: Workaround for python
4940 ## Assume and hunt for dotted version multiplet.
4941 ## use eval trickery, because we cannot use multi-level $() instead of ``
4942 ## for compatibility reasons.
4944 ## grab the first version number in --version output.
4945 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4946 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4949 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4950 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4953 if test -z "$_ver"; then
4954 ## If empty, try date [fontforge]
4955 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
4957 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4964 echo "$ver" | awk -F. '
4966 if ($3) {three = $3}
4969 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4972 echo "3.4" | awk -F. '
4974 if ($3) {three = $3}
4977 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4979 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4980 $as_echo "$ver" >&6; }
4981 if test "$num" -lt "$req"; then
4983 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
4986 vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
4987 eval `echo $vervar=$num`
4988 ## AC_SUBST(`eval echo $vervar`)
4991 warn="$CXX (Please install *GNU* c++)"
4993 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
4998 { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
4999 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5000 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5001 $as_echo_n "(cached) " >&6
5004 cat >conftest.$ac_ext <<_ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5011 template <class T> struct foo { static int baz; };
5012 template <class T> int foo<T>::baz = 1;
5017 return foo<int>::baz;
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029 $as_echo "$ac_try_echo") >&5
5030 (eval "$ac_link") 2>conftest.er1
5032 grep -v '^ *+' conftest.er1 >conftest.err
5034 cat conftest.err >&5
5035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && {
5037 test -z "$ac_cxx_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest$ac_exeext && {
5040 test "$cross_compiling" = yes ||
5041 $as_test_x conftest$ac_exeext
5043 stepmake_cv_need_explicit_instantiation=no
5045 $as_echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 stepmake_cv_need_explicit_instantiation=yes
5051 rm -rf conftest.dSYM
5052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5053 conftest$ac_exeext conftest.$ac_ext
5055 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
5056 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
5057 if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
5058 cat >>confdefs.h <<\_ACEOF
5059 #define NEED_EXPLICIT_INSTANTIATION 1
5065 { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
5066 $as_echo_n "checking for stl.data () method... " >&6; }
5067 if test "${stepmake_cv_stl_data_method+set}" = set; then
5068 $as_echo_n "(cached) " >&6
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5078 using namespace std;
5080 void *p = v.data ();
5090 rm -f conftest.$ac_objext
5091 if { (ac_try="$ac_compile"
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5097 $as_echo "$ac_try_echo") >&5
5098 (eval "$ac_compile") 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_cxx_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest.$ac_objext; then
5108 stepmake_cv_stl_data_method=yes
5110 $as_echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5113 stepmake_cv_stl_data_method=no
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
5119 $as_echo "$stepmake_cv_stl_data_method" >&6; }
5120 if test $stepmake_cv_stl_data_method = yes; then
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_STL_DATA_METHOD 1
5132 # Extract the first word of "$ac_prog", so it can be a program name with args.
5133 set dummy $ac_prog; ac_word=$2
5134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_prog_AR+set}" = set; then
5137 $as_echo_n "(cached) " >&6
5139 if test -n "$AR"; then
5140 ac_cv_prog_AR="$AR" # Let the user override the test.
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_AR="$ac_prog"
5150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 if test -n "$AR"; then
5161 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5162 $as_echo "$AR" >&6; }
5164 { $as_echo "$as_me:$LINENO: result: no" >&5
5165 $as_echo "no" >&6; }
5169 test -n "$AR" && break
5171 test -n "$AR" || AR="no"
5175 r="`eval echo '$'"AR"`"
5176 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
5179 ##STEPMAKE_WARN(cannot find . )
5183 if test $? -ne 0; then
5185 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
5187 if test "REQUIRED" = "REQUIRED"; then
5188 command="echo ERROR: ar not found"
5189 # abort configure process here?
5191 command="- echo ar not found"
5193 eval "AR"='$command'
5199 if test $? -eq 0 -a -n ""; then
5201 r="`eval echo '$'"AR"`"
5202 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5203 $as_echo_n "checking $r version... " >&6; }
5205 ## which doesn't work in ash, if /usr/bin/which isn't installed
5206 ## type -p doesn't work in ash
5207 ## command -v doesn't work in zsh
5208 ## command -v "$r" 2>&1
5209 ## this test should work in ash, bash, pdksh (ksh), zsh
5210 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5216 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5219 ## Workaround for broken Debian gcc version string:
5220 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5222 ## -V: Workaround for python
5226 ## Assume and hunt for dotted version multiplet.
5227 ## use eval trickery, because we cannot use multi-level $() instead of ``
5228 ## for compatibility reasons.
5230 ## grab the first version number in --version output.
5231 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5232 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5235 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5236 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5239 if test -z "$_ver"; then
5240 ## If empty, try date [fontforge]
5241 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5243 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5250 echo "$ver" | awk -F. '
5252 if ($3) {three = $3}
5255 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5260 if ($3) {three = $3}
5263 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5265 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5266 $as_echo "$ver" >&6; }
5267 if test "$num" -lt "$req"; then
5269 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
5272 vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
5273 eval `echo $vervar=$num`
5274 ## AC_SUBST(`eval echo $vervar`)
5278 if test -n "$ac_tool_prefix"; then
5279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5280 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5281 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if test "${ac_cv_prog_RANLIB+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5286 if test -n "$RANLIB"; then
5287 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 RANLIB=$ac_cv_prog_RANLIB
5307 if test -n "$RANLIB"; then
5308 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5309 $as_echo "$RANLIB" >&6; }
5311 { $as_echo "$as_me:$LINENO: result: no" >&5
5312 $as_echo "no" >&6; }
5317 if test -z "$ac_cv_prog_RANLIB"; then
5318 ac_ct_RANLIB=$RANLIB
5319 # Extract the first word of "ranlib", so it can be a program name with args.
5320 set dummy ranlib; ac_word=$2
5321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5324 $as_echo_n "(cached) " >&6
5326 if test -n "$ac_ct_RANLIB"; then
5327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336 ac_cv_prog_ac_ct_RANLIB="ranlib"
5337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5347 if test -n "$ac_ct_RANLIB"; then
5348 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5349 $as_echo "$ac_ct_RANLIB" >&6; }
5351 { $as_echo "$as_me:$LINENO: result: no" >&5
5352 $as_echo "no" >&6; }
5355 if test "x$ac_ct_RANLIB" = x; then
5358 case $cross_compiling:$ac_tool_warned in
5360 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5362 ac_tool_warned=yes ;;
5364 RANLIB=$ac_ct_RANLIB
5367 RANLIB="$ac_cv_prog_RANLIB"
5372 r="`eval echo '$'"RANLIB"`"
5373 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
5376 ##STEPMAKE_WARN(cannot find . )
5380 if test $? -ne 0; then
5382 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
5384 if test "REQUIRED" = "REQUIRED"; then
5385 command="echo ERROR: ranlib not found"
5386 # abort configure process here?
5388 command="- echo ranlib not found"
5390 eval "RANLIB"='$command'
5399 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5400 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5401 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5402 $as_echo_n "(cached) " >&6
5404 ac_check_lib_save_LIBS=$LIBS
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5413 /* Override any GCC internal prototype to avoid an error.
5414 Use char because int might match the return type of a GCC
5415 builtin and then its argument prototype would still apply. */
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (ac_try="$ac_link"
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5435 $as_echo "$ac_try_echo") >&5
5436 (eval "$ac_link") 2>conftest.er1
5438 grep -v '^ *+' conftest.er1 >conftest.err
5440 cat conftest.err >&5
5441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } && {
5443 test -z "$ac_cxx_werror_flag" ||
5444 test ! -s conftest.err
5445 } && test -s conftest$ac_exeext && {
5446 test "$cross_compiling" = yes ||
5447 $as_test_x conftest$ac_exeext
5449 ac_cv_lib_dl_dlopen=yes
5451 $as_echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5454 ac_cv_lib_dl_dlopen=no
5457 rm -rf conftest.dSYM
5458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5459 conftest$ac_exeext conftest.$ac_ext
5460 LIBS=$ac_check_lib_save_LIBS
5462 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5463 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5464 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
5465 cat >>confdefs.h <<_ACEOF
5466 #define HAVE_LIBDL 1
5474 for ac_func in dlopen
5476 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5477 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5478 $as_echo_n "checking for $ac_func... " >&6; }
5479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5480 $as_echo_n "(cached) " >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5490 #define $ac_func innocuous_$ac_func
5492 /* System header to define __stub macros and hopefully few prototypes,
5493 which can conflict with char $ac_func (); below.
5494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495 <limits.h> exists even on freestanding compilers. */
5498 # include <limits.h>
5500 # include <assert.h>
5505 /* Override any GCC internal prototype to avoid an error.
5506 Use char because int might match the return type of a GCC
5507 builtin and then its argument prototype would still apply. */
5512 /* The GNU C library defines this for functions which it implements
5513 to always fail with ENOSYS. Some functions are actually named
5514 something starting with __ and the normal name is an alias. */
5515 #if defined __stub_$ac_func || defined __stub___$ac_func
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (ac_try="$ac_link"
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5534 $as_echo "$ac_try_echo") >&5
5535 (eval "$ac_link") 2>conftest.er1
5537 grep -v '^ *+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && {
5542 test -z "$ac_cxx_werror_flag" ||
5543 test ! -s conftest.err
5544 } && test -s conftest$ac_exeext && {
5545 test "$cross_compiling" = yes ||
5546 $as_test_x conftest$ac_exeext
5548 eval "$as_ac_var=yes"
5550 $as_echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5553 eval "$as_ac_var=no"
5556 rm -rf conftest.dSYM
5557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5558 conftest$ac_exeext conftest.$ac_ext
5560 ac_res=`eval 'as_val=${'$as_ac_var'}
5561 $as_echo "$as_val"'`
5562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5563 $as_echo "$ac_res" >&6; }
5564 as_val=`eval 'as_val=${'$as_ac_var'}
5565 $as_echo "$as_val"'`
5566 if test "x$as_val" = x""yes; then
5567 cat >>confdefs.h <<_ACEOF
5568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5575 # Do not use bison 1.50 and 1.75.
5576 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
5578 # ugh, automake: we want (and check for) bison
5579 for ac_prog in 'bison -y' byacc
5581 # Extract the first word of "$ac_prog", so it can be a program name with args.
5582 set dummy $ac_prog; ac_word=$2
5583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if test "${ac_cv_prog_YACC+set}" = set; then
5586 $as_echo_n "(cached) " >&6
5588 if test -n "$YACC"; then
5589 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 test -z "$as_dir" && as_dir=.
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5598 ac_cv_prog_YACC="$ac_prog"
5599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 YACC=$ac_cv_prog_YACC
5609 if test -n "$YACC"; then
5610 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5611 $as_echo "$YACC" >&6; }
5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5614 $as_echo "no" >&6; }
5618 test -n "$YACC" && break
5620 test -n "$YACC" || YACC="yacc"
5624 for ac_prog in bison
5626 # Extract the first word of "$ac_prog", so it can be a program name with args.
5627 set dummy $ac_prog; ac_word=$2
5628 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if test "${ac_cv_prog_BISON+set}" = set; then
5631 $as_echo_n "(cached) " >&6
5633 if test -n "$BISON"; then
5634 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643 ac_cv_prog_BISON="$ac_prog"
5644 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 BISON=$ac_cv_prog_BISON
5654 if test -n "$BISON"; then
5655 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5656 $as_echo "$BISON" >&6; }
5658 { $as_echo "$as_me:$LINENO: result: no" >&5
5659 $as_echo "no" >&6; }
5663 test -n "$BISON" && break
5665 test -n "$BISON" || BISON="no"
5669 r="`eval echo '$'"BISON"`"
5670 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
5673 ##STEPMAKE_WARN(cannot find . )
5677 if test $? -ne 0; then
5679 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"bison\"`\"
5681 if test "OPTIONAL" = "REQUIRED"; then
5682 command="echo ERROR: bison not found"
5683 # abort configure process here?
5685 command="- echo bison not found"
5687 eval "BISON"='$command'
5693 if test $? -eq 0 -a -n ""; then
5695 r="`eval echo '$'"BISON"`"
5696 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5697 $as_echo_n "checking $r version... " >&6; }
5699 ## which doesn't work in ash, if /usr/bin/which isn't installed
5700 ## type -p doesn't work in ash
5701 ## command -v doesn't work in zsh
5702 ## command -v "$r" 2>&1
5703 ## this test should work in ash, bash, pdksh (ksh), zsh
5704 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5710 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5713 ## Workaround for broken Debian gcc version string:
5714 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5716 ## -V: Workaround for python
5720 ## Assume and hunt for dotted version multiplet.
5721 ## use eval trickery, because we cannot use multi-level $() instead of ``
5722 ## for compatibility reasons.
5724 ## grab the first version number in --version output.
5725 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5726 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5729 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5730 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5733 if test -z "$_ver"; then
5734 ## If empty, try date [fontforge]
5735 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5737 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5744 echo "$ver" | awk -F. '
5746 if ($3) {three = $3}
5749 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5754 if ($3) {three = $3}
5757 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5759 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5760 $as_echo "$ver" >&6; }
5761 if test "$num" -lt "$req"; then
5763 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
5766 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
5767 eval `echo $vervar=$num`
5768 ## AC_SUBST(`eval echo $vervar`)
5773 # urg. should test functionality rather than version.
5774 if test "$BISON" = "bison" -a -n "1.29"; then
5776 r="`eval echo '$'"BISON"`"
5777 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5778 $as_echo_n "checking $r version... " >&6; }
5780 ## which doesn't work in ash, if /usr/bin/which isn't installed
5781 ## type -p doesn't work in ash
5782 ## command -v doesn't work in zsh
5783 ## command -v "$r" 2>&1
5784 ## this test should work in ash, bash, pdksh (ksh), zsh
5785 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5791 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5794 ## Workaround for broken Debian gcc version string:
5795 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5797 ## -V: Workaround for python
5801 ## Assume and hunt for dotted version multiplet.
5802 ## use eval trickery, because we cannot use multi-level $() instead of ``
5803 ## for compatibility reasons.
5805 ## grab the first version number in --version output.
5806 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5807 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5810 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5811 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5814 if test -z "$_ver"; then
5815 ## If empty, try date [fontforge]
5816 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5818 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5825 echo "$ver" | awk -F. '
5827 if ($3) {three = $3}
5830 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5833 echo "1.29" | awk -F. '
5835 if ($3) {three = $3}
5838 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5840 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5841 $as_echo "$ver" >&6; }
5842 if test "$num" -lt "$req"; then
5844 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.29 (installed: $ver)"\"`\"
5847 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
5848 eval `echo $vervar=$num`
5849 ## AC_SUBST(`eval echo $vervar`)
5854 # ugh, automake: we want (and check for) flex
5856 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
5860 ac_cv_prog_lex_root=lex.yy
5864 # Extract the first word of "$ac_prog", so it can be a program name with args.
5865 set dummy $ac_prog; ac_word=$2
5866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if test "${ac_cv_prog_FLEX+set}" = set; then
5869 $as_echo_n "(cached) " >&6
5871 if test -n "$FLEX"; then
5872 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_FLEX="$ac_prog"
5882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 FLEX=$ac_cv_prog_FLEX
5892 if test -n "$FLEX"; then
5893 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
5894 $as_echo "$FLEX" >&6; }
5896 { $as_echo "$as_me:$LINENO: result: no" >&5
5897 $as_echo "no" >&6; }
5901 test -n "$FLEX" && break
5903 test -n "$FLEX" || FLEX="no"
5907 r="`eval echo '$'"FLEX"`"
5908 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
5911 ##STEPMAKE_WARN(cannot find . )
5915 if test $? -ne 0; then
5917 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
5919 if test "REQUIRED" = "REQUIRED"; then
5920 command="echo ERROR: flex not found"
5921 # abort configure process here?
5923 command="- echo flex not found"
5925 eval "FLEX"='$command'
5931 if test $? -eq 0 -a -n ""; then
5933 r="`eval echo '$'"FLEX"`"
5934 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5935 $as_echo_n "checking $r version... " >&6; }
5937 ## which doesn't work in ash, if /usr/bin/which isn't installed
5938 ## type -p doesn't work in ash
5939 ## command -v doesn't work in zsh
5940 ## command -v "$r" 2>&1
5941 ## this test should work in ash, bash, pdksh (ksh), zsh
5942 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5948 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5951 ## Workaround for broken Debian gcc version string:
5952 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5954 ## -V: Workaround for python
5958 ## Assume and hunt for dotted version multiplet.
5959 ## use eval trickery, because we cannot use multi-level $() instead of ``
5960 ## for compatibility reasons.
5962 ## grab the first version number in --version output.
5963 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5964 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5967 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5968 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5971 if test -z "$_ver"; then
5972 ## If empty, try date [fontforge]
5973 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
5975 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5982 echo "$ver" | awk -F. '
5984 if ($3) {three = $3}
5987 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5992 if ($3) {three = $3}
5995 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5997 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5998 $as_echo "$ver" >&6; }
5999 if test "$num" -lt "$req"; then
6001 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6004 vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6005 eval `echo $vervar=$num`
6006 ## AC_SUBST(`eval echo $vervar`)
6012 ac_cpp='$CXXCPP $CPPFLAGS'
6013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6016 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6017 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6018 if test -z "$CXXCPP"; then
6019 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6020 $as_echo_n "(cached) " >&6
6022 # Double quotes because CXXCPP needs to be expanded
6023 for CXXCPP in "$CXX -E" "/lib/cpp"
6026 for ac_cxx_preproc_warn_flag in '' yes
6028 # Use a header file that comes with gcc, so configuring glibc
6029 # with a fresh cross-compiler works.
6030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6031 # <limits.h> exists even on freestanding compilers.
6032 # On the NeXT, cc -E runs the code through the compiler's parser,
6033 # not just through cpp. "Syntax error" is here to catch this case.
6034 cat >conftest.$ac_ext <<_ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6041 # include <limits.h>
6043 # include <assert.h>
6047 if { (ac_try="$ac_cpp conftest.$ac_ext"
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6053 $as_echo "$ac_try_echo") >&5
6054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6056 grep -v '^ *+' conftest.er1 >conftest.err
6058 cat conftest.err >&5
6059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); } >/dev/null && {
6061 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6062 test ! -s conftest.err
6066 $as_echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069 # Broken: fails on valid input.
6073 rm -f conftest.err conftest.$ac_ext
6075 # OK, works on sane cases. Now check whether nonexistent headers
6076 # can be detected and how.
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <ac_nonexistent.h>
6085 if { (ac_try="$ac_cpp conftest.$ac_ext"
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6091 $as_echo "$ac_try_echo") >&5
6092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6094 grep -v '^ *+' conftest.er1 >conftest.err
6096 cat conftest.err >&5
6097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } >/dev/null && {
6099 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6100 test ! -s conftest.err
6102 # Broken: success on invalid input.
6105 $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 # Passes both tests.
6113 rm -f conftest.err conftest.$ac_ext
6116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6117 rm -f conftest.err conftest.$ac_ext
6118 if $ac_preproc_ok; then
6123 ac_cv_prog_CXXCPP=$CXXCPP
6126 CXXCPP=$ac_cv_prog_CXXCPP
6128 ac_cv_prog_CXXCPP=$CXXCPP
6130 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6131 $as_echo "$CXXCPP" >&6; }
6133 for ac_cxx_preproc_warn_flag in '' yes
6135 # Use a header file that comes with gcc, so configuring glibc
6136 # with a fresh cross-compiler works.
6137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6138 # <limits.h> exists even on freestanding compilers.
6139 # On the NeXT, cc -E runs the code through the compiler's parser,
6140 # not just through cpp. "Syntax error" is here to catch this case.
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6148 # include <limits.h>
6150 # include <assert.h>
6154 if { (ac_try="$ac_cpp conftest.$ac_ext"
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6160 $as_echo "$ac_try_echo") >&5
6161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6163 grep -v '^ *+' conftest.er1 >conftest.err
6165 cat conftest.err >&5
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } >/dev/null && {
6168 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6169 test ! -s conftest.err
6173 $as_echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 # Broken: fails on valid input.
6180 rm -f conftest.err conftest.$ac_ext
6182 # OK, works on sane cases. Now check whether nonexistent headers
6183 # can be detected and how.
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 #include <ac_nonexistent.h>
6192 if { (ac_try="$ac_cpp conftest.$ac_ext"
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6198 $as_echo "$ac_try_echo") >&5
6199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6201 grep -v '^ *+' conftest.er1 >conftest.err
6203 cat conftest.err >&5
6204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } >/dev/null && {
6206 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6207 test ! -s conftest.err
6209 # Broken: success on invalid input.
6212 $as_echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 # Passes both tests.
6220 rm -f conftest.err conftest.$ac_ext
6223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6224 rm -f conftest.err conftest.$ac_ext
6225 if $ac_preproc_ok; then
6228 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6230 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6231 See \`config.log' for more details." >&5
6232 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6233 See \`config.log' for more details." >&2;}
6234 { (exit 1); exit 1; }; }; }
6238 ac_cpp='$CXXCPP $CPPFLAGS'
6239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6244 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6245 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6246 if test "${ac_cv_path_GREP+set}" = set; then
6247 $as_echo_n "(cached) " >&6
6249 if test -z "$GREP"; then
6250 ac_path_GREP_found=false
6251 # Loop through the user's path and test for each of PROGNAME-LIST
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6256 test -z "$as_dir" && as_dir=.
6257 for ac_prog in grep ggrep; do
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6260 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6261 # Check for GNU ac_path_GREP and select it if it is found.
6262 # Check for GNU $ac_path_GREP
6263 case `"$ac_path_GREP" --version 2>&1` in
6265 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6268 $as_echo_n 0123456789 >"conftest.in"
6271 cat "conftest.in" "conftest.in" >"conftest.tmp"
6272 mv "conftest.tmp" "conftest.in"
6273 cp "conftest.in" "conftest.nl"
6274 $as_echo 'GREP' >> "conftest.nl"
6275 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6277 ac_count=`expr $ac_count + 1`
6278 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6279 # Best one so far, save it but keep looking for a better one
6280 ac_cv_path_GREP="$ac_path_GREP"
6281 ac_path_GREP_max=$ac_count
6283 # 10*(2^10) chars as input seems more than enough
6284 test $ac_count -gt 10 && break
6286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6289 $ac_path_GREP_found && break 3
6294 if test -z "$ac_cv_path_GREP"; then
6295 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6296 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6297 { (exit 1); exit 1; }; }
6300 ac_cv_path_GREP=$GREP
6304 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6305 $as_echo "$ac_cv_path_GREP" >&6; }
6306 GREP="$ac_cv_path_GREP"
6309 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6310 $as_echo_n "checking for egrep... " >&6; }
6311 if test "${ac_cv_path_EGREP+set}" = set; then
6312 $as_echo_n "(cached) " >&6
6314 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6315 then ac_cv_path_EGREP="$GREP -E"
6317 if test -z "$EGREP"; then
6318 ac_path_EGREP_found=false
6319 # Loop through the user's path and test for each of PROGNAME-LIST
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6324 test -z "$as_dir" && as_dir=.
6325 for ac_prog in egrep; do
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6328 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6329 # Check for GNU ac_path_EGREP and select it if it is found.
6330 # Check for GNU $ac_path_EGREP
6331 case `"$ac_path_EGREP" --version 2>&1` in
6333 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6336 $as_echo_n 0123456789 >"conftest.in"
6339 cat "conftest.in" "conftest.in" >"conftest.tmp"
6340 mv "conftest.tmp" "conftest.in"
6341 cp "conftest.in" "conftest.nl"
6342 $as_echo 'EGREP' >> "conftest.nl"
6343 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6345 ac_count=`expr $ac_count + 1`
6346 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6347 # Best one so far, save it but keep looking for a better one
6348 ac_cv_path_EGREP="$ac_path_EGREP"
6349 ac_path_EGREP_max=$ac_count
6351 # 10*(2^10) chars as input seems more than enough
6352 test $ac_count -gt 10 && break
6354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6357 $ac_path_EGREP_found && break 3
6362 if test -z "$ac_cv_path_EGREP"; then
6363 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6364 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6365 { (exit 1); exit 1; }; }
6368 ac_cv_path_EGREP=$EGREP
6373 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6374 $as_echo "$ac_cv_path_EGREP" >&6; }
6375 EGREP="$ac_cv_path_EGREP"
6378 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6379 $as_echo_n "checking for ANSI C header files... " >&6; }
6380 if test "${ac_cv_header_stdc+set}" = set; then
6381 $as_echo_n "(cached) " >&6
6383 cat >conftest.$ac_ext <<_ACEOF
6386 cat confdefs.h >>conftest.$ac_ext
6387 cat >>conftest.$ac_ext <<_ACEOF
6388 /* end confdefs.h. */
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6409 $as_echo "$ac_try_echo") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_cxx_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420 ac_cv_header_stdc=yes
6422 $as_echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 ac_cv_header_stdc=no
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 if test $ac_cv_header_stdc = yes; then
6431 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6432 cat >conftest.$ac_ext <<_ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6442 $EGREP "memchr" >/dev/null 2>&1; then
6445 ac_cv_header_stdc=no
6451 if test $ac_cv_header_stdc = yes; then
6452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6453 cat >conftest.$ac_ext <<_ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6463 $EGREP "free" >/dev/null 2>&1; then
6466 ac_cv_header_stdc=no
6472 if test $ac_cv_header_stdc = yes; then
6473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6474 if test "$cross_compiling" = yes; then
6477 cat >conftest.$ac_ext <<_ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6485 #if ((' ' & 0x0FF) == 0x020)
6486 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6487 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6489 # define ISLOWER(c) \
6490 (('a' <= (c) && (c) <= 'i') \
6491 || ('j' <= (c) && (c) <= 'r') \
6492 || ('s' <= (c) && (c) <= 'z'))
6493 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6496 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6501 for (i = 0; i < 256; i++)
6502 if (XOR (islower (i), ISLOWER (i))
6503 || toupper (i) != TOUPPER (i))
6508 rm -f conftest$ac_exeext
6509 if { (ac_try="$ac_link"
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6515 $as_echo "$ac_try_echo") >&5
6516 (eval "$ac_link") 2>&5
6518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6520 { (case "(($ac_try" in
6521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6525 $as_echo "$ac_try_echo") >&5
6526 (eval "$ac_try") 2>&5
6528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6532 $as_echo "$as_me: program exited with status $ac_status" >&5
6533 $as_echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_cv_header_stdc=no
6539 rm -rf conftest.dSYM
6540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6546 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6547 $as_echo "$ac_cv_header_stdc" >&6; }
6548 if test $ac_cv_header_stdc = yes; then
6550 cat >>confdefs.h <<\_ACEOF
6551 #define STDC_HEADERS 1
6556 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6566 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6567 inttypes.h stdint.h unistd.h
6569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6571 $as_echo_n "checking for $ac_header... " >&6; }
6572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6573 $as_echo_n "(cached) " >&6
6575 cat >conftest.$ac_ext <<_ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 $ac_includes_default
6583 #include <$ac_header>
6585 rm -f conftest.$ac_objext
6586 if { (ac_try="$ac_compile"
6588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589 *) ac_try_echo=$ac_try;;
6591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6592 $as_echo "$ac_try_echo") >&5
6593 (eval "$ac_compile") 2>conftest.er1
6595 grep -v '^ *+' conftest.er1 >conftest.err
6597 cat conftest.err >&5
6598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } && {
6600 test -z "$ac_cxx_werror_flag" ||
6601 test ! -s conftest.err
6602 } && test -s conftest.$ac_objext; then
6603 eval "$as_ac_Header=yes"
6605 $as_echo "$as_me: failed program was:" >&5
6606 sed 's/^/| /' conftest.$ac_ext >&5
6608 eval "$as_ac_Header=no"
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 ac_res=`eval 'as_val=${'$as_ac_Header'}
6614 $as_echo "$as_val"'`
6615 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6616 $as_echo "$ac_res" >&6; }
6617 as_val=`eval 'as_val=${'$as_ac_Header'}
6618 $as_echo "$as_val"'`
6619 if test "x$as_val" = x""yes; then
6620 cat >>confdefs.h <<_ACEOF
6621 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6631 for ac_header in FlexLexer.h
6633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6635 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6636 $as_echo_n "checking for $ac_header... " >&6; }
6637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6638 $as_echo_n "(cached) " >&6
6640 ac_res=`eval 'as_val=${'$as_ac_Header'}
6641 $as_echo "$as_val"'`
6642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6643 $as_echo "$ac_res" >&6; }
6645 # Is the header compilable?
6646 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6647 $as_echo_n "checking $ac_header usability... " >&6; }
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 $ac_includes_default
6655 #include <$ac_header>
6657 rm -f conftest.$ac_objext
6658 if { (ac_try="$ac_compile"
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6664 $as_echo "$ac_try_echo") >&5
6665 (eval "$ac_compile") 2>conftest.er1
6667 grep -v '^ *+' conftest.er1 >conftest.err
6669 cat conftest.err >&5
6670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } && {
6672 test -z "$ac_cxx_werror_flag" ||
6673 test ! -s conftest.err
6674 } && test -s conftest.$ac_objext; then
6675 ac_header_compiler=yes
6677 $as_echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6680 ac_header_compiler=no
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6685 $as_echo "$ac_header_compiler" >&6; }
6687 # Is the header present?
6688 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6689 $as_echo_n "checking $ac_header presence... " >&6; }
6690 cat >conftest.$ac_ext <<_ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 #include <$ac_header>
6698 if { (ac_try="$ac_cpp conftest.$ac_ext"
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6704 $as_echo "$ac_try_echo") >&5
6705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6707 grep -v '^ *+' conftest.er1 >conftest.err
6709 cat conftest.err >&5
6710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } >/dev/null && {
6712 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6713 test ! -s conftest.err
6715 ac_header_preproc=yes
6717 $as_echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6720 ac_header_preproc=no
6723 rm -f conftest.err conftest.$ac_ext
6724 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6725 $as_echo "$ac_header_preproc" >&6; }
6727 # So? What about this header?
6728 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6731 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6733 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6734 ac_header_preproc=yes
6737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6738 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6740 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6742 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6744 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6746 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6748 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6752 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6753 $as_echo_n "checking for $ac_header... " >&6; }
6754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6755 $as_echo_n "(cached) " >&6
6757 eval "$as_ac_Header=\$ac_header_preproc"
6759 ac_res=`eval 'as_val=${'$as_ac_Header'}
6760 $as_echo "$as_val"'`
6761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6762 $as_echo "$ac_res" >&6; }
6765 as_val=`eval 'as_val=${'$as_ac_Header'}
6766 $as_echo "$as_val"'`
6767 if test "x$as_val" = x""yes; then
6768 cat >>confdefs.h <<_ACEOF
6769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6778 if test $? -ne 0; then
6779 warn='FlexLexer.h (flex package)'
6781 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
6784 # check for yyFlexLexer.yy_current_buffer,
6785 # in 2.5.4 <= flex < 2.5.29
6786 { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
6787 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
6788 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
6789 $as_echo_n "(cached) " >&6
6791 cat >conftest.$ac_ext <<_ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6798 using namespace std;
6799 #include <FlexLexer.h>
6800 class yy_flex_lexer: public yyFlexLexer
6805 yy_current_buffer = 0;
6817 rm -f conftest.$ac_objext
6818 if { (ac_try="$ac_compile"
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6824 $as_echo "$ac_try_echo") >&5
6825 (eval "$ac_compile") 2>conftest.er1
6827 grep -v '^ *+' conftest.er1 >conftest.err
6829 cat conftest.err >&5
6830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && {
6832 test -z "$ac_cxx_werror_flag" ||
6833 test ! -s conftest.err
6834 } && test -s conftest.$ac_objext; then
6835 stepmake_cv_flexlexer_yy_current_buffer=yes
6837 $as_echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6840 stepmake_cv_flexlexer_yy_current_buffer=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
6846 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
6847 if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
6849 cat >>confdefs.h <<\_ACEOF
6850 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
6856 { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
6857 $as_echo_n "checking FlexLexer.h location... " >&6; }
6860 cat <<EOF > conftest.cc
6861 using namespace std;
6862 #include <FlexLexer.h>
6864 FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
6865 sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
6866 sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
6869 { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
6870 $as_echo "$FLEXLEXER_FILE" >&6; }
6878 # Check whether --with-localedir was given.
6879 if test "${with_localedir+set}" = set; then
6880 withval=$with_localedir; localedir=$with_localedir
6882 localedir='${prefix}/share/locale'
6887 # Check whether --with-lang was given.
6888 if test "${with_lang+set}" = set; then
6889 withval=$with_lang; language=$with_lang
6895 { $as_echo "$as_me:$LINENO: checking language" >&5
6896 $as_echo_n "checking language... " >&6; }
6898 En* | en* | Am* | am* | US* | us*)
6900 NL | nl | Du* | du* | Ned* | ned*)
6907 { $as_echo "$as_me:$LINENO: result: $lang" >&5
6908 $as_echo "$lang" >&6; }
6910 if test "$lang" = "unknown" ; then
6912 { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
6913 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
6921 if test "$prefix" = "NONE"; then
6922 presome=${ac_default_prefix}
6924 LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
6927 cat >>confdefs.h <<_ACEOF
6928 #define LOCALEDIR "${LOCALEDIR}"
6932 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
6933 $as_echo_n "checking for gettext in -lintl... " >&6; }
6934 if test "${ac_cv_lib_intl_gettext+set}" = set; then
6935 $as_echo_n "(cached) " >&6
6937 ac_check_lib_save_LIBS=$LIBS
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6946 /* Override any GCC internal prototype to avoid an error.
6947 Use char because int might match the return type of a GCC
6948 builtin and then its argument prototype would still apply. */
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (ac_try="$ac_link"
6964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6968 $as_echo "$ac_try_echo") >&5
6969 (eval "$ac_link") 2>conftest.er1
6971 grep -v '^ *+' conftest.er1 >conftest.err
6973 cat conftest.err >&5
6974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_cxx_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest$ac_exeext && {
6979 test "$cross_compiling" = yes ||
6980 $as_test_x conftest$ac_exeext
6982 ac_cv_lib_intl_gettext=yes
6984 $as_echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 ac_cv_lib_intl_gettext=no
6990 rm -rf conftest.dSYM
6991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6992 conftest$ac_exeext conftest.$ac_ext
6993 LIBS=$ac_check_lib_save_LIBS
6995 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
6996 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
6997 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
6998 cat >>confdefs.h <<_ACEOF
6999 #define HAVE_LIBINTL 1
7007 for ac_func in gettext
7009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7011 $as_echo_n "checking for $ac_func... " >&6; }
7012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7013 $as_echo_n "(cached) " >&6
7015 cat >conftest.$ac_ext <<_ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7023 #define $ac_func innocuous_$ac_func
7025 /* System header to define __stub macros and hopefully few prototypes,
7026 which can conflict with char $ac_func (); below.
7027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7028 <limits.h> exists even on freestanding compilers. */
7031 # include <limits.h>
7033 # include <assert.h>
7038 /* Override any GCC internal prototype to avoid an error.
7039 Use char because int might match the return type of a GCC
7040 builtin and then its argument prototype would still apply. */
7045 /* The GNU C library defines this for functions which it implements
7046 to always fail with ENOSYS. Some functions are actually named
7047 something starting with __ and the normal name is an alias. */
7048 #if defined __stub_$ac_func || defined __stub___$ac_func
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (ac_try="$ac_link"
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7067 $as_echo "$ac_try_echo") >&5
7068 (eval "$ac_link") 2>conftest.er1
7070 grep -v '^ *+' conftest.er1 >conftest.err
7072 cat conftest.err >&5
7073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } && {
7075 test -z "$ac_cxx_werror_flag" ||
7076 test ! -s conftest.err
7077 } && test -s conftest$ac_exeext && {
7078 test "$cross_compiling" = yes ||
7079 $as_test_x conftest$ac_exeext
7081 eval "$as_ac_var=yes"
7083 $as_echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 eval "$as_ac_var=no"
7089 rm -rf conftest.dSYM
7090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7091 conftest$ac_exeext conftest.$ac_ext
7093 ac_res=`eval 'as_val=${'$as_ac_var'}
7094 $as_echo "$as_val"'`
7095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7096 $as_echo "$ac_res" >&6; }
7097 as_val=`eval 'as_val=${'$as_ac_var'}
7098 $as_echo "$as_val"'`
7099 if test "x$as_val" = x""yes; then
7100 cat >>confdefs.h <<_ACEOF
7101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7110 for ac_prog in msgfmt
7112 # Extract the first word of "$ac_prog", so it can be a program name with args.
7113 set dummy $ac_prog; ac_word=$2
7114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7117 $as_echo_n "(cached) " >&6
7119 if test -n "$MSGFMT"; then
7120 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_MSGFMT="$ac_prog"
7130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 MSGFMT=$ac_cv_prog_MSGFMT
7140 if test -n "$MSGFMT"; then
7141 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7142 $as_echo "$MSGFMT" >&6; }
7144 { $as_echo "$as_me:$LINENO: result: no" >&5
7145 $as_echo "no" >&6; }
7149 test -n "$MSGFMT" && break
7151 test -n "$MSGFMT" || MSGFMT="no"
7155 r="`eval echo '$'"MSGFMT"`"
7156 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7159 ##STEPMAKE_WARN(cannot find . )
7163 if test $? -ne 0; then
7165 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7167 if test "REQUIRED" = "REQUIRED"; then
7168 command="echo ERROR: msgfmt not found"
7169 # abort configure process here?
7171 command="- echo msgfmt not found"
7173 eval "MSGFMT"='$command'
7179 if test $? -eq 0 -a -n ""; then
7181 r="`eval echo '$'"MSGFMT"`"
7182 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7183 $as_echo_n "checking $r version... " >&6; }
7185 ## which doesn't work in ash, if /usr/bin/which isn't installed
7186 ## type -p doesn't work in ash
7187 ## command -v doesn't work in zsh
7188 ## command -v "$r" 2>&1
7189 ## this test should work in ash, bash, pdksh (ksh), zsh
7190 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7196 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7199 ## Workaround for broken Debian gcc version string:
7200 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7202 ## -V: Workaround for python
7206 ## Assume and hunt for dotted version multiplet.
7207 ## use eval trickery, because we cannot use multi-level $() instead of ``
7208 ## for compatibility reasons.
7210 ## grab the first version number in --version output.
7211 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7212 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7215 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7216 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7219 if test -z "$_ver"; then
7220 ## If empty, try date [fontforge]
7221 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7223 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7230 echo "$ver" | awk -F. '
7232 if ($3) {three = $3}
7235 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7240 if ($3) {three = $3}
7243 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7245 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7246 $as_echo "$ver" >&6; }
7247 if test "$num" -lt "$req"; then
7249 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7252 vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7253 eval `echo $vervar=$num`
7254 ## AC_SUBST(`eval echo $vervar`)
7261 for ac_prog in mf-nowin mf mfw mfont
7263 # Extract the first word of "$ac_prog", so it can be a program name with args.
7264 set dummy $ac_prog; ac_word=$2
7265 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_prog_METAFONT+set}" = set; then
7268 $as_echo_n "(cached) " >&6
7270 if test -n "$METAFONT"; then
7271 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_prog_METAFONT="$ac_prog"
7281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 METAFONT=$ac_cv_prog_METAFONT
7291 if test -n "$METAFONT"; then
7292 { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7293 $as_echo "$METAFONT" >&6; }
7295 { $as_echo "$as_me:$LINENO: result: no" >&5
7296 $as_echo "no" >&6; }
7300 test -n "$METAFONT" && break
7302 test -n "$METAFONT" || METAFONT="no"
7306 r="`eval echo '$'"METAFONT"`"
7307 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7310 ##STEPMAKE_WARN(cannot find . )
7314 if test $? -ne 0; then
7316 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7318 if test "REQUIRED" = "REQUIRED"; then
7319 command="echo ERROR: mf-nowin mf mfw mfont not found"
7320 # abort configure process here?
7322 command="- echo mf-nowin mf mfw mfont not found"
7324 eval "METAFONT"='$command'
7330 if test $? -eq 0 -a -n ""; then
7332 r="`eval echo '$'"METAFONT"`"
7333 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7334 $as_echo_n "checking $r version... " >&6; }
7336 ## which doesn't work in ash, if /usr/bin/which isn't installed
7337 ## type -p doesn't work in ash
7338 ## command -v doesn't work in zsh
7339 ## command -v "$r" 2>&1
7340 ## this test should work in ash, bash, pdksh (ksh), zsh
7341 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7347 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7350 ## Workaround for broken Debian gcc version string:
7351 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7353 ## -V: Workaround for python
7357 ## Assume and hunt for dotted version multiplet.
7358 ## use eval trickery, because we cannot use multi-level $() instead of ``
7359 ## for compatibility reasons.
7361 ## grab the first version number in --version output.
7362 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7363 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7366 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7367 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7370 if test -z "$_ver"; then
7371 ## If empty, try date [fontforge]
7372 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7374 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7381 echo "$ver" | awk -F. '
7383 if ($3) {three = $3}
7386 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7391 if ($3) {three = $3}
7394 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7396 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7397 $as_echo "$ver" >&6; }
7398 if test "$num" -lt "$req"; then
7400 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7403 vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
7404 eval `echo $vervar=$num`
7405 ## AC_SUBST(`eval echo $vervar`)
7410 for ac_prog in mpost
7412 # Extract the first word of "$ac_prog", so it can be a program name with args.
7413 set dummy $ac_prog; ac_word=$2
7414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if test "${ac_cv_prog_METAPOST+set}" = set; then
7417 $as_echo_n "(cached) " >&6
7419 if test -n "$METAPOST"; then
7420 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_METAPOST="$ac_prog"
7430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 METAPOST=$ac_cv_prog_METAPOST
7440 if test -n "$METAPOST"; then
7441 { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
7442 $as_echo "$METAPOST" >&6; }
7444 { $as_echo "$as_me:$LINENO: result: no" >&5
7445 $as_echo "no" >&6; }
7449 test -n "$METAPOST" && break
7451 test -n "$METAPOST" || METAPOST="no"
7455 r="`eval echo '$'"METAPOST"`"
7456 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
7459 ##STEPMAKE_WARN(cannot find . )
7463 if test $? -ne 0; then
7465 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
7467 if test "REQUIRED" = "REQUIRED"; then
7468 command="echo ERROR: mpost not found"
7469 # abort configure process here?
7471 command="- echo mpost not found"
7473 eval "METAPOST"='$command'
7479 if test $? -eq 0 -a -n ""; then
7481 r="`eval echo '$'"METAPOST"`"
7482 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7483 $as_echo_n "checking $r version... " >&6; }
7485 ## which doesn't work in ash, if /usr/bin/which isn't installed
7486 ## type -p doesn't work in ash
7487 ## command -v doesn't work in zsh
7488 ## command -v "$r" 2>&1
7489 ## this test should work in ash, bash, pdksh (ksh), zsh
7490 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7496 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7499 ## Workaround for broken Debian gcc version string:
7500 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7502 ## -V: Workaround for python
7506 ## Assume and hunt for dotted version multiplet.
7507 ## use eval trickery, because we cannot use multi-level $() instead of ``
7508 ## for compatibility reasons.
7510 ## grab the first version number in --version output.
7511 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7512 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7515 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7516 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7519 if test -z "$_ver"; then
7520 ## If empty, try date [fontforge]
7521 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7523 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7530 echo "$ver" | awk -F. '
7532 if ($3) {three = $3}
7535 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7540 if ($3) {three = $3}
7543 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7545 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7546 $as_echo "$ver" >&6; }
7547 if test "$num" -lt "$req"; then
7549 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7552 vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
7553 eval `echo $vervar=$num`
7554 ## AC_SUBST(`eval echo $vervar`)
7559 { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
7560 $as_echo_n "checking for working metafont mode... " >&6; }
7561 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
7562 for MFMODE in $modelist; do
7563 $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
7564 if test -f mfput.tfm; then
7568 { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
7569 $as_echo "$MFMODE" >&6; }
7578 for ac_prog in kpsewhich
7580 # Extract the first word of "$ac_prog", so it can be a program name with args.
7581 set dummy $ac_prog; ac_word=$2
7582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
7585 $as_echo_n "(cached) " >&6
7587 if test -n "$KPSEWHICH"; then
7588 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 test -z "$as_dir" && as_dir=.
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7597 ac_cv_prog_KPSEWHICH="$ac_prog"
7598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 KPSEWHICH=$ac_cv_prog_KPSEWHICH
7608 if test -n "$KPSEWHICH"; then
7609 { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
7610 $as_echo "$KPSEWHICH" >&6; }
7612 { $as_echo "$as_me:$LINENO: result: no" >&5
7613 $as_echo "no" >&6; }
7617 test -n "$KPSEWHICH" && break
7619 test -n "$KPSEWHICH" || KPSEWHICH="no"
7623 r="`eval echo '$'"KPSEWHICH"`"
7624 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
7627 ##STEPMAKE_WARN(cannot find . )
7631 if test $? -ne 0; then
7633 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
7635 if test "OPTIONAL" = "REQUIRED"; then
7636 command="echo ERROR: kpsewhich not found"
7637 # abort configure process here?
7639 command="- echo kpsewhich not found"
7641 eval "KPSEWHICH"='$command'
7647 if test $? -eq 0 -a -n ""; then
7649 r="`eval echo '$'"KPSEWHICH"`"
7650 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7651 $as_echo_n "checking $r version... " >&6; }
7653 ## which doesn't work in ash, if /usr/bin/which isn't installed
7654 ## type -p doesn't work in ash
7655 ## command -v doesn't work in zsh
7656 ## command -v "$r" 2>&1
7657 ## this test should work in ash, bash, pdksh (ksh), zsh
7658 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7664 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7667 ## Workaround for broken Debian gcc version string:
7668 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7670 ## -V: Workaround for python
7674 ## Assume and hunt for dotted version multiplet.
7675 ## use eval trickery, because we cannot use multi-level $() instead of ``
7676 ## for compatibility reasons.
7678 ## grab the first version number in --version output.
7679 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7680 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7683 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7684 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7687 if test -z "$_ver"; then
7688 ## If empty, try date [fontforge]
7689 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7691 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7698 echo "$ver" | awk -F. '
7700 if ($3) {three = $3}
7703 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7708 if ($3) {three = $3}
7711 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7713 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7714 $as_echo "$ver" >&6; }
7715 if test "$num" -lt "$req"; then
7717 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
7720 vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
7721 eval `echo $vervar=$num`
7722 ## AC_SUBST(`eval echo $vervar`)
7728 ## First, let's just see if we can find Guile at all.
7729 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
7730 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
7731 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
7732 $as_echo_n "checking for guile-config... " >&6; }
7733 for guile_config in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config; do
7734 { $as_echo "$as_me:$LINENO: result: $guile_config" >&5
7735 $as_echo "$guile_config" >&6; }
7736 if ! $guile_config --version > /dev/null 2>&1 ; then
7737 { $as_echo "$as_me:$LINENO: WARNING: cannot execute $guile_config" >&5
7738 $as_echo "$as_me: WARNING: cannot execute $guile_config" >&2;}
7739 { $as_echo "$as_me:$LINENO: checking if we are cross compiling" >&5
7740 $as_echo_n "checking if we are cross compiling... " >&6; }
7741 GUILE_CONFIG='echo no guile-config'
7743 GUILE_CONFIG=$guile_config
7749 r="`eval echo '$'"GUILE_CONFIG"`"
7750 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
7753 ##STEPMAKE_WARN(cannot find . )
7757 if test $? -ne 0; then
7759 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\"
7761 if test "REQUIRED" = "REQUIRED"; then
7762 command="echo ERROR: $guile_config not found"
7763 # abort configure process here?
7765 command="- echo $guile_config not found"
7767 eval "GUILE_CONFIG"='$command'
7773 if test $? -ne 0; then
7775 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package)'\"`\"
7780 r="`eval echo '$'"GUILE_CONFIG"`"
7781 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then
7784 ##STEPMAKE_WARN(cannot find . )
7788 # urg. should test functionality rather than version.
7789 if test $? -eq 0 -a -n "1.8.2"; then
7791 r="`eval echo '$'"GUILE_CONFIG"`"
7792 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7793 $as_echo_n "checking $r version... " >&6; }
7795 ## which doesn't work in ash, if /usr/bin/which isn't installed
7796 ## type -p doesn't work in ash
7797 ## command -v doesn't work in zsh
7798 ## command -v "$r" 2>&1
7799 ## this test should work in ash, bash, pdksh (ksh), zsh
7800 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7806 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7809 ## Workaround for broken Debian gcc version string:
7810 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7812 ## -V: Workaround for python
7816 ## Assume and hunt for dotted version multiplet.
7817 ## use eval trickery, because we cannot use multi-level $() instead of ``
7818 ## for compatibility reasons.
7820 ## grab the first version number in --version output.
7821 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7822 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7825 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7826 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7829 if test -z "$_ver"; then
7830 ## If empty, try date [fontforge]
7831 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
7833 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7840 echo "$ver" | awk -F. '
7842 if ($3) {three = $3}
7845 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7848 echo "1.8.2" | awk -F. '
7850 if ($3) {three = $3}
7853 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7855 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7856 $as_echo "$ver" >&6; }
7857 if test "$num" -lt "$req"; then
7859 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.8.2 (installed: $ver)"\"`\"
7862 vervar="`echo GUILE_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
7863 eval `echo $vervar=$num`
7864 ## AC_SUBST(`eval echo $vervar`)
7870 guile_version="$ver"
7872 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
7873 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
7874 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
7878 ## which doesn't work in ash, if /usr/bin/which isn't installed
7879 ## type -p doesn't work in ash
7880 ## command -v doesn't work in zsh
7881 ## command -v "$guile_config" 2>&1
7882 ## this test should work in ash, bash, pdksh (ksh), zsh
7883 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
7885 if test -x $exe; then
7886 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
7887 $as_echo_n "checking guile compile flags... " >&6; }
7888 GUILE_CFLAGS="`$guile_config compile`"
7889 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
7890 $as_echo "$GUILE_CFLAGS" >&6; }
7891 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
7892 $as_echo_n "checking guile link flags... " >&6; }
7893 GUILE_LDFLAGS="`$guile_config link`"
7894 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
7895 $as_echo "$GUILE_LDFLAGS" >&6; }
7900 save_CPPFLAGS="$CPPFLAGS"
7902 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
7903 LIBS="$GUILE_LDFLAGS $LIBS"
7905 for ac_header in libguile.h
7907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7909 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7910 $as_echo_n "checking for $ac_header... " >&6; }
7911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7912 $as_echo_n "(cached) " >&6
7914 ac_res=`eval 'as_val=${'$as_ac_Header'}
7915 $as_echo "$as_val"'`
7916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7917 $as_echo "$ac_res" >&6; }
7919 # Is the header compilable?
7920 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7921 $as_echo_n "checking $ac_header usability... " >&6; }
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 $ac_includes_default
7929 #include <$ac_header>
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7938 $as_echo "$ac_try_echo") >&5
7939 (eval "$ac_compile") 2>conftest.er1
7941 grep -v '^ *+' conftest.er1 >conftest.err
7943 cat conftest.err >&5
7944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_cxx_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest.$ac_objext; then
7949 ac_header_compiler=yes
7951 $as_echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7954 ac_header_compiler=no
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7959 $as_echo "$ac_header_compiler" >&6; }
7961 # Is the header present?
7962 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7963 $as_echo_n "checking $ac_header presence... " >&6; }
7964 cat >conftest.$ac_ext <<_ACEOF
7967 cat confdefs.h >>conftest.$ac_ext
7968 cat >>conftest.$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7970 #include <$ac_header>
7972 if { (ac_try="$ac_cpp conftest.$ac_ext"
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7978 $as_echo "$ac_try_echo") >&5
7979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7981 grep -v '^ *+' conftest.er1 >conftest.err
7983 cat conftest.err >&5
7984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } >/dev/null && {
7986 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7987 test ! -s conftest.err
7989 ac_header_preproc=yes
7991 $as_echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 ac_header_preproc=no
7997 rm -f conftest.err conftest.$ac_ext
7998 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7999 $as_echo "$ac_header_preproc" >&6; }
8001 # So? What about this header?
8002 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8005 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8007 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8008 ac_header_preproc=yes
8011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8012 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8014 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8016 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8018 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8022 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8026 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8027 $as_echo_n "checking for $ac_header... " >&6; }
8028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8029 $as_echo_n "(cached) " >&6
8031 eval "$as_ac_Header=\$ac_header_preproc"
8033 ac_res=`eval 'as_val=${'$as_ac_Header'}
8034 $as_echo "$as_val"'`
8035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8036 $as_echo "$ac_res" >&6; }
8039 as_val=`eval 'as_val=${'$as_ac_Header'}
8040 $as_echo "$as_val"'`
8041 if test "x$as_val" = x""yes; then
8042 cat >>confdefs.h <<_ACEOF
8043 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8051 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8052 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8053 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8054 $as_echo_n "(cached) " >&6
8056 ac_check_lib_save_LIBS=$LIBS
8057 LIBS="-lguile $LIBS"
8058 cat >conftest.$ac_ext <<_ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8065 /* Override any GCC internal prototype to avoid an error.
8066 Use char because int might match the return type of a GCC
8067 builtin and then its argument prototype would still apply. */
8071 char scm_boot_guile ();
8075 return scm_boot_guile ();
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (ac_try="$ac_link"
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8087 $as_echo "$ac_try_echo") >&5
8088 (eval "$ac_link") 2>conftest.er1
8090 grep -v '^ *+' conftest.er1 >conftest.err
8092 cat conftest.err >&5
8093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_cxx_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest$ac_exeext && {
8098 test "$cross_compiling" = yes ||
8099 $as_test_x conftest$ac_exeext
8101 ac_cv_lib_guile_scm_boot_guile=yes
8103 $as_echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 ac_cv_lib_guile_scm_boot_guile=no
8109 rm -rf conftest.dSYM
8110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8111 conftest$ac_exeext conftest.$ac_ext
8112 LIBS=$ac_check_lib_save_LIBS
8114 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8115 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8116 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8117 cat >>confdefs.h <<_ACEOF
8118 #define HAVE_LIBGUILE 1
8121 LIBS="-lguile $LIBS"
8126 for ac_func in scm_boot_guile
8128 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8129 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8130 $as_echo_n "checking for $ac_func... " >&6; }
8131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8132 $as_echo_n "(cached) " >&6
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8142 #define $ac_func innocuous_$ac_func
8144 /* System header to define __stub macros and hopefully few prototypes,
8145 which can conflict with char $ac_func (); below.
8146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8147 <limits.h> exists even on freestanding compilers. */
8150 # include <limits.h>
8152 # include <assert.h>
8157 /* Override any GCC internal prototype to avoid an error.
8158 Use char because int might match the return type of a GCC
8159 builtin and then its argument prototype would still apply. */
8164 /* The GNU C library defines this for functions which it implements
8165 to always fail with ENOSYS. Some functions are actually named
8166 something starting with __ and the normal name is an alias. */
8167 #if defined __stub_$ac_func || defined __stub___$ac_func
8179 rm -f conftest.$ac_objext conftest$ac_exeext
8180 if { (ac_try="$ac_link"
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186 $as_echo "$ac_try_echo") >&5
8187 (eval "$ac_link") 2>conftest.er1
8189 grep -v '^ *+' conftest.er1 >conftest.err
8191 cat conftest.err >&5
8192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && {
8194 test -z "$ac_cxx_werror_flag" ||
8195 test ! -s conftest.err
8196 } && test -s conftest$ac_exeext && {
8197 test "$cross_compiling" = yes ||
8198 $as_test_x conftest$ac_exeext
8200 eval "$as_ac_var=yes"
8202 $as_echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8205 eval "$as_ac_var=no"
8208 rm -rf conftest.dSYM
8209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8210 conftest$ac_exeext conftest.$ac_ext
8212 ac_res=`eval 'as_val=${'$as_ac_var'}
8213 $as_echo "$as_val"'`
8214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8215 $as_echo "$ac_res" >&6; }
8216 as_val=`eval 'as_val=${'$as_ac_var'}
8217 $as_echo "$as_val"'`
8218 if test "x$as_val" = x""yes; then
8219 cat >>confdefs.h <<_ACEOF
8220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8228 if test "$libguile_b" = "no"; then
8229 warn='libguile (libguile-dev, guile-devel or guile-dev
8232 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8235 CPPFLAGS="$save_CPPFLAGS"
8237 cat >>confdefs.h <<_ACEOF
8238 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8241 cat >>confdefs.h <<_ACEOF
8242 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8245 cat >>confdefs.h <<_ACEOF
8246 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8251 # check for 3 typedefs added in Guile 1.9
8252 save_CXXFLAGS="$CXXFLAGS"
8253 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
8254 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
8255 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
8256 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
8257 $as_echo_n "(cached) " >&6
8259 ac_cv_type_scm_t_hash_fold_fn=no
8260 cat >conftest.$ac_ext <<_ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 #include <libguile.h>
8271 if (sizeof (scm_t_hash_fold_fn))
8277 rm -f conftest.$ac_objext
8278 if { (ac_try="$ac_compile"
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8284 $as_echo "$ac_try_echo") >&5
8285 (eval "$ac_compile") 2>conftest.er1
8287 grep -v '^ *+' conftest.er1 >conftest.err
8289 cat conftest.err >&5
8290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_cxx_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest.$ac_objext; then
8295 cat >conftest.$ac_ext <<_ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 #include <libguile.h>
8306 if (sizeof ((scm_t_hash_fold_fn)))
8312 rm -f conftest.$ac_objext
8313 if { (ac_try="$ac_compile"
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8319 $as_echo "$ac_try_echo") >&5
8320 (eval "$ac_compile") 2>conftest.er1
8322 grep -v '^ *+' conftest.er1 >conftest.err
8324 cat conftest.err >&5
8325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } && {
8327 test -z "$ac_cxx_werror_flag" ||
8328 test ! -s conftest.err
8329 } && test -s conftest.$ac_objext; then
8332 $as_echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8335 ac_cv_type_scm_t_hash_fold_fn=yes
8338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 $as_echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
8349 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
8350 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
8352 cat >>confdefs.h <<_ACEOF
8353 #define HAVE_SCM_T_HASH_FOLD_FN 1
8356 cat >>confdefs.h <<\_ACEOF
8357 #define HAVE_GUILE_HASH_FUNC 1
8361 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
8362 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
8363 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
8364 $as_echo_n "(cached) " >&6
8366 ac_cv_type_scm_t_hash_handle_fn=no
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 #include <libguile.h>
8378 if (sizeof (scm_t_hash_handle_fn))
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8391 $as_echo "$ac_try_echo") >&5
8392 (eval "$ac_compile") 2>conftest.er1
8394 grep -v '^ *+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } && {
8399 test -z "$ac_cxx_werror_flag" ||
8400 test ! -s conftest.err
8401 } && test -s conftest.$ac_objext; then
8402 cat >conftest.$ac_ext <<_ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h. */
8408 #include <libguile.h>
8413 if (sizeof ((scm_t_hash_handle_fn)))
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423 *) ac_try_echo=$ac_try;;
8425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8426 $as_echo "$ac_try_echo") >&5
8427 (eval "$ac_compile") 2>conftest.er1
8429 grep -v '^ *+' conftest.er1 >conftest.err
8431 cat conftest.err >&5
8432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && {
8434 test -z "$ac_cxx_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest.$ac_objext; then
8439 $as_echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8442 ac_cv_type_scm_t_hash_handle_fn=yes
8445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447 $as_echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
8456 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
8457 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
8459 cat >>confdefs.h <<_ACEOF
8460 #define HAVE_SCM_T_HASH_HANDLE_FN 1
8463 cat >>confdefs.h <<\_ACEOF
8464 #define HAVE_GUILE_HASH_FUNC 1
8469 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
8470 $as_echo_n "checking for scm_t_subr... " >&6; }
8471 if test "${ac_cv_type_scm_t_subr+set}" = set; then
8472 $as_echo_n "(cached) " >&6
8474 ac_cv_type_scm_t_subr=no
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 #include <libguile.h>
8486 if (sizeof (scm_t_subr))
8492 rm -f conftest.$ac_objext
8493 if { (ac_try="$ac_compile"
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8499 $as_echo "$ac_try_echo") >&5
8500 (eval "$ac_compile") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_cxx_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest.$ac_objext; then
8510 cat >conftest.$ac_ext <<_ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 #include <libguile.h>
8521 if (sizeof ((scm_t_subr)))
8527 rm -f conftest.$ac_objext
8528 if { (ac_try="$ac_compile"
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534 $as_echo "$ac_try_echo") >&5
8535 (eval "$ac_compile") 2>conftest.er1
8537 grep -v '^ *+' conftest.er1 >conftest.err
8539 cat conftest.err >&5
8540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); } && {
8542 test -z "$ac_cxx_werror_flag" ||
8543 test ! -s conftest.err
8544 } && test -s conftest.$ac_objext; then
8547 $as_echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 ac_cv_type_scm_t_subr=yes
8553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8555 $as_echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
8564 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
8565 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
8567 cat >>confdefs.h <<_ACEOF
8568 #define HAVE_SCM_T_SUBR 1
8571 cat >>confdefs.h <<\_ACEOF
8572 #define HAVE_GUILE_SUBR_TYPE 1
8577 CXXFLAGS="$save_CXXFLAGS"
8579 ## check rational bugfix.
8580 save_CPPFLAGS="$CPPFLAGS"
8581 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8582 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
8583 $as_echo_n "checking GUILE rational bugfix... " >&6; }
8584 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 #include <libguile.h>
8591 #ifdef SCM_FRACTION_REDUCED_BIT
8596 if { (ac_try="$ac_cpp conftest.$ac_ext"
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8602 $as_echo "$ac_try_echo") >&5
8603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8605 grep -v '^ *+' conftest.er1 >conftest.err
8607 cat conftest.err >&5
8608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } >/dev/null && {
8610 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8611 test ! -s conftest.err
8613 { $as_echo "$as_me:$LINENO: result: ok" >&5
8614 $as_echo "ok" >&6; }
8616 $as_echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
8620 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
8621 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
8624 rm -f conftest.err conftest.$ac_ext
8625 CPPFLAGS="$save_CPPFLAGS"
8630 # Check whether --with-python-include was given.
8631 if test "${with_python_include+set}" = set; then
8632 withval=$with_python_include;
8633 if test "$withval" = "yes" -o "$withval" = "no"; then
8634 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
8635 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
8637 PYTHON_CFLAGS="-I${withval}"
8644 # Check whether --with-python-lib was given.
8645 if test "${with_python_lib+set}" = set; then
8646 withval=$with_python_lib;
8647 if test "$withval" = "yes" -o "$withval" = "no"; then
8648 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
8649 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
8651 LDFLAGS="$LDFLAGS -l${withval}"
8657 for ac_prog in python-config
8659 # Extract the first word of "$ac_prog", so it can be a program name with args.
8660 set dummy $ac_prog; ac_word=$2
8661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
8664 $as_echo_n "(cached) " >&6
8666 if test -n "$PYTHON_CONFIG"; then
8667 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8676 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
8677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8686 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
8687 if test -n "$PYTHON_CONFIG"; then
8688 { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
8689 $as_echo "$PYTHON_CONFIG" >&6; }
8691 { $as_echo "$as_me:$LINENO: result: no" >&5
8692 $as_echo "no" >&6; }
8696 test -n "$PYTHON_CONFIG" && break
8698 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
8701 if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
8702 # Clean out junk: http://bugs.python.org/issue3290
8703 # Python headers may need some -f* flags, leave them in.
8704 # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
8705 PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
8706 PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
8709 if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
8711 # alternatively, for python >= 2.0
8712 # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
8713 PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
8714 PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
8718 if test -z "$PYTHON_HEADER"; then
8719 CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
8721 for ac_header in Python.h
8723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8725 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8726 $as_echo_n "checking for $ac_header... " >&6; }
8727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8728 $as_echo_n "(cached) " >&6
8730 ac_res=`eval 'as_val=${'$as_ac_Header'}
8731 $as_echo "$as_val"'`
8732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8733 $as_echo "$ac_res" >&6; }
8735 # Is the header compilable?
8736 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8737 $as_echo_n "checking $ac_header usability... " >&6; }
8738 cat >conftest.$ac_ext <<_ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744 $ac_includes_default
8745 #include <$ac_header>
8747 rm -f conftest.$ac_objext
8748 if { (ac_try="$ac_compile"
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8754 $as_echo "$ac_try_echo") >&5
8755 (eval "$ac_compile") 2>conftest.er1
8757 grep -v '^ *+' conftest.er1 >conftest.err
8759 cat conftest.err >&5
8760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); } && {
8762 test -z "$ac_cxx_werror_flag" ||
8763 test ! -s conftest.err
8764 } && test -s conftest.$ac_objext; then
8765 ac_header_compiler=yes
8767 $as_echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8770 ac_header_compiler=no
8773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8775 $as_echo "$ac_header_compiler" >&6; }
8777 # Is the header present?
8778 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8779 $as_echo_n "checking $ac_header presence... " >&6; }
8780 cat >conftest.$ac_ext <<_ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 #include <$ac_header>
8788 if { (ac_try="$ac_cpp conftest.$ac_ext"
8790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8791 *) ac_try_echo=$ac_try;;
8793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8794 $as_echo "$ac_try_echo") >&5
8795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } >/dev/null && {
8802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8803 test ! -s conftest.err
8805 ac_header_preproc=yes
8807 $as_echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8810 ac_header_preproc=no
8813 rm -f conftest.err conftest.$ac_ext
8814 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8815 $as_echo "$ac_header_preproc" >&6; }
8817 # So? What about this header?
8818 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8821 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8823 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8824 ac_header_preproc=yes
8827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8828 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8830 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8832 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8834 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8838 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8842 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8843 $as_echo_n "checking for $ac_header... " >&6; }
8844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8845 $as_echo_n "(cached) " >&6
8847 eval "$as_ac_Header=\$ac_header_preproc"
8849 ac_res=`eval 'as_val=${'$as_ac_Header'}
8850 $as_echo "$as_val"'`
8851 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8852 $as_echo "$ac_res" >&6; }
8855 as_val=`eval 'as_val=${'$as_ac_Header'}
8856 $as_echo "$as_val"'`
8857 if test "x$as_val" = x""yes; then
8858 cat >>confdefs.h <<_ACEOF
8859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8868 if test -z "$PYTHON_HEADER"; then
8869 warn="Python.h (python-devel, python-dev or libpython-dev package)"
8871 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8879 # Extract the first word of "$ac_prog", so it can be a program name with args.
8880 set dummy $ac_prog; ac_word=$2
8881 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
8884 $as_echo_n "(cached) " >&6
8886 if test -n "$GHOSTSCRIPT"; then
8887 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 test -z "$as_dir" && as_dir=.
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896 ac_cv_prog_GHOSTSCRIPT="$ac_prog"
8897 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8906 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
8907 if test -n "$GHOSTSCRIPT"; then
8908 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
8909 $as_echo "$GHOSTSCRIPT" >&6; }
8911 { $as_echo "$as_me:$LINENO: result: no" >&5
8912 $as_echo "no" >&6; }
8916 test -n "$GHOSTSCRIPT" && break
8918 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
8922 r="`eval echo '$'"GHOSTSCRIPT"`"
8923 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
8926 ##STEPMAKE_WARN(cannot find . )
8930 if test $? -ne 0; then
8932 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
8934 if test "OPTIONAL" = "REQUIRED"; then
8935 command="echo ERROR: gs not found"
8936 # abort configure process here?
8938 command="- echo gs not found"
8940 eval "GHOSTSCRIPT"='$command'
8946 if test $? -eq 0; then
8947 # Extract the first word of "gs", so it can be a program name with args.
8948 set dummy gs; ac_word=$2
8949 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8950 $as_echo_n "checking for $ac_word... " >&6; }
8951 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
8952 $as_echo_n "(cached) " >&6
8954 case $GHOSTSCRIPT in
8956 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
8959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8963 test -z "$as_dir" && as_dir=.
8964 for ac_exec_ext in '' $ac_executable_extensions; do
8965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8966 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
8967 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8977 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
8978 if test -n "$GHOSTSCRIPT"; then
8979 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
8980 $as_echo "$GHOSTSCRIPT" >&6; }
8982 { $as_echo "$as_me:$LINENO: result: no" >&5
8983 $as_echo "no" >&6; }
8987 if test -n "8.60"; then
8989 r="`eval echo '$'"GHOSTSCRIPT"`"
8990 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8991 $as_echo_n "checking $r version... " >&6; }
8993 ## which doesn't work in ash, if /usr/bin/which isn't installed
8994 ## type -p doesn't work in ash
8995 ## command -v doesn't work in zsh
8996 ## command -v "$r" 2>&1
8997 ## this test should work in ash, bash, pdksh (ksh), zsh
8998 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9004 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9007 ## Workaround for broken Debian gcc version string:
9008 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9010 ## -V: Workaround for python
9014 ## Assume and hunt for dotted version multiplet.
9015 ## use eval trickery, because we cannot use multi-level $() instead of ``
9016 ## for compatibility reasons.
9018 ## grab the first version number in --version output.
9019 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9020 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9023 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9024 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9027 if test -z "$_ver"; then
9028 ## If empty, try date [fontforge]
9029 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9031 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9038 echo "$ver" | awk -F. '
9040 if ($3) {three = $3}
9043 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9046 echo "8.60" | awk -F. '
9048 if ($3) {three = $3}
9051 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9053 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9054 $as_echo "$ver" >&6; }
9055 if test "$num" -lt "$req"; then
9057 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 8.60 (installed: $ver)"\"`\"
9060 vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
9061 eval `echo $vervar=$num`
9062 ## AC_SUBST(`eval echo $vervar`)
9069 for ac_prog in fontforge
9071 # Extract the first word of "$ac_prog", so it can be a program name with args.
9072 set dummy $ac_prog; ac_word=$2
9073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9074 $as_echo_n "checking for $ac_word... " >&6; }
9075 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9076 $as_echo_n "(cached) " >&6
9078 if test -n "$FONTFORGE"; then
9079 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088 ac_cv_prog_FONTFORGE="$ac_prog"
9089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 FONTFORGE=$ac_cv_prog_FONTFORGE
9099 if test -n "$FONTFORGE"; then
9100 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9101 $as_echo "$FONTFORGE" >&6; }
9103 { $as_echo "$as_me:$LINENO: result: no" >&5
9104 $as_echo "no" >&6; }
9108 test -n "$FONTFORGE" && break
9110 test -n "$FONTFORGE" || FONTFORGE="no"
9114 r="`eval echo '$'"FONTFORGE"`"
9115 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9118 ##STEPMAKE_WARN(cannot find . )
9122 if test $? -ne 0; then
9124 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
9126 if test "REQUIRED" = "REQUIRED"; then
9127 command="echo ERROR: fontforge not found"
9128 # abort configure process here?
9130 command="- echo fontforge not found"
9132 eval "FONTFORGE"='$command'
9138 if test $? -eq 0; then
9139 # Extract the first word of "fontforge", so it can be a program name with args.
9140 set dummy fontforge; ac_word=$2
9141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9144 $as_echo_n "(cached) " >&6
9148 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155 test -z "$as_dir" && as_dir=.
9156 for ac_exec_ext in '' $ac_executable_extensions; do
9157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9158 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9169 FONTFORGE=$ac_cv_path_FONTFORGE
9170 if test -n "$FONTFORGE"; then
9171 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9172 $as_echo "$FONTFORGE" >&6; }
9174 { $as_echo "$as_me:$LINENO: result: no" >&5
9175 $as_echo "no" >&6; }
9179 if test -n "20100501"; then
9181 r="`eval echo '$'"FONTFORGE"`"
9182 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9183 $as_echo_n "checking $r version... " >&6; }
9185 ## which doesn't work in ash, if /usr/bin/which isn't installed
9186 ## type -p doesn't work in ash
9187 ## command -v doesn't work in zsh
9188 ## command -v "$r" 2>&1
9189 ## this test should work in ash, bash, pdksh (ksh), zsh
9190 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9196 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9199 ## Workaround for broken Debian gcc version string:
9200 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9202 ## -V: Workaround for python
9206 ## Assume and hunt for dotted version multiplet.
9207 ## use eval trickery, because we cannot use multi-level $() instead of ``
9208 ## for compatibility reasons.
9210 ## grab the first version number in --version output.
9211 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9212 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9215 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9216 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9219 if test -z "$_ver"; then
9220 ## If empty, try date [fontforge]
9221 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9223 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9230 echo "$ver" | awk -F. '
9232 if ($3) {three = $3}
9235 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9238 echo "20100501" | awk -F. '
9240 if ($3) {three = $3}
9243 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9245 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9246 $as_echo "$ver" >&6; }
9247 if test "$num" -lt "$req"; then
9249 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20100501 (installed: $ver)"\"`\"
9252 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9253 eval `echo $vervar=$num`
9254 ## AC_SUBST(`eval echo $vervar`)
9260 for ac_prog in fontforge
9262 # Extract the first word of "$ac_prog", so it can be a program name with args.
9263 set dummy $ac_prog; ac_word=$2
9264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9265 $as_echo_n "checking for $ac_word... " >&6; }
9266 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
9267 $as_echo_n "(cached) " >&6
9269 if test -n "$FONTFORGE"; then
9270 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
9272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9276 test -z "$as_dir" && as_dir=.
9277 for ac_exec_ext in '' $ac_executable_extensions; do
9278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9279 ac_cv_prog_FONTFORGE="$ac_prog"
9280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9289 FONTFORGE=$ac_cv_prog_FONTFORGE
9290 if test -n "$FONTFORGE"; then
9291 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9292 $as_echo "$FONTFORGE" >&6; }
9294 { $as_echo "$as_me:$LINENO: result: no" >&5
9295 $as_echo "no" >&6; }
9299 test -n "$FONTFORGE" && break
9301 test -n "$FONTFORGE" || FONTFORGE="no"
9305 r="`eval echo '$'"FONTFORGE"`"
9306 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
9309 ##STEPMAKE_WARN(cannot find . )
9313 if test $? -ne 0; then
9315 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"fontforge\"`\"
9317 if test "OPTIONAL" = "REQUIRED"; then
9318 command="echo ERROR: fontforge not found"
9319 # abort configure process here?
9321 command="- echo fontforge not found"
9323 eval "FONTFORGE"='$command'
9329 if test $? -eq 0; then
9330 # Extract the first word of "fontforge", so it can be a program name with args.
9331 set dummy fontforge; ac_word=$2
9332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if test "${ac_cv_path_FONTFORGE+set}" = set; then
9335 $as_echo_n "(cached) " >&6
9339 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
9350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 FONTFORGE=$ac_cv_path_FONTFORGE
9361 if test -n "$FONTFORGE"; then
9362 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
9363 $as_echo "$FONTFORGE" >&6; }
9365 { $as_echo "$as_me:$LINENO: result: no" >&5
9366 $as_echo "no" >&6; }
9370 if test -n "20110222"; then
9372 r="`eval echo '$'"FONTFORGE"`"
9373 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9374 $as_echo_n "checking $r version... " >&6; }
9376 ## which doesn't work in ash, if /usr/bin/which isn't installed
9377 ## type -p doesn't work in ash
9378 ## command -v doesn't work in zsh
9379 ## command -v "$r" 2>&1
9380 ## this test should work in ash, bash, pdksh (ksh), zsh
9381 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9387 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9390 ## Workaround for broken Debian gcc version string:
9391 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9393 ## -V: Workaround for python
9397 ## Assume and hunt for dotted version multiplet.
9398 ## use eval trickery, because we cannot use multi-level $() instead of ``
9399 ## for compatibility reasons.
9401 ## grab the first version number in --version output.
9402 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9403 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9406 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9407 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9410 if test -z "$_ver"; then
9411 ## If empty, try date [fontforge]
9412 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9414 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9421 echo "$ver" | awk -F. '
9423 if ($3) {three = $3}
9426 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9429 echo "20110222" | awk -F. '
9431 if ($3) {three = $3}
9434 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9436 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9437 $as_echo "$ver" >&6; }
9438 if test "$num" -lt "$req"; then
9440 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 20110222 (installed: $ver)"\"`\"
9443 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
9444 eval `echo $vervar=$num`
9445 ## AC_SUBST(`eval echo $vervar`)
9452 for ac_prog in t1asm
9454 # Extract the first word of "$ac_prog", so it can be a program name with args.
9455 set dummy $ac_prog; ac_word=$2
9456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if test "${ac_cv_prog_T1ASM+set}" = set; then
9459 $as_echo_n "(cached) " >&6
9461 if test -n "$T1ASM"; then
9462 ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9471 ac_cv_prog_T1ASM="$ac_prog"
9472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 T1ASM=$ac_cv_prog_T1ASM
9482 if test -n "$T1ASM"; then
9483 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9484 $as_echo "$T1ASM" >&6; }
9486 { $as_echo "$as_me:$LINENO: result: no" >&5
9487 $as_echo "no" >&6; }
9491 test -n "$T1ASM" && break
9493 test -n "$T1ASM" || T1ASM="no"
9497 r="`eval echo '$'"T1ASM"`"
9498 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
9501 ##STEPMAKE_WARN(cannot find . )
9505 if test $? -ne 0; then
9507 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
9509 if test "REQUIRED" = "REQUIRED"; then
9510 command="echo ERROR: t1asm not found"
9511 # abort configure process here?
9513 command="- echo t1asm not found"
9515 eval "T1ASM"='$command'
9521 if test $? -eq 0; then
9522 # Extract the first word of "t1asm", so it can be a program name with args.
9523 set dummy t1asm; ac_word=$2
9524 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9525 $as_echo_n "checking for $ac_word... " >&6; }
9526 if test "${ac_cv_path_T1ASM+set}" = set; then
9527 $as_echo_n "(cached) " >&6
9531 ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
9534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 test -z "$as_dir" && as_dir=.
9539 for ac_exec_ext in '' $ac_executable_extensions; do
9540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9541 ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
9542 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9552 T1ASM=$ac_cv_path_T1ASM
9553 if test -n "$T1ASM"; then
9554 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
9555 $as_echo "$T1ASM" >&6; }
9557 { $as_echo "$as_me:$LINENO: result: no" >&5
9558 $as_echo "no" >&6; }
9564 r="`eval echo '$'"T1ASM"`"
9565 { $as_echo "$as_me:$LINENO: checking $r version" >&5
9566 $as_echo_n "checking $r version... " >&6; }
9568 ## which doesn't work in ash, if /usr/bin/which isn't installed
9569 ## type -p doesn't work in ash
9570 ## command -v doesn't work in zsh
9571 ## command -v "$r" 2>&1
9572 ## this test should work in ash, bash, pdksh (ksh), zsh
9573 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9579 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9582 ## Workaround for broken Debian gcc version string:
9583 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9585 ## -V: Workaround for python
9589 ## Assume and hunt for dotted version multiplet.
9590 ## use eval trickery, because we cannot use multi-level $() instead of ``
9591 ## for compatibility reasons.
9593 ## grab the first version number in --version output.
9594 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9595 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9598 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9599 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9602 if test -z "$_ver"; then
9603 ## If empty, try date [fontforge]
9604 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
9606 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9613 echo "$ver" | awk -F. '
9615 if ($3) {three = $3}
9618 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9623 if ($3) {three = $3}
9626 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9628 { $as_echo "$as_me:$LINENO: result: $ver" >&5
9629 $as_echo "$ver" >&6; }
9630 if test "$num" -lt "$req"; then
9632 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
9635 vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
9636 eval `echo $vervar=$num`
9637 ## AC_SUBST(`eval echo $vervar`)
9650 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
9652 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9654 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9655 $as_echo_n "checking for $ac_header... " >&6; }
9656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9657 $as_echo_n "(cached) " >&6
9659 ac_res=`eval 'as_val=${'$as_ac_Header'}
9660 $as_echo "$as_val"'`
9661 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9662 $as_echo "$ac_res" >&6; }
9664 # Is the header compilable?
9665 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9666 $as_echo_n "checking $ac_header usability... " >&6; }
9667 cat >conftest.$ac_ext <<_ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9673 $ac_includes_default
9674 #include <$ac_header>
9676 rm -f conftest.$ac_objext
9677 if { (ac_try="$ac_compile"
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9683 $as_echo "$ac_try_echo") >&5
9684 (eval "$ac_compile") 2>conftest.er1
9686 grep -v '^ *+' conftest.er1 >conftest.err
9688 cat conftest.err >&5
9689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } && {
9691 test -z "$ac_cxx_werror_flag" ||
9692 test ! -s conftest.err
9693 } && test -s conftest.$ac_objext; then
9694 ac_header_compiler=yes
9696 $as_echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 ac_header_compiler=no
9702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9704 $as_echo "$ac_header_compiler" >&6; }
9706 # Is the header present?
9707 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9708 $as_echo_n "checking $ac_header presence... " >&6; }
9709 cat >conftest.$ac_ext <<_ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 #include <$ac_header>
9717 if { (ac_try="$ac_cpp conftest.$ac_ext"
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9723 $as_echo "$ac_try_echo") >&5
9724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9726 grep -v '^ *+' conftest.er1 >conftest.err
9728 cat conftest.err >&5
9729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } >/dev/null && {
9731 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9732 test ! -s conftest.err
9734 ac_header_preproc=yes
9736 $as_echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9739 ac_header_preproc=no
9742 rm -f conftest.err conftest.$ac_ext
9743 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9744 $as_echo "$ac_header_preproc" >&6; }
9746 # So? What about this header?
9747 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9750 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9752 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9753 ac_header_preproc=yes
9756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9757 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9759 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9761 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9763 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9765 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9767 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9771 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9772 $as_echo_n "checking for $ac_header... " >&6; }
9773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9774 $as_echo_n "(cached) " >&6
9776 eval "$as_ac_Header=\$ac_header_preproc"
9778 ac_res=`eval 'as_val=${'$as_ac_Header'}
9779 $as_echo "$as_val"'`
9780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9781 $as_echo "$ac_res" >&6; }
9784 as_val=`eval 'as_val=${'$as_ac_Header'}
9785 $as_echo "$as_val"'`
9786 if test "x$as_val" = x""yes; then
9787 cat >>confdefs.h <<_ACEOF
9788 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9796 for ac_header in sstream
9798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9801 $as_echo_n "checking for $ac_header... " >&6; }
9802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803 $as_echo_n "(cached) " >&6
9805 ac_res=`eval 'as_val=${'$as_ac_Header'}
9806 $as_echo "$as_val"'`
9807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9808 $as_echo "$ac_res" >&6; }
9810 # Is the header compilable?
9811 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9812 $as_echo_n "checking $ac_header usability... " >&6; }
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9819 $ac_includes_default
9820 #include <$ac_header>
9822 rm -f conftest.$ac_objext
9823 if { (ac_try="$ac_compile"
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9829 $as_echo "$ac_try_echo") >&5
9830 (eval "$ac_compile") 2>conftest.er1
9832 grep -v '^ *+' conftest.er1 >conftest.err
9834 cat conftest.err >&5
9835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } && {
9837 test -z "$ac_cxx_werror_flag" ||
9838 test ! -s conftest.err
9839 } && test -s conftest.$ac_objext; then
9840 ac_header_compiler=yes
9842 $as_echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9845 ac_header_compiler=no
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9850 $as_echo "$ac_header_compiler" >&6; }
9852 # Is the header present?
9853 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9854 $as_echo_n "checking $ac_header presence... " >&6; }
9855 cat >conftest.$ac_ext <<_ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 #include <$ac_header>
9863 if { (ac_try="$ac_cpp conftest.$ac_ext"
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869 $as_echo "$ac_try_echo") >&5
9870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } >/dev/null && {
9877 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9878 test ! -s conftest.err
9880 ac_header_preproc=yes
9882 $as_echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_header_preproc=no
9888 rm -f conftest.err conftest.$ac_ext
9889 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9890 $as_echo "$ac_header_preproc" >&6; }
9892 # So? What about this header?
9893 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9896 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9898 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9899 ac_header_preproc=yes
9902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9903 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9905 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9907 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9909 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9911 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9913 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9917 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9918 $as_echo_n "checking for $ac_header... " >&6; }
9919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9920 $as_echo_n "(cached) " >&6
9922 eval "$as_ac_Header=\$ac_header_preproc"
9924 ac_res=`eval 'as_val=${'$as_ac_Header'}
9925 $as_echo "$as_val"'`
9926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9927 $as_echo "$ac_res" >&6; }
9930 as_val=`eval 'as_val=${'$as_ac_Header'}
9931 $as_echo "$as_val"'`
9932 if test "x$as_val" = x""yes; then
9933 cat >>confdefs.h <<_ACEOF
9934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9941 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9942 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9943 if test "${ac_cv_header_stat_broken+set}" = set; then
9944 $as_echo_n "(cached) " >&6
9946 cat >conftest.$ac_ext <<_ACEOF
9949 cat confdefs.h >>conftest.$ac_ext
9950 cat >>conftest.$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 #include <sys/types.h>
9953 #include <sys/stat.h>
9955 #if defined S_ISBLK && defined S_IFDIR
9956 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9959 #if defined S_ISBLK && defined S_IFCHR
9960 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9963 #if defined S_ISLNK && defined S_IFREG
9964 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9967 #if defined S_ISSOCK && defined S_IFREG
9968 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9972 rm -f conftest.$ac_objext
9973 if { (ac_try="$ac_compile"
9975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976 *) ac_try_echo=$ac_try;;
9978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980 (eval "$ac_compile") 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } && {
9987 test -z "$ac_cxx_werror_flag" ||
9988 test ! -s conftest.err
9989 } && test -s conftest.$ac_objext; then
9990 ac_cv_header_stat_broken=no
9992 $as_echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9995 ac_cv_header_stat_broken=yes
9998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10000 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10001 $as_echo "$ac_cv_header_stat_broken" >&6; }
10002 if test $ac_cv_header_stat_broken = yes; then
10004 cat >>confdefs.h <<\_ACEOF
10005 #define STAT_MACROS_BROKEN 1
10010 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
10011 $as_echo_n "checking for working memcmp... " >&6; }
10012 if test "${ac_cv_func_memcmp_working+set}" = set; then
10013 $as_echo_n "(cached) " >&6
10015 if test "$cross_compiling" = yes; then
10016 ac_cv_func_memcmp_working=no
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 $ac_includes_default
10029 /* Some versions of memcmp are not 8-bit clean. */
10030 char c0 = '\100', c1 = '\200', c2 = '\201';
10031 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
10034 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
10035 or more and with at least one buffer not starting on a 4-byte boundary.
10036 William Lewis provided this test program. */
10041 for (i = 0; i < 4; i++)
10045 strcpy (a, "--------01111111");
10046 strcpy (b, "--------10000000");
10047 if (memcmp (a, b, 16) >= 0)
10057 rm -f conftest$ac_exeext
10058 if { (ac_try="$ac_link"
10059 case "(($ac_try" in
10060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061 *) ac_try_echo=$ac_try;;
10063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10064 $as_echo "$ac_try_echo") >&5
10065 (eval "$ac_link") 2>&5
10067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10069 { (case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10074 $as_echo "$ac_try_echo") >&5
10075 (eval "$ac_try") 2>&5
10077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 ac_cv_func_memcmp_working=yes
10081 $as_echo "$as_me: program exited with status $ac_status" >&5
10082 $as_echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ( exit $ac_status )
10086 ac_cv_func_memcmp_working=no
10088 rm -rf conftest.dSYM
10089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
10095 $as_echo "$ac_cv_func_memcmp_working" >&6; }
10096 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
10097 *" memcmp.$ac_objext "* ) ;;
10098 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
10104 for ac_func in vprintf
10106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10108 $as_echo_n "checking for $ac_func... " >&6; }
10109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10110 $as_echo_n "(cached) " >&6
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10120 #define $ac_func innocuous_$ac_func
10122 /* System header to define __stub macros and hopefully few prototypes,
10123 which can conflict with char $ac_func (); below.
10124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10125 <limits.h> exists even on freestanding compilers. */
10128 # include <limits.h>
10130 # include <assert.h>
10135 /* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10142 /* The GNU C library defines this for functions which it implements
10143 to always fail with ENOSYS. Some functions are actually named
10144 something starting with __ and the normal name is an alias. */
10145 #if defined __stub_$ac_func || defined __stub___$ac_func
10152 return $ac_func ();
10157 rm -f conftest.$ac_objext conftest$ac_exeext
10158 if { (ac_try="$ac_link"
10159 case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164 $as_echo "$ac_try_echo") >&5
10165 (eval "$ac_link") 2>conftest.er1
10167 grep -v '^ *+' conftest.er1 >conftest.err
10169 cat conftest.err >&5
10170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && {
10172 test -z "$ac_cxx_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest$ac_exeext && {
10175 test "$cross_compiling" = yes ||
10176 $as_test_x conftest$ac_exeext
10178 eval "$as_ac_var=yes"
10180 $as_echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 eval "$as_ac_var=no"
10186 rm -rf conftest.dSYM
10187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188 conftest$ac_exeext conftest.$ac_ext
10190 ac_res=`eval 'as_val=${'$as_ac_var'}
10191 $as_echo "$as_val"'`
10192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10193 $as_echo "$ac_res" >&6; }
10194 as_val=`eval 'as_val=${'$as_ac_var'}
10195 $as_echo "$as_val"'`
10196 if test "x$as_val" = x""yes; then
10197 cat >>confdefs.h <<_ACEOF
10198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10201 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
10202 $as_echo_n "checking for _doprnt... " >&6; }
10203 if test "${ac_cv_func__doprnt+set}" = set; then
10204 $as_echo_n "(cached) " >&6
10206 cat >conftest.$ac_ext <<_ACEOF
10209 cat confdefs.h >>conftest.$ac_ext
10210 cat >>conftest.$ac_ext <<_ACEOF
10211 /* end confdefs.h. */
10212 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10214 #define _doprnt innocuous__doprnt
10216 /* System header to define __stub macros and hopefully few prototypes,
10217 which can conflict with char _doprnt (); below.
10218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10219 <limits.h> exists even on freestanding compilers. */
10222 # include <limits.h>
10224 # include <assert.h>
10229 /* Override any GCC internal prototype to avoid an error.
10230 Use char because int might match the return type of a GCC
10231 builtin and then its argument prototype would still apply. */
10236 /* The GNU C library defines this for functions which it implements
10237 to always fail with ENOSYS. Some functions are actually named
10238 something starting with __ and the normal name is an alias. */
10239 #if defined __stub__doprnt || defined __stub____doprnt
10251 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10258 $as_echo "$ac_try_echo") >&5
10259 (eval "$ac_link") 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_cxx_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext && {
10269 test "$cross_compiling" = yes ||
10270 $as_test_x conftest$ac_exeext
10272 ac_cv_func__doprnt=yes
10274 $as_echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_cv_func__doprnt=no
10280 rm -rf conftest.dSYM
10281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10282 conftest$ac_exeext conftest.$ac_ext
10284 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10285 $as_echo "$ac_cv_func__doprnt" >&6; }
10286 if test "x$ac_cv_func__doprnt" = x""yes; then
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_DOPRNT 1
10305 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
10307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10308 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10309 $as_echo_n "checking for $ac_func... " >&6; }
10310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10311 $as_echo_n "(cached) " >&6
10313 cat >conftest.$ac_ext <<_ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10321 #define $ac_func innocuous_$ac_func
10323 /* System header to define __stub macros and hopefully few prototypes,
10324 which can conflict with char $ac_func (); below.
10325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10326 <limits.h> exists even on freestanding compilers. */
10329 # include <limits.h>
10331 # include <assert.h>
10336 /* Override any GCC internal prototype to avoid an error.
10337 Use char because int might match the return type of a GCC
10338 builtin and then its argument prototype would still apply. */
10343 /* The GNU C library defines this for functions which it implements
10344 to always fail with ENOSYS. Some functions are actually named
10345 something starting with __ and the normal name is an alias. */
10346 #if defined __stub_$ac_func || defined __stub___$ac_func
10353 return $ac_func ();
10358 rm -f conftest.$ac_objext conftest$ac_exeext
10359 if { (ac_try="$ac_link"
10360 case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10365 $as_echo "$ac_try_echo") >&5
10366 (eval "$ac_link") 2>conftest.er1
10368 grep -v '^ *+' conftest.er1 >conftest.err
10370 cat conftest.err >&5
10371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } && {
10373 test -z "$ac_cxx_werror_flag" ||
10374 test ! -s conftest.err
10375 } && test -s conftest$ac_exeext && {
10376 test "$cross_compiling" = yes ||
10377 $as_test_x conftest$ac_exeext
10379 eval "$as_ac_var=yes"
10381 $as_echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10384 eval "$as_ac_var=no"
10387 rm -rf conftest.dSYM
10388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10389 conftest$ac_exeext conftest.$ac_ext
10391 ac_res=`eval 'as_val=${'$as_ac_var'}
10392 $as_echo "$as_val"'`
10393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10394 $as_echo "$ac_res" >&6; }
10395 as_val=`eval 'as_val=${'$as_ac_var'}
10396 $as_echo "$as_val"'`
10397 if test "x$as_val" = x""yes; then
10398 cat >>confdefs.h <<_ACEOF
10399 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10407 for ac_prog in pkg-config
10409 # Extract the first word of "$ac_prog", so it can be a program name with args.
10410 set dummy $ac_prog; ac_word=$2
10411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
10414 $as_echo_n "(cached) " >&6
10416 if test -n "$PKG_CONFIG"; then
10417 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
10419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420 for as_dir in $PATH
10423 test -z "$as_dir" && as_dir=.
10424 for ac_exec_ext in '' $ac_executable_extensions; do
10425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10426 ac_cv_prog_PKG_CONFIG="$ac_prog"
10427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
10437 if test -n "$PKG_CONFIG"; then
10438 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10439 $as_echo "$PKG_CONFIG" >&6; }
10441 { $as_echo "$as_me:$LINENO: result: no" >&5
10442 $as_echo "no" >&6; }
10446 test -n "$PKG_CONFIG" && break
10448 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
10452 r="`eval echo '$'"PKG_CONFIG"`"
10453 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
10456 ##STEPMAKE_WARN(cannot find . )
10460 if test $? -ne 0; then
10462 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
10464 if test "REQUIRED" = "REQUIRED"; then
10465 command="echo ERROR: pkg-config not found"
10466 # abort configure process here?
10468 command="- echo pkg-config not found"
10470 eval "PKG_CONFIG"='$command'
10476 if test $? -eq 0 -a -n "0.9.0"; then
10478 r="`eval echo '$'"PKG_CONFIG"`"
10479 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10480 $as_echo_n "checking $r version... " >&6; }
10482 ## which doesn't work in ash, if /usr/bin/which isn't installed
10483 ## type -p doesn't work in ash
10484 ## command -v doesn't work in zsh
10485 ## command -v "$r" 2>&1
10486 ## this test should work in ash, bash, pdksh (ksh), zsh
10487 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10489 if test -n ""; then
10493 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10496 ## Workaround for broken Debian gcc version string:
10497 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10499 ## -V: Workaround for python
10503 ## Assume and hunt for dotted version multiplet.
10504 ## use eval trickery, because we cannot use multi-level $() instead of ``
10505 ## for compatibility reasons.
10507 ## grab the first version number in --version output.
10508 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10509 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10512 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10513 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10516 if test -z "$_ver"; then
10517 ## If empty, try date [fontforge]
10518 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
10520 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10527 echo "$ver" | awk -F. '
10529 if ($3) {three = $3}
10532 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10535 echo "0.9.0" | awk -F. '
10537 if ($3) {three = $3}
10540 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10542 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10543 $as_echo "$ver" >&6; }
10544 if test "$num" -lt "$req"; then
10546 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
10549 vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
10550 eval `echo $vervar=$num`
10551 ## AC_SUBST(`eval echo $vervar`)
10556 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
10557 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
10558 if test "$reloc_b" = "yes"; then
10559 cat >>confdefs.h <<\_ACEOF
10560 #define ARGV0_RELOCATION 1
10564 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
10565 $as_echo "$reloc_b" >&6; }
10567 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
10568 $as_echo_n "checking for rpath linkage... " >&6; }
10569 if test "$rpath_b" = "yes"; then
10570 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
10571 elif test "$rpath_b" != "no"; then
10572 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
10574 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
10575 $as_echo "$rpath_b" >&6; }
10577 HOST_ARCH=`$CC -dumpmachine`
10584 if test -z "$PKG_CONFIG"; then
10585 # Extract the first word of "pkg-config", so it can be a program name with args.
10586 set dummy pkg-config; ac_word=$2
10587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10590 $as_echo_n "(cached) " >&6
10592 case $PKG_CONFIG in
10594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10601 test -z "$as_dir" && as_dir=.
10602 for ac_exec_ext in '' $ac_executable_extensions; do
10603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10617 if test -n "$PKG_CONFIG"; then
10618 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10619 $as_echo "$PKG_CONFIG" >&6; }
10621 { $as_echo "$as_me:$LINENO: result: no" >&5
10622 $as_echo "no" >&6; }
10628 if test "$PKG_CONFIG" = "no" ; then
10629 echo "*** The pkg-config script could not be found. Make sure it is"
10630 echo "*** in your path, or set the PKG_CONFIG environment variable"
10631 echo "*** to the full path to pkg-config."
10632 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
10634 PKG_CONFIG_MIN_VERSION=0.9.0
10635 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10636 { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
10637 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
10639 if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
10640 { $as_echo "$as_me:$LINENO: result: yes" >&5
10641 $as_echo "yes" >&6; }
10644 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
10645 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
10646 PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
10647 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
10648 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
10650 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
10651 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
10652 PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
10653 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
10654 $as_echo "$PANGO_FT2_LIBS" >&6; }
10656 PANGO_FT2_CFLAGS=""
10658 ## If we have a custom action on failure, don't print errors, but
10659 ## do set a variable so people can do so.
10660 PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
10669 if test $succeeded = yes; then
10675 if test "$have_pangoft2" = yes ; then
10676 cat >>confdefs.h <<\_ACEOF
10677 #define HAVE_PANGO16 1
10680 cat >>confdefs.h <<\_ACEOF
10681 #define HAVE_PANGO_FT2 1
10684 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
10685 save_CPPFLAGS="$CPPFLAGS"
10687 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
10688 LIBS="$PANGO_FT2_LIBS $LIBS"
10690 for ac_header in pango/pangoft2.h
10692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10694 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10695 $as_echo_n "checking for $ac_header... " >&6; }
10696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10697 $as_echo_n "(cached) " >&6
10699 ac_res=`eval 'as_val=${'$as_ac_Header'}
10700 $as_echo "$as_val"'`
10701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10702 $as_echo "$ac_res" >&6; }
10704 # Is the header compilable?
10705 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706 $as_echo_n "checking $ac_header usability... " >&6; }
10707 cat >conftest.$ac_ext <<_ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10713 $ac_includes_default
10714 #include <$ac_header>
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10723 $as_echo "$ac_try_echo") >&5
10724 (eval "$ac_compile") 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } && {
10731 test -z "$ac_cxx_werror_flag" ||
10732 test ! -s conftest.err
10733 } && test -s conftest.$ac_objext; then
10734 ac_header_compiler=yes
10736 $as_echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ac_header_compiler=no
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10744 $as_echo "$ac_header_compiler" >&6; }
10746 # Is the header present?
10747 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10748 $as_echo_n "checking $ac_header presence... " >&6; }
10749 cat >conftest.$ac_ext <<_ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 #include <$ac_header>
10757 if { (ac_try="$ac_cpp conftest.$ac_ext"
10758 case "(($ac_try" in
10759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10763 $as_echo "$ac_try_echo") >&5
10764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10766 grep -v '^ *+' conftest.er1 >conftest.err
10768 cat conftest.err >&5
10769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } >/dev/null && {
10771 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10772 test ! -s conftest.err
10774 ac_header_preproc=yes
10776 $as_echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 ac_header_preproc=no
10782 rm -f conftest.err conftest.$ac_ext
10783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10784 $as_echo "$ac_header_preproc" >&6; }
10786 # So? What about this header?
10787 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10790 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10793 ac_header_preproc=yes
10796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10797 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10799 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10800 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10801 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10802 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10803 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10804 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10805 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10807 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10811 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10812 $as_echo_n "checking for $ac_header... " >&6; }
10813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10814 $as_echo_n "(cached) " >&6
10816 eval "$as_ac_Header=\$ac_header_preproc"
10818 ac_res=`eval 'as_val=${'$as_ac_Header'}
10819 $as_echo "$as_val"'`
10820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10821 $as_echo "$ac_res" >&6; }
10824 as_val=`eval 'as_val=${'$as_ac_Header'}
10825 $as_echo "$as_val"'`
10826 if test "x$as_val" = x""yes; then
10827 cat >>confdefs.h <<_ACEOF
10828 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10836 for ac_func in pango_ft2_font_map_create_context
10838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10840 $as_echo_n "checking for $ac_func... " >&6; }
10841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10842 $as_echo_n "(cached) " >&6
10844 cat >conftest.$ac_ext <<_ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10852 #define $ac_func innocuous_$ac_func
10854 /* System header to define __stub macros and hopefully few prototypes,
10855 which can conflict with char $ac_func (); below.
10856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10857 <limits.h> exists even on freestanding compilers. */
10860 # include <limits.h>
10862 # include <assert.h>
10867 /* Override any GCC internal prototype to avoid an error.
10868 Use char because int might match the return type of a GCC
10869 builtin and then its argument prototype would still apply. */
10874 /* The GNU C library defines this for functions which it implements
10875 to always fail with ENOSYS. Some functions are actually named
10876 something starting with __ and the normal name is an alias. */
10877 #if defined __stub_$ac_func || defined __stub___$ac_func
10884 return $ac_func ();
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10896 $as_echo "$ac_try_echo") >&5
10897 (eval "$ac_link") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1 >conftest.err
10901 cat conftest.err >&5
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_cxx_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext && {
10907 test "$cross_compiling" = yes ||
10908 $as_test_x conftest$ac_exeext
10910 eval "$as_ac_var=yes"
10912 $as_echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 eval "$as_ac_var=no"
10918 rm -rf conftest.dSYM
10919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920 conftest$ac_exeext conftest.$ac_ext
10922 ac_res=`eval 'as_val=${'$as_ac_var'}
10923 $as_echo "$as_val"'`
10924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10925 $as_echo "$ac_res" >&6; }
10926 as_val=`eval 'as_val=${'$as_ac_var'}
10927 $as_echo "$as_val"'`
10928 if test "x$as_val" = x""yes; then
10929 cat >>confdefs.h <<_ACEOF
10930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10938 CPPFLAGS="$save_CPPFLAGS"
10942 #r="libpangoft2-dev or pangoft2-devel"e
10943 r="libpango1.0-dev or pango?-devel"
10944 ver="`pkg-config --modversion pangoft2`"
10946 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
10954 if test -z "$PKG_CONFIG"; then
10955 # Extract the first word of "pkg-config", so it can be a program name with args.
10956 set dummy pkg-config; ac_word=$2
10957 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10958 $as_echo_n "checking for $ac_word... " >&6; }
10959 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10960 $as_echo_n "(cached) " >&6
10962 case $PKG_CONFIG in
10964 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $PATH
10971 test -z "$as_dir" && as_dir=.
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10974 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10975 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10986 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10987 if test -n "$PKG_CONFIG"; then
10988 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10989 $as_echo "$PKG_CONFIG" >&6; }
10991 { $as_echo "$as_me:$LINENO: result: no" >&5
10992 $as_echo "no" >&6; }
10998 if test "$PKG_CONFIG" = "no" ; then
10999 echo "*** The pkg-config script could not be found. Make sure it is"
11000 echo "*** in your path, or set the PKG_CONFIG environment variable"
11001 echo "*** to the full path to pkg-config."
11002 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11004 PKG_CONFIG_MIN_VERSION=0.9.0
11005 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11006 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
11007 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
11009 if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
11010 { $as_echo "$as_me:$LINENO: result: yes" >&5
11011 $as_echo "yes" >&6; }
11014 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
11015 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11016 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
11017 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
11018 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11020 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
11021 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11022 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
11023 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
11024 $as_echo "$FONTCONFIG_LIBS" >&6; }
11026 FONTCONFIG_CFLAGS=""
11028 ## If we have a custom action on failure, don't print errors, but
11029 ## do set a variable so people can do so.
11030 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
11039 if test $succeeded = yes; then
11040 have_fontconfig=yes
11045 if test "$have_fontconfig" = yes ; then
11046 cat >>confdefs.h <<\_ACEOF
11047 #define HAVE_FONTCONFIG 1
11050 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11051 save_CPPFLAGS="$CPPFLAGS"
11053 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
11054 LIBS="$FONTCONFIG_LIBS $LIBS"
11057 CPPFLAGS="$save_CPPFLAGS"
11060 r="libfontconfig-dev or fontconfig-devel"
11061 ver="`pkg-config --modversion fontconfig`"
11063 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
11071 if test -z "$PKG_CONFIG"; then
11072 # Extract the first word of "pkg-config", so it can be a program name with args.
11073 set dummy pkg-config; ac_word=$2
11074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11075 $as_echo_n "checking for $ac_word... " >&6; }
11076 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11077 $as_echo_n "(cached) " >&6
11079 case $PKG_CONFIG in
11081 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11088 test -z "$as_dir" && as_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11091 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11092 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11103 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11104 if test -n "$PKG_CONFIG"; then
11105 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11106 $as_echo "$PKG_CONFIG" >&6; }
11108 { $as_echo "$as_me:$LINENO: result: no" >&5
11109 $as_echo "no" >&6; }
11115 if test "$PKG_CONFIG" = "no" ; then
11116 echo "*** The pkg-config script could not be found. Make sure it is"
11117 echo "*** in your path, or set the PKG_CONFIG environment variable"
11118 echo "*** to the full path to pkg-config."
11119 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11121 PKG_CONFIG_MIN_VERSION=0.9.0
11122 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11123 { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
11124 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
11126 if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
11127 { $as_echo "$as_me:$LINENO: result: yes" >&5
11128 $as_echo "yes" >&6; }
11131 { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
11132 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
11133 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
11134 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
11135 $as_echo "$FREETYPE2_CFLAGS" >&6; }
11137 { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
11138 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
11139 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
11140 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
11141 $as_echo "$FREETYPE2_LIBS" >&6; }
11143 FREETYPE2_CFLAGS=""
11145 ## If we have a custom action on failure, don't print errors, but
11146 ## do set a variable so people can do so.
11147 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
11156 if test $succeeded = yes; then
11162 if test "$have_freetype2" = yes; then
11163 cat >>confdefs.h <<\_ACEOF
11164 #define HAVE_FREETYPE2 1
11167 save_CPPFLAGS="$CPPFLAGS"
11169 CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
11170 LIBS="$FREETYPE2_LIBS $LIBS"
11173 CPPFLAGS="$save_CPPFLAGS"
11177 #r="libfreetype2-dev or freetype2-devel"
11178 r="libfreetype6-dev or freetype?-devel"
11179 ver="`pkg-config --modversion freetype2`"
11181 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
11187 { $as_echo "$as_me:$LINENO: checking host system type" >&5
11188 $as_echo_n "checking host system type... " >&6; }
11189 if test "${ac_cv_host+set}" = set; then
11190 $as_echo_n "(cached) " >&6
11192 if test "x$host_alias" = x; then
11193 ac_cv_host=$ac_cv_build
11195 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11196 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11197 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11198 { (exit 1); exit 1; }; }
11202 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11203 $as_echo "$ac_cv_host" >&6; }
11204 case $ac_cv_host in
11206 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11207 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11208 { (exit 1); exit 1; }; };;
11211 ac_save_IFS=$IFS; IFS='-'
11217 # Remember, the first character of IFS is used to create $*,
11218 # except with old shells:
11221 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11225 *cygwin* ) CYGWIN=yes;;
11229 { $as_echo "$as_me:$LINENO: checking host system type" >&5
11230 $as_echo_n "checking host system type... " >&6; }
11231 if test "${ac_cv_host+set}" = set; then
11232 $as_echo_n "(cached) " >&6
11234 if test "x$host_alias" = x; then
11235 ac_cv_host=$ac_cv_build
11237 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11238 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11239 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11240 { (exit 1); exit 1; }; }
11244 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11245 $as_echo "$ac_cv_host" >&6; }
11246 case $ac_cv_host in
11248 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11249 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
11250 { (exit 1); exit 1; }; };;
11253 ac_save_IFS=$IFS; IFS='-'
11259 # Remember, the first character of IFS is used to create $*,
11260 # except with old shells:
11263 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11267 *mingw32* ) MINGW32=yes;;
11272 if test "$CYGWIN" = "yes"; then
11273 LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
11274 program_suffix=.exe
11275 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11276 elif test "$MINGW32" = "yes"; then
11279 program_suffix=.exe
11280 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
11286 cat >>confdefs.h <<_ACEOF
11287 #define DIRSEP '${DIRSEP}'
11290 cat >>confdefs.h <<_ACEOF
11291 #define PATHSEP '${PATHSEP}'
11298 { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
11299 $as_echo_n "checking for some flavor of Windows... " >&6; }
11300 if test "$CYGWIN$MINGW32" = "nono"; then
11301 PLATFORM_WINDOWS=no
11303 PLATFORM_WINDOWS=yes
11305 { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
11306 $as_echo "$PLATFORM_WINDOWS" >&6; }
11309 for ac_prog in $target-windres windres
11311 # Extract the first word of "$ac_prog", so it can be a program name with args.
11312 set dummy $ac_prog; ac_word=$2
11313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if test "${ac_cv_prog_WINDRES+set}" = set; then
11316 $as_echo_n "(cached) " >&6
11318 if test -n "$WINDRES"; then
11319 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322 for as_dir in $PATH
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11328 ac_cv_prog_WINDRES="$ac_prog"
11329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11338 WINDRES=$ac_cv_prog_WINDRES
11339 if test -n "$WINDRES"; then
11340 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
11341 $as_echo "$WINDRES" >&6; }
11343 { $as_echo "$as_me:$LINENO: result: no" >&5
11344 $as_echo "no" >&6; }
11348 test -n "$WINDRES" && break
11350 test -n "$WINDRES" || WINDRES="no"
11354 r="`eval echo '$'"WINDRES"`"
11355 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
11358 ##STEPMAKE_WARN(cannot find . )
11362 if test $? -ne 0; then
11364 eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
11366 if test "x" = "REQUIRED"; then
11367 command="echo ERROR: $target-windres windres not found"
11368 # abort configure process here?
11370 command="- echo $target-windres windres not found"
11372 eval "WINDRES"='$command'
11378 if test $? -eq 0 -a -n ""; then
11380 r="`eval echo '$'"WINDRES"`"
11381 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11382 $as_echo_n "checking $r version... " >&6; }
11384 ## which doesn't work in ash, if /usr/bin/which isn't installed
11385 ## type -p doesn't work in ash
11386 ## command -v doesn't work in zsh
11387 ## command -v "$r" 2>&1
11388 ## this test should work in ash, bash, pdksh (ksh), zsh
11389 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11391 if test -n ""; then
11395 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11398 ## Workaround for broken Debian gcc version string:
11399 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11401 ## -V: Workaround for python
11405 ## Assume and hunt for dotted version multiplet.
11406 ## use eval trickery, because we cannot use multi-level $() instead of ``
11407 ## for compatibility reasons.
11409 ## grab the first version number in --version output.
11410 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11411 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11414 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11415 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11418 if test -z "$_ver"; then
11419 ## If empty, try date [fontforge]
11420 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11422 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11429 echo "$ver" | awk -F. '
11431 if ($3) {three = $3}
11434 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11437 echo "" | awk -F. '
11439 if ($3) {three = $3}
11442 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11444 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11445 $as_echo "$ver" >&6; }
11446 if test "$num" -lt "$req"; then
11448 eval "x"=\"`eval echo \"'$'x\" \""$r >= (installed: $ver)"\"`\"
11451 vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
11452 eval `echo $vervar=$num`
11453 ## AC_SUBST(`eval echo $vervar`)
11460 ## Optional tools for building documentation, website, extra fonts.
11462 # guile executable for some scripts
11465 for ac_prog in guile
11467 # Extract the first word of "$ac_prog", so it can be a program name with args.
11468 set dummy $ac_prog; ac_word=$2
11469 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11470 $as_echo_n "checking for $ac_word... " >&6; }
11471 if test "${ac_cv_prog_GUILE+set}" = set; then
11472 $as_echo_n "(cached) " >&6
11474 if test -n "$GUILE"; then
11475 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
11477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478 for as_dir in $PATH
11481 test -z "$as_dir" && as_dir=.
11482 for ac_exec_ext in '' $ac_executable_extensions; do
11483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11484 ac_cv_prog_GUILE="$ac_prog"
11485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11494 GUILE=$ac_cv_prog_GUILE
11495 if test -n "$GUILE"; then
11496 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11497 $as_echo "$GUILE" >&6; }
11499 { $as_echo "$as_me:$LINENO: result: no" >&5
11500 $as_echo "no" >&6; }
11504 test -n "$GUILE" && break
11506 test -n "$GUILE" || GUILE="no"
11510 r="`eval echo '$'"GUILE"`"
11511 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
11514 ##STEPMAKE_WARN(cannot find . )
11518 if test $? -ne 0; then
11520 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile\"`\"
11522 if test "OPTIONAL" = "REQUIRED"; then
11523 command="echo ERROR: guile not found"
11524 # abort configure process here?
11526 command="- echo guile not found"
11528 eval "GUILE"='$command'
11534 if test $? -eq 0; then
11535 # Extract the first word of "guile", so it can be a program name with args.
11536 set dummy guile; ac_word=$2
11537 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11538 $as_echo_n "checking for $ac_word... " >&6; }
11539 if test "${ac_cv_path_GUILE+set}" = set; then
11540 $as_echo_n "(cached) " >&6
11544 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11551 test -z "$as_dir" && as_dir=.
11552 for ac_exec_ext in '' $ac_executable_extensions; do
11553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11554 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 GUILE=$ac_cv_path_GUILE
11566 if test -n "$GUILE"; then
11567 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
11568 $as_echo "$GUILE" >&6; }
11570 { $as_echo "$as_me:$LINENO: result: no" >&5
11571 $as_echo "no" >&6; }
11575 if test -n ""; then
11577 r="`eval echo '$'"GUILE"`"
11578 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11579 $as_echo_n "checking $r version... " >&6; }
11581 ## which doesn't work in ash, if /usr/bin/which isn't installed
11582 ## type -p doesn't work in ash
11583 ## command -v doesn't work in zsh
11584 ## command -v "$r" 2>&1
11585 ## this test should work in ash, bash, pdksh (ksh), zsh
11586 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11588 if test -n ""; then
11592 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11595 ## Workaround for broken Debian gcc version string:
11596 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11598 ## -V: Workaround for python
11602 ## Assume and hunt for dotted version multiplet.
11603 ## use eval trickery, because we cannot use multi-level $() instead of ``
11604 ## for compatibility reasons.
11606 ## grab the first version number in --version output.
11607 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11608 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11611 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11612 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11615 if test -z "$_ver"; then
11616 ## If empty, try date [fontforge]
11617 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11619 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11626 echo "$ver" | awk -F. '
11628 if ($3) {three = $3}
11631 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11634 echo "" | awk -F. '
11636 if ($3) {three = $3}
11639 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11641 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11642 $as_echo "$ver" >&6; }
11643 if test "$num" -lt "$req"; then
11645 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
11648 vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
11649 eval `echo $vervar=$num`
11650 ## AC_SUBST(`eval echo $vervar`)
11657 # perl for help2man.
11660 for ac_prog in perl
11662 # Extract the first word of "$ac_prog", so it can be a program name with args.
11663 set dummy $ac_prog; ac_word=$2
11664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11665 $as_echo_n "checking for $ac_word... " >&6; }
11666 if test "${ac_cv_prog_PERL+set}" = set; then
11667 $as_echo_n "(cached) " >&6
11669 if test -n "$PERL"; then
11670 ac_cv_prog_PERL="$PERL" # Let the user override the test.
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673 for as_dir in $PATH
11676 test -z "$as_dir" && as_dir=.
11677 for ac_exec_ext in '' $ac_executable_extensions; do
11678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11679 ac_cv_prog_PERL="$ac_prog"
11680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11689 PERL=$ac_cv_prog_PERL
11690 if test -n "$PERL"; then
11691 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11692 $as_echo "$PERL" >&6; }
11694 { $as_echo "$as_me:$LINENO: result: no" >&5
11695 $as_echo "no" >&6; }
11699 test -n "$PERL" && break
11701 test -n "$PERL" || PERL="no"
11705 r="`eval echo '$'"PERL"`"
11706 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
11709 ##STEPMAKE_WARN(cannot find . )
11713 if test $? -ne 0; then
11715 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\"
11717 if test "OPTIONAL" = "REQUIRED"; then
11718 command="echo ERROR: perl not found"
11719 # abort configure process here?
11721 command="- echo perl not found"
11723 eval "PERL"='$command'
11729 if test $? -eq 0; then
11730 # Extract the first word of "perl", so it can be a program name with args.
11731 set dummy perl; ac_word=$2
11732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11733 $as_echo_n "checking for $ac_word... " >&6; }
11734 if test "${ac_cv_path_PERL+set}" = set; then
11735 $as_echo_n "(cached) " >&6
11739 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11746 test -z "$as_dir" && as_dir=.
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11749 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 PERL=$ac_cv_path_PERL
11761 if test -n "$PERL"; then
11762 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
11763 $as_echo "$PERL" >&6; }
11765 { $as_echo "$as_me:$LINENO: result: no" >&5
11766 $as_echo "no" >&6; }
11770 if test -n ""; then
11772 r="`eval echo '$'"PERL"`"
11773 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11774 $as_echo_n "checking $r version... " >&6; }
11776 ## which doesn't work in ash, if /usr/bin/which isn't installed
11777 ## type -p doesn't work in ash
11778 ## command -v doesn't work in zsh
11779 ## command -v "$r" 2>&1
11780 ## this test should work in ash, bash, pdksh (ksh), zsh
11781 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11783 if test -n ""; then
11787 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11790 ## Workaround for broken Debian gcc version string:
11791 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11793 ## -V: Workaround for python
11797 ## Assume and hunt for dotted version multiplet.
11798 ## use eval trickery, because we cannot use multi-level $() instead of ``
11799 ## for compatibility reasons.
11801 ## grab the first version number in --version output.
11802 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11803 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11806 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11807 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11810 if test -z "$_ver"; then
11811 ## If empty, try date [fontforge]
11812 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11814 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11821 echo "$ver" | awk -F. '
11823 if ($3) {three = $3}
11826 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11829 echo "" | awk -F. '
11831 if ($3) {three = $3}
11834 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11836 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11837 $as_echo "$ver" >&6; }
11838 if test "$num" -lt "$req"; then
11840 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
11843 vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
11844 eval `echo $vervar=$num`
11845 ## AC_SUBST(`eval echo $vervar`)
11853 for ac_prog in makeinfo
11855 # Extract the first word of "$ac_prog", so it can be a program name with args.
11856 set dummy $ac_prog; ac_word=$2
11857 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11860 $as_echo_n "(cached) " >&6
11862 if test -n "$MAKEINFO"; then
11863 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872 ac_cv_prog_MAKEINFO="$ac_prog"
11873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 MAKEINFO=$ac_cv_prog_MAKEINFO
11883 if test -n "$MAKEINFO"; then
11884 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11885 $as_echo "$MAKEINFO" >&6; }
11887 { $as_echo "$as_me:$LINENO: result: no" >&5
11888 $as_echo "no" >&6; }
11892 test -n "$MAKEINFO" && break
11894 test -n "$MAKEINFO" || MAKEINFO="no"
11898 r="`eval echo '$'"MAKEINFO"`"
11899 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
11902 ##STEPMAKE_WARN(cannot find . )
11906 if test $? -ne 0; then
11908 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
11910 if test "REQUIRED" = "REQUIRED"; then
11911 command="echo ERROR: makeinfo not found"
11912 # abort configure process here?
11914 command="- echo makeinfo not found"
11916 eval "MAKEINFO"='$command'
11922 if test $? -eq 0 -a -n "4.11"; then
11924 r="`eval echo '$'"MAKEINFO"`"
11925 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11926 $as_echo_n "checking $r version... " >&6; }
11928 ## which doesn't work in ash, if /usr/bin/which isn't installed
11929 ## type -p doesn't work in ash
11930 ## command -v doesn't work in zsh
11931 ## command -v "$r" 2>&1
11932 ## this test should work in ash, bash, pdksh (ksh), zsh
11933 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11935 if test -n ""; then
11939 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11942 ## Workaround for broken Debian gcc version string:
11943 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11945 ## -V: Workaround for python
11949 ## Assume and hunt for dotted version multiplet.
11950 ## use eval trickery, because we cannot use multi-level $() instead of ``
11951 ## for compatibility reasons.
11953 ## grab the first version number in --version output.
11954 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11955 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11958 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11959 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11962 if test -z "$_ver"; then
11963 ## If empty, try date [fontforge]
11964 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
11966 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11973 echo "$ver" | awk -F. '
11975 if ($3) {three = $3}
11978 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11981 echo "4.11" | awk -F. '
11983 if ($3) {three = $3}
11986 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11988 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11989 $as_echo "$ver" >&6; }
11990 if test "$num" -lt "$req"; then
11992 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
11995 vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
11996 eval `echo $vervar=$num`
11997 ## AC_SUBST(`eval echo $vervar`)
12002 for ac_prog in texi2html
12004 # Extract the first word of "$ac_prog", so it can be a program name with args.
12005 set dummy $ac_prog; ac_word=$2
12006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12007 $as_echo_n "checking for $ac_word... " >&6; }
12008 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
12009 $as_echo_n "(cached) " >&6
12011 if test -n "$TEXI2HTML"; then
12012 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
12014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12015 for as_dir in $PATH
12018 test -z "$as_dir" && as_dir=.
12019 for ac_exec_ext in '' $ac_executable_extensions; do
12020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12021 ac_cv_prog_TEXI2HTML="$ac_prog"
12022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12031 TEXI2HTML=$ac_cv_prog_TEXI2HTML
12032 if test -n "$TEXI2HTML"; then
12033 { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
12034 $as_echo "$TEXI2HTML" >&6; }
12036 { $as_echo "$as_me:$LINENO: result: no" >&5
12037 $as_echo "no" >&6; }
12041 test -n "$TEXI2HTML" && break
12043 test -n "$TEXI2HTML" || TEXI2HTML="no"
12047 r="`eval echo '$'"TEXI2HTML"`"
12048 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
12051 ##STEPMAKE_WARN(cannot find . )
12055 if test $? -ne 0; then
12057 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"texi2html\"`\"
12059 if test "OPTIONAL" = "REQUIRED"; then
12060 command="echo ERROR: texi2html not found"
12061 # abort configure process here?
12063 command="- echo texi2html not found"
12065 eval "TEXI2HTML"='$command'
12071 if test $? -eq 0 -a -n "1.82"; then
12073 r="`eval echo '$'"TEXI2HTML"`"
12074 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12075 $as_echo_n "checking $r version... " >&6; }
12077 ## which doesn't work in ash, if /usr/bin/which isn't installed
12078 ## type -p doesn't work in ash
12079 ## command -v doesn't work in zsh
12080 ## command -v "$r" 2>&1
12081 ## this test should work in ash, bash, pdksh (ksh), zsh
12082 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12084 if test -n ""; then
12088 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12091 ## Workaround for broken Debian gcc version string:
12092 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12094 ## -V: Workaround for python
12098 ## Assume and hunt for dotted version multiplet.
12099 ## use eval trickery, because we cannot use multi-level $() instead of ``
12100 ## for compatibility reasons.
12102 ## grab the first version number in --version output.
12103 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12104 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12107 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12108 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12111 if test -z "$_ver"; then
12112 ## If empty, try date [fontforge]
12113 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12115 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12122 echo "$ver" | awk -F. '
12124 if ($3) {three = $3}
12127 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12130 echo "1.82" | awk -F. '
12132 if ($3) {three = $3}
12135 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12137 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12138 $as_echo "$ver" >&6; }
12139 if test "$num" -lt "$req"; then
12141 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 1.82 (installed: $ver)"\"`\"
12144 vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
12145 eval `echo $vervar=$num`
12146 ## AC_SUBST(`eval echo $vervar`)
12151 for ac_prog in dblatex
12153 # Extract the first word of "$ac_prog", so it can be a program name with args.
12154 set dummy $ac_prog; ac_word=$2
12155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12156 $as_echo_n "checking for $ac_word... " >&6; }
12157 if test "${ac_cv_prog_DBLATEX+set}" = set; then
12158 $as_echo_n "(cached) " >&6
12160 if test -n "$DBLATEX"; then
12161 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 for as_dir in $PATH
12167 test -z "$as_dir" && as_dir=.
12168 for ac_exec_ext in '' $ac_executable_extensions; do
12169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12170 ac_cv_prog_DBLATEX="$ac_prog"
12171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12180 DBLATEX=$ac_cv_prog_DBLATEX
12181 if test -n "$DBLATEX"; then
12182 { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
12183 $as_echo "$DBLATEX" >&6; }
12185 { $as_echo "$as_me:$LINENO: result: no" >&5
12186 $as_echo "no" >&6; }
12190 test -n "$DBLATEX" && break
12192 test -n "$DBLATEX" || DBLATEX="no"
12196 r="`eval echo '$'"DBLATEX"`"
12197 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
12200 ##STEPMAKE_WARN(cannot find . )
12204 if test $? -ne 0; then
12206 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"dblatex\"`\"
12208 if test "OPTIONAL" = "REQUIRED"; then
12209 command="echo ERROR: dblatex not found"
12210 # abort configure process here?
12212 command="- echo dblatex not found"
12214 eval "DBLATEX"='$command'
12220 if test $? -eq 0 -a -n ""; then
12222 r="`eval echo '$'"DBLATEX"`"
12223 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12224 $as_echo_n "checking $r version... " >&6; }
12226 ## which doesn't work in ash, if /usr/bin/which isn't installed
12227 ## type -p doesn't work in ash
12228 ## command -v doesn't work in zsh
12229 ## command -v "$r" 2>&1
12230 ## this test should work in ash, bash, pdksh (ksh), zsh
12231 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12233 if test -n ""; then
12237 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12240 ## Workaround for broken Debian gcc version string:
12241 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12243 ## -V: Workaround for python
12247 ## Assume and hunt for dotted version multiplet.
12248 ## use eval trickery, because we cannot use multi-level $() instead of ``
12249 ## for compatibility reasons.
12251 ## grab the first version number in --version output.
12252 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12253 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12256 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12257 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12260 if test -z "$_ver"; then
12261 ## If empty, try date [fontforge]
12262 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12264 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12271 echo "$ver" | awk -F. '
12273 if ($3) {three = $3}
12276 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12279 echo "" | awk -F. '
12281 if ($3) {three = $3}
12284 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12286 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12287 $as_echo "$ver" >&6; }
12288 if test "$num" -lt "$req"; then
12290 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
12293 vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
12294 eval `echo $vervar=$num`
12295 ## AC_SUBST(`eval echo $vervar`)
12300 for ac_prog in pdflatex
12302 # Extract the first word of "$ac_prog", so it can be a program name with args.
12303 set dummy $ac_prog; ac_word=$2
12304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12305 $as_echo_n "checking for $ac_word... " >&6; }
12306 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
12307 $as_echo_n "(cached) " >&6
12309 if test -n "$PDFLATEX"; then
12310 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12319 ac_cv_prog_PDFLATEX="$ac_prog"
12320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12329 PDFLATEX=$ac_cv_prog_PDFLATEX
12330 if test -n "$PDFLATEX"; then
12331 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
12332 $as_echo "$PDFLATEX" >&6; }
12334 { $as_echo "$as_me:$LINENO: result: no" >&5
12335 $as_echo "no" >&6; }
12339 test -n "$PDFLATEX" && break
12341 test -n "$PDFLATEX" || PDFLATEX="no"
12345 r="`eval echo '$'"PDFLATEX"`"
12346 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
12349 ##STEPMAKE_WARN(cannot find . )
12353 if test $? -ne 0; then
12355 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pdflatex\"`\"
12357 if test "OPTIONAL" = "REQUIRED"; then
12358 command="echo ERROR: pdflatex not found"
12359 # abort configure process here?
12361 command="- echo pdflatex not found"
12363 eval "PDFLATEX"='$command'
12369 if test $? -eq 0 -a -n ""; then
12371 r="`eval echo '$'"PDFLATEX"`"
12372 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12373 $as_echo_n "checking $r version... " >&6; }
12375 ## which doesn't work in ash, if /usr/bin/which isn't installed
12376 ## type -p doesn't work in ash
12377 ## command -v doesn't work in zsh
12378 ## command -v "$r" 2>&1
12379 ## this test should work in ash, bash, pdksh (ksh), zsh
12380 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12382 if test -n ""; then
12386 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12389 ## Workaround for broken Debian gcc version string:
12390 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12392 ## -V: Workaround for python
12396 ## Assume and hunt for dotted version multiplet.
12397 ## use eval trickery, because we cannot use multi-level $() instead of ``
12398 ## for compatibility reasons.
12400 ## grab the first version number in --version output.
12401 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12402 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12405 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12406 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12409 if test -z "$_ver"; then
12410 ## If empty, try date [fontforge]
12411 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12413 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12420 echo "$ver" | awk -F. '
12422 if ($3) {three = $3}
12425 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12428 echo "" | awk -F. '
12430 if ($3) {three = $3}
12433 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12435 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12436 $as_echo "$ver" >&6; }
12437 if test "$num" -lt "$req"; then
12439 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
12442 vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
12443 eval `echo $vervar=$num`
12444 ## AC_SUBST(`eval echo $vervar`)
12449 for ac_prog in pngtopnm
12451 # Extract the first word of "$ac_prog", so it can be a program name with args.
12452 set dummy $ac_prog; ac_word=$2
12453 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12454 $as_echo_n "checking for $ac_word... " >&6; }
12455 if test "${ac_cv_prog_NETPBM+set}" = set; then
12456 $as_echo_n "(cached) " >&6
12458 if test -n "$NETPBM"; then
12459 ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
12461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462 for as_dir in $PATH
12465 test -z "$as_dir" && as_dir=.
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12468 ac_cv_prog_NETPBM="$ac_prog"
12469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12478 NETPBM=$ac_cv_prog_NETPBM
12479 if test -n "$NETPBM"; then
12480 { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
12481 $as_echo "$NETPBM" >&6; }
12483 { $as_echo "$as_me:$LINENO: result: no" >&5
12484 $as_echo "no" >&6; }
12488 test -n "$NETPBM" && break
12490 test -n "$NETPBM" || NETPBM="no"
12494 r="`eval echo '$'"NETPBM"`"
12495 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
12498 ##STEPMAKE_WARN(cannot find . )
12502 if test $? -ne 0; then
12504 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pngtopnm\"`\"
12506 if test "OPTIONAL" = "REQUIRED"; then
12507 command="echo ERROR: pngtopnm not found"
12508 # abort configure process here?
12510 command="- echo pngtopnm not found"
12512 eval "NETPBM"='$command'
12518 if test $? -eq 0 -a -n ""; then
12520 r="`eval echo '$'"NETPBM"`"
12521 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12522 $as_echo_n "checking $r version... " >&6; }
12524 ## which doesn't work in ash, if /usr/bin/which isn't installed
12525 ## type -p doesn't work in ash
12526 ## command -v doesn't work in zsh
12527 ## command -v "$r" 2>&1
12528 ## this test should work in ash, bash, pdksh (ksh), zsh
12529 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12531 if test -n ""; then
12535 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12538 ## Workaround for broken Debian gcc version string:
12539 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12541 ## -V: Workaround for python
12545 ## Assume and hunt for dotted version multiplet.
12546 ## use eval trickery, because we cannot use multi-level $() instead of ``
12547 ## for compatibility reasons.
12549 ## grab the first version number in --version output.
12550 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12551 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12554 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12555 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12558 if test -z "$_ver"; then
12559 ## If empty, try date [fontforge]
12560 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12562 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12569 echo "$ver" | awk -F. '
12571 if ($3) {three = $3}
12574 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12577 echo "" | awk -F. '
12579 if ($3) {three = $3}
12582 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12584 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12585 $as_echo "$ver" >&6; }
12586 if test "$num" -lt "$req"; then
12588 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
12591 vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
12592 eval `echo $vervar=$num`
12593 ## AC_SUBST(`eval echo $vervar`)
12598 for ac_prog in convert
12600 # Extract the first word of "$ac_prog", so it can be a program name with args.
12601 set dummy $ac_prog; ac_word=$2
12602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
12605 $as_echo_n "(cached) " >&6
12607 if test -n "$IMAGEMAGICK"; then
12608 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12614 test -z "$as_dir" && as_dir=.
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12617 ac_cv_prog_IMAGEMAGICK="$ac_prog"
12618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12627 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
12628 if test -n "$IMAGEMAGICK"; then
12629 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
12630 $as_echo "$IMAGEMAGICK" >&6; }
12632 { $as_echo "$as_me:$LINENO: result: no" >&5
12633 $as_echo "no" >&6; }
12637 test -n "$IMAGEMAGICK" && break
12639 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
12643 r="`eval echo '$'"IMAGEMAGICK"`"
12644 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
12647 ##STEPMAKE_WARN(cannot find . )
12651 if test $? -ne 0; then
12653 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"convert\"`\"
12655 if test "OPTIONAL" = "REQUIRED"; then
12656 command="echo ERROR: convert not found"
12657 # abort configure process here?
12659 command="- echo convert not found"
12661 eval "IMAGEMAGICK"='$command'
12667 if test $? -eq 0 -a -n ""; then
12669 r="`eval echo '$'"IMAGEMAGICK"`"
12670 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12671 $as_echo_n "checking $r version... " >&6; }
12673 ## which doesn't work in ash, if /usr/bin/which isn't installed
12674 ## type -p doesn't work in ash
12675 ## command -v doesn't work in zsh
12676 ## command -v "$r" 2>&1
12677 ## this test should work in ash, bash, pdksh (ksh), zsh
12678 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12680 if test -n ""; then
12684 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12687 ## Workaround for broken Debian gcc version string:
12688 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12690 ## -V: Workaround for python
12694 ## Assume and hunt for dotted version multiplet.
12695 ## use eval trickery, because we cannot use multi-level $() instead of ``
12696 ## for compatibility reasons.
12698 ## grab the first version number in --version output.
12699 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12700 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12703 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12704 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12707 if test -z "$_ver"; then
12708 ## If empty, try date [fontforge]
12709 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12711 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12718 echo "$ver" | awk -F. '
12720 if ($3) {three = $3}
12723 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12726 echo "" | awk -F. '
12728 if ($3) {three = $3}
12731 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12733 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12734 $as_echo "$ver" >&6; }
12735 if test "$num" -lt "$req"; then
12737 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
12740 vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
12741 eval `echo $vervar=$num`
12742 ## AC_SUBST(`eval echo $vervar`)
12746 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
12750 # Extract the first word of "$ac_prog", so it can be a program name with args.
12751 set dummy $ac_prog; ac_word=$2
12752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
12755 $as_echo_n "(cached) " >&6
12757 if test -n "$ZIPDOC"; then
12758 ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
12760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12761 for as_dir in $PATH
12764 test -z "$as_dir" && as_dir=.
12765 for ac_exec_ext in '' $ac_executable_extensions; do
12766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767 ac_cv_prog_ZIPDOC="$ac_prog"
12768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12777 ZIPDOC=$ac_cv_prog_ZIPDOC
12778 if test -n "$ZIPDOC"; then
12779 { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
12780 $as_echo "$ZIPDOC" >&6; }
12782 { $as_echo "$as_me:$LINENO: result: no" >&5
12783 $as_echo "no" >&6; }
12787 test -n "$ZIPDOC" && break
12789 test -n "$ZIPDOC" || ZIPDOC="no"
12793 r="`eval echo '$'"ZIPDOC"`"
12794 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
12797 ##STEPMAKE_WARN(cannot find . )
12801 if test $? -ne 0; then
12803 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"zip\"`\"
12805 if test "OPTIONAL" = "REQUIRED"; then
12806 command="echo ERROR: zip not found"
12807 # abort configure process here?
12809 command="- echo zip not found"
12811 eval "ZIPDOC"='$command'
12817 if test $? -eq 0 -a -n ""; then
12819 r="`eval echo '$'"ZIPDOC"`"
12820 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12821 $as_echo_n "checking $r version... " >&6; }
12823 ## which doesn't work in ash, if /usr/bin/which isn't installed
12824 ## type -p doesn't work in ash
12825 ## command -v doesn't work in zsh
12826 ## command -v "$r" 2>&1
12827 ## this test should work in ash, bash, pdksh (ksh), zsh
12828 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12830 if test -n ""; then
12834 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12837 ## Workaround for broken Debian gcc version string:
12838 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12840 ## -V: Workaround for python
12844 ## Assume and hunt for dotted version multiplet.
12845 ## use eval trickery, because we cannot use multi-level $() instead of ``
12846 ## for compatibility reasons.
12848 ## grab the first version number in --version output.
12849 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12850 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12853 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12854 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12857 if test -z "$_ver"; then
12858 ## If empty, try date [fontforge]
12859 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
12861 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12868 echo "$ver" | awk -F. '
12870 if ($3) {three = $3}
12873 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12876 echo "" | awk -F. '
12878 if ($3) {three = $3}
12881 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12883 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12884 $as_echo "$ver" >&6; }
12885 if test "$num" -lt "$req"; then
12887 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
12890 vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
12891 eval `echo $vervar=$num`
12892 ## AC_SUBST(`eval echo $vervar`)
12897 for ac_prog in rsync
12899 # Extract the first word of "$ac_prog", so it can be a program name with args.
12900 set dummy $ac_prog; ac_word=$2
12901 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12902 $as_echo_n "checking for $ac_word... " >&6; }
12903 if test "${ac_cv_prog_RSYNC+set}" = set; then
12904 $as_echo_n "(cached) " >&6
12906 if test -n "$RSYNC"; then
12907 ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $PATH
12913 test -z "$as_dir" && as_dir=.
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12916 ac_cv_prog_RSYNC="$ac_prog"
12917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12926 RSYNC=$ac_cv_prog_RSYNC
12927 if test -n "$RSYNC"; then
12928 { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
12929 $as_echo "$RSYNC" >&6; }
12931 { $as_echo "$as_me:$LINENO: result: no" >&5
12932 $as_echo "no" >&6; }
12936 test -n "$RSYNC" && break
12938 test -n "$RSYNC" || RSYNC="no"
12942 r="`eval echo '$'"RSYNC"`"
12943 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
12946 ##STEPMAKE_WARN(cannot find . )
12950 if test $? -ne 0; then
12952 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"rsync\"`\"
12954 if test "OPTIONAL" = "REQUIRED"; then
12955 command="echo ERROR: rsync not found"
12956 # abort configure process here?
12958 command="- echo rsync not found"
12960 eval "RSYNC"='$command'
12966 if test $? -eq 0 -a -n ""; then
12968 r="`eval echo '$'"RSYNC"`"
12969 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12970 $as_echo_n "checking $r version... " >&6; }
12972 ## which doesn't work in ash, if /usr/bin/which isn't installed
12973 ## type -p doesn't work in ash
12974 ## command -v doesn't work in zsh
12975 ## command -v "$r" 2>&1
12976 ## this test should work in ash, bash, pdksh (ksh), zsh
12977 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12979 if test -n ""; then
12983 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12986 ## Workaround for broken Debian gcc version string:
12987 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12989 ## -V: Workaround for python
12993 ## Assume and hunt for dotted version multiplet.
12994 ## use eval trickery, because we cannot use multi-level $() instead of ``
12995 ## for compatibility reasons.
12997 ## grab the first version number in --version output.
12998 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12999 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13002 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13003 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13006 if test -z "$_ver"; then
13007 ## If empty, try date [fontforge]
13008 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 | grep '[0-9]\{6,8\}' \
13010 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13017 echo "$ver" | awk -F. '
13019 if ($3) {three = $3}
13022 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13025 echo "" | awk -F. '
13027 if ($3) {three = $3}
13030 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13032 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13033 $as_echo "$ver" >&6; }
13034 if test "$num" -lt "$req"; then
13036 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13039 vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
13040 eval `echo $vervar=$num`
13041 ## AC_SUBST(`eval echo $vervar`)
13047 cat >>confdefs.h <<_ACEOF
13048 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
13052 # must also have local.make if configure fails.
13055 if test "$reloc_b$rpath_b" = "yesno"; then
13057 { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&5
13058 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&2;}
13063 # Gather requirements and generate output.
13066 # undo expanding of explicit --infodir=/usr/share
13067 # to ease install-time override with prefix=...
13068 strip=`echo $includedir | eval sed s@^$prefix@@`
13069 if test "$includedir" = "`eval echo $prefix$strip`"; then
13070 includedir='${prefix}'$strip''
13072 strip=`echo $libdir | eval sed s@^$exec_prefix@@`
13073 if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
13074 libdir='${exec_prefix}'$strip''
13076 strip=`echo $infodir | eval sed s@^$datarootdir@@`
13077 if test "$infodir" = "`eval echo $datarootdir$strip`"; then
13078 infodir='${datarootdir}'$strip''
13080 strip=`echo $mandir | eval sed s@^$datarootdir@@`
13081 if test "$mandir" = "`eval echo $datarootdir$strip`"; then
13082 mandir='${datarootdir}'$strip''
13089 ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
13091 cat >confcache <<\_ACEOF
13092 # This file is a shell script that caches the results of configure
13093 # tests run on this system so they can be shared between configure
13094 # scripts and configure runs, see configure's option --config-cache.
13095 # It is not useful on other systems. If it contains results you don't
13096 # want to keep, you may remove or edit it.
13098 # config.status only pays attention to the cache file if you give it
13099 # the --recheck option to rerun configure.
13101 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13102 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13103 # following values.
13107 # The following way of writing the cache mishandles newlines in values,
13108 # but we know of no workaround that is simple, portable, and efficient.
13109 # So, we kill variables containing newlines.
13110 # Ultrix sh set writes to stderr and can't be redirected directly,
13111 # and sets the high bit in the cache file unless we assign to the vars.
13113 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13114 eval ac_val=\$$ac_var
13118 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13119 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13122 _ | IFS | as_nl) ;; #(
13123 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13124 *) $as_unset $ac_var ;;
13130 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13131 *${as_nl}ac_space=\ *)
13132 # `set' does not quote correctly, so add quotes (double-quote
13133 # substitution turns \\\\ into \\, and sed turns \\ into \).
13136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13139 # `set' quotes correctly as required by POSIX, so do not add quotes.
13140 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13151 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13153 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13154 if test -w "$cache_file"; then
13155 test "x$cache_file" != "x/dev/null" &&
13156 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13157 $as_echo "$as_me: updating cache $cache_file" >&6;}
13158 cat confcache >$cache_file
13160 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13161 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13166 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13167 # Let make expand exec_prefix.
13168 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13170 DEFS=-DHAVE_CONFIG_H
13174 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13175 # 1. Remove the extension, and $U if already installed.
13176 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13177 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13178 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13179 # will be set to the directory where LIBOBJS objects are built.
13180 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13181 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13183 LIBOBJS=$ac_libobjs
13185 LTLIBOBJS=$ac_ltlibobjs
13189 : ${CONFIG_STATUS=./config.status}
13191 ac_clean_files_save=$ac_clean_files
13192 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13193 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13194 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13195 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13197 # Generated by $as_me.
13198 # Run this file to recreate the current configuration.
13199 # Compiler output produced by configure, useful for debugging
13200 # configure, is in config.log if it exists.
13203 ac_cs_recheck=false
13205 SHELL=\${CONFIG_SHELL-$SHELL}
13208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13209 ## --------------------- ##
13210 ## M4sh Initialization. ##
13211 ## --------------------- ##
13213 # Be more Bourne compatible
13214 DUALCASE=1; export DUALCASE # for MKS sh
13215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13218 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13219 # is contrary to our usage. Disable this feature.
13220 alias -g '${1+"$@"}'='"$@"'
13221 setopt NO_GLOB_SUBST
13223 case `(set -o) 2>/dev/null` in
13224 *posix*) set -o posix ;;
13233 # Avoid depending upon Character Ranges.
13234 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13235 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13236 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13237 as_cr_digits='0123456789'
13238 as_cr_alnum=$as_cr_Letters$as_cr_digits
13243 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13244 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13247 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13248 as_echo='printf %s\n'
13249 as_echo_n='printf %s'
13251 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13252 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13253 as_echo_n='/usr/ucb/echo -n'
13255 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13256 as_echo_n_body='eval
13260 expr "X$arg" : "X\\(.*\\)$as_nl";
13261 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13263 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13265 export as_echo_n_body
13266 as_echo_n='sh -c $as_echo_n_body as_echo'
13268 export as_echo_body
13269 as_echo='sh -c $as_echo_body as_echo'
13272 # The user is always right.
13273 if test "${PATH_SEPARATOR+set}" != set; then
13275 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13276 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13281 # Support unset when possible.
13282 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13290 # We need space, tab and new line, in precisely that order. Quoting is
13291 # there to prevent editors from complaining about space-tab.
13292 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13293 # splitting by setting IFS to empty value.)
13296 # Find who we are. Look in the path if we contain no directory separator.
13298 *[\\/]* ) as_myself=$0 ;;
13299 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300 for as_dir in $PATH
13303 test -z "$as_dir" && as_dir=.
13304 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13310 # We did not find ourselves, most probably we were run as `sh COMMAND'
13311 # in which case we are not to be found in the path.
13312 if test "x$as_myself" = x; then
13315 if test ! -f "$as_myself"; then
13316 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13317 { (exit 1); exit 1; }
13320 # Work around bugs in pre-3.0 UWIN ksh.
13321 for as_var in ENV MAIL MAILPATH
13322 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13334 # Required to use basename.
13335 if expr a : '\(a\)' >/dev/null 2>&1 &&
13336 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13342 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13343 as_basename=basename
13349 # Name of the executable.
13350 as_me=`$as_basename -- "$0" ||
13351 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13352 X"$0" : 'X\(//\)$' \| \
13353 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13355 sed '/^.*\/\([^/][^/]*\)\/*$/{
13374 as_lineno_1=$LINENO
13375 as_lineno_2=$LINENO
13376 test "x$as_lineno_1" != "x$as_lineno_2" &&
13377 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13379 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13380 # uniformly replaced by the line number. The first 'sed' inserts a
13381 # line-number line after each line using $LINENO; the second 'sed'
13382 # does the real work. The second script uses 'N' to pair each
13383 # line-number line with the line containing $LINENO, and appends
13384 # trailing '-' during substitution so that $LINENO is not a special
13385 # case at line end.
13386 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13387 # scripts with optimization help from Paolo Bonzini. Blame Lee
13388 # E. McMahon (1931-1989) for sed's syntax. :-)
13400 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13403 ' >$as_me.lineno &&
13404 chmod +x "$as_me.lineno" ||
13405 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13406 { (exit 1); exit 1; }; }
13408 # Don't try to exec as it changes $[0], causing all sort of problems
13409 # (the dirname of $[0] is not the place where we might find the
13410 # original and so on. Autoconf is especially sensitive to this).
13411 . "./$as_me.lineno"
13412 # Exit status is that of the last command.
13417 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13423 ECHO_C= ECHO_N= ECHO_T=
13424 case `echo -n x` in
13426 case `echo 'x\c'` in
13427 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13433 if expr a : '\(a\)' >/dev/null 2>&1 &&
13434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13440 rm -f conf$$ conf$$.exe conf$$.file
13441 if test -d conf$$.dir; then
13442 rm -f conf$$.dir/conf$$.file
13445 mkdir conf$$.dir 2>/dev/null
13447 if (echo >conf$$.file) 2>/dev/null; then
13448 if ln -s conf$$.file conf$$ 2>/dev/null; then
13450 # ... but there are two gotchas:
13451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13453 # In both cases, we have to default to `cp -p'.
13454 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13456 elif ln conf$$.file conf$$ 2>/dev/null; then
13464 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13465 rmdir conf$$.dir 2>/dev/null
13467 if mkdir -p . 2>/dev/null; then
13470 test -d ./-p && rmdir ./-p
13474 if test -x / >/dev/null 2>&1; then
13475 as_test_x='test -x'
13477 if ls -dL / >/dev/null 2>&1; then
13484 if test -d "$1"; then
13490 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13491 ???[sx]*):;;*)false;;esac;fi
13495 as_executable_p=$as_test_x
13497 # Sed expression to map a string onto a valid CPP name.
13498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13500 # Sed expression to map a string onto a valid variable name.
13501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13506 # Save the log message, to keep $[0] and so on meaningful, and to
13507 # report actual input values of CONFIG_FILES etc. instead of their
13508 # values after options handling.
13510 This file was extended by $as_me, which was
13511 generated by GNU Autoconf 2.63. Invocation command line was
13513 CONFIG_FILES = $CONFIG_FILES
13514 CONFIG_HEADERS = $CONFIG_HEADERS
13515 CONFIG_LINKS = $CONFIG_LINKS
13516 CONFIG_COMMANDS = $CONFIG_COMMANDS
13519 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13524 case $ac_config_files in *"
13525 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13528 case $ac_config_headers in *"
13529 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13534 # Files that config.status was made for.
13535 config_files="$ac_config_files"
13536 config_headers="$ac_config_headers"
13540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13542 \`$as_me' instantiates files from templates according to the
13543 current configuration.
13545 Usage: $0 [OPTION]... [FILE]...
13547 -h, --help print this help, then exit
13548 -V, --version print version number and configuration settings, then exit
13549 -q, --quiet, --silent
13550 do not print progress messages
13551 -d, --debug don't remove temporary files
13552 --recheck update $as_me by reconfiguring in the same conditions
13553 --file=FILE[:TEMPLATE]
13554 instantiate the configuration file FILE
13555 --header=FILE[:TEMPLATE]
13556 instantiate the configuration header FILE
13558 Configuration files:
13561 Configuration headers:
13564 Report bugs to <bug-autoconf@gnu.org>."
13567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13570 configured by $0, generated by GNU Autoconf 2.63,
13571 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13573 Copyright (C) 2008 Free Software Foundation, Inc.
13574 This config.status script is free software; the Free Software Foundation
13575 gives unlimited permission to copy, distribute and modify it."
13579 test -n "\$AWK" || AWK=awk
13582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13583 # The default lists apply if the user does not specify any file.
13589 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13590 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13601 # Handling of the options.
13602 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13604 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13605 $as_echo "$ac_cs_version"; exit ;;
13606 --debug | --debu | --deb | --de | --d | -d )
13608 --file | --fil | --fi | --f )
13611 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13613 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13614 ac_need_defaults=false;;
13615 --header | --heade | --head | --hea )
13618 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13620 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13621 ac_need_defaults=false;;
13623 # Conflict between --help and --header
13624 { $as_echo "$as_me: error: ambiguous option: $1
13625 Try \`$0 --help' for more information." >&2
13626 { (exit 1); exit 1; }; };;
13627 --help | --hel | -h )
13628 $as_echo "$ac_cs_usage"; exit ;;
13629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13630 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13633 # This is an error.
13634 -*) { $as_echo "$as_me: error: unrecognized option: $1
13635 Try \`$0 --help' for more information." >&2
13636 { (exit 1); exit 1; }; } ;;
13638 *) ac_config_targets="$ac_config_targets $1"
13639 ac_need_defaults=false ;;
13645 ac_configure_extra_args=
13647 if $ac_cs_silent; then
13649 ac_configure_extra_args="$ac_configure_extra_args --silent"
13653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13654 if \$ac_cs_recheck; then
13655 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13657 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13658 CONFIG_SHELL='$SHELL'
13659 export CONFIG_SHELL
13664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13669 ## Running $as_me. ##
13675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13680 # Handling of arguments.
13681 for ac_config_target in $ac_config_targets
13683 case $ac_config_target in
13684 "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
13685 "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
13687 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13688 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13689 { (exit 1); exit 1; }; };;
13694 # If the user did not use the arguments to specify the items to instantiate,
13695 # then the envvar interface is used. Set only those that are not.
13696 # We use the long form for the default assignment because of an extremely
13697 # bizarre bug on SunOS 4.1.3.
13698 if $ac_need_defaults; then
13699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13703 # Have a temporary directory for convenience. Make it in the build tree
13704 # simply because there is no reason against having it here, and in addition,
13705 # creating and moving files from /tmp can sometimes cause problems.
13706 # Hook for its removal unless debugging.
13707 # Note that there is a small window in which the directory will not be cleaned:
13708 # after its creation but before its name has been assigned to `$tmp'.
13712 trap 'exit_status=$?
13713 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13715 trap '{ (exit 1); exit 1; }' 1 2 13 15
13717 # Create a (secure) tmp directory for tmp files.
13720 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13721 test -n "$tmp" && test -d "$tmp"
13724 tmp=./conf$$-$RANDOM
13725 (umask 077 && mkdir "$tmp")
13728 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13729 { (exit 1); exit 1; }
13732 # Set up the scripts for CONFIG_FILES section.
13733 # No need to generate them if there are no CONFIG_FILES.
13734 # This happens for instance with `./config.status config.h'.
13735 if test -n "$CONFIG_FILES"; then
13739 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13740 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13743 ac_cs_awk_cr=$ac_cr
13746 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13751 echo "cat >conf$$subs.awk <<_ACEOF" &&
13752 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13754 } >conf$$subs.sh ||
13755 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13756 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13757 { (exit 1); exit 1; }; }
13758 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13760 for ac_last_try in false false false false false :; do
13761 . ./conf$$subs.sh ||
13762 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13763 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13764 { (exit 1); exit 1; }; }
13766 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13767 if test $ac_delim_n = $ac_delim_num; then
13769 elif $ac_last_try; then
13770 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13771 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13772 { (exit 1); exit 1; }; }
13774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13777 rm -f conf$$subs.sh
13779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13780 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13784 s/^/S["/; s/!.*/"]=/
13794 s/\(.\{148\}\).*/\1/
13796 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13801 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13808 s/\(.\{148\}\).*/\1/
13810 s/["\\]/\\&/g; s/^/"/; s/$/"/
13814 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13819 ' <conf$$subs.awk | sed '
13824 ' >>$CONFIG_STATUS || ac_write_fail=1
13825 rm -f conf$$subs.awk
13826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13828 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13829 for (key in S) S_is_set[key] = 1
13835 nfields = split(line, field, "@")
13837 len = length(field[1])
13838 for (i = 2; i < nfields; i++) {
13840 keylen = length(key)
13841 if (S_is_set[key]) {
13843 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13844 len += length(value) + length(field[++i])
13855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13856 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13857 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13860 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13861 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13862 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13863 { (exit 1); exit 1; }; }
13866 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13867 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13868 # trailing colons and then remove the whole line if VPATH becomes empty
13869 # (actually we leave an empty line to preserve line numbers).
13870 if test "x$srcdir" = x.; then
13871 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13872 s/:*\$(srcdir):*/:/
13873 s/:*\${srcdir}:*/:/
13875 s/^\([^=]*=[ ]*\):*/\1/
13881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13882 fi # test -n "$CONFIG_FILES"
13884 # Set up the scripts for CONFIG_HEADERS section.
13885 # No need to generate them if there are no CONFIG_HEADERS.
13886 # This happens for instance with `./config.status Makefile'.
13887 if test -n "$CONFIG_HEADERS"; then
13888 cat >"$tmp/defines.awk" <<\_ACAWK ||
13892 # Transform confdefs.h into an awk script `defines.awk', embedded as
13893 # here-document in config.status, that substitutes the proper values into
13894 # config.h.in to produce config.h.
13896 # Create a delimiter string that does not exist in confdefs.h, to ease
13897 # handling of long lines.
13899 for ac_last_try in false false :; do
13900 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13901 if test -z "$ac_t"; then
13903 elif $ac_last_try; then
13904 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
13905 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
13906 { (exit 1); exit 1; }; }
13908 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13912 # For the awk script, D is an array of macro values keyed by name,
13913 # likewise P contains macro parameters if any. Preserve backslash
13914 # newline sequences.
13916 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13918 s/.\{148\}/&'"$ac_delim"'/g
13921 s/^[ ]*#[ ]*define[ ][ ]*/ /
13928 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13930 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13934 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13935 D["\1"]=" \3\\\\\\n"\\/p
13937 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13942 s/.\{148\}/&'"$ac_delim"'/g
13947 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13950 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13952 ' <confdefs.h | sed '
13953 s/'"$ac_delim"'/"\\\
13954 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13957 for (key in D) D_is_set[key] = 1
13960 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13962 split(line, arg, " ")
13963 if (arg[1] == "#") {
13967 defundef = substr(arg[1], 2)
13970 split(mac1, mac2, "(") #)
13972 prefix = substr(line, 1, index(line, defundef) - 1)
13973 if (D_is_set[macro]) {
13974 # Preserve the white space surrounding the "#".
13975 print prefix "define", macro P[macro] D[macro]
13978 # Replace #undef with comments. This is necessary, for example,
13979 # in the case of _POSIX_SOURCE, which is predefined and required
13980 # on some systems where configure will not decide to define it.
13981 if (defundef == "undef") {
13982 print "/*", prefix defundef, macro, "*/"
13990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13991 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13992 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13993 { (exit 1); exit 1; }; }
13994 fi # test -n "$CONFIG_HEADERS"
13997 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
14002 :[FHLC]) ac_mode=$ac_tag; continue;;
14004 case $ac_mode$ac_tag in
14006 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14007 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14008 { (exit 1); exit 1; }; };;
14009 :[FH]-) ac_tag=-:-;;
14010 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14027 -) ac_f="$tmp/stdin";;
14028 *) # Look for the file first in the build tree, then in the source tree
14029 # (if the path is not absolute). The absolute path cannot be DOS-style,
14030 # because $ac_f cannot contain `:'.
14034 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14036 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14037 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14038 { (exit 1); exit 1; }; };;
14040 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14041 ac_file_inputs="$ac_file_inputs '$ac_f'"
14044 # Let's still pretend it is `configure' which instantiates (i.e., don't
14045 # use $as_me), people would be surprised to read:
14046 # /* config.h. Generated by config.status. */
14047 configure_input='Generated from '`
14048 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14050 if test x"$ac_file" != x-; then
14051 configure_input="$ac_file. $configure_input"
14052 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14053 $as_echo "$as_me: creating $ac_file" >&6;}
14055 # Neutralize special characters interpreted by sed in replacement strings.
14056 case $configure_input in #(
14057 *\&* | *\|* | *\\* )
14058 ac_sed_conf_input=`$as_echo "$configure_input" |
14059 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14060 *) ac_sed_conf_input=$configure_input;;
14064 *:-:* | *:-) cat >"$tmp/stdin" \
14065 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14066 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14067 { (exit 1); exit 1; }; } ;;
14072 ac_dir=`$as_dirname -- "$ac_file" ||
14073 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14074 X"$ac_file" : 'X\(//\)[^/]' \| \
14075 X"$ac_file" : 'X\(//\)$' \| \
14076 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14077 $as_echo X"$ac_file" |
14078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14082 /^X\(\/\/\)[^/].*/{
14097 -*) as_dir=./$as_dir;;
14099 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14103 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14104 *) as_qdir=$as_dir;;
14106 as_dirs="'$as_qdir' $as_dirs"
14107 as_dir=`$as_dirname -- "$as_dir" ||
14108 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14109 X"$as_dir" : 'X\(//\)[^/]' \| \
14110 X"$as_dir" : 'X\(//\)$' \| \
14111 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14112 $as_echo X"$as_dir" |
14113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14117 /^X\(\/\/\)[^/].*/{
14130 test -d "$as_dir" && break
14132 test -z "$as_dirs" || eval "mkdir $as_dirs"
14133 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14134 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14135 { (exit 1); exit 1; }; }; }
14139 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14141 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14142 # A ".." for each directory in $ac_dir_suffix.
14143 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14144 case $ac_top_builddir_sub in
14145 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14146 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14149 ac_abs_top_builddir=$ac_pwd
14150 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14151 # for backward compatibility:
14152 ac_top_builddir=$ac_top_build_prefix
14155 .) # We are building in place.
14157 ac_top_srcdir=$ac_top_builddir_sub
14158 ac_abs_top_srcdir=$ac_pwd ;;
14159 [\\/]* | ?:[\\/]* ) # Absolute name.
14160 ac_srcdir=$srcdir$ac_dir_suffix;
14161 ac_top_srcdir=$srcdir
14162 ac_abs_top_srcdir=$srcdir ;;
14163 *) # Relative name.
14164 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14165 ac_top_srcdir=$ac_top_build_prefix$srcdir
14166 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14168 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14180 # If the template does not know about datarootdir, expand it.
14181 # FIXME: This hack should be removed a few years after 2.60.
14182 ac_datarootdir_hack=; ac_datarootdir_seen=
14195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14196 *datarootdir*) ac_datarootdir_seen=yes;;
14197 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14198 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14202 ac_datarootdir_hack='
14203 s&@datadir@&$datadir&g
14204 s&@docdir@&$docdir&g
14205 s&@infodir@&$infodir&g
14206 s&@localedir@&$localedir&g
14207 s&@mandir@&$mandir&g
14208 s&\\\${datarootdir}&$datarootdir&g' ;;
14212 # Neutralize VPATH when `$srcdir' = `.'.
14213 # Shell code in configure.ac might set extrasub.
14214 # FIXME: do we really want to maintain this feature?
14215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14216 ac_sed_extra="$ac_vpsub
14219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14222 s|@configure_input@|$ac_sed_conf_input|;t t
14223 s&@top_builddir@&$ac_top_builddir_sub&;t t
14224 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14225 s&@srcdir@&$ac_srcdir&;t t
14226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14227 s&@top_srcdir@&$ac_top_srcdir&;t t
14228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14229 s&@builddir@&$ac_builddir&;t t
14230 s&@abs_builddir@&$ac_abs_builddir&;t t
14231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14232 $ac_datarootdir_hack
14234 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14235 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14236 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14237 { (exit 1); exit 1; }; }
14239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14240 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14241 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14242 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14243 which seems to be undefined. Please make sure it is defined." >&5
14244 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14245 which seems to be undefined. Please make sure it is defined." >&2;}
14249 -) cat "$tmp/out" && rm -f "$tmp/out";;
14250 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14252 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14253 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14254 { (exit 1); exit 1; }; }
14260 if test x"$ac_file" != x-; then
14262 $as_echo "/* $configure_input */" \
14263 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14264 } >"$tmp/config.h" \
14265 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14266 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14267 { (exit 1); exit 1; }; }
14268 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14269 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14270 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14273 mv "$tmp/config.h" "$ac_file" \
14274 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14275 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14276 { (exit 1); exit 1; }; }
14279 $as_echo "/* $configure_input */" \
14280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14281 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14282 $as_echo "$as_me: error: could not create -" >&2;}
14283 { (exit 1); exit 1; }; }
14293 { (exit 0); exit 0; }
14295 chmod +x $CONFIG_STATUS
14296 ac_clean_files=$ac_clean_files_save
14298 test $ac_write_fail = 0 ||
14299 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14300 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14301 { (exit 1); exit 1; }; }
14304 # configure is writing to config.log, and then calls config.status.
14305 # config.status does its own redirection, appending to config.log.
14306 # Unfortunately, on DOS this fails, as config.log is still kept open
14307 # by configure, so config.status won't be able to write to it; its
14308 # output is simply discarded. So we exec the FD to /dev/null,
14309 # effectively closing config.log, so it can be properly (re)opened and
14310 # appended to by config.status. When coming back to configure, we
14311 # need to make the FD available again.
14312 if test "$no_create" != yes; then
14314 ac_config_status_args=
14315 test "$silent" = yes &&
14316 ac_config_status_args="$ac_config_status_args --quiet"
14318 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14320 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14321 # would make configure fail if this is the last instruction.
14322 $ac_cs_success || { (exit 1); exit 1; }
14324 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14325 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14326 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14330 if test -n "$OPTIONAL"; then
14332 echo "WARNING: Please consider installing optional programs: $OPTIONAL"
14335 if test -n "$REQUIRED"; then
14337 echo "ERROR: Please install required programs: $REQUIRED"
14340 if test -n "$UNSUPPORTED"; then
14342 echo "ERROR: Please use older version of programs: $UNSUPPORTED"
14345 if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
14347 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
14348 if test -f config.cache ; then
14349 echo "Remove config.cache before rerunning ./configure"
14353 if test -n "$REQUIRED$UNSUPPORTED"; then
14354 rm -f $srcdir/GNUmakefile
14358 # regular in-place build
14359 # test for srcdir_build = yes ?
14360 if test "$srcdir_build" = "yes"; then
14361 rm -f $srcdir/GNUmakefile
14362 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
14363 chmod 444 $srcdir/GNUmakefile
14365 if test -f $srcdir/GNUmakefile; then
14367 Source directory already configured. Please clean the source directory
14369 make -C $srcdir distclean
14371 and rerun configure.
14376 for d in 2 3 4 ; do
14377 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
14378 mkdir -p $(dirname $mf)
14379 cat <<EOF | $PYTHON - > $mf
14380 print 'depth=' + ('../' * ( $d-1 ) )
14381 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
14382 print 'include \$(configure-srcdir)/$mf'
14383 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
14386 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
14387 mkdir -p $(dirname $mf)
14388 cat <<EOF | $PYTHON - > $mf
14389 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
14390 print 'include \$(configure-srcdir)/$mf'
14396 cat <<EOF > GNUmakefile
14398 include config\$(if \$(conf),-\$(conf),).make
14399 include \$(configure-srcdir)/GNUmakefile.in
14405 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
14407 if make top-doc 1>/dev/null 2>&1; then
14408 rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
14409 rm -f README.txt && ln Documentation/topdocs/out/README.txt .
14415 make$mc all to build LilyPond
14416 make$mc install to install LilyPond
14417 make$mc help to see all possible targets
14419 Edit local.make for local Makefile overrides.