+2000-05-29 Martin Baulig <baulig@suse.de>
+
+ * gnome-common.m4, Makefile.am: Install macros to
+ `$(datadir)/aclocal/gnome-macros' when INSIDE_GNOME_COMMON.
+
+ * gnome-autogen.sh: New file. When using gnome-common instead
+ of the macros/ directory, use this in your autogen.sh.
+
2000-05-15 Russell Steinthal <rms39@columbia.edu>
* gnome-pilot.m4 (PILOT_LIBS): An attempt to fix the gnome-pilot
linger.m4 \
need-declaration.m4
-EXTRA_DIST=$(MACROS) gnome-common.m4 autogen.sh
+EXTRA_DIST=$(MACROS) gnome-common.m4 autogen.sh gnome-autogen.sh
MAINTAINERCLEANFILES=macros.dep
@MAINT@macros.dep: Makefile.am
@MAINT@ @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=macros/%)' > $@
if INSIDE_GNOME_COMMON
-gnome_aclocaldir = $(datadir)/aclocal/gnome
+gnome_aclocaldir = $(datadir)/aclocal/gnome-macros
gnome-macros.dep: Makefile.am
@echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=$(gnome_aclocaldir)/%)' > $@
gnome_aclocal_DATA = $(MACROS) gnome-macros.dep gnome-common.m4 autogen.sh
+bin_SCRIPTS = gnome-autogen.sh
+
endif
--- /dev/null
+#!/bin/sh
+
+export GNOME_COMMON_MACROS_DIR=`gnome-config --datadir`/aclocal/gnome-macros
+export ACLOCAL_FLAGS="-I $GNOME_COMMON_MACROS_DIR $ACLOCAL_FLAGS"
+. $GNOME_COMMON_MACROS_DIR/autogen.sh
+
AC_DEFUN([GNOME_COMMON_INIT],
[
- GNOME_ACLOCAL_DIR=`$ACLOCAL --print-ac-dir`/gnome
+ GNOME_ACLOCAL_DIR=`$ACLOCAL --print-ac-dir`/gnome-macros
AC_SUBST(GNOME_ACLOCAL_DIR)
ACLOCAL="$ACLOCAL -I $GNOME_ACLOCAL_DIR"