summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2010-11-03 12:36:48 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2010-11-03 12:36:48 +0100
commit10409fdd1143e43ac2a15777672d2e36655e4bff (patch)
treec26bd95c3e1677d5743ac34f69ddd088a8eb8bad /configure.ac
parent4c2ee9da64453d48eb22ddca90d6cc87249eee86 (diff)
downloadconnman-10409fdd1143e43ac2a15777672d2e36655e4bff.tar.gz
connman-10409fdd1143e43ac2a15777672d2e36655e4bff.tar.bz2
connman-10409fdd1143e43ac2a15777672d2e36655e4bff.zip
openvpn: Add OpenVPN support
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 886c7ae2..94211dc0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -135,6 +135,23 @@ AC_ARG_ENABLE(portal,
AM_CONDITIONAL(PORTAL, test "${enable_portal}" != "no")
AM_CONDITIONAL(PORTAL_BUILTIN, test "${enable_portal}" = "builtin")
+AC_ARG_WITH(openvpn, AC_HELP_STRING([--with-openvpn=PROGRAM],
+ [specify location of openvpn binary]), [path_openvpn=${withval}])
+
+AC_ARG_ENABLE(openvpn,
+ AC_HELP_STRING([--enable-openvpn], [enable openvpn support]),
+ [enable_openvpn=${enableval}], [enable_openvpn="no"])
+if (test "${enable_openvpn}" != "no"); then
+ if (test -z "${path_openvpn}"); then
+ AC_PATH_PROG(OPENVPN, [openvpn], [], $PATH:/sbin:/usr/sbin)
+ else
+ OPENVPN="${path_openvpn}"
+ AC_SUBST(OPENVPN)
+ fi
+fi
+AM_CONDITIONAL(OPENVPN, test "${enable_openvpn}" != "no")
+AM_CONDITIONAL(OPENVPN_BUILTIN, test "${enable_openvpn}" = "builtin")
+
AC_ARG_ENABLE(loopback,
AC_HELP_STRING([--enable-loopback], [enable loopback support]),
[enable_loopback=${enableval}], [enable_loopback="no"])