[vlc-commits] configure: fixed compilation for darwin
Rafaël Carré
git at videolan.org
Sat Sep 3 19:23:52 CEST 2011
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sat Sep 3 19:23:25 2011 +0200| [762686af7782478461060a75efa79edba4c38a59] | committer: Felix Paul Kühne
configure: fixed compilation for darwin
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=762686af7782478461060a75efa79edba4c38a59
---
configure.ac | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 7ca6721..8224c00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -691,21 +691,24 @@ AC_CHECK_LIB(m,lrintf, [
])
dnl Check for dynamic plugins
-LIBDL="no"
+LIBDL=""
+have_dynamic_objects="no"
LIBS_save="$LIBS"
AC_SEARCH_LIBS(dlopen, [dl svld], [
AS_IF([test "$ac_cv_search_dlopen" != "none required"], [
LIBDL="$ac_cv_search_dlopen"
])
+ have_dynamic_objects="yes"
])
LIBS="$LIBS_save"
# Windows
AS_IF([test "${SYS}" = "mingw32" -o "${SYS}" = "mingwce"], [
LIBDL=""
+ have_dynamic_objects="yes" #assume we can use shared objects
])
-AS_IF([test "$LIBDL" != "no"], [
+AS_IF([test "$have_dynamic_objects" != "no"], [
AC_DEFINE(HAVE_DYNAMIC_PLUGINS, 1,
[Define to 1 if dynamic plugins are supported.])
], [
More information about the vlc-commits
mailing list