diff options
author | Stef Walter <stef@memberwebs.com> | 2006-03-29 22:37:35 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-03-29 22:37:35 +0000 |
commit | 9f4eac6af5c6a145e3fa3e1545bc0e3bc6774ee8 (patch) | |
tree | 47094943b585b8e3ab8d391a9166c0289ce5f509 /configure.in |
Initial import
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/configure.in b/configure.in new file mode 100644 index 0000000..eae4aaa --- /dev/null +++ b/configure.in @@ -0,0 +1,40 @@ +# Process this file with autoconf to produce a configure script. +AC_INIT(bsnmp-ping, 0.1, nielsen@memberwebs.com) +AM_INIT_AUTOMAKE(bsnmp-ping, 0.1) + +AC_CONFIG_SRCDIR([module/bsnmp-ping.c]) +AM_CONFIG_HEADER([config.h]) + +LDFLAGS="$LDFLAGS -L/usr/local/lib" +CFLAGS="$CFLAGS -I/usr/local/include" + +# Checks for programs. +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_LIBTOOL + +# Debug mode +AC_ARG_ENABLE(debug, + AC_HELP_STRING([--enable-debug], + [Compile binaries in debug mode])) + +if test "$enable_debug" = "yes"; then + CFLAGS="$CFLAGS -g -O0 -Wall" + AC_DEFINE_UNQUOTED(_DEBUG, 1, [In debug mode]) + echo "enabling debug compile mode" +fi + +# Checks for header files. +AC_HEADER_STDC + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_TYPE_SIZE_T + +# Checks for library functions. +AC_FUNC_MALLOC +AC_FUNC_MEMCMP +dnl TODO AC_CHECK_FUNCS([atexit inet_ntoa inet_pton memset strerror strspn strtol]) + +AC_CONFIG_FILES([Makefile module/Makefile]) +AC_OUTPUT |