README
1This module contains various files needed to bootstrap GNOME modules
2built from git. It contains the following components:
3 1. A common "autogen.sh" script that can be used to configure a
4 source directory checked out from git.
5 2. Some commonly used macros (quite a small set these days -- macros
6 should be packaged with their respective modules).
7
8To make use of the common autogen script, create a stub autogen.sh
9script in your module that looks something like this:
10
11---- Cut Here ----
12#!/bin/sh
13srcdir=`dirname $0`
14[ -z "$srcdir" ] && srcdir=.
15
16if [ ! -f "$srcdir/configure.ac" ]; then
17 echo "$srcdir doesn't look like source directory for $PKG_NAME" >&2
18 exit 1
19fi
20
21which gnome-autogen.sh || {
22 echo "You need to install gnome-common from GNOME Git"
23 exit 1
24}
25
26. gnome-autogen.sh "$@"
27---- Cut Here ----
28
29Then put the following in your configure.ac or configure.in file:
30 AC_CONFIG_MACRO_DIR([m4])
31 AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \${ACLOCAL_FLAGS}"])
32
33This will make sure that autoconf macros will be found when you
34rebuild the package without rerunning autogen.sh.
35
36