aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 6f57a72..a6f9b7f 100644
--- a/configure.in
+++ b/configure.in
@@ -45,6 +45,17 @@ AC_SUBST(EXEC_LDADD)
# FIXME: Replace `main' with a function in `-links':
#AC_CHECK_LIB([inks], [main])
+dnl GTP kernel dependencies
+AC_ARG_ENABLE([gtp-kernel],
+ AS_HELP_STRING([--enable-gtp-kernel], [Build GTP tunneling kernel]),
+ [enable_gtp_kernel="$enableval"], [enable_gtp_kernel="no"])
+
+if test "x$enable_gtp_kernel" = "xyes"; then
+ PKG_CHECK_MODULES([LIBGTPNL], [libgtpnl >= 1.0.0])
+fi
+
+AM_CONDITIONAL([ENABLE_GTP_KERNEL], [test "$enable_gtp_kernel" = "yes"])
+
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
@@ -116,3 +127,7 @@ AC_CONFIG_FILES([Makefile
libgtp.pc
openggsn.spec])
AC_OUTPUT
+
+echo "
+openggsn Configuration:
+ GTP kernel support: ${enable_gtp_kernel}"