configure: Fix checking for perl

Closes #1196
Fixes #1197
This commit is contained in:
Dan Molik 2014-10-29 17:26:53 -04:00 committed by TingPing
parent 3c89de48a8
commit 9fb4eb5107

View File

@ -255,8 +255,11 @@ if test "$perl" = yes; then
original_ldflags="$LDFLAGS" original_ldflags="$LDFLAGS"
CFLAGS="$PERL_CFLAGS" CFLAGS="$PERL_CFLAGS"
LDFLAGS="$PERL_LDFLAGS" LDFLAGS="$PERL_LDFLAGS"
AC_TRY_LINK([#include <EXTERN.h> AC_TRY_LINK([
#include <perl.h>], [], perl_is_usable=yes, perl_is_usable=no) #define PERL_NO_INLINE_FUNCTIONS
#include <EXTERN.h>
#include <perl.h>
], [], perl_is_usable=yes, perl_is_usable=no)
CFLAGS="$original_cflags" CFLAGS="$original_cflags"
LDFLAGS="$original_ldflags" LDFLAGS="$original_ldflags"
if test x$perl_is_usable = xno ; then if test x$perl_is_usable = xno ; then