aboutsummaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-05-04 23:39:46 -0700
committerGuy Harris <guy@alum.mit.edu>2018-05-05 06:40:19 +0000
commit41445d0e97ef37786ec7443141641a78fcfd6b8f (patch)
tree1f2bdb3bfa03af313b40c78a066c68142d1ef404 /ConfigureChecks.cmake
parentf447aa7dd7f0e36916847b8bb7193fecc42ddc89 (diff)
Use dlget() and dlgetname() to get the executable path name on HP-UX.
That leaves only AIX (and, if we're looking at dead UN*Xes, IRIX and Tru64 UNIX) as platforms on which we can't fetch that. Change-Id: If7a6a425aba30e1abf82ecc66f6c28dc532a227c Reviewed-on: https://code.wireshark.org/review/27358 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake10
1 files changed, 9 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 739fe7c32b..563dc0da02 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -75,7 +75,15 @@ include(CheckSymbolExists)
# Platform-specific functions used in platform-specific code.
# We check for them only on the platform on which we use them.
#
-if(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.][0-9.]*")
+if(CMAKE_SYSTEM_NAME STREQUAL "HP-UX")
+ #
+ # HP-UX
+ #
+ cmake_push_check_state()
+ set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_DL_LIBS})
+ check_function_exists("dlget" HAVE_DLGET)
+ cmake_pop_check_state()
+elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.][0-9.]*")
#
# Solaris
#