aboutsummaryrefslogtreecommitdiff
path: root/sysfsutils/configure.ac
diff options
context:
space:
mode:
authorAlan Brault <alan.brault@incruentatus.net>2010-12-06 19:51:27 -0500
committerAlan Brault <alan.brault@incruentatus.net>2010-12-06 19:51:27 -0500
commit5cd0319f34e5f7bcfd867d4a3a3d2707727b4757 (patch)
tree1680e6e6d1c3d8fa0d9a2062ed4599b961b174d1 /sysfsutils/configure.ac
parent4507e17c12b952c02160ec30a16df66b8c9cf10d (diff)
downloadNetNuke2-5cd0319f34e5f7bcfd867d4a3a3d2707727b4757.tar.gz
Bundle sysfsutils for portability reasons
Diffstat (limited to 'sysfsutils/configure.ac')
-rw-r--r--sysfsutils/configure.ac54
1 files changed, 54 insertions, 0 deletions
diff --git a/sysfsutils/configure.ac b/sysfsutils/configure.ac
new file mode 100644
index 0000000..ed801c0
--- /dev/null
+++ b/sysfsutils/configure.ac
@@ -0,0 +1,54 @@
+# Process this file with autoconf to produce a configure script.
+AC_INIT(sysfsutils, 2.1.0, linux-diag-devel@lists.sourceforge.net)
+AM_INIT_AUTOMAKE
+AC_CONFIG_SRCDIR([config.h.in])
+AM_CONFIG_HEADER([config.h])
+
+# Checks for KLIBC support (should be before AC_PROG_LIBTOOL and AC_PROG_CC)
+AC_CHECK_KLIBC
+
+if test "X$KLIBC" == Xyes; then
+ # Should disable/enable building of shared libraries ... I am open to better
+ # suggestions though (AC_DISABLE_SHARED and co do not do the right thing in
+ # a situation like this that its runtime dependent) ...
+ enable_shared="no"
+ EXTRA_CFLAGS=
+else
+ # These ones make KLIBC compiles very loud
+ EXTRA_CFLAGS="-Wshadow -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
+fi
+AM_CONDITIONAL([KLIBC],[test "X$KLIBC" == Xyes])
+AC_SUBST([EXTRA_CFLAGS])
+
+# Checks for LIBTOOL
+AC_PROG_LIBTOOL
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
+AC_PROG_RANLIB
+AC_PROG_AWK
+
+# Checks for header files.
+AC_HEADER_DIRENT
+AC_HEADER_STDC
+AC_CHECK_HEADERS([fcntl.h malloc.h stdlib.h string.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_C_INLINE
+AC_TYPE_SIZE_T
+
+# Checks for library functions.
+AC_FUNC_LSTAT
+AC_FUNC_MALLOC
+AC_FUNC_STAT
+AC_CHECK_FUNCS([bzero isascii memset strchr strerror strrchr strstr strtol])
+
+AC_CONFIG_FILES([Makefile
+ lib/Makefile
+ cmd/Makefile
+ test/Makefile])
+AC_OUTPUT