source: ThirdParty/CodePatterns/configure.ac@ f01bb3

Candidate_v1.7.0 stable
Last change on this file since f01bb3 was f01bb3, checked in by Frederik Heber <frederik.heber@…>, 5 years ago

CppUnit detected by pkg-config as fallback.

  • ubunntu 18.04 no longer has cppunit-config but relies on pkg-config to detect compilation flags.
  • Property mode set to 100644
File size: 2.4 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,
15 [AM_CONDITIONAL([CPPUNIT], [true])],
16 [
17 PKG_CHECK_MODULES(CPPUNIT, [cppunit >= 1.9.6],
18 [AM_CONDITIONAL([CPPUNIT], [true])],
19 [AM_CONDITIONAL([CPPUNIT], [false])]
20 )
21 ]
22)
23AC_PROG_CXX
24AC_PROG_INSTALL
25AC_PROG_MAKE_SET
26
27# use doxygen
28DX_HTML_FEATURE(ON)
29DX_PS_FEATURE(OFF)
30DX_PDF_FEATURE(OFF)
31DX_INIT_DOXYGEN(libcodepatterns, Doxyfile, ${docdir})
32
33# use libtool
34LT_INIT([static])
35AC_SUBST([LIBTOOL_DEPS])
36
37# Define these substitions here to keep all version information in one place.
38# For information on how to properly maintain the library version information,
39# refer to the libtool manual, section "Updating library version information":
40# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
41AC_SUBST([CODEPATTERNS_SO_VERSION], [12:2:0])
42AC_SUBST([CODEPATTERNS_API_VERSION], [1.3.2])
43
44# Checks for libraries.
45# FIXME: Replace `main' with a function in `-ldl':
46AC_CHECK_LIB([dl], [main])
47
48# Boost libraries
49BOOST_REQUIRE([1.40])
50BOOST_BIND
51BOOST_FUNCTION
52BOOST_ITERATOR
53BOOST_OPTIONAL
54BOOST_PREPROCESSOR
55BOOST_PROGRAM_OPTIONS
56BOOST_SERIALIZATION
57BOOST_SMART_PTR
58BOOST_THREADS
59BOOST_TOKENIZER
60
61# Checks for typedefs, structures, and compiler characteristics.
62AC_HEADER_STDBOOL
63AC_C_INLINE
64AC_TYPE_SIZE_T
65AC_CHECK_HEADERS([time.h])
66AC_CHECK_HEADERS([sys/time.h])
67AC_CHECK_HEADERS([sys/times.h])
68AC_CHECK_HEADERS([unistd.h])
69AC_CXX_HAVE_VALARRAY
70
71LIBRT=""
72AS_IF([test x"$ac_cv_header_time_h" = xyes],
73 AC_CHECK_LIB(rt, clock_gettime, [LIBRT="-lrt"])
74 AC_SUBST(LIBRT)
75)
76
77# Checks for library functions.
78AC_FUNC_MALLOC
79AC_CHECK_FUNCS([memset])
80
81# -${CODEPATTERNS_API_VERSION}
82AC_CONFIG_FILES([
83 libcodepatterns.pc:libcodepatterns.pc.in])
84AC_CONFIG_FILES([
85 libcodepatterns-debug.pc:libcodepatterns-debug.pc.in])
86AC_CONFIG_FILES([
87 Makefile
88 doc/Makefile
89 src/Makefile
90 src/Helpers/Makefile
91 src/Observer/Makefile
92 src/Patterns/Makefile
93 src/unittests/Makefile
94 ])
95AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.