gimp/plug-ins/perl/etc/configure.in
1999-05-05 21:41:05 +00:00

43 lines
1.2 KiB
Plaintext

AC_INIT(config.pl.in)
AC_PREFIX_DEFAULT($prefix)dnl from Makefile.PL
AC_CONFIG_HEADER(config.h)
AC_ARG_WITH(cflags, [ --with-cflags=FLAGS Set CFLAGS to FLAGS (optional)],
CFLAGS="$with_cflags")
AC_ARG_WITH(ldflags, [ --with-ldflags=FLAGS Set LDFLAGS to FLAGS (optional)],
LDFLAGS="$with_ldflags")
AC_ARG_WITH(includes,[ --with-includes=DIR Additionally search for includes in dir DIR (optional)],
CPPFLAGS="$CPPFLAGS -I$with_includes")
AC_ARG_WITH(libs, [ --with-libs=DIR Additionally search for libraries in dir in DIR (optional)],
LIBS="$LIBS -L$with_libs")
AC_PATH_PROGS(GIMP,gimp)
AM_PATH_GIMP(1.0.2,, AC_MSG_ERROR(
** unable to find gimp, make sure it's in your path (version 1.0.2+ required!)
** You can get the Gimp from ftp://ftp.gimp.org/pub/gimp.
))
ac_gimp_save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $GIMP_CFLAGS"
AC_EGREP_CPP(DIVIDE_MODE,[#include <libgimp/gimp.h>],AC_DEFINE(HAVE_DIVIDE_MODE))
AC_CHECK_HEADERS(libgimp/gimpmodule.h)
CPPFLAGS="$ac_gimp_save_CPPFLAGS"
AC_CHECK_HEADERS(unistd.h)
CONFIG_H="config.h"
sinclude(configure.frag)
AC_OUTPUT(config.pl)
echo "now invoking perl to complete the configuration..."
exec $PERL $MAKEFILE_PL --writemakefile PREFIX="$prefix"