1## 2## Copyright (C) 2008 Sourcefire Inc., All Rights Reserved. 3## 4## Please see the LICENSE file distributed with this source 5## code archive for information covering the modification and 6## redistribution of this file and binaries built from it. 7## 8 9AC_PREREQ([2.61]) 10m4_include([common_m4/versions.m4]) 11AC_INIT([archiveInflate], ARCHIVE_INFLATE_VERSION_NUMBER, [https://sourceforge.net/apps/trac/razorbacktm/], [archiveInflate]) 12AC_CONFIG_AUX_DIR([.]) 13AC_CONFIG_MACRO_DIR([m4]) 14AC_CONFIG_SRCDIR([src/archive.c]) 15AC_CONFIG_HEADERS([config.h]) 16AM_INIT_AUTOMAKE([foreign no-define tar-ustar]) 17 18# Pull in the checks for the build tools. 19m4_include([common_m4/build_tools.m4]) 20 21# Pull in the platform specific build/configure environment options. 22m4_include([common_m4/platform_flags.m4]) 23 24# Pull in the standard options for all components 25m4_include([common_m4/nugget_options.m4]) 26 27# Pull in the library requirements for a simple .so loadable nugget. 28m4_include([common_m4/nugget_simple_deps.m4]) 29 30case "$host" in 31 *-linux*) 32 PKG_CHECK_MODULES([ARCHIVE], [libarchive >= 2.7.902a]) 33 CFLAGS="$ARCHIVE_CFLAGS $CFALGS" 34 LIBS="$ARCHIVE_LIBS $LIBS" 35 ;; 36 *-freebsd*) 37 AC_CHECK_LIB([archive], [archive_read_new], [], [ARCHIVE="no"]) 38 AS_IF([test "x$ARCHIVE" = "xno"], 39 [AC_MSG_ERROR("archive library not found")] 40 ) 41 42 AC_CHECK_HEADERS([archive.h], [], [ARCHIVE_HEADER="no"]) 43 AS_IF([test "x$ARCHIVE_HEADER" = "xno"], 44 [AC_MSG_ERROR("archive header file not found")] 45 ) 46 47 ;; 48esac 49 50 51# Pull in the standard header and function checks. 52m4_include([common_m4/standard_headers_functions.m4]) 53 54# Pull in the compiler customisation options for different compilers. 55m4_include([common_m4/compiler_options.m4]) 56 57# Pull in the standard compiler and linker flags. 58m4_include([common_m4/cflags.m4]) 59 60# Pulling configuration for standard nugget substituions. 61m4_include([common_m4/nugget_subs.m4]) 62 63 64AC_CONFIG_FILES([ \ 65Makefile \ 66etc/Makefile \ 67m4/Makefile \ 68src/Makefile \ 69]) 70AC_OUTPUT 71