| 1 | # -*- Autoconf -*-
|
|---|
| 2 | # Process this file with autoconf to produce a configure script.
|
|---|
| 3 |
|
|---|
| 4 | AC_PREREQ([2.65])
|
|---|
| 5 | AC_INIT([CodePatterns], [1.0.12], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])
|
|---|
| 6 | AC_CONFIG_AUX_DIR(config)
|
|---|
| 7 | AC_CONFIG_SRCDIR([src/Patterns/Singleton_impl.hpp])
|
|---|
| 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])
|
|---|
| 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 | AM_MISSING_PROG([DOXYGEN], [doxygen])
|
|---|
| 19 |
|
|---|
| 20 | # use libtool
|
|---|
| 21 | LT_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
|
|---|
| 27 | AC_SUBST([CODEPATTERNS_SO_VERSION], [6:0:0])
|
|---|
| 28 | AC_SUBST([CODEPATTERNS_API_VERSION], [1.0.12])
|
|---|
| 29 |
|
|---|
| 30 | # Checks for libraries.
|
|---|
| 31 | # FIXME: Replace `main' with a function in `-ldl':
|
|---|
| 32 | AC_CHECK_LIB([dl], [main])
|
|---|
| 33 |
|
|---|
| 34 | # Boost libraries
|
|---|
| 35 | AX_BOOST_BASE([1.40])
|
|---|
| 36 | AX_BOOST_THREAD
|
|---|
| 37 | AX_BOOST_PROGRAM_OPTIONS
|
|---|
| 38 |
|
|---|
| 39 | # Checks for typedefs, structures, and compiler characteristics.
|
|---|
| 40 | AC_HEADER_STDBOOL
|
|---|
| 41 | AC_C_INLINE
|
|---|
| 42 | AC_TYPE_SIZE_T
|
|---|
| 43 |
|
|---|
| 44 | # Checks for library functions.
|
|---|
| 45 | AC_FUNC_MALLOC
|
|---|
| 46 | AC_CHECK_FUNCS([floor memset])
|
|---|
| 47 |
|
|---|
| 48 | # -${CODEPATTERNS_API_VERSION}
|
|---|
| 49 | AC_CONFIG_FILES([
|
|---|
| 50 | CodePatterns.pc:CodePatterns.pc.in])
|
|---|
| 51 | AC_CONFIG_FILES([
|
|---|
| 52 | CodePatterns-debug.pc:CodePatterns-debug.pc.in])
|
|---|
| 53 | AC_CONFIG_FILES([doc/Doxyfile:doc/Doxyfile.in])
|
|---|
| 54 | AC_CONFIG_FILES([
|
|---|
| 55 | Makefile
|
|---|
| 56 | doc/Makefile
|
|---|
| 57 | src/Makefile
|
|---|
| 58 | ])
|
|---|
| 59 | AC_CONFIG_FILES([
|
|---|
| 60 | src/Patterns/unittests/Makefile
|
|---|
| 61 | src/unittests/Makefile
|
|---|
| 62 | ])
|
|---|
| 63 | AC_OUTPUT
|
|---|