| 1 | AC_INIT([ariba], [0.2.1], [http://www.ariba-underlay.org])
|
---|
| 2 | AM_INIT_AUTOMAKE([-Wall -Werror foreign])
|
---|
| 3 | AC_CONFIG_SRCDIR([source/ariba/ariba.h])
|
---|
| 4 | AC_CONFIG_MACRO_DIR([m4])
|
---|
| 5 | AC_CONFIG_HEADER([source/ariba/config.h])
|
---|
| 6 |
|
---|
| 7 | AC_ARG_ENABLE(debug, [ --enable-debug Enable debug options], enable_debug=$enableval, enable_debug=no)
|
---|
| 8 | AM_CONDITIONAL(DEBUG, test "$enable_debug" = yes)
|
---|
| 9 |
|
---|
| 10 | AC_ARG_ENABLE(profiling, [ --enable-profiling Enable profiling], enable_profiling=$enableval, enable_profiling=no)
|
---|
| 11 | AM_CONDITIONAL(PROFILING, test "$enable_profiling" = yes)
|
---|
| 12 |
|
---|
| 13 | AC_ARG_ENABLE(simulation, [ --enable-simulation Enable simulation mode], enable_simulation=$enableval, enable_simulation=no)
|
---|
| 14 | AM_CONDITIONAL(OMNET, test "$enable_simulation" = yes)
|
---|
| 15 |
|
---|
| 16 | AC_ARG_ENABLE(doxygen, [ --enable-doxygen Enable doxygen documentation ], enable_doxygen=$enableval, enable_doxygen=no)
|
---|
| 17 | AM_CONDITIONAL(DOXYGEN, test "$enable_doxygen" = yes)
|
---|
| 18 |
|
---|
| 19 | AC_ARG_ENABLE(logcolors, [ --enable-logcolors Enable colorful logging], enable_logcolors=$enableval, enable_logcolors=no)
|
---|
| 20 | AM_CONDITIONAL(LOGCOLORS, test "$enable_logcolors" = yes)
|
---|
| 21 |
|
---|
| 22 | AC_PROG_LIBTOOL
|
---|
| 23 | AC_PROG_CXX
|
---|
| 24 | AC_PROG_CC
|
---|
| 25 | AC_PROG_INSTALL
|
---|
| 26 |
|
---|
| 27 | AC_LANG(C++)
|
---|
| 28 |
|
---|
| 29 | dnl Check for doxygen and features
|
---|
| 30 | AX_PROG_DOXYGEN
|
---|
| 31 |
|
---|
| 32 | dnl Check for libraries
|
---|
| 33 | AX_GMP
|
---|
| 34 | AX_LOG4CXX
|
---|
| 35 | AX_OPENSSL
|
---|
| 36 | AX_AVAHI
|
---|
| 37 |
|
---|
| 38 | dnl Check for boost
|
---|
| 39 | BOOST_REQUIRE([1.35])
|
---|
| 40 | BOOST_THREADS
|
---|
| 41 | BOOST_SYSTEM
|
---|
| 42 | BOOST_FOREACH
|
---|
| 43 | BOOST_REGEX
|
---|
| 44 |
|
---|
| 45 | dnl Check for maemo platform
|
---|
| 46 | AX_MAEMO_WITH_FIX
|
---|
| 47 |
|
---|
| 48 | AC_CONFIG_FILES([
|
---|
| 49 | Makefile
|
---|
| 50 | source/Makefile
|
---|
| 51 | source/ariba/Makefile
|
---|
| 52 | sample/Makefile
|
---|
| 53 | sample/pingpong/Makefile
|
---|
| 54 | docu/Makefile
|
---|
| 55 | docu/doxygen/Makefile
|
---|
| 56 | ])
|
---|
| 57 |
|
---|
| 58 | AC_OUTPUT
|
---|