File: README

package info (click to toggle)
gnome-common 3.18.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 880 kB
  • sloc: sh: 802; makefile: 31
file content (35 lines) | stat: -rw-r--r-- 1,100 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
This module contains various files needed to bootstrap GNOME modules
built from git.  It contains the following components:
 1. A common "autogen.sh" script that can be used to configure a
    source directory checked out from git.
 2. Some commonly used macros (quite a small set these days -- macros
    should be packaged with their respective modules).

To make use of the common autogen script, create a stub autogen.sh
script in your module that looks something like this:

---- Cut Here ----
#!/bin/sh
srcdir=`dirname $0`
[ -z "$srcdir" ] && srcdir=.

if [ ! -f "$srcdir/configure.ac" ]; then
 echo "$srcdir doesn't look like source directory for $PKG_NAME" >&2
 exit 1
fi

which gnome-autogen.sh || {
	echo "You need to install gnome-common from GNOME Git"
	exit 1
}

. gnome-autogen.sh "$@"
---- Cut Here ----

Then put the following in your configure.ac or configure.in file:
  AC_CONFIG_MACRO_DIR([m4])
  AC_SUBST([ACLOCAL_AMFLAGS], ["-I $ac_macro_dir \${ACLOCAL_FLAGS}"])

This will make sure that autoconf macros will be found when you
rebuild the package without rerunning autogen.sh.