2 dnl Process this file with autoconf to produce a configure script.-
7 FULL_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL
8 if test x$MY_PATCH_LEVEL != x; then
9 FULL_VERSION=$FULL_VERSION.$MY_PATCH_LEVEL
11 AM_INIT_AUTOMAKE(flower, $FULL_VERSION)
17 # turn off shared libraries by default (may be enabled using --enable-shared)
26 AC_ARG_ENABLE(printing,
27 [ enable-printing turn on debug printing. Default: off],
28 [printing_b=$enableval])
30 AC_ARG_ENABLE(checking,
31 [ enable-checking set runtime checks (assert calls). Default: on],
32 [checking_b=$enableval] )
34 AC_ARG_ENABLE(optimise,
35 [ enable-optimise use maximal speed optimisations. Default: off],
36 [optimise_b=$enableval])
38 AC_ARG_ENABLE(profiling,
39 [ enable-profiling compile with gprof support. Default: off],
40 [profile_b=$enableval])
42 if test $printing_b = no; then
46 if test $checking_b = no; then
50 if test $optimise_b = yes; then
51 # DEFINES="$DEFINES -finline-functions -O2 -DSTRING_UTILS_INLINED"
52 AC_DEFINE(STRINGS_UTILS_INLINED)
55 # oeps, broken for now
56 if test $profile_b = yes; then
58 DEFINES="$DEFINES -pg"
64 MODULE_CXXFLAGS="$MODULE_CXXFLAGS -D_REENTRANT"
66 AC_SUBST(MODULE_CXXFLAGS)
67 AC_SUBST(MODULE_LDFLAGS)
70 # AC_SUBST(FULL_VERSION)
71 # AC_SUBST(MAJOR_VERSION)
72 # AC_SUBST(MINOR_VERSION)
73 # AC_SUBST(PATCH_LEVEL)
74 # AC_SUBST(MY_PATCH_LEVEL)
77 # **Never** try to set library version numbers so that they correspond
78 # to the release number of your package. This is an abuse that only
79 # fosters misunderstanding of the purpose of library versions.
82 # CURRENT=$MINOR_VERSION
83 CURRENT=`expr $MINOR_VERSION + 1`
84 # AGE=$(expr $MAJOR_VERSION + 1)
91 AC_PATH_PROG(PERL, perl, error)
95 AC_CHECK_FUNCS(memmem snprintf )
97 AC_DEFINE_UNQUOTED(MODULE_VERSION, "${FULL_VERSION}")
100 AM_CONFIG_HEADER(config.hh:config.hh.in)
101 AC_OUTPUT(Makefile include/Makefile test/Makefile)