bug 474732 - Rerunning configure causes the world to be rebuilt, r=ted
authorRobert Kaiser <kairo@kairo.at>
Tue, 03 Feb 2009 16:29:21 +0100
changeset 24557 332c6aaee89c53421e6ec62e7e36a1d110844cab
parent 24556 c23d77b0d600caf566adb12736ef7adfc3fe106e
child 24558 59f04c021bb893a02f0ad1004a3aace692e405e4
push idunknown
push userunknown
push dateunknown
reviewersted
bugs474732
milestone1.9.2a1pre
bug 474732 - Rerunning configure causes the world to be rebuilt, r=ted
configure.in
js/src/build/autoconf/acoutput-fast.pl
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -8279,21 +8279,24 @@ echo $MAKEFILES | ${PERL} $srcdir/build/
 else
 echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl -nowrap --cygwin-srcdir=$srcdir > conftest.sh
 fi
 . ./conftest.sh
 rm conftest.sh
 
 echo $MAKEFILES > unallmakefiles
 
+mv -f config/autoconf.mk config/autoconf.mk.orig 2> /dev/null
+
 AC_OUTPUT($MAKEFILES)
 
 dnl Prevent the regeneration of cairo-features.h forcing rebuilds of gfx stuff
 if test "$CAIRO_FEATURES_H"; then
   if cmp -s $CAIRO_FEATURES_H "$CAIRO_FEATURES_H".orig; then
+    echo "$CAIRO_FEATURES_H is unchanged"
     mv -f "$CAIRO_FEATURES_H".orig "$CAIRO_FEATURES_H" 2> /dev/null
   else
     rm -f "$CAIRO_FEATURES_H".orig 2> /dev/null
   fi
 fi
 
 dnl ========================================================
 dnl = Setup a nice relatively clean build environment for
@@ -8364,8 +8367,17 @@ ac_configure_args="$ac_configure_args --
 ac_configure_args="$ac_configure_args --with-sync-build-files=$_topsrcdir"
 if test "$MOZ_MEMORY"; then
    ac_configure_args="$ac_configure_args --enable-jemalloc"  
 fi
 AC_OUTPUT_SUBDIRS(js/src)
 ac_configure_args="$_SUBDIR_CONFIG_ARGS"
 
 fi # COMPILE_ENVIRONMENT && !LIBXUL_SDK_DIR
+
+dnl Prevent the regeneration of autoconf.mk forcing rebuilds of the world
+dnl Needs to be at the end to respect possible changes from NSPR configure
+if cmp -b config/autoconf.mk config/autoconf.mk.orig; then
+  echo "config/autoconf.mk is unchanged"
+  mv -f config/autoconf.mk.orig config/autoconf.mk 2> /dev/null
+else
+  rm -f config/autoconf.mk.orig 2> /dev/null
+fi
old mode 100644
new mode 100755
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -5294,14 +5294,24 @@ echo $MAKEFILES | ${PERL} $srcdir/build/
 else
 echo $MAKEFILES | ${PERL} $srcdir/build/autoconf/acoutput-fast.pl -nowrap --cygwin-srcdir=$srcdir > conftest.sh
 fi
 . ./conftest.sh
 rm conftest.sh
 
 echo $MAKEFILES > unallmakefiles
 
+mv -f config/autoconf.mk config/autoconf.mk.orig 2> /dev/null
+
 AC_OUTPUT($MAKEFILES)
 
+dnl Prevent the regeneration of autoconf.mk forcing rebuilds of the world
+if cmp -s config/autoconf.mk config/autoconf.mk.orig; then
+  echo "config/autoconf.mk is unchanged"
+  mv -f config/autoconf.mk.orig config/autoconf.mk 2> /dev/null
+else
+  rm -f config/autoconf.mk.orig 2> /dev/null
+fi
+
 # Produce the js-config script at configure time; see the comments for
 # 'js-config' in Makefile.in.
 AC_MSG_RESULT(invoking make to create js-config script)
 $MAKE js-config