blob: 02ecdb4d4a93b3f20e5f06d1294268215916dca5 [file] [log] [blame]
Pablo Neira Ayuso0ba77d52011-06-05 18:32:44 +02001AC_INIT([libosmo-abis],
2 m4_esyscmd([./git-version-gen .tarball-version]),
3 [openbsc-devel@lists.openbsc.org])
4
5AM_INIT_AUTOMAKE([dist-bzip2])
6
7dnl kernel style compile messages
8m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9
10dnl checks for programs
11AC_PROG_MAKE_SET
12AC_PROG_CC
13AC_PROG_INSTALL
14LT_INIT
15AC_PROG_LIBTOOL
16
17AC_CONFIG_MACRO_DIR([m4])
18
19dnl checks for header files
20AC_HEADER_STDC
21AC_CHECK_HEADERS(execinfo.h sys/select.h sys/socket.h syslog.h ctype.h)
22
23# The following test is taken from WebKit's webkit.m4
24saved_CFLAGS="$CFLAGS"
25CFLAGS="$CFLAGS -fvisibility=hidden "
26AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
27AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
28 [ AC_MSG_RESULT([yes])
29 SYMBOL_VISIBILITY="-fvisibility=hidden"],
30 AC_MSG_RESULT([no]))
31CFLAGS="$saved_CFLAGS"
32AC_SUBST(SYMBOL_VISIBILITY)
33
34dnl Generate the output
35AM_CONFIG_HEADER(config.h)
36
37PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.0)
38PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0)
39PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.0)
40PKG_CHECK_MODULES([LIBTALLOC], talloc >= 2.0.1)
41
42AC_OUTPUT(
43 libosmoabis.pc
44 include/Makefile
45 include/osmocom/Makefile
46 include/osmocom/gsm/Makefile
47 include/osmocom/gsm/abis/Makefile
48 src/Makefile
49 src/input/Makefile
50 tests/Makefile
51 Makefile)