summaryrefslogtreecommitdiff
blob: a0c23a75d38c6fb338e9e558dd69fc40a96adfd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use system libtdl from libtool instead of bundled one
see http://www.flameeyes.eu/autotools-mythbuster/libtool/plugins.html
bicatali@gentoo.org

diff -Nur cpl-6.1.1.orig/configure.ac cpl-6.1.1/configure.ac
--- cpl-6.1.1.orig/configure.ac	2012-06-04 18:38:01.000000000 +0100
+++ cpl-6.1.1/configure.ac	2012-06-04 22:14:23.000000000 +0100
@@ -60,8 +60,12 @@
 AC_ENABLE_STATIC(yes)
 AC_ENABLE_SHARED(yes)
 
-AC_LIBLTDL_CONVENIENCE
-AC_PROG_LIBTOOL
+LT_INIT([dlopen])
+AC_CHECK_HEADER([ltdl.h],
+    [AC_CHECK_LIB([ltdl], [lt_dladvise_init],
+        [LIBLTDL=-lltdl], [LIBLTDL=])],
+    [LIBLTDL=])
+
 AC_SUBST(INCLTDL)
 AC_SUBST(LIBLTDL)
 AC_SUBST(LIBTOOL_DEPS)
@@ -131,7 +135,6 @@
 CPL_CONFIG_FUNC
 
 # Configure subpackages
-AC_CONFIG_SUBDIRS(libltdl)
 
 if test ! x$"cpl_cv_with_system_cext" = xyes; then
         AC_CONFIG_SUBDIRS([libcext])
diff -Nur cpl-6.1.1.orig/Makefile.am cpl-6.1.1/Makefile.am
--- cpl-6.1.1.orig/Makefile.am	2012-06-04 18:38:01.000000000 +0100
+++ cpl-6.1.1/Makefile.am	2012-06-04 19:07:41.000000000 +0100
@@ -25,11 +25,10 @@
 DISTCLEANFILES = *~
 
 if GASGANO_SUPPORT
-libltdl = libltdl
 cpljava = cpljava
 endif
 
-SUBDIRS = $(libltdl) $(libcext) cplcore cplui cpldrs cpldfs $(cpljava)
+SUBDIRS = $(libcext) cplcore cplui cpldrs cpldfs $(cpljava)
 
 HTML_SUBDIRS =