source: configure.ac @ 19be896

abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change on this file since 19be896 was 19be896, checked in by Mike Ryan <mikeryan@…>, 14 years ago

version everything to 0.1.0

  • Property mode set to 100644
File size: 2.0 KB
Line 
1AC_INIT([libabac], [0.1.0], [mikeryan@ISI.EDU])
2AC_CONFIG_SRCDIR([libabac/abac_role.c])
3AM_INIT_AUTOMAKE([foreign subdir-objects])
4LT_INIT
5
6AC_CONFIG_MACRO_DIR([m4])
7
8# Checks for programs.
9AC_PROG_CXX
10AC_PROG_CC
11AC_PROG_LIBTOOL
12
13AC_ARG_ENABLE(debug,
14    [AC_HELP_STRING([--enable-debug], [build with debug symbols])],
15    [CFLAGS+="-g "],[])
16
17# Checks for libraries.
18AC_ARG_WITH([strongswan],
19    [AS_HELP_STRING([--with-strongswan=PATH], [location of strongswan-4.4.0 source tree])],
20    [LIBSTRONGSWAN_source=$withval],
21    [AC_ERROR([path to strongswan-4.4.0 source tree required])])
22test -d $LIBSTRONGSWAN_source || AC_ERROR([strongswan source dir not found. Don't use ~, use \$HOME.])
23AC_SUBST([LIBSTRONGSWAN_source])
24
25# this is so wrong
26libstrongswan_plugins=$(grep libstrongswan_plugins $LIBSTRONGSWAN_source/Makefile | awk -F= '{ print $2 }')
27test -z "$libstrongswan_plugins" && AC_ERROR([Can't find libstrongswan plugins. Make sure you've run ./configure --enable-monolithic in the strongswan source tree])
28AC_SUBST(libstrongswan_plugins)
29
30# Checks for header files.
31AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h])
32
33# Checks for typedefs, structures, and compiler characteristics.
34AC_HEADER_STDBOOL
35AC_TYPE_SIZE_T
36AC_TYPE_UINT16_T
37AC_TYPE_UINT32_T
38AC_TYPE_UINT8_T
39AC_CHECK_TYPES([ptrdiff_t])
40
41# Checks for library functions.
42AC_FUNC_MALLOC
43AC_CHECK_FUNCS([atexit memset strchr strdup])
44
45# snagged from strongswan, required
46AC_CHECK_FUNC(
47        [register_printf_specifier],
48        [AC_DEFINE(HAVE_PRINTF_SPECIFIER)],
49        [AC_CHECK_FUNC(
50                [register_printf_function],
51                [AC_DEFINE(HAVE_PRINTF_FUNCTION)],
52                [
53                        AC_MSG_NOTICE([printf does not support custom format specifiers!])
54                        vstr=true
55                ]
56        )]
57)
58
59if test x$vstr = xtrue; then
60        AC_HAVE_LIBRARY([vstr],[LIBS="$LIBS"],[AC_MSG_ERROR([Vstr string library not found])])
61        AC_DEFINE(USE_VSTR)
62fi
63
64AC_CONFIG_FILES([Makefile])
65AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.