summaryrefslogtreecommitdiff
path: root/legacy/ethumb
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-04-14 14:03:46 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-04-14 14:03:46 +0000
commitdf4bef8bdff4b1c08c6b89c08c0e9372dbcc74a0 (patch)
treecf5b3acfcfc22121364d077161238501cdf17fab /legacy/ethumb
parentd0e889fbe7e4e53950d36c12c6690eedc478505d (diff)
autogen: improve detection of parameter change.
SVN revision: 58667
Diffstat (limited to 'legacy/ethumb')
-rwxr-xr-xlegacy/ethumb/autogen.sh27
1 files changed, 23 insertions, 4 deletions
diff --git a/legacy/ethumb/autogen.sh b/legacy/ethumb/autogen.sh
index 5bbd4d9c50..3563ad3579 100755
--- a/legacy/ethumb/autogen.sh
+++ b/legacy/ethumb/autogen.sh
@@ -1,14 +1,33 @@
1#!/bin/sh 1#!/bin/sh
2 2
3rm -rf autom4te.cache
4rm -f aclocal.m4 ltmain.sh
5
6echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1 3echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1
7echo "Running autoheader..." ; autoheader || exit 1 4echo "Running autoheader..." ; autoheader || exit 1
8echo "Running autoconf..." ; autoconf || exit 1 5echo "Running autoconf..." ; autoconf || exit 1
9echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1 6echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
10echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1 7echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
11 8
9W=0
10
11rm -f config.cache-env.tmp
12echo "OLD_PARM=\"$@\"" >> config.cache-env.tmp
13echo "OLD_CFLAGS=\"$CFLAGS\"" >> config.cache-env.tmp
14echo "OLD_PATH=\"$PATH\"" >> config.cache-env.tmp
15echo "OLD_PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\"" >> config.cache-env.tmp
16echo "OLD_LDFLAGS=\"$LDFLAGS\"" >> config.cache-env.tmp
17
18cmp config.cache-env.tmp config.cache-env >> /dev/null
19if [ $? -ne 0 ]; then
20 W=1;
21fi
22
23if [ $W -ne 0 ]; then
24 echo "Cleaning configure cache...";
25 rm -f config.cache config.cache-env
26 mv config.cache-env.tmp config.cache-env
27else
28 rm -f config.cache-env.tmp
29fi
30
12if [ -z "$NOCONFIGURE" ]; then 31if [ -z "$NOCONFIGURE" ]; then
13 ./configure "$@" 32 ./configure -C "$@"
14fi 33fi