Automake used to build SWIG executable

Automake 1.7.x requires autoconf version 2.54 minimum


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4220 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2002-12-23 22:50:26 +00:00
commit a4c4e8e8b2

View file

@ -1,10 +1,12 @@
dnl Process this file with autoconf to produce a configure script. dnl Process this file with autoconf to produce a configure script.
AC_INIT([swig],[1.3.18],[http://www.swig.org]) AC_INIT([swig],[1.3.18],[http://www.swig.org])
AC_PREREQ(2.53) AC_PREREQ(2.54)
AC_CONFIG_SRCDIR([Source/Swig/swig.h]) AC_CONFIG_SRCDIR([Source/Swig/swig.h])
AC_CONFIG_AUX_DIR([Tools/config]) AC_CONFIG_AUX_DIR([Tools/config])
AC_CONFIG_HEADERS([Source/Include/swigconfig.h]) AC_CONFIG_HEADERS([Source/Include/swigconfig.h])
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE
dnl Some extra defines for the config file dnl Some extra defines for the config file
AH_TOP([ AH_TOP([
@ -24,25 +26,20 @@ AH_TOP([
#define SWIG_TCL_RUNTIME "-L" LIBDIR " -lswigtcl" RELEASE_SUFFIX #define SWIG_TCL_RUNTIME "-L" LIBDIR " -lswigtcl" RELEASE_SUFFIX
]) ])
AC_CANONICAL_HOST
dnl Checks for programs. dnl Checks for programs.
AC_PROG_CC AC_PROG_CC
AC_PROG_CXX AC_PROG_CXX
AC_PROG_YACC
AC_PROG_RANLIB AC_PROG_RANLIB
AM_PROG_CC_C_O # Needed for subdir-objects in AUTOMAKE_OPTIONS
AC_CHECK_PROGS(AR, ar aal, ar)
AC_SUBST(AR)
AC_DEFINE_UNQUOTED(SWIG_CXX, ["$CXX"], [Compiler that built SWIG]) AC_DEFINE_UNQUOTED(SWIG_CXX, ["$CXX"], [Compiler that built SWIG])
AC_SUBST(AR)
AC_CHECK_PROGS(AR, ar aal, ar)
AC_PROG_YACC
YFLAGS=-d
AC_SUBST(YFLAGS)
dnl Checks for header files. dnl Checks for header files.
AC_HEADER_STDC AC_HEADER_STDC
dnl Checks for library functions. dnl Checks for library functions.
# Set info about shared libraries. # Set info about shared libraries.
@ -990,6 +987,7 @@ case $host in
esac esac
AC_SUBST(ROOT_DIR) AC_SUBST(ROOT_DIR)
AC_SUBST(ac_aux_dir)
# Configure SWIG_LIB path # Configure SWIG_LIB path
@ -1004,30 +1002,16 @@ AC_ARG_WITH(release-suffix,
[release_suffix="$withval"], [release_suffix=""]) [release_suffix="$withval"], [release_suffix=""])
AC_SUBST(release_suffix) AC_SUBST(release_suffix)
AC_CONFIG_SUBDIRS(Tools) AC_CONFIG_SUBDIRS(Tools)
AC_CONFIG_FILES([
# NOTE: The following ref to `Source' should NOT be prefixed w/ `$srcdir/'. Makefile \
# We can remove it if `Source' ever has a generated file but not before. Source/Makefile \
test -d Source || mkdir Source Runtime/Makefile \
dnl We use the following in `AC_CONFIG_FILES' and "make distclean".
configure_substituted_files=`echo \
Examples/Makefile \ Examples/Makefile \
Examples/guile/Makefile \ Examples/guile/Makefile \
Examples/GIFPlot/Makefile \ Examples/GIFPlot/Makefile \
Examples/GIFPlot/Lib/Makefile \ Examples/GIFPlot/Lib/Makefile \
Makefile \ ])
Runtime/Makefile \
Source/CParse/Makefile \
Source/DOH/Makefile \
Source/Modules/Makefile \
Source/Preprocessor/Makefile \
Source/Swig/Makefile \
`
AC_SUBST(configure_substituted_files)
AC_CONFIG_FILES([$configure_substituted_files])
AC_OUTPUT AC_OUTPUT
dnl configure.in ends here dnl configure.in ends here