summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-03 09:26:51 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-03 09:26:51 +0900
commite3172d6796e019a2f68c0d7050a7d509c36fe63f (patch)
tree3fbc82de157f1652e14a85b47f8d240dea6f3d2f /autogen.sh
parent9a4d16de2b1ac8f4992280e1121c835a505e89a4 (diff)
fix autogetn.sh for terminology for gettext
so i've been having trouble building for the past while unless i git clean our build files etc. - it turned out to be the autogen.sh, so i'm using one that works from elm. :)
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh36
1 files changed, 32 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 6d9dc10..b814903 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,10 +3,38 @@
3rm -rf autom4te.cache 3rm -rf autom4te.cache
4rm -f aclocal.m4 ltmain.sh 4rm -f aclocal.m4 ltmain.sh
5 5
6autoreconf --symlink --install || exit 1 6touch README
7touch ABOUT-NLS
7 8
8if [ -z "$NOCONFIGURE" ]; then 9echo "Running autopoint..." ; autopoint -f || :
9 exec ./configure -C "$@" 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;
10fi 28fi
11 29
12exit 0 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