source: configure.ac@ c1e104

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

Set version to 1.3.2.

  • Library version is now 12:2:0, API version is 1.3.2.
  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[a80f419]1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
[c1e104]5AC_INIT([LibCodePatterns], [1.3.2], [heber@ins.uni-bonn.de], [libcodepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])
[a80f419]6AC_CONFIG_AUX_DIR(config)
[6d8dde]7AC_CONFIG_SRCDIR([src/codepatterns-config-main.cpp])
[315a1e]8AC_CONFIG_HEADERS([config.h libcodepatterns_config.h])
[a80f419]9AC_CONFIG_MACRO_DIR([m4])
10
[6309fd]11AM_INIT_AUTOMAKE([dist-bzip2 1.11 parallel-tests color-tests subdir-objects])
[a80f419]12
13# Checks for programs.
14AM_PATH_CPPUNIT(1.9.6)
15AC_PROG_CXX
16AC_PROG_INSTALL
17AC_PROG_MAKE_SET
[76379c]18
19# use doxygen
20DX_HTML_FEATURE(ON)
21DX_PS_FEATURE(OFF)
22DX_PDF_FEATURE(OFF)
[315a1e]23DX_INIT_DOXYGEN(libcodepatterns, Doxyfile, ${docdir})
[a80f419]24
25# use libtool
26LT_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
[c1e104]32AC_SUBST([CODEPATTERNS_SO_VERSION], [12:2:0])
33AC_SUBST([CODEPATTERNS_API_VERSION], [1.3.2])
[a80f419]34
35# Checks for libraries.
36# FIXME: Replace `main' with a function in `-ldl':
37AC_CHECK_LIB([dl], [main])
38
39# Boost libraries
[a0ddcf]40BOOST_REQUIRE([1.40])
[f5adb5]41BOOST_BIND
42BOOST_FUNCTION
43BOOST_ITERATOR
44BOOST_OPTIONAL
45BOOST_PREPROCESSOR
[a0ddcf]46BOOST_PROGRAM_OPTIONS
[a2392b]47BOOST_SERIALIZATION
[f5adb5]48BOOST_SMART_PTR
[a0ddcf]49BOOST_THREADS
[f5adb5]50BOOST_TOKENIZER
[a80f419]51
52# Checks for typedefs, structures, and compiler characteristics.
53AC_HEADER_STDBOOL
54AC_C_INLINE
55AC_TYPE_SIZE_T
[3f06bb]56AC_CHECK_HEADERS([time.h])
57AC_CHECK_HEADERS([sys/time.h])
[8e24ef]58AC_CHECK_HEADERS([sys/times.h])
[760f97c]59AC_CHECK_HEADERS([unistd.h])
[cc78ae]60AC_CXX_HAVE_VALARRAY
[a80f419]61
[3f06bb]62LIBRT=""
63AS_IF([test x"$ac_cv_header_time_h" = xyes],
64 AC_CHECK_LIB(rt, clock_gettime, [LIBRT="-lrt"])
65 AC_SUBST(LIBRT)
66)
67
[a80f419]68# Checks for library functions.
69AC_FUNC_MALLOC
[2c67a4]70AC_CHECK_FUNCS([memset])
[a80f419]71
[115378]72# -${CODEPATTERNS_API_VERSION}
[a80f419]73AC_CONFIG_FILES([
[315a1e]74 libcodepatterns.pc:libcodepatterns.pc.in])
[cdf2e4]75AC_CONFIG_FILES([
[315a1e]76 libcodepatterns-debug.pc:libcodepatterns-debug.pc.in])
[a80f419]77AC_CONFIG_FILES([
78 Makefile
79 doc/Makefile
80 src/Makefile
[3324cf]81 src/Helpers/Makefile
[9b8fa4]82 src/Observer/Makefile
[3324cf]83 src/Patterns/Makefile
84 src/unittests/Makefile
[a80f419]85 ])
86AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.