source: configure.ac @ 4f79997

abac0-leakabac0-mei
Last change on this file since 4f79997 was 4f79997, checked in by Mei <mei@…>, 11 years ago

1) add a new scaling test -haystack/ralphs
2) tweak some libabac code here and there

  • Property mode set to 100644
File size: 2.5 KB
Line 
1AC_INIT([ABAC], [0.1.5], [faber@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
13# Explicitly hunt up perl
14AC_CHECK_PROGS(PERL, perl)
15
16# for python
17AM_PATH_PYTHON
18
19# for openssl
20AX_CHECK_OPENSSL([], [AC_MSG_ERROR([openssl is required to build pacakge])] )
21
22# for xmlsec1
23AX_CHECK_XMLSEC1([], [AC_MSG_ERROR([xmlsec1 is required to build pacakge])] )
24# for xml2
25AX_CHECK_XML2([], [AC_MSG_ERROR([xml2 is required to build pacakge])] )
26
27# for swig
28AX_PKG_SWIG(1.3.17, [], [AC_MSG_ERROR([SWIG is required to build package])] )
29AX_SWIG_ENABLE_CXX
30AX_SWIG_PYTHON
31
32AC_ARG_ENABLE(debug,
33    [AC_HELP_STRING([--enable-debug], [build with debug symbols])],
34    [CFLAGS+="-g "],[])
35
36# Checks for libraries.
37AC_ARG_WITH(
38    [site-perl],
39    [AS_HELP_STRING([--with-site-perl=DIR],
40                   [directory in which to install perl modules])],
41    [SITE_PERL="$withval"], [SITE_PERL=""])
42   
43
44# Ask perl for a likely site_perl directory.  If the user has already specified
45# it using --with-site-perl, use that value.  NB, this does not respect prefix,
46# so users wishing to do a local install must use --with-site-perl
47AC_MSG_CHECKING(for site_perl directory)
48if test -z "$SITE_PERL"; then
49        SITE_PERL=`$PERL -e 'print((grep(/site_perl/ && !m#/mach#, @INC))[0], "\n");'`
50fi
51AC_MSG_RESULT($SITE_PERL)
52AC_SUBST(SITE_PERL)
53
54# Checks for header files.
55AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h readpassphrase.h paths.h])
56
57# Checks for typedefs, structures, and compiler characteristics.
58AC_HEADER_STDBOOL
59AC_TYPE_SIZE_T
60AC_TYPE_UINT16_T
61AC_TYPE_UINT32_T
62AC_TYPE_UINT8_T
63AC_CHECK_TYPES([ptrdiff_t])
64
65AC_CHECK_DECL([_PATH_TTY],[],AC_DEFINE_UNQUOTED([_PATH_TTY],"/dev/tty",[Define to tty device node path]),[
66#ifdef HAVE_PATHS_H
67#  include <paths.h>
68#endif
69])
70
71# Checks for library functions.
72AC_FUNC_MALLOC
73AC_CHECK_FUNCS([atexit memset strchr strdup readpassphrase])
74
75AC_CONFIG_FILES([Makefile tests/Makefile tests/creddy_tests/Makefile tests/creddy_prover_tests/Makefile tests/attr_tests/Makefile tests/python_tests/Makefile tests/scaling_tests/Makefile tests/scaling_tests/daisychain/Makefile tests/scaling_tests/daisychain/likes_python/Makefile tests/scaling_tests/haystack/Makefile tests/scaling_tests/haystack/ralphs_prover/Makefile tests/example_scripts/Makefile tests/example_scripts/wiki/Makefile tests/example_scripts/c/Makefile tests/example_scripts/python/Makefile tests/example_scripts/perl/Makefile])
76AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.