Skip to content

libmypaint fails to reconfigure with autoconf 2.70 #178

Description

@hosiet

Environment: Debian Unstable/Sid with autoconf 2.70 installed

Downstream bug report: https://bugs.debian.org/978854

% autoreconf --install --verbose --force              
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4macros
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4macros'.
libtoolize: copying file 'm4macros/libtool.m4'
libtoolize: copying file 'm4macros/ltoptions.m4'
libtoolize: copying file 'm4macros/ltsugar.m4'
libtoolize: copying file 'm4macros/ltversion.m4'
libtoolize: copying file 'm4macros/lt~obsolete.m4'
autoreconf: running: intltoolize --copy --force
ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.
autoreconf: error: intltoolize failed with exit status: 1
% autoconf --version
autoconf (GNU Autoconf) 2.70
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>, <https://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.

I have a very dirty and ugly workaround as shown below:

diff --git a/configure.ac b/configure.ac
index 1aae7ab..b6e1e06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -245,7 +245,7 @@ if test "x$enable_i18n" != "xno"; then
   AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
                      [The prefix for our gettext translation domains.])
   AC_SUBST(GETTEXT_PACKAGE)
-  IT_PROG_INTLTOOL
+IT_PROG_INTLTOOL
   AM_GLIB_GNU_GETTEXT
 
   dnl Debian: stdlib

The reasoning behind the patch is shown below:

% intltoolize --copy --force --debug
intltoolize: enabling shell trace mode
+ test -f configure.ac
+ configure=configure.ac
+ files=po/Makefile.in.in
+ test -z 
+ egrep ^(AC|IT)_PROG_INTLTOOL configure.ac
+ echo ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.
ERROR: 'IT_PROG_INTLTOOL' must appear in configure.ac for intltool to work.
+ exit 1

It seems that intltoolize requires the IT_PROG_INTLTOOL macro to be located at the beginning of the line. This is understandable because the macro is not supposed to be located inside an if statement (which is conditional). However, this does not suit the need of libmypaint project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions