Bug 134 - Pkgconfig (CVS Version) does not compile
Summary: Pkgconfig (CVS Version) does not compile
Status: RESOLVED FIXED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high blocker
Assignee: Havoc Pennington
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-31 07:45 UTC by Alberto Simões
Modified: 2005-02-20 04:36 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Alberto Simões 2003-10-31 07:45:10 UTC
Tried with autoconf 2.57 and 2.13.

[ambs@eremita pkgconfig]$ make
make  all-recursive
make[1]: Entering directory `/home/ambs/MISC-CVS/pkgconfig/pkgconfig'
Making all in glib-1.2.8
make[2]: Entering directory
`/home/ambs/MISC-CVS/pkgconfig/pkgconfig/glib-1.2.8'cd . && autoconf
configure.in:20: /usr/bin/m4: Non-numeric argument to built-in `divert'
autom4te: /usr/bin/m4 failed with exit status: 1
make[2]: *** [configure] Error 1
make[2]: Leaving directory `/home/ambs/MISC-CVS/pkgconfig/pkgconfig/glib-1.2.8'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ambs/MISC-CVS/pkgconfig/pkgconfig'
make: *** [all-recursive-am] Error 2
Comment 1 Alberto Simões 2003-11-04 07:33:05 UTC
glib 2.x uses

# GLIB_AC_DIVERT_BEFORE_HELP(STUFF)
# ---------------------------------
# Put STUFF early enough so that they are available for $ac_help expansion.
# Handle both classic (<= v2.13) and modern autoconf
AC_DEFUN([GLIB_AC_DIVERT_BEFORE_HELP],
[ifdef([m4_divert_text], [m4_divert_text([NOTICE],[$1])],
       [ifdef([AC_DIVERT], [AC_DIVERT([NOTICE],[$1])],
              [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
$1
AC_DIVERT_POP()])])])

in acglib.m4.
Using this GLIB_AC_DIVERT_BEFORE_HELP([ ... ]) instead of the AC_DIVERT_PUSH ..
AC_DIVERT_POP and latest autoconf/automake solves the DIVERT problem, but I have
another :D

AM_PROG_LIBTOOL gives me:

loading cache /dev/null within ltconfig
ltconfig: you must specify a host type if you use `--no-verify'
Try `ltconfig --help' for more information.
configure: error: libtool configure failed
configure: error: /bin/sh './configure' failed for glib-1.2.8
Comment 2 Tollef Fog Heen 2005-02-20 23:36:18 UTC
Fixed; pkgconfig now wants at least automake 1.7 and autoconf 2.5.  Patches for
glib also added.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.