mirror of https://github.com/odrling/Aegisub
Move AC_DEFINE conditional outside side of the Perl-check block.
Originally committed to SVN as r2135.
This commit is contained in:
parent
f7288d0e95
commit
1deae83222
|
@ -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 $PERL_BIN -e 'require 5.004'; then with_perl="yes"; else with_perl="no"; fi])
|
||||||
|
|
||||||
if test "$with_perl" = "yes"; then
|
if test "$with_perl" = "yes"; then
|
||||||
with_automation="yes"
|
|
||||||
AC_DEFINE(WITH_PERL, 1, [Enable PERL support.])
|
|
||||||
|
|
||||||
AC_MSG_CHECKING([$PERL_BIN cflags])
|
AC_MSG_CHECKING([$PERL_BIN cflags])
|
||||||
PERL_CFLAGS=`$PERL_BIN -MExtUtils::Embed -eccflags -eperl_inc`
|
PERL_CFLAGS=`$PERL_BIN -MExtUtils::Embed -eccflags -eperl_inc`
|
||||||
AC_MSG_RESULT([$PERL_CFLAGS])
|
AC_MSG_RESULT([$PERL_CFLAGS])
|
||||||
|
@ -628,6 +625,11 @@ if test "$agi_with_perl" = "no" && test "$with_perl" = "yes"; then
|
||||||
with_perl="no"
|
with_perl="no"
|
||||||
fi
|
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_CFLAGS)
|
||||||
AC_SUBST(PERL_LDFLAGS)
|
AC_SUBST(PERL_LDFLAGS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue