Neels Hofmeyr | 40d8b01 | 2016-12-11 00:27:48 +0100 | [diff] [blame^] | 1 | AC_INIT([osmo-hlr], |
| 2 | m4_esyscmd([./git-version-gen .tarball-version]), |
| 3 | [openbsc@lists.osmocom.org]) |
| 4 | |
| 5 | dnl *This* is the root dir, even if an install-sh exists in ../ or ../../ |
| 6 | AC_CONFIG_AUX_DIR([.]) |
| 7 | |
| 8 | dnl libtool init |
| 9 | LT_INIT |
| 10 | |
| 11 | AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip 1.9]) |
| 12 | |
| 13 | dnl kernel style compile messages |
| 14 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
| 15 | |
| 16 | dnl checks for programs |
| 17 | AC_PROG_MAKE_SET |
| 18 | AC_PROG_MKDIR_P |
| 19 | AC_PROG_CC |
| 20 | AC_PROG_INSTALL |
| 21 | |
| 22 | dnl check for pkg-config (explained in detail in libosmocore/configure.ac) |
| 23 | AC_PATH_PROG(PKG_CONFIG_INSTALLED, pkg-config, no) |
| 24 | if test "x$PKG_CONFIG_INSTALLED" = "xno"; then |
| 25 | AC_MSG_WARN([You need to install pkg-config]) |
| 26 | fi |
| 27 | PKG_PROG_PKG_CONFIG([0.20]) |
| 28 | |
| 29 | PKG_CHECK_MODULES(TALLOC, [talloc >= 2.0.1]) |
| 30 | |
| 31 | PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.9.0) |
| 32 | PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.9.0) |
| 33 | PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.9.0) |
| 34 | PKG_CHECK_MODULES(LIBOSMOABIS, libosmoabis >= 0.3.2) |
| 35 | |
| 36 | found_sqlite3=yes |
| 37 | PKG_CHECK_MODULES(SQLITE3, sqlite3, ,found_sqlite3=no) |
| 38 | AM_CONDITIONAL(HAVE_SQLITE3, test "$found_sqlite3" = yes) |
| 39 | AC_SUBST(found_sqlite3) |
| 40 | |
| 41 | AC_CONFIG_MACRO_DIR([m4]) |
| 42 | |
| 43 | dnl checks for header files |
| 44 | AC_HEADER_STDC |
| 45 | |
| 46 | AC_OUTPUT( |
| 47 | Makefile |
| 48 | src/Makefile |
| 49 | sql/Makefile |
| 50 | ) |