summaryrefslogtreecommitdiff
path: root/legacy/eina/autogen.sh
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-04-14 09:40:47 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-04-14 09:40:47 +0000
commite342a8b94b1ce4be7f258fb45720b7dc69ffb4cc (patch)
treec16460cccbdc98b3e5af1a1043022aecd5a15d48 /legacy/eina/autogen.sh
parentcc1d028aeed6a53a35c639e24173d3a66171bf1a (diff)
eina: improve autoconf cache usage.
SVN revision: 58655
Diffstat (limited to 'legacy/eina/autogen.sh')
-rwxr-xr-xlegacy/eina/autogen.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/legacy/eina/autogen.sh b/legacy/eina/autogen.sh
index 743d752269..3563ad3579 100755
--- a/legacy/eina/autogen.sh
+++ b/legacy/eina/autogen.sh
@@ -6,6 +6,28 @@ echo "Running autoconf..." ; autoconf || exit 1
6echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1 6echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
7echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1 7echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
8 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
9if [ -z "$NOCONFIGURE" ]; then 31if [ -z "$NOCONFIGURE" ]; then
10 ./configure -C "$@" 32 ./configure -C "$@"
11fi 33fi