(install-common-headers): Use __eprintf as indicator for GCC's assert.h.
authorRichard Stallman <rms@gnu.org>
Sat, 3 Oct 1992 02:15:20 +0000 (02:15 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 3 Oct 1992 02:15:20 +0000 (02:15 +0000)
From-SVN: r2310

gcc/Makefile.in

index 43d04f0e143cf8deaab65abae5f0d069a7d6135f..4829aba98666ca1429eb4868fae4d7b6d0bcc7bf 100644 (file)
@@ -1486,7 +1486,9 @@ 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
-       if [ -f $(includedir)/assert.h ] && ! grep "This is GCC's version of assert.h." $(includedir)/assert.h; \
+# Put assert.h in /usr/local/include, so it won't override GNU libc's assert.h.
+# Don't replace the assert.h already there if it is not from GCC.
+       if [ -f $(includedir)/assert.h ] && ! grep "__eprintf" $(includedir)/assert.h; \
        then true; \
        else \
          rm -f $(includedir)/assert.h; \