|
|
| version 1.52, 2002/12/09 09:18:48 | version 1.57, 2002/12/26 12:27:16 |
|---|---|
| Line 50 AC_LANG_CPLUSPLUS | Line 50 AC_LANG_CPLUSPLUS |
| dnl Arguments | dnl Arguments |
| AC_ARG_ENABLE(link-libstdcpp, [ --disable-link-libstdcpp to disable libstdc++ linkage, | AC_ARG_ENABLE(safe-mode, [ --disable-safe-mode to enable reading and executing |
| if you belive you do not need one], | files belonging to group+user other then effective], |
| [ | [ |
| LINK_LIBSTDCPP_FLAG=$enableval | SAFE_MODE=$enableval |
| if test "$enableval" = "no"; then | |
| AC_MSG_WARN(disabling libstdc++ linkage) | |
| fi | |
| ] | ] |
| ) | ) |
| AM_CONDITIONAL(DO_NOT_LINK_LIBSTDCPP, test "$LINK_LIBSTDCPP_FLAG" = "no") | if test "$SAFE_MODE" = "no"; then |
| AC_MSG_WARN(enabling reading of files belonging to group+user other then effective) | |
| AC_ARG_ENABLE(string-origins, [ --disable-string-origins to switch off string origin tracking], | else |
| [ | AC_DEFINE(PA_SAFE_MODE,,disabled reading of files belonging to group+user other then effective) |
| if test "$enableval" = "no"; then | |
| AC_MSG_WARN(disabling string origin tracking) | |
| AC_DEFINE(NO_STRING_ORIGIN,,no string origin tracking) | |
| fi | fi |
| ] | |
| ) | |
| AC_ARG_ENABLE(execs, [ --disable-execs to disable any execs | AC_ARG_ENABLE(execs, [ --disable-execs to disable any execs |
| (file::exec, file::cgi, unix mail:send)], | (file::exec, file::cgi, unix mail:send)], |
| Line 80 fi | Line 72 fi |
| ] | ] |
| ) | ) |
| AC_ARG_ENABLE(foreign-group-files, [ --disable-foreign-group-files to disable read and executing | AC_ARG_ENABLE(string-origins, [ --disable-string-origins to switch off string origin tracking], |
| files belonging to group other then effective], | |
| [ | [ |
| if test "$enableval" = "no"; then | if test "$enableval" = "no"; then |
| AC_MSG_WARN(disabling reading of files belonging to group other then effective) | AC_MSG_WARN(disabling string origin tracking) |
| AC_DEFINE(NO_FOREIGN_GROUP_FILES,,disabled reading and executing files of non-process-effective-group) | AC_DEFINE(NO_STRING_ORIGIN,,no string origin tracking) |
| fi | fi |
| ] | ] |
| ) | ) |
| srccharsetsdir=$srcdir/etc/parser3.charsets | srccharsetsdir=$srcdir/etc/parser3.charsets |
| CHARSETS_REQUESTED="windows-1251" | CHARSETS_REQUESTED="windows-1251" |
| AC_ARG_WITH(charsets, [ --with-charsets=CHARSET[,CHARSET,...] Enables charsets in root config (windows-1251, | AC_ARG_WITH(charsets, [ --with-charsets=CHARSET[,CHARSET,...] Enables charsets in root config (windows-1251, |
| Line 107 AC_DEFUN(PA_SUBSTCHARSET, [ | Line 100 AC_DEFUN(PA_SUBSTCHARSET, [ |
| commentcharset_$2='#' | commentcharset_$2='#' |
| for c in $CHARSETS_REQUESTED; do | for c in $CHARSETS_REQUESTED; do |
| if test "$1" = "$c"; then | if test "$1" = "$c"; then |
| AC_MSG_WARN(Enabling charset $1) | AC_MSG_WARN(enabling charset $1) |
| commentcharset_$2= | commentcharset_$2= |
| fi | fi |
| done | done |
| Line 202 AC_ARG_WITH(pathlink,[ --with-pathlink= | Line 195 AC_ARG_WITH(pathlink,[ --with-pathlink= |
| using linker key (-R, -rpath-link)], | using linker key (-R, -rpath-link)], |
| LD_PATHLINK=$withval | LD_PATHLINK=$withval |
| ) | ) |
| AC_ARG_WITH(link-stdcpp, [ --with-link-stdcpp=PATH to directory with libstdc++ | |
| --without-link-stdcpp to disable libstdc++ linkage, | |
| if you belive you do not need one], | |
| [ | |
| LIBSTDCPP_PATH=$withval | |
| if test "$LIBSTDCPP_PATH" = "no"; then | |
| AC_MSG_WARN(disabling libstdc++ linkage) | |
| else | |
| if test -z "$LD_PATHLINK"; then | |
| AC_MSG_ERROR(when using --with-link-stdcpp one must specify --with-pathlink) | |
| fi | |
| LIBS="$LIBS -Wl,$LD_PATHLINK -Wl,$LIBSTDCPP_PATH" | |
| fi | |
| ], | |
| #pseudo path, meaning still link libstdcpp. value needed to trick next _CONDITIONAL | |
| LIBSTDCPP_PATH=" " | |
| ) | |
| AM_CONDITIONAL(DO_NOT_LINK_LIBSTDCPP, test "$LIBSTDCPP_PATH" = "no") | |
| AC_ARG_WITH(sjlj-exceptions,[ --with-sjlj-exceptions enable simple 'throw' from dynamic library], | AC_ARG_WITH(sjlj-exceptions,[ --with-sjlj-exceptions enable simple 'throw' from dynamic library], |
| AC_DEFINE(PA_WITH_SJLJ_EXCEPTIONS,,one can throw from dynamic library) | AC_DEFINE(PA_WITH_SJLJ_EXCEPTIONS,,one can throw from dynamic library) |
| ) | ) |
| Line 469 flock \ | Line 483 flock \ |
| _locking \ | _locking \ |
| fcntl \ | fcntl \ |
| lockf \ | lockf \ |
| ftruncate \ | |
| getrusage \ | getrusage \ |
| gettimeofday \ | gettimeofday \ |
| crypt \ | crypt \ |