# HG changeset patch # User Akos Ladanyi # Date 1215712380 -3600 # Node ID 244d8c60b997f711d9dfaf40805cbecf03b777a7 # Parent 2cc5ed6e6255853fbda10255e1a747b9853bddba Issue a custom error message when Lemon is not found. diff -r 2cc5ed6e6255 -r 244d8c60b997 configure.ac --- a/configure.ac Mon Jul 07 15:20:43 2008 +0100 +++ b/configure.ac Thu Jul 10 18:53:00 2008 +0100 @@ -32,7 +32,16 @@ export PKG_CONFIG_PATH="$with_lemon/lib/pkgconfig/:$PKG_CONFIG_PATH" fi -PKG_CHECK_MODULES([LEMON], [lemon >= 0.6.90]) +PKG_CHECK_MODULES([LEMON], [lemon >= 0.6.90], [], [AC_MSG_ERROR([ +No appropriate version of package 'lemon' found. + +Consider adjusting the PKG_CONFIG_PATH environment variable or using +the --with-lemon=PREFIX configure flag if you installed it in a +non-standard prefix. + +Alternatively, you may set the environment variables LEMON_CFLAGS and +LEMON_LIBS to avoid the need to call pkg-config. See the pkg-config +man page for more details.])]) dnl Checks for header files. AC_CHECK_HEADERS([libintl.h locale.h])