1 | # -*- Autoconf -*-
|
---|
2 | # Process this file with autoconf to produce a configure script.
|
---|
3 |
|
---|
4 | AC_PREREQ([2.65])
|
---|
5 | AC_INIT([LibCodePatterns], [1.3.2], [heber@ins.uni-bonn.de], [libcodepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])
|
---|
6 | AC_CONFIG_AUX_DIR(config)
|
---|
7 | AC_CONFIG_SRCDIR([src/codepatterns-config-main.cpp])
|
---|
8 | AC_CONFIG_HEADERS([config.h libcodepatterns_config.h])
|
---|
9 | AC_CONFIG_MACRO_DIR([m4])
|
---|
10 |
|
---|
11 | AM_INIT_AUTOMAKE([dist-bzip2 1.11 parallel-tests color-tests subdir-objects])
|
---|
12 |
|
---|
13 | # Checks for programs.
|
---|
14 | AM_PATH_CPPUNIT(1.9.6)
|
---|
15 | AC_PROG_CXX
|
---|
16 | AC_PROG_INSTALL
|
---|
17 | AC_PROG_MAKE_SET
|
---|
18 |
|
---|
19 | # use doxygen
|
---|
20 | DX_HTML_FEATURE(ON)
|
---|
21 | DX_PS_FEATURE(OFF)
|
---|
22 | DX_PDF_FEATURE(OFF)
|
---|
23 | DX_INIT_DOXYGEN(libcodepatterns, Doxyfile, ${docdir})
|
---|
24 |
|
---|
25 | # use libtool
|
---|
26 | LT_INIT([disable-static])
|
---|
27 |
|
---|
28 | # Define these substitions here to keep all version information in one place.
|
---|
29 | # For information on how to properly maintain the library version information,
|
---|
30 | # refer to the libtool manual, section "Updating library version information":
|
---|
31 | # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
|
---|
32 | AC_SUBST([CODEPATTERNS_SO_VERSION], [12:2:0])
|
---|
33 | AC_SUBST([CODEPATTERNS_API_VERSION], [1.3.2])
|
---|
34 |
|
---|
35 | # Checks for libraries.
|
---|
36 | # FIXME: Replace `main' with a function in `-ldl':
|
---|
37 | AC_CHECK_LIB([dl], [main])
|
---|
38 |
|
---|
39 | # Boost libraries
|
---|
40 | BOOST_REQUIRE([1.40])
|
---|
41 | BOOST_BIND
|
---|
42 | BOOST_FUNCTION
|
---|
43 | BOOST_ITERATOR
|
---|
44 | BOOST_OPTIONAL
|
---|
45 | BOOST_PREPROCESSOR
|
---|
46 | BOOST_PROGRAM_OPTIONS
|
---|
47 | BOOST_SERIALIZATION
|
---|
48 | BOOST_SMART_PTR
|
---|
49 | BOOST_THREADS
|
---|
50 | BOOST_TOKENIZER
|
---|
51 |
|
---|
52 | # Checks for typedefs, structures, and compiler characteristics.
|
---|
53 | AC_HEADER_STDBOOL
|
---|
54 | AC_C_INLINE
|
---|
55 | AC_TYPE_SIZE_T
|
---|
56 | AC_CHECK_HEADERS([time.h])
|
---|
57 | AC_CHECK_HEADERS([sys/time.h])
|
---|
58 | AC_CHECK_HEADERS([sys/times.h])
|
---|
59 | AC_CHECK_HEADERS([unistd.h])
|
---|
60 | AC_CXX_HAVE_VALARRAY
|
---|
61 |
|
---|
62 | LIBRT=""
|
---|
63 | AS_IF([test x"$ac_cv_header_time_h" = xyes],
|
---|
64 | AC_CHECK_LIB(rt, clock_gettime, [LIBRT="-lrt"])
|
---|
65 | AC_SUBST(LIBRT)
|
---|
66 | )
|
---|
67 |
|
---|
68 | # Checks for library functions.
|
---|
69 | AC_FUNC_MALLOC
|
---|
70 | AC_CHECK_FUNCS([memset])
|
---|
71 |
|
---|
72 | # -${CODEPATTERNS_API_VERSION}
|
---|
73 | AC_CONFIG_FILES([
|
---|
74 | libcodepatterns.pc:libcodepatterns.pc.in])
|
---|
75 | AC_CONFIG_FILES([
|
---|
76 | libcodepatterns-debug.pc:libcodepatterns-debug.pc.in])
|
---|
77 | AC_CONFIG_FILES([
|
---|
78 | Makefile
|
---|
79 | doc/Makefile
|
---|
80 | src/Makefile
|
---|
81 | src/Helpers/Makefile
|
---|
82 | src/Observer/Makefile
|
---|
83 | src/Patterns/Makefile
|
---|
84 | src/unittests/Makefile
|
---|
85 | ])
|
---|
86 | AC_OUTPUT
|
---|