Code

configure: Use LT_INIT, rather than AC_PROG_LIBTOOL, if available.
authorSebastian Harl <sh@tokkee.org>
Sun, 2 May 2010 19:59:26 +0000 (21:59 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 2 May 2010 19:59:26 +0000 (21:59 +0200)
The latter has been deprecated in current versions of libtool.

configure.ac

index 22214b49d3f15d77d885fa2200f91bda1d018e10..97e3ca081a2175d617258bd4178e4ac59e8bd574 100644 (file)
@@ -60,7 +60,16 @@ AC_PROG_MAKE_SET
 
 AM_PROG_CC_C_O
 
 
 AM_PROG_CC_C_O
 
-AC_PROG_LIBTOOL
+m4_ifdef([LT_INIT],
+       [
+        LT_INIT
+       ],
+       # else
+       # (older libtools)
+       [
+        AC_PROG_LIBTOOL
+       ]
+)
 
 test_cc_flags() {
        AC_LANG_CONFTEST([int main() {}])
 
 test_cc_flags() {
        AC_LANG_CONFTEST([int main() {}])