perl: get required CFLAGS from $(perl -V::ccflags:)

This commit is contained in:
Frédéric Péters 2014-03-28 16:45:00 +01:00 committed by Benjamin Dauvergne
parent c141a04ec0
commit 190c7743c2
1 changed files with 3 additions and 0 deletions

View File

@ -531,12 +531,15 @@ AC_ARG_ENABLE(perl, [ --disable-perl disable the Perl binding],,
if test "X$PERL" != "X"; then
PERLINSTALLSITEARCH=`$PERL -MConfig -e 'print $Config{installsitearch};'`
PERLMAN3DIR=`$PERL -MConfig -e 'print $Config{man3dir};'`
PERL_CFLAGS=$($PERL -V::ccflags:)
else
PERLINSTALLSITEARCH=none
PERLMAN3DIR=none
PERL_CFLAGS=
fi
AC_SUBST(PERLINSTALLSITEARCH)
AC_SUBST(PERLMAN3DIR)
AC_SUBST(PERL_CFLAGS)
AC_MSG_CHECKING(for Perl API)
if test "X$enable_perl" != "Xno" ; then