3
3
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
4
4
# Copyright (c) 2015 Research Organization for Information Science
5
5
# and Technology (RIST). All rights reserved.
6
+ # Copyright (c) 2025 Nanook Consulting All rights reserved.
7
+ # Copyright (c) 2025 Jeffrey M. Squyres. All rights reserved.
6
8
# $COPYRIGHT$
7
9
#
8
10
# Additional copyrights may follow
@@ -22,26 +24,28 @@ AC_DEFUN([MCA_opal_if_bsdx_ipv6_COMPILE_MODE], [
22
24
AC_DEFUN([MCA_opal_if_bsdx_ipv6_CONFIG], [
23
25
AC_CONFIG_FILES([opal/mca/if/bsdx_ipv6/Makefile])
24
26
25
- AC_REQUIRE([OPAL_CHECK_OS_FLAVORS ])
27
+ AC_REQUIRE([OAC_CHECK_OS_FLAVORS ])
26
28
27
- # If we found struct sockaddr and we're on any of the BSDs, we're
29
+ # If we previously found struct sockaddr_in6 (we don't repeat the
30
+ # AC CHECK_TYPES test here simply because it's cumbersome with all
31
+ # the required #includes) and we're on any of the BSDs, we're
28
32
# happy. I.e., this:
29
33
# if defined( __NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || \
30
34
# defined(__386BSD__) || defined(__bsdi__) || defined(__APPLE__)
31
- AC_MSG_CHECKING([struct sockaddr ])
32
- AS_IF([test " $opal_found_sockaddr " = " yes" ],
33
- [AC_MSG_RESULT([yes (cached)])
35
+ AC_MSG_CHECKING([struct sockaddr_in6 again ])
36
+ AS_IF([test " $ac_cv_type_struct_sockaddr_in6 " = " yes" ],
37
+ [AC_MSG_RESULT([yes (OPAL cached)])
34
38
AC_MSG_CHECKING([some flavor of BSD])
35
- AS_IF([test " $opal_found_netbsd " = " yes" || \
36
- test " $opal_found_freebsd " = " yes" || \
37
- test " $opal_found_openbsd " = " yes" || \
38
- test " $opal_found_386bsd " = " yes" || \
39
- test " $opal_found_bsdi " = " yes" ||
40
- test " $opal_found_apple " = " yes" ],
39
+ AS_IF([test " $oac_found_netbsd " = " yes" || \
40
+ test " $oac_found_freebsd " = " yes" || \
41
+ test " $oac_found_openbsd " = " yes" || \
42
+ test " $oac_found_386bsd " = " yes" || \
43
+ test " $oac_found_bsdi " = " yes" ||
44
+ test " $oac_found_apple " = " yes" ],
41
45
[AC_MSG_RESULT([yes])
42
46
$1 ],
43
47
[AC_MSG_RESULT([no])
44
48
$2 ])],
45
- [AC_MSG_RESULT([no (cached)])
49
+ [AC_MSG_RESULT([no (OPAL cached)])
46
50
$2 ])
47
51
])dnl
0 commit comments