|
Packit Service |
0bf00e |
This module contains various files needed to bootstrap GNOME modules
|
|
Packit Service |
0bf00e |
built from git. It contains the following components:
|
|
Packit Service |
0bf00e |
1. A common "autogen.sh" script that can be used to configure a
|
|
Packit Service |
0bf00e |
source directory checked out from git.
|
|
Packit Service |
0bf00e |
2. Some commonly used macros (quite a small set these days -- macros
|
|
Packit Service |
0bf00e |
should be packaged with their respective modules).
|
|
Packit Service |
0bf00e |
|
|
Packit Service |
0bf00e |
To make use of the common autogen script, create a stub autogen.sh
|
|
Packit Service |
0bf00e |
script in your module that looks something like this:
|
|
Packit Service |
0bf00e |
|
|
Packit Service |
0bf00e |
---- Cut Here ----
|
|
Packit Service |
0bf00e |
#!/bin/sh
|
|
Packit Service |
0bf00e |
srcdir=`dirname $0`
|
|
Packit Service |
0bf00e |
[ -z "$srcdir" ] && srcdir=.
|
|
Packit Service |
0bf00e |
|
|
Packit Service |
0bf00e |
if [ ! -f "$srcdir/configure.ac" ]; then
|
|
Packit Service |
0bf00e |
echo "$srcdir doesn't look like source directory for $PKG_NAME" >&2
|
|
Packit Service |
0bf00e |
exit 1
|
|
Packit Service |
0bf00e |
fi
|
|
Packit Service |
0bf00e |
|
|
Packit Service |
0bf00e |
which gnome-autogen.sh || {
|
|
Packit Service |
0bf00e |
echo "You need to install gnome-common from GNOME Git"
|
|
Packit Service |
0bf00e |
exit 1
|
|
Packit Service |
0bf00e |
}
|
|
Packit Service |
0bf00e |
|
|
Packit Service |
0bf00e |
. gnome-autogen.sh "$@"
|
|
Packit Service |
0bf00e |
---- Cut Here ----
|
|
Packit Service |
0bf00e |
|
|
Packit Service |
0bf00e |
Then put the following in your configure.ac or configure.in file:
|
|
Packit Service |
0bf00e |
AC_CONFIG_MACRO_DIR([m4])
|
|
Packit Service |
0bf00e |
AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \${ACLOCAL_FLAGS}"])
|
|
Packit Service |
0bf00e |
|
|
Packit Service |
0bf00e |
This will make sure that autoconf macros will be found when you
|
|
Packit Service |
0bf00e |
rebuild the package without rerunning autogen.sh.
|
|
Packit Service |
0bf00e |
|