From 5dd779130722b1396b40dfd22125a251b0ff9eaf Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 17 Jun 2014 11:17:55 -0500 Subject: [PATCH] FS-6602: fixed check for EXTERN.h --- configure.ac | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 635b3d1950..a3b8b75a95 100644 --- a/configure.ac +++ b/configure.ac @@ -1242,10 +1242,11 @@ if test "x$ac_cv_have_perl" != "xno"; then PERL_LDFLAGS="`$PERL -MExtUtils::Embed -e ldopts`" PERL_INC="`$PERL -MExtUtils::Embed -e perl_inc`" - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$PERL_CFLAGS $CPPFLAGS" - AC_CHECK_HEADER([EXTERN.h], [ac_cv_have_EXTERN_h=yes], [ac_cv_have_EXTERN_h=no]) - CPPFLAGS="$save_CPPFLAGS" + save_CFLAGS="$CFLAGS" + CFLAGS="$PERL_CFLAGS" + AC_CHECK_HEADER([EXTERN.h], [ac_cv_have_EXTERN_h=yes], [ac_cv_have_EXTERN_h=no], [[#include +# include ]]) + CFLAGS="$save_CFLAGS" AC_SUBST(PERL_SITEDIR) AC_SUBST(PERL_LIBDIR)