blob: 00d90350e6d302ab7bb421a2470060a181df801a [file] [log] [blame]
Harald Weltebdff5e62010-06-12 19:05:23 +02001AC_INIT([libasn1c], [0.9.21],
2 [openbsc-devel@lists.openbsc.org])
3
4AM_INIT_AUTOMAKE([dist-bzip2])
5
6dnl kernel style compile messages
7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8
9dnl checks for programs
10AC_PROG_MAKE_SET
11AC_PROG_CC
12AC_PROG_INSTALL
13LT_INIT
14AC_PROG_LIBTOOL
15
16AC_CONFIG_MACRO_DIR([m4])
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
29AC_OUTPUT(
30 libasn1c.pc
31 src/Makefile
Harald Welte98cb8362010-06-12 19:15:51 +020032 include/Makefile
33 include/asn1c/Makefile
Harald Weltebdff5e62010-06-12 19:05:23 +020034 Makefile)
35