File: libtool.patch

package info (click to toggle)
liblangtag 0.6.8-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 6,780 kB
  • sloc: xml: 62,392; ansic: 12,827; sh: 4,600; makefile: 811
file content (16 lines) | stat: -rw-r--r-- 644 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- liblangtag-0.6.7.orig/configure.ac
+++ liblangtag-0.6.7/configure.ac
@@ -337,8 +337,11 @@
 if test "x$enable_modules" != "xno"; then
 	AC_MSG_CHECKING(for the suffix of module shared libraries)
 	export SED
-	shrext_cmds=`${SLIBTOOL:-libtool} --config | grep '^shrext_cmds='`
-	eval $shrext_cmds
+	if test "x$shrext_cmds" = x; then
+		dnl This is usually set up by LT_INIT. Fall back to a system libtool if not.
+		shrext_cmds=`${SLIBTOOL:-libtool} --config | grep '^shrext_cmds='`
+		eval $shrext_cmds
+	fi
 	module=yes eval std_shrext=$shrext_cmds
 	lt_module_suffix=`echo $std_shrext | sed 's/^\.//'`
 	AC_MSG_RESULT(.$lt_module_suffix)