diff options
author | Stefan Kost <ensonic@hora-obscura.de> | 2011-08-24 15:15:53 +0200 |
---|---|---|
committer | Julien Danjou <julien@danjou.info> | 2011-08-24 15:27:31 +0200 |
commit | 301aeaab07d52d61c13a9ecaaab799c70adfc33f (patch) | |
tree | 08bee17cd906d2baec054a12317ae92eadf6cc91 | |
parent | fce365db713897a9cc6b52cac6536f4cb9c3abf1 (diff) |
Enhance configure error on packages not found
= before =
checking for xcb... no
configure: error: Cannot find xcb
= after =
checking for xcb... no
configure: error: Package requirements (xcb >= 1.6) were not met:
Requested 'xcb >= 1.6' but version of XCB is 1.5
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables xcb_CFLAGS
and xcb_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Signed-off-by: Julien Danjou <julien@danjou.info>
-rw-r--r-- | configure.in | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/configure.in b/configure.in index 1e44f10..426a915 100644 --- a/configure.in +++ b/configure.in @@ -78,14 +78,10 @@ fi ## try definining HAVE_BACKTRACE AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)]) -PKG_CHECK_MODULES([xcb], [xcb >= 1.6],, - [AC_MSG_ERROR([Cannot find xcb])]) -PKG_CHECK_MODULES([xcb_aux], [xcb-aux],, - [AC_MSG_ERROR([Cannot find xcb-aux])]) -PKG_CHECK_MODULES([xcb_event], [xcb-event],, - [AC_MSG_ERROR([Cannot find xcb-event])]) -PKG_CHECK_MODULES([x11_xcb], [x11-xcb],, - [AC_MSG_ERROR([Cannot find x11-xcb])]) +PKG_CHECK_MODULES([xcb], [xcb >= 1.6],,) +PKG_CHECK_MODULES([xcb_aux], [xcb-aux],,) +PKG_CHECK_MODULES([xcb_event], [xcb-event],,) +PKG_CHECK_MODULES([x11_xcb], [x11-xcb],,) LIBSN_CFLAGS="$xcb_CFLAGS $xcb_aux_CFLAGS $xcb_event_CFLAGS $x11_xcb_CFLAGS" LIBSN_LIBS="$xcb_LIBS $xcb_aux_LIBS $x11_xcb_LIBS" |