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

master
Marc Wäckerlin 10 years ago
parent d17f48ae1e
commit 53dab4f213
  1. 5
      ChangeLog
  2. 4
      ax_init_standard_project.m4

@ -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 2015-05-22 08:45 marc
* configure.ac: fixed package name for mac ports * configure.ac: fixed package name for mac ports

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

Loading…
Cancel
Save