Package: libtool,autoconf-archive
Tags: upstream

libtool.m4 does not work well with autoconf-archive. Specifically,
LT_INIT and AX_PROG_CXX_FOR_BUILD break when used together:

$ cat configure.ac
AC_INIT(foo,1,,,)
LT_INIT
AX_PROG_CXX_FOR_BUILD
$ aclocal
configure.ac:3: error: LT_LANG: unsupported language: "CXX_FOR_BUILD"
/usr/share/aclocal/libtool.m4:822: LT_LANG is expanded from...
/usr/share/aclocal/ax_prog_cxx_for_build.m4:37: AX_PROG_CXX_FOR_BUILD is 
expanded from...
configure.ac:3: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
$

The error message comes from:
https://sources.debian.org/src/libtool/2.4.6-10/m4/libtool.m4/#L834

The problem can be worked around by defining
_LT_LANG_CXX_FOR_BUILD_CONFIG before issuing AX_PROG_CXX_FOR_BUILD. Can
you come up with a better solution?

Helmut

Reply via email to