aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorAlan Brault <alan.brault@incruentatus.net>2010-12-07 20:05:47 -0500
committerAlan Brault <alan.brault@incruentatus.net>2010-12-07 20:05:47 -0500
commitcdd0832671d59b90e4a6947c43096057c0be1d53 (patch)
treed43f49581aac981a7f32d0ea3050dddb771f6c11 /configure.in
parent42f22b3aa32461423413aaee8335d420cdd484dd (diff)
downloadNetNuke2-cdd0832671d59b90e4a6947c43096057c0be1d53.tar.gz
- Alter CFLAGS to produce a more sane binary with less problems
- Fix libtool and linker LDFLAGS to ensure a static build - Add missing README required by GPL for libsysfs
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in35
1 files changed, 35 insertions, 0 deletions
diff --git a/configure.in b/configure.in
new file mode 100644
index 0000000..f042589
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,35 @@
+AC_PREREQ([2.66])
+AC_INIT([NetNuke], [2.0.2], [jhunkeler@gmail.com], [netnuke], [https://github.com/jhunkeler/NetNuke])
+AM_INIT_AUTOMAKE(1.11.1)
+
+AC_CONFIG_SRCDIR([src/netnuke.c])
+AC_CONFIG_HEADERS([config.h])
+
+# Check for programs.
+AC_PROG_CC_C99
+AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
+ [AC_MSG_ERROR([no C99 compiler found. Aborting.])])
+
+# Initializing libtool.
+AC_DISABLE_SHARED
+AC_PROG_LIBTOOL
+AC_SUBST(LIBTOOL_DEPS)
+LIBTOOL="$LIBTOOL --silent"
+
+# Checks for libraries.
+AC_CHECK_LIB([pthread], [pthread_create], [],
+ [AC_MSG_ERROR([required library pthread missing])])
+
+# Checks for header files.
+AC_CHECK_HEADERS_ONCE([fcntl.h stdlib.h string.h sys/ioctl.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_UID_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_CHECK_FUNCS_ONCE([memmove memset strerror strncasecmp])
+
+AC_CONFIG_FILES([Makefile libsysfs/Makefile src/Makefile])
+
+AC_OUTPUT