ZIP = @ZIP@
endif
-# Settings
+# Settings
+SYSMACROS = @SYSMACROS@
+ifeq ($(SYSMACROS),y)
+ DFLAGS += -DHAVE_SYS_SYSMACROS_H
+endif
NLS = @NLS@
ifeq ($(NLS),y)
REQUIRE_NLS = -DUSE_NLS -DPACKAGE=\"$(PACKAGE)\" -DLOCALEDIR=\"$(NLS_DIR)\"
#include <time.h>
#include <sched.h> /* For __CPU_SETSIZE */
+#include <limits.h>
+
+#ifdef HAVE_SYS_SYSMACROS_H
+/* Needed on some non-glibc environments */
+#include <sys/sysmacros.h>
+#endif
+
#include "rd_stats.h"
/*
sa_dir
SA_LIB_DIR
sa_lib_dir
+SYSMACROS
INITD_DIR
INIT_DIR
RC_DIR
echo .
HAVE_LIBINTL_H=
HAVE_LOCALE_H=
+HAVE_SYS_SYSMACROS_H=
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
$as_echo_n "checking for ANSI C header files... " >&6; }
if ${ac_cv_header_stdc+:} false; then :
done
+for ac_header in sys/sysmacros.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_SYS_SYSMACROS_H 1
+_ACEOF
+ HAVE_SYS_SYSMACROS_H=1
+fi
+
+done
+
echo .
echo Check typedefs, structures and compiler characteristics:
+if test $HAVE_SYS_SYSMACROS_H; then
+ SYSMACROS="y"
+else
+ SYSMACROS="n"
+fi
+
+
# Set sadc directory
if test $prefix != "NONE"; then
AuxPrefix=$prefix
echo .
HAVE_LIBINTL_H=
HAVE_LOCALE_H=
+HAVE_SYS_SYSMACROS_H=
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_CHECK_HEADERS(ctype.h)
AC_CHECK_HEADERS(sys/file.h)
AC_CHECK_HEADERS(sys/ioctl.h)
AC_CHECK_HEADERS(sys/stat.h)
+AC_CHECK_HEADERS(sys/sysmacros.h, HAVE_SYS_SYSMACROS_H=1)
echo .
echo Check typedefs, structures and compiler characteristics:
AC_SUBST(INIT_DIR)
AC_SUBST(INITD_DIR)
+if test $HAVE_SYS_SYSMACROS_H; then
+ SYSMACROS="y"
+else
+ SYSMACROS="n"
+fi
+AC_SUBST(SYSMACROS)
+
# Set sadc directory
if test $prefix != "NONE"; then
AuxPrefix=$prefix