@@ -151,6 +151,33 @@ haiku*)
151151 #
152152 LIBS="-lbsd $LIBS"
153153 ;;
154+ hpux*)
155+ #
156+ # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
157+ # dl_module_id_1 member.
158+ # (This is the case on HP-UX B.11.31.)
159+ #
160+ # NOTE: any failure means we conclude that it doesn't have that member,
161+ # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
162+ # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
163+ # it doesn't have that member (which is OK, as either we won't be
164+ # using code that would use that member, or we wouldn't compile in
165+ # any case).
166+ #
167+ AC_CHECK_MEMBERS ( [ dl_hp_ppa_info_t.dl_module_id_1] ,,,
168+ [
169+ #include <sys/types.h>
170+ #include <sys/dlpi.h>
171+ #include <sys/dlpi_ext.h>
172+ ] )
173+
174+ #
175+ # On HP-UX DLPI needs putmsg(), which previously was in libstr, but in
176+ # HP-UX B.11.31 this is no longer the case.
177+ # AC_SEARCH_LIBS() accounts for that.
178+ #
179+ AC_SEARCH_LIBS ( [ putmsg] , [ str] )
180+ ;;
154181esac
155182
156183AC_CHECK_FUNC ( strerror_r ,
@@ -2319,24 +2346,6 @@ AC_CHECK_MEMBERS([struct sockaddr.sa_len],,,
23192346 #include <sys/socket.h>
23202347 ] )
23212348
2322- #
2323- # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
2324- # dl_module_id_1 member.
2325- #
2326- # NOTE: any failure means we conclude that it doesn't have that member,
2327- # so if we don't have DLPI, don't have a <sys/dlpi_ext.h> header, or
2328- # have one that doesn't declare a dl_hp_ppa_info_t type, we conclude
2329- # it doesn't have that member (which is OK, as either we won't be
2330- # using code that would use that member, or we wouldn't compile in
2331- # any case).
2332- #
2333- AC_CHECK_MEMBERS ( [ dl_hp_ppa_info_t.dl_module_id_1] ,,,
2334- [
2335- #include <sys/types.h>
2336- #include <sys/dlpi.h>
2337- #include <sys/dlpi_ext.h>
2338- ] )
2339-
23402349#
23412350# Various Linux-specific mechanisms.
23422351#
0 commit comments