gtk + autoconf
- From: "Daniel Fetchinson" <fetchinson googlemail com>
- To: gtk-app-devel-list gnome org
- Subject: gtk + autoconf
- Date: Sat, 5 Apr 2008 13:22:25 -0700
Hi folks,
I've written a gtk app which I'd like to distribute in source format
but I don't have too much experience with autoconf and friends. I
compile the program manually like this:
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT myprog.o -MD -MP -MF
".deps/myprog.Tpo" `pkg-config --cflags gtk+-2.0` -c -o myprog.o
myprog.c
gcc -g -O2 -o myprog myprog.o -lXrandr -lXrender -lX11 `pkg-config
--libs gtk+-2.0`
and this is the configure.ac that I have currently:
AC_PREREQ([2.57])
AC_INIT(myprog,[0.1], [http://mysite/],myprog)
AM_INIT_AUTOMAKE([dist-bzip2])
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
AC_PROG_CC
AC_PROG_INSTALL
PKG_CHECK_MODULES(XRANDR, xrandr >= 1.2.0 xrender x11)
AC_SUBST(XRANDR_CFLAGS)
AC_SUBST(XRANDR_LIBS)
XORG_MANPAGE_SECTIONS
XORG_RELEASE_VERSION
AC_OUTPUT([Makefile])
I got this by copying configure.ac from some other project. As you can
see the X dependencies are there but how do I put in the right gtk
flags and dependencies?
Sorry if this is off topic but autoconf and friends seem like a giant
forest and I'm kinda lost :)
Cheers,
Daniel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]