[gaim-migrate @ 11730]

Fri, 31 Dec 2004 13:20:55 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Fri, 31 Dec 2004 13:20:55 +0000
changeset 10460
3233258c3918
parent 10459
39efbe2819f3
child 10461
8125858d1d5f

[gaim-migrate @ 11730]
Fix for bug 994425 - check for perl headers in ./configure

configure.ac file | annotate | diff | comparison | revisions
--- 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
 

mercurial