X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=configure;h=8474f966adcfe43f87cc61823dc97296005f74dd;hb=546cefdbf177b7da323f71e41197983b7174d7d1;hp=c5be88005ed24eae2591940c206cebfbbdc6d2aa;hpb=f9a3a6ccb7cab73028819954312508f1bdb2dfff;p=lilypond.git diff --git a/configure b/configure index c5be88005e..8474f966ad 100755 --- a/configure +++ b/configure @@ -1,58 +1,5 @@ #! /bin/sh -ac_help="$ac_help - --with-gtkmm-prefix=PREFIX - Prefix where GTK-- is installed (optional)" -# Check whether --with-gtkmm-prefix or --without-gtkmm-prefix was given. -if test "${with_gtkmm_prefix+set}" = set; then - withval="$with_gtkmm_prefix" - gtkmm_config_prefix="$withval" -else - gtkmm_config_prefix="" -fi - -ac_help="$ac_help - --with-gtkmm-exec-prefix=PREFIX - Exec prefix where GTK-- is installed (optional)" -# Check whether --with-gtkmm-exec-prefix or --without-gtkmm-exec-prefix was given. -if test "${with_gtkmm_exec_prefix+set}" = set; then - withval="$with_gtkmm_exec_prefix" - gtkmm_config_exec_prefix="$withval" -else - gtkmm_config_exec_prefix="" -fi - -ac_help="$ac_help - --disable-gtkmmtest Do not try to compile and run a test GTK-- program" -# Check whether --enable-gtkmmtest or --disable-gtkmmtest was given. -if test "${enable_gtkmmtest+set}" = set; then - enableval="$enable_gtkmmtest" - : -else - enable_gtkmmtest=yes -fi - - - if test x$gtkmm_config_exec_prefix != x ; then - gtkmm_config_args="$gtkmm_config_args --exec-prefix=$gtkmm_config_exec_prefix" - if test x${GTKMM_CONFIG+set} != xset ; then - GTKMM_CONFIG=$gtkmm_config_exec_prefix/bin/gtkmm-config - fi - fi - if test x$gtkmm_config_prefix != x ; then - gtkmm_config_args="$gtkmm_config_args --prefix=$gtkmm_config_prefix" - if test x${GTKMM_CONFIG+set} != xset ; then - GTKMM_CONFIG=$gtkmm_config_prefix/bin/gtkmm-config - fi - fi - - - - -# Configure paths for GTK--DRAW -# Derek Quinn Wyatt 98-08-21 (adapted from Jan Nieuwenhuizen's code) - - # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. @@ -65,25 +12,26 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help - enable-config=FILE put configure settings in config-FILE.make" + --enable-config=CONF put settings in config-CONF.make and config-CONF.h; + do \`make conf=CONF' to get output in ./out-CONF" ac_help="$ac_help - enable-checking set runtime checks (assert calls). Default: on" + --enable-checking set runtime checks (assert calls). Default: on" ac_help="$ac_help - enable-optimise use maximal speed optimisations. Default: off" + --enable-debugging compile with debugging info. Default: on" ac_help="$ac_help - enable-profiling compile with gprof support. Default: off" + --enable-optimising compile with optimising. Default: on" ac_help="$ac_help - enable-debugging set debug info. Default: on" + --enable-profiling compile with gprof support. Default: off" ac_help="$ac_help - enable-mingw-prefix=DIR set the mingw32 directory (standalone windows32 exes)" + --with-localedir=LOCALE use LOCALE as locale dir. Default: + PREFIX/share/locale " ac_help="$ac_help - with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale " + --with-lang=LANG use LANG as language to emit messages" ac_help="$ac_help - with-lang=LANG use LANG as language to emit messages" + --enable-tfm-path=PATH set path of tex directories where tfm files live, + esp.: cmr10.tfm. Default: use kpsewhich" ac_help="$ac_help - enable-tfm-path=PATH set path of tex directories where tfm files live, esp.: cmr10.tfm. Default: use kpsewhich" -ac_help="$ac_help - enable-kpathsea use kpathsea lib. Default: on" + --with-kpathsea use kpathsea lib. Default: on" # Initialize some variables set by options. # The variables have the same names as the options, with @@ -627,26 +575,23 @@ fi fi echo $ac_n "checking Package""... $ac_c" 1>&6 -echo "configure:631: checking Package" >&5 +echo "configure:579: checking Package" >&5 if test "x$PACKAGE" = "xSTEPMAKE"; then echo "$ac_t""Stepmake package!" 1>&6 - #if test "x$builddir" != "x"; then - # builddir="../$builddir" - #else - # builddir=.. - #fi - if test "$srcdir" != "."; then + echo $ac_n "checking builddir""... $ac_c" 1>&6 +echo "configure:584: checking builddir" >&5 + if test "$srcdir" = "."; then + builddir=. + else absolute_builddir="`pwd`" package_absolute_builddir="`dirname $absolute_builddir`" package_srcdir="`dirname $srcdir`" builddir="`dirname $package_srcdir`/`basename $package_absolute_builddir`/`basename $absolute_builddir`" - else - builddir=. fi + echo "$ac_t""$builddir" 1>&6 (cd stepmake 2>/dev/null || mkdir stepmake) - (cd stepmake; rm -f stepmake; ln -s ../$srcdir/stepmake .) (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .) ac_aux_dir= for ac_dir in bin $srcdir/bin; do @@ -671,22 +616,40 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. else echo "$ac_t""$PACKAGE" 1>&6 - if test "$srcdir" != "."; then - absolute_builddir="`pwd`" - builddir="`dirname $srcdir`/`basename $absolute_builddir`" - else + echo $ac_n "checking builddir""... $ac_c" 1>&6 +echo "configure:621: checking builddir" >&5 + if test "$srcdir" = "."; then builddir=. + srcdir_build=no + else + absolute_builddir="`pwd`" +# builddir="`dirname $srcdir`/`basename $absolute_builddir`" + builddir="`bash $srcdir/buildscripts/walk.sh \"$srcdir\"`" + srcdir_build=yes + fi + echo "$ac_t""$builddir" 1>&6 + if expr "$srcdir" : '/' > /dev/null 2>&1; then + absolute_srcdir=yes + + echo "configure: warning: Absolute --srcdir specified: $srcdir" 1>&2 + warn_b=yes + fi echo $ac_n "checking for stepmake""... $ac_c" 1>&6 -echo "configure:683: checking for stepmake" >&5 +echo "configure:641: checking for stepmake" >&5 # Check for installed stepmake if test -d $stepmake; then echo "$ac_t""$stepmake" 1>&6 else - stepmake='$(depth)'/$srcdir/stepmake + if test "$absolute_srcdir" != "yes"; then + stepmake='$(depth)'/$srcdir/stepmake + else + stepmake=$srcdir/stepmake + fi echo "$ac_t""$srcdir/stepmake ($datadir/stepmake not found)" 1>&6 fi + ac_aux_dir= for ac_dir in \ $HOME/usr/local/share/stepmake/bin\ @@ -781,10 +744,13 @@ EOF # Check whether --enable-config or --disable-config was given. if test "${enable_config+set}" = set; then enableval="$enable_config" - CONFIGSUFFIX=-$enableval + CONFIGURATION=$enableval fi + ##' + + test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION" CONFIGFILE=config$CONFIGSUFFIX @@ -795,7 +761,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:799: checking host system type" >&5 +echo "configure:765: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -815,12 +781,13 @@ host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` echo "$ac_t""$host" 1>&6 + for ac_prog in gmake make do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:824: checking for $ac_word" >&5 +echo "configure:791: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -848,14 +815,77 @@ fi test -n "$MAKE" && break done -test -n "$MAKE" || MAKE="error" +test -n "$MAKE" || MAKE="no" + + + + r="`eval echo '$'"MAKE"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKE"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"gmake make\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: gmake make not found" + # abort configure process here? + else + command="- echo gmake make not found" + fi + eval "MAKE"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"MAKE"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:851: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + + fi + for ac_prog in find do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:859: checking for $ac_word" >&5 +echo "configure:889: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_FIND'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -883,16 +913,78 @@ fi test -n "$FIND" && break done -test -n "$FIND" || FIND="error" +test -n "$FIND" || FIND="no" + + + + r="`eval echo '$'"FIND"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"FIND"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"find\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: find not found" + # abort configure process here? + else + command="- echo find not found" + fi + eval "FIND"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"FIND"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:949: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + fi + for ac_prog in tar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:896: checking for $ac_word" >&5 +echo "configure:988: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -920,14 +1012,76 @@ fi test -n "$TAR" && break done -test -n "$TAR" || TAR="error" +test -n "$TAR" || TAR="no" + + + + r="`eval echo '$'"TAR"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"TAR"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"tar\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: tar not found" + # abort configure process here? + else + command="- echo tar not found" + fi + eval "TAR"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"TAR"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:1048: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + + fi if test "x`uname`" = "xHP-UX"; then # Extract the first word of "bash", so it can be a program name with args. set dummy bash; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:931: checking for $ac_word" >&5 +echo "configure:1085: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -967,7 +1121,7 @@ fi # Extract the first word of "bash", so it can be a program name with args. set dummy bash; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:971: checking for $ac_word" >&5 +echo "configure:1125: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_SHELL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1004,7 +1158,7 @@ fi # Extract the first word of "bash", so it can be a program name with args. set dummy bash; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1008: checking for $ac_word" >&5 +echo "configure:1162: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_BASH'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1041,11 +1195,73 @@ fi fi + + for ac_prog in python +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:1205: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_PYTHON'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$PYTHON"; then + ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_PYTHON="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +PYTHON="$ac_cv_prog_PYTHON" +if test -n "$PYTHON"; then + echo "$ac_t""$PYTHON" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$PYTHON" && break +done +test -n "$PYTHON" || PYTHON="no" + + + + r="`eval echo '$'"PYTHON"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PYTHON"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"python\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: python not found" + # abort configure process here? + else + command="- echo python not found" + fi + eval "PYTHON"='$command' + false + else + true + fi - # Extract the first word of "${PYTHON:-python}", so it can be a program name with args. -set dummy ${PYTHON:-python}; ac_word=$2 + if test $? -eq 0; then + # Extract the first word of "python", so it can be a program name with args. +set dummy python; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1049: checking for $ac_word" >&5 +echo "configure:1265: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1067,7 +1283,6 @@ else fi done IFS="$ac_save_ifs" - test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python" ;; esac fi @@ -1078,61 +1293,69 @@ else echo "$ac_t""no" 1>&6 fi - + if test -n ""; then + + r="`eval echo '$'"PYTHON"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:1301: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi - if test $MAKE != "error" ; then - $MAKE -v 2> /dev/null | grep GNU > /dev/null - if test "$?" = 1 - then - - echo "configure: warning: Please install *GNU* make" 1>&2 - warn_b=yes - fi - fi + fi - - result="`echo \"$PYTHON\" | grep echo`" - if test "x$PYTHON" = "xerror" -o "x$result" != "x"; then - - echo "configure: warning: can\'t find python. You should install Python" 1>&2 + + if expr "$MAKE" : '.*\(echo\)' >/dev/null; then + $MAKE -v 2> /dev/null | grep GNU > /dev/null + if test "$?" = 1; then + warn='make (Please install *GNU* make)' + + echo "configure: warning: $warn" 1>&2 warn_b=yes - fi + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$warn\"`\" + fi + fi - if test "x$OSTYPE" = "xcygwin32" || test "x$OSTYPE" = "xWindows_NT"; then + if test "$OSTYPE" = "cygwin" -o "$OSTYPE" = "cygwin32" -o "$OSTYPE" = "Windows_NT"; then LN=cp # hard link does not work under cygnus-nt LN_S='cp -r' # symbolic link does not work for native nt ZIP="zip -r -9" # program_suffix=.exe - # urg - # DIRSEP='\\' - # PATHSEP=';' - # - # cygwin fixes all these things. - # it seems these were used because of dos-style TEXINPUTS and - # MFINPUTS needed for miktex. - # but this breaks parsing of all other cygwin/unix style paths. - # - # if your (mik)tex breaks, make a: - # /usr/local/bin/tex: - # #!/bin/sh - # TEXINPUTS=`cygpath -pw $TEXINPUTS` /texmf/miktex/bin/tex - # - # and - # - # /usr/local/bin/mf: - # #!/bin/sh - # MFINPUTS=`cygpath -pw $MFINPUTS` /texmf/miktex/bin/mf - # - # this way, you may have buildscripts/out/lilypond-profile - # 'automatically' sourced from /usr/etc/profile.d/ too. - # + ROOTSEP=':' DIRSEP='/' PATHSEP=':' INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c" else + ROOTSEP=':' DIRSEP='/' PATHSEP=':' LN=ln @@ -1167,8 +1390,11 @@ EOF presome=${ac_default_prefix} fi DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"` + + + cat >> confdefs.h <&6 -echo "configure:1274: checking for $ac_word" >&5 +echo "configure:1477: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1300,7 +1503,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1304: checking for $ac_word" >&5 +echo "configure:1507: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1351,7 +1554,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1355: checking for $ac_word" >&5 +echo "configure:1558: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1383,7 +1586,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1387: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:1590: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1394,12 +1597,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 1398 "configure" +#line 1601 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1425,12 +1628,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1429: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1632: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1434: checking whether we are using GNU C" >&5 +echo "configure:1637: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1439,7 +1642,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1458,7 +1661,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1462: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:1665: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1489,11 +1692,50 @@ else fi fi + + + r="`eval echo '$'"CC"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"CC"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval ""=\"`eval echo \"'$'\" \"cc\"`\" + + if test "" = "REQUIRED"; then + command="echo ERROR: cc not found" + # abort configure process here? + else + command="- echo cc not found" + fi + eval "CC"='$command' + false + else + true + fi + LD='$(CC)' CFLAGS="$CFLAGS $OPTIMIZE" - CPPFLAGS=${CPPFLAGS:-""} + CPPFLAGS=${CPPFLAGS-""} + + echo $ac_n "checking for IEEE-conformance compiler flags""... $ac_c" 1>&6 +echo "configure:1729: checking for IEEE-conformance compiler flags" >&5 + save_cflags="$CFLAGS" + case "$host" in + alpha*-*-*) + echo "$ac_t""-mieee" 1>&6 + CFLAGS="-mieee $CFLAGS" + ;; + *) + echo "$ac_t""none" 1>&6 + ;; + esac @@ -1505,7 +1747,7 @@ fi # AC_HAVE_HEADERS(limits.h malloc.h string.h unistd.h values.h) echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1509: checking how to run the C preprocessor" >&5 +echo "configure:1751: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -1520,13 +1762,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1537,13 +1779,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1554,13 +1796,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1588,17 +1830,17 @@ for ac_hdr in assert.h sys/stat.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1592: checking for $ac_hdr" >&5 +echo "configure:1834: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1625,12 +1867,12 @@ fi done echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 -echo "configure:1629: checking whether stat file-mode macros are broken" >&5 +echo "configure:1871: checking whether stat file-mode macros are broken" >&5 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -1681,17 +1923,8 @@ EOF fi -if test "$optimise_b" = yes; then - DEFINES="$DEFINES -DSTRING_UTILS_INLINED" - cat >> confdefs.h <<\EOF -#define STRINGS_UTILS_INLINED 1 -EOF - -fi - - echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 -echo "configure:1695: checking how to run the C++ preprocessor" >&5 +echo "configure:1928: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1704,12 +1937,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1746,7 +1979,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1750: checking for $ac_word" >&5 +echo "configure:1983: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1778,7 +2011,7 @@ test -n "$CXX" || CXX="gcc" echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1782: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 +echo "configure:2015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 ac_ext=C # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1789,12 +2022,12 @@ cross_compiling=$ac_cv_prog_cxx_cross cat > conftest.$ac_ext << EOF -#line 1793 "configure" +#line 2026 "configure" #include "confdefs.h" int main(){return(0);} EOF -if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1820,12 +2053,12 @@ if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1824: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:2057: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 -echo "configure:1829: checking whether we are using GNU C++" >&5 +echo "configure:2062: checking whether we are using GNU C++" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1834,7 +2067,7 @@ else yes; #endif EOF -if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yes else ac_cv_prog_gxx=no @@ -1853,7 +2086,7 @@ ac_test_CXXFLAGS="${CXXFLAGS+set}" ac_save_CXXFLAGS="$CXXFLAGS" CXXFLAGS= echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -echo "configure:1857: checking whether ${CXX-g++} accepts -g" >&5 +echo "configure:2090: checking whether ${CXX-g++} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1884,20 +2117,97 @@ else fi fi +for ac_declaration in \ + ''\ + '#include ' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat > conftest.$ac_ext < +$ac_declaration +int main() { +exit (42); +; return 0; } +EOF +if { (eval echo configure:2139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + : +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + continue +fi +rm -f conftest* + cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then + rm -rf conftest* + break +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 +fi +rm -f conftest* +done +if test -n "$ac_declaration"; then + echo '#ifdef __cplusplus' >>confdefs.h + echo $ac_declaration >>confdefs.h + echo '#endif' >>confdefs.h +fi + + + + + r="`eval echo '$'"CXX"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"CXX"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"c++\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: c++ not found" + # abort configure process here? + else + command="- echo c++ not found" + fi + eval "CXX"='$command' + false + else + true + fi + ac_safe=`echo "FlexLexer.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for FlexLexer.h""... $ac_c" 1>&6 -echo "configure:1891: checking for FlexLexer.h" >&5 +echo "configure:2201: checking for FlexLexer.h" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1917,7 +2227,7 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then else echo "$ac_t""no" 1>&6 - echo "configure: warning: can"\'"t find flex header. Please install Flex headers correctly" 1>&2 + echo "configure: warning: cannot find flex header. Please install Flex headers correctly" 1>&2 warn_b=yes fi @@ -1933,27 +2243,34 @@ fi - # ugh autoconf - # urg, egcs: how to check for egcs >= 1.1? - if $CXX --version | egrep '2\.[89]' > /dev/null || - $CXX --version | grep 'egcs' > /dev/null + echo $ac_n "checking "g++ version"""... $ac_c" 1>&6 +echo "configure:2248: checking "g++ version"" >&5 + cxx_version=`$CXX --version` + echo "$ac_t"""$cxx_version"" 1>&6 + # urg, egcs: how to check for egcs >= 1.1? + if expr "$cxx_version" : '.*2\.[89]' > /dev/null || + expr "$cxx_version" : '.*egcs' > /dev/null || + expr "$cxx_version" : '3\.[0-9]' > /dev/null then true else - - echo "configure: warning: can\'t find g++ 2.8" 1>&2 + + echo "configure: warning: cannot find g++ 2.8" 1>&2 warn_b=yes + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'g++ >= 2.95 (gcc package)'\"`\" + fi echo $ac_n "checking whether explicit instantiation is needed""... $ac_c" 1>&6 -echo "configure:1952: checking whether explicit instantiation is needed" >&5 +echo "configure:2269: checking whether explicit instantiation is needed" >&5 if eval "test \"`echo '$''{'lily_cv_need_explicit_instantiation'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < struct foo { static int baz; }; @@ -1963,7 +2280,7 @@ int main() { return foo::baz; ; return 0; } EOF -if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* lily_cv_need_explicit_instantiation=no else @@ -1990,7 +2307,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1994: checking for $ac_word" >&5 +echo "configure:2311: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2020,20 +2337,14 @@ test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" - # ugh, automake: we want (and check for) flex - # AC_PROG_LEX - # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack... - - # AC_DECL_YYTEXT - # ugh, ugh - ac_cv_prog_lex_root=lex.yy - + + for ac_prog in bison do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2037: checking for $ac_word" >&5 +echo "configure:2348: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2061,16 +2372,125 @@ fi test -n "$BISON" && break done -test -n "$BISON" || BISON="error" +test -n "$BISON" || BISON="no" - for ac_prog in flex -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2072: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 + + + r="`eval echo '$'"BISON"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"BISON"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"bison\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: bison not found" + # abort configure process here? + else + command="- echo bison not found" + fi + eval "BISON"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"BISON"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:2408: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + + fi + + + # urg. should test functionality rather than version. + if test "$BISON" = "bison" -a -n "1.25"; then + + r="`eval echo '$'"BISON"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:2446: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "1.25" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r 1.25 (installed: $ver)"\"`\" + + fi + + fi + + + # ugh, automake: we want (and check for) flex + # AC_PROG_LEX + # urg: automake 1.3: hope this doesn't break 1.2 ac_cv_pro_lex_root hack... + + # AC_DECL_YYTEXT + # ugh, ugh + ac_cv_prog_lex_root=lex.yy + + for ac_prog in flex +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:2492: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$FLEX"; then ac_cv_prog_FLEX="$FLEX" # Let the user override the test. @@ -2096,47 +2516,79 @@ fi test -n "$FLEX" && break done -test -n "$FLEX" || FLEX="error" +test -n "$FLEX" || FLEX="no" - result="`echo \"$BISON\" | grep echo`" - if test "x$BISON" = "xerror" -o "x$result" != "x"; then - - echo "configure: warning: can\'t find bison. Please install Bison" 1>&2 - warn_b=yes - - fi - - result="`echo \"$FLEX\" | grep echo`" - if test "x$FLEX" = "xerror" -o "x$result" != "x"; then - - echo "configure: warning: can\'t find flex. Please install Flex" 1>&2 - warn_b=yes + r="`eval echo '$'"FLEX"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"FLEX"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"flex\"`\" + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: flex not found" + # abort configure process here? + else + command="- echo flex not found" fi + eval "FLEX"='$command' + false + else + true + fi + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"FLEX"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:2552: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" - if test $BISON != "error"; then - bison_version=`$BISON --version | sed 's/^.*version 1.//g'` - if test `echo $bison_version | sed 's/\..*$//g'` -lt 25; then - - echo "configure: warning: Your bison is a bit old (1.$bison_version). You might have to install 1.25" 1>&2 - warn_b=yes + fi - fi fi - - + for ac_prog in ar do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2140: checking for $ac_word" >&5 +echo "configure:2592: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2164,12 +2616,74 @@ fi test -n "$AR" && break done -test -n "$AR" || AR="error" +test -n "$AR" || AR="no" + + + + r="`eval echo '$'"AR"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"AR"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ar\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: ar not found" + # abort configure process here? + else + command="- echo ar not found" + fi + eval "AR"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"AR"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:2652: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi + + fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2173: checking for $ac_word" >&5 +echo "configure:2687: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2196,11 +2710,33 @@ else echo "$ac_t""no" 1>&6 fi - + r="`eval echo '$'"RANLIB"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"RANLIB"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"ranlib\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: ranlib not found" + # abort configure process here? + else + command="- echo ranlib not found" + fi + eval "RANLIB"='$command' + false + else + true + fi + -# AC_STEPMAKE_LIBTOOL lang=English ALL_LINGUAS="en nl" @@ -2225,7 +2761,7 @@ fi echo $ac_n "checking language""... $ac_c" 1>&6 -echo "configure:2229: checking language" >&5 +echo "configure:2765: checking language" >&5 case "$language" in En* | en* | Am* | am* | US* | us*) lang=English;; @@ -2261,7 +2797,7 @@ EOF echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6 -echo "configure:2265: checking for gettext in -lintl" >&5 +echo "configure:2801: checking for gettext in -lintl" >&5 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2269,7 +2805,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lintl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2313,12 +2849,12 @@ fi for ac_func in gettext do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:2317: checking for $ac_func" >&5 +echo "configure:2853: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -2370,13 +2906,13 @@ done - # AC_CHECK_PROGS(MSGFMT, msgfmt, -echo no msgfmt) + for ac_prog in msgfmt do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2380: checking for $ac_word" >&5 +echo "configure:2916: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2404,38 +2940,81 @@ fi test -n "$MSGFMT" && break done -test -n "$MSGFMT" || MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh " +test -n "$MSGFMT" || MSGFMT="no" - echo $ac_n "checking whether msgfmt accepts -o""... $ac_c" 1>&6 -echo "configure:2411: checking whether msgfmt accepts -o" >&5 - msgfmt_output="`msgfmt -o bla 2>&1 | grep usage`" - if test "$msgfmt_output" = ""; then - echo "$ac_t""yes" 1>&6 + + + r="`eval echo '$'"MSGFMT"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MSGFMT"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false else - # urg - MSGFMT="\$(SHELL) \$(step-bindir)/fake-msgfmt.sh" - echo "$ac_t""no" 1>&6 + true + fi + + if test $? -ne 0; then - echo "configure: warning: please install msgfmt from GNU gettext" 1>&2 - warn_b=yes + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"msgfmt\"`\" + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: msgfmt not found" + # abort configure process here? + else + command="- echo msgfmt not found" + fi + eval "MSGFMT"='$command' + false + else + true fi - if test ! -n "$MSGFMT"; then + + if test $? -eq 0 -a -n ""; then - echo "configure: warning: please install msgfmt from GNU gettext" 1>&2 - warn_b=yes + r="`eval echo '$'"MSGFMT"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:2976: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" + + fi fi + # urg, never know what names these teTeX guys will think up - for ac_prog in mf + + for ac_prog in mf mfont do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2439: checking for $ac_word" >&5 +echo "configure:3018: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_METAFONT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2465,126 +3044,75 @@ test -n "$METAFONT" && break done test -n "$METAFONT" || METAFONT="no" - if test "x$METAFONT" = "xno"; then - for ac_prog in mfont -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2475: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_MFONT'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$MFONT"; then - ac_cv_prog_MFONT="$MFONT" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_MFONT="$ac_prog" - break + + + r="`eval echo '$'"METAFONT"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"METAFONT"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true fi - done - IFS="$ac_save_ifs" -fi -fi -MFONT="$ac_cv_prog_MFONT" -if test -n "$MFONT"; then - echo "$ac_t""$MFONT" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi -test -n "$MFONT" && break -done -test -n "$MFONT" || MFONT="-echo no mf or mfont" - - METAFONT=$MFONT - fi + if test $? -ne 0; then + + eval ""=\"`eval echo \"'$'\" \"mf mfont\"`\" - for ac_prog in mp -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2513: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_METAPOST'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$METAPOST"; then - ac_cv_prog_METAPOST="$METAPOST" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_METAPOST="$ac_prog" - break + if test "" = "REQUIRED"; then + command="echo ERROR: mf mfont not found" + # abort configure process here? + else + command="- echo mf mfont not found" + fi + eval "METAFONT"='$command' + false + else + true fi - done - IFS="$ac_save_ifs" -fi -fi -METAPOST="$ac_cv_prog_METAPOST" -if test -n "$METAPOST"; then - echo "$ac_t""$METAPOST" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi -test -n "$METAPOST" && break -done -test -n "$METAPOST" || METAPOST="no" + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"METAFONT"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3078: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval ""=\"`eval echo \"'$'\" \""$r (installed: $ver)"\"`\" - if test "x$METAPOST" = "xno"; then - for ac_prog in mpost -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2549: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$MPOST"; then - ac_cv_prog_MPOST="$MPOST" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_MPOST="$ac_prog" - break fi - done - IFS="$ac_save_ifs" -fi -fi -MPOST="$ac_cv_prog_MPOST" -if test -n "$MPOST"; then - echo "$ac_t""$MPOST" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$MPOST" && break -done -test -n "$MPOST" || MPOST="-echo no mp or mpost" - - METAPOST=$MPOST fi - for ac_prog in inimf + + for ac_prog in inimf inimfont do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2588: checking for $ac_word" >&5 +echo "configure:3116: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_INIMETAFONT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2614,283 +3142,770 @@ test -n "$INIMETAFONT" && break done test -n "$INIMETAFONT" || INIMETAFONT="no" - if test "x$INIMETAFONT" = "xno"; then - for ac_prog in inimfont -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2624: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_INIMFONT'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$INIMFONT"; then - ac_cv_prog_INIMFONT="$INIMFONT" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_INIMFONT="$ac_prog" - break + + + r="`eval echo '$'"INIMETAFONT"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"INIMETAFONT"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true fi - done - IFS="$ac_save_ifs" -fi -fi -INIMFONT="$ac_cv_prog_INIMFONT" -if test -n "$INIMFONT"; then - echo "$ac_t""$INIMFONT" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi -test -n "$INIMFONT" && break -done -test -n "$INIMFONT" || INIMFONT="-echo no inimf or inimfont" + if test $? -ne 0; then + + eval ""=\"`eval echo \"'$'\" \"inimf inimfont\"`\" + + if test "" = "REQUIRED"; then + command="echo ERROR: inimf inimfont not found" + # abort configure process here? + else + command="- echo inimf inimfont not found" + fi + eval "INIMETAFONT"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"INIMETAFONT"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3176: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval ""=\"`eval echo \"'$'\" \""$r (installed: $ver)"\"`\" + + fi - INIMETAFONT=$INIMFONT fi - for ac_prog in inimp + + echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6 +echo "configure:3210: checking for working metafont mode" >&5 + modelist='ljfour lj4 lj3 lj2 ljet laserjet' + for MFMODE in $modelist; do + $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1 + if test -f mfput.tfm; then + break; + fi + done + echo "$ac_t""$MFMODE" 1>&6 + + rm -f mfput.* + + + + + # Check whether --enable-tfm-path or --disable-tfm-path was given. +if test "${enable_tfm_path+set}" = set; then + enableval="$enable_tfm_path" + tfm_path=$enableval +else + tfm_path=auto +fi + + + # ugh + + for ac_prog in kpsewhich do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2662: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_INIMETAPOST'+set}'`\" = set"; then +echo "configure:3241: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$INIMETAPOST"; then - ac_cv_prog_INIMETAPOST="$INIMETAPOST" # Let the user override the test. + if test -n "$KPSEWHICH"; then + ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_INIMETAPOST="$ac_prog" + ac_cv_prog_KPSEWHICH="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -INIMETAPOST="$ac_cv_prog_INIMETAPOST" -if test -n "$INIMETAPOST"; then - echo "$ac_t""$INIMETAPOST" 1>&6 +KPSEWHICH="$ac_cv_prog_KPSEWHICH" +if test -n "$KPSEWHICH"; then + echo "$ac_t""$KPSEWHICH" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$INIMETAPOST" && break +test -n "$KPSEWHICH" && break done -test -n "$INIMETAPOST" || INIMETAPOST="no" +test -n "$KPSEWHICH" || KPSEWHICH="no" + + + + r="`eval echo '$'"KPSEWHICH"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"KPSEWHICH"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\" + + if test "OPTIONAL" = "REQUIRED"; then + command="echo ERROR: kpsewhich not found" + # abort configure process here? + else + command="- echo kpsewhich not found" + fi + eval "KPSEWHICH"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"KPSEWHICH"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3301: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r (installed: $ver)"\"`\" + + fi + + fi + + echo $ac_n "checking for tfm path""... $ac_c" 1>&6 +echo "configure:3334: checking for tfm path" >&5 + + TFM_FONTS="cmr msam" + + if test "x$tfm_path" = xauto ; then + if test "x$KPSEWHICH" != "xno" ; then + for i in $TFM_FONTS; do + dir=`$KPSEWHICH tfm ${i}10.tfm` + TFM_PATH="$TFM_PATH `dirname $dir`" + done + else + + echo "configure: warning: Please specify where cmr10.tfm lives: + ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2 + warn_b=yes + + fi + else + TFM_PATH=$tfm_path + fi + + TFM_PATH=`echo $TFM_PATH | tr ':' ' '` + echo "$ac_t""$TFM_PATH" 1>&6 + + + + ## First, let's just see if we can find Guile at all. + echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6 +echo "configure:3362: checking "for guile-config"" >&5 + for guile_config in guile-config $target-guile-config $build-guile-config; do + echo "$ac_t"""$guile_config"" 1>&6 + if ! $guile_config --version > /dev/null 2>&1 ; then + echo "configure: warning: "cannot execute $guile_config"" 1>&2 + echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6 +echo "configure:3368: checking "if we are cross compiling"" >&5 + GUILE_CONFIG='echo no guile-config' + else + GUILE_CONFIG=$guile_config + break + fi + done + + + r="`eval echo '$'"GUILE_CONFIG"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"$guile_config\"`\" + + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: $guile_config not found" + # abort configure process here? + else + command="- echo $guile_config not found" + fi + eval "GUILE_CONFIG"='$command' + false + else + true + fi + + #if expr "$GUILE_CONFIG" : '.*\(echo\)' >/dev/null; then + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'guile-config (guile-devel, guile-dev or libguile-dev package)'\"`\" + + fi + + + r="`eval echo '$'"GUILE_CONFIG"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE_CONFIG"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + # urg. should test functionality rather than version. + if test $? -eq 0 -a -n "1.3.4"; then + + r="`eval echo '$'"GUILE_CONFIG"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3422: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "1.3.4" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r 1.3.4 (installed: $ver)"\"`\" + + fi + + fi + + + + guile_version="$ver" + GUILE_MAJOR_VERSION=`expr $guile_version : '\([0-9]*\)'` + GUILE_MINOR_VERSION=`expr $guile_version : '[0-9]*\.\([0-9]*\)'` + + exe=` + type -p "$guile_config" 2>&1 | awk '{print $NF}' +` + if test -x $exe; then + echo $ac_n "checking "guile compile flags"""... $ac_c" 1>&6 +echo "configure:3465: checking "guile compile flags"" >&5 + GUILE_CFLAGS="`$guile_config compile`" + echo "$ac_t""$GUILE_CFLAGS" 1>&6 + echo $ac_n "checking "guile link flags"""... $ac_c" 1>&6 +echo "configure:3469: checking "guile link flags"" >&5 + GUILE_LDFLAGS="`$guile_config link`" + echo "$ac_t""$GUILE_LDFLAGS" 1>&6 + fi + + + + cat >> confdefs.h <> confdefs.h <&6 +echo "configure:3503: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + + echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6 +echo "configure:3540: checking for kpse_find_file in -lkpathsea" >&5 +ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lkpathsea $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 +fi + + for ac_func in kpse_find_file +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:3592: checking for $ac_func" >&5 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + cat >> confdefs.h <&6 +{ echo "configure: error: Cannot find kpathsea functions. You should install kpathsea; see INSTALL.txt. Rerun ./configure --without-kpathsea only if kpathsea is not available for your platform." 1>&2; exit 1; } +fi +done + + fi + echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6 +echo "configure:3650: checking whether to use kpathsea" >&5 + if test "$kpathsea_b" != no; then + echo "$ac_t""yes" 1>&6 + KPATHSEA=1 + else + echo "$ac_t""no" 1>&6 + KPATHSEA=0 + fi + + + cat >> confdefs.h <&6 -echo "configure:2698: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_INIMPOST'+set}'`\" = set"; then +echo "configure:3672: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$INIMPOST"; then - ac_cv_prog_INIMPOST="$INIMPOST" # Let the user override the test. + if test -n "$MAKEINFO"; then + ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_INIMPOST="$ac_prog" + ac_cv_prog_MAKEINFO="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -INIMPOST="$ac_cv_prog_INIMPOST" -if test -n "$INIMPOST"; then - echo "$ac_t""$INIMPOST" 1>&6 +MAKEINFO="$ac_cv_prog_MAKEINFO" +if test -n "$MAKEINFO"; then + echo "$ac_t""$MAKEINFO" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$INIMPOST" && break +test -n "$MAKEINFO" && break done -test -n "$INIMPOST" || INIMPOST="-echo no inimp or inimpost" +test -n "$MAKEINFO" || MAKEINFO="no" - INIMETAPOST=$INIMPOST + + + r="`eval echo '$'"MAKEINFO"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true fi - echo $ac_n "checking for working metafont mode""... $ac_c" 1>&6 -echo "configure:2732: checking for working metafont mode" >&5 - modelist='ljfour lj4 lj3 lj2 ljet laserjet' - for MFMODE in $modelist; do - $METAFONT "\mode:=$MFMODE; mode_setup; end." > /dev/null 2>&1 - if test -f mfput.tfm; then - break; - fi - done - echo "$ac_t""$MFMODE" 1>&6 + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\" - echo $ac_n "checking for mfplain.mp""... $ac_c" 1>&6 -echo "configure:2743: checking for mfplain.mp" >&5 - # - # For now let people define these in their environments - # - : ${MFPLAIN_MP=`kpsewhich mp mfplain.mp`} - echo "$ac_t""$MFPLAIN_MP" 1>&6 - - echo $ac_n "checking for inimetapost flags""... $ac_c" 1>&6 -echo "configure:2751: checking for inimetapost flags" >&5 - if test ${INIMETAPOST} = "inimp" ; then - : ${INIMETAPOST_FLAGS=''} + if test "REQUIRED" = "REQUIRED"; then + command="echo ERROR: makeinfo not found" + # abort configure process here? + else + command="- echo makeinfo not found" + fi + eval "MAKEINFO"='$command' + false else - : ${INIMETAPOST_FLAGS='-interaction=nonstopmode'} + true fi - echo "$ac_t""$INIMETAPOST_FLAGS" 1>&6 - rm -f mfput.* + if test $? -eq 0 -a -n ""; then + + r="`eval echo '$'"MAKEINFO"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3732: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r (installed: $ver)"\"`\" - - - - - - + fi + + fi + + if test "$MAKEINFO" = "makeinfo"; then + echo $ac_n "checking whether makeinfo can split html by @node""... $ac_c" 1>&6 +echo "configure:3766: checking whether makeinfo can split html by @node" >&5 + mkdir -p out + makeinfo --html --output=out/split <&6 + rm -rf out/split + else + echo "$ac_t""no" 1>&6 + + echo "configure: warning: your html documentation will be one large file" 1>&2 + warn_b=yes + + rm -rf out/split + fi + fi - # Check whether --enable-tfm-path or --disable-tfm-path was given. -if test "${enable_tfm_path+set}" = set; then - enableval="$enable_tfm_path" - tfm_path=$enableval + for ac_hdr in python2.2/Python.h python2.1/Python.h python2.0/Python.h python2/Python.h python/Python.h python1.5/Python.h Python.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3795: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else - tfm_path=auto + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +fi +done + if test $? -ne 0; then + + eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'python.h (python-devel, python-dev or libpython-dev package)'\"`\" - for ac_prog in kpsewhich + fi + + + +## Optional tools for building documentation, website, extra fonts. + +# guile executable for some scripts + + + for ac_prog in guile do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2784: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_KPSEWHICH'+set}'`\" = set"; then +echo "configure:3849: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_GUILE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$KPSEWHICH"; then - ac_cv_prog_KPSEWHICH="$KPSEWHICH" # Let the user override the test. + if test -n "$GUILE"; then + ac_cv_prog_GUILE="$GUILE" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_KPSEWHICH="$ac_prog" + ac_cv_prog_GUILE="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -KPSEWHICH="$ac_cv_prog_KPSEWHICH" -if test -n "$KPSEWHICH"; then - echo "$ac_t""$KPSEWHICH" 1>&6 +GUILE="$ac_cv_prog_GUILE" +if test -n "$GUILE"; then + echo "$ac_t""$GUILE" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$KPSEWHICH" && break +test -n "$GUILE" && break done -test -n "$KPSEWHICH" || KPSEWHICH="no" - - echo $ac_n "checking for tfm path""... $ac_c" 1>&6 -echo "configure:2815: checking for tfm path" >&5 - - TFM_FONTS="cmr msam" - - if test "x$tfm_path" = xauto ; then - if test "x$KPSEWHICH" != "xno" ; then - for i in $TFM_FONTS; do - dir=`$KPSEWHICH tfm ${i}10.tfm` - TFM_PATH="$TFM_PATH `dirname $dir`" - done - else - - echo "configure: warning: Please specify where cmr10.tfm lives: - ./configure --enable-tfm-path=/usr/local/TeX/lib/tex/fonts" 1>&2 - warn_b=yes +test -n "$GUILE" || GUILE="no" - fi + + + r="`eval echo '$'"GUILE"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"GUILE"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false else - TFM_PATH=$tfm_path + true fi - TFM_PATH=`echo $TFM_PATH | tr ':' ' '` - echo "$ac_t""$TFM_PATH" 1>&6 - - + if test $? -ne 0; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile\"`\" - ## First, let's just see if we can find Guile at all. - echo $ac_n "checking "for guile-config"""... $ac_c" 1>&6 -echo "configure:2843: checking "for guile-config"" >&5 - for guile_config in guile-config $target-guile-config $build-guile-config; do - echo "$ac_t"""$guile_config"" 1>&6 - if ! $guile_config --version > /dev/null 2>&1 ; then - echo "configure: warning: "cannot execute $guile_config"" 1>&2 - echo $ac_n "checking "if we are cross compiling"""... $ac_c" 1>&6 -echo "configure:2849: checking "if we are cross compiling"" >&5 - guile_config=error + if test "OPTIONAL" = "REQUIRED"; then + command="echo ERROR: guile not found" + # abort configure process here? else - break + command="- echo guile not found" fi - done - if test "$guile_config" = "error"; then - { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; } - exit 1 - fi - echo $ac_n "checking "Guile version"""... $ac_c" 1>&6 -echo "configure:2860: checking "Guile version"" >&5 - need_guile_version="1.3.4" - need_guile_version_numeric=100304 - guile_version=`$guile_config --version 2>&1 | awk '{print $NF}'` - guile_version_numeric=`echo $guile_version | awk -F. ' -{if ($3) {last = $3} -else {last =0}} -{printf "%s%s%s\n",$1*100, $2*10,last}'` - echo "$ac_t"""$guile_version"" 1>&6 - if test $guile_version_numeric -lt $need_guile_version_numeric - then - - echo "configure: warning: "Guile version "$need_guile_version" or newer is needed"" 1>&2 - warn_b=yes - + eval "GUILE"='$command' + false + else + true fi - -## The GUILE_FLAGS macro. - echo $ac_n "checking for Guile""... $ac_c" 1>&6 -echo "configure:2879: checking for Guile" >&5 - if ! $guile_config link > /dev/null ; then - echo "$ac_t"""cannot execute $guile_config"" 1>&6 - { echo "configure: error: "cannot find guile-config; is Guile installed?"" 1>&2; exit 1; } - exit 1 - fi - GUILE_CFLAGS="`$guile_config compile`" - GUILE_LDFLAGS="`$guile_config link`" - - - echo "$ac_t""yes" 1>&6 - # Extract the first word of "guile", so it can be a program name with args. + if test $? -eq 0; then + # Extract the first word of "guile", so it can be a program name with args. set dummy guile; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2894: checking for $ac_word" >&5 +echo "configure:3909: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2912,7 +3927,6 @@ else fi done IFS="$ac_save_ifs" - test -z "$ac_cv_path_GUILE" && ac_cv_path_GUILE="error" ;; esac fi @@ -2923,238 +3937,393 @@ else echo "$ac_t""no" 1>&6 fi - + if test -n ""; then + + r="`eval echo '$'"GUILE"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:3945: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r (installed: $ver)"\"`\" + fi + fi + fi - kpathsea_b=yes - # Check whether --enable-kpathsea or --disable-kpathsea was given. -if test "${enable_kpathsea+set}" = set; then - enableval="$enable_kpathsea" - kpathsea_b=$enableval -fi +# perl for help2man. - if test $kpathsea_b = yes; then - for ac_hdr in kpathsea/kpathsea.h + + for ac_prog in perl do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2944: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:3987: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" + if test -n "$PERL"; then + ac_cv_prog_PERL="$PERL" # Let the user override the test. else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_PERL="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" fi -rm -f conftest* fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$PERL" && break +done +test -n "$PERL" || PERL="no" + + + + r="`eval echo '$'"PERL"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PERL"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"perl\"`\" + + if test "OPTIONAL" = "REQUIRED"; then + command="echo ERROR: perl not found" + # abort configure process here? + else + command="- echo perl not found" + fi + eval "PERL"='$command' + false + else + true + fi + + if test $? -eq 0; then + # Extract the first word of "perl", so it can be a program name with args. +set dummy perl; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:4047: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + case "$PERL" in + /*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a path. + ;; + ?:/*) + ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. + ;; + *) + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_path_PERL="$ac_dir/$ac_word" + break + fi + done + IFS="$ac_save_ifs" + ;; +esac +fi +PERL="$ac_cv_path_PERL" +if test -n "$PERL"; then + echo "$ac_t""$PERL" 1>&6 else echo "$ac_t""no" 1>&6 fi -done - echo $ac_n "checking for kpse_find_file in -lkpathsea""... $ac_c" 1>&6 -echo "configure:2981: checking for kpse_find_file in -lkpathsea" >&5 -ac_lib_var=`echo kpathsea'_'kpse_find_file | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lkpathsea $LIBS" -cat > conftest.$ac_ext <&6 +echo "configure:4083: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r (installed: $ver)"\"`\" -int main() { -kpse_find_file() -; return 0; } -EOF -if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" + fi -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 -fi +# pktrace for generating pfa's, pfb's - # urg: kpse_find_tfm is a #define, how to check for this? - # AC_CHECK_LIB(kpathsea, kpse_find_tfm) - # AC_CHECK_FUNCS(kpse_find_file kpse_find_tfm,, AC_STEPMAKE_WARN(Cannot find kpathsea functions. You may have to create TFM files manually.)) - for ac_func in kpse_find_file + for ac_prog in pktrace do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3036: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:4124: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_PKTRACE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:3067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" + if test -n "$PKTRACE"; then + ac_cv_prog_PKTRACE="$PKTRACE" # Let the user override the test. else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_PKTRACE="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" fi -rm -f conftest* fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 else echo "$ac_t""no" 1>&6 -echo "configure: warning: Cannot find kpathsea functions. You may have to create TFM files manually." 1>&2 - warn_b=yes - kpathsea_b=no fi + +test -n "$PKTRACE" && break done +test -n "$PKTRACE" || PKTRACE="no" + + + r="`eval echo '$'"PKTRACE"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"PKTRACE"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true fi - echo $ac_n "checking whether to use kpathsea""... $ac_c" 1>&6 -echo "configure:3096: checking whether to use kpathsea" >&5 - if test $kpathsea_b = yes; then - echo "$ac_t""yes" 1>&6 - KPATHSEA=1 + + if test $? -ne 0; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pktrace\"`\" + + if test "OPTIONAL" = "REQUIRED"; then + command="echo ERROR: pktrace not found" + # abort configure process here? + else + command="- echo pktrace not found" + fi + eval "PKTRACE"='$command' + false else - echo "$ac_t""no" 1>&6 - KPATHSEA=0 + true fi - - cat >> confdefs.h <&6 +echo "configure:4184: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "1.0.3" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r 1.0.3 (installed: $ver)"\"`\" + + fi + fi +# new makeinfo for multi-page website docs - for ac_prog in bibtex2html bib2html + for ac_prog in makeinfo do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3117: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_BIBTEX2HTML'+set}'`\" = set"; then +echo "configure:4223: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if test -n "$BIBTEX2HTML"; then - ac_cv_prog_BIBTEX2HTML="$BIBTEX2HTML" # Let the user override the test. + if test -n "$MAKEINFO"; then + ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then - ac_cv_prog_BIBTEX2HTML="$ac_prog" + ac_cv_prog_MAKEINFO="$ac_prog" break fi done IFS="$ac_save_ifs" fi fi -BIBTEX2HTML="$ac_cv_prog_BIBTEX2HTML" -if test -n "$BIBTEX2HTML"; then - echo "$ac_t""$BIBTEX2HTML" 1>&6 +MAKEINFO="$ac_cv_prog_MAKEINFO" +if test -n "$MAKEINFO"; then + echo "$ac_t""$MAKEINFO" 1>&6 else echo "$ac_t""no" 1>&6 fi -test -n "$BIBTEX2HTML" && break +test -n "$MAKEINFO" && break done -test -n "$BIBTEX2HTML" || BIBTEX2HTML="error" +test -n "$MAKEINFO" || MAKEINFO="no" - if test "$BIBTEX2HTML" = "bib2html"; then - BIBTEX2HTML_FLAGS='$< $(@)' - else - BIBTEX2HTML_FLAGS='-o $(@D)/$(*F) $<' - fi + r="`eval echo '$'"MAKEINFO"`" + if test -n "$r" -a "$r" != "error" -a "$r" != "no" && ! expr '`eval echo '$'"MAKEINFO"`' : '.*\(echo\)' > /dev/null; then + ##STEPMAKE_WARN(cannot find . ) + false + else + true + fi + + if test $? -ne 0; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"makeinfo\"`\" + + if test "OPTIONAL" = "REQUIRED"; then + command="echo ERROR: makeinfo not found" + # abort configure process here? + else + command="- echo makeinfo not found" + fi + eval "MAKEINFO"='$command' + false + else + true + fi + + if test $? -eq 0 -a -n "4.1"; then + + r="`eval echo '$'"MAKEINFO"`" + echo $ac_n "checking "$r version"""... $ac_c" 1>&6 +echo "configure:4283: checking "$r version"" >&5 + exe=` + type -p "$r" 2>&1 | awk '{print $NF}' +` + ver=` + "$exe" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' +` + num=` + echo "$ver" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + req=` + echo "4.1" | awk -F. ' + { + if ($3) {last = $3} + else {last =0} + } + {printf "%s%s%s\n",$1*100, $2*10,last}' +` + echo "$ac_t"""$ver"" 1>&6 + if test "$num" -lt "$req"; then + + eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""$r 4.1 (installed: $ver)"\"`\" + + fi + + fi + + +if test "$optimise_b" = yes; then + DEFINES="$DEFINES -DSTRING_UTILS_INLINED" + cat >> confdefs.h <<\EOF +#define STRINGS_UTILS_INLINED 1 +EOF + +fi echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 -echo "configure:3158: checking for 8-bit clean memcmp" >&5 +echo "configure:4327: checking for 8-bit clean memcmp" >&5 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3162,11 +4331,8 @@ else ac_cv_func_memcmp_clean=no else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then ac_cv_func_memcmp_clean=yes else @@ -3193,12 +4359,12 @@ echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}" echo $ac_n "checking for vprintf""... $ac_c" 1>&6 -echo "configure:3197: checking for vprintf" >&5 +echo "configure:4363: checking for vprintf" >&5 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_vprintf=yes" else @@ -3248,12 +4414,12 @@ fi if test "$ac_cv_func_vprintf" != yes; then echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 -echo "configure:3252: checking for _doprnt" >&5 +echo "configure:4418: checking for _doprnt" >&5 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func__doprnt=yes" else @@ -3306,12 +4472,12 @@ fi for ac_func in memmem snprintf vsnprintf gettext isinf do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3310: checking for $ac_func" >&5 +echo "configure:4476: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3371,79 +4537,11 @@ cat >> confdefs.h <&6 -echo "configure:3380: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$MAKEINFO"; then - ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_MAKEINFO="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -MAKEINFO="$ac_cv_prog_MAKEINFO" -if test -n "$MAKEINFO"; then - echo "$ac_t""$MAKEINFO" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$MAKEINFO" && break -done -test -n "$MAKEINFO" || MAKEINFO="error" - -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3413: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PERL" in - /*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PERL="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="error" - ;; -esac -fi -PERL="$ac_cv_path_PERL" -if test -n "$PERL"; then - echo "$ac_t""$PERL" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - +# Gather requirements and generate output. + + + trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure @@ -3623,27 +4721,22 @@ s%@localedir@%$localedir%g s%@DIR_LOCALEDIR@%$DIR_LOCALEDIR%g s%@MSGFMT@%$MSGFMT%g s%@METAFONT@%$METAFONT%g -s%@MFONT@%$MFONT%g -s%@METAPOST@%$METAPOST%g -s%@MPOST@%$MPOST%g s%@INIMETAFONT@%$INIMETAFONT%g -s%@INIMFONT@%$INIMFONT%g -s%@INIMETAPOST@%$INIMETAPOST%g -s%@INIMPOST@%$INIMPOST%g s%@MFMODE@%$MFMODE%g -s%@MFPLAIN_MP@%$MFPLAIN_MP%g -s%@INIMETAPOST_FLAGS@%$INIMETAPOST_FLAGS%g s%@KPSEWHICH@%$KPSEWHICH%g s%@TFM_PATH@%$TFM_PATH%g +s%@GUILE_CONFIG@%$GUILE_CONFIG%g s%@GUILE_CFLAGS@%$GUILE_CFLAGS%g s%@GUILE_LDFLAGS@%$GUILE_LDFLAGS%g -s%@GUILE@%$GUILE%g s%@KPATHSEA@%$KPATHSEA%g -s%@BIBTEX2HTML@%$BIBTEX2HTML%g -s%@BIBTEX2HTML_FLAGS@%$BIBTEX2HTML_FLAGS%g -s%@LIBOBJS@%$LIBOBJS%g s%@MAKEINFO@%$MAKEINFO%g +s%@SPLITTING_MAKEINFO@%$SPLITTING_MAKEINFO%g +s%@GUILE@%$GUILE%g s%@PERL@%$PERL%g +s%@PKTRACE@%$PKTRACE%g +s%@LIBOBJS@%$LIBOBJS%g +s%@OPTIONAL@%$OPTIONAL%g +s%@REQUIRED@%$REQUIRED%g CEOF EOF @@ -3952,13 +5045,50 @@ if test "$no_recursion" != yes; then fi - rm -f $srcdir/GNUmakefile - cp $srcdir/make/toplevel.make.in $srcdir/GNUmakefile - chmod 444 $srcdir/GNUmakefile - if test "$builddir" != "."; then + + if test -n "$OPTIONAL"; then + echo + echo "WARNING: Please consider installing optional programs: $OPTIONAL" + fi + + if test -n "$REQUIRED"; then + echo + echo "ERROR: Please install required programs: $REQUIRED" + fi + + if test -n "$OPTIONAL$REQUIRED"; then + echo + echo "See INSTALL.txt for more information on how to build $PACKAGE_NAME" + echo "Remove config.cache before rerunning ./configure" + fi + + if test -n "$REQUIRED"; then + rm -f $srcdir/GNUmakefile + exit 1 + fi + + # regular in-place build + # test for srcdir_build = yes ? + if test "$builddir" = "."; then + rm -f $srcdir/GNUmakefile + cp $srcdir/GNUmakefile.in $srcdir/GNUmakefile + chmod 444 $srcdir/GNUmakefile + else # --srcdir build rm -f GNUmakefile cp $srcdir/make/srcdir.make.in GNUmakefile chmod 444 GNUmakefile fi + +test -n "$CONFIGURATION" && mc=" conf=$CONFIGURATION" || mc="" + +cat <