Move AC_DEFINE conditional outside side of the Perl-check block.

Originally committed to SVN as r2135.
This commit is contained in:
Amar Takhar 2008-03-24 03:45:49 +00:00
parent f7288d0e95
commit 1deae83222
1 changed files with 5 additions and 3 deletions

View File

@ -597,9 +597,6 @@ if test -z "$perl_disabled"; then
[if $PERL_BIN -e 'require 5.004'; then with_perl="yes"; else with_perl="no"; fi])
if test "$with_perl" = "yes"; then
with_automation="yes"
AC_DEFINE(WITH_PERL, 1, [Enable PERL support.])
AC_MSG_CHECKING([$PERL_BIN cflags])
PERL_CFLAGS=`$PERL_BIN -MExtUtils::Embed -eccflags -eperl_inc`
AC_MSG_RESULT([$PERL_CFLAGS])
@ -628,6 +625,11 @@ if test "$agi_with_perl" = "no" && test "$with_perl" = "yes"; then
with_perl="no"
fi
if test "$with_perl" = "yes"; then
with_automation="yes"
AC_DEFINE(WITH_PERL, 1, [Enable PERL support.])
fi
AC_SUBST(PERL_CFLAGS)
AC_SUBST(PERL_LDFLAGS)