summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-03-11 02:50:25 +0200
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2010-03-11 04:12:47 +0200
commit370808cdcaa82d9529a785cc38a34c1989136e67 (patch)
treefc5dfd67d82ef31c10e3ac9b5cfb99de13bd0823 /autogen.sh
parentbe486b72eb0695684307e1c169b7a76337d12581 (diff)
Generate stubs.c at autogen time from a template file.autogen-stubs
It's easier to add a line to a list of functions in a template file than copy-pasting five lines of template from other entries and editing configure.ac.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 904cd67..44e664c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,6 +6,8 @@ test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
+m4 -P stubs.c.m4 >stubs.c
+
autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?