summaryrefslogtreecommitdiff
path: root/gcc/cppdefault.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-29 18:22:05 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-29 18:22:05 +0000
commit759d75c321eba9440946d84e762a9a76a07109ec (patch)
tree4d2a111087922db4e2d3a161f724d700753b2f5a /gcc/cppdefault.c
parent54f5cbc428090696115bff18507847f6ac3d4090 (diff)
downloadgcc-759d75c321eba9440946d84e762a9a76a07109ec.tar.gz
* cppdefault.c (cpp_include_defaults): Also search PREFIX_INCLUDE_DIR.
* Makefile.in (includedir): Rename to local_includedir. (includedir): Define as $(prefix)/include. * config.in (PREFIX_INCLUDE_DIR): New variable. * configure.in (PREFIX_INCLUDE_DIR): Test for new variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45884 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppdefault.c')
-rw-r--r--gcc/cppdefault.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cppdefault.c b/gcc/cppdefault.c
index 328971ba901..81ee564ec7e 100644
--- a/gcc/cppdefault.c
+++ b/gcc/cppdefault.c
@@ -47,6 +47,9 @@ const struct default_include cpp_include_defaults[]
/* /usr/local/include comes before the fixincluded header files. */
{ LOCAL_INCLUDE_DIR, 0, 0, 1 },
#endif
+#ifdef PREFIX_INCLUDE_DIR
+ { PREFIX_INCLUDE_DIR, 0, 0, 1 },
+#endif
#ifdef GCC_INCLUDE_DIR
/* This is the dir for fixincludes and for gcc's private headers. */
{ GCC_INCLUDE_DIR, "GCC", 0, 0 },