On Mon, Jul 27, 2009 at 08:37:39PM +0200, Paolo Bonzini wrote:
> cat > configure.ac << \EOF
> AC_INIT
> AM_PATH_GLIB_2_0(2.0.0)
> AC_OUTPUT(Makefile)
> EOF
Just use PKG_CHECK_MODULES instead, as in the attached example. It
works fine.
Now please answer my question:
Which package are you trying to build?
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
AC_INIT([hello],[1.0])
AM_INIT_AUTOMAKE([foreign])
AC_PROG_CC_STDC
AM_PROG_CC_C_O
AC_PROG_INSTALL
PKG_CHECK_MODULES([GLIB],[glib-2.0 >= 2.0.0])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
bin_PROGRAMS = hello
hello_SOURCES = hello.c
hello_CFLAGS = $(GLIB_CFLAGS)
hello_LDADD = $(GLIB_LIBS)
#include <glib.h>
#include <stdio.h>
int main()
{
printf ("%s\n", g_strdup ("Hello, world!"));
}
_______________________________________________
fedora-mingw mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw