]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fixes to make FR use the local libltld
authorAlan T. DeKok <aland@freeradius.org>
Mon, 10 Oct 2011 18:16:01 +0000 (20:16 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 10 Oct 2011 18:16:01 +0000 (20:16 +0200)
This helps to avoid stupid libtool issues

configure
configure.in
src/include/modpriv.h

index a60da7d3f4dae58cec7a95310bfbce9f7837c640..941b22a7a363cf84815935bd3712c6d13f181f3d 100755 (executable)
--- a/configure
+++ b/configure
@@ -4796,7 +4796,7 @@ fi
 if test "${with_system_libltdl+set}" = set; then
   withval=$with_system_libltdl;
 LIBLTDL="-lltdl"
-INCLTDL=
+INCLTDL=-DWITH_SYSTEM_LTDL
 LTDL_SUBDIRS=
 
 else
index 5f4936c8ee48d816a86e3927d5b9bac422f9570a..18a97ae2bb4c067bad1db74afbcd813c8450c2ec 100644 (file)
@@ -83,7 +83,7 @@ AC_ARG_WITH(system-libltdl,
 [  --with-system-libltdl   Use the libltdl installed in your system (default=use our own)],
 [
 LIBLTDL="-lltdl"
-INCLTDL=
+INCLTDL=-DWITH_SYSTEM_LTDL
 LTDL_SUBDIRS=
 enable_ltdl_install=no
 ],
index b00d3ad8dec78a4dbe7b27f16a690cc25d9dcb6e..cf27616dfd5089dbb4d921a44a4ebc3d848095c2 100644 (file)
 #endif
 
 #ifndef WITHOUT_LIBLTDL
+#ifdef WITH_SYSTEM_LTDL
 #include "ltdl.h"
+#else
+#include "libltdl/ltdl.h"
+#endif
 #endif
 
 #ifdef __cplusplus