From: Gert Doering Date: Tue, 10 Jun 2014 14:04:30 +0000 (+0200) Subject: Recognize AIX, define TARGET_AIX X-Git-Tag: v2.4_alpha1~406 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42f13dc03c12805b994ea67fe77c9cb9dd55c10d;p=thirdparty%2Fopenvpn.git Recognize AIX, define TARGET_AIX force "have_tap_header=yes", as configure won't like AIX headers otherwise (no tun related headers, just ). force ROUTE to be "/usr/sbin/route" - not executable by non-root users, so configure testing for executables will not find it force "ac_cv_header_net_if_h=no", because AIX' pulls in AIX' , which #defines ROUTE_H, disabling our "route.h"... (and we don't need on AIX anyway) Signed-off-by: Gert Doering Acked-by: Arne Schwabe Message-Id: <1402409073-54067216-2-git-send-email-gert@greenie.muc.de> URL: http://article.gmane.org/gmane.network.openvpn.devel/8787 Signed-off-by: Gert Doering --- diff --git a/configure.ac b/configure.ac index 77e950d28..5a807cbd7 100644 --- a/configure.ac +++ b/configure.ac @@ -349,6 +349,13 @@ case "$host" in AC_DEFINE([TARGET_DRAGONFLY], [1], [Are we running on DragonFlyBSD?]) AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["D"], [Target prefix]) ;; + *-aix*) + AC_DEFINE([TARGET_AIX], [1], [Are we running AIX?]) + AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["A"], [Target prefix]) + ROUTE="/usr/sbin/route" + have_tap_header="yes" + ac_cv_header_net_if_h="no" # exists, but breaks things + ;; *) AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["X"], [Target prefix]) have_tap_header="yes"