diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-06-01 09:18:43 +0200 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-06-11 13:53:01 -0400 |
commit | db214ed923cfe9fc75432d5338e8a3b0d9c83d25 (patch) | |
tree | bc4afafbeacf2d7584bcf7bd326ad88d58991cfd /configure.ac | |
parent | 31317a9ffa31af959dd51eedfa2f31f586687475 (diff) | |
download | gobject-introspection-db214ed923cfe9fc75432d5338e8a3b0d9c83d25.tar.gz |
Make g-ir-compiler find files installed by make install
When ./configure --prefix $HOME/some/where is used gobject-introspection
will happily install the files into $HOME/some/where/data/gir-1.0 but
it will refuse to find them. Apply the same trick as in
girepository/girepository.c:init_globals to find the gir files.
Unifiy the name gir-1.0 in GIR_SUFFIX and use it throughout the
project, introduce GIR_DIR which holds the path to the gir files and
update girparser and transformer.py to look into this path.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c3429307..2567702e 100644 --- a/configure.ac +++ b/configure.ac @@ -108,6 +108,15 @@ GOBJECT_INTROSPECTION_LIBDIR="$EXPANDED_LIBDIR" AC_SUBST(GOBJECT_INTROSPECTION_LIBDIR) AC_DEFINE_UNQUOTED(GOBJECT_INTROSPECTION_LIBDIR,"$GOBJECT_INTROSPECTION_LIBDIR", [Directory prefix for typelib installation]) +#### Directory to install the gir files +GIR_SUFFIX="gir-1.0" +AC_SUBST(GIR_SUFFIX) +AC_DEFINE_UNQUOTED(GIR_SUFFIX, "$GIR_SUFFIX", [Name of the gir directory]) + +GIR_DIR="$EXPANDED_DATADIR/$GIR_SUFFIX" +AC_SUBST(GIR_DIR) +AC_DEFINE_UNQUOTED(GIR_DIR, "$GIR_DIR", [Director prefix for gir installation]) + PKG_CHECK_MODULES(GOBJECT, [gobject-2.0 gio-2.0]) PKG_CHECK_MODULES(GTHREAD, [gthread-2.0]) PKG_CHECK_MODULES(GIO_UNIX, [gio-unix-2.0], have_gio_unix=true, have_gio_unix=false) |