1.1 --- a/configure.ac Mon Jun 26 21:38:06 2006 +0000
1.2 +++ b/configure.ac Tue Jul 11 22:14:52 2006 +0000
1.3 @@ -15,7 +15,27 @@
1.4
1.5 dnl Checks for libraries.
1.6 PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6])
1.7 -PKG_CHECK_MODULES([LEMON], [lemon >= 0.5])
1.8 +PKG_CHECK_MODULES([LEMON_0_5], [lemon >= 0.5],
1.9 + [lemon_0_5_found=yes], [
1.10 + AC_MSG_RESULT([no])
1.11 + lemon_0_5_found=no])
1.12 +PKG_CHECK_MODULES([LEMON_SVN_HEAD], [lemon = svn-head],
1.13 + [lemon_svn_head_found=yes], [
1.14 + AC_MSG_RESULT([no])
1.15 + lemon_svn_head_found=no])
1.16 +if test x"$lemon_0_5_found" = x"no" -a x"$lemon_svn_head_found" = x"no"; then
1.17 + AC_MSG_ERROR([LEMON not found.])
1.18 +else
1.19 + if test x"$lemon_svn_head_found" = x"yes"; then
1.20 + LEMON_CFLAGS="$LEMON_SVN_HEAD_CFLAGS"
1.21 + LEMON_LIBS="$LEMON_SVN_HEAD_LIBS"
1.22 + else
1.23 + LEMON_CFLAGS="$LEMON_0_5_CFLAGS"
1.24 + LEMON_LIBS="$LEMON_0_5_LIBS"
1.25 + fi
1.26 + AC_SUBST(LEMON_CFLAGS)
1.27 + AC_SUBST(LEMON_LIBS)
1.28 +fi
1.29
1.30 dnl Checks for header files.
1.31 AC_CHECK_HEADERS([libintl.h locale.h])