[bug] pkg-config-0.21's AM_INIT_AUTOMAKE out of sequence in
configure.in
snowcrash+pkg-config
schneecrash+pkg-config at gmail.com
Tue Dec 5 19:43:29 PST 2006
i'm building pkg-config-0.21 on osx 10.4.8, with,
gcc --version
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
build 5367)
autoconf --version
autoconf (GNU Autoconf) 2.61
automake --version
glibtool --automake (GNU automake) 1.10
glibtool --version
ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
after,
glibtoolize --force --copy
then,
autoreconf -f -i
fails at,
...
configure.in:106: AC_CONFIG_AUX_DIR must be called before AM_INIT_AUTOMAKE...
configure.in:4: ... AM_INIT_AUTOMAKE called here
autoreconf: automake failed with exit status: 1
changing/moving in,
vi configure.in
---------------------
@4
- AM_INIT_AUTOMAKE(pkg-config, 0.21)
@110
+ AM_INIT_AUTOMAKE(pkg-config, 0.21)
AC_FUNC_ALLOCA
---------------------
now,
autoreconf -f -i
completes ok, although a bit 'noisy',
configure.in:391: warning: AC_CACHE_VAL(glib_cv_sane_realloc, ...):
suspicious presence of an AC_DEFINE in the second argument, where no
actions should be taken
autoconf/general.m4:1905: AC_CACHE_VAL is expanded from...
configure.in:391: the top level
configure.in:391: warning: AC_CACHE_VAL(glib_cv_sane_realloc, ...):
suspicious presence of an AC_DEFINE in the second argument, where no
actions should be taken
autoconf/general.m4:1905: AC_CACHE_VAL is expanded from...
configure.in:391: the top level
configure.in:391: warning: AC_CACHE_VAL(glib_cv_sane_realloc, ...):
suspicious presence of an AC_DEFINE in the second argument, where no
actions should be taken
autoconf/general.m4:1905: AC_CACHE_VAL is expanded from...
configure.in:391: the top level
configure.in:391: warning: AC_CACHE_VAL(glib_cv_sane_realloc, ...):
suspicious presence of an AC_DEFINE in the second argument, where no
actions should be taken
autoconf/general.m4:1905: AC_CACHE_VAL is expanded from...
configure.in:391: the top level
autoheader: WARNING: Using auxiliary files such as `acconfig.h',
`config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a
template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be
produced, see the
autoheader: WARNING: documentation.
configure.in:391: warning: AC_CACHE_VAL(glib_cv_sane_realloc, ...):
suspicious presence of an AC_DEFINE in the second argument, where no
actions should be taken
autoconf/general.m4:1905: AC_CACHE_VAL is expanded from...
configure.in:391: the top level
configure.in:391: warning: AC_CACHE_VAL(glib_cv_sane_realloc, ...):
suspicious presence of an AC_DEFINE in the second argument, where no
actions should be taken
autoconf/general.m4:1905: AC_CACHE_VAL is expanded from...
configure.in:391: the top level
Makefile.am:68: BUILT_SOURCES multiply defined in condition TRUE ...
Makefile.am:11: ... `BUILT_SOURCES' previously defined here
Makefile.am:86: noinst_DATA multiply defined in condition TRUE ...
Makefile.am:63: ... `noinst_DATA' previously defined here
Makefile.am:124: whitespace following trailing backslash
autoheader: WARNING: Using auxiliary files such as `acconfig.h',
`config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a
template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be
produced, see the
autoheader: WARNING: documentation.
then,
configure
make
make install
results in an ok build,
pkg-config --version --debug
Option --debug seen
Error printing enabled by default due to use of --version, --libs,
--cflags, --libs-only-l, --libs-only-L, --libs-only-other,
--cflags-only-I, --cflags-only-other or --list. Value of
--silence-errors: 0
Error printing enabled
0.21
More information about the pkg-config
mailing list