#! /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.12
+# Generated automatically using autoconf version 2.13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
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
- enable-printing turn on debug printing. Default: off"
+ --with-lang=LANG use LANG as language to emit messages"
ac_help="$ac_help
- with-localedir=LOCALE use LOCALE as locale dir. Default: PREFIX/share/locale "
+ --enable-tfm-path=PATH set path of tex directories where tfm files live,
+ esp.: cmr10.tfm. Default: use kpsewhich"
ac_help="$ac_help
- with-lang=LANG use LANG as language to emit messages"
+ --with-kpathsea use kpathsea lib. Default: on"
# Initialize some variables set by options.
# The variables have the same names as the options, with
# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
verbose=yes ;;
-version | --version | --versio | --versi | --vers)
- echo "configure generated by autoconf version 2.12"
+ echo "configure generated by autoconf version 2.13"
exit 0 ;;
-with-* | --with-*)
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
+ac_exeext=
+ac_objext=o
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
fi
stepmake=`echo ${stepmake} | sed "s!\\\${prefix}!$presome!"`
+ # urg, how is this supposed to work?
+ if test "$program_prefix" = "NONE"; then
+ program_prefix=
+ fi
+ if test "$program_suffix" = "NONE"; then
+ program_suffix=
+ fi
+
+ echo $ac_n "checking Package""... $ac_c" 1>&6
+echo "configure:579: checking Package" >&5
if test "x$PACKAGE" = "xSTEPMAKE"; then
- echo Stepmake package!
- (cd stepmake; rm -f stepmake; ln -s ../stepmake .)
- (cd stepmake; rm -f bin; ln -s ../bin .)
+ echo "$ac_t""Stepmake package!" 1>&6
+
+ 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`"
+ fi
+ echo "$ac_t""$builddir" 1>&6
+
+ (cd stepmake 2>/dev/null || mkdir stepmake)
+ (cd stepmake; rm -f bin; ln -s ../$srcdir/bin .)
ac_aux_dir=
for ac_dir in bin $srcdir/bin; do
if test -f $ac_dir/install-sh; then
stepmake=stepmake
else
- echo Package: $PACKAGE
+ echo "$ac_t""$PACKAGE" 1>&6
+
+ 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:641: checking for stepmake" >&5
# Check for installed stepmake
if test -d $stepmake; then
- echo Using installed stepmake: $stepmake
+ echo "$ac_t""$stepmake" 1>&6
else
- stepmake='$(depth)'/stepmake
- echo Using local stepmake: $datadir/stepmake not found
+ 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\
/usr/share/stepmake/bin\
/usr/lib/stepmake/bin\
stepmake/bin\
+ $srcdir/stepmake/bin\
$srcdir/\
$HOME/usr/local/share/stepmake/bin\
$HOME/usr/local/lib/stepmake/bin\
/usr/share/stepmake/bin\
/usr/lib/stepmake/bin\
stepmake/bin\
+ $srcdir/stepmake/bin\
; do
if test -f $ac_dir/install-sh; then
ac_aux_dir=$ac_dir
/usr/share/stepmake/bin\
/usr/lib/stepmake/bin\
stepmake/bin\
+ $srcdir/stepmake/bin\
$srcdir/\
$HOME/usr/local/share/stepmake/bin\
$HOME/usr/local/lib/stepmake/bin\
/usr/share/stepmake/bin\
/usr/lib/stepmake/bin\
stepmake/bin\
+ $srcdir/stepmake/bin\
" 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
+
cat >> confdefs.h <<EOF
#define PACKAGE "${PACKAGE_NAME}"
EOF
EOF
- package_depth=`dirname $cache_file`
+ if test "$package_depth" = "" ; then
+ package_depth="."
+ else
+ package_depth="../$package_depth"
+ fi
+ export package_depth
AUTOGENERATE="This file was automatically generated by configure"
- absolute_builddir="`pwd`"
-
-
- STATE_VECTOR=`ls make/STATE-VECTOR 2>/dev/null`
- if test "x$STATE_VECTOR" != "x"; then
- STATE_VECTOR="\$(depth)/$STATE_VECTOR"
- fi
-
CONFIGSUFFIX=
# Check whether --enable-config or --disable-config was given.
if test "${enable_config+set}" = set; then
enableval="$enable_config"
- CONFIGSUFFIX=$enableval
+ CONFIGURATION=$enableval
fi
- if test "$CONFIGSUFFIX" != "" ; then
- CONFIGFILE=config-$CONFIGSUFFIX
- else
- CONFIGFILE=config
- fi
+ ##'
+
+ test -n "$CONFIGURATION" && CONFIGSUFFIX="-$CONFIGURATION"
+ CONFIGFILE=config$CONFIGSUFFIX
# Make sure we can run config.sub.
-if $ac_config_sub sun4 >/dev/null 2>&1; then :
+if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
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:761: checking host system type" >&5
+echo "configure:765: checking host system type" >&5
host_alias=$host
case "$host_alias" in
NONE)
case $nonopt in
NONE)
- if host_alias=`$ac_config_guess`; then :
+ if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
fi ;;
*) host_alias=$nonopt ;;
esac ;;
esac
-host=`$ac_config_sub $host_alias`
+host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6
- for ac_prog in make
+
+ 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:786: 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
if test -n "$MAKE"; then
ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_MAKE="$ac_prog"
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:820: 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
if test -n "$FIND"; then
ac_cv_prog_FIND="$FIND" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_FIND="$ac_prog"
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:857: 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
if test -n "$TAR"; then
ac_cv_prog_TAR="$TAR" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_TAR="$ac_prog"
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: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
+ case "$BASH" in
+ /*)
+ ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_BASH="$BASH" # 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_BASH="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
+ ;;
+esac
+fi
+BASH="$ac_cv_path_BASH"
+if test -n "$BASH"; then
+ echo "$ac_t""$BASH" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+
+ echo "configure: warning: avoiding buggy /bin/sh" 1>&2
+ warn_b=yes
+
+ # 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: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
+ case "$SHELL" in
+ /*)
+ ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_SHELL="$SHELL" # 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_SHELL="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL="/bin/ksh"
+ ;;
+esac
+fi
+SHELL="$ac_cv_path_SHELL"
+if test -n "$SHELL"; then
+ echo "$ac_t""$SHELL" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+ else
+ # 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: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
+ case "$BASH" in
+ /*)
+ ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_BASH="$BASH" # 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_BASH="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="/bin/sh"
+ ;;
+esac
+fi
+BASH="$ac_cv_path_BASH"
+if test -n "$BASH"; then
+ echo "$ac_t""$BASH" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
- for ac_prog in bash
+ SHELL=/bin/sh
+
+ 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:891: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_BASH'+set}'`\" = set"; then
+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 "$BASH"; then
- ac_cv_prog_BASH="$BASH" # Let the user override the test.
+ if test -n "$PYTHON"; then
+ ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_BASH="$ac_prog"
+ ac_cv_prog_PYTHON="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
-BASH="$ac_cv_prog_BASH"
-if test -n "$BASH"; then
- echo "$ac_t""$BASH" 1>&6
+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 "$BASH" && break
+test -n "$PYTHON" && break
done
-test -n "$BASH" || BASH="/bin/sh"
+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:924: 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
/*)
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
;;
+ ?:/*)
+ ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
+ ;;
*)
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_PYTHON="$ac_dir/$ac_word"
fi
done
IFS="$ac_save_ifs"
- test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="-echo no python"
;;
esac
fi
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)"\"`\"
-
- result="`echo \"$MAKE\" | grep echo`"
- if test "x$MAKE" = "xerror" -o "x$result" != "x"; then
-
- echo "configure: warning: can\'t find GNU make. You should install GNU make" 1>&2
- warn_b=yes
+ fi
fi
+ fi
- if test $MAKE != "error" ; then
- $MAKE -v| grep GNU > /dev/null
- if test "$?" = 1
- then
-
- echo "configure: warning: Please install *GNU* make" 1>&2
- warn_b=yes
-
- 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 # symbolic link does not work for native nt
+ LN_S='cp -r' # symbolic link does not work for native nt
ZIP="zip -r -9" #
- DOTEXE=.exe
- DIRSEP='\\'
- PATHSEP=';'
- INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
+ program_suffix=.exe
+ ROOTSEP=':'
+ DIRSEP='/'
+ PATHSEP=':'
+ INSTALL="\$(SHELL) \$(stepdir)/../bin/install-dot-exe.sh -c"
else
+ ROOTSEP=':'
DIRSEP='/'
PATHSEP=':'
LN=ln
+
cat >> confdefs.h <<EOF
#define DIRSEP '${DIRSEP}'
EOF
-
if test "$datadir" = "\${prefix}/share"; then
datadir='${prefix}/share/'$package
presome=${ac_default_prefix}
fi
DIR_DATADIR=`echo ${DIR_DATADIR} | sed "s!\\\${prefix}!$presome!"`
+
+
+
cat >> confdefs.h <<EOF
#define DIR_DATADIR "${DIR_DATADIR}"
EOF
# Uncomment the configuration options your package needs.
# -O is necessary to get inlining
- OPTIMIZE=""
- CXXFLAGS=${CXXFLAGS:-""}
- CFLAGS=${CFLAGS:-""}
+ CFLAGS=${CFLAGS-""}
+ CXXFLAGS=${CXXFLAGS-$CFLAGS}
+ LDFLAGS=${LDFLAGS-""}
checking_b=yes
- optimise_b=no
+ optimise_b=yes
profile_b=no
debug_b=yes
fi
- # actually, the default is: tja='-O' to get inlining...
- # off='' --jcn
+ # Check whether --enable-debugging or --disable-debugging was given.
+if test "${enable_debugging+set}" = set; then
+ enableval="$enable_debugging"
+ debug_b=$enableval
+fi
+
- #actually, that sucks.
- # tja looks like a typo. Default is optimisation off. --hwn
-
- # Check whether --enable-optimise or --disable-optimise was given.
-if test "${enable_optimise+set}" = set; then
- enableval="$enable_optimise"
+ # Check whether --enable-optimising or --disable-optimising was given.
+if test "${enable_optimising+set}" = set; then
+ enableval="$enable_optimising"
optimise_b=$enableval
fi
-
+
# Check whether --enable-profiling or --disable-profiling was given.
if test "${enable_profiling+set}" = set; then
enableval="$enable_profiling"
fi
- # Check whether --enable-debugging or --disable-debugging was given.
-if test "${enable_debugging+set}" = set; then
- enableval="$enable_debugging"
- debug_b=$enableval
-fi
-
-
- # Check whether --enable-mingw-prefix or --disable-mingw-prefix was given.
-if test "${enable_mingw_prefix+set}" = set; then
- enableval="$enable_mingw_prefix"
- MINGWPREFIX=$enableval
-else
- MINGWPREFIX=no
-fi
-
-
- if test "$printing_b" = no; then
- # ugh
- cat >> confdefs.h <<\EOF
-#define NPRINT 1
-EOF
- DEFINES="$DEFINES -DNPRINT"
- fi
-
if test "$checking_b" = no; then
# ugh
cat >> confdefs.h <<\EOF
OPTIMIZE="-O2 -finline-functions"
fi
- if test "$optimise_b" = no; then
- OPTIMIZE=""
- fi
if test $profile_b = yes; then
EXTRA_LIBES="-pg"
OPTIMIZE="$OPTIMIZE -g"
fi
- # however, C++ support in mingw32 v 0.1.4 is still flaky
- if test x$MINGWPREFIX != xno; then
- ICFLAGS="-I$MINGWPREFIX/include"
- ILDFLAGS="-$MINGWPREFIX/lib"
- fi
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1140: 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
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_CC="gcc"
# 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:1169: 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
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ac_prog_rejected=no
- for ac_dir in $PATH; do
+ ac_dummy="$PATH"
+ for ac_dir in $ac_dummy; do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
echo "$ac_t""no" 1>&6
fi
- test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ if test -z "$CC"; then
+ case "`uname -s`" in
+ *win32* | *WIN32*)
+ # 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: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
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # 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_CC="cl"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+CC="$ac_cv_prog_CC"
+if test -n "$CC"; then
+ echo "$ac_t""$CC" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+ ;;
+ esac
+ fi
+ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1217: 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.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross
-cat > conftest.$ac_ext <<EOF
-#line 1227 "configure"
+cat > conftest.$ac_ext << EOF
+
+#line 1601 "configure"
#include "confdefs.h"
+
main(){return(0);}
EOF
-if { (eval echo configure:1231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
ac_cv_prog_cc_works=no
fi
rm -fr conftest*
+ac_ext=c
+# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+cross_compiling=$ac_cv_prog_cc_cross
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
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:1251: 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:1256: 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
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1265: \"$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
if test $ac_cv_prog_gcc = yes; then
GCC=yes
- 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:1280: checking whether ${CC-cc} accepts -g" >&5
+else
+ GCC=
+fi
+
+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: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
fi
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS="$ac_save_CFLAGS"
- elif test $ac_cv_prog_cc_g = yes; then
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS="$ac_save_CFLAGS"
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
- CFLAGS="-O2"
+ CFLAGS="-g"
fi
else
- GCC=
- test "${CFLAGS+set}" = set || CFLAGS="-g"
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ 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)'
- CPPFLAGS=${CPPFLAGS:-""}
+ CFLAGS="$CFLAGS $OPTIMIZE"
+ 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
+
+
# 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: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=
+fi
+if test -z "$CPP"; then
+if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ # This must be in double quotes, not single quotes, because CPP may get
+ # substituted into the Makefile and "${CC-cc}" will confuse make.
+ CPP="${CC-cc} -E"
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp.
+ cat > conftest.$ac_ext <<EOF
+#line 1766 "configure"
+#include "confdefs.h"
+#include <assert.h>
+Syntax Error
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (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
+ :
+else
+ echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ CPP="${CC-cc} -E -traditional-cpp"
+ cat > conftest.$ac_ext <<EOF
+#line 1783 "configure"
+#include "confdefs.h"
+#include <assert.h>
+Syntax Error
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (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
+ :
+else
+ echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ CPP="${CC-cc} -nologo -E"
+ cat > conftest.$ac_ext <<EOF
+#line 1800 "configure"
+#include "confdefs.h"
+#include <assert.h>
+Syntax Error
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (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
+ :
+else
+ echo "$ac_err" >&5
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ CPP=/lib/cpp
+fi
+rm -f conftest*
+fi
+rm -f conftest*
+fi
+rm -f conftest*
+ ac_cv_prog_CPP="$CPP"
+fi
+ CPP="$ac_cv_prog_CPP"
+else
+ ac_cv_prog_CPP="$CPP"
+fi
+echo "$ac_t""$CPP" 1>&6
-printing_b=no
-# Check whether --enable-printing or --disable-printing was given.
-if test "${enable_printing+set}" = set; then
- enableval="$enable_printing"
- printing_b=$enableval
+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: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
+#line 1839 "configure"
+#include "confdefs.h"
+#include <$ac_hdr>
+EOF
+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+{ (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*
+ 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 <<EOF
+#define $ac_tr_hdr 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
fi
+done
-
-if test "$optimise_b" = yes; then
- DEFINES="$DEFINES -DSTRING_UTILS_INLINED"
- cat >> confdefs.h <<\EOF
-#define STRINGS_UTILS_INLINED 1
+echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
+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 <<EOF
+#line 1876 "configure"
+#include "confdefs.h"
+#include <sys/types.h>
+#include <sys/stat.h>
+
+#if defined(S_ISBLK) && defined(S_IFDIR)
+# if S_ISBLK (S_IFDIR)
+You lose.
+# endif
+#endif
+
+#if defined(S_ISBLK) && defined(S_IFCHR)
+# if S_ISBLK (S_IFCHR)
+You lose.
+# endif
+#endif
+
+#if defined(S_ISLNK) && defined(S_IFREG)
+# if S_ISLNK (S_IFREG)
+You lose.
+# endif
+#endif
+
+#if defined(S_ISSOCK) && defined(S_IFREG)
+# if S_ISSOCK (S_IFREG)
+You lose.
+# endif
+#endif
+
+EOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ egrep "You lose" >/dev/null 2>&1; then
+ rm -rf conftest*
+ ac_cv_header_stat_broken=yes
+else
+ rm -rf conftest*
+ ac_cv_header_stat_broken=no
+fi
+rm -f conftest*
+
+fi
+
+echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
+if test $ac_cv_header_stat_broken = yes; then
+ cat >> confdefs.h <<\EOF
+#define STAT_MACROS_BROKEN 1
EOF
fi
+
echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
-echo "configure:1337: 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
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross
CXXCPP="${CXX-g++} -E"
cat > conftest.$ac_ext <<EOF
-#line 1350 "configure"
+#line 1941 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out`
+{ (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
:
else
fi
rm -f conftest*
ac_cv_prog_CXXCPP="$CXXCPP"
+ac_ext=C
+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+cross_compiling=$ac_cv_prog_cxx_cross
fi
fi
CXXCPP="$ac_cv_prog_CXXCPP"
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross
- for ac_prog in $CCC c++ g++ gcc CC cxx cc++
+ for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
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:1386: 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
if test -n "$CXX"; then
ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_CXX="$ac_prog"
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1417: 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.
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
-ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cxx_cross
-cat > conftest.$ac_ext <<EOF
-#line 1427 "configure"
+cat > conftest.$ac_ext << EOF
+
+#line 2026 "configure"
#include "confdefs.h"
-main(){return(0);}
+
+int main(){return(0);}
EOF
-if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
ac_cv_prog_cxx_works=no
fi
rm -fr conftest*
+ac_ext=C
+# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+cross_compiling=$ac_cv_prog_cxx_cross
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
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:1451: 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:1456: 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
yes;
#endif
EOF
-if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1465: \"$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
if test $ac_cv_prog_gxx = yes; then
GXX=yes
- 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:1480: checking whether ${CXX-g++} accepts -g" >&5
+else
+ GXX=
+fi
+
+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: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
fi
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
- if test "$ac_test_CXXFLAGS" = set; then
- CXXFLAGS="$ac_save_CXXFLAGS"
- elif test $ac_cv_prog_cxx_g = yes; then
+if test "$ac_test_CXXFLAGS" = set; then
+ CXXFLAGS="$ac_save_CXXFLAGS"
+elif test $ac_cv_prog_cxx_g = yes; then
+ if test "$GXX" = yes; then
CXXFLAGS="-g -O2"
else
+ CXXFLAGS="-g"
+ fi
+else
+ if test "$GXX" = yes; then
CXXFLAGS="-O2"
+ else
+ CXXFLAGS=
fi
+fi
+
+for ac_declaration in \
+ ''\
+ '#include <stdlib.h>' \
+ '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 <<EOF
+#line 2131 "configure"
+#include "confdefs.h"
+#include <stdlib.h>
+$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
- GXX=
- test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ continue
+fi
+rm -f conftest*
+ cat > conftest.$ac_ext <<EOF
+#line 2149 "configure"
+#include "confdefs.h"
+$ac_declaration
+int main() {
+exit (42);
+; return 0; }
+EOF
+if { (eval echo configure:2156: \"$ac_compile\") 1>&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:1510: 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
-#line 1515 "configure"
+#line 2206 "configure"
#include "confdefs.h"
#include <FlexLexer.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
-ac_err=`grep -v '^ *+' conftest.out`
+{ (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*
eval "ac_cv_header_$ac_safe=yes"
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
CPPFLAGS="$CPPFLAGS $DEFINES"
CXXFLAGS="$CXXFLAGS $OPTIMIZE"
- LDFLAGS=$EXTRA_LIBES
+ LDFLAGS="$LDFLAGS $EXTRA_LIBES"
- # ugh autoconf
- if $CXX --version | grep '2\.[78]' > /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.7" 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:1570: 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 <<EOF
-#line 1575 "configure"
+#line 2274 "configure"
#include "confdefs.h"
template <class T> struct foo { static int baz; };
return foo<int>::baz;
; return 0; }
EOF
-if { (eval echo configure:1585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
# 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:1612: 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
if test -n "$YACC"; then
ac_cv_prog_YACC="$YACC" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_YACC="$ac_prog"
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:1654: 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
if test -n "$BISON"; then
ac_cv_prog_BISON="$BISON" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_BISON="$ac_prog"
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:1688: 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.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_FLEX="$ac_prog"
- break
+
+
+ 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
- done
- IFS="$ac_save_ifs"
-fi
-fi
-FLEX="$ac_cv_prog_FLEX"
-if test -n "$FLEX"; then
- echo "$ac_t""$FLEX" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-
-test -n "$FLEX" && break
-done
-test -n "$FLEX" || FLEX="error"
-
- 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
+ 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
- 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
+ # 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
+
+ fi
- if test $BISON != "error"; then
- bison_version=`$BISON --version| sed 's/^.*version 1.//g' `
- if test $bison_version -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
+ # 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...
- fi
+ # 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.
+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_FLEX="$ac_prog"
+ break
fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+FLEX="$ac_cv_prog_FLEX"
+if test -n "$FLEX"; then
+ echo "$ac_t""$FLEX" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+test -n "$FLEX" && break
+done
+test -n "$FLEX" || FLEX="no"
+ 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)"\"`\"
+
+ 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:1755: 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
if test -n "$AR"; then
ac_cv_prog_AR="$AR" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_AR="$ac_prog"
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:1787: 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
if test -n "$RANLIB"; then
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_RANLIB="ranlib"
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"
echo $ac_n "checking language""... $ac_c" 1>&6
-echo "configure:1842: checking language" >&5
+echo "configure:2765: checking language" >&5
case "$language" in
En* | en* | Am* | am* | US* | us*)
lang=English;;
echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
-echo "configure:1878: 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
ac_save_LIBS="$LIBS"
LIBS="-lintl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 1886 "configure"
+#line 2809 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
gettext()
; return 0; }
EOF
-if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
for ac_func in gettext
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:1930: 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 <<EOF
-#line 1935 "configure"
+#line 2858 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
- # 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:1993: 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
if test -n "$MSGFMT"; then
ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_MSGFMT="$ac_prog"
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:2023: 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:2050: 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
if test -n "$METAFONT"; then
ac_cv_prog_METAFONT="$METAFONT" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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_METAFONT="$ac_prog"
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:2085: 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="${IFS}:"
- for ac_dir in $PATH; 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"
+ if test $? -ne 0; then
+
+ eval ""=\"`eval echo \"'$'\" \"mf mfont\"`\"
- METAFONT=$MFONT
+ 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
- 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:2122: 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="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_METAPOST="$ac_prog"
- break
+ 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)"\"`\"
+
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"
+ fi
- if test "x$METAPOST" = "xno"; then
- for ac_prog in mpost
+
+ 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:2157: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_MPOST'+set}'`\" = set"; then
+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
- if test -n "$MPOST"; then
- ac_cv_prog_MPOST="$MPOST" # Let the user override the test.
+ if test -n "$INIMETAFONT"; then
+ ac_cv_prog_INIMETAFONT="$INIMETAFONT" # Let the user override the test.
else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
+ 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"
+ ac_cv_prog_INIMETAFONT="$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
+INIMETAFONT="$ac_cv_prog_INIMETAFONT"
+if test -n "$INIMETAFONT"; then
+ echo "$ac_t""$INIMETAFONT" 1>&6
else
echo "$ac_t""no" 1>&6
fi
-test -n "$MPOST" && break
+test -n "$INIMETAFONT" && break
done
-test -n "$MPOST" || MPOST="-echo no mp or mpost"
-
- METAPOST=$MPOST
- fi
+test -n "$INIMETAFONT" || INIMETAFONT="no"
+ 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
-# AC_STEPMAKE_TEXMF_DIRS
+ if test $? -ne 0; then
+
+ eval ""=\"`eval echo \"'$'\" \"inimf inimfont\"`\"
- if test "x$YODL" = "x"; then
- for ac_prog in striproff
-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:2200: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_STRIPROFF'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$STRIPROFF"; then
- ac_cv_prog_STRIPROFF="$STRIPROFF" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_STRIPROFF="$ac_prog"
- break
+ 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
- done
- IFS="$ac_save_ifs"
-fi
-fi
-STRIPROFF="$ac_cv_prog_STRIPROFF"
-if test -n "$STRIPROFF"; then
- echo "$ac_t""$STRIPROFF" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-test -n "$STRIPROFF" && break
-done
-test -n "$STRIPROFF" || STRIPROFF="-echo no striproff"
+ 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)"\"`\"
- for ac_prog in yodl
-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:2234: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_YODL'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$YODL"; then
- ac_cv_prog_YODL="$YODL" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YODL="$ac_prog"
- break
fi
- done
- IFS="$ac_save_ifs"
-fi
-fi
-YODL="$ac_cv_prog_YODL"
-if test -n "$YODL"; then
- echo "$ac_t""$YODL" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-test -n "$YODL" && break
-done
-test -n "$YODL" || YODL="-echo no yodl"
-
- for ac_prog in yodl2html
-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:2268: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_YODL2HTML'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$YODL2HTML"; then
- ac_cv_prog_YODL2HTML="$YODL2HTML" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YODL2HTML="$ac_prog"
- break
fi
- done
- IFS="$ac_save_ifs"
-fi
-fi
-YODL2HTML="$ac_cv_prog_YODL2HTML"
-if test -n "$YODL2HTML"; then
- echo "$ac_t""$YODL2HTML" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-test -n "$YODL2HTML" && break
-done
-test -n "$YODL2HTML" || YODL2HTML="-echo no yodl"
- for ac_prog in yodl2latex
-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:2302: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_YODL2LATEX'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$YODL2LATEX"; then
- ac_cv_prog_YODL2LATEX="$YODL2LATEX" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YODL2LATEX="$ac_prog"
- break
- fi
- done
- IFS="$ac_save_ifs"
-fi
-fi
-YODL2LATEX="$ac_cv_prog_YODL2LATEX"
-if test -n "$YODL2LATEX"; then
- echo "$ac_t""$YODL2LATEX" 1>&6
+ 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
- echo "$ac_t""no" 1>&6
+ tfm_path=auto
fi
-test -n "$YODL2LATEX" && break
-done
- for ac_prog in yodl2man
+ # 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:2335: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_YODL2MAN'+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 "$YODL2MAN"; then
- ac_cv_prog_YODL2MAN="$YODL2MAN" # 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="${IFS}:"
- for ac_dir in $PATH; do
+ 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_YODL2MAN="$ac_prog"
+ ac_cv_prog_KPSEWHICH="$ac_prog"
break
fi
done
IFS="$ac_save_ifs"
fi
fi
-YODL2MAN="$ac_cv_prog_YODL2MAN"
-if test -n "$YODL2MAN"; then
- echo "$ac_t""$YODL2MAN" 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 "$YODL2MAN" && break
+test -n "$KPSEWHICH" && break
done
-test -n "$YODL2MAN" || YODL2MAN="-echo no yodl"
+test -n "$KPSEWHICH" || KPSEWHICH="no"
- for ac_prog in yodl2msless
-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:2369: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_YODL2MSLESS'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$YODL2MSLESS"; then
- ac_cv_prog_YODL2MSLESS="$YODL2MSLESS" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YODL2MSLESS="$ac_prog"
- break
+
+
+ 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
- done
- IFS="$ac_save_ifs"
-fi
-fi
-YODL2MSLESS="$ac_cv_prog_YODL2MSLESS"
-if test -n "$YODL2MSLESS"; then
- echo "$ac_t""$YODL2MSLESS" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-test -n "$YODL2MSLESS" && break
-done
-test -n "$YODL2MSLESS" || YODL2MSLESS="-echo no yodl"
+ if test $? -ne 0; then
+
+ eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"kpsewhich\"`\"
- for ac_prog in yodl2texinfo
-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:2403: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_YODL2TEXINFO'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$YODL2TEXINFO"; then
- ac_cv_prog_YODL2TEXINFO="$YODL2TEXINFO" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YODL2TEXINFO="$ac_prog"
- break
+ 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
- done
- IFS="$ac_save_ifs"
-fi
-fi
-YODL2TEXINFO="$ac_cv_prog_YODL2TEXINFO"
-if test -n "$YODL2TEXINFO"; then
- echo "$ac_t""$YODL2TEXINFO" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-test -n "$YODL2TEXINFO" && break
-done
-test -n "$YODL2TEXINFO" || YODL2TEXINFO="-echo no yodl"
+ 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)"\"`\"
- for ac_prog in yodl2txt
-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:2437: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_YODL2TXT'+set}'`\" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
-else
- if test -n "$YODL2TXT"; then
- ac_cv_prog_YODL2TXT="$YODL2TXT" # Let the user override the test.
-else
- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
- for ac_dir in $PATH; do
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/$ac_word; then
- ac_cv_prog_YODL2TXT="$ac_prog"
- break
fi
- done
- IFS="$ac_save_ifs"
-fi
-fi
-YODL2TXT="$ac_cv_prog_YODL2TXT"
-if test -n "$YODL2TXT"; then
- echo "$ac_t""$YODL2TXT" 1>&6
-else
- echo "$ac_t""no" 1>&6
-fi
-test -n "$YODL2TXT" && break
-done
-test -n "$YODL2TXT" || YODL2TXT="-echo no yodl"
+ fi
+
+ echo $ac_n "checking for tfm path""... $ac_c" 1>&6
+echo "configure:3334: checking for tfm path" >&5
+
+ TFM_FONTS="cmr msam"
- YODL2LESS_DIR='$(bindir)/'
+ 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
-
-
-
-
-
-
- export STRIPROFF YODL YODL2HTML YODL2LATEX YODL2MAN YODL2MSLESS YODL2TEXINFO YODL2TXT
+ eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \""$r 1.3.4 (installed: $ver)"\"`\"
+
fi
- if test "x$YODL" = "-echo no yodl"; then
-
- echo "configure: warning: Did not find YODL (Yodl is Yet Oneother Document Language, see http://www.cs.uu.nl/~hanwen/yodl)" 1>&2
- warn_b=yes
- 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
+
+
- # on some systems, -lguile succeeds for guile-1.3
- # others need readline, dl (or even more)
- # urg, must check for different functions in libguile
- # to force new check iso reading from cache
- echo $ac_n "checking for scm_shell in -lguile""... $ac_c" 1>&6
-echo "configure:2492: checking for scm_shell in -lguile" >&5
-ac_lib_var=`echo guile'_'scm_shell | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ cat >> confdefs.h <<EOF
+#define GUILE_MAJOR_VERSION $GUILE_MAJOR_VERSION
+EOF
+
+ cat >> confdefs.h <<EOF
+#define GUILE_MINOR_VERSION $GUILE_MINOR_VERSION
+EOF
+
+
+
+
+ kpathsea_b=yes
+ #FIXME --with-xxx is meant for specifying a PATH too,
+ # so this should read: --enable-kpathsea,
+ # or --with-kpathsea-include=PATH --with-kpathsea-lib=PATH
+ # Check whether --with-kpathsea or --without-kpathsea was given.
+if test "${with_kpathsea+set}" = set; then
+ withval="$with_kpathsea"
+ kpathsea_b=$with_kpathsea
+fi
+
+
+ if test "$kpathsea_b" != "no"; then
+ for ac_hdr in kpathsea/kpathsea.h
+do
+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&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
- ac_save_LIBS="$LIBS"
-LIBS="-lguile $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2500 "configure"
+ cat > conftest.$ac_ext <<EOF
+#line 3508 "configure"
#include "confdefs.h"
-/* 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 scm_shell();
-
-int main() {
-scm_shell()
-; return 0; }
+#include <$ac_hdr>
EOF
-if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+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_lib_$ac_lib_var=yes"
+ 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_lib_$ac_lib_var=no"
+ eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
-LIBS="$ac_save_LIBS"
-
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
echo "$ac_t""yes" 1>&6
- \
- LIBS="-lguile $LIBS"; cat >> confdefs.h <<\EOF
-#define HAVE_LIBGUILE 1
+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_hdr 1
EOF
-
+
else
echo "$ac_t""no" 1>&6
-\
- echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
-echo "configure:2538: checking for readline in -lreadline" >&5
-ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
+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="-lreadline $LIBS"
+LIBS="-lkpathsea $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 2546 "configure"
+#line 3548 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
-char readline();
+char kpse_find_file();
int main() {
-readline()
+kpse_find_file()
; return 0; }
EOF
-if { (eval echo configure:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3562: \"$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
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 readline | sed -e 's/^a-zA-Z0-9_/_/g' \
+ ac_tr_lib=HAVE_LIB`echo kpathsea | sed -e 's/[^a-zA-Z0-9_]/_/g' \
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
- LIBS="-lreadline $LIBS"
+ LIBS="-lkpathsea $LIBS"
else
echo "$ac_t""no" 1>&6
fi
- \
- echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
-echo "configure:2588: checking for dlopen in -ldl" >&5
-ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+
+ 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
- ac_save_LIBS="$LIBS"
-LIBS="-ldl $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2596 "configure"
+ cat > conftest.$ac_ext <<EOF
+#line 3597 "configure"
#include "confdefs.h"
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func(); below. */
+#include <assert.h>
/* 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 dlopen();
+char $ac_func();
int main() {
-dlopen()
+
+/* 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:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+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_lib_$ac_lib_var=yes"
+ 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_lib_$ac_lib_var=no"
+ eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
-LIBS="$ac_save_LIBS"
-
fi
-if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+
+if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
+#define $ac_tr_func 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&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 <<EOF
+#define KPATHSEA $KPATHSEA
EOF
- LIBS="-ldl $LIBS"
+
+
+ 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: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 "$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
- \
- echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
-echo "configure:2638: checking for socket in -lsocket" >&5
-ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+
+test -n "$MAKEINFO" && break
+done
+test -n "$MAKEINFO" || MAKEINFO="no"
+
+
+
+ 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 "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"makeinfo\"`\"
+
+ 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
+ true
+ fi
+
+ 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 <<EOF
+\input texinfo
+\input texinfo @c -*-texinfo-*-
+@setfilename split.info
+@settitle split.info
+@bye
+EOF
+ if test -d out/split; then
+ SPLITTING_MAKEINFO=yes
+ echo "$ac_t""yes" 1>&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
+
+
+
+ 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
- ac_save_LIBS="$LIBS"
-LIBS="-lsocket $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2646 "configure"
+ cat > conftest.$ac_ext <<EOF
+#line 3800 "configure"
#include "confdefs.h"
-/* 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 socket();
-
-int main() {
-socket()
-; return 0; }
+#include <$ac_hdr>
EOF
-if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+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_lib_$ac_lib_var=yes"
+ 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 <<EOF
+#define $ac_tr_hdr 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+done
+
+ if test $? -ne 0; then
+
+ eval "REQUIRED"=\"`eval echo \"'$'REQUIRED\" \"'python.h (python-devel, python-dev or libpython-dev package)'\"`\"
+
+ 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: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 "$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_GUILE="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+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 "$GUILE" && break
+done
+test -n "$GUILE" || GUILE="no"
+
+
+
+ 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
+ true
+ fi
+
+ if test $? -ne 0; then
+
+ eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"guile\"`\"
+
+ if test "OPTIONAL" = "REQUIRED"; then
+ command="echo ERROR: guile not found"
+ # abort configure process here?
+ else
+ command="- echo guile not found"
+ fi
+ eval "GUILE"='$command'
+ false
+ else
+ true
+ fi
+
+ 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: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
+ case "$GUILE" in
+ /*)
+ ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_GUILE="$GUILE" # 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_GUILE="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
+fi
+GUILE="$ac_cv_path_GUILE"
+if test -n "$GUILE"; then
+ echo "$ac_t""$GUILE" 1>&6
+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
+
+
+# perl for help2man.
+
+
+ for ac_prog in perl
+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: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
+ if test -n "$PERL"; then
+ ac_cv_prog_PERL="$PERL" # 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_PERL="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+fi
+fi
+PERL="$ac_cv_prog_PERL"
+if test -n "$PERL"; then
+ echo "$ac_t""$PERL" 1>&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 "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
+ echo "$ac_t""no" 1>&6
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 socket | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+ if test -n ""; then
+
+ r="`eval echo '$'"PERL"`"
+ echo $ac_n "checking "$r version"""... $ac_c" 1>&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)"\"`\"
- LIBS="-lsocket $LIBS"
+ fi
-else
- echo "$ac_t""no" 1>&6
-fi
-\
- echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
-echo "configure:2688: checking for tgetent in -ltermcap" >&5
-ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ fi
+ fi
+
+
+# pktrace for generating pfa's, pfb's
+
+ for ac_prog in pktrace
+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: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
- ac_save_LIBS="$LIBS"
-LIBS="-ltermcap $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2696 "configure"
-#include "confdefs.h"
-/* 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 tgetent();
-
-int main() {
-tgetent()
-; return 0; }
-EOF
-if { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=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_lib_$ac_lib_var=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*
-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 termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-ltermcap $LIBS"
-
+PKTRACE="$ac_cv_prog_PKTRACE"
+if test -n "$PKTRACE"; then
+ echo "$ac_t""$PKTRACE" 1>&6
else
echo "$ac_t""no" 1>&6
fi
-\
- echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
-echo "configure:2738: checking for fabs in -lm" >&5
-ac_lib_var=`echo m'_'fabs | 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="-lm $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2746 "configure"
-#include "confdefs.h"
-/* 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 fabs();
-int main() {
-fabs()
-; return 0; }
-EOF
-if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"
+test -n "$PKTRACE" && break
+done
+test -n "$PKTRACE" || PKTRACE="no"
-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 m | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
+
+
+ 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
- LIBS="-lm $LIBS"
+ if test $? -ne 0; then
+
+ eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"pktrace\"`\"
-else
- echo "$ac_t""no" 1>&6
-fi
-\
- echo $ac_n "checking for scm_boot_guile in -lguile""... $ac_c" 1>&6
-echo "configure:2788: checking for scm_boot_guile in -lguile" >&5
-ac_lib_var=`echo guile'_'scm_boot_guile | sed 'y%./+-%__p_%'`
-if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ 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
+ true
+ fi
+
+ if test $? -eq 0 -a -n "1.0.3"; then
+
+ r="`eval echo '$'"PKTRACE"`"
+ echo $ac_n "checking "$r version"""... $ac_c" 1>&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 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: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
- ac_save_LIBS="$LIBS"
-LIBS="-lguile $LIBS"
-cat > conftest.$ac_ext <<EOF
-#line 2796 "configure"
-#include "confdefs.h"
-/* 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 scm_boot_guile();
-
-int main() {
-scm_boot_guile()
-; return 0; }
-EOF
-if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
+ if test -n "$MAKEINFO"; then
+ ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=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_MAKEINFO="$ac_prog"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
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 guile | sed -e 's/^a-zA-Z0-9_/_/g' \
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
-#define $ac_tr_lib 1
-EOF
-
- LIBS="-lguile $LIBS"
-
+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="no"
+
-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 "$ac_cv_lib_guile_scm_shell" != yes -a \
- "$ac_cv_lib_scm_boot_guile" != yes ; then
-
- echo "configure: warning: You should install guile 1.3 or newer" 1>&2
- warn_b=yes
+ 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
-CXXFLAGS="$CXXFLAGS -fhandle-signatures"
+
+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:2853: 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
ac_cv_func_memcmp_clean=no
else
cat > conftest.$ac_ext <<EOF
-#line 2861 "configure"
+#line 4335 "configure"
#include "confdefs.h"
-#ifdef __cplusplus
-extern "C" void exit(int);
-#endif
main()
{
}
EOF
-if { (eval echo configure:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./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
fi
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
-test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
+test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
echo $ac_n "checking for vprintf""... $ac_c" 1>&6
-echo "configure:2892: 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 <<EOF
-#line 2897 "configure"
+#line 4368 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char vprintf(); below. */
; return 0; }
EOF
-if { (eval echo configure:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
if test "$ac_cv_func_vprintf" != yes; then
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
-echo "configure:2947: 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 <<EOF
-#line 2952 "configure"
+#line 4423 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _doprnt(); below. */
; return 0; }
EOF
-if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
fi
-for ac_func in memmem snprintf vsnprintf gettext
+for ac_func in memmem snprintf vsnprintf gettext isinf
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:3005: 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 <<EOF
-#line 3010 "configure"
+#line 4481 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
; return 0; }
EOF
-if { (eval echo configure:3036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
EOF
-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:3075: 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="${IFS}:"
- for ac_dir in $PATH; 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"
-
-
- result="`echo \"$YODL2TEXINFO\" | grep echo`"
- if test "x$YODL2TEXINFO" = "xerror" -o "x$result" != "x"; then
-
- echo "configure: warning: can\'t find yodl. You should install Yodl 1.30.2 or newer" 1>&2
- warn_b=yes
-
- 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
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
- case `(ac_space=' '; set) 2>&1` in
+ case `(ac_space=' '; set | grep ac_space) 2>&1` in
*ac_space=\ *)
# `set' does not quote correctly, so add quotes (double-quote substitution
# turns \\\\ into \\, and sed turns \\ into \).
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
- echo "$CONFIG_STATUS generated by autoconf version 2.12"
+ echo "$CONFIG_STATUS generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "\$ac_cs_usage"; exit 0 ;;
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
+s%@SHELL@%$SHELL%g
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
+s%@FFLAGS@%$FFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
+s%@builddir@%$builddir%g
s%@stepmake@%$stepmake%g
s%@package@%$package%g
s%@PACKAGE@%$PACKAGE%g
s%@PACKAGE_NAME@%$PACKAGE_NAME%g
s%@package_depth@%$package_depth%g
s%@AUTOGENERATE@%$AUTOGENERATE%g
-s%@absolute_builddir@%$absolute_builddir%g
-s%@STATE_VECTOR@%$STATE_VECTOR%g
s%@CONFIGSUFFIX@%$CONFIGSUFFIX%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@TAR@%$TAR%g
s%@BASH@%$BASH%g
s%@PYTHON@%$PYTHON%g
-s%@DOTEXE@%$DOTEXE%g
+s%@program_prefix@%$program_prefix%g
+s%@program_suffix@%$program_suffix%g
s%@ZIP@%$ZIP%g
s%@LN@%$LN%g
s%@LN_S@%$LN_S%g
s%@subdirs@%$subdirs%g
s%@CC@%$CC%g
s%@LD@%$LD%g
+s%@cross_compiling@%$cross_compiling%g
s%@ICFLAGS@%$ICFLAGS%g
s%@ILDFLAGS@%$ILDFLAGS%g
s%@DEFINES@%$DEFINES%g
s%@EXTRA_LIBES@%$EXTRA_LIBES%g
+s%@CPP@%$CPP%g
s%@CXX@%$CXX%g
s%@CXXCPP@%$CXXCPP%g
s%@YACC@%$YACC%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%@STRIPROFF@%$STRIPROFF%g
-s%@YODL@%$YODL%g
-s%@YODL2HTML@%$YODL2HTML%g
-s%@YODL2LATEX@%$YODL2LATEX%g
-s%@YODL2MAN@%$YODL2MAN%g
-s%@YODL2MSLESS@%$YODL2MSLESS%g
-s%@YODL2TEXINFO@%$YODL2TEXINFO%g
-s%@YODL2TXT@%$YODL2TXT%g
-s%@YODL2LESS_DIR@%$YODL2LESS_DIR%g
-s%@LIBOBJS@%$LIBOBJS%g
+s%@INIMETAFONT@%$INIMETAFONT%g
+s%@MFMODE@%$MFMODE%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%@KPATHSEA@%$KPATHSEA%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
fi
- rm -f GNUmakefile
- cp make/toplevel.make.in ./GNUmakefile
- chmod 444 GNUmakefile
+
+ 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 <<EOF
+Type:
+ make$mc all to build LilyPond
+ make$mc install to install LilyPond
+ make$mc help to see all possible targets
+
+Do not worry if ./Documentation or ./mutopia should not build.
+EOF