Bug 675609 - "Port bug 673209 to comm-central" [r=mbanner]
authorBlake Winton <bwinton>
Mon, 01 Aug 2011 06:22:00 -0400
changeset 8720 993e496893bba9bd8098ff59362ed8f81fb29939
parent 8719 d745126176278c7c04bfcc90b30568f36f45ca92
child 8721 34d40a7f678b1ca4c261a9632547064e5074a810
push idunknown
push userunknown
push dateunknown
reviewersmbanner
bugs675609, 673209
Bug 675609 - "Port bug 673209 to comm-central" [r=mbanner]
configure.in
--- a/configure.in
+++ b/configure.in
@@ -7193,16 +7193,20 @@ if test -n "$_NON_GLOBAL_ACDEFINES"; the
     for f in $_NON_GLOBAL_ACDEFINES; do
         _EGREP_PATTERN="${_EGREP_PATTERN}$f|"
     done
 fi
 _EGREP_PATTERN="${_EGREP_PATTERN}dummy_never_defined)"
  
   sort confdefs.h | egrep -v "$_EGREP_PATTERN" >> $_CONFIG_TMP
 
+  if test "$?" != 0; then
+    AC_MSG_ERROR([Error outputting config definitions])
+  fi
+
   cat >> $_CONFIG_TMP <<\EOF
 
 #endif /* _COMM_CONFIG_H_ */
 
 EOF
 
   # Only write comm-config.h when something changes (or it doesn't exist)
   if cmp -s $_CONFIG_TMP $_CONFIG_DEFS_H; then
@@ -7214,16 +7218,19 @@ EOF
     echo ==== $_CONFIG_DEFS_H =================================
     cat $_CONFIG_DEFS_H
   fi
 
 dnl Probably shouldn't call this manually but we always want the output of DEFS
 rm -f confdefs.h.save
 mv confdefs.h confdefs.h.save
 egrep -v "$_EGREP_PATTERN" confdefs.h.save > confdefs.h
+if test "$?" != 0; then
+  AC_MSG_ERROR([Error outputting confdefs.h])
+fi
 AC_OUTPUT_MAKE_DEFS()
 MOZ_DEFINES=$DEFS
 AC_SUBST(MOZ_DEFINES)
 rm -f confdefs.h
 mv confdefs.h.save confdefs.h
 
 dnl Load the list of Makefiles to generate.
 dnl   To add new Makefiles, edit allmakefiles.sh.