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)