source: trunk/base/configure.ac @ 2620

Last change on this file since 2620 was 2620, checked in by landonf (Landon Fuller), 17 years ago

Switch to autoconf. This change is far reaching through the build architecture.
Detailed ChangeLog:

  • Added the following files:

base/Makefile.in: Renamed Makefile to Makefile.in
base/aclocal.m4: Local m4 macros. Currently only includes tcl.m4
base/tcl.m4: TEA && Tcl distribution macros with some local modifications
base/configure: configure script, generated from configure.ac
base/configure.ac: m4 used to generate base/configure
base/install.sh: install(1) replacement to appease autoconf
base/Mk/dports.autoconf.mk.in: Contains all autoconf AC_SUBST variables used.
base/Mk/dports.tea.mk: Standardized C extension building

  • Removed the following files:

base/Makefile: Renamed to Makefile.in
base/scripts/config.sh: Entirely replaced by autoconf

  • Modified the following files:

Makefile: Updated to execute configure script in base/, providing backwards compatibility. (Users expext to type "make").
base/src/cflib1.0/Makefile: Updated to use dports.tea.mk and use ${datadir} from dports.autoconf.mk
base/src/pextlib1.0/Makefile: Updated to use dports.tea.mk and use ${datadir} from dports.autoconf.mk
base/src/darwinports1.0/Makefile: Updated to use ${TCL_PACKAGE_DIR} from dports.autoconf.mk
base/src/port1.0/Makefile: Updated to use ${datadir} from dports.autoconf.mk
base/src/port1.0/resources/Makefile: Updated use ${datadir} from dports.autoconf.mk
base/src/port1.0/resources/package/Makefile: Updated to use ${datadir} from dports.autoconf.mk

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(src/pextlib1.0/Pextlib.c)
3AC_PREFIX_DEFAULT(/opt/local)
4
5# Checks for programs.
6AC_PROG_CC
7AC_PROG_INSTALL
8
9# Check for standard header files.
10AC_HEADER_STDC
11
12# Check for Tcl public headers
13dnl XXX hardwire CYGPATH (CYGPATH must be set for SC_PUBLIC_TCL_HEADERS)
14CYGPATH=echo
15SC_PUBLIC_TCL_HEADERS
16
17# Load tclConfig.sh
18SC_PATH_TCLCONFIG
19SC_LOAD_TCLCONFIG
20
21# Check for Tcl package path
22OD_TCL_PACKAGE_DIR
23
24# Allows building of shared libraries
25SC_ENABLE_SHARED
26
27# Pull compiler / linker values from tclConfig.sh
28CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG}
29CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE}
30LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG}
31LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE}
32SHLIB_LD=${TCL_SHLIB_LD}
33STLIB_LD=${TCL_STLIB_LD}
34SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS}
35SHLIB_SUFFIX=${TCL_SHLIB_SUFFIX}
36
37AC_SUBST(CFLAGS_DEBUG)
38AC_SUBST(CFLAGS_OPTIMIZE)
39AC_SUBST(STLIB_LD)
40AC_SUBST(SHLIB_LD)
41AC_SUBST(SHLIB_CFLAGS)
42AC_SUBST(SHLIB_LDFLAGS)
43AC_SUBST(SHLIB_SUFFIX)
44AC_SUBST(TCL_STUB_LIB_SPEC)
45
46dnl man page settings (compressed, links, etc)
47dnl
48dnl SC_CONFIG_MANPAGES
49
50# Output
51AC_OUTPUT(Makefile Mk/dports.autoconf.mk)
Note: See TracBrowser for help on using the repository browser.