mirror of
https://github.com/envmodules/modules.git
synced 2026-05-30 00:12:31 +08:00
Revert use of getgrouplist C function instead of getgroups. getgrouplist returns a result different than the one obtained with "id" command on some OSes (FreeBSD, Cygwin, MSYS). Stay with getgroups for the moment, as it is still the standard way (POSIX.1-2008) to retrieve user groups.
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
# -*- Autoconf -*-
|
|
# Process this file with autoconf to produce a configure script.
|
|
|
|
AC_PREREQ([2.69])
|
|
AC_INIT([Envmodules],[1.4.2],[modules-interest@lists.sourceforge.net],[],[http://modules.sf.net])
|
|
AC_CONFIG_SRCDIR([envmodules.c])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
# Setup TEA_ macros.
|
|
TEA_INIT([3.13])
|
|
|
|
# Load the tclConfig.sh file.
|
|
TEA_PATH_TCLCONFIG
|
|
TEA_LOAD_TCLCONFIG
|
|
|
|
# Checks for programs.
|
|
|
|
# Checks for libraries.
|
|
|
|
# Checks for header files.
|
|
AC_CHECK_HEADERS([fcntl.h unistd.h errno.h limits.h sys/types.h pwd.h grp.h stdlib.h stdio.h dirent.h time.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_TYPE_SSIZE_T
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_GETGROUPS
|
|
|
|
# TEA-specific setup
|
|
TEA_SETUP_COMPILER
|
|
TEA_PUBLIC_TCL_HEADERS
|
|
TEA_CONFIG_CFLAGS
|
|
TEA_ENABLE_SYMBOLS
|
|
TEA_MAKE_LIB
|
|
TEA_ENABLE_SHARED
|
|
|
|
# Perform substitutions from the Tcl configuration
|
|
AC_SUBST(TCL_CC)
|
|
AC_SUBST(TCL_INCLUDE_SPEC)
|
|
AC_SUBST(TCL_SHLIB_CFLAGS)
|
|
AC_SUBST(TCL_SHLIB_LD)
|
|
AC_SUBST(TCL_SHLIB_SUFFIX)
|
|
AC_SUBST(TCL_STUB_LIB_SPEC)
|
|
AC_SUBST(SHLIB_SUFFIX)
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|