5a2b431998-11-22Fredrik Hübinette (Hubbe) # $Id: configure.in,v 1.2 1998/11/22 13:02:06 hubbe Exp $
71f3a21998-11-22Fredrik Hübinette (Hubbe) AC_INIT(perlmod.c)
5a2b431998-11-22Fredrik Hübinette (Hubbe) AC_CONFIG_HEADER(perl_machine.h)
71f3a21998-11-22Fredrik Hübinette (Hubbe)  AC_MODULE_INIT() AC_CHECK_PROGS(perl, perl perl5, x)
5a2b431998-11-22Fredrik Hübinette (Hubbe) objs=
71f3a21998-11-22Fredrik Hübinette (Hubbe) if test x$perl != xx ; then # We have perl, but do we have perlembed? # PERL_LDFLAGS=`perl -V:lddlflags | sed "s/^lddlflags='\(.*\);$/\1/"` # PERL_CCFLAGS=`perl -V:ccflags | sed "s/^ccflags='\(.*\);$/\1/"` PERL_LDFLAGS=`perl -MExtUtils::Embed -e ldopts` PERL_CCFLAGS=`perl -MExtUtils::Embed -e ccopts`
5a2b431998-11-22Fredrik Hübinette (Hubbe)  if test "x$PERL_LDFLAGS$PERL_CCFLAGS" != x; then extra_objs='perlxsi.o' AC_DEFINE(HAVE_PERL) fi
71f3a21998-11-22Fredrik Hübinette (Hubbe) fi AC_SUBST(perl)
5a2b431998-11-22Fredrik Hübinette (Hubbe) AC_SUBST(extra_objs)
71f3a21998-11-22Fredrik Hübinette (Hubbe) AC_SUBST(PERL_LDFLAGS) AC_SUBST(PERL_CCFLAGS)
5a2b431998-11-22Fredrik Hübinette (Hubbe) 
71f3a21998-11-22Fredrik Hübinette (Hubbe) AC_OUTPUT(Makefile,echo FOO >stamp-h )