30 AS_HELP_STRING([--with-lemon@<:@=PREFIX@:>@], [search for LEMON under PREFIX]), [], [with_lemon=no]) |
30 AS_HELP_STRING([--with-lemon@<:@=PREFIX@:>@], [search for LEMON under PREFIX]), [], [with_lemon=no]) |
31 if test x"$with_lemon" != x"no"; then |
31 if test x"$with_lemon" != x"no"; then |
32 export PKG_CONFIG_PATH="$with_lemon/lib/pkgconfig/:$PKG_CONFIG_PATH" |
32 export PKG_CONFIG_PATH="$with_lemon/lib/pkgconfig/:$PKG_CONFIG_PATH" |
33 fi |
33 fi |
34 |
34 |
35 PKG_CHECK_MODULES([LEMON], [lemon >= 0.6.90]) |
35 PKG_CHECK_MODULES([LEMON], [lemon >= 0.6.90], [], [AC_MSG_ERROR([ |
|
36 No appropriate version of package 'lemon' found. |
|
37 |
|
38 Consider adjusting the PKG_CONFIG_PATH environment variable or using |
|
39 the --with-lemon=PREFIX configure flag if you installed it in a |
|
40 non-standard prefix. |
|
41 |
|
42 Alternatively, you may set the environment variables LEMON_CFLAGS and |
|
43 LEMON_LIBS to avoid the need to call pkg-config. See the pkg-config |
|
44 man page for more details.])]) |
36 |
45 |
37 dnl Checks for header files. |
46 dnl Checks for header files. |
38 AC_CHECK_HEADERS([libintl.h locale.h]) |
47 AC_CHECK_HEADERS([libintl.h locale.h]) |
39 |
48 |
40 dnl Checks for typedefs, structures, and compiler characteristics. |
49 dnl Checks for typedefs, structures, and compiler characteristics. |