Allow configuration of gio-module-dir
authorAlexander Larsson <alexl@redhat.com>
Tue, 27 Nov 2007 12:39:14 +0000 (12:39 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Tue, 27 Nov 2007 12:39:14 +0000 (12:39 +0000)
2007-11-27  Alexander Larsson  <alexl@redhat.com>

        * configure.in:
Allow configuration of gio-module-dir

        * gio-2.0.pc.in:
Export giomodules location as giomodule variable

2007-11-27  Alexander Larsson  <alexl@redhat.com>

        * Makefile.am:
        * fam/Makefile.am:
        * inotify/Makefile.am:
Use the user-specified giomoduledir

svn path=/trunk/; revision=5951

ChangeLog
configure.in
gio-2.0.pc.in
gio/ChangeLog
gio/Makefile.am
gio/fam/Makefile.am
gio/inotify/Makefile.am

index 96b268b..9adc1bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-11-27  Alexander Larsson  <alexl@redhat.com>
+
+        * configure.in:
+       Allow configuration of gio-module-dir
+       
+        * gio-2.0.pc.in:
+       Export giomodules location as giomodule variable
+
 2007-11-26  Matthias Clasen  <mclasen@redhat.com>
 
        * tests/markup-collect.c: Add some tests for invalid booleans
index 2048a4e..b1dd4b2 100644 (file)
@@ -1448,6 +1448,17 @@ esac
 AC_MSG_RESULT($GIO)
 AC_SUBST(GIO)
 
+dnl *********************************
+dnl *** Directory for GIO modules ***
+dnl *********************************
+
+AC_ARG_WITH(gio-module-dir,
+           [AC_HELP_STRING([--with-gio-module-dir=PATH],
+                           [Load gio modules from this directory [LIBDIR/gio/modules]])],
+           [],
+          [with_gio_module_dir='${libdir}/gio/modules'])
+GIO_MODULE_DIR=$with_gio_module_dir
+AC_SUBST(GIO_MODULE_DIR)
 
 dnl **********************************
 dnl *** Check for libselinux (GIO) ***
index 4c62e34..0396af5 100644 (file)
@@ -3,6 +3,8 @@ exec_prefix=@exec_prefix@
 libdir=@libdir@
 includedir=@includedir@
 
+giomoduledir=@GIO_MODULE_DIR@
+
 Name: GIO
 Description: glib I/O library
 Version: @VERSION@
index 9caf92d..07725e2 100644 (file)
@@ -1,5 +1,12 @@
 2007-11-27  Alexander Larsson  <alexl@redhat.com>
 
+        * Makefile.am:
+        * fam/Makefile.am:
+        * inotify/Makefile.am:
+       Use the user-specified giomoduledir
+
+2007-11-27  Alexander Larsson  <alexl@redhat.com>
+
        * Makefile.am
        * gio.h:
        Add catch-all gio.h header
index b45874a..4141162 100644 (file)
@@ -14,7 +14,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/gmodule                         \
        $(GLIB_DEBUG_FLAGS)                             \
        -DG_DISABLE_DEPRECATED                          \
-       -DGIO_MODULE_DIR=\"$(libdir)/gio/modules\"      
+       -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  
 
 lib_LTLIBRARIES = libgio-2.0.la
 
index 0e8b799..053c741 100644 (file)
@@ -21,7 +21,7 @@ libgiofam_la_CFLAGS = \
        -I$(top_srcdir)/glib            \
        -I$(top_srcdir)/gmodule         \
        -I$(top_srcdir)/gio             \
-       -DGIO_MODULE_DIR=\"$(libdir)/gio/modules\"  \
+       -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  \
        -DG_DISABLE_DEPRECATED
 
 libgiofam_la_LDFLAGS = $(module_flags)
index 191f27d..765437e 100644 (file)
@@ -29,6 +29,6 @@ libinotify_la_CFLAGS = \
        -I$(top_srcdir)/glib            \
        -I$(top_srcdir)/gmodule         \
        -I$(top_srcdir)/gio             \
-       -DGIO_MODULE_DIR=\"$(libdir)/gio/modules\"  \
+       -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  \
        -DG_DISABLE_DEPRECATED