blob: 8c0fe67278ff9d54f39e5d4f0137f75489275ca2 [file] [log] [blame]
Harald Weltedfe6c7d2010-02-20 16:24:02 +01001AC_INIT
2
3AM_INIT_AUTOMAKE(libosmocore, 0.0alpha1)
4
5dnl kernel style compile messages
6m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
7
8dnl checks for programs
9AC_PROG_MAKE_SET
10AC_PROG_CC
11AC_PROG_INSTALL
12AC_PROG_RANLIB
13AC_PROG_LIBTOOL
14
15dnl checks for header files
16AC_HEADER_STDC
17
18# The following test is taken from WebKit's webkit.m4
19saved_CFLAGS="$CFLAGS"
20CFLAGS="$CFLAGS -fvisibility=hidden "
21AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
22AC_COMPILE_IFELSE([char foo;],
23 [ AC_MSG_RESULT([yes])
24 SYMBOL_VISIBILITY="-fvisibility=hidden"],
25 AC_MSG_RESULT([no]))
26CFLAGS="$saved_CFLAGS"
27AC_SUBST(SYMBOL_VISIBILITY)
28
29dnl Generate the output
30AM_CONFIG_HEADER(config.h)
31
32AC_OUTPUT(
33 libosmocore.pc
34 include/osmocore/Makefile
35 include/Makefile
36 src/Makefile
37 Makefile)