Re: pkg-config macro patch



On Fri, 2 Feb 2001, Salmaso Raffaele wrote:

> pkg-config doesn't provide an useful general purpouse macro for
> configure.in. So I hacked a bit some macros and get the one I propose.
> It introduces
> AC_PATH_PKG_CONFIG()
> AC_PKG_CONFIG_MODULE()
> AC_PKG_CONFIG_MODULE_OPTIONAL()
> 
> (Sorry for bad english)

And I have patch (prepared few days ago) which allow compile pkg-config
with system glib and popt. Both ptches probably can allow complet
pkg-config in useable form :)

kloczek
PS. my patch patially fixes the same things but I have no time for ajust
my modifications with yours.
-- 
-----------------------------------------------------------
*Ludzie nie mają problemów, tylko sobie sami je stwarzają*
-----------------------------------------------------------
Tomasz Kłoczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek rudy mif pg gda pl*
diff -Nru pkgconfig-0.5.0/Makefile.am pkgconfig-0.5.0.new/Makefile.am
--- pkgconfig-0.5.0/Makefile.am	Thu Jan  4 02:15:17 2001
+++ pkgconfig-0.5.0.new/Makefile.am	Thu Jan  4 02:14:04 2001
@@ -1,19 +1,18 @@
-SUBDIRS = glib-1.2.8
 
-#m4dir = $(datadir)/aclocal
-#m4_SCRIPTS = pkg.m4
-
-#EXTRA_DIST = $(m4_SCRIPTS)
-EXTRA_DIST = pkg-config.1
+man_MANS = pkg-config.1
 
 bin_PROGRAMS = pkg-config
 
-INCLUDES=-DPKGLIBDIR="\"$(pkglibdir)\"" -I./glib-1.2.8
-
-pkg_config_SOURCES= pkg.h pkg.c 			\
-				 partial-glib.h partial-glib.c 	\
-				 parse.h parse.c main.c		\
-				findme.c findme.h popt.c popt.h poptconfig.c popthelp.c poptint.h poptparse.c
+INCLUDES= -DPKGLIBDIR="\"$(pkglibdir)\"" \
+	 @GLIB_CFLAGS@
 
+pkg_config_SOURCES= \
+	pkg.h \
+	pkg.c \
+	parse.h \
+	parse.c \
+	main.c \
+	findme.c \
+	findme.h
 
-pkg_config_LDADD=glib-1.2.8/libglib.la
+pkg_config_LDADD= @GLIB_LIBS@
diff -Nru pkgconfig-0.5.0/configure.in pkgconfig-0.5.0.new/configure.in
--- pkgconfig-0.5.0/configure.in	Thu Jan  4 02:15:17 2001
+++ pkgconfig-0.5.0.new/configure.in	Thu Jan  4 02:09:12 2001
@@ -1,8 +1,6 @@
 
 AC_INIT(pkg-config.1)
 
-AC_CONFIG_SUBDIRS(glib-1.2.8)
-
 AM_INIT_AUTOMAKE(pkgconfig, 0.5.0)
 
 AM_MAINTAINER_MODE
@@ -10,7 +8,11 @@
 AM_CONFIG_HEADER(config.h)
 
 AM_PROG_LIBTOOL
-
 AC_PROG_CC
 
-AC_OUTPUT([Makefile])
+AC_CHECK_HEADERS(popt.h)
+
+AM_PATH_GLIB(1.2.8,,AC_MSG_ERROR([*** GLIB >= 1.2.8 not installed - please install first ***]))
+AC_CHECK_LIB(popt, main)
+
+AC_OUTPUT(Makefile)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]