Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 1 | AC_INIT([libosmo-abis], |
| 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 sys/socket.h syslog.h ctype.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([AC_LANG_SOURCE([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 | PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.0) |
| 38 | PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0) |
| 39 | PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.0) |
| 40 | PKG_CHECK_MODULES([LIBTALLOC], talloc >= 2.0.1) |
| 41 | |
| 42 | AC_OUTPUT( |
| 43 | libosmoabis.pc |
| 44 | include/Makefile |
| 45 | include/osmocom/Makefile |
Pablo Neira Ayuso | 177094b | 2011-06-07 12:21:51 +0200 | [diff] [blame] | 46 | include/osmocom/abis/Makefile |
Pablo Neira Ayuso | 0ba77d5 | 2011-06-05 18:32:44 +0200 | [diff] [blame] | 47 | src/Makefile |
| 48 | src/input/Makefile |
| 49 | tests/Makefile |
| 50 | Makefile) |