source: ThirdParty/CodePatterns/configure.ac@ 9ac3d3

Candidate_v1.6.1
Last change on this file since 9ac3d3 was 4e8108, checked in by Frederik Heber <heber@…>, 8 years ago

Libtool consolidates and updates itself through LIBTOOL_DEPS for all packages.

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