don't scan subpathes of /usr/include for include files

This commit is contained in:
Marc Wäckerlin
2015-06-19 07:18:08 +00:00
parent d17f48ae1e
commit 53dab4f213
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2015-06-18 14:34 marc
* ChangeLog, configure.ac: build fails with GNU TLS, because pcsc.h
there is something completely different
2015-05-22 08:45 marc
* configure.ac: fixed package name for mac ports

View File

@@ -382,7 +382,7 @@ AC_DEFUN([AX_PKG_REQUIRE], [
fi
done
if test ${$1_found} -eq 0 -a -n "$3"; then
for p in "/usr/include" ${$1_CFLAGS}; do
for p in ${$1_CFLAGS}; do
AC_MSG_NOTICE([checking: [${p}] with [${p#-I}]])
$1_file=$(find ${p#-I} -name $(echo "$3" | sed 's,.*/,,') | grep "$3" | head -1)
AC_MSG_NOTICE([call: $1_file=[\$](find [$]{p[#]-I} -name "$3")])
@@ -417,7 +417,7 @@ AC_DEFUN([AX_PKG_REQUIRE], [
fi
done
if test ${$1_found} -eq 0; then
for p in /usr/include ${$1_CFLAGS}; do
for p in ${$1_CFLAGS}; do
$1_file=$(find ${p#-I} -name $(echo "$3" | sed 's,.*/,,') | grep "$3" | head -1)
if test -e ${$1_file}; then
AC_MSG_NOTICE([Header file $3 found in sub path of ${pkg} as ${$1_file}])