summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-11-12 00:09:06 +0100
committerBoris Faure <billiob@gmail.com>2017-11-12 00:09:06 +0100
commitc51d0095f9f107edd79c5cb63d343c347efb0471 (patch)
treec8cd074ace3a4a0a4984c7892873fb5fb04bd6d2 /autogen.sh
parent2c86e66d044ec49cee7520e8a194f08fb961bbec (diff)
get rid of automake
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh41
1 files changed, 3 insertions, 38 deletions
diff --git a/autogen.sh b/autogen.sh
index b814903..6531487 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,40 +1,5 @@
1#!/bin/sh 1#!/bin/sh
2 2
3rm -rf autom4te.cache 3rm -rf build
4rm -f aclocal.m4 ltmain.sh 4meson $@ . build
5 5mesonconf build
6touch README
7touch ABOUT-NLS
8
9echo "Running autopoint..." ; autopoint -f || :
10echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1
11echo "Running autoheader..." ; autoheader || exit 1
12echo "Running autoconf..." ; autoconf || exit 1
13echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
14echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
15
16W=0
17
18rm -f config.cache-env.tmp
19echo "OLD_PARM=\"$@\"" >> config.cache-env.tmp
20echo "OLD_CFLAGS=\"$CFLAGS\"" >> config.cache-env.tmp
21echo "OLD_PATH=\"$PATH\"" >> config.cache-env.tmp
22echo "OLD_PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\"" >> config.cache-env.tmp
23echo "OLD_LDFLAGS=\"$LDFLAGS\"" >> config.cache-env.tmp
24
25cmp config.cache-env.tmp config.cache-env >> /dev/null
26if [ $? -ne 0 ]; then
27 W=1;
28fi
29
30if [ $W -ne 0 ]; then
31 echo "Cleaning configure cache...";
32 rm -f config.cache config.cache-env
33 mv config.cache-env.tmp config.cache-env
34else
35 rm -f config.cache-env.tmp
36fi
37
38if [ -z "$NOCONFIGURE" ]; then
39 ./configure -C "$@"
40fi