Bug#683960: autoheader: doesn't cope with multiple input files for AC_CONFIG_HEADERS
# This seems like a feature request rather than a bug report to me. # Change severity to wishlist. severity 683960 wishlist thanks -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#683960: autoheader: doesn't cope with multiple input files for AC_CONFIG_HEADERS
* Ben Pfaff b...@cs.stanford.edu, 2012-08-05, 13:02: I wanted to use AC_CONFIG_HEADERS with multiple input files. I hoped that autoheader will generate the first one for me. What it did instead was to generate a file with a : in name: | $ cat configure.ac | AC_INIT([dummy]) | AC_CONFIG_HEADERS([config.h:config.h.in:config.aux.h]) | AC_OUTPUT | | $ ls -1 config.* | config.aux.h | | $ autoheader | | $ autoconf | | $ ls -1 config.* | config.aux.h | config.h.in:config.aux.h | | $ ./configure | configure: creating ./config.status | config.status: error: cannot find input file: `config.h.in' It looks like it was reported upstream years ago: http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00012.html Can you use multiple calls to AC_CONFIG_HEADERS to solve your problem? The autoconf manual says that AC_CONFIG_HEADERS may be called any number of times, and that autoheader applies to the first invocation. I've already worked around this by using AH_BOTTOM, so I don't need _another_ work-around. :) I just want autoheader to do the right thing. But no, if you have multiple AC_OUTPUT for the same output file, all you get is: $ autoconf configure.ac:3: error: `config.h' is already registered with AC_CONFIG_HEADERS. ../../lib/autoconf/status.m4:713: AC_CONFIG_HEADERS is expanded from... configure.ac:3: the top level autom4te: /usr/bin/m4 failed with exit status: 1 -- Jakub Wilk -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#683960: autoheader: doesn't cope with multiple input files for AC_CONFIG_HEADERS
Package: autoconf Version: 2.69-1 Tags: upstream I wanted to use AC_CONFIG_HEADERS with multiple input files. I hoped that autoheader will generate the first one for me. What it did instead was to generate a file with a : in name: | $ cat configure.ac | AC_INIT([dummy]) | AC_CONFIG_HEADERS([config.h:config.h.in:config.aux.h]) | AC_OUTPUT | | $ ls -1 config.* | config.aux.h | | $ autoheader | | $ autoconf | | $ ls -1 config.* | config.aux.h | config.h.in:config.aux.h | | $ ./configure | configure: creating ./config.status | config.status: error: cannot find input file: `config.h.in' It looks like it was reported upstream years ago: http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00012.html -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'experimental') Architecture: i386 (x86_64) Foreign Architectures: amd64 Kernel: Linux 3.5-trunk-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages autoconf depends on: ii debianutils 4.3.3 ii m4 1.4.16-3 ii perl 5.14.2-12 Versions of packages autoconf recommends: ii automake [automaken] 1:1.11.6-1 ii automake1.10 [automaken] 1:1.10.3-3 ii automake1.7 [automaken] 1.7.9-10 ii automake1.9 [automaken] 1.9.6+nogfdl-4 Versions of packages autoconf suggests: ii autoconf-archive 20111221-1 ii autoconf-doc 2.69-1 pn autoconf2.13 none ii gettext 0.18.1.1-9 ii gnu-standards 2010.03.11-1 ii libtool 2.4.2-1.1 -- Jakub Wilk -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#683960: autoheader: doesn't cope with multiple input files for AC_CONFIG_HEADERS
Jakub Wilk jw...@debian.org writes: Package: autoconf Version: 2.69-1 Tags: upstream I wanted to use AC_CONFIG_HEADERS with multiple input files. I hoped that autoheader will generate the first one for me. What it did instead was to generate a file with a : in name: | $ cat configure.ac | AC_INIT([dummy]) | AC_CONFIG_HEADERS([config.h:config.h.in:config.aux.h]) | AC_OUTPUT | | $ ls -1 config.* | config.aux.h | | $ autoheader | | $ autoconf | | $ ls -1 config.* | config.aux.h | config.h.in:config.aux.h | | $ ./configure | configure: creating ./config.status | config.status: error: cannot find input file: `config.h.in' It looks like it was reported upstream years ago: http://lists.gnu.org/archive/html/bug-autoconf/2007-06/msg00012.html Can you use multiple calls to AC_CONFIG_HEADERS to solve your problem? The autoconf manual says that AC_CONFIG_HEADERS may be called any number of times, and that autoheader applies to the first invocation. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org