33# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
44# Copyright (c) 2015 Research Organization for Information Science
55# 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.
68# $COPYRIGHT$
79#
810# Additional copyrights may follow
@@ -22,26 +24,28 @@ AC_DEFUN([MCA_opal_if_bsdx_ipv6_COMPILE_MODE], [
2224AC_DEFUN([MCA_opal_if_bsdx_ipv6_CONFIG], [
2325 AC_CONFIG_FILES([opal/mca/if/bsdx_ipv6/Makefile])
2426
25- AC_REQUIRE([OPAL_CHECK_OS_FLAVORS ])
27+ AC_REQUIRE([OAC_CHECK_OS_FLAVORS ])
2628
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
2832 # happy. I.e., this:
2933 # if defined( __NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || \
3034 # 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)])
3438 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" ],
4145 [AC_MSG_RESULT([yes])
4246 $1 ],
4347 [AC_MSG_RESULT([no])
4448 $2 ])],
45- [AC_MSG_RESULT([no (cached)])
49+ [AC_MSG_RESULT([no (OPAL cached)])
4650 $2 ])
4751])dnl
0 commit comments