1# -*- Autoconf -*- 2# Process this file with autoconf to produce a configure script. 3 4AC_PREREQ([2.63]) 5AC_INIT([Envmodules], [1.1.0], [modules-interest@lists.sourceforge.net], , http://modules.sf.net) 6AC_CONFIG_SRCDIR([envmodules.c]) 7AC_CONFIG_HEADERS([config.h]) 8 9# Setup TEA_ macros. 10TEA_INIT([3.13]) 11 12# Load the tclConfig.sh file. 13TEA_PATH_TCLCONFIG 14TEA_LOAD_TCLCONFIG 15 16# Checks for programs. 17 18# Checks for libraries. 19 20# Checks for header files. 21AC_CHECK_HEADERS([fcntl.h unistd.h errno.h limits.h sys/types.h pwd.h grp.h stdlib.h dirent.h]) 22 23# Checks for typedefs, structures, and compiler characteristics. 24AC_TYPE_SSIZE_T 25 26# Checks for library functions. 27AC_FUNC_GETGROUPS 28AC_CHECK_FUNC(sysconf, AC_DEFINE(HAVE_SYSCONF, 1, [Define to 1 if you have the sysconf function])) 29 30# TEA-specific setup 31TEA_SETUP_COMPILER 32TEA_PUBLIC_TCL_HEADERS 33TEA_CONFIG_CFLAGS 34TEA_ENABLE_SYMBOLS 35TEA_MAKE_LIB 36TEA_ENABLE_SHARED 37 38# Perform substitutions from the Tcl configuration 39AC_SUBST(TCL_CC) 40AC_SUBST(TCL_INCLUDE_SPEC) 41AC_SUBST(TCL_SHLIB_CFLAGS) 42AC_SUBST(TCL_SHLIB_LD) 43AC_SUBST(TCL_SHLIB_SUFFIX) 44AC_SUBST(TCL_STUB_LIB_SPEC) 45AC_SUBST(SHLIB_SUFFIX) 46 47AC_CONFIG_FILES([Makefile]) 48AC_OUTPUT 49