Skip to contentSkip to conversation

Support libtool-2

PATCH In review Alon Bar-Lev 1 participant 3 messages Nov 13, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support libtool-2

Replace now obsolete AC_PROG_LIBTOOL with LT_INIT if available. Add m4 aclocal directory where libtool will place its macros.

---
 .gitignore   |    6 ++++++
 Makefile.am  |    1 +
 configure.ac |    3 ++-
 m4/.keep     |    1 +
 4 files changed, 10 insertions(+), 1 deletions(-)
 create mode 100644 m4/.keep
.gitignore +6 -0
index badd1a0..7cce775 100644
@@ -25,6 +25,12 @@ missing
 stamp-h1
 autom4te.cache
 
+m4/libtool.m4
+m4/ltoptions.m4
+m4/ltsugar.m4
+m4/ltversion.m4
+m4/lt~obsolete.m4
+
 ylwrap
 lexer.c
 parser.h
Makefile.am +1 -0
index 57aa33c..3479d4e 100644
@@ -1,4 +1,5 @@
 
+ACLOCAL_AMFLAGS = -I m4
 AM_MAKEFLAGS = --no-print-directory
 
 lib_LTLIBRARIES =
configure.ac +2 -1
index 2f07167..c1397f0 100644
@@ -3,6 +3,7 @@ AC_INIT(bluez, 4.96)
 
 AM_INIT_AUTOMAKE([foreign subdir-objects color-tests])
 AM_CONFIG_HEADER(config.h)
+AC_CONFIG_MACRO_DIR([m4])
 
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
@@ -30,7 +31,7 @@ m4_define([_LT_AC_TAGCONFIG], [])
 m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
 
 AC_DISABLE_STATIC
-AC_PROG_LIBTOOL
+ifdef([LT_INIT],[LT_INIT], [AC_PROG_LIBTOOL])
 
 AC_FUNC_PPOLL
 
m4/.keep new file +1 -0
new file mode 100644
index 0000000..2fa992c
@@ -0,0 +1 @@
+keep
Signature · 1 line
1.7.3.4
#1 lore raw
Quoted 2 lines · Alon Bar-Lev

Replace now obsolete AC_PROG_LIBTOOL with LT_INIT if available. Add m4 aclocal directory where libtool will place its macros.

It would be nice to know why the following was added to configure.ac:
---
m4_define([_LT_AC_TAGCONFIG], []) m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
---

What is the use case exactly?

Thanks,
Alon.

#2 lore raw

PATCH 1/1 Support libtool-2

In reply to Alon Bar-Lev

Remove now obsolete AC_DISABLE_STATIC in favor of
LT_INIT([disable-static])

---
 configure.ac |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
configure.ac +8 -2
index c1397f0..2157489 100644
@@ -30,8 +30,14 @@ PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
 m4_define([_LT_AC_TAGCONFIG], [])
 m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
 
-AC_DISABLE_STATIC
-ifdef([LT_INIT],[LT_INIT], [AC_PROG_LIBTOOL])
+ifdef(
+	[LT_INIT],
+	[LT_INIT([disable-static])],
+	[
+		AC_PROG_LIBTOOL
+		AC_DISABLE_STATIC
+	]
+)
 
 AC_FUNC_PPOLL
 
Signature · 1 line
1.7.3.4