Fix building with older versions of libtool
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 6 Mar 2016 17:06:38 +0000 (18:06 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 6 Mar 2016 17:06:38 +0000 (18:06 +0100)
The libtool on RHEL5 doesn't set LTDEPS, therefore
we failed to compile the builtin ltdl lib.

It does however set LIBLTDL to the path of the if it is
going to build an internal one. Use that.

Fixes building from git on RHEL5

configure.ac

index e3ade4a..c0c4be3 100644 (file)
@@ -29,7 +29,7 @@ m4_ifdef([LT_PACKAGE_VERSION],
        ]
 )
 
-AM_CONDITIONAL([BUILD_INCLUDED_LTDL], [test "x$LTDLDEPS" != "x"])
+AM_CONDITIONAL([BUILD_INCLUDED_LTDL], [test "x${LIBLTDL}" = 'x${top_builddir}/libltdl/libltdlc.la'])
 
 AM_INIT_AUTOMAKE([tar-pax dist-bzip2 foreign])
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])