diff --git a/program/acinclude.m4 b/program/acinclude.m4
index 062216a2b689aed8355d73ff1da4ef4d56d89f9c..7d7cc9ecb98ab4abb7255a15a824519b7d7027f1 100644 (file)
--- a/program/acinclude.m4
+++ b/program/acinclude.m4
dnl and prints out a helful message
dnl
dnl
dnl and prints out a helful message
dnl
dnl
-dnl EX_CHECK_ALL(library, function, header, pkgconf name, tested-version, homepage)
-dnl $1 $2 $3 $4 $5 $6
+dnl EX_CHECK_ALL(library, function, header, pkgconf name, tested-version, homepage, cppflags)
+dnl $1 $2 $3 $4 $5 $6 $7
dnl
dnl
AC_DEFUN([EX_CHECK_ALL],
dnl
dnl
AC_DEFUN([EX_CHECK_ALL],
ex_check_save_LIBS=${LIBS}
ex_check_save_CPPFLAGS=${CPPFLAGS}
ex_check_save_LDFLAGS=${LDPFLAGS}
ex_check_save_LIBS=${LIBS}
ex_check_save_CPPFLAGS=${CPPFLAGS}
ex_check_save_LDFLAGS=${LDPFLAGS}
+ if test "x$7" != "x"; then
+ CPPFLAGS="-I$7 $CPPFLAGS"
+ fi
dnl try compiling naked first
AC_CHECK_LIB($1,$2, [
AC_CHECK_HEADER($3,[LIBS="-l$1 ${LIBS}";EX_CHECK_STATE=YES],[])],[])
dnl try compiling naked first
AC_CHECK_LIB($1,$2, [
AC_CHECK_HEADER($3,[LIBS="-l$1 ${LIBS}";EX_CHECK_STATE=YES],[])],[])
AC_LANG_POP(C)
]
)
AC_LANG_POP(C)
]
)
+
dnl
dnl Ptherad check from http://autoconf-archive.cryp.to/acx_pthread.m4
dnl
dnl
dnl Ptherad check from http://autoconf-archive.cryp.to/acx_pthread.m4
dnl