Re: automake/autoconf for my gtk2-app
- From: Ralf Corsepius <corsepiu faw uni-ulm de>
- To: "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: automake/autoconf for my gtk2-app
- Date: 20 Dec 2002 17:28:54 +0100
Am Fre, 2002-12-20 um 17.56 schrieb Andreas Volz:
Hallo,
I tried to write an automake/autoconf for my gtk2-app. This I the
problem part of my configure.in:
| pkg_modules="gtk+-2.0 >= 1.3.13"
| PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
| AC_SUBST(PACKAGE_CFLAGS)
| AC_SUBST(PACKAGE_LIBS)
./configure returns this errors:
| ./configure: line 4484: syntax error near unexpected token
| `PKG_CHECK_MODULES(PACKAGE,'./configure: line 4484:
| `PKG_CHECK_MODULES(PACKAGE, $pkg_modules)'
Where is the problem?
You probably have a bug elsewhere in your configure.ac
# cat configure.ac
AC_INIT([foo],[bar])
AC_CONFIG_SRCDIR([bla.c])
pkg_modules="gtk+-2.0 >= 1.3.13"
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
AC_OUTPUT
# ./configure
checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0 >= 1.3.13... yes
checking PACKAGE_CFLAGS... -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/Xft2 -I/usr/include/freetype2 -I/usr/X11R6/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking PACKAGE_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
configure: creating ./config.status
Ralf
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]