home *** CD-ROM | disk | FTP | other *** search
- dnl Process this file with autoconf to produce a configure script.
- AC_INIT(perl.c)
- AC_CONFIG_HEADER(config.h)
-
- # We want these before the checks, so the checks can modify their values.
- test -z "$CFLAGS" && CFLAGS= auto_cflags=1
- test -z "$LDFLAGS" && LDFLAGS=
-
- AC_PROG_CC
-
- # If we're using gcc and the user hasn't specified CFLAGS, add -O2 to CFLAGS.
- # FIXME: gcc 2.6.0 has trouble compiling tperl.c with -O2 and also generates
- # random mungwall hits on some other files, so for now, don't optimize.
- test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS"
-
- AC_SUBST(CFLAGS)dnl
- AC_SUBST(LDFLAGS)dnl
-
- AC_PROG_CPP
- AC_GCC_TRADITIONAL
- AC_PROG_INSTALL
- AC_PROG_YACC
- AC_RETSIGTYPE
- AC_LN_S
- AC_HAVE_LIBRARY(m)
- AC_HAVE_HEADERS(gdbm.h ndbm.h dbz.h dbm.h)
- AC_HAVE_LIBRARY(gdbm)
-
- AC_OUTPUT(Makefile x2p/Makefile)
-