From: Richard Stallman Date: Sat, 3 Oct 1992 01:09:38 +0000 (+0000) Subject: (install-common-headers): Install assert.h separately, in includedir, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9fcedbef6588f4441d67281cd8f042d42af2dfe1;p=gcc.git (install-common-headers): Install assert.h separately, in includedir, but not if file exists and lacks the magic comment. From-SVN: r2309 --- diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 6ad8ddfd669..43d04f0e143 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1486,9 +1486,13 @@ install-common-headers: install-dir $(USER_H) gvarargs.h gstdarg.h gstddef.h $(INSTALL_DATA) `basename $$file` $$shelllibsubdir/include/`basename $$file`; \ chmod a-x $$shelllibsubdir/include/`basename $$file`; \ done - -rm -f $(includedir)/assert.h - $(INSTALL_DATA) $(srcdir)/assert.h $(includedir)/assert.h - chmod a-x $(libsubdir)/include/assert.h + if [ -f $(includedir)/assert.h ] && ! grep "This is GCC's version of assert.h." $(includedir)/assert.h; \ + then true; \ + else \ + rm -f $(includedir)/assert.h; \ + $(INSTALL_DATA) $(srcdir)/assert.h $(includedir)/assert.h; \ + chmod a-x $(libsubdir)/include/assert.h; \ + fi -rm -f $(libsubdir)/include/varargs.h $(INSTALL_DATA) $(srcdir)/gvarargs.h $(libsubdir)/include/varargs.h chmod a-x $(libsubdir)/include/varargs.h