13 AM_GNU_GETTEXT_VERSION([0.14.2]) |
13 AM_GNU_GETTEXT_VERSION([0.14.2]) |
14 AM_GNU_GETTEXT([external]) |
14 AM_GNU_GETTEXT([external]) |
15 |
15 |
16 dnl Checks for libraries. |
16 dnl Checks for libraries. |
17 PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6]) |
17 PKG_CHECK_MODULES([GTK], [libgnomecanvasmm-2.6 >= 2.6.0 gtkmm-2.4 >= 2.6]) |
18 PKG_CHECK_MODULES([LEMON], [lemon >= 0.5]) |
18 PKG_CHECK_MODULES([LEMON_0_5], [lemon >= 0.5], |
|
19 [lemon_0_5_found=yes], [ |
|
20 AC_MSG_RESULT([no]) |
|
21 lemon_0_5_found=no]) |
|
22 PKG_CHECK_MODULES([LEMON_SVN_HEAD], [lemon = svn-head], |
|
23 [lemon_svn_head_found=yes], [ |
|
24 AC_MSG_RESULT([no]) |
|
25 lemon_svn_head_found=no]) |
|
26 if test x"$lemon_0_5_found" = x"no" -a x"$lemon_svn_head_found" = x"no"; then |
|
27 AC_MSG_ERROR([LEMON not found.]) |
|
28 else |
|
29 if test x"$lemon_svn_head_found" = x"yes"; then |
|
30 LEMON_CFLAGS="$LEMON_SVN_HEAD_CFLAGS" |
|
31 LEMON_LIBS="$LEMON_SVN_HEAD_LIBS" |
|
32 else |
|
33 LEMON_CFLAGS="$LEMON_0_5_CFLAGS" |
|
34 LEMON_LIBS="$LEMON_0_5_LIBS" |
|
35 fi |
|
36 AC_SUBST(LEMON_CFLAGS) |
|
37 AC_SUBST(LEMON_LIBS) |
|
38 fi |
19 |
39 |
20 dnl Checks for header files. |
40 dnl Checks for header files. |
21 AC_CHECK_HEADERS([libintl.h locale.h]) |
41 AC_CHECK_HEADERS([libintl.h locale.h]) |
22 |
42 |
23 dnl Checks for typedefs, structures, and compiler characteristics. |
43 dnl Checks for typedefs, structures, and compiler characteristics. |