From: Eric Leblond Date: Mon, 26 Nov 2012 10:14:01 +0000 (+0100) Subject: configure: improve message about pkg-config usage X-Git-Tag: suricata-1.4rc1~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=344ea3fa7c8178f9ba76901fb5265edd134f7880;p=thirdparty%2Fsuricata.git configure: improve message about pkg-config usage This patch improve the error message when luajit libraries are not found. It displays information about the possibility to use PKG_CONFIG_PATH or the dedicated configure options. --- diff --git a/configure.ac b/configure.ac index 950d93f3c6..80cf1129b5 100644 --- a/configure.ac +++ b/configure.ac @@ -1326,7 +1326,7 @@ AC_INIT(configure.ac) if test "$with_libluajit_includes" != "no"; then CPPFLAGS="${CPPFLAGS} -I${with_libluajit_includes}" else - PKG_CHECK_MODULES([LUAJIT], [luajit]) + PKG_CHECK_MODULES([LUAJIT], [luajit], , LUAJIT="no") CPPFLAGS="${CPPFLAGS} ${LUAJIT_CFLAGS}" fi @@ -1348,6 +1348,10 @@ AC_INIT(configure.ac) echo echo " Ubuntu: apt-get install libluajit-5.1-dev" echo + echo " If you installed software in a non-standard prefix" + echo " consider adjusting the PKG_CONFIG_PATH environment variable" + echo " or use --with-libluajit-libraries configure option." + echo exit 1 fi @@ -1360,6 +1364,11 @@ AC_INIT(configure.ac) echo echo " Ubuntu: apt-get install libluajit-5.1-dev" echo + echo " If you installed software in a non-standard prefix" + echo " consider adjusting the PKG_CONFIG_PATH environment variable" + echo " or use --with-libluajit-includes and --with-libluajit-libraries" + echo " configure option." + echo exit 1 fi fi