From: cedric Date: Thu, 14 Apr 2011 14:03:46 +0000 (+0000) Subject: autogen: improve detection of parameter change. X-Git-Tag: 2.0_alpha~43^2~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba1a2fa4b949040d85301e119218d1c683ed83ce;p=framework%2Fuifw%2Fedbus.git autogen: improve detection of parameter change. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@58667 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/autogen.sh b/autogen.sh index 743d752..3563ad3 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,6 +6,28 @@ echo "Running autoconf..." ; autoconf || exit 1 echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1 echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1 +W=0 + +rm -f config.cache-env.tmp +echo "OLD_PARM=\"$@\"" >> config.cache-env.tmp +echo "OLD_CFLAGS=\"$CFLAGS\"" >> config.cache-env.tmp +echo "OLD_PATH=\"$PATH\"" >> config.cache-env.tmp +echo "OLD_PKG_CONFIG_PATH=\"$PKG_CONFIG_PATH\"" >> config.cache-env.tmp +echo "OLD_LDFLAGS=\"$LDFLAGS\"" >> config.cache-env.tmp + +cmp config.cache-env.tmp config.cache-env >> /dev/null +if [ $? -ne 0 ]; then + W=1; +fi + +if [ $W -ne 0 ]; then + echo "Cleaning configure cache..."; + rm -f config.cache config.cache-env + mv config.cache-env.tmp config.cache-env +else + rm -f config.cache-env.tmp +fi + if [ -z "$NOCONFIGURE" ]; then ./configure -C "$@" fi