/* Define to 1 if you use SecurID for authentication. */
#undef HAVE_SECURID
+/* Define to 1 if you have the `setlocale' function. */
+#undef HAVE_SETLOCALE
+
/* Define to 1 if you have the `setproctitle' function. */
#undef HAVE_SETPROCTITLE
+
for ac_func in strchr strrchr memchr memcpy memmove memset sysconf tzset \
- strftime setrlimit initgroups getgroups fstat gettimeofday
+ strftime setrlimit initgroups getgroups fstat gettimeofday \
+ setlocale
do
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_func" >&5
dnl Function checks
dnl
AC_CHECK_FUNCS(strchr strrchr memchr memcpy memmove memset sysconf tzset \
- strftime setrlimit initgroups getgroups fstat gettimeofday)
+ strftime setrlimit initgroups getgroups fstat gettimeofday \
+ setlocale)
if test -z "$SKIP_SETRESUID"; then
AC_CHECK_FUNCS(setresuid, [SKIP_SETREUID=yes])
fi
#if TIME_WITH_SYS_TIME
# include <time.h>
#endif
+#ifdef HAVE_SETLOCALE
+# include <locale.h>
+#endif
#include <netinet/in.h>
#include <netdb.h>
#if defined(HAVE_GETPRPWNAM) && defined(HAVE_SET_AUTH_PARAMETERS)
#endif
extern char **environ;
+#ifdef HAVE_SETLOCALE
+ setlocale(LC_ALL, "C");
+#endif
+
Argv = argv;
if ((Argc = argc) < 1)
usage(1);