[Openvpn-devel,RFC,1/4] configure: add LINUX conditional variable

Message ID 20180401131615.12567-2-a@unstable.cc
State Superseded
Headers show
Series add netlink support for Linux | expand

Commit Message

Antonio Quartulli April 1, 2018, 3:16 a.m. UTC
This variable is helpful when the configure script
has to take actions that are strictly limited to
the LINUX platform, as required by the introduction
of netlink support.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
---
 configure.ac | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/configure.ac b/configure.ac
index 626b4dd4..f2e4aa47 100644
--- a/configure.ac
+++ b/configure.ac
@@ -298,6 +298,7 @@  case "$host" in
 	*-*-linux*)
 		AC_DEFINE([TARGET_LINUX], [1], [Are we running on Linux?])
 		AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["L"], [Target prefix])
+		LINUX=yes
 		;;
 	*-*-solaris*)
 		AC_DEFINE([TARGET_SOLARIS], [1], [Are we running on Solaris?])
@@ -1367,6 +1368,7 @@  AC_SUBST([OPTIONAL_PKCS11_HELPER_LIBS])
 AC_SUBST([PLUGIN_AUTH_PAM_CFLAGS])
 AC_SUBST([PLUGIN_AUTH_PAM_LIBS])
 
+AM_CONDITIONAL([LINUX], [test "${LINUX}" = "yes"])
 AM_CONDITIONAL([WIN32], [test "${WIN32}" = "yes"])
 AM_CONDITIONAL([GIT_CHECKOUT], [test "${GIT_CHECKOUT}" = "yes"])
 AM_CONDITIONAL([ENABLE_PLUGIN_AUTH_PAM], [test "${enable_plugin_auth_pam}" = "yes"])