source: configure.ac@ cdf2e4

Last change on this file since cdf2e4 was cdf2e4, checked in by Frederik Heber <heber@…>, 15 years ago

From now on we create two libs, one with and one without debug.

  • We specifically create two libs, as the debug one is not just the old lib but with some debug symbols. MemDebug, Asserts and ObserverLog implementations are clearly missing in these. This justifies to have two distinct (in an odd way) libraries.
  • additional CodePattern-debug.pc file
  • extended ax_codepatterns.m4 macro to have debug as an extra argument
  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[a80f419]1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
[cdf2e4]5AC_INIT([CodePatterns], [1.0.1], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])
[a80f419]6AC_CONFIG_AUX_DIR(config)
7AC_CONFIG_SRCDIR([src/Patterns/Singleton_impl.hpp])
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])
12
13# Checks for programs.
14AM_PATH_CPPUNIT(1.9.6)
15AC_PROG_CXX
16AC_PROG_INSTALL
17AC_PROG_MAKE_SET
18AM_MISSING_PROG([DOXYGEN], [doxygen])
19
20# use libtool
21LT_INIT([disable-static])
22
23# Define these substitions here to keep all version information in one place.
24# For information on how to properly maintain the library version information,
25# refer to the libtool manual, section "Updating library version information":
26# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
[cdf2e4]27AC_SUBST([CODEPATTERNS_SO_VERSION], [1:0:1])
28AC_SUBST([CODEPATTERNS_API_VERSION], [1.0.1])
[a80f419]29
30# Checks for libraries.
31# FIXME: Replace `main' with a function in `-ldl':
32AC_CHECK_LIB([dl], [main])
33
34# Boost libraries
35AX_BOOST_BASE([1.40])
36AX_BOOST_THREAD
[115378]37AX_BOOST_PROGRAM_OPTIONS
[a80f419]38
39# Checks for typedefs, structures, and compiler characteristics.
40AC_HEADER_STDBOOL
41AC_C_INLINE
42AC_TYPE_SIZE_T
43
44# Checks for library functions.
45AC_FUNC_MALLOC
46AC_CHECK_FUNCS([floor memset])
47
[115378]48# -${CODEPATTERNS_API_VERSION}
[a80f419]49AC_CONFIG_FILES([
[115378]50 CodePatterns.pc:CodePatterns.pc.in])
[cdf2e4]51AC_CONFIG_FILES([
52 CodePatterns-debug.pc:CodePatterns-debug.pc.in])
[a80f419]53AC_CONFIG_FILES([
54 Makefile
55 doc/Makefile
56 src/Makefile
57 ])
58AC_CONFIG_FILES([
59 src/Patterns/unittests/Makefile
60 src/unittests/Makefile
61 ])
62AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.