pike.git/
src/
modules/
Perl/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2001-03-02
2001-03-02 14:12:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>
8884bec2bf933b2776d70890dfa6fc9bbc121df2 (
88
lines) (+
52
/-
36
)
[
Show
|
Annotate
]
Branch:
7.0
Support for --with-perl.
Support for detecting Perl 5.6.
Rev: src/modules/Perl/configure.in:1.8
1:
-
# $Id: configure.in,v 1.
7
2000
/
02
/
09
01
:
16
:
07
leif
Exp $
+
# $Id: configure.in,v 1.
8
2001
/
03/
02
14
:
12
:
03
grubba
Exp $
AC_INIT(perlmod.c) AC_CONFIG_HEADER(perl_machine.h) AC_MODULE_INIT()
-
+
AC_ARG_WITH(perl, [ --with-perl enable the Perl module],[],
+
[with_perl="yes"])
+
+
if test "x$with_perl" = "xno"; then :; else
+
+
if test "x$with_perl" = "xyes"; then
AC_CHECK_PROGS(perl, perl perl5, x)
-
+
else
+
AC_CHECK_PROGS(perl, "$with_perl" perl perl5, x)
+
fi
AC_MSG_CHECKING(if perl is embeddable) AC_CACHE_VAL(pike_cv_perlmod_have_perl,
40:
args[3]=0; alarm(10);
-
perl_destruct_level=2;
+
my_perl = perl_alloc();
-
+
#ifndef DBsub
+
/* perl5.6 */
+
PL_perl_destruct_level=2;
+
#else
+
/* perl5.005 */
+
perl_destruct_level=2;
+
#endif
perl_construct(my_perl); perl_parse(my_perl, NULL, 2, args, (char **)NULL); perl_run(my_perl);
70:
PERL_CCFLAGS='' AC_MSG_RESULT(no) fi
+
fi
-
+
AC_SUBST(perl) AC_SUBST(extra_objs) AC_SUBST(PERL_LDFLAGS)