The subject says it all. Comments appreciated.

Thanks!

Ari
--
diff --git a/libltdl/m4/ltdl.m4 b/libltdl/m4/ltdl.m4
index 111fac1..67317c0 100644
--- a/libltdl/m4/ltdl.m4
+++ b/libltdl/m4/ltdl.m4
@@ -384,8 +384,11 @@ dnl Don't require this, or it will be expanded earlier 
than the code
 dnl that sets the variables it relies on:
 _LT_ENABLE_INSTALL
 
-dnl _LTDL_MODE specific code must be called at least once:
-_LTDL_MODE_DISPATCH
+dnl _LTDL_MODE specific code must be called at least once if
+dnl we're using the included copy of libltdl:
+if test x"$with_included_ltdl" = xyes; then
+  _LTDL_MODE_DISPATCH
+fi
 
 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
 # the user used.  This is so that ltdl.h can pick up the parent projects


Reply via email to