summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure5
-rw-r--r--configure.in3
-rw-r--r--src/common/HPM.h4
3 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index bf0a4d8ea..82466cad8 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in 0219c4d.
+# From configure.in 4d13474.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
@@ -6473,6 +6473,9 @@ CYGWIN*)
fd_setsize="done"
DLLEXT=".dll"
;;
+Darwin*)
+ DLLEXT=".dylib"
+ ;;
esac
diff --git a/configure.in b/configure.in
index 98c493a03..7db4ceda6 100644
--- a/configure.in
+++ b/configure.in
@@ -1123,6 +1123,9 @@ CYGWIN*)
fd_setsize="done"
DLLEXT=".dll"
;;
+Darwin*)
+ DLLEXT=".dylib"
+ ;;
esac
AC_SUBST([DLLEXT])
diff --git a/src/common/HPM.h b/src/common/HPM.h
index 5466693ab..d5a5cbb6a 100644
--- a/src/common/HPM.h
+++ b/src/common/HPM.h
@@ -28,8 +28,10 @@
#define plugin_import(x,y,z) (z)dlsym((x),(y))
#define plugin_close(x) dlclose(x)
- #ifdef CYGWIN
+ #if defined CYGWIN
#define DLL_EXT ".dll"
+ #elif defined __DARWIN__
+ #define DLL_EXT ".dylib"
#else
#define DLL_EXT ".so"
#endif