summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDan Molik <dan@d3fy.net>2014-10-29 17:26:53 -0400
committerTingPing <tingping@tingping.se>2014-10-29 17:28:04 -0400
commit9fb4eb5107a133a4c0492f11f02cdeb014042786 (patch)
tree806a94713cb31fb604385f7c45685a05a5ecc190
parent3c89de48a8fe7d934868e8dc6ab1c72b9b4694ee (diff)
configure: Fix checking for perl
Closes #1196
Fixes #1197
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 61feba80..2177e747 100644
--- a/configure.ac
+++ b/configure.ac
@@ -255,8 +255,11 @@ if test "$perl" = yes; then
 				original_ldflags="$LDFLAGS"
 				CFLAGS="$PERL_CFLAGS"
 				LDFLAGS="$PERL_LDFLAGS"
-				AC_TRY_LINK([#include <EXTERN.h>
-	#include <perl.h>], [], perl_is_usable=yes, perl_is_usable=no)
+				AC_TRY_LINK([
+						#define PERL_NO_INLINE_FUNCTIONS
+						#include <EXTERN.h>
+						#include <perl.h>
+					], [], perl_is_usable=yes, perl_is_usable=no)
 				CFLAGS="$original_cflags"
 				LDFLAGS="$original_ldflags"
 				if test x$perl_is_usable = xno ; then