1
1
openmpi/opal/mca/reachable/netlink/configure.m4
Brian Barrett a543e7f130 reachable: remove libnl-1 support from netlink
The netlink reachable component has never been released in a usable
form, but had code copied from usNIC to support both libnl-1 and
libnl-3.  If nothing else, this code was a little buggy in
handling the case where libnl-3 but not libnl-route-3 were
installed.  Jeff and I decided to drop libnl-1 support from the
netlink reachable component, given that it's getting pretty old
and the weighted component provides the same information that
the TCP BTL and OOB are using today, so libnl-1 customers won't
see a step backwards from where they are today.

Signed-off-by: Brian Barrett <bbarrett@mazon.com>
2017-09-19 19:42:54 -07:00

53 строки
1.8 KiB
Bash

# -*- shell-script -*-
#
# Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
# Copyright (c) 2015-2016 Research Organization for Information Science
# and Technology (RIST). All rights reserved.
# Copyright (c) 2017 Amazon.com, Inc. or its affiliates.
# All Rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
# MCA_opal_reachable_netlink_CONFIG([action-if-can-compile],
# [action-if-cant-compile])
# ------------------------------------------------
AC_DEFUN([MCA_opal_reachable_netlink_CONFIG],[
AC_CONFIG_FILES([opal/mca/reachable/netlink/Makefile])
OPAL_VAR_SCOPE_PUSH([opal_reachable_netlink_happy])
opal_reachable_netlink_happy=1
AC_CHECK_HEADER([linux/netlink.h], [],
[opal_reachable_netlink_happy=0], [
#include <sys/types.h>
#include <net/if.h>
])
# this is terrible, but libnl-1 and libnl-3 are incompatible in
# weird ways, and once there are libraries in LIBS for one, the
# other is hard to get right. So if someone has already decided
# we have libnl version 1, get out. Otherwise, see if we have
# libnl-3, which is the only version supported by the netlink
# component.
AS_IF([test $opal_libnl_version -eq 1],
[opal_reachable_netlink_happy=0],
[OPAL_CHECK_LIBNL_V3([$opal_libnl_location],
[opal_reachable_netlink])
AS_IF([test "$OPAL_HAVE_LIBNL3" != "1"],
[opal_reachable_netlink_happy=0])])
AS_IF([test $opal_reachable_netlink_happy -eq 1],
[$1],
[$2])
AC_SUBST([opal_reachable_netlink_CPPFLAGS])
AC_SUBST([opal_reachable_netlink_LDFLAGS])
AC_SUBST([opal_reachable_netlink_LIBS])
OPAL_VAR_SCOPE_POP()
])