From efd66a9312197b05e4255e09c9f1957d7f9feeca Mon Sep 17 00:00:00 2001 From: Jonathan Boeing Date: Sun, 27 Nov 2022 18:47:38 -0700 Subject: [PATCH] Use libetpan CFLAGS for header check --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 317d6fa0d..0e60ece2d 100644 --- a/configure.ac +++ b/configure.ac @@ -976,13 +976,18 @@ if test x"$enable_libetpan" = xyes; then fi ]) if test "x$libetpan_config" = "xyes"; then + libetpan_save_CPPFLAGS=$CPPFLAGS + CPPFLAGS="$CPPFLAGS $LIBETPAN_CFLAGS" AC_CHECK_HEADER(libetpan/libetpan.h, [libetpan_result=yes]) if test "x$libetpan_result" = "xyes"; then AC_MSG_CHECKING([whether libetpan-config hints compiles and links fine]) + libetpan_save_LIBS=$LIBS LIBS="$LIBS $LIBETPAN_LIBS" AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[db_mailstorage_init(NULL, NULL);]])],[libetpan_result=yes],[libetpan_result=no]) + LIBS=$libetpan_save_LIBS AC_MSG_RESULT([$libetpan_result]) fi + CPPFLAGS=$libetpan_save_CPPFLAGS fi if test "x$libetpan_result" = "xyes"; then if test $libetpan_versiontype -eq 1; then -- 2.11.4.GIT