From bfc6c41505583c3d3ee1b5e8da05b54878bc2330 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Mon, 13 Jul 2015 14:57:04 +0000 Subject: [PATCH] improve package detection --- ax_init_standard_project.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ax_init_standard_project.m4 b/ax_init_standard_project.m4 index 9bfa33e..b771569 100644 --- a/ax_init_standard_project.m4 +++ b/ax_init_standard_project.m4 @@ -412,13 +412,13 @@ AC_DEFUN([AX_PKG_REQUIRE], [ old_CPPFLAGS=${CPPFLAGS} CPPFLAGS=" ${$1_CFLAGS} ${CPPFLAGS}" AC_CHECK_HEADER([$3], [ - $1_found=yes + $1_found=${tmp_package} ], [ for x in ${$1_CFLAGS}; do AC_MSG_NOTICE([search for $3 in ${x[#]-I}]) for f in $(find ${x[#]-I} -name "$3"); do if test -f "$f"; then - $1_found=yes + $1_found=${tmp_package} $1_CFLAGS+=" -I${f%/*}" AC_MSG_NOTICE([added path ${f%/*}]) break; @@ -434,7 +434,7 @@ AC_DEFUN([AX_PKG_REQUIRE], [ AC_MSG_NOTICE([search for $3 in $x]) for f in $(find ${x} -name "$3"); do if test -f "$f"; then - $1_found=yes + $1_found=${tmp_package} $1_CFLAGS+=" -I${f%/*}" AC_MSG_NOTICE([added path ${f%/*}]) break;