From 1deae832223b6f98f32b09e6dc5c141d7b721a55 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Mon, 24 Mar 2008 03:45:49 +0000 Subject: [PATCH] Move AC_DEFINE conditional outside side of the Perl-check block. Originally committed to SVN as r2135. --- configure.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index eb2dc5266..0acdf4ded 100644 --- a/configure.in +++ b/configure.in @@ -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)