changeset 10460:83cfcb52d93b

[gaim-migrate @ 11730] Fix for bug 994425 - check for perl headers in ./configure committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Fri, 31 Dec 2004 13:20:55 +0000
parents bbe937302b47
children e94802fe3eaf
files configure.ac
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Fri Dec 31 13:16:45 2004 +0000
+++ b/configure.ac	Fri Dec 31 13:20:55 2004 +0000
@@ -433,6 +433,15 @@
 		AC_MSG_CHECKING(for libperl)
 		AC_CHECK_FUNCS(perl_run, [], enable_perl=no)
 		LIBS="$oldLIBS"
+
+		oldCPPFLAGS="$CPPFLAGS"
+		CPPFLAGS="$CPPFLAGS $PERL_CFLAGS"
+		AC_CHECK_HEADERS(EXTERN.h)
+		AC_CHECK_HEADERS(perl.h, [], enable_perl=no,
+		[#if HAVE_EXTERN_H
+		 # include <EXTERN.h>
+		 #endif])
+		CPPFLAGS="$oldCPPFLAGS"
 	fi
 fi