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 sys/socket.h syslog.h ctype.h)
23 AC_PATH_PROG(DOXYGEN,doxygen,false)
24 AM_CONDITIONAL(HAVE_DOXYGEN, test $DOXYGEN != false)
26 # The following test is taken from WebKit's webkit.m4
27 saved_CFLAGS="$CFLAGS"
28 CFLAGS="$CFLAGS -fvisibility=hidden "
29 AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
30 AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
31 [ AC_MSG_RESULT([yes])
32 SYMBOL_VISIBILITY="-fvisibility=hidden"],
34 CFLAGS="$saved_CFLAGS"
35 AC_SUBST(SYMBOL_VISIBILITY)
37 dnl Generate the output
38 AM_CONFIG_HEADER(config.h)
43 [Disable building talloc memory allocator]
45 [enable_talloc=0], [enable_talloc=1])
46 AM_CONDITIONAL(ENABLE_TALLOC, test "x$enable_talloc" = "x1")
51 [Disable support for dlopen plugins],
53 [enable_plugin=0], [enable_plugin=1])
54 AM_CONDITIONAL(ENABLE_PLUGIN, test "x$enable_plugin" = "x1")
59 [Disable building test programs]
61 [enable_tests=0], [enable_tests=1])
62 AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "x1")
67 [Disable building VTY telnet interface]
69 [enable_vty=0], [enable_vty=1])
70 AM_CONDITIONAL(ENABLE_VTY, test "x$enable_vty" = "x1")
72 AC_ARG_ENABLE(panic_infloop,
74 [--enable-panic-infloop],
75 [Trigger infinite loop on panic rather than fprintf/abort]
77 [panic_infloop=1], [panic_infloop=0])
78 if test "x$panic_infloop" = "x1"
80 AC_DEFINE([PANIC_INFLOOP],[1],[Use infinite loop on panic rather than fprintf/abort])
83 AC_ARG_ENABLE(bsc_fd_check,
85 [--enable-bsc-fd-check],
86 [Instrument bsc_register_fd to check that the fd is registered]
88 [fd_check=1], [fd_check=0])
89 if test "x$fd_check" = "x1"
91 AC_DEFINE([BSC_FD_CHECK],[1],[Instrument the bsc_register_fd])
94 AC_ARG_ENABLE(msgfile,
97 [Disable support for the msgfile],
99 [enable_msgfile=0], [enable_msgfile=1])
100 AM_CONDITIONAL(ENABLE_MSGFILE, test "x$enable_msgfile" = "x1")
108 include/osmocom/Makefile
109 include/osmocom/vty/Makefile
110 include/osmocom/codec/Makefile
111 include/osmocom/crypt/Makefile
112 include/osmocom/gsm/Makefile
113 include/osmocom/gsm/protocol/Makefile
114 include/osmocom/core/Makefile
123 tests/msgfile/Makefile