Update jam checks here too

This commit is contained in:
Sanel Zukan 2009-04-13 17:06:53 +00:00
parent af08afd8cb
commit 020599462b
1 changed files with 39 additions and 8 deletions

View File

@ -1,15 +1,22 @@
dnl
dnl $Id$
dnl
dnl Part of Equinox Desktop Environment (EDE).
dnl Copyright (c) 2000-2007 EDE Authors.
dnl
dnl This program is licenced under terms of the
dnl GNU General Public Licence version 2 or newer.
dnl See COPYING for details.
dnl Copyright (c) 2005-2007 edelib authors
dnl
dnl This library is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Lesser General Public
dnl License as published by the Free Software Foundation; either
dnl version 2 of the License, or (at your option) any later version.
dnl
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Lesser General Public License for more details.
dnl
dnl You should have received a copy of the GNU Lesser General Public License
dnl along with this library. If not, see <http://www.gnu.org/licenses/>.
dnl Check do we have jam installed and try to determine version
dnl where is minimal supported 2.3
dnl Check do we have jam installed and try to determine version where is minimal supported 2.3
AC_DEFUN([EDE_PROG_JAM], [
AC_PATH_PROG(JAM, jam)
@ -30,4 +37,28 @@ AC_DEFUN([EDE_PROG_JAM], [
else
AC_MSG_ERROR(Jam is missing! You can download it from our repository)
fi
dnl older jam's does not handle 'return' statement
AC_MSG_CHECKING([if your jam is broken])
cat >conftest.jam <<_ACEOF
rule TestRule {
if \$(<) = 1 {
return 2 ;
}
return 3 ;
}
Echo [[ TestRule 1 ]] ;
_ACEOF
ret=`$JAM -f conftest.jam | head -1`
rm -f conftest.jam
if test "$ret" -eq 2; then
AC_MSG_RESULT(it is fine)
else
AC_MSG_ERROR(You have old and broken jam version. Please download newer version from our repository")
fi
])