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