From f00993d481d99f8f88d821e3d80bf6bba125be1e Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sat, 16 Apr 2005 06:27:59 +0200 Subject: [PATCH] move warning to the right place --- m4m/gp-check-library.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m4m/gp-check-library.m4 b/m4m/gp-check-library.m4 index ab8de3a..1487b0c 100644 --- a/m4m/gp-check-library.m4 +++ b/m4m/gp-check-library.m4 @@ -125,11 +125,11 @@ if test "x${[$1][_LIBS]}" = "x" && test "x${[$1][_CFLAGS]}" = "x"; then [PKG_CHECK_MODULES([$1],[$2], [have_][$1][=yes],[:])] ) fi - AC_MSG_WARN([The `$2' library could not be found using pkg-config. -No version checks will be performed if it is found using any other method.]) dnl If pkg-config didn't find anything, try the libfoo-config program - dnl we certain known libraries ship with. + dnl certain known libraries ship with. if test "x${[have_][$1]}" = "xno"; then + AC_MSG_WARN([The `$2' library could not be found using pkg-config. +No version checks will be performed if it is found using any other method.]) AC_MSG_CHECKING([$2][ config program]) m4_pushdef([gp_lib_config],[m4_if([$2],[libusb],[libusb-config], [$2],[libgphoto2],[gphoto2-config], -- 2.7.4