#334 Incompatibilty with current autotools

closed-fixed
nobody
None
5
2013-01-18
2013-01-17
James Tappin
No

I'm not sure exactly when this started as I have successfully installed the ufraw-cvs package from the Arch User Repository onto Manjaro systems in the past (which can't have been before September), but both the using AUR install and downloading the current CVS and configuring manually give an error at the autogen.sh stage:

./autogen.sh
configure.ac:10: error: 'AM_CONFIG_HEADER': this macro is obsolete.
You should use the 'AC_CONFIG_HEADERS' macro instead.
/usr/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from...
configure.ac:10: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal-1.13: error: echo failed with exit status: 1
configure.ac:8: error: version mismatch. This is Automake 1.13.1,
configure.ac:8: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:8: comes from Automake 1.9.6. You should recreate
configure.ac:8: aclocal.m4 with aclocal and run automake again.
configure.ac:8: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and will soon be removed.
configure.ac:8: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead,
configure.ac:8: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.

And following the suggestion of the error message, running aclocal gives:

aclocal
configure.ac:10: error: 'AM_CONFIG_HEADER': this macro is obsolete.
You should use the 'AC_CONFIG_HEADERS' macro instead.
/usr/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from...
configure.ac:10: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1

Autotools versions installed
automake 1.13.1-1
libtool 2.4.2-7
autoconf 2.69-1

CVS checkout as of about 12:45MST 17/1/2013

Discussion

  • James Tappin
    James Tappin
    2013-01-17

    It is possible to build by replacing line 10 of configure.ac with

    AC_CONFIG_HEADERS(config.h)

    and the running aclocal and ./autogen.sh

     
    • status: open --> closed-fixed
     
  • Hi James.

    Thanks for the bug report. I have fixed it in cvs. Please check the current cvs code for any warnings about deprecated macros and report back.

    Regards,
    Niels Kristian

     
  • James Tappin
    James Tappin
    2013-01-18

    Thanks, that works right now.