dnl If your path doesn't have these, some of the respective clients won't work.
AC_PATH_PROG(ORIG_FINGER, finger)
AC_PATH_PROG(TROUTEPROG, traceroute)
if test "$TROUTEPROG" != ""; then
AC_DEFINE_UNQUOTED(TROUTEPROG, "$TROUTEPROG")
fi
AC_PATH_PROG(PINGPROG, ping)
if test "$PINGPROG" != ""; then
AC_DEFINE_UNQUOTED(PINGPROG, "$PINGPROG")
fi
echo
SRVPID_FILE="/tmp/socks5.pid"
SRVCONF_FILE="/etc/socks5.conf"
SRVIDT_FILE="/tmp/socks5.ident"
LIBCONF_FILE="/etc/libsocks5.conf"
AC_ARG_WITH(debug, --with-debug Turn on debugging and compile time warnings, [if test "$GCC" = "yes"; then CDEBUG_FLAGS="-g -Wall -Wno-comment"; else CDEBUG_FLAGS="-g"; fi])
AC_ARG_WITH(static, --with-static Turn on static compiling, [if test "$withval" != "yes"; then CC="$CC $withval" ; else CC="$CC -static" ; fi])
AC_ARG_WITH(threads, --with-threads Turn on threading in the server if possible, [threads="$withval"], [threads="no"])
AC_ARG_WITH(libconffile, --with-libconffile=val Set the location of the library config file, [LIBCONF_FILE="$withval"]; AC_DEFINE_UNQUOTED(LIBCONF_FILE, "$withval"))
AC_ARG_WITH(srvconffile, --with-srvconffile=val Set the location of the server config file, [SRVCONF_FILE="$withval"]; AC_DEFINE_UNQUOTED(SRVCONF_FILE, "$withval"))
AC_ARG_WITH(srvpidfile, --with-srvpidfile=val Set the location of the server pid file, [SRVPID_FILE="$withval" ]; AC_DEFINE_UNQUOTED(SRVPID_FILE, "$withval"))
AC_ARG_WITH(srvidtfile, --with-srvidtfile=val Set the location of the server ident file, [SRVIDT_FILE="$withval" ]; AC_DEFINE_UNQUOTED(SRVIDT_FILE, "$withval"))
AC_ARG_WITH(srvpwdfile, --with-srvpwdfile=val Set the location of the server password file, [SRVPWD_FILE="$withval" ]; AC_DEFINE_UNQUOTED(SRVPWD_FILE, "$withval"))
AC_ARG_WITH(default-port, --with-default-port=val Set the default socks port, [SOCKS_DEFAULT_PORT="$withval"]; AC_DEFINE_UNQUOTED(SOCKS_DEFAULT_PORT, $withval))
AC_ARG_WITH(default-server, --with-default-server=val Set the default socks server, AC_DEFINE_UNQUOTED(SOCKS_DEFAULT_SERVER, "$withval"))
AC_ARG_WITH(default-version, --with-default-version=val Set the default socks version, AC_DEFINE_UNQUOTED(SOCKS_DEFAULT_VERSION, $withval))
AC_ARG_WITH(syslog-facility, --with-syslog-facility=val Set the syslog facility for socks5, syslog_fac="$withval")
if test "$syslog_fac" != "no"; then
if test "$syslog_fac" = "yes" -o "$syslog_fac" = ""; then
syslog_fac=LOG_DAEMON
fi
AC_DEFINE_UNQUOTED(SYSLOG_FAC, $syslog_fac)
fi
AC_ARG_WITH(passwd, --with-passwd=val Turn on use of passwd file for passwords, AC_DEFINE(USE_PASSWD))
AC_ARG_WITH(shadow-passwd, --with-shadow-passwd=val Turn on use of shadow passwd file for passwords, AC_DEFINE(USE_SHADOW_PASSWD))