aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-03-12 18:26:19 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-03-12 21:02:51 +0100
commita179a54c9d05226da029f5284657293794d4ff9b (patch)
treee2766234244ef98c65013b545278a1137e541768
parent440ccc6f0e93f9c6553bb2baffa7a59b49f84611 (diff)
configure.ac: Add flag to enable/disable build of ipaccess related utils
-rw-r--r--configure.ac5
-rw-r--r--src/Makefile.am5
2 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index eafe4d6e7..cdee90c55 100644
--- a/configure.ac
+++ b/configure.ac
@@ -38,6 +38,11 @@ dnl checks for libraries
AC_SEARCH_LIBS([dlopen], [dl dld], [LIBRARY_DL="$LIBS";LIBS=""])
AC_SUBST(LIBRARY_DL)
+# Enable/disable ipaccess-utils (src/ipacces/)?
+AC_ARG_ENABLE([ipaccess-utils], [AS_HELP_STRING([--enable-ipaccess-utils], [Build ipaccess utils: abisip-find, ipaccess-config, ...])],
+ [osmo_ac_ipa_utils="$enableval"],[osmo_ac_ipa_utils="yes"])
+AM_CONDITIONAL(BUILD_IPA_UTILS, test "x$osmo_ac_ipa_utils" = "xyes")
+AC_SUBST(osmo_ac_ipa_utils)
PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.12.0)
PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.12.0)
diff --git a/src/Makefile.am b/src/Makefile.am
index 6c63eead8..62ae4dde8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,5 +23,8 @@ SUBDIRS = \
libfilter \
osmo-bsc \
utils \
- ipaccess \
$(NULL)
+
+if BUILD_IPA_UTILS
+SUBDIRS += ipaccess
+endif