2 m4_esyscmd([./git-version-gen .tarball-version]),
3 [openbsc-devel@lists.openbsc.org])
5 AM_INIT_AUTOMAKE([dist-bzip2])
7 dnl kernel style compile messages
8 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
10 dnl checks for programs
17 AC_CONFIG_MACRO_DIR([m4])
19 dnl checks for header files
21 AC_CHECK_HEADERS(execinfo.h sys/select.h)
23 # The following test is taken from WebKit's webkit.m4
24 saved_CFLAGS="$CFLAGS"
25 CFLAGS="$CFLAGS -fvisibility=hidden "
26 AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
27 AC_COMPILE_IFELSE([char foo;],
28 [ AC_MSG_RESULT([yes])
29 SYMBOL_VISIBILITY="-fvisibility=hidden"],
31 CFLAGS="$saved_CFLAGS"
32 AC_SUBST(SYMBOL_VISIBILITY)
34 dnl Generate the output
35 AM_CONFIG_HEADER(config.h)
40 [Disable building talloc memory allocator]
42 [enable_talloc=0], [enable_talloc=1])
43 AM_CONDITIONAL(ENABLE_TALLOC, test "x$enable_talloc" = "x1")
48 [Disable support for dlopen plugins],
50 [enable_plugin=0], [enable_plugin=1])
51 AM_CONDITIONAL(ENABLE_PLUGIN, test "x$enable_plugin" = "x1")
56 [Disable building test programs]
58 [enable_tests=0], [enable_tests=1])
59 AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "x1")
64 [Disable building VTY telnet interface]
66 [enable_vty=0], [enable_vty=1])
67 AM_CONDITIONAL(ENABLE_VTY, test "x$enable_vty" = "x1")
69 AC_ARG_ENABLE(panic_infloop,
71 [--enable-panic-infloop],
72 [Trigger infinite loop on panic rather than fprintf/abort]
74 [panic_infloop=1], [panic_infloop=0])
75 if test "x$panic_infloop" = "x1"
77 AC_DEFINE([PANIC_INFLOOP],[1],[Use infinite loop on panic rather than fprintf/abort])
80 AC_ARG_ENABLE(bsc_fd_check,
82 [--enable-bsc-fd-check],
83 [Instrument bsc_register_fd to check that the fd is registered]
85 [fd_check=1], [fd_check=0])
86 if test "x$fd_check" = "x1"
88 AC_DEFINE([BSC_FD_CHECK],[1],[Instrument the bsc_register_fd])
91 AC_ARG_ENABLE(msgfile,
94 [Disable support for the msgfile],
96 [enable_msgfile=0], [enable_msgfile=1])
97 AM_CONDITIONAL(ENABLE_MSGFILE, test "x$enable_msgfile" = "x1")
104 include/osmocom/Makefile
105 include/osmocom/vty/Makefile
106 include/osmocom/codec/Makefile
107 include/osmocom/crypt/Makefile
108 include/osmocore/Makefile
109 include/osmocore/protocol/Makefile
117 tests/msgfile/Makefile