| 1 | AC_INIT([ariba], [0.7.1], [http://www.ariba-underlay.org]) |
|---|
| 2 | AM_INIT_AUTOMAKE([-Wall 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_ARG_ENABLE(bluetooth, [ --enable-bluetooth Enable bluetooth transport [default=yes]], enable_bluetooth=$enableval, enable_bluetooth=yes) |
|---|
| 23 | |
|---|
| 24 | AC_PROG_LIBTOOL |
|---|
| 25 | AC_PROG_CXX |
|---|
| 26 | AC_PROG_CC |
|---|
| 27 | AC_PROG_INSTALL |
|---|
| 28 | |
|---|
| 29 | AC_LANG(C++) |
|---|
| 30 | |
|---|
| 31 | dnl Check for doxygen and features |
|---|
| 32 | AX_PROG_DOXYGEN |
|---|
| 33 | |
|---|
| 34 | dnl Check for libraries |
|---|
| 35 | AX_GMP |
|---|
| 36 | AX_LOG4CXX |
|---|
| 37 | AX_OPENSSL |
|---|
| 38 | AX_AVAHI |
|---|
| 39 | |
|---|
| 40 | if test "$enable_bluetooth" = "yes"; then |
|---|
| 41 | AX_BLUETOOTH |
|---|
| 42 | fi |
|---|
| 43 | |
|---|
| 44 | dnl Check for boost |
|---|
| 45 | BOOST_REQUIRE([1.35]) |
|---|
| 46 | BOOST_THREADS |
|---|
| 47 | BOOST_SYSTEM |
|---|
| 48 | BOOST_FOREACH |
|---|
| 49 | BOOST_REGEX |
|---|
| 50 | |
|---|
| 51 | dnl Check for maemo platform |
|---|
| 52 | AX_MAEMO |
|---|
| 53 | |
|---|
| 54 | AC_CONFIG_FILES([ |
|---|
| 55 | Makefile |
|---|
| 56 | source/Makefile |
|---|
| 57 | source/ariba/Makefile |
|---|
| 58 | sample/Makefile |
|---|
| 59 | sample/pingpong/Makefile |
|---|
| 60 | sample/testdht/Makefile |
|---|
| 61 | docu/Makefile |
|---|
| 62 | docu/doxygen/Makefile |
|---|
| 63 | ]) |
|---|
| 64 | |
|---|
| 65 | AC_OUTPUT |
|---|