File: configure.ac

package info (click to toggle)
libevocosm 4.0.2-3.1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,800 kB
  • ctags: 582
  • sloc: sh: 10,143; cpp: 2,939; makefile: 118
file content (56 lines) | stat: -rw-r--r-- 1,512 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
AC_INIT(libevocosm/evocosm.h)
AC_CONFIG_MACRO_DIR([m4])

GENERIC_LIBRARY_NAME=libevocosm

#release versioning
GENERIC_MAJOR_VERSION=4
GENERIC_MINOR_VERSION=0
GENERIC_MICRO_VERSION=2

#shared library versioning
GENERIC_LIBRARY_VERSION=4:0:0

AC_SUBST(GENERIC_LIBRARY_VERSION)

PACKAGE=$GENERIC_LIBRARY_NAME
AC_SUBST(GENERIC_LIBRARY_NAME)

GENERIC_VERSION=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION.$GENERIC_MICRO_VERSION
GENERIC_RELEASE=$GENERIC_MAJOR_VERSION.$GENERIC_MINOR_VERSION
AC_SUBST(GENERIC_RELEASE)
AC_SUBST(GENERIC_VERSION)

VERSION=$GENERIC_VERSION

AM_INIT_AUTOMAKE($PACKAGE, $VERSION, [no-define dist-bzip2 dist-zip])

AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AM_PROG_LIBTOOL
AM_SANITY_CHECK
AC_LANG_CPLUSPLUS
AC_HEADER_STDC
AC_HEADER_STDBOOL
AC_CHECK_HEADERS(stdint.h unistd.h fcntl.h)
AC_CHECK_LIB(brahe, brahe_prng_init)
AC_CHECK_HEADER(prng.h)

AC_ARG_ENABLE([docgen],
              AS_HELP_STRING([--enable-docgen], [generate documentation with Doxygen]),
              [docgen=$enableval],
              [docgen=no])

if test "x$docgen" = "xyes"
then
    AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false)
        if test $HAVE_DOXYGEN = "false"; then
            AC_MSG_WARN([*** doxygen not found, code documentation will not be built])
        fi
    AM_CONDITIONAL(HAVE_DOXYGEN, $HAVE_DOXYGEN)
else
    AM_CONDITIONAL(HAVE_DOXYGEN, "false")
fi

AC_OUTPUT(Makefile libevocosm.pc libevocosm/Makefile examples/function_optimization/Makefile examples/prisoners_dilemma/Makefile docs/Makefile)