|
version 1.2, 2013/04/09 07:37:49
|
version 1.6, 2015/06/18 23:03:52
|
|
Line 2
|
Line 2
|
| # $Author$ |
# $Author$ |
| # $Id$ |
# $Id$ |
| # |
# |
| AC_INIT(suX, 2.1, misho@aitnet.org) | AC_INIT(suX, 3.3, misho@aitnet.org) |
| AC_CONFIG_SRCDIR([src/sux.c]) |
AC_CONFIG_SRCDIR([src/sux.c]) |
| AC_CONFIG_HEADERS([inc/config.h]) |
AC_CONFIG_HEADERS([inc/config.h]) |
| |
|
|
Line 20 CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}
|
Line 20 CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}
|
| LDFLAGS="-L/usr/local/lib ${LDFLAGS}" |
LDFLAGS="-L/usr/local/lib ${LDFLAGS}" |
| |
|
| # Checks for libraries. |
# Checks for libraries. |
| |
AC_CHECK_LIB([pthread], [pthread_create]) |
| AC_CHECK_LIB([util], [setusercontext]) |
AC_CHECK_LIB([util], [setusercontext]) |
| AC_CHECK_LIB([aitio], [io_arrayMake]) | AC_CHECK_LIB([elwix], [array_Args]) |
| AC_CHECK_LIB([aitcfg], [LoadConfig]) | AC_CHECK_LIB([aitcfg], [cfg_getAttribute]) |
| |
|
| # Checks for header files. |
# Checks for header files. |
| AC_CHECK_HEADERS([stdlib.h string.h sys/param.h syslog.h unistd.h]) |
AC_CHECK_HEADERS([stdlib.h string.h sys/param.h syslog.h unistd.h]) |
|
Line 62 AC_ARG_ENABLE(debug,
|
Line 63 AC_ARG_ENABLE(debug,
|
| ;; |
;; |
| esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts])) |
esac ], AC_DEFINE(NDEBUG,, [Turn off debug asserts])) |
| AC_MSG_RESULT($DEBUG) |
AC_MSG_RESULT($DEBUG) |
| |
|
| |
GROUP="www" |
| |
AC_MSG_CHECKING(suX execution group) |
| |
AC_ARG_WITH(group, |
| |
[ --with-group=<user> Permitted group for suX ], |
| |
[ GROUP=$withval ],) |
| |
AC_MSG_RESULT($GROUP) |
| |
AC_SUBST(GROUP) |
| |
|
| AC_CONFIG_FILES([Makefile |
AC_CONFIG_FILES([Makefile |
| bin/Makefile |
bin/Makefile |