mirror of https://codeberg.org/cage/tinmop/
use autoconf' ${AWK} instead of looking for gawk
This also fixes an instance of `awk' that should be ${AWK}
This commit is contained in:
parent
0571c43c1c
commit
8d99118dc5
13
configure.ac
13
configure.ac
|
@ -50,11 +50,10 @@ if test "$BASH" = "no" ; then
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_PATH_PROG([GAWK],[gawk],[no])
|
dnl autoconf has an automatic test for AWK
|
||||||
|
if test -z "${AWK}"; then
|
||||||
if test "$GAWK" = "no" ; then
|
AC_MSG_ERROR([Can not find AWK.])
|
||||||
AC_MSG_ERROR([Can not find GNU AWK (gawk).])
|
exit 1
|
||||||
exit 1;
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_PATH_PROGS([XDG_OPEN],[xdg-open open],[no])
|
AC_PATH_PROGS([XDG_OPEN],[xdg-open open],[no])
|
||||||
|
@ -75,14 +74,14 @@ AC_PROG_MKDIR_P
|
||||||
|
|
||||||
dnl check sbcl version
|
dnl check sbcl version
|
||||||
SBCL_MIN_VERSION="1.4.16";
|
SBCL_MIN_VERSION="1.4.16";
|
||||||
SBCL_VERSION=`${LISP_COMPILER} --version | ${GAWK} -- '// {print $2}'`
|
SBCL_VERSION=`${LISP_COMPILER} --version | ${AWK} -- '// {print $2}'`
|
||||||
|
|
||||||
CHECK_COMPILER_VERSION_P="yes"
|
CHECK_COMPILER_VERSION_P="yes"
|
||||||
|
|
||||||
AC_ARG_ENABLE([check-sbcl-version], [AS_HELP_STRING([--disable-check-sbcl-version], [Disable checks for minimum supported SBCL version])], [], [])
|
AC_ARG_ENABLE([check-sbcl-version], [AS_HELP_STRING([--disable-check-sbcl-version], [Disable checks for minimum supported SBCL version])], [], [])
|
||||||
|
|
||||||
if test "$enable_check_sbcl_version" = "yes" || test "$enable_check_sbcl_version" = "" ; then
|
if test "$enable_check_sbcl_version" = "yes" || test "$enable_check_sbcl_version" = "" ; then
|
||||||
SBCL_VERSION_OK=`echo "$SBCL_VERSION $SBCL_MIN_VERSION" | awk -f compare_version.awk`
|
SBCL_VERSION_OK=`echo "$SBCL_VERSION $SBCL_MIN_VERSION" | ${AWK} -f compare_version.awk`
|
||||||
|
|
||||||
AC_MSG_CHECKING([if the compiler is too old])
|
AC_MSG_CHECKING([if the compiler is too old])
|
||||||
AC_MSG_NOTICE([To Disable this tests use type './configure --disable-check-sbcl-version.])
|
AC_MSG_NOTICE([To Disable this tests use type './configure --disable-check-sbcl-version.])
|
||||||
|
|
Loading…
Reference in New Issue