Harald Welte | 57f6b02 | 2012-06-14 21:05:44 +0800 | [diff] [blame] | 1 | dnl Process this file with autoconf to produce a configure script |
| 2 | AC_INIT([osmo-pcu], |
| 3 | m4_esyscmd([./git-version-gen .tarball-version]), |
Harald Welte | 477e79e | 2012-06-18 12:21:03 +0800 | [diff] [blame] | 4 | [osmocom-pcu@lists.osmocom.org]) |
Harald Welte | 57f6b02 | 2012-06-14 21:05:44 +0800 | [diff] [blame] | 5 | |
| 6 | AM_INIT_AUTOMAKE([dist-bzip2]) |
| 7 | |
| 8 | dnl kernel style compile messages |
| 9 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
| 10 | |
| 11 | dnl checks for programs |
| 12 | AC_PROG_MAKE_SET |
| 13 | AC_PROG_CC |
| 14 | AC_PROG_CXX |
| 15 | AC_PROG_INSTALL |
| 16 | LT_INIT |
| 17 | |
| 18 | dnl checks for header files |
| 19 | AC_HEADER_STDC |
| 20 | |
| 21 | dnl Checks for typedefs, structures and compiler characteristics |
| 22 | |
| 23 | dnl checks for libraries |
| 24 | PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.9) |
| 25 | PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty) |
| 26 | PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.3) |
Ivan Kluchnikov | ef7f28c | 2012-07-12 14:49:15 +0400 | [diff] [blame] | 27 | PKG_CHECK_MODULES(LIBOSMOGB, libosmogb >= 0.5.1.4) |
Harald Welte | 57f6b02 | 2012-06-14 21:05:44 +0800 | [diff] [blame] | 28 | |
| 29 | AC_MSG_CHECKING([whether to enable sysmocom-bts hardware support]) |
| 30 | AC_ARG_ENABLE(sysmocom-bts, |
| 31 | AC_HELP_STRING([--enable-sysmocom-bts], |
| 32 | [enable code for sysmocom femto-bts [default=no]]), |
| 33 | [enable_sysmocom_bts="yes"],[enable_sysmocom_bts="no"]) |
| 34 | AC_MSG_RESULT([$enable_sysmocom_bts]) |
| 35 | AM_CONDITIONAL(ENABLE_SYSMOBTS, test "x$enable_sysmocom_bts" = "xyes") |
| 36 | |
| 37 | AC_OUTPUT( |
| 38 | src/Makefile |
| 39 | Makefile) |