From 42f13dc03c12805b994ea67fe77c9cb9dd55c10d Mon Sep 17 00:00:00 2001 From: Gert Doering Date: Tue, 10 Jun 2014 16:04:30 +0200 Subject: 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 --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 77e950d..5a807cb 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" -- cgit