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>
717 build_package_datadir
753 ugh_ugh_autoconf250_builddir
781 program_transform_name
793 enable_option_checking
812 ac_precious_vars='build_alias
828 # Initialize some variables set by options.
830 ac_init_version=false
831 ac_unrecognized_opts=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
842 program_transform_name=s,x,x,
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE}'
867 infodir='${datarootdir}/info'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 # Accept the important Cygnus configure options, so we can diagnose typos.
894 case $ac_dashdash$ac_option in
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
916 cache_file=config.cache ;;
918 -datadir | --datadir | --datadi | --datad)
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
935 { (exit 1); exit 1; }; }
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
945 eval enable_$ac_useropt=no ;;
947 -docdir | --docdir | --docdi | --doc | --do)
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
962 { (exit 1); exit 1; }; }
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
972 eval enable_$ac_useropt=\$ac_optarg ;;
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
987 -help | --help | --hel | --he | -h)
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 htmldir=$ac_optarg ;;
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1017 -libdir | --libdir | --libdi | --libd)
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1108 -psdir | --psdir | --psdi | --psd | --ps)
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1136 -site=* | --site=* | --sit=*)
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1167 { (exit 1); exit 1; }; }
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1177 eval with_$ac_useropt=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1194 eval with_$ac_useropt=no ;;
1197 # Obsolete; use --with-x.
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1215 Try \`$0 --help' for more information." >&2
1216 { (exit 1); exit 1; }; }
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1223 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1224 { (exit 1); exit 1; }; }
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1242 { (exit 1); exit 1; }; }
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1248 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1249 { (exit 1); exit 1; }; } ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1267 # Be sure to have absolute directory names.
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273 { (exit 1); exit 1; }; }
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1304 { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1307 { (exit 1); exit 1; }; }
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347 { (exit 1); exit 1; }; }
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1352 { (exit 1); exit 1; }; }
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures this package to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 if test -n "$ac_init_help"; then
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-config=CONF put settings in config-CONF.make and config-CONF.h;
1450 do `make conf=CONF' to get output in ./out-CONF
1451 --enable-documentation build Documentation. Default: on
1452 --enable-guile2 highly experimental GUILE 2 support. Default: off
1453 --enable-relocation compile with dynamic relocation. Default: off
1454 --enable-rpath hardcode runtime library path. Default: off
1455 --enable-static-gxx link libstdc++.a statically. Default: off
1456 --enable-debugging compile with debugging info. Default: on
1457 --enable-checking compile with expensive run-time checks. Default: off
1458 --enable-optimising compile with optimising. Default: on
1459 --enable-profiling compile with gprof support. Default: off
1460 --enable-pipe compile with -pipe. Default: on
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-texgyre-dir=DIR location of TeX Gyre fonts.
1466 --with-urwotf-dir=DIR location of URW++ OTF fonts.
1467 --with-localedir=DIR location of locales. Default: PREFIX/share/locale
1468 --with-lang=LANG use LANG as language to emit messages
1469 --with-python-include=DIR
1470 location of the python include dir
1471 --with-python-lib=NAME name of the python lib
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 LIBS libraries to pass to the linker, e.g. -l<library>
1479 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1480 you have headers in a nonstandard directory <include dir>
1481 CXX C++ compiler command
1482 CXXFLAGS C++ compiler flags
1483 CXXCPP C++ preprocessor
1484 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1485 the first program found out of: `bison -y', `byacc', `yacc'.
1486 YFLAGS The list of arguments that will be passed by default to $YACC.
1487 This script will default YFLAGS to the empty string to avoid a
1488 default value of `-d' given by some make applications.
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1522 .) # We are building in place.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1556 generated by GNU Autoconf 2.63
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1565 cat >config.log <<_ACEOF
1566 This file contains any messages produced by compilers while
1567 running configure, to aid debugging if configure makes a mistake.
1569 It was created by $as_me, which was
1570 generated by GNU Autoconf 2.63. Invocation command line was
1582 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1583 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1584 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1585 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1586 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1588 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1589 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1591 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1592 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1593 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1594 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1595 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1596 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1597 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605 test -z "$as_dir" && as_dir=.
1606 $as_echo "PATH: $as_dir"
1622 # Keep a trace of the command line.
1623 # Strip out --no-create and --no-recursion so they do not pile up.
1624 # Strip out --silent because we don't want to record it for future runs.
1625 # Also quote any args containing shell meta-characters.
1626 # Make two passes to allow for proper duplicate-argument suppression.
1630 ac_must_keep_next=false
1636 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1638 | -silent | --silent | --silen | --sile | --sil)
1641 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1646 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1647 if test $ac_must_keep_next = true; then
1648 ac_must_keep_next=false # Got value, back to normal.
1651 *=* | --config-cache | -C | -disable-* | --disable-* \
1652 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1653 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1654 | -with-* | --with-* | -without-* | --without-* | --x)
1655 case "$ac_configure_args0 " in
1656 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659 -* ) ac_must_keep_next=true ;;
1662 ac_configure_args="$ac_configure_args '$ac_arg'"
1667 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1668 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1670 # When interrupted or exit'd, cleanup temporary files, and complete
1671 # config.log. We remove comments because anyway the quotes in there
1672 # would cause problems or look ugly.
1673 # WARNING: Use '\'' to represent an apostrophe within the trap.
1674 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1675 trap 'exit_status=$?
1676 # Save into config.log some information that might help in debugging.
1681 ## ---------------- ##
1682 ## Cache variables. ##
1683 ## ---------------- ##
1686 # The following way of writing the cache mishandles newlines in values,
1688 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1689 eval ac_val=\$$ac_var
1693 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1694 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1697 _ | IFS | as_nl) ;; #(
1698 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1699 *) $as_unset $ac_var ;;
1704 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705 *${as_nl}ac_space=\ *)
1707 "s/'\''/'\''\\\\'\'''\''/g;
1708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1719 ## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##
1724 for ac_var in $ac_subst_vars
1726 eval ac_val=\$$ac_var
1728 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 $as_echo "$ac_var='\''$ac_val'\''"
1734 if test -n "$ac_subst_files"; then
1736 ## ------------------- ##
1737 ## File substitutions. ##
1738 ## ------------------- ##
1741 for ac_var in $ac_subst_files
1743 eval ac_val=\$$ac_var
1745 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 $as_echo "$ac_var='\''$ac_val'\''"
1752 if test -s confdefs.h; then
1762 test "$ac_signal" != 0 &&
1763 $as_echo "$as_me: caught signal $ac_signal"
1764 $as_echo "$as_me: exit $exit_status"
1766 rm -f core *.core core.conftest.* &&
1767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770 for ac_signal in 1 2 13 15; do
1771 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1776 rm -f -r conftest* confdefs.h
1778 # Predefined preprocessor variables.
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_NAME "$PACKAGE_NAME"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_STRING "$PACKAGE_STRING"
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1805 # Let the site file select an alternate cache file if it wants to.
1806 # Prefer an explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 ac_site_file1=$CONFIG_SITE
1811 elif test "x$prefix" != xNONE; then
1812 ac_site_file1=$prefix/share/config.site
1813 ac_site_file2=$prefix/etc/config.site
1815 ac_site_file1=$ac_default_prefix/share/config.site
1816 ac_site_file2=$ac_default_prefix/etc/config.site
1818 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1820 test "x$ac_site_file" = xNONE && continue
1821 if test -r "$ac_site_file"; then
1822 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1823 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1824 sed 's/^/| /' "$ac_site_file" >&5
1829 if test -r "$cache_file"; then
1830 # Some versions of bash will fail to source /dev/null (special
1831 # files actually), so we avoid doing that.
1832 if test -f "$cache_file"; then
1833 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1834 $as_echo "$as_me: loading cache $cache_file" >&6;}
1836 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1837 *) . "./$cache_file";;
1841 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1842 $as_echo "$as_me: creating cache $cache_file" >&6;}
1846 # Check that the precious variables saved in the cache have kept the same
1848 ac_cache_corrupted=false
1849 for ac_var in $ac_precious_vars; do
1850 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1851 eval ac_new_set=\$ac_env_${ac_var}_set
1852 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1853 eval ac_new_val=\$ac_env_${ac_var}_value
1854 case $ac_old_set,$ac_new_set in
1856 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1857 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1858 ac_cache_corrupted=: ;;
1860 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1861 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1862 ac_cache_corrupted=: ;;
1865 if test "x$ac_old_val" != "x$ac_new_val"; then
1866 # differences in whitespace do not lead to failure.
1867 ac_old_val_w=`echo x $ac_old_val`
1868 ac_new_val_w=`echo x $ac_new_val`
1869 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1870 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1871 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1872 ac_cache_corrupted=:
1874 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1875 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1876 eval $ac_var=\$ac_old_val
1878 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1879 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1880 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1881 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1887 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 *) ac_arg=$ac_var=$ac_new_val ;;
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896 if $ac_cache_corrupted; then
1897 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1899 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 # Bootstrap StepMake configure
1932 for ac_dir in config "$srcdir"/config; do
1933 if test -f "$ac_dir/install-sh"; then
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1937 elif test -f "$ac_dir/install.sh"; then
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1941 elif test -f "$ac_dir/shtool"; then
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1947 if test -z "$ac_aux_dir"; then
1948 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1949 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1950 { (exit 1); exit 1; }; }
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1963 # Make sure we can run config.sub.
1964 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1965 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1966 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1967 { (exit 1); exit 1; }; }
1969 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1970 $as_echo_n "checking build system type... " >&6; }
1971 if test "${ac_cv_build+set}" = set; then
1972 $as_echo_n "(cached) " >&6
1974 ac_build_alias=$build_alias
1975 test "x$ac_build_alias" = x &&
1976 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1977 test "x$ac_build_alias" = x &&
1978 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1979 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1980 { (exit 1); exit 1; }; }
1981 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1982 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1983 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1984 { (exit 1); exit 1; }; }
1987 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1988 $as_echo "$ac_cv_build" >&6; }
1989 case $ac_cv_build in
1991 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1992 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1993 { (exit 1); exit 1; }; };;
1996 ac_save_IFS=$IFS; IFS='-'
2002 # Remember, the first character of IFS is used to create $*,
2003 # except with old shells:
2006 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2012 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
2013 MICRO_VERSION=$PATCH_LEVEL
2014 TOPLEVEL_VERSION=$FULL_VERSION
2015 if test x$MY_PATCH_LEVEL != x; then
2016 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
2018 VERSION=$FULL_VERSION
2019 export MAJOR_VERSION MINOR_VERSION PATCH_LEVEL
2020 # urg: don't "fix" this: irix doesn't know about [:lower:] and [:upper:]
2022 PACKAGE=`echo $PACKAGE_NAME | tr '[a-z]' '[A-Z]'`
2023 package=`echo $PACKAGE_NAME | tr '[A-Z]' '[a-z]'`
2026 # No versioning on directory names of sub-packages
2028 stepmake=${datadir}/stepmake
2030 if test "$prefix" = "NONE"; then
2031 presome=${ac_default_prefix}
2033 stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
2035 # urg, how is this supposed to work?
2036 if test "$program_prefix" = "NONE"; then
2039 if test "$program_suffix" = "NONE"; then
2043 { $as_echo "$as_me:$LINENO: checking Package" >&5
2044 $as_echo_n "checking Package... " >&6; }
2045 if test "$PACKAGE" = "STEPMAKE"; then
2046 { $as_echo "$as_me:$LINENO: result: Stepmake package!" >&5
2047 $as_echo "Stepmake package!" >&6; }
2049 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2050 $as_echo_n "checking builddir... " >&6; }
2052 ugh_ugh_autoconf250_builddir="`pwd`"
2054 if test "$srcdir" = "."; then
2058 package_builddir="`dirname $ugh_ugh_autoconf250_builddir`"
2059 package_srcdir="`dirname $srcdir`"
2061 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2062 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2064 (cd stepmake 2>/dev/null || mkdir stepmake)
2065 (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
2068 { $as_echo "$as_me:$LINENO: result: $PACKAGE" >&5
2069 $as_echo "$PACKAGE" >&6; }
2071 { $as_echo "$as_me:$LINENO: checking builddir" >&5
2072 $as_echo_n "checking builddir... " >&6; }
2073 ugh_ugh_autoconf250_builddir="`pwd`"
2075 here_dir=$(cd . && pwd)
2076 full_src_dir=$(cd $srcdir && pwd)
2078 if test "$full_src_dir" = "$here_dir"; then
2083 { $as_echo "$as_me:$LINENO: result: $ugh_ugh_autoconf250_builddir" >&5
2084 $as_echo "$ugh_ugh_autoconf250_builddir" >&6; }
2086 { $as_echo "$as_me:$LINENO: checking for stepmake" >&5
2087 $as_echo_n "checking for stepmake... " >&6; }
2088 # Check for installed stepmake
2089 if test -d $stepmake; then
2090 { $as_echo "$as_me:$LINENO: result: $stepmake" >&5
2091 $as_echo "$stepmake" >&6; }
2093 stepmake="`cd $srcdir/stepmake; pwd`"
2094 { $as_echo "$as_me:$LINENO: result: $srcdir/stepmake ($datadir/stepmake not found)" >&5
2095 $as_echo "$srcdir/stepmake ($datadir/stepmake not found)" >&6; }
2101 # Use absolute directory for non-srcdir builds, so that build
2103 if test "$srcdir_build" = "no" ; then
2104 srcdir="`cd $srcdir; pwd`"
2117 # stepmake nonstandard names
2121 # We don't need the upper case variant,
2122 # so stick to macros are uppercase convention.
2123 # AC_DEFINE_UNQUOTED(package, ["${package}"])
2124 # AC_DEFINE_UNQUOTED(PACKAGE, ["${PACKAGE}"])
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE "${package}"
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "${PACKAGE_NAME}"
2133 cat >>confdefs.h <<_ACEOF
2134 #define TOPLEVEL_VERSION "${FULL_VERSION}"
2138 if test -z "$package_depth"; then
2141 package_depth="../$package_depth"
2143 export package_depth
2146 AUTOGENERATE="This file was automatically generated by configure"
2150 # Check whether --enable-config was given.
2151 if test "${enable_config+set}" = set; then
2152 enableval=$enable_config; CONFIGURATION=$enableval
2158 test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
2159 CONFIGFILE=config$CONFIGSUFFIX
2162 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2163 $as_echo_n "checking host system type... " >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165 $as_echo_n "(cached) " >&6
2167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
2177 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 $as_echo "$ac_cv_host" >&6; }
2181 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2186 ac_save_IFS=$IFS; IFS='-'
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2200 for ac_prog in gmake make
2202 # Extract the first word of "$ac_prog", so it can be a program name with args.
2203 set dummy $ac_prog; ac_word=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_MAKE+set}" = set; then
2207 $as_echo_n "(cached) " >&6
2209 if test -n "$MAKE"; then
2210 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_MAKE="$ac_prog"
2220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 MAKE=$ac_cv_prog_MAKE
2230 if test -n "$MAKE"; then
2231 { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
2232 $as_echo "$MAKE" >&6; }
2234 { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2239 test -n "$MAKE" && break
2241 test -n "$MAKE" || MAKE="no"
2245 r="`eval echo '$'"MAKE"`"
2246 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then
2249 ##STEPMAKE_WARN(cannot find . )
2253 if test $? -ne 0; then
2255 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\"
2257 if test "REQUIRED" = "REQUIRED"; then
2258 command="echo ERROR: gmake make not found"
2259 # abort configure process here?
2261 command="- echo gmake make not found"
2263 eval "MAKE"='$command'
2269 if test $? -eq 0 -a -n ""; then
2271 r="`eval echo '$'"MAKE"`"
2272 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2273 $as_echo_n "checking $r version... " >&6; }
2275 ## which doesn't work in ash, if /usr/bin/which isn't installed
2276 ## type -p doesn't work in ash
2277 ## command -v doesn't work in zsh
2278 ## command -v "$r" 2>&1
2279 ## this test should work in ash, bash, pdksh (ksh), zsh
2280 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2286 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2289 ## Workaround for broken Debian gcc version string:
2290 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2292 ## -V: Workaround for python
2296 ## Assume and hunt for dotted version multiplet.
2297 ## use eval trickery, because we cannot use multi-level $() instead of ``
2298 ## for compatibility reasons.
2300 ## grab the first version number in --version output.
2301 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2302 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2305 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2306 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2309 if test -z "$_ver"; then
2310 ## If empty, try date [fontforge]
2311 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2312 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2314 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2321 echo "$ver" | awk -F. '
2323 if ($3) {three = $3}
2326 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2331 if ($3) {three = $3}
2334 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2336 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2337 $as_echo "$ver" >&6; }
2338 if test "$num" -lt "$req"; then
2340 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2343 vervar="`echo MAKE | tr 'a-z' 'A-Z'`_VERSION"
2344 eval `echo $vervar=$num`
2345 ## AC_SUBST(`eval echo $vervar`)
2352 # Extract the first word of "$ac_prog", so it can be a program name with args.
2353 set dummy $ac_prog; ac_word=$2
2354 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 $as_echo_n "checking for $ac_word... " >&6; }
2356 if test "${ac_cv_prog_FIND+set}" = set; then
2357 $as_echo_n "(cached) " >&6
2359 if test -n "$FIND"; then
2360 ac_cv_prog_FIND="$FIND" # Let the user override the test.
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369 ac_cv_prog_FIND="$ac_prog"
2370 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 FIND=$ac_cv_prog_FIND
2380 if test -n "$FIND"; then
2381 { $as_echo "$as_me:$LINENO: result: $FIND" >&5
2382 $as_echo "$FIND" >&6; }
2384 { $as_echo "$as_me:$LINENO: result: no" >&5
2385 $as_echo "no" >&6; }
2389 test -n "$FIND" && break
2391 test -n "$FIND" || FIND="no"
2395 r="`eval echo '$'"FIND"`"
2396 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then
2399 ##STEPMAKE_WARN(cannot find . )
2403 if test $? -ne 0; then
2405 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\"
2407 if test "REQUIRED" = "REQUIRED"; then
2408 command="echo ERROR: find not found"
2409 # abort configure process here?
2411 command="- echo find not found"
2413 eval "FIND"='$command'
2419 if test $? -eq 0 -a -n ""; then
2421 r="`eval echo '$'"FIND"`"
2422 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2423 $as_echo_n "checking $r version... " >&6; }
2425 ## which doesn't work in ash, if /usr/bin/which isn't installed
2426 ## type -p doesn't work in ash
2427 ## command -v doesn't work in zsh
2428 ## command -v "$r" 2>&1
2429 ## this test should work in ash, bash, pdksh (ksh), zsh
2430 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2436 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2439 ## Workaround for broken Debian gcc version string:
2440 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2442 ## -V: Workaround for python
2446 ## Assume and hunt for dotted version multiplet.
2447 ## use eval trickery, because we cannot use multi-level $() instead of ``
2448 ## for compatibility reasons.
2450 ## grab the first version number in --version output.
2451 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2452 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2455 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2456 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2459 if test -z "$_ver"; then
2460 ## If empty, try date [fontforge]
2461 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2462 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2464 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2471 echo "$ver" | awk -F. '
2473 if ($3) {three = $3}
2476 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2481 if ($3) {three = $3}
2484 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2486 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2487 $as_echo "$ver" >&6; }
2488 if test "$num" -lt "$req"; then
2490 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2493 vervar="`echo FIND | tr 'a-z' 'A-Z'`_VERSION"
2494 eval `echo $vervar=$num`
2495 ## AC_SUBST(`eval echo $vervar`)
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 $as_echo_n "checking for $ac_word... " >&6; }
2507 if test "${ac_cv_prog_TAR+set}" = set; then
2508 $as_echo_n "(cached) " >&6
2510 if test -n "$TAR"; then
2511 ac_cv_prog_TAR="$TAR" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520 ac_cv_prog_TAR="$ac_prog"
2521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 if test -n "$TAR"; then
2532 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
2533 $as_echo "$TAR" >&6; }
2535 { $as_echo "$as_me:$LINENO: result: no" >&5
2536 $as_echo "no" >&6; }
2540 test -n "$TAR" && break
2542 test -n "$TAR" || TAR="no"
2546 r="`eval echo '$'"TAR"`"
2547 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then
2550 ##STEPMAKE_WARN(cannot find . )
2554 if test $? -ne 0; then
2556 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\"
2558 if test "REQUIRED" = "REQUIRED"; then
2559 command="echo ERROR: tar not found"
2560 # abort configure process here?
2562 command="- echo tar not found"
2564 eval "TAR"='$command'
2570 if test $? -eq 0 -a -n ""; then
2572 r="`eval echo '$'"TAR"`"
2573 { $as_echo "$as_me:$LINENO: checking $r version" >&5
2574 $as_echo_n "checking $r version... " >&6; }
2576 ## which doesn't work in ash, if /usr/bin/which isn't installed
2577 ## type -p doesn't work in ash
2578 ## command -v doesn't work in zsh
2579 ## command -v "$r" 2>&1
2580 ## this test should work in ash, bash, pdksh (ksh), zsh
2581 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2587 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2590 ## Workaround for broken Debian gcc version string:
2591 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2593 ## -V: Workaround for python
2597 ## Assume and hunt for dotted version multiplet.
2598 ## use eval trickery, because we cannot use multi-level $() instead of ``
2599 ## for compatibility reasons.
2601 ## grab the first version number in --version output.
2602 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2603 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2606 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2607 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2610 if test -z "$_ver"; then
2611 ## If empty, try date [fontforge]
2612 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2613 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2615 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2622 echo "$ver" | awk -F. '
2624 if ($3) {three = $3}
2627 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2632 if ($3) {three = $3}
2635 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2637 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2638 $as_echo "$ver" >&6; }
2639 if test "$num" -lt "$req"; then
2641 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
2644 vervar="`echo TAR | tr 'a-z' 'A-Z'`_VERSION"
2645 eval `echo $vervar=$num`
2646 ## AC_SUBST(`eval echo $vervar`)
2651 if test "$(echo 2)" != "2" ||
2652 test "x`uname`" = "xHP-UX"; then
2653 # Extract the first word of "ksh", so it can be a program name with args.
2654 set dummy ksh; ac_word=$2
2655 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_path_KSH+set}" = set; then
2658 $as_echo_n "(cached) " >&6
2662 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
2673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="/bin/ksh"
2685 if test -n "$KSH"; then
2686 { $as_echo "$as_me:$LINENO: result: $KSH" >&5
2687 $as_echo "$KSH" >&6; }
2689 { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2694 # Extract the first word of "bash", so it can be a program name with args.
2695 set dummy bash; ac_word=$2
2696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if test "${ac_cv_path_BASH+set}" = set; then
2699 $as_echo_n "(cached) " >&6
2703 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$KSH"
2725 BASH=$ac_cv_path_BASH
2726 if test -n "$BASH"; then
2727 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2728 $as_echo "$BASH" >&6; }
2730 { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2736 { $as_echo "$as_me:$LINENO: WARNING: avoiding buggy /bin/sh" >&5
2737 $as_echo "$as_me: WARNING: avoiding buggy /bin/sh" >&2;}
2740 # Extract the first word of "bash", so it can be a program name with args.
2741 set dummy bash; ac_word=$2
2742 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_path_SHELL+set}" = set; then
2745 $as_echo_n "(cached) " >&6
2749 ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 for ac_exec_ext in '' $ac_executable_extensions; do
2758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2759 ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
2760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="$KSH"
2771 SHELL=$ac_cv_path_SHELL
2772 if test -n "$SHELL"; then
2773 { $as_echo "$as_me:$LINENO: result: $SHELL" >&5
2774 $as_echo "$SHELL" >&6; }
2776 { $as_echo "$as_me:$LINENO: result: no" >&5
2777 $as_echo "no" >&6; }
2783 # Extract the first word of "bash", so it can be a program name with args.
2784 set dummy bash; ac_word=$2
2785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_path_BASH+set}" = set; then
2788 $as_echo_n "(cached) " >&6
2792 ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
2803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="$SHELL"
2814 BASH=$ac_cv_path_BASH
2815 if test -n "$BASH"; then
2816 { $as_echo "$as_me:$LINENO: result: $BASH" >&5
2817 $as_echo "$BASH" >&6; }
2819 { $as_echo "$as_me:$LINENO: result: no" >&5
2820 $as_echo "no" >&6; }
2828 { $as_echo "$as_me:$LINENO: checking for python" >&5
2829 $as_echo_n "checking for python... " >&6; }
2832 for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
2834 ## which doesn't work in ash, if /usr/bin/which isn't installed
2835 ## type -p doesn't work in ash
2836 ## command -v doesn't work in zsh
2837 ## command -v "$r" 2>&1
2838 ## this test should work in ash, bash, pdksh (ksh), zsh
2839 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
2841 if ! $exe -V > /dev/null 2>&1 ; then
2845 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
2848 ## Workaround for broken Debian gcc version string:
2849 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
2851 ## -V: Workaround for python
2855 ## Assume and hunt for dotted version multiplet.
2856 ## use eval trickery, because we cannot use multi-level $() instead of ``
2857 ## for compatibility reasons.
2859 ## grab the first version number in --version output.
2860 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
2861 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2864 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
2865 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
2868 if test -z "$_ver"; then
2869 ## If empty, try date [fontforge]
2870 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
2871 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
2873 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
2879 echo "$ver" | awk -F. '
2881 if ($3) {three = $3}
2884 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2887 echo "1.5" | awk -F. '
2889 if ($3) {three = $3}
2892 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2895 echo "3.0" | awk -F. '
2897 if ($3) {three = $3}
2900 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
2902 if test -n "1.5" && test "$num" -lt "$req"; then
2903 python="$r >= 1.5 (installed: $ver)"
2906 if test -n "3.0" && test "$num" -ge "$sup"; then
2907 python="$r < 3.0 (installed: $ver)"
2916 { $as_echo "$as_me:$LINENO: result: $found" >&5
2917 $as_echo "$found" >&6; }
2918 if test "$found" != "no"; then
2919 { $as_echo "$as_me:$LINENO: checking $python version" >&5
2920 $as_echo_n "checking $python version... " >&6; }
2921 { $as_echo "$as_me:$LINENO: result: $ver" >&5
2922 $as_echo "$ver" >&6; }
2926 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
2929 # Extract the first word of "$PYTHON", so it can be a program name with args.
2930 set dummy $PYTHON; ac_word=$2
2931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_path_PYTHON+set}" = set; then
2934 $as_echo_n "(cached) " >&6
2938 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
2949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 PYTHON=$ac_cv_path_PYTHON
2960 if test -n "$PYTHON"; then
2961 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
2962 $as_echo "$PYTHON" >&6; }
2964 { $as_echo "$as_me:$LINENO: result: no" >&5
2965 $as_echo "no" >&6; }
2972 if expr "$MAKE" : '.*\(echo\)' >/dev/null; then
2973 $MAKE -v 2> /dev/null | grep GNU > /dev/null
2974 if test "$?" = 1; then
2975 warn='make (Please install *GNU* make)'
2976 # STEPMAKE_WARN($warn)
2978 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
2995 cat >>confdefs.h <<_ACEOF
2996 #define DIRSEP '${DIRSEP}'
2999 cat >>confdefs.h <<_ACEOF
3000 #define PATHSEP '${PATHSEP}'
3009 if test "$prefix" = "NONE"; then
3010 presome=${ac_default_prefix}
3013 build_package_datadir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/share/$package
3015 DATADIR=`echo ${datadir} | sed "s!\\\${datarootdir}!${presome}/share!"`
3016 DATADIR=`echo ${DATADIR} | sed "s!\\\${prefix}!$presome!"`
3017 BUILD_PACKAGE_DATADIR=`echo ${build_package_datadir} | sed "s!\\\${prefix}!$presome!"`
3022 cat >>confdefs.h <<_ACEOF
3023 #define DATADIR "${DATADIR}"
3026 cat >>confdefs.h <<_ACEOF
3027 #define BUILD_PACKAGE_DATADIR "${BUILD_PACKAGE_DATADIR}"
3032 presome=${exec_prefix}
3033 if test "$presome" = "NONE"; then
3036 if test "$presome" = "NONE"; then
3037 presome=${ac_default_prefix}
3040 build_package_libdir=$ugh_ugh_autoconf250_builddir/out$CONFIGSUFFIX/lib/$package
3042 LIBDIR=`echo ${libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3043 BUILD_PACKAGE_LIBDIR=`echo ${build_package_libdir} | sed "s!\\\${exec_prefix}!$presome!"`
3047 cat >>confdefs.h <<_ACEOF
3048 #define LIBDIR "${LIBDIR}"
3051 cat >>confdefs.h <<_ACEOF
3052 #define BUILD_PACKAGE_LIBDIR "${BUILD_PACKAGE_LIBDIR}"
3058 # List a file that identifies your package.
3061 # Move to aclocal.m4?
3062 ac_config_headers="$ac_config_headers $CONFIGFILE.hh:config.hh.in"
3065 # Uncomment the configuration options your package needs.
3068 # Check whether --enable-documentation was given.
3069 if test "${enable_documentation+set}" = set; then
3070 enableval=$enable_documentation; DOCUMENTATION=$enableval
3076 # Check whether --enable-guile2 was given.
3077 if test "${enable_guile2+set}" = set; then
3078 enableval=$enable_guile2; GUILEv2=$enableval
3083 # Check whether --with-texgyre-dir was given.
3084 if test "${with_texgyre_dir+set}" = set; then
3085 withval=$with_texgyre_dir; TEXGYRE_DIR=$withval
3092 # Check whether --with-urwotf-dir was given.
3093 if test "${with_urwotf_dir+set}" = set; then
3094 withval=$with_urwotf_dir; URWOTF_DIR=$withval
3101 # Check whether --enable-relocation was given.
3102 if test "${enable_relocation+set}" = set; then
3103 enableval=$enable_relocation; reloc_b=$enableval
3108 # Check whether --enable-rpath was given.
3109 if test "${enable_rpath+set}" = set; then
3110 enableval=$enable_rpath; rpath_b=$enableval
3114 LINK_GXX_STATICALLY=no
3115 # Check whether --enable-static-gxx was given.
3116 if test "${enable_static_gxx+set}" = set; then
3117 enableval=$enable_static_gxx; LINK_GXX_STATICALLY=$enableval
3122 # must come before any header checks
3124 # -O is necessary to get inlining
3126 CXXFLAGS=${CXXFLAGS-$CFLAGS}
3127 LDFLAGS=${LDFLAGS-""}
3134 # Check whether --enable-debugging was given.
3135 if test "${enable_debugging+set}" = set; then
3136 enableval=$enable_debugging; debug_b=$enableval
3140 # Check whether --enable-checking was given.
3141 if test "${enable_checking+set}" = set; then
3142 enableval=$enable_checking; checks_b=$enableval
3146 # Check whether --enable-optimising was given.
3147 if test "${enable_optimising+set}" = set; then
3148 enableval=$enable_optimising; optimise_b=$enableval
3152 # Check whether --enable-profiling was given.
3153 if test "${enable_profiling+set}" = set; then
3154 enableval=$enable_profiling; profile_b=$enableval
3158 # Check whether --enable-pipe was given.
3159 if test "${enable_pipe+set}" = set; then
3160 enableval=$enable_pipe; pipe_b=$enableval
3164 if test "$optimise_b" = yes; then
3165 OPTIMIZE=" -O2 -finline-functions"
3166 # following two lines are compatibility while Patchy has not
3167 # yet learnt about --enable-checking. But once it has, we
3168 # don't want -DDEBUG twice, so we omit it here if it is going
3169 # to get added anyway later.
3170 elif test "$checks_b" != yes; then
3171 DEFINES="$DEFINES -DDEBUG"
3174 if test "$checks_b" = yes; then
3175 DEFINES="$DEFINES -DDEBUG"
3178 if test $profile_b = yes; then
3180 OPTIMIZE="$OPTIMIZE -pg"
3183 if test $debug_b = yes; then
3184 OPTIMIZE="$OPTIMIZE -g"
3188 ac_cpp='$CPP $CPPFLAGS'
3189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_CC+set}" = set; then
3198 $as_echo_n "(cached) " >&6
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3225 { $as_echo "$as_me:$LINENO: result: no" >&5
3226 $as_echo "no" >&6; }
3231 if test -z "$ac_cv_prog_CC"; then
3233 # Extract the first word of "gcc", so it can be a program name with args.
3234 set dummy gcc; ac_word=$2
3235 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3238 $as_echo_n "(cached) " >&6
3240 if test -n "$ac_ct_CC"; then
3241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_ac_ct_CC="gcc"
3251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3261 if test -n "$ac_ct_CC"; then
3262 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3263 $as_echo "$ac_ct_CC" >&6; }
3265 { $as_echo "$as_me:$LINENO: result: no" >&5
3266 $as_echo "no" >&6; }
3269 if test "x$ac_ct_CC" = x; then
3272 case $cross_compiling:$ac_tool_warned in
3274 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3276 ac_tool_warned=yes ;;
3284 if test -z "$CC"; then
3285 if test -n "$ac_tool_prefix"; then
3286 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3287 set dummy ${ac_tool_prefix}cc; ac_word=$2
3288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if test "${ac_cv_prog_CC+set}" = set; then
3291 $as_echo_n "(cached) " >&6
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 ac_cv_prog_CC="${ac_tool_prefix}cc"
3304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314 if test -n "$CC"; then
3315 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3316 $as_echo "$CC" >&6; }
3318 { $as_echo "$as_me:$LINENO: result: no" >&5
3319 $as_echo "no" >&6; }
3325 if test -z "$CC"; then
3326 # Extract the first word of "cc", so it can be a program name with args.
3327 set dummy cc; ac_word=$2
3328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_CC+set}" = set; then
3331 $as_echo_n "(cached) " >&6
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3345 ac_prog_rejected=yes
3349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 if test $ac_prog_rejected = yes; then
3357 # We found a bogon in the path, so make sure we never use it.
3358 set dummy $ac_cv_prog_CC
3360 if test $# != 0; then
3361 # We chose a different compiler from the bogus one.
3362 # However, it has the same basename, so the bogon will be chosen
3363 # first if we set CC to just the basename; use the full file name.
3365 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3371 if test -n "$CC"; then
3372 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3373 $as_echo "$CC" >&6; }
3375 { $as_echo "$as_me:$LINENO: result: no" >&5
3376 $as_echo "no" >&6; }
3381 if test -z "$CC"; then
3382 if test -n "$ac_tool_prefix"; then
3383 for ac_prog in cl.exe
3385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if test "${ac_cv_prog_CC+set}" = set; then
3390 $as_echo_n "(cached) " >&6
3392 if test -n "$CC"; then
3393 ac_cv_prog_CC="$CC" # Let the user override the test.
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 if test -n "$CC"; then
3414 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3415 $as_echo "$CC" >&6; }
3417 { $as_echo "$as_me:$LINENO: result: no" >&5
3418 $as_echo "no" >&6; }
3422 test -n "$CC" && break
3425 if test -z "$CC"; then
3427 for ac_prog in cl.exe
3429 # Extract the first word of "$ac_prog", so it can be a program name with args.
3430 set dummy $ac_prog; ac_word=$2
3431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3434 $as_echo_n "(cached) " >&6
3436 if test -n "$ac_ct_CC"; then
3437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446 ac_cv_prog_ac_ct_CC="$ac_prog"
3447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3457 if test -n "$ac_ct_CC"; then
3458 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3459 $as_echo "$ac_ct_CC" >&6; }
3461 { $as_echo "$as_me:$LINENO: result: no" >&5
3462 $as_echo "no" >&6; }
3466 test -n "$ac_ct_CC" && break
3469 if test "x$ac_ct_CC" = x; then
3472 case $cross_compiling:$ac_tool_warned in
3474 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3476 ac_tool_warned=yes ;;
3485 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3488 See \`config.log' for more details." >&5
3489 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details." >&2;}
3491 { (exit 1); exit 1; }; }; }
3493 # Provide some information about the compiler.
3494 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3497 { (ac_try="$ac_compiler --version >&5"
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_compiler --version >&5") 2>&5
3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }
3508 { (ac_try="$ac_compiler -v >&5"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3514 $as_echo "$ac_try_echo") >&5
3515 (eval "$ac_compiler -v >&5") 2>&5
3517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }
3519 { (ac_try="$ac_compiler -V >&5"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525 $as_echo "$ac_try_echo") >&5
3526 (eval "$ac_compiler -V >&5") 2>&5
3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3546 ac_clean_files_save=$ac_clean_files
3547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3548 # Try to create an executable without -o first, disregard a.out.
3549 # It will help us diagnose broken compilers, and finding out an intuition
3551 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3552 $as_echo_n "checking for C compiler default output file name... " >&6; }
3553 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3555 # The possible output files:
3556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3559 for ac_file in $ac_files
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3563 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3568 if { (ac_try="$ac_link_default"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3574 $as_echo "$ac_try_echo") >&5
3575 (eval "$ac_link_default") 2>&5
3577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }; then
3579 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3581 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3582 # so that the user can short-circuit this test for compilers unknown to
3584 for ac_file in $ac_files ''
3586 test -f "$ac_file" || continue
3588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3591 # We found the default executable, but exeext='' is most
3595 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3597 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 # We set ac_cv_exeext here because the later test for it is not
3600 # safe: cross compilers may not add the suffix if given an `-o'
3601 # argument, so we may need to know it at that point already.
3602 # Even if this section looks crufty: it has the advantage of
3609 test "$ac_cv_exeext" = no && ac_cv_exeext=
3615 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3616 $as_echo "$ac_file" >&6; }
3617 if test -z "$ac_file"; then
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3624 See \`config.log' for more details." >&5
3625 $as_echo "$as_me: error: C compiler cannot create executables
3626 See \`config.log' for more details." >&2;}
3627 { (exit 77); exit 77; }; }; }
3630 ac_exeext=$ac_cv_exeext
3632 # Check that the compiler produces executables we can run. If not, either
3633 # the compiler is broken, or we cross compile.
3634 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3635 $as_echo_n "checking whether the C compiler works... " >&6; }
3636 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3637 # If not cross compiling, check that we can run a simple program.
3638 if test "$cross_compiling" != yes; then
3639 if { ac_try='./$ac_file'
3640 { (case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_try") 2>&5
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3652 if test "$cross_compiling" = maybe; then
3655 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3658 If you meant to cross compile, use \`--host'.
3659 See \`config.log' for more details." >&5
3660 $as_echo "$as_me: error: cannot run C compiled programs.
3661 If you meant to cross compile, use \`--host'.
3662 See \`config.log' for more details." >&2;}
3663 { (exit 1); exit 1; }; }; }
3667 { $as_echo "$as_me:$LINENO: result: yes" >&5
3668 $as_echo "yes" >&6; }
3670 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3671 ac_clean_files=$ac_clean_files_save
3672 # Check that the compiler produces executables we can run. If not, either
3673 # the compiler is broken, or we cross compile.
3674 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3675 $as_echo_n "checking whether we are cross compiling... " >&6; }
3676 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3677 $as_echo "$cross_compiling" >&6; }
3679 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3680 $as_echo_n "checking for suffix of executables... " >&6; }
3681 if { (ac_try="$ac_link"
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3687 $as_echo "$ac_try_echo") >&5
3688 (eval "$ac_link") 2>&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; then
3692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3694 # work properly (i.e., refer to `conftest.exe'), while it won't with
3696 for ac_file in conftest.exe conftest conftest.*; do
3697 test -f "$ac_file" || continue
3699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3709 See \`config.log' for more details." >&5
3710 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3711 See \`config.log' for more details." >&2;}
3712 { (exit 1); exit 1; }; }; }
3715 rm -f conftest$ac_cv_exeext
3716 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3717 $as_echo "$ac_cv_exeext" >&6; }
3719 rm -f conftest.$ac_ext
3720 EXEEXT=$ac_cv_exeext
3722 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if test "${ac_cv_objext+set}" = set; then
3725 $as_echo_n "(cached) " >&6
3727 cat >conftest.$ac_ext <<_ACEOF
3730 cat confdefs.h >>conftest.$ac_ext
3731 cat >>conftest.$ac_ext <<_ACEOF
3732 /* end confdefs.h. */
3742 rm -f conftest.o conftest.obj
3743 if { (ac_try="$ac_compile"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3749 $as_echo "$ac_try_echo") >&5
3750 (eval "$ac_compile") 2>&5
3752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; then
3754 for ac_file in conftest.o conftest.obj conftest.*; do
3755 test -f "$ac_file" || continue;
3757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3763 $as_echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3769 See \`config.log' for more details." >&5
3770 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3771 See \`config.log' for more details." >&2;}
3772 { (exit 1); exit 1; }; }; }
3775 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3777 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3778 $as_echo "$ac_cv_objext" >&6; }
3779 OBJEXT=$ac_cv_objext
3781 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3782 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3783 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3784 $as_echo_n "(cached) " >&6
3786 cat >conftest.$ac_ext <<_ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3814 grep -v '^ *+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest.$ac_objext; then
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3834 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3835 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3836 if test $ac_compiler_gnu = yes; then
3841 ac_test_CFLAGS=${CFLAGS+set}
3842 ac_save_CFLAGS=$CFLAGS
3843 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3844 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3845 if test "${ac_cv_prog_cc_g+set}" = set; then
3846 $as_echo_n "(cached) " >&6
3848 ac_save_c_werror_flag=$ac_c_werror_flag
3849 ac_c_werror_flag=yes
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3867 rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3874 $as_echo "$ac_try_echo") >&5
3875 (eval "$ac_compile") 2>conftest.er1
3877 grep -v '^ *+' conftest.er1 >conftest.err
3879 cat conftest.err >&5
3880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); } && {
3882 test -z "$ac_c_werror_flag" ||
3883 test ! -s conftest.err
3884 } && test -s conftest.$ac_objext; then
3887 $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3913 $as_echo "$ac_try_echo") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3926 $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3931 cat >conftest.$ac_ext <<_ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3953 $as_echo "$ac_try_echo") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3966 $as_echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 ac_c_werror_flag=$ac_save_c_werror_flag
3981 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3982 $as_echo "$ac_cv_prog_cc_g" >&6; }
3983 if test "$ac_test_CFLAGS" = set; then
3984 CFLAGS=$ac_save_CFLAGS
3985 elif test $ac_cv_prog_cc_g = yes; then
3986 if test "$GCC" = yes; then
3992 if test "$GCC" = yes; then
3998 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4000 if test "${ac_cv_prog_cc_c89+set}" = set; then
4001 $as_echo_n "(cached) " >&6
4003 ac_cv_prog_cc_c89=no
4005 cat >conftest.$ac_ext <<_ACEOF
4008 cat confdefs.h >>conftest.$ac_ext
4009 cat >>conftest.$ac_ext <<_ACEOF
4010 /* end confdefs.h. */
4013 #include <sys/types.h>
4014 #include <sys/stat.h>
4015 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4016 struct buf { int x; };
4017 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4018 static char *e (p, i)
4024 static char *f (char * (*g) (char **, int), char **p, ...)
4029 s = g (p, va_arg (v,int));
4034 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4035 function prototypes and stuff, but not '\xHH' hex character constants.
4036 These don't provoke an error unfortunately, instead are silently treated
4037 as 'x'. The following induces an error, until -std is added to get
4038 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4039 array size at least. It's necessary to write '\x00'==0 to get something
4040 that's true only with -std. */
4041 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4043 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4044 inside strings and character constants. */
4046 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4048 int test (int i, double x);
4049 struct s1 {int (*f) (int a);};
4050 struct s2 {int (*f) (double a);};
4051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4057 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4062 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4063 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4065 CC="$ac_save_CC $ac_arg"
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4073 $as_echo "$ac_try_echo") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.$ac_objext; then
4084 ac_cv_prog_cc_c89=$ac_arg
4086 $as_echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4092 rm -f core conftest.err conftest.$ac_objext
4093 test "x$ac_cv_prog_cc_c89" != "xno" && break
4095 rm -f conftest.$ac_ext
4100 case "x$ac_cv_prog_cc_c89" in
4102 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4103 $as_echo "none needed" >&6; } ;;
4105 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4106 $as_echo "unsupported" >&6; } ;;
4108 CC="$CC $ac_cv_prog_cc_c89"
4109 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4110 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 r="`eval echo '$'"CC"`"
4128 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then
4131 ##STEPMAKE_WARN(cannot find . )
4135 if test $? -ne 0; then
4137 eval ""=\"`eval echo \"'$'\" \"cc\"`\"
4139 if test "" = "REQUIRED"; then
4140 command="echo ERROR: cc not found"
4141 # abort configure process here?
4143 command="- echo cc not found"
4145 eval "CC"='$command'
4154 # If -pipe requested, test if it works and add to CFLAGS.
4155 if test "$pipe_b" = yes; then
4156 save_cflags="$CFLAGS"
4157 CFLAGS=" -pipe $CFLAGS";
4158 { $as_echo "$as_me:$LINENO: checking whether compiler understands -pipe" >&5
4159 $as_echo_n "checking whether compiler understands -pipe... " >&6; }
4160 if test "${stepmake_cv_cflags_pipe+set}" = set; then
4161 $as_echo_n "(cached) " >&6
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_compile") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } && {
4194 test -z "$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 } && test -s conftest.$ac_objext; then
4197 stepmake_cv_cflags_pipe=yes
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 stepmake_cv_cflags_pipe=no
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_cflags_pipe" >&5
4208 $as_echo "$stepmake_cv_cflags_pipe" >&6; }
4210 if test $stepmake_cv_cflags_pipe = yes; then
4211 OPTIMIZE="$OPTIMIZE -pipe"
4215 CFLAGS="$CFLAGS $OPTIMIZE"
4216 CPPFLAGS=${CPPFLAGS-""}
4218 { $as_echo "$as_me:$LINENO: checking for IEEE-conformance compiler flags" >&5
4219 $as_echo_n "checking for IEEE-conformance compiler flags... " >&6; }
4220 save_cflags="$CFLAGS"
4223 { $as_echo "$as_me:$LINENO: result: -mieee" >&5
4224 $as_echo "-mieee" >&6; }
4225 CFLAGS=" -mieee $CFLAGS"
4228 { $as_echo "$as_me:$LINENO: result: none" >&5
4229 $as_echo "none" >&6; }
4241 # Extract the first word of "fc-list", so it can be a program name with args.
4242 set dummy fc-list; ac_word=$2
4243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if test "${ac_cv_prog_FCLIST+set}" = set; then
4246 $as_echo_n "(cached) " >&6
4248 if test -n "$FCLIST"; then
4249 ac_cv_prog_FCLIST="$FCLIST" # Let the user override the test.
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_FCLIST="fc-list"
4259 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 FCLIST=$ac_cv_prog_FCLIST
4269 if test -n "$FCLIST"; then
4270 { $as_echo "$as_me:$LINENO: result: $FCLIST" >&5
4271 $as_echo "$FCLIST" >&6; }
4273 { $as_echo "$as_me:$LINENO: result: no" >&5
4274 $as_echo "no" >&6; }
4278 { $as_echo "$as_me:$LINENO: checking for TeX Gyre fonts OTF files" >&5
4279 $as_echo_n "checking for TeX Gyre fonts OTF files... " >&6; }
4282 if test "$TEXGYRE_DIR" = ""; then
4283 if test "$FCLIST" != ""; then
4284 TEXGYRE_FILE=`$FCLIST "TeX Gyre Schola:fontformat=CFF" file | head -n 1`
4285 if test "$TEXGYRE_FILE" != ""; then
4286 TEXGYRE_FILE=`echo $TEXGYRE_FILE | sed 's/\(:.*\)$//g'`
4287 TEXGYRE_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $TEXGYRE_FILE`
4288 TEXGYRE_DIR=`$as_dirname -- $TEXGYRE_FILE ||
4289 $as_expr X$TEXGYRE_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4290 X$TEXGYRE_FILE : 'X\(//\)[^/]' \| \
4291 X$TEXGYRE_FILE : 'X\(//\)$' \| \
4292 X$TEXGYRE_FILE : 'X\(/\)' \| . 2>/dev/null ||
4293 $as_echo X$TEXGYRE_FILE |
4294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4314 if test "$TEXGYRE_DIR" != "" ; then
4315 for f in texgyreschola-regular.otf texgyreschola-italic.otf \
4316 texgyreschola-bold.otf texgyreschola-bolditalic.otf \
4317 texgyreheros-regular.otf texgyreheros-italic.otf \
4318 texgyreheros-bold.otf texgyreheros-bolditalic.otf \
4319 texgyrecursor-regular.otf texgyrecursor-italic.otf \
4320 texgyrecursor-bold.otf texgyrecursor-bolditalic.otf; do
4321 if test ! -f "$TEXGYRE_DIR/$f"; then
4322 MISSING_TEXGYRE_FILES="$MISSING_TEXGYRE_FILES $f"
4324 TEXGYRE_FILES="$TEXGYRE_FILES $f"
4328 if test "$TEXGYRE_DIR" = "" -o "$MISSING_TEXGYRE_FILES" != ""; then
4329 { $as_echo "$as_me:$LINENO: result: no" >&5
4330 $as_echo "no" >&6; }
4332 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"TeX Gyre fonts OTF\"`\"
4334 if test "$TEXGYRE_DIR" = ""; then
4335 if test "$FCLIST" = ""; then
4337 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(install the fc-list utility from FontConfig, or use --with-texgyre-dir)'\"`\"
4341 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""(make sure the fc-list utility can see them, e.g. 'sudo apt-get install fonts-texgyre', or use --with-texgyre-dir)"\"`\"
4346 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'(these files are missing: $MISSING_TEXGYRE_FILES)'\"`\"
4350 { $as_echo "$as_me:$LINENO: result: yes" >&5
4351 $as_echo "yes" >&6; }
4353 { $as_echo "$as_me:$LINENO: checking for URW++ OTF files" >&5
4354 $as_echo_n "checking for URW++ OTF files... " >&6; }
4357 if test "$URWOTF_DIR" = ""; then
4358 if test "$FCLIST" != ""; then
4359 URWOTF_FILE=`$FCLIST "C059:fontformat=CFF" file | head -n 1`
4360 if test "$URWOTF_FILE" != ""; then
4361 URWOTF_FILE=`echo $URWOTF_FILE | sed 's/\(:.*\)$//g'`
4362 URWOTF_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $URWOTF_FILE`
4363 URWOTF_DIR=`$as_dirname -- $URWOTF_FILE ||
4364 $as_expr X$URWOTF_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4365 X$URWOTF_FILE : 'X\(//\)[^/]' \| \
4366 X$URWOTF_FILE : 'X\(//\)$' \| \
4367 X$URWOTF_FILE : 'X\(/\)' \| . 2>/dev/null ||
4368 $as_echo X$URWOTF_FILE |
4369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4389 if test "$URWOTF_DIR" != "" ; then
4390 for f in C059-BdIta.otf C059-Bold.otf \
4391 C059-Italic.otf C059-Roman.otf \
4392 NimbusMonoPS-Bold.otf NimbusMonoPS-BoldItalic.otf \
4393 NimbusMonoPS-Italic.otf NimbusMonoPS-Regular.otf \
4394 NimbusSans-Bold.otf NimbusSans-BoldOblique.otf \
4395 NimbusSans-Oblique.otf NimbusSans-Regular.otf; do
4396 if test ! -f "$URWOTF_DIR/$f"; then
4397 MISSING_URWOTF_FILES="$MISSING_URWOTF_FILES $f"
4399 URWOTF_FILES="$URWOTF_FILES $f"
4403 if test "$URWOTF_DIR" = "" -o "$MISSING_URWOTF_FILES" != ""; then
4404 { $as_echo "$as_me:$LINENO: result: no" >&5
4405 $as_echo "no" >&6; }
4407 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"URW++ OTF fonts\"`\"
4409 if test "$URWOTF_DIR" = ""; then
4410 if test "$FCLIST" = ""; then
4412 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(install the fc-list utility from FontConfig, or use --with-urwotf-dir)'\"`\"
4416 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(download OTF files from 'http://git.ghostscript.com/?p=urw-core35-fonts.git;a=commit;h=79bcdfb34fbce12b592cce389fa7a19da6b5b018' and put them under '~/.local/share/fonts' etc., or use --with-urwotf-dir)"\"`\"
4421 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(these files are missing: $MISSING_URWOTF_FILES)'\"`\"
4425 { $as_echo "$as_me:$LINENO: result: yes" >&5
4426 $as_echo "yes" >&6; }
4430 ac_cpp='$CXXCPP $CPPFLAGS'
4431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4437 { $as_echo "$as_me:$LINENO: checking for python" >&5
4438 $as_echo_n "checking for python... " >&6; }
4441 for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
4443 ## which doesn't work in ash, if /usr/bin/which isn't installed
4444 ## type -p doesn't work in ash
4445 ## command -v doesn't work in zsh
4446 ## command -v "$r" 2>&1
4447 ## this test should work in ash, bash, pdksh (ksh), zsh
4448 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
4450 if ! $exe -V > /dev/null 2>&1 ; then
4454 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
4457 ## Workaround for broken Debian gcc version string:
4458 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
4460 ## -V: Workaround for python
4464 ## Assume and hunt for dotted version multiplet.
4465 ## use eval trickery, because we cannot use multi-level $() instead of ``
4466 ## for compatibility reasons.
4468 ## grab the first version number in --version output.
4469 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
4470 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4473 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
4474 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
4477 if test -z "$_ver"; then
4478 ## If empty, try date [fontforge]
4479 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
4480 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
4482 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
4488 echo "$ver" | awk -F. '
4490 if ($3) {three = $3}
4493 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4496 echo "2.4" | awk -F. '
4498 if ($3) {three = $3}
4501 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4504 echo "3.0" | awk -F. '
4506 if ($3) {three = $3}
4509 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
4511 if test -n "2.4" && test "$num" -lt "$req"; then
4512 python="$r >= 2.4 (installed: $ver)"
4515 if test -n "3.0" && test "$num" -ge "$sup"; then
4516 python="$r < 3.0 (installed: $ver)"
4525 { $as_echo "$as_me:$LINENO: result: $found" >&5
4526 $as_echo "$found" >&6; }
4527 if test "$found" != "no"; then
4528 { $as_echo "$as_me:$LINENO: checking $python version" >&5
4529 $as_echo_n "checking $python version... " >&6; }
4530 { $as_echo "$as_me:$LINENO: result: $ver" >&5
4531 $as_echo "$ver" >&6; }
4535 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
4538 # Extract the first word of "$PYTHON", so it can be a program name with args.
4539 set dummy $PYTHON; ac_word=$2
4540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_path_PYTHON+set}" = set; then
4543 $as_echo_n "(cached) " >&6
4547 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4558 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568 PYTHON=$ac_cv_path_PYTHON
4569 if test -n "$PYTHON"; then
4570 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
4571 $as_echo "$PYTHON" >&6; }
4573 { $as_echo "$as_me:$LINENO: result: no" >&5
4574 $as_echo "no" >&6; }
4580 # this checks if we have GNU C by compiling a program with
4581 # __GNUC__, but that macro now unofficially means "the compiler
4582 # supports the GNU C extensions" -- the intel C compiler and clang
4583 # both support __GNUC__!
4585 ac_cpp='$CXXCPP $CPPFLAGS'
4586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4589 if test -z "$CXX"; then
4590 if test -n "$CCC"; then
4593 if test -n "$ac_tool_prefix"; then
4594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_CXX+set}" = set; then
4601 $as_echo_n "(cached) " >&6
4603 if test -n "$CXX"; then
4604 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 if test -n "$CXX"; then
4625 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4626 $as_echo "$CXX" >&6; }
4628 { $as_echo "$as_me:$LINENO: result: no" >&5
4629 $as_echo "no" >&6; }
4633 test -n "$CXX" && break
4636 if test -z "$CXX"; then
4638 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 $as_echo_n "checking for $ac_word... " >&6; }
4644 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4645 $as_echo_n "(cached) " >&6
4647 if test -n "$ac_ct_CXX"; then
4648 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_prog_ac_ct_CXX="$ac_prog"
4658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4668 if test -n "$ac_ct_CXX"; then
4669 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4670 $as_echo "$ac_ct_CXX" >&6; }
4672 { $as_echo "$as_me:$LINENO: result: no" >&5
4673 $as_echo "no" >&6; }
4677 test -n "$ac_ct_CXX" && break
4680 if test "x$ac_ct_CXX" = x; then
4683 case $cross_compiling:$ac_tool_warned in
4685 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4695 # Provide some information about the compiler.
4696 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4699 { (ac_try="$ac_compiler --version >&5"
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4705 $as_echo "$ac_try_echo") >&5
4706 (eval "$ac_compiler --version >&5") 2>&5
4708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); }
4710 { (ac_try="$ac_compiler -v >&5"
4712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713 *) ac_try_echo=$ac_try;;
4715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4716 $as_echo "$ac_try_echo") >&5
4717 (eval "$ac_compiler -v >&5") 2>&5
4719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }
4721 { (ac_try="$ac_compiler -V >&5"
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4727 $as_echo "$ac_try_echo") >&5
4728 (eval "$ac_compiler -V >&5") 2>&5
4730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }
4733 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4734 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4735 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4736 $as_echo_n "(cached) " >&6
4738 cat >conftest.$ac_ext <<_ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4756 rm -f conftest.$ac_objext
4757 if { (ac_try="$ac_compile"
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4763 $as_echo "$ac_try_echo") >&5
4764 (eval "$ac_compile") 2>conftest.er1
4766 grep -v '^ *+' conftest.er1 >conftest.err
4768 cat conftest.err >&5
4769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && {
4771 test -z "$ac_cxx_werror_flag" ||
4772 test ! -s conftest.err
4773 } && test -s conftest.$ac_objext; then
4776 $as_echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4786 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4787 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4788 if test $ac_compiler_gnu = yes; then
4793 ac_test_CXXFLAGS=${CXXFLAGS+set}
4794 ac_save_CXXFLAGS=$CXXFLAGS
4795 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4796 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4797 if test "${ac_cv_prog_cxx_g+set}" = set; then
4798 $as_echo_n "(cached) " >&6
4800 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4801 ac_cxx_werror_flag=yes
4804 cat >conftest.$ac_ext <<_ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4819 rm -f conftest.$ac_objext
4820 if { (ac_try="$ac_compile"
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4826 $as_echo "$ac_try_echo") >&5
4827 (eval "$ac_compile") 2>conftest.er1
4829 grep -v '^ *+' conftest.er1 >conftest.err
4831 cat conftest.err >&5
4832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && {
4834 test -z "$ac_cxx_werror_flag" ||
4835 test ! -s conftest.err
4836 } && test -s conftest.$ac_objext; then
4837 ac_cv_prog_cxx_g=yes
4839 $as_echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4843 cat >conftest.$ac_ext <<_ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4858 rm -f conftest.$ac_objext
4859 if { (ac_try="$ac_compile"
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4865 $as_echo "$ac_try_echo") >&5
4866 (eval "$ac_compile") 2>conftest.er1
4868 grep -v '^ *+' conftest.er1 >conftest.err
4870 cat conftest.err >&5
4871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_cxx_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest.$ac_objext; then
4878 $as_echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4883 cat >conftest.$ac_ext <<_ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h. */
4898 rm -f conftest.$ac_objext
4899 if { (ac_try="$ac_compile"
4901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4902 *) ac_try_echo=$ac_try;;
4904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4905 $as_echo "$ac_try_echo") >&5
4906 (eval "$ac_compile") 2>conftest.er1
4908 grep -v '^ *+' conftest.er1 >conftest.err
4910 cat conftest.err >&5
4911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && {
4913 test -z "$ac_cxx_werror_flag" ||
4914 test ! -s conftest.err
4915 } && test -s conftest.$ac_objext; then
4916 ac_cv_prog_cxx_g=yes
4918 $as_echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4931 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4933 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4934 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4935 if test "$ac_test_CXXFLAGS" = set; then
4936 CXXFLAGS=$ac_save_CXXFLAGS
4937 elif test $ac_cv_prog_cxx_g = yes; then
4938 if test "$GXX" = yes; then
4944 if test "$GXX" = yes; then
4951 ac_cpp='$CXXCPP $CPPFLAGS'
4952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4958 ac_cpp='$CXXCPP $CPPFLAGS'
4959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4962 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4963 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4964 if test -z "$CXXCPP"; then
4965 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4966 $as_echo_n "(cached) " >&6
4968 # Double quotes because CXXCPP needs to be expanded
4969 for CXXCPP in "$CXX -E" "/lib/cpp"
4972 for ac_cxx_preproc_warn_flag in '' yes
4974 # Use a header file that comes with gcc, so configuring glibc
4975 # with a fresh cross-compiler works.
4976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4977 # <limits.h> exists even on freestanding compilers.
4978 # On the NeXT, cc -E runs the code through the compiler's parser,
4979 # not just through cpp. "Syntax error" is here to catch this case.
4980 cat >conftest.$ac_ext <<_ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4987 # include <limits.h>
4989 # include <assert.h>
4993 if { (ac_try="$ac_cpp conftest.$ac_ext"
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4999 $as_echo "$ac_try_echo") >&5
5000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5002 grep -v '^ *+' conftest.er1 >conftest.err
5004 cat conftest.err >&5
5005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); } >/dev/null && {
5007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5008 test ! -s conftest.err
5012 $as_echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015 # Broken: fails on valid input.
5019 rm -f conftest.err conftest.$ac_ext
5021 # OK, works on sane cases. Now check whether nonexistent headers
5022 # can be detected and how.
5023 cat >conftest.$ac_ext <<_ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h. */
5029 #include <ac_nonexistent.h>
5031 if { (ac_try="$ac_cpp conftest.$ac_ext"
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5037 $as_echo "$ac_try_echo") >&5
5038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5040 grep -v '^ *+' conftest.er1 >conftest.err
5042 cat conftest.err >&5
5043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } >/dev/null && {
5045 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5046 test ! -s conftest.err
5048 # Broken: success on invalid input.
5051 $as_echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 # Passes both tests.
5059 rm -f conftest.err conftest.$ac_ext
5062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5063 rm -f conftest.err conftest.$ac_ext
5064 if $ac_preproc_ok; then
5069 ac_cv_prog_CXXCPP=$CXXCPP
5072 CXXCPP=$ac_cv_prog_CXXCPP
5074 ac_cv_prog_CXXCPP=$CXXCPP
5076 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5077 $as_echo "$CXXCPP" >&6; }
5079 for ac_cxx_preproc_warn_flag in '' yes
5081 # Use a header file that comes with gcc, so configuring glibc
5082 # with a fresh cross-compiler works.
5083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084 # <limits.h> exists even on freestanding compilers.
5085 # On the NeXT, cc -E runs the code through the compiler's parser,
5086 # not just through cpp. "Syntax error" is here to catch this case.
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5094 # include <limits.h>
5096 # include <assert.h>
5100 if { (ac_try="$ac_cpp conftest.$ac_ext"
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5106 $as_echo "$ac_try_echo") >&5
5107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5109 grep -v '^ *+' conftest.er1 >conftest.err
5111 cat conftest.err >&5
5112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } >/dev/null && {
5114 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5115 test ! -s conftest.err
5119 $as_echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5122 # Broken: fails on valid input.
5126 rm -f conftest.err conftest.$ac_ext
5128 # OK, works on sane cases. Now check whether nonexistent headers
5129 # can be detected and how.
5130 cat >conftest.$ac_ext <<_ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5136 #include <ac_nonexistent.h>
5138 if { (ac_try="$ac_cpp conftest.$ac_ext"
5140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141 *) ac_try_echo=$ac_try;;
5143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5144 $as_echo "$ac_try_echo") >&5
5145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } >/dev/null && {
5152 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5153 test ! -s conftest.err
5155 # Broken: success on invalid input.
5158 $as_echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 # Passes both tests.
5166 rm -f conftest.err conftest.$ac_ext
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then
5174 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5176 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5177 See \`config.log' for more details." >&5
5178 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5179 See \`config.log' for more details." >&2;}
5180 { (exit 1); exit 1; }; }; }
5184 ac_cpp='$CXXCPP $CPPFLAGS'
5185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5190 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5191 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5192 if test "${ac_cv_path_GREP+set}" = set; then
5193 $as_echo_n "(cached) " >&6
5195 if test -z "$GREP"; then
5196 ac_path_GREP_found=false
5197 # Loop through the user's path and test for each of PROGNAME-LIST
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5202 test -z "$as_dir" && as_dir=.
5203 for ac_prog in grep ggrep; do
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5206 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5207 # Check for GNU ac_path_GREP and select it if it is found.
5208 # Check for GNU $ac_path_GREP
5209 case `"$ac_path_GREP" --version 2>&1` in
5211 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5214 $as_echo_n 0123456789 >"conftest.in"
5217 cat "conftest.in" "conftest.in" >"conftest.tmp"
5218 mv "conftest.tmp" "conftest.in"
5219 cp "conftest.in" "conftest.nl"
5220 $as_echo 'GREP' >> "conftest.nl"
5221 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5223 ac_count=`expr $ac_count + 1`
5224 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5225 # Best one so far, save it but keep looking for a better one
5226 ac_cv_path_GREP="$ac_path_GREP"
5227 ac_path_GREP_max=$ac_count
5229 # 10*(2^10) chars as input seems more than enough
5230 test $ac_count -gt 10 && break
5232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5235 $ac_path_GREP_found && break 3
5240 if test -z "$ac_cv_path_GREP"; then
5241 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5242 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5243 { (exit 1); exit 1; }; }
5246 ac_cv_path_GREP=$GREP
5250 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5251 $as_echo "$ac_cv_path_GREP" >&6; }
5252 GREP="$ac_cv_path_GREP"
5255 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5256 $as_echo_n "checking for egrep... " >&6; }
5257 if test "${ac_cv_path_EGREP+set}" = set; then
5258 $as_echo_n "(cached) " >&6
5260 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5261 then ac_cv_path_EGREP="$GREP -E"
5263 if test -z "$EGREP"; then
5264 ac_path_EGREP_found=false
5265 # Loop through the user's path and test for each of PROGNAME-LIST
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5270 test -z "$as_dir" && as_dir=.
5271 for ac_prog in egrep; do
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5274 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5275 # Check for GNU ac_path_EGREP and select it if it is found.
5276 # Check for GNU $ac_path_EGREP
5277 case `"$ac_path_EGREP" --version 2>&1` in
5279 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5282 $as_echo_n 0123456789 >"conftest.in"
5285 cat "conftest.in" "conftest.in" >"conftest.tmp"
5286 mv "conftest.tmp" "conftest.in"
5287 cp "conftest.in" "conftest.nl"
5288 $as_echo 'EGREP' >> "conftest.nl"
5289 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5291 ac_count=`expr $ac_count + 1`
5292 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5293 # Best one so far, save it but keep looking for a better one
5294 ac_cv_path_EGREP="$ac_path_EGREP"
5295 ac_path_EGREP_max=$ac_count
5297 # 10*(2^10) chars as input seems more than enough
5298 test $ac_count -gt 10 && break
5300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5303 $ac_path_EGREP_found && break 3
5308 if test -z "$ac_cv_path_EGREP"; then
5309 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5310 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5311 { (exit 1); exit 1; }; }
5314 ac_cv_path_EGREP=$EGREP
5319 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5320 $as_echo "$ac_cv_path_EGREP" >&6; }
5321 EGREP="$ac_cv_path_EGREP"
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5338 $EGREP "yes" >/dev/null 2>&1; then
5346 if test "$HAS_CLANG" = "no"; then
5347 if test "$GCC" = "yes"; then
5349 r="`eval echo '$'"CC"`"
5350 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5351 $as_echo_n "checking $r version... " >&6; }
5353 ## which doesn't work in ash, if /usr/bin/which isn't installed
5354 ## type -p doesn't work in ash
5355 ## command -v doesn't work in zsh
5356 ## command -v "$r" 2>&1
5357 ## this test should work in ash, bash, pdksh (ksh), zsh
5358 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5364 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5367 ## Workaround for broken Debian gcc version string:
5368 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5370 ## -V: Workaround for python
5374 ## Assume and hunt for dotted version multiplet.
5375 ## use eval trickery, because we cannot use multi-level $() instead of ``
5376 ## for compatibility reasons.
5378 ## grab the first version number in --version output.
5379 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5380 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5383 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5384 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5387 if test -z "$_ver"; then
5388 ## If empty, try date [fontforge]
5389 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5390 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5392 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5399 echo "$ver" | awk -F. '
5401 if ($3) {three = $3}
5404 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5407 echo "3.4" | awk -F. '
5409 if ($3) {three = $3}
5412 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5414 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5415 $as_echo "$ver" >&6; }
5416 if test "$num" -lt "$req"; then
5418 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5421 vervar="`echo CC | tr 'a-z' 'A-Z'`_VERSION"
5422 eval `echo $vervar=$num`
5423 ## AC_SUBST(`eval echo $vervar`)
5426 warn="$CC (Please install *GNU* cc)"
5428 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5432 # no else, we're fine with any clang
5437 ac_cpp='$CXXCPP $CPPFLAGS'
5438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5441 if test -z "$CXX"; then
5442 if test -n "$CCC"; then
5445 if test -n "$ac_tool_prefix"; then
5446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5450 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_prog_CXX+set}" = set; then
5453 $as_echo_n "(cached) " >&6
5455 if test -n "$CXX"; then
5456 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 if test -n "$CXX"; then
5477 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5478 $as_echo "$CXX" >&6; }
5480 { $as_echo "$as_me:$LINENO: result: no" >&5
5481 $as_echo "no" >&6; }
5485 test -n "$CXX" && break
5488 if test -z "$CXX"; then
5490 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5492 # Extract the first word of "$ac_prog", so it can be a program name with args.
5493 set dummy $ac_prog; ac_word=$2
5494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5497 $as_echo_n "(cached) " >&6
5499 if test -n "$ac_ct_CXX"; then
5500 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509 ac_cv_prog_ac_ct_CXX="$ac_prog"
5510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5520 if test -n "$ac_ct_CXX"; then
5521 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5522 $as_echo "$ac_ct_CXX" >&6; }
5524 { $as_echo "$as_me:$LINENO: result: no" >&5
5525 $as_echo "no" >&6; }
5529 test -n "$ac_ct_CXX" && break
5532 if test "x$ac_ct_CXX" = x; then
5535 case $cross_compiling:$ac_tool_warned in
5537 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539 ac_tool_warned=yes ;;
5547 # Provide some information about the compiler.
5548 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5551 { (ac_try="$ac_compiler --version >&5"
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5557 $as_echo "$ac_try_echo") >&5
5558 (eval "$ac_compiler --version >&5") 2>&5
5560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }
5562 { (ac_try="$ac_compiler -v >&5"
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5568 $as_echo "$ac_try_echo") >&5
5569 (eval "$ac_compiler -v >&5") 2>&5
5571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }
5573 { (ac_try="$ac_compiler -V >&5"
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5579 $as_echo "$ac_try_echo") >&5
5580 (eval "$ac_compiler -V >&5") 2>&5
5582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }
5585 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5586 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5587 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5588 $as_echo_n "(cached) " >&6
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5608 rm -f conftest.$ac_objext
5609 if { (ac_try="$ac_compile"
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615 $as_echo "$ac_try_echo") >&5
5616 (eval "$ac_compile") 2>conftest.er1
5618 grep -v '^ *+' conftest.er1 >conftest.err
5620 cat conftest.err >&5
5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && {
5623 test -z "$ac_cxx_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest.$ac_objext; then
5628 $as_echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5638 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5639 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5640 if test $ac_compiler_gnu = yes; then
5645 ac_test_CXXFLAGS=${CXXFLAGS+set}
5646 ac_save_CXXFLAGS=$CXXFLAGS
5647 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5648 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5649 if test "${ac_cv_prog_cxx_g+set}" = set; then
5650 $as_echo_n "(cached) " >&6
5652 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5653 ac_cxx_werror_flag=yes
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5678 $as_echo "$ac_try_echo") >&5
5679 (eval "$ac_compile") 2>conftest.er1
5681 grep -v '^ *+' conftest.er1 >conftest.err
5683 cat conftest.err >&5
5684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } && {
5686 test -z "$ac_cxx_werror_flag" ||
5687 test ! -s conftest.err
5688 } && test -s conftest.$ac_objext; then
5689 ac_cv_prog_cxx_g=yes
5691 $as_echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5710 rm -f conftest.$ac_objext
5711 if { (ac_try="$ac_compile"
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5717 $as_echo "$ac_try_echo") >&5
5718 (eval "$ac_compile") 2>conftest.er1
5720 grep -v '^ *+' conftest.er1 >conftest.err
5722 cat conftest.err >&5
5723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } && {
5725 test -z "$ac_cxx_werror_flag" ||
5726 test ! -s conftest.err
5727 } && test -s conftest.$ac_objext; then
5730 $as_echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5750 rm -f conftest.$ac_objext
5751 if { (ac_try="$ac_compile"
5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5754 *) ac_try_echo=$ac_try;;
5756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5757 $as_echo "$ac_try_echo") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1 >conftest.err
5762 cat conftest.err >&5
5763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_cxx_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 ac_cv_prog_cxx_g=yes
5770 $as_echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5785 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5786 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5787 if test "$ac_test_CXXFLAGS" = set; then
5788 CXXFLAGS=$ac_save_CXXFLAGS
5789 elif test $ac_cv_prog_cxx_g = yes; then
5790 if test "$GXX" = yes; then
5796 if test "$GXX" = yes; then
5803 ac_cpp='$CXXCPP $CPPFLAGS'
5804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5810 r="`eval echo '$'"CXX"`"
5811 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then
5814 ##STEPMAKE_WARN(cannot find . )
5818 if test $? -ne 0; then
5820 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\"
5822 if test "REQUIRED" = "REQUIRED"; then
5823 command="echo ERROR: c++ not found"
5824 # abort configure process here?
5826 command="- echo c++ not found"
5828 eval "CXX"='$command'
5835 CXXFLAGS="$CXXFLAGS $OPTIMIZE"
5842 cat >conftest.$ac_ext <<_ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5854 $EGREP "yes" >/dev/null 2>&1; then
5862 if test "$HAS_CLANG" = "no"; then
5863 if test "$GXX" = "yes"; then
5865 r="`eval echo '$'"CXX"`"
5866 { $as_echo "$as_me:$LINENO: checking $r version" >&5
5867 $as_echo_n "checking $r version... " >&6; }
5869 ## which doesn't work in ash, if /usr/bin/which isn't installed
5870 ## type -p doesn't work in ash
5871 ## command -v doesn't work in zsh
5872 ## command -v "$r" 2>&1
5873 ## this test should work in ash, bash, pdksh (ksh), zsh
5874 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
5880 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
5883 ## Workaround for broken Debian gcc version string:
5884 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
5886 ## -V: Workaround for python
5890 ## Assume and hunt for dotted version multiplet.
5891 ## use eval trickery, because we cannot use multi-level $() instead of ``
5892 ## for compatibility reasons.
5894 ## grab the first version number in --version output.
5895 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
5896 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5899 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
5900 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
5903 if test -z "$_ver"; then
5904 ## If empty, try date [fontforge]
5905 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
5906 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
5908 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
5915 echo "$ver" | awk -F. '
5917 if ($3) {three = $3}
5920 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5923 echo "3.4" | awk -F. '
5925 if ($3) {three = $3}
5928 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
5930 { $as_echo "$as_me:$LINENO: result: $ver" >&5
5931 $as_echo "$ver" >&6; }
5932 if test "$num" -lt "$req"; then
5934 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 3.4 (installed: $ver)"\"`\"
5937 vervar="`echo CXX | tr 'a-z' 'A-Z'`_VERSION"
5938 eval `echo $vervar=$num`
5939 ## AC_SUBST(`eval echo $vervar`)
5942 warn="$CXX (Please install *GNU* c++)"
5944 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
5948 # no else, we're fine with any clang
5951 { $as_echo "$as_me:$LINENO: checking options for known g++ bugs" >&5
5952 $as_echo_n "checking options for known g++ bugs... " >&6; }
5953 case "$GXX:$CXX_VERSION" in
5955 { $as_echo "$as_me:$LINENO: result: -fno-optimize-sibling-calls (tail call bug)" >&5
5956 $as_echo "-fno-optimize-sibling-calls (tail call bug)" >&6; }
5957 CXXFLAGS="$CXXFLAGS -fno-optimize-sibling-calls"
5960 { $as_echo "$as_me:$LINENO: result: -fno-tree-vrp (comparison bug)" >&5
5961 $as_echo "-fno-tree-vrp (comparison bug)" >&6; }
5962 CXXFLAGS="$CXXFLAGS -fno-tree-vrp"
5964 *) { $as_echo "$as_me:$LINENO: result: none" >&5
5965 $as_echo "none" >&6; }
5970 { $as_echo "$as_me:$LINENO: checking whether explicit instantiation is needed" >&5
5971 $as_echo_n "checking whether explicit instantiation is needed... " >&6; }
5972 if test "${stepmake_cv_need_explicit_instantiation+set}" = set; then
5973 $as_echo_n "(cached) " >&6
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5982 template <class T> struct foo { static int baz; };
5983 template <class T> int foo<T>::baz = 1;
5988 return foo<int>::baz;
5993 rm -f conftest.$ac_objext conftest$ac_exeext
5994 if { (ac_try="$ac_link"
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6000 $as_echo "$ac_try_echo") >&5
6001 (eval "$ac_link") 2>conftest.er1
6003 grep -v '^ *+' conftest.er1 >conftest.err
6005 cat conftest.err >&5
6006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && {
6008 test -z "$ac_cxx_werror_flag" ||
6009 test ! -s conftest.err
6010 } && test -s conftest$ac_exeext && {
6011 test "$cross_compiling" = yes ||
6012 $as_test_x conftest$ac_exeext
6014 stepmake_cv_need_explicit_instantiation=no
6016 $as_echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6019 stepmake_cv_need_explicit_instantiation=yes
6022 rm -rf conftest.dSYM
6023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6024 conftest$ac_exeext conftest.$ac_ext
6026 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_need_explicit_instantiation" >&5
6027 $as_echo "$stepmake_cv_need_explicit_instantiation" >&6; }
6028 if test x"$stepmake_cv_need_explicit_instantiation"x = x"yes"x; then
6029 cat >>confdefs.h <<\_ACEOF
6030 #define NEED_EXPLICIT_INSTANTIATION 1
6036 { $as_echo "$as_me:$LINENO: checking for stl.data () method" >&5
6037 $as_echo_n "checking for stl.data () method... " >&6; }
6038 if test "${stepmake_cv_stl_data_method+set}" = set; then
6039 $as_echo_n "(cached) " >&6
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6049 using namespace std;
6051 void *p = v.data ();
6061 rm -f conftest.$ac_objext
6062 if { (ac_try="$ac_compile"
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6068 $as_echo "$ac_try_echo") >&5
6069 (eval "$ac_compile") 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_cxx_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest.$ac_objext; then
6079 stepmake_cv_stl_data_method=yes
6081 $as_echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6084 stepmake_cv_stl_data_method=no
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_stl_data_method" >&5
6090 $as_echo "$stepmake_cv_stl_data_method" >&6; }
6091 if test $stepmake_cv_stl_data_method = yes; then
6093 cat >>confdefs.h <<\_ACEOF
6094 #define HAVE_STL_DATA_METHOD 1
6103 # Extract the first word of "$ac_prog", so it can be a program name with args.
6104 set dummy $ac_prog; ac_word=$2
6105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 $as_echo_n "checking for $ac_word... " >&6; }
6107 if test "${ac_cv_prog_AR+set}" = set; then
6108 $as_echo_n "(cached) " >&6
6110 if test -n "$AR"; then
6111 ac_cv_prog_AR="$AR" # Let the user override the test.
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_prog_AR="$ac_prog"
6121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 if test -n "$AR"; then
6132 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6133 $as_echo "$AR" >&6; }
6135 { $as_echo "$as_me:$LINENO: result: no" >&5
6136 $as_echo "no" >&6; }
6140 test -n "$AR" && break
6142 test -n "$AR" || AR="no"
6146 r="`eval echo '$'"AR"`"
6147 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then
6150 ##STEPMAKE_WARN(cannot find . )
6154 if test $? -ne 0; then
6156 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\"
6158 if test "REQUIRED" = "REQUIRED"; then
6159 command="echo ERROR: ar not found"
6160 # abort configure process here?
6162 command="- echo ar not found"
6164 eval "AR"='$command'
6170 if test $? -eq 0 -a -n ""; then
6172 r="`eval echo '$'"AR"`"
6173 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6174 $as_echo_n "checking $r version... " >&6; }
6176 ## which doesn't work in ash, if /usr/bin/which isn't installed
6177 ## type -p doesn't work in ash
6178 ## command -v doesn't work in zsh
6179 ## command -v "$r" 2>&1
6180 ## this test should work in ash, bash, pdksh (ksh), zsh
6181 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6187 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6190 ## Workaround for broken Debian gcc version string:
6191 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6193 ## -V: Workaround for python
6197 ## Assume and hunt for dotted version multiplet.
6198 ## use eval trickery, because we cannot use multi-level $() instead of ``
6199 ## for compatibility reasons.
6201 ## grab the first version number in --version output.
6202 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6203 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6206 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6207 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6210 if test -z "$_ver"; then
6211 ## If empty, try date [fontforge]
6212 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6213 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6215 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6222 echo "$ver" | awk -F. '
6224 if ($3) {three = $3}
6227 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6232 if ($3) {three = $3}
6235 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6237 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6238 $as_echo "$ver" >&6; }
6239 if test "$num" -lt "$req"; then
6241 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6244 vervar="`echo AR | tr 'a-z' 'A-Z'`_VERSION"
6245 eval `echo $vervar=$num`
6246 ## AC_SUBST(`eval echo $vervar`)
6250 if test -n "$ac_tool_prefix"; then
6251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 $as_echo_n "checking for $ac_word... " >&6; }
6255 if test "${ac_cv_prog_RANLIB+set}" = set; then
6256 $as_echo_n "(cached) " >&6
6258 if test -n "$RANLIB"; then
6259 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 test -z "$as_dir" && as_dir=.
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6269 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 RANLIB=$ac_cv_prog_RANLIB
6279 if test -n "$RANLIB"; then
6280 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6281 $as_echo "$RANLIB" >&6; }
6283 { $as_echo "$as_me:$LINENO: result: no" >&5
6284 $as_echo "no" >&6; }
6289 if test -z "$ac_cv_prog_RANLIB"; then
6290 ac_ct_RANLIB=$RANLIB
6291 # Extract the first word of "ranlib", so it can be a program name with args.
6292 set dummy ranlib; ac_word=$2
6293 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6296 $as_echo_n "(cached) " >&6
6298 if test -n "$ac_ct_RANLIB"; then
6299 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 test -z "$as_dir" && as_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308 ac_cv_prog_ac_ct_RANLIB="ranlib"
6309 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6319 if test -n "$ac_ct_RANLIB"; then
6320 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6321 $as_echo "$ac_ct_RANLIB" >&6; }
6323 { $as_echo "$as_me:$LINENO: result: no" >&5
6324 $as_echo "no" >&6; }
6327 if test "x$ac_ct_RANLIB" = x; then
6330 case $cross_compiling:$ac_tool_warned in
6332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6334 ac_tool_warned=yes ;;
6336 RANLIB=$ac_ct_RANLIB
6339 RANLIB="$ac_cv_prog_RANLIB"
6344 r="`eval echo '$'"RANLIB"`"
6345 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then
6348 ##STEPMAKE_WARN(cannot find . )
6352 if test $? -ne 0; then
6354 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\"
6356 if test "REQUIRED" = "REQUIRED"; then
6357 command="echo ERROR: ranlib not found"
6358 # abort configure process here?
6360 command="- echo ranlib not found"
6362 eval "RANLIB"='$command'
6371 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6372 $as_echo_n "checking for dlopen in -ldl... " >&6; }
6373 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6374 $as_echo_n "(cached) " >&6
6376 ac_check_lib_save_LIBS=$LIBS
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6385 /* Override any GCC internal prototype to avoid an error.
6386 Use char because int might match the return type of a GCC
6387 builtin and then its argument prototype would still apply. */
6400 rm -f conftest.$ac_objext conftest$ac_exeext
6401 if { (ac_try="$ac_link"
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6407 $as_echo "$ac_try_echo") >&5
6408 (eval "$ac_link") 2>conftest.er1
6410 grep -v '^ *+' conftest.er1 >conftest.err
6412 cat conftest.err >&5
6413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } && {
6415 test -z "$ac_cxx_werror_flag" ||
6416 test ! -s conftest.err
6417 } && test -s conftest$ac_exeext && {
6418 test "$cross_compiling" = yes ||
6419 $as_test_x conftest$ac_exeext
6421 ac_cv_lib_dl_dlopen=yes
6423 $as_echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 ac_cv_lib_dl_dlopen=no
6429 rm -rf conftest.dSYM
6430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6431 conftest$ac_exeext conftest.$ac_ext
6432 LIBS=$ac_check_lib_save_LIBS
6434 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6436 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
6437 cat >>confdefs.h <<_ACEOF
6438 #define HAVE_LIBDL 1
6446 for ac_func in dlopen
6448 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6449 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6450 $as_echo_n "checking for $ac_func... " >&6; }
6451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6452 $as_echo_n "(cached) " >&6
6454 cat >conftest.$ac_ext <<_ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6462 #define $ac_func innocuous_$ac_func
6464 /* System header to define __stub macros and hopefully few prototypes,
6465 which can conflict with char $ac_func (); below.
6466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6467 <limits.h> exists even on freestanding compilers. */
6470 # include <limits.h>
6472 # include <assert.h>
6477 /* Override any GCC internal prototype to avoid an error.
6478 Use char because int might match the return type of a GCC
6479 builtin and then its argument prototype would still apply. */
6484 /* The GNU C library defines this for functions which it implements
6485 to always fail with ENOSYS. Some functions are actually named
6486 something starting with __ and the normal name is an alias. */
6487 #if defined __stub_$ac_func || defined __stub___$ac_func
6499 rm -f conftest.$ac_objext conftest$ac_exeext
6500 if { (ac_try="$ac_link"
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6506 $as_echo "$ac_try_echo") >&5
6507 (eval "$ac_link") 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_cxx_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest$ac_exeext && {
6517 test "$cross_compiling" = yes ||
6518 $as_test_x conftest$ac_exeext
6520 eval "$as_ac_var=yes"
6522 $as_echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 eval "$as_ac_var=no"
6528 rm -rf conftest.dSYM
6529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6530 conftest$ac_exeext conftest.$ac_ext
6532 ac_res=`eval 'as_val=${'$as_ac_var'}
6533 $as_echo "$as_val"'`
6534 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6535 $as_echo "$ac_res" >&6; }
6536 as_val=`eval 'as_val=${'$as_ac_var'}
6537 $as_echo "$as_val"'`
6538 if test "x$as_val" = x""yes; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6547 # Do not use bison 1.50 and 1.75.
6548 # 1.29 is required fr %locations, but I'm not sure it's enough --ns
6550 # ugh, automake: we want (and check for) bison
6551 for ac_prog in 'bison -y' byacc
6553 # Extract the first word of "$ac_prog", so it can be a program name with args.
6554 set dummy $ac_prog; ac_word=$2
6555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if test "${ac_cv_prog_YACC+set}" = set; then
6558 $as_echo_n "(cached) " >&6
6560 if test -n "$YACC"; then
6561 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 test -z "$as_dir" && as_dir=.
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570 ac_cv_prog_YACC="$ac_prog"
6571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 YACC=$ac_cv_prog_YACC
6581 if test -n "$YACC"; then
6582 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6583 $as_echo "$YACC" >&6; }
6585 { $as_echo "$as_me:$LINENO: result: no" >&5
6586 $as_echo "no" >&6; }
6590 test -n "$YACC" && break
6592 test -n "$YACC" || YACC="yacc"
6596 for ac_prog in bison
6598 # Extract the first word of "$ac_prog", so it can be a program name with args.
6599 set dummy $ac_prog; ac_word=$2
6600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if test "${ac_cv_prog_BISON+set}" = set; then
6603 $as_echo_n "(cached) " >&6
6605 if test -n "$BISON"; then
6606 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
6614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615 ac_cv_prog_BISON="$ac_prog"
6616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 BISON=$ac_cv_prog_BISON
6626 if test -n "$BISON"; then
6627 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
6628 $as_echo "$BISON" >&6; }
6630 { $as_echo "$as_me:$LINENO: result: no" >&5
6631 $as_echo "no" >&6; }
6635 test -n "$BISON" && break
6637 test -n "$BISON" || BISON="no"
6641 r="`eval echo '$'"BISON"`"
6642 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then
6645 ##STEPMAKE_WARN(cannot find . )
6649 if test $? -ne 0; then
6651 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\"
6653 if test "REQUIRED" = "REQUIRED"; then
6654 command="echo ERROR: bison not found"
6655 # abort configure process here?
6657 command="- echo bison not found"
6659 eval "BISON"='$command'
6665 if test $? -eq 0 -a -n ""; then
6667 r="`eval echo '$'"BISON"`"
6668 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6669 $as_echo_n "checking $r version... " >&6; }
6671 ## which doesn't work in ash, if /usr/bin/which isn't installed
6672 ## type -p doesn't work in ash
6673 ## command -v doesn't work in zsh
6674 ## command -v "$r" 2>&1
6675 ## this test should work in ash, bash, pdksh (ksh), zsh
6676 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6682 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6685 ## Workaround for broken Debian gcc version string:
6686 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6688 ## -V: Workaround for python
6692 ## Assume and hunt for dotted version multiplet.
6693 ## use eval trickery, because we cannot use multi-level $() instead of ``
6694 ## for compatibility reasons.
6696 ## grab the first version number in --version output.
6697 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6698 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6701 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6702 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6705 if test -z "$_ver"; then
6706 ## If empty, try date [fontforge]
6707 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6708 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6710 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6717 echo "$ver" | awk -F. '
6719 if ($3) {three = $3}
6722 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6727 if ($3) {three = $3}
6730 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6732 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6733 $as_echo "$ver" >&6; }
6734 if test "$num" -lt "$req"; then
6736 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6739 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6740 eval `echo $vervar=$num`
6741 ## AC_SUBST(`eval echo $vervar`)
6746 # urg. should test functionality rather than version.
6747 if test "$BISON" = "bison" -a -n "1.29"; then
6749 r="`eval echo '$'"BISON"`"
6750 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6751 $as_echo_n "checking $r version... " >&6; }
6753 ## which doesn't work in ash, if /usr/bin/which isn't installed
6754 ## type -p doesn't work in ash
6755 ## command -v doesn't work in zsh
6756 ## command -v "$r" 2>&1
6757 ## this test should work in ash, bash, pdksh (ksh), zsh
6758 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6764 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6767 ## Workaround for broken Debian gcc version string:
6768 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6770 ## -V: Workaround for python
6774 ## Assume and hunt for dotted version multiplet.
6775 ## use eval trickery, because we cannot use multi-level $() instead of ``
6776 ## for compatibility reasons.
6778 ## grab the first version number in --version output.
6779 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6780 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6783 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6784 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6787 if test -z "$_ver"; then
6788 ## If empty, try date [fontforge]
6789 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6790 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6792 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6799 echo "$ver" | awk -F. '
6801 if ($3) {three = $3}
6804 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6807 echo "1.29" | awk -F. '
6809 if ($3) {three = $3}
6812 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6814 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6815 $as_echo "$ver" >&6; }
6816 if test "$num" -lt "$req"; then
6818 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.29 (installed: $ver)"\"`\"
6821 vervar="`echo BISON | tr 'a-z' 'A-Z'`_VERSION"
6822 eval `echo $vervar=$num`
6823 ## AC_SUBST(`eval echo $vervar`)
6828 # ugh, automake: we want (and check for) flex
6830 # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack...
6834 ac_cv_prog_lex_root=lex.yy
6838 # Extract the first word of "$ac_prog", so it can be a program name with args.
6839 set dummy $ac_prog; ac_word=$2
6840 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if test "${ac_cv_prog_FLEX+set}" = set; then
6843 $as_echo_n "(cached) " >&6
6845 if test -n "$FLEX"; then
6846 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6855 ac_cv_prog_FLEX="$ac_prog"
6856 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865 FLEX=$ac_cv_prog_FLEX
6866 if test -n "$FLEX"; then
6867 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
6868 $as_echo "$FLEX" >&6; }
6870 { $as_echo "$as_me:$LINENO: result: no" >&5
6871 $as_echo "no" >&6; }
6875 test -n "$FLEX" && break
6877 test -n "$FLEX" || FLEX="no"
6881 r="`eval echo '$'"FLEX"`"
6882 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then
6885 ##STEPMAKE_WARN(cannot find . )
6889 if test $? -ne 0; then
6891 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\"
6893 if test "REQUIRED" = "REQUIRED"; then
6894 command="echo ERROR: flex not found"
6895 # abort configure process here?
6897 command="- echo flex not found"
6899 eval "FLEX"='$command'
6905 if test $? -eq 0 -a -n ""; then
6907 r="`eval echo '$'"FLEX"`"
6908 { $as_echo "$as_me:$LINENO: checking $r version" >&5
6909 $as_echo_n "checking $r version... " >&6; }
6911 ## which doesn't work in ash, if /usr/bin/which isn't installed
6912 ## type -p doesn't work in ash
6913 ## command -v doesn't work in zsh
6914 ## command -v "$r" 2>&1
6915 ## this test should work in ash, bash, pdksh (ksh), zsh
6916 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
6922 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
6925 ## Workaround for broken Debian gcc version string:
6926 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
6928 ## -V: Workaround for python
6932 ## Assume and hunt for dotted version multiplet.
6933 ## use eval trickery, because we cannot use multi-level $() instead of ``
6934 ## for compatibility reasons.
6936 ## grab the first version number in --version output.
6937 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
6938 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6941 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
6942 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
6945 if test -z "$_ver"; then
6946 ## If empty, try date [fontforge]
6947 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
6948 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
6950 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
6957 echo "$ver" | awk -F. '
6959 if ($3) {three = $3}
6962 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6967 if ($3) {three = $3}
6970 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
6972 { $as_echo "$as_me:$LINENO: result: $ver" >&5
6973 $as_echo "$ver" >&6; }
6974 if test "$num" -lt "$req"; then
6976 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
6979 vervar="`echo FLEX | tr 'a-z' 'A-Z'`_VERSION"
6980 eval `echo $vervar=$num`
6981 ## AC_SUBST(`eval echo $vervar`)
6986 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6987 $as_echo_n "checking for ANSI C header files... " >&6; }
6988 if test "${ac_cv_header_stdc+set}" = set; then
6989 $as_echo_n "(cached) " >&6
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
7010 rm -f conftest.$ac_objext
7011 if { (ac_try="$ac_compile"
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7017 $as_echo "$ac_try_echo") >&5
7018 (eval "$ac_compile") 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
7022 cat conftest.err >&5
7023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && {
7025 test -z "$ac_cxx_werror_flag" ||
7026 test ! -s conftest.err
7027 } && test -s conftest.$ac_objext; then
7028 ac_cv_header_stdc=yes
7030 $as_echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 ac_cv_header_stdc=no
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 if test $ac_cv_header_stdc = yes; then
7039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050 $EGREP "memchr" >/dev/null 2>&1; then
7053 ac_cv_header_stdc=no
7059 if test $ac_cv_header_stdc = yes; then
7060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7061 cat >conftest.$ac_ext <<_ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071 $EGREP "free" >/dev/null 2>&1; then
7074 ac_cv_header_stdc=no
7080 if test $ac_cv_header_stdc = yes; then
7081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7082 if test "$cross_compiling" = yes; then
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7093 #if ((' ' & 0x0FF) == 0x020)
7094 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7095 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7097 # define ISLOWER(c) \
7098 (('a' <= (c) && (c) <= 'i') \
7099 || ('j' <= (c) && (c) <= 'r') \
7100 || ('s' <= (c) && (c) <= 'z'))
7101 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7104 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7109 for (i = 0; i < 256; i++)
7110 if (XOR (islower (i), ISLOWER (i))
7111 || toupper (i) != TOUPPER (i))
7116 rm -f conftest$ac_exeext
7117 if { (ac_try="$ac_link"
7119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7120 *) ac_try_echo=$ac_try;;
7122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7123 $as_echo "$ac_try_echo") >&5
7124 (eval "$ac_link") 2>&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7128 { (case "(($ac_try" in
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7133 $as_echo "$ac_try_echo") >&5
7134 (eval "$ac_try") 2>&5
7136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7140 $as_echo "$as_me: program exited with status $ac_status" >&5
7141 $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_header_stdc=no
7147 rm -rf conftest.dSYM
7148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7155 $as_echo "$ac_cv_header_stdc" >&6; }
7156 if test $ac_cv_header_stdc = yes; then
7158 cat >>confdefs.h <<\_ACEOF
7159 #define STDC_HEADERS 1
7164 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7174 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7175 inttypes.h stdint.h unistd.h
7177 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7178 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7179 $as_echo_n "checking for $ac_header... " >&6; }
7180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7181 $as_echo_n "(cached) " >&6
7183 cat >conftest.$ac_ext <<_ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 $ac_includes_default
7191 #include <$ac_header>
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7203 grep -v '^ *+' conftest.er1 >conftest.err
7205 cat conftest.err >&5
7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_cxx_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7211 eval "$as_ac_Header=yes"
7213 $as_echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 eval "$as_ac_Header=no"
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 ac_res=`eval 'as_val=${'$as_ac_Header'}
7222 $as_echo "$as_val"'`
7223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7224 $as_echo "$ac_res" >&6; }
7225 as_val=`eval 'as_val=${'$as_ac_Header'}
7226 $as_echo "$as_val"'`
7227 if test "x$as_val" = x""yes; then
7228 cat >>confdefs.h <<_ACEOF
7229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7239 for ac_header in FlexLexer.h
7241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7243 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7244 $as_echo_n "checking for $ac_header... " >&6; }
7245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7246 $as_echo_n "(cached) " >&6
7248 ac_res=`eval 'as_val=${'$as_ac_Header'}
7249 $as_echo "$as_val"'`
7250 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7251 $as_echo "$ac_res" >&6; }
7253 # Is the header compilable?
7254 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7255 $as_echo_n "checking $ac_header usability... " >&6; }
7256 cat >conftest.$ac_ext <<_ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 $ac_includes_default
7263 #include <$ac_header>
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7272 $as_echo "$ac_try_echo") >&5
7273 (eval "$ac_compile") 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_cxx_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest.$ac_objext; then
7283 ac_header_compiler=yes
7285 $as_echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7288 ac_header_compiler=no
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7293 $as_echo "$ac_header_compiler" >&6; }
7295 # Is the header present?
7296 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7297 $as_echo_n "checking $ac_header presence... " >&6; }
7298 cat >conftest.$ac_ext <<_ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 #include <$ac_header>
7306 if { (ac_try="$ac_cpp conftest.$ac_ext"
7308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309 *) ac_try_echo=$ac_try;;
7311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7312 $as_echo "$ac_try_echo") >&5
7313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7315 grep -v '^ *+' conftest.er1 >conftest.err
7317 cat conftest.err >&5
7318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } >/dev/null && {
7320 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7321 test ! -s conftest.err
7323 ac_header_preproc=yes
7325 $as_echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7328 ac_header_preproc=no
7331 rm -f conftest.err conftest.$ac_ext
7332 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7333 $as_echo "$ac_header_preproc" >&6; }
7335 # So? What about this header?
7336 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7339 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7341 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7342 ac_header_preproc=yes
7345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7346 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7348 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7350 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7352 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7356 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7360 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 $as_echo_n "checking for $ac_header... " >&6; }
7362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363 $as_echo_n "(cached) " >&6
7365 eval "$as_ac_Header=\$ac_header_preproc"
7367 ac_res=`eval 'as_val=${'$as_ac_Header'}
7368 $as_echo "$as_val"'`
7369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7370 $as_echo "$ac_res" >&6; }
7373 as_val=`eval 'as_val=${'$as_ac_Header'}
7374 $as_echo "$as_val"'`
7375 if test "x$as_val" = x""yes; then
7376 cat >>confdefs.h <<_ACEOF
7377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7386 if test $? -ne 0; then
7387 warn='FlexLexer.h (flex package)'
7389 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
7392 # check for yyFlexLexer.yy_current_buffer,
7393 # in 2.5.4 <= flex < 2.5.29
7394 { $as_echo "$as_me:$LINENO: checking for yyFlexLexer.yy_current_buffer" >&5
7395 $as_echo_n "checking for yyFlexLexer.yy_current_buffer... " >&6; }
7396 if test "${stepmake_cv_flexlexer_yy_current_buffer+set}" = set; then
7397 $as_echo_n "(cached) " >&6
7399 cat >conftest.$ac_ext <<_ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7406 using namespace std;
7407 #include <FlexLexer.h>
7408 class yy_flex_lexer: public yyFlexLexer
7413 yy_current_buffer = 0;
7425 rm -f conftest.$ac_objext
7426 if { (ac_try="$ac_compile"
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432 $as_echo "$ac_try_echo") >&5
7433 (eval "$ac_compile") 2>conftest.er1
7435 grep -v '^ *+' conftest.er1 >conftest.err
7437 cat conftest.err >&5
7438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && {
7440 test -z "$ac_cxx_werror_flag" ||
7441 test ! -s conftest.err
7442 } && test -s conftest.$ac_objext; then
7443 stepmake_cv_flexlexer_yy_current_buffer=yes
7445 $as_echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7448 stepmake_cv_flexlexer_yy_current_buffer=no
7451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 { $as_echo "$as_me:$LINENO: result: $stepmake_cv_flexlexer_yy_current_buffer" >&5
7454 $as_echo "$stepmake_cv_flexlexer_yy_current_buffer" >&6; }
7455 if test $stepmake_cv_flexlexer_yy_current_buffer = yes; then
7457 cat >>confdefs.h <<\_ACEOF
7458 #define HAVE_FLEXLEXER_YY_CURRENT_BUFFER 1
7464 { $as_echo "$as_me:$LINENO: checking FlexLexer.h location" >&5
7465 $as_echo_n "checking FlexLexer.h location... " >&6; }
7468 cat <<EOF > conftest.cc
7469 using namespace std;
7470 #include <FlexLexer.h>
7472 FLEXLEXER_FILE=`eval $ac_cpp conftest.cc | \
7473 sed 's!# 1 "\(.*FlexLexer.h\)"!@FLEXLEXER@\1@@!g' | grep '@@' | \
7474 sed 's!.*@FLEXLEXER@\(.*\)@@.*$!\1!g' ` 1> /dev/null 2> /dev/null
7477 { $as_echo "$as_me:$LINENO: result: $FLEXLEXER_FILE" >&5
7478 $as_echo "$FLEXLEXER_FILE" >&6; }
7486 # Check whether --with-localedir was given.
7487 if test "${with_localedir+set}" = set; then
7488 withval=$with_localedir; localedir=$with_localedir
7490 localedir='${prefix}/share/locale'
7495 # Check whether --with-lang was given.
7496 if test "${with_lang+set}" = set; then
7497 withval=$with_lang; language=$with_lang
7503 { $as_echo "$as_me:$LINENO: checking language" >&5
7504 $as_echo_n "checking language... " >&6; }
7506 En* | en* | Am* | am* | US* | us*)
7508 NL | nl | Du* | du* | Ned* | ned*)
7515 { $as_echo "$as_me:$LINENO: result: $lang" >&5
7516 $as_echo "$lang" >&6; }
7518 if test "$lang" = "unknown" ; then
7520 { $as_echo "$as_me:$LINENO: WARNING: $language not supported; available are: $ALL_LINGUAS" >&5
7521 $as_echo "$as_me: WARNING: $language not supported; available are: $ALL_LINGUAS" >&2;}
7529 if test "$prefix" = "NONE"; then
7530 presome=${ac_default_prefix}
7532 LOCALEDIR=`echo ${localedir} | sed "s!\\\${prefix}!$presome!"`
7535 cat >>confdefs.h <<_ACEOF
7536 #define LOCALEDIR "${LOCALEDIR}"
7540 { $as_echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
7541 $as_echo_n "checking for gettext in -lintl... " >&6; }
7542 if test "${ac_cv_lib_intl_gettext+set}" = set; then
7543 $as_echo_n "(cached) " >&6
7545 ac_check_lib_save_LIBS=$LIBS
7547 cat >conftest.$ac_ext <<_ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7554 /* Override any GCC internal prototype to avoid an error.
7555 Use char because int might match the return type of a GCC
7556 builtin and then its argument prototype would still apply. */
7569 rm -f conftest.$ac_objext conftest$ac_exeext
7570 if { (ac_try="$ac_link"
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7576 $as_echo "$ac_try_echo") >&5
7577 (eval "$ac_link") 2>conftest.er1
7579 grep -v '^ *+' conftest.er1 >conftest.err
7581 cat conftest.err >&5
7582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } && {
7584 test -z "$ac_cxx_werror_flag" ||
7585 test ! -s conftest.err
7586 } && test -s conftest$ac_exeext && {
7587 test "$cross_compiling" = yes ||
7588 $as_test_x conftest$ac_exeext
7590 ac_cv_lib_intl_gettext=yes
7592 $as_echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_cv_lib_intl_gettext=no
7598 rm -rf conftest.dSYM
7599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7600 conftest$ac_exeext conftest.$ac_ext
7601 LIBS=$ac_check_lib_save_LIBS
7603 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
7604 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
7605 if test "x$ac_cv_lib_intl_gettext" = x""yes; then
7606 cat >>confdefs.h <<_ACEOF
7607 #define HAVE_LIBINTL 1
7615 for ac_func in gettext
7617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7618 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7619 $as_echo_n "checking for $ac_func... " >&6; }
7620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7621 $as_echo_n "(cached) " >&6
7623 cat >conftest.$ac_ext <<_ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7631 #define $ac_func innocuous_$ac_func
7633 /* System header to define __stub macros and hopefully few prototypes,
7634 which can conflict with char $ac_func (); below.
7635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636 <limits.h> exists even on freestanding compilers. */
7639 # include <limits.h>
7641 # include <assert.h>
7646 /* Override any GCC internal prototype to avoid an error.
7647 Use char because int might match the return type of a GCC
7648 builtin and then its argument prototype would still apply. */
7653 /* The GNU C library defines this for functions which it implements
7654 to always fail with ENOSYS. Some functions are actually named
7655 something starting with __ and the normal name is an alias. */
7656 #if defined __stub_$ac_func || defined __stub___$ac_func
7668 rm -f conftest.$ac_objext conftest$ac_exeext
7669 if { (ac_try="$ac_link"
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7675 $as_echo "$ac_try_echo") >&5
7676 (eval "$ac_link") 2>conftest.er1
7678 grep -v '^ *+' conftest.er1 >conftest.err
7680 cat conftest.err >&5
7681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && {
7683 test -z "$ac_cxx_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest$ac_exeext && {
7686 test "$cross_compiling" = yes ||
7687 $as_test_x conftest$ac_exeext
7689 eval "$as_ac_var=yes"
7691 $as_echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 eval "$as_ac_var=no"
7697 rm -rf conftest.dSYM
7698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7699 conftest$ac_exeext conftest.$ac_ext
7701 ac_res=`eval 'as_val=${'$as_ac_var'}
7702 $as_echo "$as_val"'`
7703 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7704 $as_echo "$ac_res" >&6; }
7705 as_val=`eval 'as_val=${'$as_ac_var'}
7706 $as_echo "$as_val"'`
7707 if test "x$as_val" = x""yes; then
7708 cat >>confdefs.h <<_ACEOF
7709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7718 for ac_prog in msgfmt
7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if test "${ac_cv_prog_MSGFMT+set}" = set; then
7725 $as_echo_n "(cached) " >&6
7727 if test -n "$MSGFMT"; then
7728 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 test -z "$as_dir" && as_dir=.
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737 ac_cv_prog_MSGFMT="$ac_prog"
7738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 MSGFMT=$ac_cv_prog_MSGFMT
7748 if test -n "$MSGFMT"; then
7749 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7750 $as_echo "$MSGFMT" >&6; }
7752 { $as_echo "$as_me:$LINENO: result: no" >&5
7753 $as_echo "no" >&6; }
7757 test -n "$MSGFMT" && break
7759 test -n "$MSGFMT" || MSGFMT="no"
7763 r="`eval echo '$'"MSGFMT"`"
7764 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then
7767 ##STEPMAKE_WARN(cannot find . )
7771 if test $? -ne 0; then
7773 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\"
7775 if test "REQUIRED" = "REQUIRED"; then
7776 command="echo ERROR: msgfmt not found"
7777 # abort configure process here?
7779 command="- echo msgfmt not found"
7781 eval "MSGFMT"='$command'
7787 if test $? -eq 0 -a -n ""; then
7789 r="`eval echo '$'"MSGFMT"`"
7790 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7791 $as_echo_n "checking $r version... " >&6; }
7793 ## which doesn't work in ash, if /usr/bin/which isn't installed
7794 ## type -p doesn't work in ash
7795 ## command -v doesn't work in zsh
7796 ## command -v "$r" 2>&1
7797 ## this test should work in ash, bash, pdksh (ksh), zsh
7798 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7804 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7807 ## Workaround for broken Debian gcc version string:
7808 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7810 ## -V: Workaround for python
7814 ## Assume and hunt for dotted version multiplet.
7815 ## use eval trickery, because we cannot use multi-level $() instead of ``
7816 ## for compatibility reasons.
7818 ## grab the first version number in --version output.
7819 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7820 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7823 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7824 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7827 if test -z "$_ver"; then
7828 ## If empty, try date [fontforge]
7829 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7830 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7832 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7839 echo "$ver" | awk -F. '
7841 if ($3) {three = $3}
7844 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7849 if ($3) {three = $3}
7852 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
7854 { $as_echo "$as_me:$LINENO: result: $ver" >&5
7855 $as_echo "$ver" >&6; }
7856 if test "$num" -lt "$req"; then
7858 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
7861 vervar="`echo MSGFMT | tr 'a-z' 'A-Z'`_VERSION"
7862 eval `echo $vervar=$num`
7863 ## AC_SUBST(`eval echo $vervar`)
7870 for ac_prog in mf-nowin mf mfw mfont
7872 # Extract the first word of "$ac_prog", so it can be a program name with args.
7873 set dummy $ac_prog; ac_word=$2
7874 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if test "${ac_cv_prog_METAFONT+set}" = set; then
7877 $as_echo_n "(cached) " >&6
7879 if test -n "$METAFONT"; then
7880 ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7889 ac_cv_prog_METAFONT="$ac_prog"
7890 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7899 METAFONT=$ac_cv_prog_METAFONT
7900 if test -n "$METAFONT"; then
7901 { $as_echo "$as_me:$LINENO: result: $METAFONT" >&5
7902 $as_echo "$METAFONT" >&6; }
7904 { $as_echo "$as_me:$LINENO: result: no" >&5
7905 $as_echo "no" >&6; }
7909 test -n "$METAFONT" && break
7911 test -n "$METAFONT" || METAFONT="no"
7915 r="`eval echo '$'"METAFONT"`"
7916 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then
7919 ##STEPMAKE_WARN(cannot find . )
7923 if test $? -ne 0; then
7925 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mf-nowin mf mfw mfont\"`\"
7927 if test "REQUIRED" = "REQUIRED"; then
7928 command="echo ERROR: mf-nowin mf mfw mfont not found"
7929 # abort configure process here?
7931 command="- echo mf-nowin mf mfw mfont not found"
7933 eval "METAFONT"='$command'
7939 if test $? -eq 0 -a -n ""; then
7941 r="`eval echo '$'"METAFONT"`"
7942 { $as_echo "$as_me:$LINENO: checking $r version" >&5
7943 $as_echo_n "checking $r version... " >&6; }
7945 ## which doesn't work in ash, if /usr/bin/which isn't installed
7946 ## type -p doesn't work in ash
7947 ## command -v doesn't work in zsh
7948 ## command -v "$r" 2>&1
7949 ## this test should work in ash, bash, pdksh (ksh), zsh
7950 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
7956 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
7959 ## Workaround for broken Debian gcc version string:
7960 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
7962 ## -V: Workaround for python
7966 ## Assume and hunt for dotted version multiplet.
7967 ## use eval trickery, because we cannot use multi-level $() instead of ``
7968 ## for compatibility reasons.
7970 ## grab the first version number in --version output.
7971 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
7972 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7975 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
7976 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
7979 if test -z "$_ver"; then
7980 ## If empty, try date [fontforge]
7981 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
7982 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
7984 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
7991 echo "$ver" | awk -F. '
7993 if ($3) {three = $3}
7996 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8001 if ($3) {three = $3}
8004 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8006 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8007 $as_echo "$ver" >&6; }
8008 if test "$num" -lt "$req"; then
8010 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8013 vervar="`echo METAFONT | tr 'a-z' 'A-Z'`_VERSION"
8014 eval `echo $vervar=$num`
8015 ## AC_SUBST(`eval echo $vervar`)
8020 for ac_prog in mpost
8022 # Extract the first word of "$ac_prog", so it can be a program name with args.
8023 set dummy $ac_prog; ac_word=$2
8024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_METAPOST+set}" = set; then
8027 $as_echo_n "(cached) " >&6
8029 if test -n "$METAPOST"; then
8030 ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test.
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_METAPOST="$ac_prog"
8040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8049 METAPOST=$ac_cv_prog_METAPOST
8050 if test -n "$METAPOST"; then
8051 { $as_echo "$as_me:$LINENO: result: $METAPOST" >&5
8052 $as_echo "$METAPOST" >&6; }
8054 { $as_echo "$as_me:$LINENO: result: no" >&5
8055 $as_echo "no" >&6; }
8059 test -n "$METAPOST" && break
8061 test -n "$METAPOST" || METAPOST="no"
8065 r="`eval echo '$'"METAPOST"`"
8066 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"METAPOST"`' : '.*\(echo\)' > /dev/null; then
8069 ##STEPMAKE_WARN(cannot find . )
8073 if test $? -ne 0; then
8075 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"mpost\"`\"
8077 if test "REQUIRED" = "REQUIRED"; then
8078 command="echo ERROR: mpost not found"
8079 # abort configure process here?
8081 command="- echo mpost not found"
8083 eval "METAPOST"='$command'
8089 if test $? -eq 0 -a -n ""; then
8091 r="`eval echo '$'"METAPOST"`"
8092 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8093 $as_echo_n "checking $r version... " >&6; }
8095 ## which doesn't work in ash, if /usr/bin/which isn't installed
8096 ## type -p doesn't work in ash
8097 ## command -v doesn't work in zsh
8098 ## command -v "$r" 2>&1
8099 ## this test should work in ash, bash, pdksh (ksh), zsh
8100 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8106 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8109 ## Workaround for broken Debian gcc version string:
8110 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8112 ## -V: Workaround for python
8116 ## Assume and hunt for dotted version multiplet.
8117 ## use eval trickery, because we cannot use multi-level $() instead of ``
8118 ## for compatibility reasons.
8120 ## grab the first version number in --version output.
8121 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8122 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8125 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8126 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8129 if test -z "$_ver"; then
8130 ## If empty, try date [fontforge]
8131 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8132 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8134 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8141 echo "$ver" | awk -F. '
8143 if ($3) {three = $3}
8146 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8151 if ($3) {three = $3}
8154 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8156 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8157 $as_echo "$ver" >&6; }
8158 if test "$num" -lt "$req"; then
8160 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8163 vervar="`echo METAPOST | tr 'a-z' 'A-Z'`_VERSION"
8164 eval `echo $vervar=$num`
8165 ## AC_SUBST(`eval echo $vervar`)
8169 if test "$METAPOST" != ""; then
8171 ## "$METAPOST" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8174 ## Workaround for broken Debian gcc version string:
8175 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8177 ## -V: Workaround for python
8181 ## Assume and hunt for dotted version multiplet.
8182 ## use eval trickery, because we cannot use multi-level $() instead of ``
8183 ## for compatibility reasons.
8185 ## grab the first version number in --version output.
8186 eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 |
8187 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8190 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8191 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8194 if test -z "$_ver"; then
8195 ## If empty, try date [fontforge]
8196 eval _ver=\"\`("$METAPOST" --version || "$METAPOST" -V) 2>&1 \
8197 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8199 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8205 echo "$ver" | awk -F. '
8207 if ($3) {three = $3}
8210 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8212 # Avoid buggy metapost versions: 1.600 <= x < 1.803
8213 if test "$num" -ge "1600000" -a "$num" -lt "1803000"; then
8215 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""mpost (due to a bug in metapost, versions 1.600 <= x < 1.803 are not supported; installed: $ver)"\"`\"
8220 { $as_echo "$as_me:$LINENO: checking for working metafont mode" >&5
8221 $as_echo_n "checking for working metafont mode... " >&6; }
8222 modelist='ljfour lj4 lj3 lj2 ljet laserjet'
8223 for MFMODE in $modelist; do
8224 $METAFONT -progname=mf "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1
8225 if test -f mfput.tfm; then
8229 { $as_echo "$as_me:$LINENO: result: $MFMODE" >&5
8230 $as_echo "$MFMODE" >&6; }
8238 for ac_prog in kpsewhich
8240 # Extract the first word of "$ac_prog", so it can be a program name with args.
8241 set dummy $ac_prog; ac_word=$2
8242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_prog_KPSEWHICH+set}" = set; then
8245 $as_echo_n "(cached) " >&6
8247 if test -n "$KPSEWHICH"; then
8248 ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test.
8250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 test -z "$as_dir" && as_dir=.
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8257 ac_cv_prog_KPSEWHICH="$ac_prog"
8258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 KPSEWHICH=$ac_cv_prog_KPSEWHICH
8268 if test -n "$KPSEWHICH"; then
8269 { $as_echo "$as_me:$LINENO: result: $KPSEWHICH" >&5
8270 $as_echo "$KPSEWHICH" >&6; }
8272 { $as_echo "$as_me:$LINENO: result: no" >&5
8273 $as_echo "no" >&6; }
8277 test -n "$KPSEWHICH" && break
8279 test -n "$KPSEWHICH" || KPSEWHICH="no"
8283 r="`eval echo '$'"KPSEWHICH"`"
8284 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then
8287 ##STEPMAKE_WARN(cannot find . )
8291 if test $? -ne 0; then
8293 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"kpsewhich\"`\"
8295 if test "REQUIRED" = "REQUIRED"; then
8296 command="echo ERROR: kpsewhich not found"
8297 # abort configure process here?
8299 command="- echo kpsewhich not found"
8301 eval "KPSEWHICH"='$command'
8307 if test $? -eq 0 -a -n ""; then
8309 r="`eval echo '$'"KPSEWHICH"`"
8310 { $as_echo "$as_me:$LINENO: checking $r version" >&5
8311 $as_echo_n "checking $r version... " >&6; }
8313 ## which doesn't work in ash, if /usr/bin/which isn't installed
8314 ## type -p doesn't work in ash
8315 ## command -v doesn't work in zsh
8316 ## command -v "$r" 2>&1
8317 ## this test should work in ash, bash, pdksh (ksh), zsh
8318 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8324 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8327 ## Workaround for broken Debian gcc version string:
8328 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8330 ## -V: Workaround for python
8334 ## Assume and hunt for dotted version multiplet.
8335 ## use eval trickery, because we cannot use multi-level $() instead of ``
8336 ## for compatibility reasons.
8338 ## grab the first version number in --version output.
8339 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8340 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8343 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8344 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8347 if test -z "$_ver"; then
8348 ## If empty, try date [fontforge]
8349 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8350 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8352 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8359 echo "$ver" | awk -F. '
8361 if ($3) {three = $3}
8364 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8369 if ($3) {three = $3}
8372 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8374 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8375 $as_echo "$ver" >&6; }
8376 if test "$num" -lt "$req"; then
8378 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
8381 vervar="`echo KPSEWHICH | tr 'a-z' 'A-Z'`_VERSION"
8382 eval `echo $vervar=$num`
8383 ## AC_SUBST(`eval echo $vervar`)
8388 { $as_echo "$as_me:$LINENO: checking for metapost required files" >&5
8389 $as_echo_n "checking for metapost required files... " >&6; }
8390 if test "$MFPLAIN_MP" = ""; then
8391 MFPLAIN_MP=`kpsewhich -format=mp mfplain`
8393 if test "$MFPLAIN_MP" = ""; then
8394 { $as_echo "$as_me:$LINENO: result: no" >&5
8395 $as_echo "no" >&6; }
8397 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'metapost CTAN package (texlive-metapost)'\"`\"
8400 { $as_echo "$as_me:$LINENO: result: yes" >&5
8401 $as_echo "yes" >&6; }
8404 if test "$GUILEv2" = "yes"
8407 ## First, let's just see if we can find Guile at all.
8408 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8409 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8410 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8411 $as_echo_n "checking for guile-config... " >&6; }
8412 guile_config="guile-config"
8414 for r in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile2-config guile2.0-config guile-2.0-config guile1-config guile1.9-config guile1.8-config guile-1-config guile-1.9-config guile-1.8-config; do
8416 ## which doesn't work in ash, if /usr/bin/which isn't installed
8417 ## type -p doesn't work in ash
8418 ## command -v doesn't work in zsh
8419 ## command -v "$r" 2>&1
8420 ## this test should work in ash, bash, pdksh (ksh), zsh
8421 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8423 if ! $exe --version > /dev/null 2>&1 ; then
8427 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8430 ## Workaround for broken Debian gcc version string:
8431 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8433 ## -V: Workaround for python
8437 ## Assume and hunt for dotted version multiplet.
8438 ## use eval trickery, because we cannot use multi-level $() instead of ``
8439 ## for compatibility reasons.
8441 ## grab the first version number in --version output.
8442 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8443 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8446 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8447 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8450 if test -z "$_ver"; then
8451 ## If empty, try date [fontforge]
8452 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8453 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8455 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8461 echo "$ver" | awk -F. '
8463 if ($3) {three = $3}
8466 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8469 echo "2.0.7" | awk -F. '
8471 if ($3) {three = $3}
8474 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8477 echo "2.2.0" | awk -F. '
8479 if ($3) {three = $3}
8482 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8484 if test -n "2.0.7" -a "$num" -lt "$req"; then
8485 guile_config="$r >= 2.0.7 (installed: $ver)"
8488 if test -n "2.2.0" -a "$num" -ge "$sup"; then
8489 guile_config="$r < 2.2.0 (installed: $ver)"
8498 { $as_echo "$as_me:$LINENO: result: $found" >&5
8499 $as_echo "$found" >&6; }
8500 if test "$found" != "no"; then
8501 { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8502 $as_echo_n "checking $guile_config version... " >&6; }
8503 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8504 $as_echo "$ver" >&6; }
8508 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
8514 guile_version="$ver"
8516 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
8517 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
8518 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
8522 ## which doesn't work in ash, if /usr/bin/which isn't installed
8523 ## type -p doesn't work in ash
8524 ## command -v doesn't work in zsh
8525 ## command -v "$guile_config" 2>&1
8526 ## this test should work in ash, bash, pdksh (ksh), zsh
8527 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
8529 if test -x $exe; then
8530 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
8531 $as_echo_n "checking guile compile flags... " >&6; }
8532 GUILE_CFLAGS="`$guile_config compile`"
8533 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
8534 $as_echo "$GUILE_CFLAGS" >&6; }
8535 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
8536 $as_echo_n "checking guile link flags... " >&6; }
8537 GUILE_LDFLAGS="`$guile_config link`"
8538 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
8539 $as_echo "$GUILE_LDFLAGS" >&6; }
8544 save_CPPFLAGS="$CPPFLAGS"
8546 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
8547 LIBS="$GUILE_LDFLAGS $LIBS"
8549 for ac_header in libguile.h
8551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8554 $as_echo_n "checking for $ac_header... " >&6; }
8555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556 $as_echo_n "(cached) " >&6
8558 ac_res=`eval 'as_val=${'$as_ac_Header'}
8559 $as_echo "$as_val"'`
8560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8561 $as_echo "$ac_res" >&6; }
8563 # Is the header compilable?
8564 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8565 $as_echo_n "checking $ac_header usability... " >&6; }
8566 cat >conftest.$ac_ext <<_ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h. */
8572 $ac_includes_default
8573 #include <$ac_header>
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8582 $as_echo "$ac_try_echo") >&5
8583 (eval "$ac_compile") 2>conftest.er1
8585 grep -v '^ *+' conftest.er1 >conftest.err
8587 cat conftest.err >&5
8588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } && {
8590 test -z "$ac_cxx_werror_flag" ||
8591 test ! -s conftest.err
8592 } && test -s conftest.$ac_objext; then
8593 ac_header_compiler=yes
8595 $as_echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 ac_header_compiler=no
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8603 $as_echo "$ac_header_compiler" >&6; }
8605 # Is the header present?
8606 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8607 $as_echo_n "checking $ac_header presence... " >&6; }
8608 cat >conftest.$ac_ext <<_ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 #include <$ac_header>
8616 if { (ac_try="$ac_cpp conftest.$ac_ext"
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8622 $as_echo "$ac_try_echo") >&5
8623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8625 grep -v '^ *+' conftest.er1 >conftest.err
8627 cat conftest.err >&5
8628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } >/dev/null && {
8630 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8631 test ! -s conftest.err
8633 ac_header_preproc=yes
8635 $as_echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 ac_header_preproc=no
8641 rm -f conftest.err conftest.$ac_ext
8642 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 $as_echo "$ac_header_preproc" >&6; }
8645 # So? What about this header?
8646 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8649 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8652 ac_header_preproc=yes
8655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8656 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8658 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8660 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8662 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8666 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8671 $as_echo_n "checking for $ac_header... " >&6; }
8672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8673 $as_echo_n "(cached) " >&6
8675 eval "$as_ac_Header=\$ac_header_preproc"
8677 ac_res=`eval 'as_val=${'$as_ac_Header'}
8678 $as_echo "$as_val"'`
8679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8680 $as_echo "$ac_res" >&6; }
8683 as_val=`eval 'as_val=${'$as_ac_Header'}
8684 $as_echo "$as_val"'`
8685 if test "x$as_val" = x""yes; then
8686 cat >>confdefs.h <<_ACEOF
8687 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8695 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
8696 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
8697 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
8698 $as_echo_n "(cached) " >&6
8700 ac_check_lib_save_LIBS=$LIBS
8701 LIBS="-lguile $LIBS"
8702 cat >conftest.$ac_ext <<_ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h. */
8709 /* Override any GCC internal prototype to avoid an error.
8710 Use char because int might match the return type of a GCC
8711 builtin and then its argument prototype would still apply. */
8715 char scm_boot_guile ();
8719 return scm_boot_guile ();
8724 rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (ac_try="$ac_link"
8727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8731 $as_echo "$ac_try_echo") >&5
8732 (eval "$ac_link") 2>conftest.er1
8734 grep -v '^ *+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && {
8739 test -z "$ac_cxx_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest$ac_exeext && {
8742 test "$cross_compiling" = yes ||
8743 $as_test_x conftest$ac_exeext
8745 ac_cv_lib_guile_scm_boot_guile=yes
8747 $as_echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8750 ac_cv_lib_guile_scm_boot_guile=no
8753 rm -rf conftest.dSYM
8754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8755 conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8758 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
8759 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
8760 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
8761 cat >>confdefs.h <<_ACEOF
8762 #define HAVE_LIBGUILE 1
8765 LIBS="-lguile $LIBS"
8770 for ac_func in scm_boot_guile
8772 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8773 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8774 $as_echo_n "checking for $ac_func... " >&6; }
8775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8776 $as_echo_n "(cached) " >&6
8778 cat >conftest.$ac_ext <<_ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8786 #define $ac_func innocuous_$ac_func
8788 /* System header to define __stub macros and hopefully few prototypes,
8789 which can conflict with char $ac_func (); below.
8790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791 <limits.h> exists even on freestanding compilers. */
8794 # include <limits.h>
8796 # include <assert.h>
8801 /* Override any GCC internal prototype to avoid an error.
8802 Use char because int might match the return type of a GCC
8803 builtin and then its argument prototype would still apply. */
8808 /* The GNU C library defines this for functions which it implements
8809 to always fail with ENOSYS. Some functions are actually named
8810 something starting with __ and the normal name is an alias. */
8811 #if defined __stub_$ac_func || defined __stub___$ac_func
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (ac_try="$ac_link"
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8830 $as_echo "$ac_try_echo") >&5
8831 (eval "$ac_link") 2>conftest.er1
8833 grep -v '^ *+' conftest.er1 >conftest.err
8835 cat conftest.err >&5
8836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); } && {
8838 test -z "$ac_cxx_werror_flag" ||
8839 test ! -s conftest.err
8840 } && test -s conftest$ac_exeext && {
8841 test "$cross_compiling" = yes ||
8842 $as_test_x conftest$ac_exeext
8844 eval "$as_ac_var=yes"
8846 $as_echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 eval "$as_ac_var=no"
8852 rm -rf conftest.dSYM
8853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8854 conftest$ac_exeext conftest.$ac_ext
8856 ac_res=`eval 'as_val=${'$as_ac_var'}
8857 $as_echo "$as_val"'`
8858 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8859 $as_echo "$ac_res" >&6; }
8860 as_val=`eval 'as_val=${'$as_ac_var'}
8861 $as_echo "$as_val"'`
8862 if test "x$as_val" = x""yes; then
8863 cat >>confdefs.h <<_ACEOF
8864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8872 if test "$libguile_b" = "no"; then
8873 warn='libguile (libguile-dev, guile-devel or guile-dev
8876 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
8879 CPPFLAGS="$save_CPPFLAGS"
8881 cat >>confdefs.h <<_ACEOF
8882 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
8885 cat >>confdefs.h <<_ACEOF
8886 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
8889 cat >>confdefs.h <<_ACEOF
8890 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
8896 ## First, let's just see if we can find Guile at all.
8897 test -n "$target_alias" && target_guile_config=$target_alias-guile-config
8898 test -n "$host_alias" && host_guile_config=$host_alias-guile-config
8899 { $as_echo "$as_me:$LINENO: checking for guile-config" >&5
8900 $as_echo_n "checking for guile-config... " >&6; }
8901 guile_config="guile-config"
8903 for r in $GUILE_CONFIG $target_guile_config $host_guile_config $build_guile_config guile-config guile2-config guile2.0-config guile-2.0-config guile1-config guile1.9-config guile1.8-config guile-1-config guile-1.9-config guile-1.8-config; do
8905 ## which doesn't work in ash, if /usr/bin/which isn't installed
8906 ## type -p doesn't work in ash
8907 ## command -v doesn't work in zsh
8908 ## command -v "$r" 2>&1
8909 ## this test should work in ash, bash, pdksh (ksh), zsh
8910 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
8912 if ! $exe --version > /dev/null 2>&1 ; then
8916 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
8919 ## Workaround for broken Debian gcc version string:
8920 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
8922 ## -V: Workaround for python
8926 ## Assume and hunt for dotted version multiplet.
8927 ## use eval trickery, because we cannot use multi-level $() instead of ``
8928 ## for compatibility reasons.
8930 ## grab the first version number in --version output.
8931 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
8932 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8935 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
8936 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
8939 if test -z "$_ver"; then
8940 ## If empty, try date [fontforge]
8941 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
8942 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
8944 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
8950 echo "$ver" | awk -F. '
8952 if ($3) {three = $3}
8955 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8958 echo "1.8.2" | awk -F. '
8960 if ($3) {three = $3}
8963 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8966 echo "1.9.0" | awk -F. '
8968 if ($3) {three = $3}
8971 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
8973 if test -n "1.8.2" -a "$num" -lt "$req"; then
8974 guile_config="$r >= 1.8.2 (installed: $ver)"
8977 if test -n "1.9.0" -a "$num" -ge "$sup"; then
8978 guile_config="$r < 1.9.0 (installed: $ver)"
8987 { $as_echo "$as_me:$LINENO: result: $found" >&5
8988 $as_echo "$found" >&6; }
8989 if test "$found" != "no"; then
8990 { $as_echo "$as_me:$LINENO: checking $guile_config version" >&5
8991 $as_echo_n "checking $guile_config version... " >&6; }
8992 { $as_echo "$as_me:$LINENO: result: $ver" >&5
8993 $as_echo "$ver" >&6; }
8997 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$guile_config (guile-devel, guile-dev or libguile-dev package)"\"`\"
9003 guile_version="$ver"
9005 GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'`
9006 GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'`
9007 GUILE_PATCH_LEVEL=`expr $guile_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9011 ## which doesn't work in ash, if /usr/bin/which isn't installed
9012 ## type -p doesn't work in ash
9013 ## command -v doesn't work in zsh
9014 ## command -v "$guile_config" 2>&1
9015 ## this test should work in ash, bash, pdksh (ksh), zsh
9016 type -p $guile_config 2>/dev/null | tail -n 1 | awk '{print $NF}'
9018 if test -x $exe; then
9019 { $as_echo "$as_me:$LINENO: checking guile compile flags" >&5
9020 $as_echo_n "checking guile compile flags... " >&6; }
9021 GUILE_CFLAGS="`$guile_config compile`"
9022 { $as_echo "$as_me:$LINENO: result: $GUILE_CFLAGS" >&5
9023 $as_echo "$GUILE_CFLAGS" >&6; }
9024 { $as_echo "$as_me:$LINENO: checking guile link flags" >&5
9025 $as_echo_n "checking guile link flags... " >&6; }
9026 GUILE_LDFLAGS="`$guile_config link`"
9027 { $as_echo "$as_me:$LINENO: result: $GUILE_LDFLAGS" >&5
9028 $as_echo "$GUILE_LDFLAGS" >&6; }
9033 save_CPPFLAGS="$CPPFLAGS"
9035 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9036 LIBS="$GUILE_LDFLAGS $LIBS"
9038 for ac_header in libguile.h
9040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 $as_echo_n "checking for $ac_header... " >&6; }
9044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9045 $as_echo_n "(cached) " >&6
9047 ac_res=`eval 'as_val=${'$as_ac_Header'}
9048 $as_echo "$as_val"'`
9049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9050 $as_echo "$ac_res" >&6; }
9052 # Is the header compilable?
9053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9054 $as_echo_n "checking $ac_header usability... " >&6; }
9055 cat >conftest.$ac_ext <<_ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h. */
9061 $ac_includes_default
9062 #include <$ac_header>
9064 rm -f conftest.$ac_objext
9065 if { (ac_try="$ac_compile"
9067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068 *) ac_try_echo=$ac_try;;
9070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9071 $as_echo "$ac_try_echo") >&5
9072 (eval "$ac_compile") 2>conftest.er1
9074 grep -v '^ *+' conftest.er1 >conftest.err
9076 cat conftest.err >&5
9077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); } && {
9079 test -z "$ac_cxx_werror_flag" ||
9080 test ! -s conftest.err
9081 } && test -s conftest.$ac_objext; then
9082 ac_header_compiler=yes
9084 $as_echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9087 ac_header_compiler=no
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9092 $as_echo "$ac_header_compiler" >&6; }
9094 # Is the header present?
9095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9096 $as_echo_n "checking $ac_header presence... " >&6; }
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 #include <$ac_header>
9105 if { (ac_try="$ac_cpp conftest.$ac_ext"
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9111 $as_echo "$ac_try_echo") >&5
9112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9114 grep -v '^ *+' conftest.er1 >conftest.err
9116 cat conftest.err >&5
9117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 (exit $ac_status); } >/dev/null && {
9119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9120 test ! -s conftest.err
9122 ac_header_preproc=yes
9124 $as_echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 ac_header_preproc=no
9130 rm -f conftest.err conftest.$ac_ext
9131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9132 $as_echo "$ac_header_preproc" >&6; }
9134 # So? What about this header?
9135 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9141 ac_header_preproc=yes
9144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9147 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9151 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9160 $as_echo_n "checking for $ac_header... " >&6; }
9161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9162 $as_echo_n "(cached) " >&6
9164 eval "$as_ac_Header=\$ac_header_preproc"
9166 ac_res=`eval 'as_val=${'$as_ac_Header'}
9167 $as_echo "$as_val"'`
9168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9169 $as_echo "$ac_res" >&6; }
9172 as_val=`eval 'as_val=${'$as_ac_Header'}
9173 $as_echo "$as_val"'`
9174 if test "x$as_val" = x""yes; then
9175 cat >>confdefs.h <<_ACEOF
9176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9184 { $as_echo "$as_me:$LINENO: checking for scm_boot_guile in -lguile" >&5
9185 $as_echo_n "checking for scm_boot_guile in -lguile... " >&6; }
9186 if test "${ac_cv_lib_guile_scm_boot_guile+set}" = set; then
9187 $as_echo_n "(cached) " >&6
9189 ac_check_lib_save_LIBS=$LIBS
9190 LIBS="-lguile $LIBS"
9191 cat >conftest.$ac_ext <<_ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h. */
9198 /* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9204 char scm_boot_guile ();
9208 return scm_boot_guile ();
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (ac_try="$ac_link"
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9220 $as_echo "$ac_try_echo") >&5
9221 (eval "$ac_link") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1 >conftest.err
9225 cat conftest.err >&5
9226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_cxx_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest$ac_exeext && {
9231 test "$cross_compiling" = yes ||
9232 $as_test_x conftest$ac_exeext
9234 ac_cv_lib_guile_scm_boot_guile=yes
9236 $as_echo "$as_me: failed program was:" >&5
9237 sed 's/^/| /' conftest.$ac_ext >&5
9239 ac_cv_lib_guile_scm_boot_guile=no
9242 rm -rf conftest.dSYM
9243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9244 conftest$ac_exeext conftest.$ac_ext
9245 LIBS=$ac_check_lib_save_LIBS
9247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_guile_scm_boot_guile" >&5
9248 $as_echo "$ac_cv_lib_guile_scm_boot_guile" >&6; }
9249 if test "x$ac_cv_lib_guile_scm_boot_guile" = x""yes; then
9250 cat >>confdefs.h <<_ACEOF
9251 #define HAVE_LIBGUILE 1
9254 LIBS="-lguile $LIBS"
9259 for ac_func in scm_boot_guile
9261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9262 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9263 $as_echo_n "checking for $ac_func... " >&6; }
9264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9265 $as_echo_n "(cached) " >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9275 #define $ac_func innocuous_$ac_func
9277 /* System header to define __stub macros and hopefully few prototypes,
9278 which can conflict with char $ac_func (); below.
9279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9280 <limits.h> exists even on freestanding compilers. */
9283 # include <limits.h>
9285 # include <assert.h>
9290 /* Override any GCC internal prototype to avoid an error.
9291 Use char because int might match the return type of a GCC
9292 builtin and then its argument prototype would still apply. */
9297 /* The GNU C library defines this for functions which it implements
9298 to always fail with ENOSYS. Some functions are actually named
9299 something starting with __ and the normal name is an alias. */
9300 #if defined __stub_$ac_func || defined __stub___$ac_func
9312 rm -f conftest.$ac_objext conftest$ac_exeext
9313 if { (ac_try="$ac_link"
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9319 $as_echo "$ac_try_echo") >&5
9320 (eval "$ac_link") 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && {
9327 test -z "$ac_cxx_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest$ac_exeext && {
9330 test "$cross_compiling" = yes ||
9331 $as_test_x conftest$ac_exeext
9333 eval "$as_ac_var=yes"
9335 $as_echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 eval "$as_ac_var=no"
9341 rm -rf conftest.dSYM
9342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9343 conftest$ac_exeext conftest.$ac_ext
9345 ac_res=`eval 'as_val=${'$as_ac_var'}
9346 $as_echo "$as_val"'`
9347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9348 $as_echo "$ac_res" >&6; }
9349 as_val=`eval 'as_val=${'$as_ac_var'}
9350 $as_echo "$as_val"'`
9351 if test "x$as_val" = x""yes; then
9352 cat >>confdefs.h <<_ACEOF
9353 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9361 if test "$libguile_b" = "no"; then
9362 warn='libguile (libguile-dev, guile-devel or guile-dev
9365 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
9368 CPPFLAGS="$save_CPPFLAGS"
9370 cat >>confdefs.h <<_ACEOF
9371 #define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
9374 cat >>confdefs.h <<_ACEOF
9375 #define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
9378 cat >>confdefs.h <<_ACEOF
9379 #define GUILE_PATCH_LEVEL $GUILE_PATCH_LEVEL
9385 # check for 3 typedefs added in Guile 1.9
9386 save_CXXFLAGS="$CXXFLAGS"
9387 CXXFLAGS="$GUILE_CFLAGS $CXXFLAGS"
9388 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_fold_fn" >&5
9389 $as_echo_n "checking for scm_t_hash_fold_fn... " >&6; }
9390 if test "${ac_cv_type_scm_t_hash_fold_fn+set}" = set; then
9391 $as_echo_n "(cached) " >&6
9393 ac_cv_type_scm_t_hash_fold_fn=no
9394 cat >conftest.$ac_ext <<_ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 #include <libguile.h>
9405 if (sizeof (scm_t_hash_fold_fn))
9411 rm -f conftest.$ac_objext
9412 if { (ac_try="$ac_compile"
9414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415 *) ac_try_echo=$ac_try;;
9417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9418 $as_echo "$ac_try_echo") >&5
9419 (eval "$ac_compile") 2>conftest.er1
9421 grep -v '^ *+' conftest.er1 >conftest.err
9423 cat conftest.err >&5
9424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } && {
9426 test -z "$ac_cxx_werror_flag" ||
9427 test ! -s conftest.err
9428 } && test -s conftest.$ac_objext; then
9429 cat >conftest.$ac_ext <<_ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9435 #include <libguile.h>
9440 if (sizeof ((scm_t_hash_fold_fn)))
9446 rm -f conftest.$ac_objext
9447 if { (ac_try="$ac_compile"
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9453 $as_echo "$ac_try_echo") >&5
9454 (eval "$ac_compile") 2>conftest.er1
9456 grep -v '^ *+' conftest.er1 >conftest.err
9458 cat conftest.err >&5
9459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } && {
9461 test -z "$ac_cxx_werror_flag" ||
9462 test ! -s conftest.err
9463 } && test -s conftest.$ac_objext; then
9466 $as_echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ac_cv_type_scm_t_hash_fold_fn=yes
9472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9474 $as_echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9482 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_fold_fn" >&5
9483 $as_echo "$ac_cv_type_scm_t_hash_fold_fn" >&6; }
9484 if test "x$ac_cv_type_scm_t_hash_fold_fn" = x""yes; then
9486 cat >>confdefs.h <<_ACEOF
9487 #define HAVE_SCM_T_HASH_FOLD_FN 1
9490 cat >>confdefs.h <<\_ACEOF
9491 #define HAVE_GUILE_HASH_FUNC 1
9495 { $as_echo "$as_me:$LINENO: checking for scm_t_hash_handle_fn" >&5
9496 $as_echo_n "checking for scm_t_hash_handle_fn... " >&6; }
9497 if test "${ac_cv_type_scm_t_hash_handle_fn+set}" = set; then
9498 $as_echo_n "(cached) " >&6
9500 ac_cv_type_scm_t_hash_handle_fn=no
9501 cat >conftest.$ac_ext <<_ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 #include <libguile.h>
9512 if (sizeof (scm_t_hash_handle_fn))
9518 rm -f conftest.$ac_objext
9519 if { (ac_try="$ac_compile"
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9525 $as_echo "$ac_try_echo") >&5
9526 (eval "$ac_compile") 2>conftest.er1
9528 grep -v '^ *+' conftest.er1 >conftest.err
9530 cat conftest.err >&5
9531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } && {
9533 test -z "$ac_cxx_werror_flag" ||
9534 test ! -s conftest.err
9535 } && test -s conftest.$ac_objext; then
9536 cat >conftest.$ac_ext <<_ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9542 #include <libguile.h>
9547 if (sizeof ((scm_t_hash_handle_fn)))
9553 rm -f conftest.$ac_objext
9554 if { (ac_try="$ac_compile"
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9560 $as_echo "$ac_try_echo") >&5
9561 (eval "$ac_compile") 2>conftest.er1
9563 grep -v '^ *+' conftest.er1 >conftest.err
9565 cat conftest.err >&5
9566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && {
9568 test -z "$ac_cxx_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest.$ac_objext; then
9573 $as_echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_cv_type_scm_t_hash_handle_fn=yes
9579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9581 $as_echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9589 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_hash_handle_fn" >&5
9590 $as_echo "$ac_cv_type_scm_t_hash_handle_fn" >&6; }
9591 if test "x$ac_cv_type_scm_t_hash_handle_fn" = x""yes; then
9593 cat >>confdefs.h <<_ACEOF
9594 #define HAVE_SCM_T_HASH_HANDLE_FN 1
9597 cat >>confdefs.h <<\_ACEOF
9598 #define HAVE_GUILE_HASH_FUNC 1
9603 { $as_echo "$as_me:$LINENO: checking for scm_t_subr" >&5
9604 $as_echo_n "checking for scm_t_subr... " >&6; }
9605 if test "${ac_cv_type_scm_t_subr+set}" = set; then
9606 $as_echo_n "(cached) " >&6
9608 ac_cv_type_scm_t_subr=no
9609 cat >conftest.$ac_ext <<_ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 #include <libguile.h>
9620 if (sizeof (scm_t_subr))
9626 rm -f conftest.$ac_objext
9627 if { (ac_try="$ac_compile"
9629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9630 *) ac_try_echo=$ac_try;;
9632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9633 $as_echo "$ac_try_echo") >&5
9634 (eval "$ac_compile") 2>conftest.er1
9636 grep -v '^ *+' conftest.er1 >conftest.err
9638 cat conftest.err >&5
9639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } && {
9641 test -z "$ac_cxx_werror_flag" ||
9642 test ! -s conftest.err
9643 } && test -s conftest.$ac_objext; then
9644 cat >conftest.$ac_ext <<_ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 #include <libguile.h>
9655 if (sizeof ((scm_t_subr)))
9661 rm -f conftest.$ac_objext
9662 if { (ac_try="$ac_compile"
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9668 $as_echo "$ac_try_echo") >&5
9669 (eval "$ac_compile") 2>conftest.er1
9671 grep -v '^ *+' conftest.er1 >conftest.err
9673 cat conftest.err >&5
9674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); } && {
9676 test -z "$ac_cxx_werror_flag" ||
9677 test ! -s conftest.err
9678 } && test -s conftest.$ac_objext; then
9681 $as_echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ac_cv_type_scm_t_subr=yes
9687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 $as_echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9697 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scm_t_subr" >&5
9698 $as_echo "$ac_cv_type_scm_t_subr" >&6; }
9699 if test "x$ac_cv_type_scm_t_subr" = x""yes; then
9701 cat >>confdefs.h <<_ACEOF
9702 #define HAVE_SCM_T_SUBR 1
9705 cat >>confdefs.h <<\_ACEOF
9706 #define HAVE_GUILE_SUBR_TYPE 1
9711 CXXFLAGS="$save_CXXFLAGS"
9713 ## Check for usable cxxabi
9715 LIBS="$LIBS $CXXABI_LIBS"
9716 { $as_echo "$as_me:$LINENO: checking for usable C++ demangler" >&5
9717 $as_echo_n "checking for usable C++ demangler... " >&6; }
9718 cat >conftest.$ac_ext <<_ACEOF
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9728 abi::__cxa_demangle ("", 0, 0, 0)
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9740 $as_echo "$ac_try_echo") >&5
9741 (eval "$ac_link") 2>conftest.er1
9743 grep -v '^ *+' conftest.er1 >conftest.err
9745 cat conftest.err >&5
9746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_cxx_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest$ac_exeext && {
9751 test "$cross_compiling" = yes ||
9752 $as_test_x conftest$ac_exeext
9754 cat >>confdefs.h <<\_ACEOF
9755 #define HAVE_CXA_DEMANGLE 1
9758 { $as_echo "$as_me:$LINENO: result: yes" >&5
9759 $as_echo "yes" >&6; }
9761 $as_echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9765 LIBS="$LIBS -lsupc++"
9766 cat >conftest.$ac_ext <<_ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9776 abi::__cxa_demangle ("", 0, 0, 0)
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9788 $as_echo "$ac_try_echo") >&5
9789 (eval "$ac_link") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_cxx_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest$ac_exeext && {
9799 test "$cross_compiling" = yes ||
9800 $as_test_x conftest$ac_exeext
9802 cat >>confdefs.h <<\_ACEOF
9803 #define HAVE_CXA_DEMANGLE 1
9806 { $as_echo "$as_me:$LINENO: result: yes, using -lsupc++" >&5
9807 $as_echo "yes, using -lsupc++" >&6; }
9808 CXXABI_LIBS="$CXXABI_LIBS -lsupc++"
9810 $as_echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9813 { $as_echo "$as_me:$LINENO: result: no, use c++filt -t for manual demangling" >&5
9814 $as_echo "no, use c++filt -t for manual demangling" >&6; }
9817 rm -rf conftest.dSYM
9818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9819 conftest$ac_exeext conftest.$ac_ext
9822 rm -rf conftest.dSYM
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9828 ## check rational bugfix.
9829 save_CPPFLAGS="$CPPFLAGS"
9830 CPPFLAGS="$GUILE_CFLAGS $CPPFLAGS"
9831 { $as_echo "$as_me:$LINENO: checking GUILE rational bugfix" >&5
9832 $as_echo_n "checking GUILE rational bugfix... " >&6; }
9833 cat >conftest.$ac_ext <<_ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9839 #include <libguile.h>
9840 #ifdef SCM_FRACTION_REDUCED_BIT
9845 if { (ac_try="$ac_cpp conftest.$ac_ext"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9851 $as_echo "$ac_try_echo") >&5
9852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } >/dev/null && {
9859 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9860 test ! -s conftest.err
9862 { $as_echo "$as_me:$LINENO: result: ok" >&5
9863 $as_echo "ok" >&6; }
9865 $as_echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9868 REQUIRED="$REQUIRED GUILE-with-rational-bugfix"
9869 { $as_echo "$as_me:$LINENO: result: Must have patched GUILE rational support. See INSTALL.txt" >&5
9870 $as_echo "Must have patched GUILE rational support. See INSTALL.txt" >&6; }
9873 rm -f conftest.err conftest.$ac_ext
9874 CPPFLAGS="$save_CPPFLAGS"
9879 # Check whether --with-python-include was given.
9880 if test "${with_python_include+set}" = set; then
9881 withval=$with_python_include;
9882 if test "$withval" = "yes" -o "$withval" = "no"; then
9883 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-include=includedir" >&5
9884 $as_echo "$as_me: WARNING: Usage: --with-python-include=includedir" >&2;}
9886 PYTHON_CFLAGS="-I${withval}"
9893 # Check whether --with-python-lib was given.
9894 if test "${with_python_lib+set}" = set; then
9895 withval=$with_python_lib;
9896 if test "$withval" = "yes" -o "$withval" = "no"; then
9897 { $as_echo "$as_me:$LINENO: WARNING: Usage: --with-python-lib=name" >&5
9898 $as_echo "$as_me: WARNING: Usage: --with-python-lib=name" >&2;}
9900 LDFLAGS="$LDFLAGS -l${withval}"
9907 { $as_echo "$as_me:$LINENO: checking for python" >&5
9908 $as_echo_n "checking for python... " >&6; }
9911 for r in $PYTHON python python3 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0; do
9913 ## which doesn't work in ash, if /usr/bin/which isn't installed
9914 ## type -p doesn't work in ash
9915 ## command -v doesn't work in zsh
9916 ## command -v "$r" 2>&1
9917 ## this test should work in ash, bash, pdksh (ksh), zsh
9918 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
9920 if ! $exe -V > /dev/null 2>&1 ; then
9924 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
9927 ## Workaround for broken Debian gcc version string:
9928 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
9930 ## -V: Workaround for python
9934 ## Assume and hunt for dotted version multiplet.
9935 ## use eval trickery, because we cannot use multi-level $() instead of ``
9936 ## for compatibility reasons.
9938 ## grab the first version number in --version output.
9939 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
9940 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9943 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
9944 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
9947 if test -z "$_ver"; then
9948 ## If empty, try date [fontforge]
9949 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
9950 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
9952 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
9958 echo "$ver" | awk -F. '
9960 if ($3) {three = $3}
9963 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9966 echo "2.4" | awk -F. '
9968 if ($3) {three = $3}
9971 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9974 echo "3.0" | awk -F. '
9976 if ($3) {three = $3}
9979 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
9981 if test -n "2.4" && test "$num" -lt "$req"; then
9982 python="$r >= 2.4 (installed: $ver)"
9985 if test -n "3.0" && test "$num" -ge "$sup"; then
9986 python="$r < 3.0 (installed: $ver)"
9995 { $as_echo "$as_me:$LINENO: result: $found" >&5
9996 $as_echo "$found" >&6; }
9997 if test "$found" != "no"; then
9998 { $as_echo "$as_me:$LINENO: checking $python version" >&5
9999 $as_echo_n "checking $python version... " >&6; }
10000 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10001 $as_echo "$ver" >&6; }
10005 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$python\"`\"
10008 # Extract the first word of "$PYTHON", so it can be a program name with args.
10009 set dummy $PYTHON; ac_word=$2
10010 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if test "${ac_cv_path_PYTHON+set}" = set; then
10013 $as_echo_n "(cached) " >&6
10017 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10028 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 PYTHON=$ac_cv_path_PYTHON
10039 if test -n "$PYTHON"; then
10040 { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
10041 $as_echo "$PYTHON" >&6; }
10043 { $as_echo "$as_me:$LINENO: result: no" >&5
10044 $as_echo "no" >&6; }
10050 for ac_prog in `basename $PYTHON`-config
10052 # Extract the first word of "$ac_prog", so it can be a program name with args.
10053 set dummy $ac_prog; ac_word=$2
10054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if test "${ac_cv_prog_PYTHON_CONFIG+set}" = set; then
10057 $as_echo_n "(cached) " >&6
10059 if test -n "$PYTHON_CONFIG"; then
10060 ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test.
10062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063 for as_dir in $PATH
10066 test -z "$as_dir" && as_dir=.
10067 for ac_exec_ext in '' $ac_executable_extensions; do
10068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10069 ac_cv_prog_PYTHON_CONFIG="$ac_prog"
10070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG
10080 if test -n "$PYTHON_CONFIG"; then
10081 { $as_echo "$as_me:$LINENO: result: $PYTHON_CONFIG" >&5
10082 $as_echo "$PYTHON_CONFIG" >&6; }
10084 { $as_echo "$as_me:$LINENO: result: no" >&5
10085 $as_echo "no" >&6; }
10089 test -n "$PYTHON_CONFIG" && break
10091 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
10094 if test -z "$PYTHON_CFLAGS" -a "$PYTHON_CONFIG" != "no"; then
10095 # Clean out junk: http://bugs.python.org/issue3290
10096 # Python headers may need some -f* flags, leave them in.
10097 # We want the sed commands to look like 's/-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' and 's/-arch [^[:space:]]*//g', but automake eats brackets.
10098 #PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/-[[WDOm]][[[:alnum:][:punct:]]][[[:alnum:][:punct:]]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10099 # The above sed BRE matches parts of legal options, stipping down part of that option, resulting in invalid gcc arguments. Gentoo Bug #415793
10100 # For instance, '-floop-stip-mime' becomes '-floop-strip', and '-fvect-cost-model' becomes '-fvect-cost'.
10101 # Tentative fix to require a non alphanumeric character before the initial hyphen of the BRE or the hyphen being the first character in the string.
10102 PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags | sed -e 's/\(^\|[^[:alnum:]]\)-[WDOm][[:alnum:][:punct:]][[:alnum:][:punct:]]*//g' | sed -e 's/-arch [^[:space:]]*//g'`
10103 PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
10106 if test -z "$PYTHON_CFLAGS" -a "$cross_compiling" = "no"; then
10108 # alternatively, for python >= 2.0
10109 # 'import sys, distutils.sysconfig; sys.stdout.write (distutils.sysconfig.get_python_inc ())'
10110 PYTHON_INCLUDE=`$PYTHON -c 'import sys; sys.stdout.write ("%s/include/python%s" % (sys.prefix, sys.version[:3]))'`
10111 PYTHON_CFLAGS="-I$PYTHON_INCLUDE"
10115 if test -z "$PYTHON_HEADER"; then
10116 CPPFLAGS="$PYTHON_CFLAGS $CPPFLAGS"
10118 for ac_header in Python.h
10120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10123 $as_echo_n "checking for $ac_header... " >&6; }
10124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10125 $as_echo_n "(cached) " >&6
10127 ac_res=`eval 'as_val=${'$as_ac_Header'}
10128 $as_echo "$as_val"'`
10129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10130 $as_echo "$ac_res" >&6; }
10132 # Is the header compilable?
10133 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10134 $as_echo_n "checking $ac_header usability... " >&6; }
10135 cat >conftest.$ac_ext <<_ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 $ac_includes_default
10142 #include <$ac_header>
10144 rm -f conftest.$ac_objext
10145 if { (ac_try="$ac_compile"
10146 case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10151 $as_echo "$ac_try_echo") >&5
10152 (eval "$ac_compile") 2>conftest.er1
10154 grep -v '^ *+' conftest.er1 >conftest.err
10156 cat conftest.err >&5
10157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } && {
10159 test -z "$ac_cxx_werror_flag" ||
10160 test ! -s conftest.err
10161 } && test -s conftest.$ac_objext; then
10162 ac_header_compiler=yes
10164 $as_echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10167 ac_header_compiler=no
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10172 $as_echo "$ac_header_compiler" >&6; }
10174 # Is the header present?
10175 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10176 $as_echo_n "checking $ac_header presence... " >&6; }
10177 cat >conftest.$ac_ext <<_ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10183 #include <$ac_header>
10185 if { (ac_try="$ac_cpp conftest.$ac_ext"
10186 case "(($ac_try" in
10187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188 *) ac_try_echo=$ac_try;;
10190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10191 $as_echo "$ac_try_echo") >&5
10192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10194 grep -v '^ *+' conftest.er1 >conftest.err
10196 cat conftest.err >&5
10197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } >/dev/null && {
10199 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10200 test ! -s conftest.err
10202 ac_header_preproc=yes
10204 $as_echo "$as_me: failed program was:" >&5
10205 sed 's/^/| /' conftest.$ac_ext >&5
10207 ac_header_preproc=no
10210 rm -f conftest.err conftest.$ac_ext
10211 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10212 $as_echo "$ac_header_preproc" >&6; }
10214 # So? What about this header?
10215 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10218 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10220 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10221 ac_header_preproc=yes
10224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10225 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10227 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10229 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10231 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10233 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10235 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10240 $as_echo_n "checking for $ac_header... " >&6; }
10241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10242 $as_echo_n "(cached) " >&6
10244 eval "$as_ac_Header=\$ac_header_preproc"
10246 ac_res=`eval 'as_val=${'$as_ac_Header'}
10247 $as_echo "$as_val"'`
10248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10249 $as_echo "$ac_res" >&6; }
10252 as_val=`eval 'as_val=${'$as_ac_Header'}
10253 $as_echo "$as_val"'`
10254 if test "x$as_val" = x""yes; then
10255 cat >>confdefs.h <<_ACEOF
10256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10265 if test -z "$PYTHON_HEADER"; then
10266 warn="Python.h (python-devel, python-dev or libpython-dev package)"
10268 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\"
10276 for ac_prog in fontforge
10278 # Extract the first word of "$ac_prog", so it can be a program name with args.
10279 set dummy $ac_prog; ac_word=$2
10280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10281 $as_echo_n "checking for $ac_word... " >&6; }
10282 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
10283 $as_echo_n "(cached) " >&6
10285 if test -n "$FONTFORGE"; then
10286 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10295 ac_cv_prog_FONTFORGE="$ac_prog"
10296 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10305 FONTFORGE=$ac_cv_prog_FONTFORGE
10306 if test -n "$FONTFORGE"; then
10307 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10308 $as_echo "$FONTFORGE" >&6; }
10310 { $as_echo "$as_me:$LINENO: result: no" >&5
10311 $as_echo "no" >&6; }
10315 test -n "$FONTFORGE" && break
10317 test -n "$FONTFORGE" || FONTFORGE="no"
10321 r="`eval echo '$'"FONTFORGE"`"
10322 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"FONTFORGE"`' : '.*\(echo\)' > /dev/null; then
10325 ##STEPMAKE_WARN(cannot find . )
10329 if test $? -ne 0; then
10331 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"fontforge\"`\"
10333 if test "REQUIRED" = "REQUIRED"; then
10334 command="echo ERROR: fontforge not found"
10335 # abort configure process here?
10337 command="- echo fontforge not found"
10339 eval "FONTFORGE"='$command'
10345 if test $? -eq 0; then
10346 for ac_prog in fontforge
10348 # Extract the first word of "$ac_prog", so it can be a program name with args.
10349 set dummy $ac_prog; ac_word=$2
10350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10351 $as_echo_n "checking for $ac_word... " >&6; }
10352 if test "${ac_cv_path_FONTFORGE+set}" = set; then
10353 $as_echo_n "(cached) " >&6
10357 ac_cv_path_FONTFORGE="$FONTFORGE" # Let the user override the test with a path.
10360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361 for as_dir in $PATH
10364 test -z "$as_dir" && as_dir=.
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10367 ac_cv_path_FONTFORGE="$as_dir/$ac_word$ac_exec_ext"
10368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 FONTFORGE=$ac_cv_path_FONTFORGE
10379 if test -n "$FONTFORGE"; then
10380 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
10381 $as_echo "$FONTFORGE" >&6; }
10383 { $as_echo "$as_me:$LINENO: result: no" >&5
10384 $as_echo "no" >&6; }
10388 test -n "$FONTFORGE" && break
10391 if test -n "20110222"; then
10393 r="`eval echo '$'"FONTFORGE"`"
10394 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10395 $as_echo_n "checking $r version... " >&6; }
10397 ## which doesn't work in ash, if /usr/bin/which isn't installed
10398 ## type -p doesn't work in ash
10399 ## command -v doesn't work in zsh
10400 ## command -v "$r" 2>&1
10401 ## this test should work in ash, bash, pdksh (ksh), zsh
10402 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10404 if test -n ""; then
10408 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10411 ## Workaround for broken Debian gcc version string:
10412 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10414 ## -V: Workaround for python
10418 ## Assume and hunt for dotted version multiplet.
10419 ## use eval trickery, because we cannot use multi-level $() instead of ``
10420 ## for compatibility reasons.
10422 ## grab the first version number in --version output.
10423 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10424 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10427 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10428 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10431 if test -z "$_ver"; then
10432 ## If empty, try date [fontforge]
10433 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10434 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10436 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10443 echo "$ver" | awk -F. '
10445 if ($3) {three = $3}
10448 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10451 echo "20110222" | awk -F. '
10453 if ($3) {three = $3}
10456 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10458 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10459 $as_echo "$ver" >&6; }
10460 if test "$num" -lt "$req"; then
10462 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 20110222 (installed: $ver)"\"`\"
10465 vervar="`echo FONTFORGE | tr 'a-z' 'A-Z'`_VERSION"
10466 eval `echo $vervar=$num`
10467 ## AC_SUBST(`eval echo $vervar`)
10474 for ac_prog in t1asm
10476 # Extract the first word of "$ac_prog", so it can be a program name with args.
10477 set dummy $ac_prog; ac_word=$2
10478 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if test "${ac_cv_prog_T1ASM+set}" = set; then
10481 $as_echo_n "(cached) " >&6
10483 if test -n "$T1ASM"; then
10484 ac_cv_prog_T1ASM="$T1ASM" # Let the user override the test.
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in $PATH
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
10492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10493 ac_cv_prog_T1ASM="$ac_prog"
10494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 T1ASM=$ac_cv_prog_T1ASM
10504 if test -n "$T1ASM"; then
10505 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10506 $as_echo "$T1ASM" >&6; }
10508 { $as_echo "$as_me:$LINENO: result: no" >&5
10509 $as_echo "no" >&6; }
10513 test -n "$T1ASM" && break
10515 test -n "$T1ASM" || T1ASM="no"
10519 r="`eval echo '$'"T1ASM"`"
10520 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"T1ASM"`' : '.*\(echo\)' > /dev/null; then
10523 ##STEPMAKE_WARN(cannot find . )
10527 if test $? -ne 0; then
10529 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"t1asm\"`\"
10531 if test "REQUIRED" = "REQUIRED"; then
10532 command="echo ERROR: t1asm not found"
10533 # abort configure process here?
10535 command="- echo t1asm not found"
10537 eval "T1ASM"='$command'
10543 if test $? -eq 0; then
10544 for ac_prog in t1asm
10546 # Extract the first word of "$ac_prog", so it can be a program name with args.
10547 set dummy $ac_prog; ac_word=$2
10548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10549 $as_echo_n "checking for $ac_word... " >&6; }
10550 if test "${ac_cv_path_T1ASM+set}" = set; then
10551 $as_echo_n "(cached) " >&6
10555 ac_cv_path_T1ASM="$T1ASM" # Let the user override the test with a path.
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in $PATH
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565 ac_cv_path_T1ASM="$as_dir/$ac_word$ac_exec_ext"
10566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10576 T1ASM=$ac_cv_path_T1ASM
10577 if test -n "$T1ASM"; then
10578 { $as_echo "$as_me:$LINENO: result: $T1ASM" >&5
10579 $as_echo "$T1ASM" >&6; }
10581 { $as_echo "$as_me:$LINENO: result: no" >&5
10582 $as_echo "no" >&6; }
10586 test -n "$T1ASM" && break
10589 if test -n ""; then
10591 r="`eval echo '$'"T1ASM"`"
10592 { $as_echo "$as_me:$LINENO: checking $r version" >&5
10593 $as_echo_n "checking $r version... " >&6; }
10595 ## which doesn't work in ash, if /usr/bin/which isn't installed
10596 ## type -p doesn't work in ash
10597 ## command -v doesn't work in zsh
10598 ## command -v "$r" 2>&1
10599 ## this test should work in ash, bash, pdksh (ksh), zsh
10600 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
10602 if test -n ""; then
10606 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
10609 ## Workaround for broken Debian gcc version string:
10610 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
10612 ## -V: Workaround for python
10616 ## Assume and hunt for dotted version multiplet.
10617 ## use eval trickery, because we cannot use multi-level $() instead of ``
10618 ## for compatibility reasons.
10620 ## grab the first version number in --version output.
10621 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
10622 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10625 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
10626 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
10629 if test -z "$_ver"; then
10630 ## If empty, try date [fontforge]
10631 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
10632 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
10634 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
10641 echo "$ver" | awk -F. '
10643 if ($3) {three = $3}
10646 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10649 echo "" | awk -F. '
10651 if ($3) {three = $3}
10654 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
10656 { $as_echo "$as_me:$LINENO: result: $ver" >&5
10657 $as_echo "$ver" >&6; }
10658 if test "$num" -lt "$req"; then
10660 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
10663 vervar="`echo T1ASM | tr 'a-z' 'A-Z'`_VERSION"
10664 eval `echo $vervar=$num`
10665 ## AC_SUBST(`eval echo $vervar`)
10678 for ac_header in assert.h grp.h libio.h pwd.h sys/stat.h wchar.h fpu_control.h
10680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10683 $as_echo_n "checking for $ac_header... " >&6; }
10684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10685 $as_echo_n "(cached) " >&6
10687 ac_res=`eval 'as_val=${'$as_ac_Header'}
10688 $as_echo "$as_val"'`
10689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10690 $as_echo "$ac_res" >&6; }
10692 # Is the header compilable?
10693 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10694 $as_echo_n "checking $ac_header usability... " >&6; }
10695 cat >conftest.$ac_ext <<_ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */
10701 $ac_includes_default
10702 #include <$ac_header>
10704 rm -f conftest.$ac_objext
10705 if { (ac_try="$ac_compile"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10711 $as_echo "$ac_try_echo") >&5
10712 (eval "$ac_compile") 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_cxx_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest.$ac_objext; then
10722 ac_header_compiler=yes
10724 $as_echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_header_compiler=no
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10732 $as_echo "$ac_header_compiler" >&6; }
10734 # Is the header present?
10735 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10736 $as_echo_n "checking $ac_header presence... " >&6; }
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 #include <$ac_header>
10745 if { (ac_try="$ac_cpp conftest.$ac_ext"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10751 $as_echo "$ac_try_echo") >&5
10752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10754 grep -v '^ *+' conftest.er1 >conftest.err
10756 cat conftest.err >&5
10757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } >/dev/null && {
10759 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10760 test ! -s conftest.err
10762 ac_header_preproc=yes
10764 $as_echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 ac_header_preproc=no
10770 rm -f conftest.err conftest.$ac_ext
10771 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10772 $as_echo "$ac_header_preproc" >&6; }
10774 # So? What about this header?
10775 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10778 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10780 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10781 ac_header_preproc=yes
10784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10785 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10787 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10789 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10791 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10793 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10795 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 $as_echo_n "checking for $ac_header... " >&6; }
10801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10802 $as_echo_n "(cached) " >&6
10804 eval "$as_ac_Header=\$ac_header_preproc"
10806 ac_res=`eval 'as_val=${'$as_ac_Header'}
10807 $as_echo "$as_val"'`
10808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10809 $as_echo "$ac_res" >&6; }
10812 as_val=`eval 'as_val=${'$as_ac_Header'}
10813 $as_echo "$as_val"'`
10814 if test "x$as_val" = x""yes; then
10815 cat >>confdefs.h <<_ACEOF
10816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10824 for ac_header in sstream
10826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10829 $as_echo_n "checking for $ac_header... " >&6; }
10830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831 $as_echo_n "(cached) " >&6
10833 ac_res=`eval 'as_val=${'$as_ac_Header'}
10834 $as_echo "$as_val"'`
10835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10836 $as_echo "$ac_res" >&6; }
10838 # Is the header compilable?
10839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10840 $as_echo_n "checking $ac_header usability... " >&6; }
10841 cat >conftest.$ac_ext <<_ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 $ac_includes_default
10848 #include <$ac_header>
10850 rm -f conftest.$ac_objext
10851 if { (ac_try="$ac_compile"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10857 $as_echo "$ac_try_echo") >&5
10858 (eval "$ac_compile") 2>conftest.er1
10860 grep -v '^ *+' conftest.er1 >conftest.err
10862 cat conftest.err >&5
10863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_cxx_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest.$ac_objext; then
10868 ac_header_compiler=yes
10870 $as_echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10873 ac_header_compiler=no
10876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10878 $as_echo "$ac_header_compiler" >&6; }
10880 # Is the header present?
10881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10882 $as_echo_n "checking $ac_header presence... " >&6; }
10883 cat >conftest.$ac_ext <<_ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h. */
10889 #include <$ac_header>
10891 if { (ac_try="$ac_cpp conftest.$ac_ext"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10897 $as_echo "$ac_try_echo") >&5
10898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } >/dev/null && {
10905 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10906 test ! -s conftest.err
10908 ac_header_preproc=yes
10910 $as_echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 ac_header_preproc=no
10916 rm -f conftest.err conftest.$ac_ext
10917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10918 $as_echo "$ac_header_preproc" >&6; }
10920 # So? What about this header?
10921 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10927 ac_header_preproc=yes
10930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10933 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10937 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10946 $as_echo_n "checking for $ac_header... " >&6; }
10947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10948 $as_echo_n "(cached) " >&6
10950 eval "$as_ac_Header=\$ac_header_preproc"
10952 ac_res=`eval 'as_val=${'$as_ac_Header'}
10953 $as_echo "$as_val"'`
10954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10955 $as_echo "$ac_res" >&6; }
10958 as_val=`eval 'as_val=${'$as_ac_Header'}
10959 $as_echo "$as_val"'`
10960 if test "x$as_val" = x""yes; then
10961 cat >>confdefs.h <<_ACEOF
10962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10969 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10970 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10971 if test "${ac_cv_header_stat_broken+set}" = set; then
10972 $as_echo_n "(cached) " >&6
10974 cat >conftest.$ac_ext <<_ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h. */
10980 #include <sys/types.h>
10981 #include <sys/stat.h>
10983 #if defined S_ISBLK && defined S_IFDIR
10984 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10987 #if defined S_ISBLK && defined S_IFCHR
10988 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10991 #if defined S_ISLNK && defined S_IFREG
10992 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10995 #if defined S_ISSOCK && defined S_IFREG
10996 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11000 rm -f conftest.$ac_objext
11001 if { (ac_try="$ac_compile"
11002 case "(($ac_try" in
11003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004 *) ac_try_echo=$ac_try;;
11006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11007 $as_echo "$ac_try_echo") >&5
11008 (eval "$ac_compile") 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } && {
11015 test -z "$ac_cxx_werror_flag" ||
11016 test ! -s conftest.err
11017 } && test -s conftest.$ac_objext; then
11018 ac_cv_header_stat_broken=no
11020 $as_echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11023 ac_cv_header_stat_broken=yes
11026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11028 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11029 $as_echo "$ac_cv_header_stat_broken" >&6; }
11030 if test $ac_cv_header_stat_broken = yes; then
11032 cat >>confdefs.h <<\_ACEOF
11033 #define STAT_MACROS_BROKEN 1
11038 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
11039 $as_echo_n "checking for working memcmp... " >&6; }
11040 if test "${ac_cv_func_memcmp_working+set}" = set; then
11041 $as_echo_n "(cached) " >&6
11043 if test "$cross_compiling" = yes; then
11044 ac_cv_func_memcmp_working=no
11046 cat >conftest.$ac_ext <<_ACEOF
11049 cat confdefs.h >>conftest.$ac_ext
11050 cat >>conftest.$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 $ac_includes_default
11057 /* Some versions of memcmp are not 8-bit clean. */
11058 char c0 = '\100', c1 = '\200', c2 = '\201';
11059 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11062 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11063 or more and with at least one buffer not starting on a 4-byte boundary.
11064 William Lewis provided this test program. */
11069 for (i = 0; i < 4; i++)
11073 strcpy (a, "--------01111111");
11074 strcpy (b, "--------10000000");
11075 if (memcmp (a, b, 16) >= 0)
11085 rm -f conftest$ac_exeext
11086 if { (ac_try="$ac_link"
11087 case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11092 $as_echo "$ac_try_echo") >&5
11093 (eval "$ac_link") 2>&5
11095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11097 { (case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102 $as_echo "$ac_try_echo") >&5
11103 (eval "$ac_try") 2>&5
11105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 ac_cv_func_memcmp_working=yes
11109 $as_echo "$as_me: program exited with status $ac_status" >&5
11110 $as_echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 ( exit $ac_status )
11114 ac_cv_func_memcmp_working=no
11116 rm -rf conftest.dSYM
11117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11123 $as_echo "$ac_cv_func_memcmp_working" >&6; }
11124 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11125 *" memcmp.$ac_objext "* ) ;;
11126 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11132 for ac_func in vprintf
11134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11135 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11136 $as_echo_n "checking for $ac_func... " >&6; }
11137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11138 $as_echo_n "(cached) " >&6
11140 cat >conftest.$ac_ext <<_ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11148 #define $ac_func innocuous_$ac_func
11150 /* System header to define __stub macros and hopefully few prototypes,
11151 which can conflict with char $ac_func (); below.
11152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11153 <limits.h> exists even on freestanding compilers. */
11156 # include <limits.h>
11158 # include <assert.h>
11163 /* Override any GCC internal prototype to avoid an error.
11164 Use char because int might match the return type of a GCC
11165 builtin and then its argument prototype would still apply. */
11170 /* The GNU C library defines this for functions which it implements
11171 to always fail with ENOSYS. Some functions are actually named
11172 something starting with __ and the normal name is an alias. */
11173 #if defined __stub_$ac_func || defined __stub___$ac_func
11180 return $ac_func ();
11185 rm -f conftest.$ac_objext conftest$ac_exeext
11186 if { (ac_try="$ac_link"
11187 case "(($ac_try" in
11188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189 *) ac_try_echo=$ac_try;;
11191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11192 $as_echo "$ac_try_echo") >&5
11193 (eval "$ac_link") 2>conftest.er1
11195 grep -v '^ *+' conftest.er1 >conftest.err
11197 cat conftest.err >&5
11198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } && {
11200 test -z "$ac_cxx_werror_flag" ||
11201 test ! -s conftest.err
11202 } && test -s conftest$ac_exeext && {
11203 test "$cross_compiling" = yes ||
11204 $as_test_x conftest$ac_exeext
11206 eval "$as_ac_var=yes"
11208 $as_echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 eval "$as_ac_var=no"
11214 rm -rf conftest.dSYM
11215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11216 conftest$ac_exeext conftest.$ac_ext
11218 ac_res=`eval 'as_val=${'$as_ac_var'}
11219 $as_echo "$as_val"'`
11220 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11221 $as_echo "$ac_res" >&6; }
11222 as_val=`eval 'as_val=${'$as_ac_var'}
11223 $as_echo "$as_val"'`
11224 if test "x$as_val" = x""yes; then
11225 cat >>confdefs.h <<_ACEOF
11226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11229 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11230 $as_echo_n "checking for _doprnt... " >&6; }
11231 if test "${ac_cv_func__doprnt+set}" = set; then
11232 $as_echo_n "(cached) " >&6
11234 cat >conftest.$ac_ext <<_ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11242 #define _doprnt innocuous__doprnt
11244 /* System header to define __stub macros and hopefully few prototypes,
11245 which can conflict with char _doprnt (); below.
11246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247 <limits.h> exists even on freestanding compilers. */
11250 # include <limits.h>
11252 # include <assert.h>
11257 /* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11264 /* The GNU C library defines this for functions which it implements
11265 to always fail with ENOSYS. Some functions are actually named
11266 something starting with __ and the normal name is an alias. */
11267 #if defined __stub__doprnt || defined __stub____doprnt
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11286 $as_echo "$ac_try_echo") >&5
11287 (eval "$ac_link") 2>conftest.er1
11289 grep -v '^ *+' conftest.er1 >conftest.err
11291 cat conftest.err >&5
11292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && {
11294 test -z "$ac_cxx_werror_flag" ||
11295 test ! -s conftest.err
11296 } && test -s conftest$ac_exeext && {
11297 test "$cross_compiling" = yes ||
11298 $as_test_x conftest$ac_exeext
11300 ac_cv_func__doprnt=yes
11302 $as_echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 ac_cv_func__doprnt=no
11308 rm -rf conftest.dSYM
11309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11310 conftest$ac_exeext conftest.$ac_ext
11312 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11313 $as_echo "$ac_cv_func__doprnt" >&6; }
11314 if test "x$ac_cv_func__doprnt" = x""yes; then
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_DOPRNT 1
11333 for ac_func in chroot fopencookie gettext isinf memmem snprintf vsnprintf
11335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11336 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11337 $as_echo_n "checking for $ac_func... " >&6; }
11338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11339 $as_echo_n "(cached) " >&6
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11349 #define $ac_func innocuous_$ac_func
11351 /* System header to define __stub macros and hopefully few prototypes,
11352 which can conflict with char $ac_func (); below.
11353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11354 <limits.h> exists even on freestanding compilers. */
11357 # include <limits.h>
11359 # include <assert.h>
11364 /* Override any GCC internal prototype to avoid an error.
11365 Use char because int might match the return type of a GCC
11366 builtin and then its argument prototype would still apply. */
11371 /* The GNU C library defines this for functions which it implements
11372 to always fail with ENOSYS. Some functions are actually named
11373 something starting with __ and the normal name is an alias. */
11374 #if defined __stub_$ac_func || defined __stub___$ac_func
11381 return $ac_func ();
11386 rm -f conftest.$ac_objext conftest$ac_exeext
11387 if { (ac_try="$ac_link"
11388 case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11393 $as_echo "$ac_try_echo") >&5
11394 (eval "$ac_link") 2>conftest.er1
11396 grep -v '^ *+' conftest.er1 >conftest.err
11398 cat conftest.err >&5
11399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } && {
11401 test -z "$ac_cxx_werror_flag" ||
11402 test ! -s conftest.err
11403 } && test -s conftest$ac_exeext && {
11404 test "$cross_compiling" = yes ||
11405 $as_test_x conftest$ac_exeext
11407 eval "$as_ac_var=yes"
11409 $as_echo "$as_me: failed program was:" >&5
11410 sed 's/^/| /' conftest.$ac_ext >&5
11412 eval "$as_ac_var=no"
11415 rm -rf conftest.dSYM
11416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11417 conftest$ac_exeext conftest.$ac_ext
11419 ac_res=`eval 'as_val=${'$as_ac_var'}
11420 $as_echo "$as_val"'`
11421 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11422 $as_echo "$ac_res" >&6; }
11423 as_val=`eval 'as_val=${'$as_ac_var'}
11424 $as_echo "$as_val"'`
11425 if test "x$as_val" = x""yes; then
11426 cat >>confdefs.h <<_ACEOF
11427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11435 for ac_prog in pkg-config
11437 # Extract the first word of "$ac_prog", so it can be a program name with args.
11438 set dummy $ac_prog; ac_word=$2
11439 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
11442 $as_echo_n "(cached) " >&6
11444 if test -n "$PKG_CONFIG"; then
11445 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454 ac_cv_prog_PKG_CONFIG="$ac_prog"
11455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
11465 if test -n "$PKG_CONFIG"; then
11466 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11467 $as_echo "$PKG_CONFIG" >&6; }
11469 { $as_echo "$as_me:$LINENO: result: no" >&5
11470 $as_echo "no" >&6; }
11474 test -n "$PKG_CONFIG" && break
11476 test -n "$PKG_CONFIG" || PKG_CONFIG="no"
11480 r="`eval echo '$'"PKG_CONFIG"`"
11481 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PKG_CONFIG"`' : '.*\(echo\)' > /dev/null; then
11484 ##STEPMAKE_WARN(cannot find . )
11488 if test $? -ne 0; then
11490 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"pkg-config\"`\"
11492 if test "REQUIRED" = "REQUIRED"; then
11493 command="echo ERROR: pkg-config not found"
11494 # abort configure process here?
11496 command="- echo pkg-config not found"
11498 eval "PKG_CONFIG"='$command'
11504 if test $? -eq 0 -a -n "0.9.0"; then
11506 r="`eval echo '$'"PKG_CONFIG"`"
11507 { $as_echo "$as_me:$LINENO: checking $r version" >&5
11508 $as_echo_n "checking $r version... " >&6; }
11510 ## which doesn't work in ash, if /usr/bin/which isn't installed
11511 ## type -p doesn't work in ash
11512 ## command -v doesn't work in zsh
11513 ## command -v "$r" 2>&1
11514 ## this test should work in ash, bash, pdksh (ksh), zsh
11515 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
11517 if test -n ""; then
11521 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
11524 ## Workaround for broken Debian gcc version string:
11525 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
11527 ## -V: Workaround for python
11531 ## Assume and hunt for dotted version multiplet.
11532 ## use eval trickery, because we cannot use multi-level $() instead of ``
11533 ## for compatibility reasons.
11535 ## grab the first version number in --version output.
11536 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
11537 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11540 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
11541 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
11544 if test -z "$_ver"; then
11545 ## If empty, try date [fontforge]
11546 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
11547 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
11549 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
11556 echo "$ver" | awk -F. '
11558 if ($3) {three = $3}
11561 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11564 echo "0.9.0" | awk -F. '
11566 if ($3) {three = $3}
11569 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
11571 { $as_echo "$as_me:$LINENO: result: $ver" >&5
11572 $as_echo "$ver" >&6; }
11573 if test "$num" -lt "$req"; then
11575 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 0.9.0 (installed: $ver)"\"`\"
11578 vervar="`echo PKG_CONFIG | tr 'a-z' 'A-Z'`_VERSION"
11579 eval `echo $vervar=$num`
11580 ## AC_SUBST(`eval echo $vervar`)
11585 { $as_echo "$as_me:$LINENO: checking whether to enable dynamic relocation" >&5
11586 $as_echo_n "checking whether to enable dynamic relocation... " >&6; }
11587 if test "$reloc_b" = "yes"; then
11588 cat >>confdefs.h <<\_ACEOF
11589 #define ARGV0_RELOCATION 1
11593 { $as_echo "$as_me:$LINENO: result: $reloc_b" >&5
11594 $as_echo "$reloc_b" >&6; }
11596 { $as_echo "$as_me:$LINENO: checking for rpath linkage" >&5
11597 $as_echo_n "checking for rpath linkage... " >&6; }
11598 if test "$rpath_b" = "yes"; then
11599 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,\\\$\$ORIGIN/../lib"
11600 elif test "$rpath_b" != "no"; then
11601 LDFLAGS="$LDFLAGS -Wl,-rpath -Wl,$rpath_b"
11603 { $as_echo "$as_me:$LINENO: result: $rpath_b" >&5
11604 $as_echo "$rpath_b" >&6; }
11606 HOST_ARCH=`$CC -dumpmachine`
11613 if test -z "$PKG_CONFIG"; then
11614 # Extract the first word of "pkg-config", so it can be a program name with args.
11615 set dummy pkg-config; ac_word=$2
11616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11619 $as_echo_n "(cached) " >&6
11621 case $PKG_CONFIG in
11623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11645 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11646 if test -n "$PKG_CONFIG"; then
11647 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11648 $as_echo "$PKG_CONFIG" >&6; }
11650 { $as_echo "$as_me:$LINENO: result: no" >&5
11651 $as_echo "no" >&6; }
11657 if test "$PKG_CONFIG" = "no" ; then
11658 echo "*** The pkg-config script could not be found. Make sure it is"
11659 echo "*** in your path, or set the PKG_CONFIG environment variable"
11660 echo "*** to the full path to pkg-config."
11661 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11663 PKG_CONFIG_MIN_VERSION=0.9.0
11664 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11665 { $as_echo "$as_me:$LINENO: checking for pangoft2 >= 1.6.0" >&5
11666 $as_echo_n "checking for pangoft2 >= 1.6.0... " >&6; }
11668 if $PKG_CONFIG --exists "pangoft2 >= 1.6.0" ; then
11669 { $as_echo "$as_me:$LINENO: result: yes" >&5
11670 $as_echo "yes" >&6; }
11673 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_CFLAGS" >&5
11674 $as_echo_n "checking PANGO_FT2_CFLAGS... " >&6; }
11675 PANGO_FT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2 >= 1.6.0"`
11676 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_CFLAGS" >&5
11677 $as_echo "$PANGO_FT2_CFLAGS" >&6; }
11679 { $as_echo "$as_me:$LINENO: checking PANGO_FT2_LIBS" >&5
11680 $as_echo_n "checking PANGO_FT2_LIBS... " >&6; }
11681 PANGO_FT2_LIBS=`$PKG_CONFIG --libs "pangoft2 >= 1.6.0"`
11682 { $as_echo "$as_me:$LINENO: result: $PANGO_FT2_LIBS" >&5
11683 $as_echo "$PANGO_FT2_LIBS" >&6; }
11685 PANGO_FT2_CFLAGS=""
11687 ## If we have a custom action on failure, don't print errors, but
11688 ## do set a variable so people can do so.
11689 PANGO_FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2 >= 1.6.0"`
11698 if test $succeeded = yes; then
11704 if test "$have_pangoft2" = yes ; then
11705 cat >>confdefs.h <<\_ACEOF
11706 #define HAVE_PANGO16 1
11709 cat >>confdefs.h <<\_ACEOF
11710 #define HAVE_PANGO_FT2 1
11713 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
11714 save_CPPFLAGS="$CPPFLAGS"
11716 CPPFLAGS="$CPPFLAGS $PANGO_FT2_CFLAGS"
11717 LIBS="$PANGO_FT2_LIBS $LIBS"
11719 for ac_header in pango/pangoft2.h
11721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11724 $as_echo_n "checking for $ac_header... " >&6; }
11725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11726 $as_echo_n "(cached) " >&6
11728 ac_res=`eval 'as_val=${'$as_ac_Header'}
11729 $as_echo "$as_val"'`
11730 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11731 $as_echo "$ac_res" >&6; }
11733 # Is the header compilable?
11734 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11735 $as_echo_n "checking $ac_header usability... " >&6; }
11736 cat >conftest.$ac_ext <<_ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 $ac_includes_default
11743 #include <$ac_header>
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11752 $as_echo "$ac_try_echo") >&5
11753 (eval "$ac_compile") 2>conftest.er1
11755 grep -v '^ *+' conftest.er1 >conftest.err
11757 cat conftest.err >&5
11758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } && {
11760 test -z "$ac_cxx_werror_flag" ||
11761 test ! -s conftest.err
11762 } && test -s conftest.$ac_objext; then
11763 ac_header_compiler=yes
11765 $as_echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 ac_header_compiler=no
11771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11773 $as_echo "$ac_header_compiler" >&6; }
11775 # Is the header present?
11776 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11777 $as_echo_n "checking $ac_header presence... " >&6; }
11778 cat >conftest.$ac_ext <<_ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 #include <$ac_header>
11786 if { (ac_try="$ac_cpp conftest.$ac_ext"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11792 $as_echo "$ac_try_echo") >&5
11793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11795 grep -v '^ *+' conftest.er1 >conftest.err
11797 cat conftest.err >&5
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } >/dev/null && {
11800 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11801 test ! -s conftest.err
11803 ac_header_preproc=yes
11805 $as_echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11808 ac_header_preproc=no
11811 rm -f conftest.err conftest.$ac_ext
11812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11813 $as_echo "$ac_header_preproc" >&6; }
11815 # So? What about this header?
11816 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11819 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11821 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11822 ac_header_preproc=yes
11825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11826 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11828 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11830 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11832 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11834 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11836 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11841 $as_echo_n "checking for $ac_header... " >&6; }
11842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11843 $as_echo_n "(cached) " >&6
11845 eval "$as_ac_Header=\$ac_header_preproc"
11847 ac_res=`eval 'as_val=${'$as_ac_Header'}
11848 $as_echo "$as_val"'`
11849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11850 $as_echo "$ac_res" >&6; }
11853 as_val=`eval 'as_val=${'$as_ac_Header'}
11854 $as_echo "$as_val"'`
11855 if test "x$as_val" = x""yes; then
11856 cat >>confdefs.h <<_ACEOF
11857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11865 for ac_func in pango_ft2_font_map_create_context
11867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11869 $as_echo_n "checking for $ac_func... " >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871 $as_echo_n "(cached) " >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881 #define $ac_func innocuous_$ac_func
11883 /* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char $ac_func (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11889 # include <limits.h>
11891 # include <assert.h>
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11903 /* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11913 return $ac_func ();
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11925 $as_echo "$ac_try_echo") >&5
11926 (eval "$ac_link") 2>conftest.er1
11928 grep -v '^ *+' conftest.er1 >conftest.err
11930 cat conftest.err >&5
11931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } && {
11933 test -z "$ac_cxx_werror_flag" ||
11934 test ! -s conftest.err
11935 } && test -s conftest$ac_exeext && {
11936 test "$cross_compiling" = yes ||
11937 $as_test_x conftest$ac_exeext
11939 eval "$as_ac_var=yes"
11941 $as_echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 eval "$as_ac_var=no"
11947 rm -rf conftest.dSYM
11948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11949 conftest$ac_exeext conftest.$ac_ext
11951 ac_res=`eval 'as_val=${'$as_ac_var'}
11952 $as_echo "$as_val"'`
11953 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11954 $as_echo "$ac_res" >&6; }
11955 as_val=`eval 'as_val=${'$as_ac_var'}
11956 $as_echo "$as_val"'`
11957 if test "x$as_val" = x""yes; then
11958 cat >>confdefs.h <<_ACEOF
11959 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11967 CPPFLAGS="$save_CPPFLAGS"
11971 #r="libpangoft2-dev or pangoft2-devel"e
11972 r="libpango1.0-dev or pango?-devel"
11973 ver="`pkg-config --modversion pangoft2`"
11975 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 1.6.0 (installed: $ver)"\"`\"
11983 if test -z "$PKG_CONFIG"; then
11984 # Extract the first word of "pkg-config", so it can be a program name with args.
11985 set dummy pkg-config; ac_word=$2
11986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11989 $as_echo_n "(cached) " >&6
11991 case $PKG_CONFIG in
11993 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12011 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12015 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12016 if test -n "$PKG_CONFIG"; then
12017 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12018 $as_echo "$PKG_CONFIG" >&6; }
12020 { $as_echo "$as_me:$LINENO: result: no" >&5
12021 $as_echo "no" >&6; }
12027 if test "$PKG_CONFIG" = "no" ; then
12028 echo "*** The pkg-config script could not be found. Make sure it is"
12029 echo "*** in your path, or set the PKG_CONFIG environment variable"
12030 echo "*** to the full path to pkg-config."
12031 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12033 PKG_CONFIG_MIN_VERSION=0.9.0
12034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12035 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.4.0" >&5
12036 $as_echo_n "checking for fontconfig >= 2.4.0... " >&6; }
12038 if $PKG_CONFIG --exists "fontconfig >= 2.4.0" ; then
12039 { $as_echo "$as_me:$LINENO: result: yes" >&5
12040 $as_echo "yes" >&6; }
12043 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12044 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
12045 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.4.0"`
12046 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12047 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
12049 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12050 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
12051 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.4.0"`
12052 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12053 $as_echo "$FONTCONFIG_LIBS" >&6; }
12055 FONTCONFIG_CFLAGS=""
12057 ## If we have a custom action on failure, don't print errors, but
12058 ## do set a variable so people can do so.
12059 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.4.0"`
12068 if test $succeeded = yes; then
12069 have_fontconfig=yes
12074 if test "$have_fontconfig" = yes ; then
12075 cat >>confdefs.h <<\_ACEOF
12076 #define HAVE_FONTCONFIG 1
12079 # Do not pollute user-CPPFLAGS with configure-CPPFLAGS
12080 save_CPPFLAGS="$CPPFLAGS"
12082 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
12083 LIBS="$FONTCONFIG_LIBS $LIBS"
12086 CPPFLAGS="$save_CPPFLAGS"
12089 r="libfontconfig-dev or fontconfig-devel"
12090 ver="`pkg-config --modversion fontconfig`"
12092 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.4.0 (installed: $ver)"\"`\"
12100 if test -z "$PKG_CONFIG"; then
12101 # Extract the first word of "pkg-config", so it can be a program name with args.
12102 set dummy pkg-config; ac_word=$2
12103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12104 $as_echo_n "checking for $ac_word... " >&6; }
12105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12106 $as_echo_n "(cached) " >&6
12108 case $PKG_CONFIG in
12110 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12117 test -z "$as_dir" && as_dir=.
12118 for ac_exec_ext in '' $ac_executable_extensions; do
12119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12120 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12128 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12132 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12133 if test -n "$PKG_CONFIG"; then
12134 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12135 $as_echo "$PKG_CONFIG" >&6; }
12137 { $as_echo "$as_me:$LINENO: result: no" >&5
12138 $as_echo "no" >&6; }
12144 if test "$PKG_CONFIG" = "no" ; then
12145 echo "*** The pkg-config script could not be found. Make sure it is"
12146 echo "*** in your path, or set the PKG_CONFIG environment variable"
12147 echo "*** to the full path to pkg-config."
12148 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12150 PKG_CONFIG_MIN_VERSION=0.9.0
12151 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12152 { $as_echo "$as_me:$LINENO: checking for freetype2 >= 2.1.10" >&5
12153 $as_echo_n "checking for freetype2 >= 2.1.10... " >&6; }
12155 if $PKG_CONFIG --exists "freetype2 >= 2.1.10" ; then
12156 { $as_echo "$as_me:$LINENO: result: yes" >&5
12157 $as_echo "yes" >&6; }
12160 { $as_echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
12161 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
12162 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.10"`
12163 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
12164 $as_echo "$FREETYPE2_CFLAGS" >&6; }
12166 { $as_echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
12167 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
12168 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.10"`
12169 { $as_echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
12170 $as_echo "$FREETYPE2_LIBS" >&6; }
12172 FREETYPE2_CFLAGS=""
12174 ## If we have a custom action on failure, don't print errors, but
12175 ## do set a variable so people can do so.
12176 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.1.10"`
12185 if test $succeeded = yes; then
12191 if test "$have_freetype2" = yes; then
12192 cat >>confdefs.h <<\_ACEOF
12193 #define HAVE_FREETYPE2 1
12196 save_CPPFLAGS="$CPPFLAGS"
12198 CPPFLAGS="$FREETYPE2_CFLAGS $CPPFLAGS"
12199 LIBS="$FREETYPE2_LIBS $LIBS"
12202 CPPFLAGS="$save_CPPFLAGS"
12206 #r="libfreetype2-dev or freetype2-devel"
12207 r="libfreetype6-dev or freetype?-devel"
12208 ver="`pkg-config --modversion freetype2`"
12210 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 2.1.10 (installed: $ver)"\"`\"
12216 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12217 $as_echo_n "checking host system type... " >&6; }
12218 if test "${ac_cv_host+set}" = set; then
12219 $as_echo_n "(cached) " >&6
12221 if test "x$host_alias" = x; then
12222 ac_cv_host=$ac_cv_build
12224 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12225 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12226 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12227 { (exit 1); exit 1; }; }
12231 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12232 $as_echo "$ac_cv_host" >&6; }
12233 case $ac_cv_host in
12235 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12236 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12237 { (exit 1); exit 1; }; };;
12240 ac_save_IFS=$IFS; IFS='-'
12246 # Remember, the first character of IFS is used to create $*,
12247 # except with old shells:
12250 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12254 *cygwin* ) CYGWIN=yes;;
12258 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12259 $as_echo_n "checking host system type... " >&6; }
12260 if test "${ac_cv_host+set}" = set; then
12261 $as_echo_n "(cached) " >&6
12263 if test "x$host_alias" = x; then
12264 ac_cv_host=$ac_cv_build
12266 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12267 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12268 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12269 { (exit 1); exit 1; }; }
12273 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12274 $as_echo "$ac_cv_host" >&6; }
12275 case $ac_cv_host in
12277 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12278 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12279 { (exit 1); exit 1; }; };;
12282 ac_save_IFS=$IFS; IFS='-'
12288 # Remember, the first character of IFS is used to create $*,
12289 # except with old shells:
12292 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12296 *mingw32* ) MINGW32=yes;;
12301 if test "$CYGWIN" = "yes"; then
12302 LN_S='cp -r' # Cygwin symbolic links do not work for native apps.
12303 program_suffix=.exe
12304 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12305 elif test "$MINGW32" = "yes"; then
12308 program_suffix=.exe
12309 INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
12315 cat >>confdefs.h <<_ACEOF
12316 #define DIRSEP '${DIRSEP}'
12319 cat >>confdefs.h <<_ACEOF
12320 #define PATHSEP '${PATHSEP}'
12327 { $as_echo "$as_me:$LINENO: checking for some flavor of Windows" >&5
12328 $as_echo_n "checking for some flavor of Windows... " >&6; }
12329 if test "$CYGWIN$MINGW32" = "nono"; then
12330 PLATFORM_WINDOWS=no
12332 PLATFORM_WINDOWS=yes
12334 { $as_echo "$as_me:$LINENO: result: $PLATFORM_WINDOWS" >&5
12335 $as_echo "$PLATFORM_WINDOWS" >&6; }
12338 for ac_prog in $target-windres windres
12340 # Extract the first word of "$ac_prog", so it can be a program name with args.
12341 set dummy $ac_prog; ac_word=$2
12342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12343 $as_echo_n "checking for $ac_word... " >&6; }
12344 if test "${ac_cv_prog_WINDRES+set}" = set; then
12345 $as_echo_n "(cached) " >&6
12347 if test -n "$WINDRES"; then
12348 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357 ac_cv_prog_WINDRES="$ac_prog"
12358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 WINDRES=$ac_cv_prog_WINDRES
12368 if test -n "$WINDRES"; then
12369 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
12370 $as_echo "$WINDRES" >&6; }
12372 { $as_echo "$as_me:$LINENO: result: no" >&5
12373 $as_echo "no" >&6; }
12377 test -n "$WINDRES" && break
12379 test -n "$WINDRES" || WINDRES="no"
12383 r="`eval echo '$'"WINDRES"`"
12384 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"WINDRES"`' : '.*\(echo\)' > /dev/null; then
12387 ##STEPMAKE_WARN(cannot find . )
12391 if test $? -ne 0; then
12393 eval "x"=\"`eval echo \"'$'x\" \"$target-windres windres\"`\"
12395 if test "x" = "REQUIRED"; then
12396 command="echo ERROR: $target-windres windres not found"
12397 # abort configure process here?
12399 command="- echo $target-windres windres not found"
12401 eval "WINDRES"='$command'
12407 if test $? -eq 0 -a -n ""; then
12409 r="`eval echo '$'"WINDRES"`"
12410 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12411 $as_echo_n "checking $r version... " >&6; }
12413 ## which doesn't work in ash, if /usr/bin/which isn't installed
12414 ## type -p doesn't work in ash
12415 ## command -v doesn't work in zsh
12416 ## command -v "$r" 2>&1
12417 ## this test should work in ash, bash, pdksh (ksh), zsh
12418 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12420 if test -n ""; then
12424 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12427 ## Workaround for broken Debian gcc version string:
12428 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12430 ## -V: Workaround for python
12434 ## Assume and hunt for dotted version multiplet.
12435 ## use eval trickery, because we cannot use multi-level $() instead of ``
12436 ## for compatibility reasons.
12438 ## grab the first version number in --version output.
12439 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12440 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12443 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12444 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12447 if test -z "$_ver"; then
12448 ## If empty, try date [fontforge]
12449 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12450 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12452 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12459 echo "$ver" | awk -F. '
12461 if ($3) {three = $3}
12464 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12467 echo "" | awk -F. '
12469 if ($3) {three = $3}
12472 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12474 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12475 $as_echo "$ver" >&6; }
12476 if test "$num" -lt "$req"; then
12478 eval "x"=\"`eval echo \"'$'x\" \""$r >= (installed: $ver)"\"`\"
12481 vervar="`echo WINDRES | tr 'a-z' 'A-Z'`_VERSION"
12482 eval `echo $vervar=$num`
12483 ## AC_SUBST(`eval echo $vervar`)
12490 # guile executable for some scripts
12492 { $as_echo "$as_me:$LINENO: checking for guile" >&5
12493 $as_echo_n "checking for guile... " >&6; }
12496 for r in $GUILE guile guile2 guile2.0 guile-2.0 guile1 guile1.9 guile1.8 guile-1 guile-1.9 guile-1.8; do
12498 ## which doesn't work in ash, if /usr/bin/which isn't installed
12499 ## type -p doesn't work in ash
12500 ## command -v doesn't work in zsh
12501 ## command -v "$r" 2>&1
12502 ## this test should work in ash, bash, pdksh (ksh), zsh
12503 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12505 if ! $exe --version > /dev/null 2>&1 ; then
12509 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12512 ## Workaround for broken Debian gcc version string:
12513 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12515 ## -V: Workaround for python
12519 ## Assume and hunt for dotted version multiplet.
12520 ## use eval trickery, because we cannot use multi-level $() instead of ``
12521 ## for compatibility reasons.
12523 ## grab the first version number in --version output.
12524 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12525 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12528 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12529 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12532 if test -z "$_ver"; then
12533 ## If empty, try date [fontforge]
12534 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12535 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12537 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12543 echo "$ver" | awk -F. '
12545 if ($3) {three = $3}
12548 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12551 echo "1.8.2" | awk -F. '
12553 if ($3) {three = $3}
12556 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12559 echo "1.9.0" | awk -F. '
12561 if ($3) {three = $3}
12564 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12566 if test -n "1.8.2" && test "$num" -lt "$req"; then
12567 guile="$r >= 1.8.2 (installed: $ver)"
12570 if test -n "1.9.0" && test "$num" -ge "$sup"; then
12571 guile="$r < 1.9.0 (installed: $ver)"
12580 { $as_echo "$as_me:$LINENO: result: $found" >&5
12581 $as_echo "$found" >&6; }
12582 if test "$found" != "no"; then
12583 { $as_echo "$as_me:$LINENO: checking $guile version" >&5
12584 $as_echo_n "checking $guile version... " >&6; }
12585 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12586 $as_echo "$ver" >&6; }
12590 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"$guile\"`\"
12594 for ac_prog in $GUILE
12596 # Extract the first word of "$ac_prog", so it can be a program name with args.
12597 set dummy $ac_prog; ac_word=$2
12598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12599 $as_echo_n "checking for $ac_word... " >&6; }
12600 if test "${ac_cv_prog_GUILE+set}" = set; then
12601 $as_echo_n "(cached) " >&6
12603 if test -n "$GUILE"; then
12604 ac_cv_prog_GUILE="$GUILE" # Let the user override the test.
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12613 ac_cv_prog_GUILE="$ac_prog"
12614 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12623 GUILE=$ac_cv_prog_GUILE
12624 if test -n "$GUILE"; then
12625 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12626 $as_echo "$GUILE" >&6; }
12628 { $as_echo "$as_me:$LINENO: result: no" >&5
12629 $as_echo "no" >&6; }
12633 test -n "$GUILE" && break
12635 test -n "$GUILE" || GUILE="no"
12639 r="`eval echo '$'"GUILE"`"
12640 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then
12643 ##STEPMAKE_WARN(cannot find . )
12647 if test $? -ne 0; then
12649 eval ""=\"`eval echo \"'$'\" \"$GUILE\"`\"
12651 if test "" = "REQUIRED"; then
12652 command="echo ERROR: $GUILE not found"
12653 # abort configure process here?
12655 command="- echo $GUILE not found"
12657 eval "GUILE"='$command'
12663 if test $? -eq 0; then
12664 for ac_prog in $GUILE
12666 # Extract the first word of "$ac_prog", so it can be a program name with args.
12667 set dummy $ac_prog; ac_word=$2
12668 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12669 $as_echo_n "checking for $ac_word... " >&6; }
12670 if test "${ac_cv_path_GUILE+set}" = set; then
12671 $as_echo_n "(cached) " >&6
12675 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12679 for as_dir in $PATH
12682 test -z "$as_dir" && as_dir=.
12683 for ac_exec_ext in '' $ac_executable_extensions; do
12684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12685 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12696 GUILE=$ac_cv_path_GUILE
12697 if test -n "$GUILE"; then
12698 { $as_echo "$as_me:$LINENO: result: $GUILE" >&5
12699 $as_echo "$GUILE" >&6; }
12701 { $as_echo "$as_me:$LINENO: result: no" >&5
12702 $as_echo "no" >&6; }
12706 test -n "$GUILE" && break
12709 if test -n ""; then
12711 r="`eval echo '$'"GUILE"`"
12712 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12713 $as_echo_n "checking $r version... " >&6; }
12715 ## which doesn't work in ash, if /usr/bin/which isn't installed
12716 ## type -p doesn't work in ash
12717 ## command -v doesn't work in zsh
12718 ## command -v "$r" 2>&1
12719 ## this test should work in ash, bash, pdksh (ksh), zsh
12720 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12722 if test -n ""; then
12726 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12729 ## Workaround for broken Debian gcc version string:
12730 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12732 ## -V: Workaround for python
12736 ## Assume and hunt for dotted version multiplet.
12737 ## use eval trickery, because we cannot use multi-level $() instead of ``
12738 ## for compatibility reasons.
12740 ## grab the first version number in --version output.
12741 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12742 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12745 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12746 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12749 if test -z "$_ver"; then
12750 ## If empty, try date [fontforge]
12751 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12752 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12754 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12761 echo "$ver" | awk -F. '
12763 if ($3) {three = $3}
12766 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12769 echo "" | awk -F. '
12771 if ($3) {three = $3}
12774 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12776 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12777 $as_echo "$ver" >&6; }
12778 if test "$num" -lt "$req"; then
12780 eval ""=\"`eval echo \"'$'\" \""$r >= (installed: $ver)"\"`\"
12783 vervar="`echo GUILE | tr 'a-z' 'A-Z'`_VERSION"
12784 eval `echo $vervar=$num`
12785 ## AC_SUBST(`eval echo $vervar`)
12792 # perl for help2man and for mf2pt1.pl
12795 for ac_prog in perl
12797 # Extract the first word of "$ac_prog", so it can be a program name with args.
12798 set dummy $ac_prog; ac_word=$2
12799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12800 $as_echo_n "checking for $ac_word... " >&6; }
12801 if test "${ac_cv_prog_PERL+set}" = set; then
12802 $as_echo_n "(cached) " >&6
12804 if test -n "$PERL"; then
12805 ac_cv_prog_PERL="$PERL" # Let the user override the test.
12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12811 test -z "$as_dir" && as_dir=.
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12814 ac_cv_prog_PERL="$ac_prog"
12815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12824 PERL=$ac_cv_prog_PERL
12825 if test -n "$PERL"; then
12826 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12827 $as_echo "$PERL" >&6; }
12829 { $as_echo "$as_me:$LINENO: result: no" >&5
12830 $as_echo "no" >&6; }
12834 test -n "$PERL" && break
12836 test -n "$PERL" || PERL="no"
12840 r="`eval echo '$'"PERL"`"
12841 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then
12844 ##STEPMAKE_WARN(cannot find . )
12848 if test $? -ne 0; then
12850 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"perl\"`\"
12852 if test "REQUIRED" = "REQUIRED"; then
12853 command="echo ERROR: perl not found"
12854 # abort configure process here?
12856 command="- echo perl not found"
12858 eval "PERL"='$command'
12864 if test $? -eq 0; then
12865 for ac_prog in perl
12867 # Extract the first word of "$ac_prog", so it can be a program name with args.
12868 set dummy $ac_prog; ac_word=$2
12869 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12870 $as_echo_n "checking for $ac_word... " >&6; }
12871 if test "${ac_cv_path_PERL+set}" = set; then
12872 $as_echo_n "(cached) " >&6
12876 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12883 test -z "$as_dir" && as_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12886 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12887 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12897 PERL=$ac_cv_path_PERL
12898 if test -n "$PERL"; then
12899 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12900 $as_echo "$PERL" >&6; }
12902 { $as_echo "$as_me:$LINENO: result: no" >&5
12903 $as_echo "no" >&6; }
12907 test -n "$PERL" && break
12910 if test -n ""; then
12912 r="`eval echo '$'"PERL"`"
12913 { $as_echo "$as_me:$LINENO: checking $r version" >&5
12914 $as_echo_n "checking $r version... " >&6; }
12916 ## which doesn't work in ash, if /usr/bin/which isn't installed
12917 ## type -p doesn't work in ash
12918 ## command -v doesn't work in zsh
12919 ## command -v "$r" 2>&1
12920 ## this test should work in ash, bash, pdksh (ksh), zsh
12921 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
12923 if test -n ""; then
12927 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
12930 ## Workaround for broken Debian gcc version string:
12931 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
12933 ## -V: Workaround for python
12937 ## Assume and hunt for dotted version multiplet.
12938 ## use eval trickery, because we cannot use multi-level $() instead of ``
12939 ## for compatibility reasons.
12941 ## grab the first version number in --version output.
12942 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
12943 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12946 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
12947 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
12950 if test -z "$_ver"; then
12951 ## If empty, try date [fontforge]
12952 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
12953 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
12955 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
12962 echo "$ver" | awk -F. '
12964 if ($3) {three = $3}
12967 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12970 echo "" | awk -F. '
12972 if ($3) {three = $3}
12975 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
12977 { $as_echo "$as_me:$LINENO: result: $ver" >&5
12978 $as_echo "$ver" >&6; }
12979 if test "$num" -lt "$req"; then
12981 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= (installed: $ver)"\"`\"
12984 vervar="`echo PERL | tr 'a-z' 'A-Z'`_VERSION"
12985 eval `echo $vervar=$num`
12986 ## AC_SUBST(`eval echo $vervar`)
12993 ## Optional tools for building documentation, website, extra fonts.
12994 if test "$DOCUMENTATION" = "yes"; then
12995 DOCUMENTATION_REQUIRED=REQUIRED
12997 DOCUMENTATION_REQUIRED=OPTIONAL
13003 # Extract the first word of "$ac_prog", so it can be a program name with args.
13004 set dummy $ac_prog; ac_word=$2
13005 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if test "${ac_cv_prog_GHOSTSCRIPT+set}" = set; then
13008 $as_echo_n "(cached) " >&6
13010 if test -n "$GHOSTSCRIPT"; then
13011 ac_cv_prog_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test.
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH
13017 test -z "$as_dir" && as_dir=.
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13020 ac_cv_prog_GHOSTSCRIPT="$ac_prog"
13021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 GHOSTSCRIPT=$ac_cv_prog_GHOSTSCRIPT
13031 if test -n "$GHOSTSCRIPT"; then
13032 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13033 $as_echo "$GHOSTSCRIPT" >&6; }
13035 { $as_echo "$as_me:$LINENO: result: no" >&5
13036 $as_echo "no" >&6; }
13040 test -n "$GHOSTSCRIPT" && break
13042 test -n "$GHOSTSCRIPT" || GHOSTSCRIPT="no"
13046 r="`eval echo '$'"GHOSTSCRIPT"`"
13047 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GHOSTSCRIPT"`' : '.*\(echo\)' > /dev/null; then
13050 ##STEPMAKE_WARN(cannot find . )
13054 if test $? -ne 0; then
13056 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"gs\"`\"
13058 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13059 command="echo ERROR: gs not found"
13060 # abort configure process here?
13062 command="- echo gs not found"
13064 eval "GHOSTSCRIPT"='$command'
13070 if test $? -eq 0; then
13073 # Extract the first word of "$ac_prog", so it can be a program name with args.
13074 set dummy $ac_prog; ac_word=$2
13075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13076 $as_echo_n "checking for $ac_word... " >&6; }
13077 if test "${ac_cv_path_GHOSTSCRIPT+set}" = set; then
13078 $as_echo_n "(cached) " >&6
13080 case $GHOSTSCRIPT in
13082 ac_cv_path_GHOSTSCRIPT="$GHOSTSCRIPT" # Let the user override the test with a path.
13085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13092 ac_cv_path_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
13093 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 GHOSTSCRIPT=$ac_cv_path_GHOSTSCRIPT
13104 if test -n "$GHOSTSCRIPT"; then
13105 { $as_echo "$as_me:$LINENO: result: $GHOSTSCRIPT" >&5
13106 $as_echo "$GHOSTSCRIPT" >&6; }
13108 { $as_echo "$as_me:$LINENO: result: no" >&5
13109 $as_echo "no" >&6; }
13113 test -n "$GHOSTSCRIPT" && break
13116 if test -n "8.60"; then
13118 r="`eval echo '$'"GHOSTSCRIPT"`"
13119 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13120 $as_echo_n "checking $r version... " >&6; }
13122 ## which doesn't work in ash, if /usr/bin/which isn't installed
13123 ## type -p doesn't work in ash
13124 ## command -v doesn't work in zsh
13125 ## command -v "$r" 2>&1
13126 ## this test should work in ash, bash, pdksh (ksh), zsh
13127 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13129 if test -n ""; then
13133 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13136 ## Workaround for broken Debian gcc version string:
13137 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13139 ## -V: Workaround for python
13143 ## Assume and hunt for dotted version multiplet.
13144 ## use eval trickery, because we cannot use multi-level $() instead of ``
13145 ## for compatibility reasons.
13147 ## grab the first version number in --version output.
13148 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13149 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13152 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13153 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13156 if test -z "$_ver"; then
13157 ## If empty, try date [fontforge]
13158 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13159 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13161 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13168 echo "$ver" | awk -F. '
13170 if ($3) {three = $3}
13173 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13176 echo "8.60" | awk -F. '
13178 if ($3) {three = $3}
13181 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13183 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13184 $as_echo "$ver" >&6; }
13185 if test "$num" -lt "$req"; then
13187 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 8.60 (installed: $ver)"\"`\"
13190 vervar="`echo GHOSTSCRIPT | tr 'a-z' 'A-Z'`_VERSION"
13191 eval `echo $vervar=$num`
13192 ## AC_SUBST(`eval echo $vervar`)
13204 # Extract the first word of "$ac_prog", so it can be a program name with args.
13205 set dummy $ac_prog; ac_word=$2
13206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13207 $as_echo_n "checking for $ac_word... " >&6; }
13208 if test "${ac_cv_prog_GS920+set}" = set; then
13209 $as_echo_n "(cached) " >&6
13211 if test -n "$GS920"; then
13212 ac_cv_prog_GS920="$GS920" # Let the user override the test.
13214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13218 test -z "$as_dir" && as_dir=.
13219 for ac_exec_ext in '' $ac_executable_extensions; do
13220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13221 ac_cv_prog_GS920="$ac_prog"
13222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13231 GS920=$ac_cv_prog_GS920
13232 if test -n "$GS920"; then
13233 { $as_echo "$as_me:$LINENO: result: $GS920" >&5
13234 $as_echo "$GS920" >&6; }
13236 { $as_echo "$as_me:$LINENO: result: no" >&5
13237 $as_echo "no" >&6; }
13241 test -n "$GS920" && break
13243 test -n "$GS920" || GS920="no"
13247 r="`eval echo '$'"GS920"`"
13248 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"GS920"`' : '.*\(echo\)' > /dev/null; then
13251 ##STEPMAKE_WARN(cannot find . )
13255 if test $? -ne 0; then
13257 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"gs\"`\"
13259 if test "OPTIONAL" = "REQUIRED"; then
13260 command="echo ERROR: gs not found"
13261 # abort configure process here?
13263 command="- echo gs not found"
13265 eval "GS920"='$command'
13271 if test $? -eq 0 -a -n "9.20"; then
13273 r="`eval echo '$'"GS920"`"
13274 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13275 $as_echo_n "checking $r version... " >&6; }
13277 ## which doesn't work in ash, if /usr/bin/which isn't installed
13278 ## type -p doesn't work in ash
13279 ## command -v doesn't work in zsh
13280 ## command -v "$r" 2>&1
13281 ## this test should work in ash, bash, pdksh (ksh), zsh
13282 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13284 if test -n ""; then
13288 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13291 ## Workaround for broken Debian gcc version string:
13292 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13294 ## -V: Workaround for python
13298 ## Assume and hunt for dotted version multiplet.
13299 ## use eval trickery, because we cannot use multi-level $() instead of ``
13300 ## for compatibility reasons.
13302 ## grab the first version number in --version output.
13303 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13304 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13307 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13308 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13311 if test -z "$_ver"; then
13312 ## If empty, try date [fontforge]
13313 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13314 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13316 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13323 echo "$ver" | awk -F. '
13325 if ($3) {three = $3}
13328 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13331 echo "9.20" | awk -F. '
13333 if ($3) {three = $3}
13336 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13338 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13339 $as_echo "$ver" >&6; }
13340 if test "$num" -lt "$req"; then
13342 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= 9.20 (installed: $ver)"\"`\"
13345 vervar="`echo GS920 | tr 'a-z' 'A-Z'`_VERSION"
13346 eval `echo $vervar=$num`
13347 ## AC_SUBST(`eval echo $vervar`)
13352 for ac_prog in extractpdfmark
13354 # Extract the first word of "$ac_prog", so it can be a program name with args.
13355 set dummy $ac_prog; ac_word=$2
13356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13357 $as_echo_n "checking for $ac_word... " >&6; }
13358 if test "${ac_cv_prog_EXTRACTPDFMARK+set}" = set; then
13359 $as_echo_n "(cached) " >&6
13361 if test -n "$EXTRACTPDFMARK"; then
13362 ac_cv_prog_EXTRACTPDFMARK="$EXTRACTPDFMARK" # Let the user override the test.
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371 ac_cv_prog_EXTRACTPDFMARK="$ac_prog"
13372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13381 EXTRACTPDFMARK=$ac_cv_prog_EXTRACTPDFMARK
13382 if test -n "$EXTRACTPDFMARK"; then
13383 { $as_echo "$as_me:$LINENO: result: $EXTRACTPDFMARK" >&5
13384 $as_echo "$EXTRACTPDFMARK" >&6; }
13386 { $as_echo "$as_me:$LINENO: result: no" >&5
13387 $as_echo "no" >&6; }
13391 test -n "$EXTRACTPDFMARK" && break
13393 test -n "$EXTRACTPDFMARK" || EXTRACTPDFMARK="no"
13397 r="`eval echo '$'"EXTRACTPDFMARK"`"
13398 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"EXTRACTPDFMARK"`' : '.*\(echo\)' > /dev/null; then
13401 ##STEPMAKE_WARN(cannot find . )
13405 if test $? -ne 0; then
13407 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"extractpdfmark\"`\"
13409 if test "OPTIONAL" = "REQUIRED"; then
13410 command="echo ERROR: extractpdfmark not found"
13411 # abort configure process here?
13413 command="- echo extractpdfmark not found"
13415 eval "EXTRACTPDFMARK"='$command'
13421 if test $? -eq 0 -a -n ""; then
13423 r="`eval echo '$'"EXTRACTPDFMARK"`"
13424 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13425 $as_echo_n "checking $r version... " >&6; }
13427 ## which doesn't work in ash, if /usr/bin/which isn't installed
13428 ## type -p doesn't work in ash
13429 ## command -v doesn't work in zsh
13430 ## command -v "$r" 2>&1
13431 ## this test should work in ash, bash, pdksh (ksh), zsh
13432 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13434 if test -n ""; then
13438 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13441 ## Workaround for broken Debian gcc version string:
13442 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13444 ## -V: Workaround for python
13448 ## Assume and hunt for dotted version multiplet.
13449 ## use eval trickery, because we cannot use multi-level $() instead of ``
13450 ## for compatibility reasons.
13452 ## grab the first version number in --version output.
13453 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13454 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13457 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13458 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13461 if test -z "$_ver"; then
13462 ## If empty, try date [fontforge]
13463 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13464 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13466 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13473 echo "$ver" | awk -F. '
13475 if ($3) {three = $3}
13478 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13481 echo "" | awk -F. '
13483 if ($3) {three = $3}
13486 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13488 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13489 $as_echo "$ver" >&6; }
13490 if test "$num" -lt "$req"; then
13492 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r >= (installed: $ver)"\"`\"
13495 vervar="`echo EXTRACTPDFMARK | tr 'a-z' 'A-Z'`_VERSION"
13496 eval `echo $vervar=$num`
13497 ## AC_SUBST(`eval echo $vervar`)
13502 echo "9.20" | awk -F. '
13504 if ($3) {three = $3}
13507 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13509 USE_EXTRACTPDFMARK=yes
13510 if test "$GS920_VERSION" -lt "$req"; then
13512 USE_EXTRACTPDFMARK=no
13514 if test "$EXTRACTPDFMARK" != "extractpdfmark"; then
13516 USE_EXTRACTPDFMARK=no
13518 if test "$USE_EXTRACTPDFMARK" != "yes"; then
13520 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(Optionally using Ghostscript >= 9.20 together with"\"`\"
13523 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"" Extract PDFmark can significantly reduce the disk space required"\"`\"
13526 eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"" for building the documentation and the final PDF files.)"\"`\"
13531 for ac_prog in makeinfo
13533 # Extract the first word of "$ac_prog", so it can be a program name with args.
13534 set dummy $ac_prog; ac_word=$2
13535 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13536 $as_echo_n "checking for $ac_word... " >&6; }
13537 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
13538 $as_echo_n "(cached) " >&6
13540 if test -n "$MAKEINFO"; then
13541 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
13543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544 for as_dir in $PATH
13547 test -z "$as_dir" && as_dir=.
13548 for ac_exec_ext in '' $ac_executable_extensions; do
13549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13550 ac_cv_prog_MAKEINFO="$ac_prog"
13551 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13560 MAKEINFO=$ac_cv_prog_MAKEINFO
13561 if test -n "$MAKEINFO"; then
13562 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
13563 $as_echo "$MAKEINFO" >&6; }
13565 { $as_echo "$as_me:$LINENO: result: no" >&5
13566 $as_echo "no" >&6; }
13570 test -n "$MAKEINFO" && break
13572 test -n "$MAKEINFO" || MAKEINFO="no"
13576 r="`eval echo '$'"MAKEINFO"`"
13577 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then
13580 ##STEPMAKE_WARN(cannot find . )
13584 if test $? -ne 0; then
13586 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
13588 if test "REQUIRED" = "REQUIRED"; then
13589 command="echo ERROR: makeinfo not found"
13590 # abort configure process here?
13592 command="- echo makeinfo not found"
13594 eval "MAKEINFO"='$command'
13600 if test $? -eq 0 -a -n "4.11"; then
13602 r="`eval echo '$'"MAKEINFO"`"
13603 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13604 $as_echo_n "checking $r version... " >&6; }
13606 ## which doesn't work in ash, if /usr/bin/which isn't installed
13607 ## type -p doesn't work in ash
13608 ## command -v doesn't work in zsh
13609 ## command -v "$r" 2>&1
13610 ## this test should work in ash, bash, pdksh (ksh), zsh
13611 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13613 if test -n ""; then
13617 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13620 ## Workaround for broken Debian gcc version string:
13621 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13623 ## -V: Workaround for python
13627 ## Assume and hunt for dotted version multiplet.
13628 ## use eval trickery, because we cannot use multi-level $() instead of ``
13629 ## for compatibility reasons.
13631 ## grab the first version number in --version output.
13632 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13633 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13636 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13637 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13640 if test -z "$_ver"; then
13641 ## If empty, try date [fontforge]
13642 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13643 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13645 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13652 echo "$ver" | awk -F. '
13654 if ($3) {three = $3}
13657 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13660 echo "4.11" | awk -F. '
13662 if ($3) {three = $3}
13665 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13667 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13668 $as_echo "$ver" >&6; }
13669 if test "$num" -lt "$req"; then
13671 eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r >= 4.11 (installed: $ver)"\"`\"
13674 vervar="`echo MAKEINFO | tr 'a-z' 'A-Z'`_VERSION"
13675 eval `echo $vervar=$num`
13676 ## AC_SUBST(`eval echo $vervar`)
13681 for ac_prog in texi2html
13683 # Extract the first word of "$ac_prog", so it can be a program name with args.
13684 set dummy $ac_prog; ac_word=$2
13685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if test "${ac_cv_prog_TEXI2HTML+set}" = set; then
13688 $as_echo_n "(cached) " >&6
13690 if test -n "$TEXI2HTML"; then
13691 ac_cv_prog_TEXI2HTML="$TEXI2HTML" # Let the user override the test.
13693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694 for as_dir in $PATH
13697 test -z "$as_dir" && as_dir=.
13698 for ac_exec_ext in '' $ac_executable_extensions; do
13699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13700 ac_cv_prog_TEXI2HTML="$ac_prog"
13701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13710 TEXI2HTML=$ac_cv_prog_TEXI2HTML
13711 if test -n "$TEXI2HTML"; then
13712 { $as_echo "$as_me:$LINENO: result: $TEXI2HTML" >&5
13713 $as_echo "$TEXI2HTML" >&6; }
13715 { $as_echo "$as_me:$LINENO: result: no" >&5
13716 $as_echo "no" >&6; }
13720 test -n "$TEXI2HTML" && break
13722 test -n "$TEXI2HTML" || TEXI2HTML="no"
13726 r="`eval echo '$'"TEXI2HTML"`"
13727 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2HTML"`' : '.*\(echo\)' > /dev/null; then
13730 ##STEPMAKE_WARN(cannot find . )
13734 if test $? -ne 0; then
13736 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2html\"`\"
13738 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13739 command="echo ERROR: texi2html not found"
13740 # abort configure process here?
13742 command="- echo texi2html not found"
13744 eval "TEXI2HTML"='$command'
13750 if test $? -eq 0 -a -n "1.82"; then
13752 r="`eval echo '$'"TEXI2HTML"`"
13753 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13754 $as_echo_n "checking $r version... " >&6; }
13756 ## which doesn't work in ash, if /usr/bin/which isn't installed
13757 ## type -p doesn't work in ash
13758 ## command -v doesn't work in zsh
13759 ## command -v "$r" 2>&1
13760 ## this test should work in ash, bash, pdksh (ksh), zsh
13761 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13763 if test -n ""; then
13767 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13770 ## Workaround for broken Debian gcc version string:
13771 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13773 ## -V: Workaround for python
13777 ## Assume and hunt for dotted version multiplet.
13778 ## use eval trickery, because we cannot use multi-level $() instead of ``
13779 ## for compatibility reasons.
13781 ## grab the first version number in --version output.
13782 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13783 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13786 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13787 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13790 if test -z "$_ver"; then
13791 ## If empty, try date [fontforge]
13792 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13793 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13795 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13802 echo "$ver" | awk -F. '
13804 if ($3) {three = $3}
13807 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13810 echo "1.82" | awk -F. '
13812 if ($3) {three = $3}
13815 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13817 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13818 $as_echo "$ver" >&6; }
13819 if test "$num" -lt "$req"; then
13821 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 1.82 (installed: $ver)"\"`\"
13824 vervar="`echo TEXI2HTML | tr 'a-z' 'A-Z'`_VERSION"
13825 eval `echo $vervar=$num`
13826 ## AC_SUBST(`eval echo $vervar`)
13831 for ac_prog in dblatex
13833 # Extract the first word of "$ac_prog", so it can be a program name with args.
13834 set dummy $ac_prog; ac_word=$2
13835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13836 $as_echo_n "checking for $ac_word... " >&6; }
13837 if test "${ac_cv_prog_DBLATEX+set}" = set; then
13838 $as_echo_n "(cached) " >&6
13840 if test -n "$DBLATEX"; then
13841 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13850 ac_cv_prog_DBLATEX="$ac_prog"
13851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13860 DBLATEX=$ac_cv_prog_DBLATEX
13861 if test -n "$DBLATEX"; then
13862 { $as_echo "$as_me:$LINENO: result: $DBLATEX" >&5
13863 $as_echo "$DBLATEX" >&6; }
13865 { $as_echo "$as_me:$LINENO: result: no" >&5
13866 $as_echo "no" >&6; }
13870 test -n "$DBLATEX" && break
13872 test -n "$DBLATEX" || DBLATEX="no"
13876 r="`eval echo '$'"DBLATEX"`"
13877 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"DBLATEX"`' : '.*\(echo\)' > /dev/null; then
13880 ##STEPMAKE_WARN(cannot find . )
13884 if test $? -ne 0; then
13886 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"dblatex\"`\"
13888 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
13889 command="echo ERROR: dblatex not found"
13890 # abort configure process here?
13892 command="- echo dblatex not found"
13894 eval "DBLATEX"='$command'
13900 if test $? -eq 0 -a -n "0.1.4"; then
13902 r="`eval echo '$'"DBLATEX"`"
13903 { $as_echo "$as_me:$LINENO: checking $r version" >&5
13904 $as_echo_n "checking $r version... " >&6; }
13906 ## which doesn't work in ash, if /usr/bin/which isn't installed
13907 ## type -p doesn't work in ash
13908 ## command -v doesn't work in zsh
13909 ## command -v "$r" 2>&1
13910 ## this test should work in ash, bash, pdksh (ksh), zsh
13911 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
13913 if test -n ""; then
13917 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
13920 ## Workaround for broken Debian gcc version string:
13921 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
13923 ## -V: Workaround for python
13927 ## Assume and hunt for dotted version multiplet.
13928 ## use eval trickery, because we cannot use multi-level $() instead of ``
13929 ## for compatibility reasons.
13931 ## grab the first version number in --version output.
13932 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
13933 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13936 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
13937 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
13940 if test -z "$_ver"; then
13941 ## If empty, try date [fontforge]
13942 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
13943 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
13945 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
13952 echo "$ver" | awk -F. '
13954 if ($3) {three = $3}
13957 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13960 echo "0.1.4" | awk -F. '
13962 if ($3) {three = $3}
13965 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
13967 { $as_echo "$as_me:$LINENO: result: $ver" >&5
13968 $as_echo "$ver" >&6; }
13969 if test "$num" -lt "$req"; then
13971 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= 0.1.4 (installed: $ver)"\"`\"
13974 vervar="`echo DBLATEX | tr 'a-z' 'A-Z'`_VERSION"
13975 eval `echo $vervar=$num`
13976 ## AC_SUBST(`eval echo $vervar`)
13981 for ac_prog in bibtex
13983 # Extract the first word of "$ac_prog", so it can be a program name with args.
13984 set dummy $ac_prog; ac_word=$2
13985 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13986 $as_echo_n "checking for $ac_word... " >&6; }
13987 if test "${ac_cv_prog_BIBTEX+set}" = set; then
13988 $as_echo_n "(cached) " >&6
13990 if test -n "$BIBTEX"; then
13991 ac_cv_prog_BIBTEX="$BIBTEX" # Let the user override the test.
13993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994 for as_dir in $PATH
13997 test -z "$as_dir" && as_dir=.
13998 for ac_exec_ext in '' $ac_executable_extensions; do
13999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14000 ac_cv_prog_BIBTEX="$ac_prog"
14001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14010 BIBTEX=$ac_cv_prog_BIBTEX
14011 if test -n "$BIBTEX"; then
14012 { $as_echo "$as_me:$LINENO: result: $BIBTEX" >&5
14013 $as_echo "$BIBTEX" >&6; }
14015 { $as_echo "$as_me:$LINENO: result: no" >&5
14016 $as_echo "no" >&6; }
14020 test -n "$BIBTEX" && break
14022 test -n "$BIBTEX" || BIBTEX="no"
14026 r="`eval echo '$'"BIBTEX"`"
14027 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"BIBTEX"`' : '.*\(echo\)' > /dev/null; then
14030 ##STEPMAKE_WARN(cannot find . )
14034 if test $? -ne 0; then
14036 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"bibtex\"`\"
14038 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14039 command="echo ERROR: bibtex not found"
14040 # abort configure process here?
14042 command="- echo bibtex not found"
14044 eval "BIBTEX"='$command'
14050 if test $? -eq 0 -a -n ""; then
14052 r="`eval echo '$'"BIBTEX"`"
14053 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14054 $as_echo_n "checking $r version... " >&6; }
14056 ## which doesn't work in ash, if /usr/bin/which isn't installed
14057 ## type -p doesn't work in ash
14058 ## command -v doesn't work in zsh
14059 ## command -v "$r" 2>&1
14060 ## this test should work in ash, bash, pdksh (ksh), zsh
14061 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14063 if test -n ""; then
14067 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14070 ## Workaround for broken Debian gcc version string:
14071 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14073 ## -V: Workaround for python
14077 ## Assume and hunt for dotted version multiplet.
14078 ## use eval trickery, because we cannot use multi-level $() instead of ``
14079 ## for compatibility reasons.
14081 ## grab the first version number in --version output.
14082 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14083 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14086 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14087 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14090 if test -z "$_ver"; then
14091 ## If empty, try date [fontforge]
14092 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14093 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14095 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14102 echo "$ver" | awk -F. '
14104 if ($3) {three = $3}
14107 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14110 echo "" | awk -F. '
14112 if ($3) {three = $3}
14115 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14117 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14118 $as_echo "$ver" >&6; }
14119 if test "$num" -lt "$req"; then
14121 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14124 vervar="`echo BIBTEX | tr 'a-z' 'A-Z'`_VERSION"
14125 eval `echo $vervar=$num`
14126 ## AC_SUBST(`eval echo $vervar`)
14131 for ac_prog in xelatex pdflatex
14133 # Extract the first word of "$ac_prog", so it can be a program name with args.
14134 set dummy $ac_prog; ac_word=$2
14135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14136 $as_echo_n "checking for $ac_word... " >&6; }
14137 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
14138 $as_echo_n "(cached) " >&6
14140 if test -n "$PDFLATEX"; then
14141 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
14143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14144 for as_dir in $PATH
14147 test -z "$as_dir" && as_dir=.
14148 for ac_exec_ext in '' $ac_executable_extensions; do
14149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14150 ac_cv_prog_PDFLATEX="$ac_prog"
14151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 PDFLATEX=$ac_cv_prog_PDFLATEX
14161 if test -n "$PDFLATEX"; then
14162 { $as_echo "$as_me:$LINENO: result: $PDFLATEX" >&5
14163 $as_echo "$PDFLATEX" >&6; }
14165 { $as_echo "$as_me:$LINENO: result: no" >&5
14166 $as_echo "no" >&6; }
14170 test -n "$PDFLATEX" && break
14172 test -n "$PDFLATEX" || PDFLATEX="no"
14176 r="`eval echo '$'"PDFLATEX"`"
14177 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFLATEX"`' : '.*\(echo\)' > /dev/null; then
14180 ##STEPMAKE_WARN(cannot find . )
14184 if test $? -ne 0; then
14186 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xelatex pdflatex\"`\"
14188 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14189 command="echo ERROR: xelatex pdflatex not found"
14190 # abort configure process here?
14192 command="- echo xelatex pdflatex not found"
14194 eval "PDFLATEX"='$command'
14200 if test $? -eq 0 -a -n ""; then
14202 r="`eval echo '$'"PDFLATEX"`"
14203 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14204 $as_echo_n "checking $r version... " >&6; }
14206 ## which doesn't work in ash, if /usr/bin/which isn't installed
14207 ## type -p doesn't work in ash
14208 ## command -v doesn't work in zsh
14209 ## command -v "$r" 2>&1
14210 ## this test should work in ash, bash, pdksh (ksh), zsh
14211 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14213 if test -n ""; then
14217 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14220 ## Workaround for broken Debian gcc version string:
14221 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14223 ## -V: Workaround for python
14227 ## Assume and hunt for dotted version multiplet.
14228 ## use eval trickery, because we cannot use multi-level $() instead of ``
14229 ## for compatibility reasons.
14231 ## grab the first version number in --version output.
14232 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14233 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14236 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14237 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14240 if test -z "$_ver"; then
14241 ## If empty, try date [fontforge]
14242 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14243 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14245 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14252 echo "$ver" | awk -F. '
14254 if ($3) {three = $3}
14257 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14260 echo "" | awk -F. '
14262 if ($3) {three = $3}
14265 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14267 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14268 $as_echo "$ver" >&6; }
14269 if test "$num" -lt "$req"; then
14271 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14274 vervar="`echo PDFLATEX | tr 'a-z' 'A-Z'`_VERSION"
14275 eval `echo $vervar=$num`
14276 ## AC_SUBST(`eval echo $vervar`)
14280 if test "$PDFLATEX" = "xelatex"; then
14282 for ac_prog in xetex
14284 # Extract the first word of "$ac_prog", so it can be a program name with args.
14285 set dummy $ac_prog; ac_word=$2
14286 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14287 $as_echo_n "checking for $ac_word... " >&6; }
14288 if test "${ac_cv_prog_PDFTEX+set}" = set; then
14289 $as_echo_n "(cached) " >&6
14291 if test -n "$PDFTEX"; then
14292 ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 for as_dir in $PATH
14298 test -z "$as_dir" && as_dir=.
14299 for ac_exec_ext in '' $ac_executable_extensions; do
14300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14301 ac_cv_prog_PDFTEX="$ac_prog"
14302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14311 PDFTEX=$ac_cv_prog_PDFTEX
14312 if test -n "$PDFTEX"; then
14313 { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
14314 $as_echo "$PDFTEX" >&6; }
14316 { $as_echo "$as_me:$LINENO: result: no" >&5
14317 $as_echo "no" >&6; }
14321 test -n "$PDFTEX" && break
14323 test -n "$PDFTEX" || PDFTEX="no"
14327 r="`eval echo '$'"PDFTEX"`"
14328 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
14331 ##STEPMAKE_WARN(cannot find . )
14335 if test $? -ne 0; then
14337 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"xetex\"`\"
14339 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14340 command="echo ERROR: xetex not found"
14341 # abort configure process here?
14343 command="- echo xetex not found"
14345 eval "PDFTEX"='$command'
14351 if test $? -eq 0 -a -n ""; then
14353 r="`eval echo '$'"PDFTEX"`"
14354 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14355 $as_echo_n "checking $r version... " >&6; }
14357 ## which doesn't work in ash, if /usr/bin/which isn't installed
14358 ## type -p doesn't work in ash
14359 ## command -v doesn't work in zsh
14360 ## command -v "$r" 2>&1
14361 ## this test should work in ash, bash, pdksh (ksh), zsh
14362 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14364 if test -n ""; then
14368 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14371 ## Workaround for broken Debian gcc version string:
14372 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14374 ## -V: Workaround for python
14378 ## Assume and hunt for dotted version multiplet.
14379 ## use eval trickery, because we cannot use multi-level $() instead of ``
14380 ## for compatibility reasons.
14382 ## grab the first version number in --version output.
14383 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14384 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14387 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14388 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14391 if test -z "$_ver"; then
14392 ## If empty, try date [fontforge]
14393 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14394 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14396 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14403 echo "$ver" | awk -F. '
14405 if ($3) {three = $3}
14408 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14411 echo "" | awk -F. '
14413 if ($3) {three = $3}
14416 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14418 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14419 $as_echo "$ver" >&6; }
14420 if test "$num" -lt "$req"; then
14422 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14425 vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14426 eval `echo $vervar=$num`
14427 ## AC_SUBST(`eval echo $vervar`)
14431 if test "$PDFTEX" = "xetex"; then
14432 # For avoiding PDF destination name replacement.
14433 PDFTEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xetex-with-options
14434 PDFLATEX=$ugh_ugh_autoconf250_builddir/scripts/build/out$CONFIGSUFFIX/xelatex-with-options
14438 for ac_prog in pdfetex pdftex etex
14440 # Extract the first word of "$ac_prog", so it can be a program name with args.
14441 set dummy $ac_prog; ac_word=$2
14442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14443 $as_echo_n "checking for $ac_word... " >&6; }
14444 if test "${ac_cv_prog_PDFTEX+set}" = set; then
14445 $as_echo_n "(cached) " >&6
14447 if test -n "$PDFTEX"; then
14448 ac_cv_prog_PDFTEX="$PDFTEX" # Let the user override the test.
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14457 ac_cv_prog_PDFTEX="$ac_prog"
14458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14467 PDFTEX=$ac_cv_prog_PDFTEX
14468 if test -n "$PDFTEX"; then
14469 { $as_echo "$as_me:$LINENO: result: $PDFTEX" >&5
14470 $as_echo "$PDFTEX" >&6; }
14472 { $as_echo "$as_me:$LINENO: result: no" >&5
14473 $as_echo "no" >&6; }
14477 test -n "$PDFTEX" && break
14479 test -n "$PDFTEX" || PDFTEX="no"
14483 r="`eval echo '$'"PDFTEX"`"
14484 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"PDFTEX"`' : '.*\(echo\)' > /dev/null; then
14487 ##STEPMAKE_WARN(cannot find . )
14491 if test $? -ne 0; then
14493 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pdfetex pdftex etex\"`\"
14495 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14496 command="echo ERROR: pdfetex pdftex etex not found"
14497 # abort configure process here?
14499 command="- echo pdfetex pdftex etex not found"
14501 eval "PDFTEX"='$command'
14507 if test $? -eq 0 -a -n ""; then
14509 r="`eval echo '$'"PDFTEX"`"
14510 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14511 $as_echo_n "checking $r version... " >&6; }
14513 ## which doesn't work in ash, if /usr/bin/which isn't installed
14514 ## type -p doesn't work in ash
14515 ## command -v doesn't work in zsh
14516 ## command -v "$r" 2>&1
14517 ## this test should work in ash, bash, pdksh (ksh), zsh
14518 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14520 if test -n ""; then
14524 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14527 ## Workaround for broken Debian gcc version string:
14528 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14530 ## -V: Workaround for python
14534 ## Assume and hunt for dotted version multiplet.
14535 ## use eval trickery, because we cannot use multi-level $() instead of ``
14536 ## for compatibility reasons.
14538 ## grab the first version number in --version output.
14539 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14540 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14543 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14544 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14547 if test -z "$_ver"; then
14548 ## If empty, try date [fontforge]
14549 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14550 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14552 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14559 echo "$ver" | awk -F. '
14561 if ($3) {three = $3}
14564 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14567 echo "" | awk -F. '
14569 if ($3) {three = $3}
14572 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14574 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14575 $as_echo "$ver" >&6; }
14576 if test "$num" -lt "$req"; then
14578 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14581 vervar="`echo PDFTEX | tr 'a-z' 'A-Z'`_VERSION"
14582 eval `echo $vervar=$num`
14583 ## AC_SUBST(`eval echo $vervar`)
14589 for ac_prog in texi2pdf
14591 # Extract the first word of "$ac_prog", so it can be a program name with args.
14592 set dummy $ac_prog; ac_word=$2
14593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14594 $as_echo_n "checking for $ac_word... " >&6; }
14595 if test "${ac_cv_prog_TEXI2PDF+set}" = set; then
14596 $as_echo_n "(cached) " >&6
14598 if test -n "$TEXI2PDF"; then
14599 ac_cv_prog_TEXI2PDF="$TEXI2PDF" # Let the user override the test.
14601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14602 for as_dir in $PATH
14605 test -z "$as_dir" && as_dir=.
14606 for ac_exec_ext in '' $ac_executable_extensions; do
14607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14608 ac_cv_prog_TEXI2PDF="$ac_prog"
14609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14618 TEXI2PDF=$ac_cv_prog_TEXI2PDF
14619 if test -n "$TEXI2PDF"; then
14620 { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
14621 $as_echo "$TEXI2PDF" >&6; }
14623 { $as_echo "$as_me:$LINENO: result: no" >&5
14624 $as_echo "no" >&6; }
14628 test -n "$TEXI2PDF" && break
14630 test -n "$TEXI2PDF" || TEXI2PDF="no"
14634 r="`eval echo '$'"TEXI2PDF"`"
14635 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXI2PDF"`' : '.*\(echo\)' > /dev/null; then
14638 ##STEPMAKE_WARN(cannot find . )
14642 if test $? -ne 0; then
14644 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texi2pdf\"`\"
14646 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14647 command="echo ERROR: texi2pdf not found"
14648 # abort configure process here?
14650 command="- echo texi2pdf not found"
14652 eval "TEXI2PDF"='$command'
14658 if test $? -eq 0 -a -n ""; then
14660 r="`eval echo '$'"TEXI2PDF"`"
14661 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14662 $as_echo_n "checking $r version... " >&6; }
14664 ## which doesn't work in ash, if /usr/bin/which isn't installed
14665 ## type -p doesn't work in ash
14666 ## command -v doesn't work in zsh
14667 ## command -v "$r" 2>&1
14668 ## this test should work in ash, bash, pdksh (ksh), zsh
14669 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14671 if test -n ""; then
14675 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14678 ## Workaround for broken Debian gcc version string:
14679 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14681 ## -V: Workaround for python
14685 ## Assume and hunt for dotted version multiplet.
14686 ## use eval trickery, because we cannot use multi-level $() instead of ``
14687 ## for compatibility reasons.
14689 ## grab the first version number in --version output.
14690 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14691 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14694 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14695 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14698 if test -z "$_ver"; then
14699 ## If empty, try date [fontforge]
14700 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14701 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14703 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14710 echo "$ver" | awk -F. '
14712 if ($3) {three = $3}
14715 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14718 echo "" | awk -F. '
14720 if ($3) {three = $3}
14723 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14725 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14726 $as_echo "$ver" >&6; }
14727 if test "$num" -lt "$req"; then
14729 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14732 vervar="`echo TEXI2PDF | tr 'a-z' 'A-Z'`_VERSION"
14733 eval `echo $vervar=$num`
14734 ## AC_SUBST(`eval echo $vervar`)
14739 for ac_prog in texindex
14741 # Extract the first word of "$ac_prog", so it can be a program name with args.
14742 set dummy $ac_prog; ac_word=$2
14743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14744 $as_echo_n "checking for $ac_word... " >&6; }
14745 if test "${ac_cv_prog_TEXINDEX+set}" = set; then
14746 $as_echo_n "(cached) " >&6
14748 if test -n "$TEXINDEX"; then
14749 ac_cv_prog_TEXINDEX="$TEXINDEX" # Let the user override the test.
14751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14752 for as_dir in $PATH
14755 test -z "$as_dir" && as_dir=.
14756 for ac_exec_ext in '' $ac_executable_extensions; do
14757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14758 ac_cv_prog_TEXINDEX="$ac_prog"
14759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14768 TEXINDEX=$ac_cv_prog_TEXINDEX
14769 if test -n "$TEXINDEX"; then
14770 { $as_echo "$as_me:$LINENO: result: $TEXINDEX" >&5
14771 $as_echo "$TEXINDEX" >&6; }
14773 { $as_echo "$as_me:$LINENO: result: no" >&5
14774 $as_echo "no" >&6; }
14778 test -n "$TEXINDEX" && break
14780 test -n "$TEXINDEX" || TEXINDEX="no"
14784 r="`eval echo '$'"TEXINDEX"`"
14785 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"TEXINDEX"`' : '.*\(echo\)' > /dev/null; then
14788 ##STEPMAKE_WARN(cannot find . )
14792 if test $? -ne 0; then
14794 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"texindex\"`\"
14796 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14797 command="echo ERROR: texindex not found"
14798 # abort configure process here?
14800 command="- echo texindex not found"
14802 eval "TEXINDEX"='$command'
14808 if test $? -eq 0 -a -n ""; then
14810 r="`eval echo '$'"TEXINDEX"`"
14811 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14812 $as_echo_n "checking $r version... " >&6; }
14814 ## which doesn't work in ash, if /usr/bin/which isn't installed
14815 ## type -p doesn't work in ash
14816 ## command -v doesn't work in zsh
14817 ## command -v "$r" 2>&1
14818 ## this test should work in ash, bash, pdksh (ksh), zsh
14819 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14821 if test -n ""; then
14825 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
14828 ## Workaround for broken Debian gcc version string:
14829 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
14831 ## -V: Workaround for python
14835 ## Assume and hunt for dotted version multiplet.
14836 ## use eval trickery, because we cannot use multi-level $() instead of ``
14837 ## for compatibility reasons.
14839 ## grab the first version number in --version output.
14840 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
14841 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14844 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
14845 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
14848 if test -z "$_ver"; then
14849 ## If empty, try date [fontforge]
14850 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
14851 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
14853 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
14860 echo "$ver" | awk -F. '
14862 if ($3) {three = $3}
14865 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14868 echo "" | awk -F. '
14870 if ($3) {three = $3}
14873 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
14875 { $as_echo "$as_me:$LINENO: result: $ver" >&5
14876 $as_echo "$ver" >&6; }
14877 if test "$num" -lt "$req"; then
14879 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
14882 vervar="`echo TEXINDEX | tr 'a-z' 'A-Z'`_VERSION"
14883 eval `echo $vervar=$num`
14884 ## AC_SUBST(`eval echo $vervar`)
14888 { $as_echo "$as_me:$LINENO: checking for epsf.tex" >&5
14889 $as_echo_n "checking for epsf.tex... " >&6; }
14890 TEX_EPSF=`kpsewhich tex epsf`
14891 if test "$TEX_EPSF" = ""; then
14892 { $as_echo "$as_me:$LINENO: result: not found" >&5
14893 $as_echo "not found" >&6; }
14895 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"epsf.tex\"`\"
14898 { $as_echo "$as_me:$LINENO: result: $TEX_EPSF" >&5
14899 $as_echo "$TEX_EPSF" >&6; }
14901 { $as_echo "$as_me:$LINENO: checking for Cyrillic characters support in TeX" >&5
14902 $as_echo_n "checking for Cyrillic characters support in TeX... " >&6; }
14903 TEX_FIKPARM=`kpsewhich -format=mf fikparm`
14904 if test "$TEX_FIKPARM" = ""; then
14905 { $as_echo "$as_me:$LINENO: result: not found" >&5
14906 $as_echo "not found" >&6; }
14908 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"'lh CTAN package (texlive-lang-cyrillic or texlive-texmf-fonts)'\"`\"
14911 { $as_echo "$as_me:$LINENO: result: yes" >&5
14912 $as_echo "yes" >&6; }
14915 for ac_prog in pngtopnm
14917 # Extract the first word of "$ac_prog", so it can be a program name with args.
14918 set dummy $ac_prog; ac_word=$2
14919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14920 $as_echo_n "checking for $ac_word... " >&6; }
14921 if test "${ac_cv_prog_NETPBM+set}" = set; then
14922 $as_echo_n "(cached) " >&6
14924 if test -n "$NETPBM"; then
14925 ac_cv_prog_NETPBM="$NETPBM" # Let the user override the test.
14927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14931 test -z "$as_dir" && as_dir=.
14932 for ac_exec_ext in '' $ac_executable_extensions; do
14933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14934 ac_cv_prog_NETPBM="$ac_prog"
14935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14944 NETPBM=$ac_cv_prog_NETPBM
14945 if test -n "$NETPBM"; then
14946 { $as_echo "$as_me:$LINENO: result: $NETPBM" >&5
14947 $as_echo "$NETPBM" >&6; }
14949 { $as_echo "$as_me:$LINENO: result: no" >&5
14950 $as_echo "no" >&6; }
14954 test -n "$NETPBM" && break
14956 test -n "$NETPBM" || NETPBM="no"
14960 r="`eval echo '$'"NETPBM"`"
14961 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"NETPBM"`' : '.*\(echo\)' > /dev/null; then
14964 ##STEPMAKE_WARN(cannot find . )
14968 if test $? -ne 0; then
14970 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"pngtopnm\"`\"
14972 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
14973 command="echo ERROR: pngtopnm not found"
14974 # abort configure process here?
14976 command="- echo pngtopnm not found"
14978 eval "NETPBM"='$command'
14984 if test $? -eq 0 -a -n ""; then
14986 r="`eval echo '$'"NETPBM"`"
14987 { $as_echo "$as_me:$LINENO: checking $r version" >&5
14988 $as_echo_n "checking $r version... " >&6; }
14990 ## which doesn't work in ash, if /usr/bin/which isn't installed
14991 ## type -p doesn't work in ash
14992 ## command -v doesn't work in zsh
14993 ## command -v "$r" 2>&1
14994 ## this test should work in ash, bash, pdksh (ksh), zsh
14995 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
14997 if test -n ""; then
15001 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15004 ## Workaround for broken Debian gcc version string:
15005 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15007 ## -V: Workaround for python
15011 ## Assume and hunt for dotted version multiplet.
15012 ## use eval trickery, because we cannot use multi-level $() instead of ``
15013 ## for compatibility reasons.
15015 ## grab the first version number in --version output.
15016 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15017 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15020 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15021 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15024 if test -z "$_ver"; then
15025 ## If empty, try date [fontforge]
15026 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15027 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15029 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15036 echo "$ver" | awk -F. '
15038 if ($3) {three = $3}
15041 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15044 echo "" | awk -F. '
15046 if ($3) {three = $3}
15049 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15051 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15052 $as_echo "$ver" >&6; }
15053 if test "$num" -lt "$req"; then
15055 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15058 vervar="`echo NETPBM | tr 'a-z' 'A-Z'`_VERSION"
15059 eval `echo $vervar=$num`
15060 ## AC_SUBST(`eval echo $vervar`)
15065 for ac_prog in convert
15067 # Extract the first word of "$ac_prog", so it can be a program name with args.
15068 set dummy $ac_prog; ac_word=$2
15069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15070 $as_echo_n "checking for $ac_word... " >&6; }
15071 if test "${ac_cv_prog_IMAGEMAGICK+set}" = set; then
15072 $as_echo_n "(cached) " >&6
15074 if test -n "$IMAGEMAGICK"; then
15075 ac_cv_prog_IMAGEMAGICK="$IMAGEMAGICK" # Let the user override the test.
15077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078 for as_dir in $PATH
15081 test -z "$as_dir" && as_dir=.
15082 for ac_exec_ext in '' $ac_executable_extensions; do
15083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15084 ac_cv_prog_IMAGEMAGICK="$ac_prog"
15085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15094 IMAGEMAGICK=$ac_cv_prog_IMAGEMAGICK
15095 if test -n "$IMAGEMAGICK"; then
15096 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK" >&5
15097 $as_echo "$IMAGEMAGICK" >&6; }
15099 { $as_echo "$as_me:$LINENO: result: no" >&5
15100 $as_echo "no" >&6; }
15104 test -n "$IMAGEMAGICK" && break
15106 test -n "$IMAGEMAGICK" || IMAGEMAGICK="no"
15110 r="`eval echo '$'"IMAGEMAGICK"`"
15111 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"IMAGEMAGICK"`' : '.*\(echo\)' > /dev/null; then
15114 ##STEPMAKE_WARN(cannot find . )
15118 if test $? -ne 0; then
15120 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"convert\"`\"
15122 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15123 command="echo ERROR: convert not found"
15124 # abort configure process here?
15126 command="- echo convert not found"
15128 eval "IMAGEMAGICK"='$command'
15134 if test $? -eq 0 -a -n ""; then
15136 r="`eval echo '$'"IMAGEMAGICK"`"
15137 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15138 $as_echo_n "checking $r version... " >&6; }
15140 ## which doesn't work in ash, if /usr/bin/which isn't installed
15141 ## type -p doesn't work in ash
15142 ## command -v doesn't work in zsh
15143 ## command -v "$r" 2>&1
15144 ## this test should work in ash, bash, pdksh (ksh), zsh
15145 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15147 if test -n ""; then
15151 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15154 ## Workaround for broken Debian gcc version string:
15155 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15157 ## -V: Workaround for python
15161 ## Assume and hunt for dotted version multiplet.
15162 ## use eval trickery, because we cannot use multi-level $() instead of ``
15163 ## for compatibility reasons.
15165 ## grab the first version number in --version output.
15166 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15167 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15170 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15171 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15174 if test -z "$_ver"; then
15175 ## If empty, try date [fontforge]
15176 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15177 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15179 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15186 echo "$ver" | awk -F. '
15188 if ($3) {three = $3}
15191 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15194 echo "" | awk -F. '
15196 if ($3) {three = $3}
15199 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15201 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15202 $as_echo "$ver" >&6; }
15203 if test "$num" -lt "$req"; then
15205 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15208 vervar="`echo IMAGEMAGICK | tr 'a-z' 'A-Z'`_VERSION"
15209 eval `echo $vervar=$num`
15210 ## AC_SUBST(`eval echo $vervar`)
15214 # this name avoids a conflict with ZIP in stepmake/aclocal.m4
15218 # Extract the first word of "$ac_prog", so it can be a program name with args.
15219 set dummy $ac_prog; ac_word=$2
15220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15221 $as_echo_n "checking for $ac_word... " >&6; }
15222 if test "${ac_cv_prog_ZIPDOC+set}" = set; then
15223 $as_echo_n "(cached) " >&6
15225 if test -n "$ZIPDOC"; then
15226 ac_cv_prog_ZIPDOC="$ZIPDOC" # Let the user override the test.
15228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15229 for as_dir in $PATH
15232 test -z "$as_dir" && as_dir=.
15233 for ac_exec_ext in '' $ac_executable_extensions; do
15234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15235 ac_cv_prog_ZIPDOC="$ac_prog"
15236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15245 ZIPDOC=$ac_cv_prog_ZIPDOC
15246 if test -n "$ZIPDOC"; then
15247 { $as_echo "$as_me:$LINENO: result: $ZIPDOC" >&5
15248 $as_echo "$ZIPDOC" >&6; }
15250 { $as_echo "$as_me:$LINENO: result: no" >&5
15251 $as_echo "no" >&6; }
15255 test -n "$ZIPDOC" && break
15257 test -n "$ZIPDOC" || ZIPDOC="no"
15261 r="`eval echo '$'"ZIPDOC"`"
15262 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"ZIPDOC"`' : '.*\(echo\)' > /dev/null; then
15265 ##STEPMAKE_WARN(cannot find . )
15269 if test $? -ne 0; then
15271 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"zip\"`\"
15273 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15274 command="echo ERROR: zip not found"
15275 # abort configure process here?
15277 command="- echo zip not found"
15279 eval "ZIPDOC"='$command'
15285 if test $? -eq 0 -a -n ""; then
15287 r="`eval echo '$'"ZIPDOC"`"
15288 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15289 $as_echo_n "checking $r version... " >&6; }
15291 ## which doesn't work in ash, if /usr/bin/which isn't installed
15292 ## type -p doesn't work in ash
15293 ## command -v doesn't work in zsh
15294 ## command -v "$r" 2>&1
15295 ## this test should work in ash, bash, pdksh (ksh), zsh
15296 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15298 if test -n ""; then
15302 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15305 ## Workaround for broken Debian gcc version string:
15306 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15308 ## -V: Workaround for python
15312 ## Assume and hunt for dotted version multiplet.
15313 ## use eval trickery, because we cannot use multi-level $() instead of ``
15314 ## for compatibility reasons.
15316 ## grab the first version number in --version output.
15317 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15318 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15321 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15322 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15325 if test -z "$_ver"; then
15326 ## If empty, try date [fontforge]
15327 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15328 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15330 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15337 echo "$ver" | awk -F. '
15339 if ($3) {three = $3}
15342 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15345 echo "" | awk -F. '
15347 if ($3) {three = $3}
15350 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15352 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15353 $as_echo "$ver" >&6; }
15354 if test "$num" -lt "$req"; then
15356 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15359 vervar="`echo ZIPDOC | tr 'a-z' 'A-Z'`_VERSION"
15360 eval `echo $vervar=$num`
15361 ## AC_SUBST(`eval echo $vervar`)
15366 for ac_prog in rsync
15368 # Extract the first word of "$ac_prog", so it can be a program name with args.
15369 set dummy $ac_prog; ac_word=$2
15370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15371 $as_echo_n "checking for $ac_word... " >&6; }
15372 if test "${ac_cv_prog_RSYNC+set}" = set; then
15373 $as_echo_n "(cached) " >&6
15375 if test -n "$RSYNC"; then
15376 ac_cv_prog_RSYNC="$RSYNC" # Let the user override the test.
15378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15379 for as_dir in $PATH
15382 test -z "$as_dir" && as_dir=.
15383 for ac_exec_ext in '' $ac_executable_extensions; do
15384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15385 ac_cv_prog_RSYNC="$ac_prog"
15386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15395 RSYNC=$ac_cv_prog_RSYNC
15396 if test -n "$RSYNC"; then
15397 { $as_echo "$as_me:$LINENO: result: $RSYNC" >&5
15398 $as_echo "$RSYNC" >&6; }
15400 { $as_echo "$as_me:$LINENO: result: no" >&5
15401 $as_echo "no" >&6; }
15405 test -n "$RSYNC" && break
15407 test -n "$RSYNC" || RSYNC="no"
15411 r="`eval echo '$'"RSYNC"`"
15412 if test -n "$r" -a "$r" != "error" -a "$r" != "no" && expr '`eval echo '$'"RSYNC"`' : '.*\(echo\)' > /dev/null; then
15415 ##STEPMAKE_WARN(cannot find . )
15419 if test $? -ne 0; then
15421 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \"rsync\"`\"
15423 if test "$DOCUMENTATION_REQUIRED" = "REQUIRED"; then
15424 command="echo ERROR: rsync not found"
15425 # abort configure process here?
15427 command="- echo rsync not found"
15429 eval "RSYNC"='$command'
15435 if test $? -eq 0 -a -n ""; then
15437 r="`eval echo '$'"RSYNC"`"
15438 { $as_echo "$as_me:$LINENO: checking $r version" >&5
15439 $as_echo_n "checking $r version... " >&6; }
15441 ## which doesn't work in ash, if /usr/bin/which isn't installed
15442 ## type -p doesn't work in ash
15443 ## command -v doesn't work in zsh
15444 ## command -v "$r" 2>&1
15445 ## this test should work in ash, bash, pdksh (ksh), zsh
15446 type -p $r 2>/dev/null | tail -n 1 | awk '{print $NF}'
15448 if test -n ""; then
15452 ## "$exe" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}'
15455 ## Workaround for broken Debian gcc version string:
15456 ## gcc (GCC) 3.1.1 20020606 (Debian prerelease)
15458 ## -V: Workaround for python
15462 ## Assume and hunt for dotted version multiplet.
15463 ## use eval trickery, because we cannot use multi-level $() instead of ``
15464 ## for compatibility reasons.
15466 ## grab the first version number in --version output.
15467 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 |
15468 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15471 sed 's/\([0-9][0-9]*\.[0-9][0-9.]*\).*/\1/g' |
15472 grep -E '(^| )[0-9][0-9]*\.[0-9]' |
15475 if test -z "$_ver"; then
15476 ## If empty, try date [fontforge]
15477 eval _ver=\"\`("$exe" --version || "$exe" -V) 2>&1 \
15478 | grep '\(^\|[^0-9a-f]\)[0-9]\{6,8\}\([^0-9a-f]\|$\)' \
15480 | sed -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\"
15487 echo "$ver" | awk -F. '
15489 if ($3) {three = $3}
15492 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15495 echo "" | awk -F. '
15497 if ($3) {three = $3}
15500 {printf "%.0f\n", $1*1000000 + $2*1000 + three}'
15502 { $as_echo "$as_me:$LINENO: result: $ver" >&5
15503 $as_echo "$ver" >&6; }
15504 if test "$num" -lt "$req"; then
15506 eval "$DOCUMENTATION_REQUIRED"=\"`eval echo \"'$'$DOCUMENTATION_REQUIRED\" \""$r >= (installed: $ver)"\"`\"
15509 vervar="`echo RSYNC | tr 'a-z' 'A-Z'`_VERSION"
15510 eval `echo $vervar=$num`
15511 ## AC_SUBST(`eval echo $vervar`)
15516 cat >>confdefs.h <<_ACEOF
15517 #define FLOWER_VERSION "${FULL_FLOWER_VERSION}"
15521 # must also have local.make if configure fails.
15524 if test "$reloc_b$rpath_b" = "yesno"; then
15526 { $as_echo "$as_me:$LINENO: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&5
15527 $as_echo "$as_me: WARNING: Using --enable-relocation without --enable-rpath. LilyPond may have trouble finding libraries." >&2;}
15532 # Gather requirements and generate output.
15535 # undo expanding of explicit --infodir=/usr/share
15536 # to ease install-time override with prefix=...
15537 strip=`echo $includedir | eval sed s@^$prefix@@`
15538 if test "$includedir" = "`eval echo $prefix$strip`"; then
15539 includedir='${prefix}'$strip''
15541 strip=`echo $libdir | eval sed s@^$exec_prefix@@`
15542 if test "$libdir" = "`eval echo $exec_prefix$strip`"; then
15543 libdir='${exec_prefix}'$strip''
15545 strip=`echo $infodir | eval sed s@^$datarootdir@@`
15546 if test "$infodir" = "`eval echo $datarootdir$strip`"; then
15547 infodir='${datarootdir}'$strip''
15549 strip=`echo $mandir | eval sed s@^$datarootdir@@`
15550 if test "$mandir" = "`eval echo $datarootdir$strip`"; then
15551 mandir='${datarootdir}'$strip''
15558 ac_config_files="$ac_config_files $CONFIGFILE.make:config.make.in"
15560 cat >confcache <<\_ACEOF
15561 # This file is a shell script that caches the results of configure
15562 # tests run on this system so they can be shared between configure
15563 # scripts and configure runs, see configure's option --config-cache.
15564 # It is not useful on other systems. If it contains results you don't
15565 # want to keep, you may remove or edit it.
15567 # config.status only pays attention to the cache file if you give it
15568 # the --recheck option to rerun configure.
15570 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15571 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15572 # following values.
15576 # The following way of writing the cache mishandles newlines in values,
15577 # but we know of no workaround that is simple, portable, and efficient.
15578 # So, we kill variables containing newlines.
15579 # Ultrix sh set writes to stderr and can't be redirected directly,
15580 # and sets the high bit in the cache file unless we assign to the vars.
15582 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15583 eval ac_val=\$$ac_var
15587 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15588 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15591 _ | IFS | as_nl) ;; #(
15592 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15593 *) $as_unset $ac_var ;;
15599 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15600 *${as_nl}ac_space=\ *)
15601 # `set' does not quote correctly, so add quotes (double-quote
15602 # substitution turns \\\\ into \\, and sed turns \\ into \).
15605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15608 # `set' quotes correctly as required by POSIX, so do not add quotes.
15609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15618 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15620 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15622 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15623 if test -w "$cache_file"; then
15624 test "x$cache_file" != "x/dev/null" &&
15625 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15626 $as_echo "$as_me: updating cache $cache_file" >&6;}
15627 cat confcache >$cache_file
15629 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15630 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15635 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15636 # Let make expand exec_prefix.
15637 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15639 DEFS=-DHAVE_CONFIG_H
15643 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15644 # 1. Remove the extension, and $U if already installed.
15645 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15646 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15647 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15648 # will be set to the directory where LIBOBJS objects are built.
15649 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15650 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15652 LIBOBJS=$ac_libobjs
15654 LTLIBOBJS=$ac_ltlibobjs
15658 : ${CONFIG_STATUS=./config.status}
15660 ac_clean_files_save=$ac_clean_files
15661 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15662 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15663 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15664 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15666 # Generated by $as_me.
15667 # Run this file to recreate the current configuration.
15668 # Compiler output produced by configure, useful for debugging
15669 # configure, is in config.log if it exists.
15672 ac_cs_recheck=false
15674 SHELL=\${CONFIG_SHELL-$SHELL}
15677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15678 ## --------------------- ##
15679 ## M4sh Initialization. ##
15680 ## --------------------- ##
15682 # Be more Bourne compatible
15683 DUALCASE=1; export DUALCASE # for MKS sh
15684 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15687 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15688 # is contrary to our usage. Disable this feature.
15689 alias -g '${1+"$@"}'='"$@"'
15690 setopt NO_GLOB_SUBST
15692 case `(set -o) 2>/dev/null` in
15693 *posix*) set -o posix ;;
15702 # Avoid depending upon Character Ranges.
15703 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15704 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15705 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15706 as_cr_digits='0123456789'
15707 as_cr_alnum=$as_cr_Letters$as_cr_digits
15712 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15713 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15714 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15715 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15716 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15717 as_echo='printf %s\n'
15718 as_echo_n='printf %s'
15720 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15721 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15722 as_echo_n='/usr/ucb/echo -n'
15724 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15725 as_echo_n_body='eval
15729 expr "X$arg" : "X\\(.*\\)$as_nl";
15730 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15732 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15734 export as_echo_n_body
15735 as_echo_n='sh -c $as_echo_n_body as_echo'
15737 export as_echo_body
15738 as_echo='sh -c $as_echo_body as_echo'
15741 # The user is always right.
15742 if test "${PATH_SEPARATOR+set}" != set; then
15744 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15745 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15750 # Support unset when possible.
15751 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15759 # We need space, tab and new line, in precisely that order. Quoting is
15760 # there to prevent editors from complaining about space-tab.
15761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15762 # splitting by setting IFS to empty value.)
15765 # Find who we are. Look in the path if we contain no directory separator.
15767 *[\\/]* ) as_myself=$0 ;;
15768 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15769 for as_dir in $PATH
15772 test -z "$as_dir" && as_dir=.
15773 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15779 # We did not find ourselves, most probably we were run as `sh COMMAND'
15780 # in which case we are not to be found in the path.
15781 if test "x$as_myself" = x; then
15784 if test ! -f "$as_myself"; then
15785 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15786 { (exit 1); exit 1; }
15789 # Work around bugs in pre-3.0 UWIN ksh.
15790 for as_var in ENV MAIL MAILPATH
15791 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15803 # Required to use basename.
15804 if expr a : '\(a\)' >/dev/null 2>&1 &&
15805 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15811 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15812 as_basename=basename
15818 # Name of the executable.
15819 as_me=`$as_basename -- "$0" ||
15820 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15821 X"$0" : 'X\(//\)$' \| \
15822 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15824 sed '/^.*\/\([^/][^/]*\)\/*$/{
15843 as_lineno_1=$LINENO
15844 as_lineno_2=$LINENO
15845 test "x$as_lineno_1" != "x$as_lineno_2" &&
15846 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15848 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15849 # uniformly replaced by the line number. The first 'sed' inserts a
15850 # line-number line after each line using $LINENO; the second 'sed'
15851 # does the real work. The second script uses 'N' to pair each
15852 # line-number line with the line containing $LINENO, and appends
15853 # trailing '-' during substitution so that $LINENO is not a special
15854 # case at line end.
15855 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15856 # scripts with optimization help from Paolo Bonzini. Blame Lee
15857 # E. McMahon (1931-1989) for sed's syntax. :-)
15869 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15872 ' >$as_me.lineno &&
15873 chmod +x "$as_me.lineno" ||
15874 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15875 { (exit 1); exit 1; }; }
15877 # Don't try to exec as it changes $[0], causing all sort of problems
15878 # (the dirname of $[0] is not the place where we might find the
15879 # original and so on. Autoconf is especially sensitive to this).
15880 . "./$as_me.lineno"
15881 # Exit status is that of the last command.
15886 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15892 ECHO_C= ECHO_N= ECHO_T=
15893 case `echo -n x` in
15895 case `echo 'x\c'` in
15896 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15902 if expr a : '\(a\)' >/dev/null 2>&1 &&
15903 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15909 rm -f conf$$ conf$$.exe conf$$.file
15910 if test -d conf$$.dir; then
15911 rm -f conf$$.dir/conf$$.file
15914 mkdir conf$$.dir 2>/dev/null
15916 if (echo >conf$$.file) 2>/dev/null; then
15917 if ln -s conf$$.file conf$$ 2>/dev/null; then
15919 # ... but there are two gotchas:
15920 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15921 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15922 # In both cases, we have to default to `cp -p'.
15923 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15925 elif ln conf$$.file conf$$ 2>/dev/null; then
15933 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15934 rmdir conf$$.dir 2>/dev/null
15936 if mkdir -p . 2>/dev/null; then
15939 test -d ./-p && rmdir ./-p
15943 if test -x / >/dev/null 2>&1; then
15944 as_test_x='test -x'
15946 if ls -dL / >/dev/null 2>&1; then
15953 if test -d "$1"; then
15959 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15960 ???[sx]*):;;*)false;;esac;fi
15964 as_executable_p=$as_test_x
15966 # Sed expression to map a string onto a valid CPP name.
15967 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15969 # Sed expression to map a string onto a valid variable name.
15970 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15975 # Save the log message, to keep $[0] and so on meaningful, and to
15976 # report actual input values of CONFIG_FILES etc. instead of their
15977 # values after options handling.
15979 This file was extended by $as_me, which was
15980 generated by GNU Autoconf 2.63. Invocation command line was
15982 CONFIG_FILES = $CONFIG_FILES
15983 CONFIG_HEADERS = $CONFIG_HEADERS
15984 CONFIG_LINKS = $CONFIG_LINKS
15985 CONFIG_COMMANDS = $CONFIG_COMMANDS
15988 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15993 case $ac_config_files in *"
15994 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15997 case $ac_config_headers in *"
15998 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16003 # Files that config.status was made for.
16004 config_files="$ac_config_files"
16005 config_headers="$ac_config_headers"
16009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16011 \`$as_me' instantiates files from templates according to the
16012 current configuration.
16014 Usage: $0 [OPTION]... [FILE]...
16016 -h, --help print this help, then exit
16017 -V, --version print version number and configuration settings, then exit
16018 -q, --quiet, --silent
16019 do not print progress messages
16020 -d, --debug don't remove temporary files
16021 --recheck update $as_me by reconfiguring in the same conditions
16022 --file=FILE[:TEMPLATE]
16023 instantiate the configuration file FILE
16024 --header=FILE[:TEMPLATE]
16025 instantiate the configuration header FILE
16027 Configuration files:
16030 Configuration headers:
16033 Report bugs to <bug-autoconf@gnu.org>."
16036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16039 configured by $0, generated by GNU Autoconf 2.63,
16040 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16042 Copyright (C) 2008 Free Software Foundation, Inc.
16043 This config.status script is free software; the Free Software Foundation
16044 gives unlimited permission to copy, distribute and modify it."
16048 test -n "\$AWK" || AWK=awk
16051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16052 # The default lists apply if the user does not specify any file.
16058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16070 # Handling of the options.
16071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16073 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16074 $as_echo "$ac_cs_version"; exit ;;
16075 --debug | --debu | --deb | --de | --d | -d )
16077 --file | --fil | --fi | --f )
16080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16082 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16083 ac_need_defaults=false;;
16084 --header | --heade | --head | --hea )
16087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16089 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16090 ac_need_defaults=false;;
16092 # Conflict between --help and --header
16093 { $as_echo "$as_me: error: ambiguous option: $1
16094 Try \`$0 --help' for more information." >&2
16095 { (exit 1); exit 1; }; };;
16096 --help | --hel | -h )
16097 $as_echo "$ac_cs_usage"; exit ;;
16098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16099 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16102 # This is an error.
16103 -*) { $as_echo "$as_me: error: unrecognized option: $1
16104 Try \`$0 --help' for more information." >&2
16105 { (exit 1); exit 1; }; } ;;
16107 *) ac_config_targets="$ac_config_targets $1"
16108 ac_need_defaults=false ;;
16114 ac_configure_extra_args=
16116 if $ac_cs_silent; then
16118 ac_configure_extra_args="$ac_configure_extra_args --silent"
16122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16123 if \$ac_cs_recheck; then
16124 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16126 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16127 CONFIG_SHELL='$SHELL'
16128 export CONFIG_SHELL
16133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16137 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16138 ## Running $as_me. ##
16144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16149 # Handling of arguments.
16150 for ac_config_target in $ac_config_targets
16152 case $ac_config_target in
16153 "$CONFIGFILE.hh") CONFIG_HEADERS="$CONFIG_HEADERS $CONFIGFILE.hh:config.hh.in" ;;
16154 "$CONFIGFILE.make") CONFIG_FILES="$CONFIG_FILES $CONFIGFILE.make:config.make.in" ;;
16156 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16157 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16158 { (exit 1); exit 1; }; };;
16163 # If the user did not use the arguments to specify the items to instantiate,
16164 # then the envvar interface is used. Set only those that are not.
16165 # We use the long form for the default assignment because of an extremely
16166 # bizarre bug on SunOS 4.1.3.
16167 if $ac_need_defaults; then
16168 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16169 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16172 # Have a temporary directory for convenience. Make it in the build tree
16173 # simply because there is no reason against having it here, and in addition,
16174 # creating and moving files from /tmp can sometimes cause problems.
16175 # Hook for its removal unless debugging.
16176 # Note that there is a small window in which the directory will not be cleaned:
16177 # after its creation but before its name has been assigned to `$tmp'.
16181 trap 'exit_status=$?
16182 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16184 trap '{ (exit 1); exit 1; }' 1 2 13 15
16186 # Create a (secure) tmp directory for tmp files.
16189 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16190 test -n "$tmp" && test -d "$tmp"
16193 tmp=./conf$$-$RANDOM
16194 (umask 077 && mkdir "$tmp")
16197 $as_echo "$as_me: cannot create a temporary directory in ." >&2
16198 { (exit 1); exit 1; }
16201 # Set up the scripts for CONFIG_FILES section.
16202 # No need to generate them if there are no CONFIG_FILES.
16203 # This happens for instance with `./config.status config.h'.
16204 if test -n "$CONFIG_FILES"; then
16208 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16212 ac_cs_awk_cr=$ac_cr
16215 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16220 echo "cat >conf$$subs.awk <<_ACEOF" &&
16221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16223 } >conf$$subs.sh ||
16224 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16225 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16226 { (exit 1); exit 1; }; }
16227 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16229 for ac_last_try in false false false false false :; do
16230 . ./conf$$subs.sh ||
16231 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16232 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16233 { (exit 1); exit 1; }; }
16235 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16236 if test $ac_delim_n = $ac_delim_num; then
16238 elif $ac_last_try; then
16239 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16240 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16241 { (exit 1); exit 1; }; }
16243 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16246 rm -f conf$$subs.sh
16248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16249 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16253 s/^/S["/; s/!.*/"]=/
16263 s/\(.\{148\}\).*/\1/
16265 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16270 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16277 s/\(.\{148\}\).*/\1/
16279 s/["\\]/\\&/g; s/^/"/; s/$/"/
16283 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16288 ' <conf$$subs.awk | sed '
16293 ' >>$CONFIG_STATUS || ac_write_fail=1
16294 rm -f conf$$subs.awk
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16297 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16298 for (key in S) S_is_set[key] = 1
16304 nfields = split(line, field, "@")
16306 len = length(field[1])
16307 for (i = 2; i < nfields; i++) {
16309 keylen = length(key)
16310 if (S_is_set[key]) {
16312 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16313 len += length(value) + length(field[++i])
16324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16325 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16326 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16329 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16330 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16331 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16332 { (exit 1); exit 1; }; }
16335 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16336 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16337 # trailing colons and then remove the whole line if VPATH becomes empty
16338 # (actually we leave an empty line to preserve line numbers).
16339 if test "x$srcdir" = x.; then
16340 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16341 s/:*\$(srcdir):*/:/
16342 s/:*\${srcdir}:*/:/
16344 s/^\([^=]*=[ ]*\):*/\1/
16350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16351 fi # test -n "$CONFIG_FILES"
16353 # Set up the scripts for CONFIG_HEADERS section.
16354 # No need to generate them if there are no CONFIG_HEADERS.
16355 # This happens for instance with `./config.status Makefile'.
16356 if test -n "$CONFIG_HEADERS"; then
16357 cat >"$tmp/defines.awk" <<\_ACAWK ||
16361 # Transform confdefs.h into an awk script `defines.awk', embedded as
16362 # here-document in config.status, that substitutes the proper values into
16363 # config.h.in to produce config.h.
16365 # Create a delimiter string that does not exist in confdefs.h, to ease
16366 # handling of long lines.
16368 for ac_last_try in false false :; do
16369 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16370 if test -z "$ac_t"; then
16372 elif $ac_last_try; then
16373 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16374 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16375 { (exit 1); exit 1; }; }
16377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16381 # For the awk script, D is an array of macro values keyed by name,
16382 # likewise P contains macro parameters if any. Preserve backslash
16383 # newline sequences.
16385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16387 s/.\{148\}/&'"$ac_delim"'/g
16390 s/^[ ]*#[ ]*define[ ][ ]*/ /
16397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16399 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16404 D["\1"]=" \3\\\\\\n"\\/p
16406 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16411 s/.\{148\}/&'"$ac_delim"'/g
16416 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16419 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16421 ' <confdefs.h | sed '
16422 s/'"$ac_delim"'/"\\\
16423 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16426 for (key in D) D_is_set[key] = 1
16429 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16431 split(line, arg, " ")
16432 if (arg[1] == "#") {
16436 defundef = substr(arg[1], 2)
16439 split(mac1, mac2, "(") #)
16441 prefix = substr(line, 1, index(line, defundef) - 1)
16442 if (D_is_set[macro]) {
16443 # Preserve the white space surrounding the "#".
16444 print prefix "define", macro P[macro] D[macro]
16447 # Replace #undef with comments. This is necessary, for example,
16448 # in the case of _POSIX_SOURCE, which is predefined and required
16449 # on some systems where configure will not decide to define it.
16450 if (defundef == "undef") {
16451 print "/*", prefix defundef, macro, "*/"
16459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16460 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16461 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16462 { (exit 1); exit 1; }; }
16463 fi # test -n "$CONFIG_HEADERS"
16466 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16471 :[FHLC]) ac_mode=$ac_tag; continue;;
16473 case $ac_mode$ac_tag in
16475 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16476 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16477 { (exit 1); exit 1; }; };;
16478 :[FH]-) ac_tag=-:-;;
16479 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16496 -) ac_f="$tmp/stdin";;
16497 *) # Look for the file first in the build tree, then in the source tree
16498 # (if the path is not absolute). The absolute path cannot be DOS-style,
16499 # because $ac_f cannot contain `:'.
16503 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16505 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16506 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16507 { (exit 1); exit 1; }; };;
16509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16510 ac_file_inputs="$ac_file_inputs '$ac_f'"
16513 # Let's still pretend it is `configure' which instantiates (i.e., don't
16514 # use $as_me), people would be surprised to read:
16515 # /* config.h. Generated by config.status. */
16516 configure_input='Generated from '`
16517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16519 if test x"$ac_file" != x-; then
16520 configure_input="$ac_file. $configure_input"
16521 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16522 $as_echo "$as_me: creating $ac_file" >&6;}
16524 # Neutralize special characters interpreted by sed in replacement strings.
16525 case $configure_input in #(
16526 *\&* | *\|* | *\\* )
16527 ac_sed_conf_input=`$as_echo "$configure_input" |
16528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16529 *) ac_sed_conf_input=$configure_input;;
16533 *:-:* | *:-) cat >"$tmp/stdin" \
16534 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16535 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16536 { (exit 1); exit 1; }; } ;;
16541 ac_dir=`$as_dirname -- "$ac_file" ||
16542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16543 X"$ac_file" : 'X\(//\)[^/]' \| \
16544 X"$ac_file" : 'X\(//\)$' \| \
16545 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16546 $as_echo X"$ac_file" |
16547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16551 /^X\(\/\/\)[^/].*/{
16566 -*) as_dir=./$as_dir;;
16568 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16572 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16573 *) as_qdir=$as_dir;;
16575 as_dirs="'$as_qdir' $as_dirs"
16576 as_dir=`$as_dirname -- "$as_dir" ||
16577 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16578 X"$as_dir" : 'X\(//\)[^/]' \| \
16579 X"$as_dir" : 'X\(//\)$' \| \
16580 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16581 $as_echo X"$as_dir" |
16582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16586 /^X\(\/\/\)[^/].*/{
16599 test -d "$as_dir" && break
16601 test -z "$as_dirs" || eval "mkdir $as_dirs"
16602 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16603 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16604 { (exit 1); exit 1; }; }; }
16608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16611 # A ".." for each directory in $ac_dir_suffix.
16612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16613 case $ac_top_builddir_sub in
16614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16618 ac_abs_top_builddir=$ac_pwd
16619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16620 # for backward compatibility:
16621 ac_top_builddir=$ac_top_build_prefix
16624 .) # We are building in place.
16626 ac_top_srcdir=$ac_top_builddir_sub
16627 ac_abs_top_srcdir=$ac_pwd ;;
16628 [\\/]* | ?:[\\/]* ) # Absolute name.
16629 ac_srcdir=$srcdir$ac_dir_suffix;
16630 ac_top_srcdir=$srcdir
16631 ac_abs_top_srcdir=$srcdir ;;
16632 *) # Relative name.
16633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16634 ac_top_srcdir=$ac_top_build_prefix$srcdir
16635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16649 # If the template does not know about datarootdir, expand it.
16650 # FIXME: This hack should be removed a few years after 2.60.
16651 ac_datarootdir_hack=; ac_datarootdir_seen=
16664 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16665 *datarootdir*) ac_datarootdir_seen=yes;;
16666 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16667 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16668 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16671 ac_datarootdir_hack='
16672 s&@datadir@&$datadir&g
16673 s&@docdir@&$docdir&g
16674 s&@infodir@&$infodir&g
16675 s&@localedir@&$localedir&g
16676 s&@mandir@&$mandir&g
16677 s&\\\${datarootdir}&$datarootdir&g' ;;
16681 # Neutralize VPATH when `$srcdir' = `.'.
16682 # Shell code in configure.ac might set extrasub.
16683 # FIXME: do we really want to maintain this feature?
16684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16685 ac_sed_extra="$ac_vpsub
16688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16691 s|@configure_input@|$ac_sed_conf_input|;t t
16692 s&@top_builddir@&$ac_top_builddir_sub&;t t
16693 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16694 s&@srcdir@&$ac_srcdir&;t t
16695 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16696 s&@top_srcdir@&$ac_top_srcdir&;t t
16697 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16698 s&@builddir@&$ac_builddir&;t t
16699 s&@abs_builddir@&$ac_abs_builddir&;t t
16700 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16701 $ac_datarootdir_hack
16703 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16704 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16705 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16706 { (exit 1); exit 1; }; }
16708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16709 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16711 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16712 which seems to be undefined. Please make sure it is defined." >&5
16713 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16714 which seems to be undefined. Please make sure it is defined." >&2;}
16718 -) cat "$tmp/out" && rm -f "$tmp/out";;
16719 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16721 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16722 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16723 { (exit 1); exit 1; }; }
16729 if test x"$ac_file" != x-; then
16731 $as_echo "/* $configure_input */" \
16732 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16733 } >"$tmp/config.h" \
16734 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16735 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16736 { (exit 1); exit 1; }; }
16737 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16738 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16739 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16742 mv "$tmp/config.h" "$ac_file" \
16743 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16744 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16745 { (exit 1); exit 1; }; }
16748 $as_echo "/* $configure_input */" \
16749 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16750 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16751 $as_echo "$as_me: error: could not create -" >&2;}
16752 { (exit 1); exit 1; }; }
16762 { (exit 0); exit 0; }
16764 chmod +x $CONFIG_STATUS
16765 ac_clean_files=$ac_clean_files_save
16767 test $ac_write_fail = 0 ||
16768 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16769 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16770 { (exit 1); exit 1; }; }
16773 # configure is writing to config.log, and then calls config.status.
16774 # config.status does its own redirection, appending to config.log.
16775 # Unfortunately, on DOS this fails, as config.log is still kept open
16776 # by configure, so config.status won't be able to write to it; its
16777 # output is simply discarded. So we exec the FD to /dev/null,
16778 # effectively closing config.log, so it can be properly (re)opened and
16779 # appended to by config.status. When coming back to configure, we
16780 # need to make the FD available again.
16781 if test "$no_create" != yes; then
16783 ac_config_status_args=
16784 test "$silent" = yes &&
16785 ac_config_status_args="$ac_config_status_args --quiet"
16787 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16789 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16790 # would make configure fail if this is the last instruction.
16791 $ac_cs_success || { (exit 1); exit 1; }
16793 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16794 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16795 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16799 if test -n "$OPTIONAL"; then
16801 echo "WARNING: Please consider installing optional programs or files: $OPTIONAL"
16804 if test -n "$REQUIRED"; then
16806 echo "ERROR: Please install required programs: $REQUIRED"
16809 if test -n "$UNSUPPORTED"; then
16811 echo "ERROR: Please use older version of programs: $UNSUPPORTED"
16814 if test -n "$OPTIONAL$REQUIRED$UNSUPPORTED"; then
16816 echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME"
16817 if test -f config.cache ; then
16818 echo "Remove config.cache before rerunning ./configure"
16822 if test -n "$REQUIRED$UNSUPPORTED"; then
16823 rm -f $srcdir/GNUmakefile
16827 # regular in-place build
16828 # test for srcdir_build = yes ?
16829 if test "$srcdir_build" = "yes"; then
16830 rm -f $srcdir/GNUmakefile
16831 cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile
16832 chmod 444 $srcdir/GNUmakefile
16834 if test -f $srcdir/GNUmakefile; then
16836 Source directory already configured. Please clean the source directory
16838 make -C $srcdir distclean
16840 and rerun configure.
16845 abssrcdir="`cd $srcdir; pwd`"
16846 absbuilddir="`pwd`"
16847 for d in 2 3 4 5 ; do
16848 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name GNUmakefile`; do
16849 case "$abssrcdir" in
16851 # source is below build directory, always copy
16854 case "$abssrcdir/${mf#./}" in
16856 # find descended into build directory, don't copy
16861 cat <<EOF | $PYTHON - > $mf
16862 print 'depth=' + ('../' * ( $d-1 ) )
16863 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16864 print 'include \$(configure-srcdir)/$mf'
16865 print 'MODULE_INCLUDES += \$(src-dir)/\$(outbase)'
16868 for mf in `cd $srcdir ; find . -maxdepth $d -mindepth $d -name '*.make' | grep -v config.make `; do
16869 case "$abssrcdir" in
16871 # source is below build directory, always copy
16874 case "$abssrcdir/${mf#./}" in
16876 # find descended into build directory, don't copy
16881 cat <<EOF | $PYTHON - > $mf
16882 print 'include \$(depth)/config\$(if \$(conf),-\$(conf),).make'
16883 print 'include \$(configure-srcdir)/$mf'
16889 cat <<EOF > GNUmakefile
16891 include config\$(if \$(conf),-\$(conf),).make
16892 include \$(configure-srcdir)/GNUmakefile.in
16894 chmod 444 GNUmakefile
16899 test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc=""
16901 if make top-doc 1>/dev/null 2>&1; then
16902 rm -f INSTALL.txt && ln Documentation/topdocs/out/INSTALL.txt .
16903 rm -f README.txt && ln Documentation/topdocs/out/README.txt .
16909 make$mc all to build LilyPond
16910 make$mc install to install LilyPond
16911 make$mc help to see all possible targets
16913 Edit local.make for local Makefile overrides.