Help with autoconf/Gnome directoryies



Could use some help here, I'm a bit confused with common directories for installing my Gnome application.

My makefiles end up having $(datadir) point to /usr/local/share/, however, all the other applications on my Gnome system seem to be using /usr/share/. Furthermore, libglade is looking for pixmaps in /usr/share/pixmaps (I think) and mine are being installed to /usr/local/share/pixmaps. Can anyone tell me if I'm doing something wrong? It seems like these paths are correct-- that is, a call to gnome_program_locate_file with GNOME_FILE_DOMAIN_APP_DATADIR does indeed point to /usr/local/share/ where my app is. Why is my app the only one in usr/local/share/? I'm on a fresh install of Fedora Core 5.

My configure.ac looks like this:

AC_PREREQ(2.59)

AC_INIT([gnome-foobar], [0.1], [email micahcarrick com])

AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])

AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE

AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")

AC_ISC_POSIX
AC_PROG_CC
AC_HEADER_STDC

AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)

PKG_CHECK_MODULES(GNOME, [libgnome-2.0 libgnomeui-2.0 libglade-2.0 ])
AC_SUBST(GNOME_CFLAGS)
AC_SUBST(GNOME_LIBS)

AC_CONFIG_FILES([Makefile src/Makefile pixmaps/Makefile ])
AC_OUTPUT




and my Makefile in the pixmaps folder looks like this:



pixmapsdir = $(datadir)/pixmaps

pixmaps_DATA = \
   test_image.png

EXTRA_DIST = $(pixmaps_DATA)



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