tests: don't hardcode length values of expected encoding gsm_7bit_encode:
[osmocom-bb.git] / configure.in
1 AC_INIT([libosmocore],
2         m4_esyscmd([./git-version-gen .tarball-version]),
3         [openbsc-devel@lists.openbsc.org])
4
5 AM_INIT_AUTOMAKE([dist-bzip2])
6
7 dnl kernel style compile messages
8 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9
10 dnl checks for programs
11 AC_PROG_MAKE_SET
12 AC_PROG_CC
13 AC_PROG_INSTALL
14 LT_INIT
15 AC_PROG_LIBTOOL
16
17 AC_CONFIG_MACRO_DIR([m4])
18
19 dnl checks for header files
20 AC_HEADER_STDC
21 AC_CHECK_HEADERS(execinfo.h sys/select.h)
22
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"],
30         AC_MSG_RESULT([no]))
31 CFLAGS="$saved_CFLAGS"
32 AC_SUBST(SYMBOL_VISIBILITY)
33
34 dnl Generate the output
35 AM_CONFIG_HEADER(config.h)
36
37 AC_ARG_ENABLE(talloc,
38         [  --disable-talloc Disable building talloc memory allocator ],
39         [enable_talloc=0], [enable_talloc=1])
40 AM_CONDITIONAL(ENABLE_TALLOC, test "x$enable_talloc" = "x1")
41
42 AC_ARG_ENABLE(plugin,
43         [  --disable-plugin Disable support for dlopen plugins ],
44         [enable_plugin=0], [enable_plugin=1])
45 AM_CONDITIONAL(ENABLE_PLUGIN, test "x$enable_plugin" = "x1")
46
47 AC_ARG_ENABLE(tests,
48         [  --disable-tests Disable building test programs ],
49         [enable_tests=0], [enable_tests=1])
50 AM_CONDITIONAL(ENABLE_TESTS, test "x$enable_tests" = "x1")
51
52 AC_ARG_ENABLE(vty,
53         [  --disable-vty Disable building VTY telnet interface ],
54         [enable_vty=0], [enable_vty=1])
55 AM_CONDITIONAL(ENABLE_VTY, test "x$enable_vty" = "x1")
56
57
58 AC_OUTPUT(
59         libosmocore.pc
60         libosmovty.pc
61         include/osmocom/Makefile
62         include/osmocom/vty/Makefile
63         include/osmocom/crypt/Makefile
64         include/osmocore/Makefile
65         include/osmocore/protocol/Makefile
66         include/Makefile
67         src/Makefile
68         src/vty/Makefile
69         tests/Makefile
70         tests/timer/Makefile
71         tests/sms/Makefile
72         Makefile)