summaryrefslogtreecommitdiff
path: root/gcc/cppdefault.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>2001-09-29 11:22:05 -0700
committerPer Bothner <bothner@gcc.gnu.org>2001-09-29 11:22:05 -0700
commit793e95585c1f86aa89e1fab041a5438032b1a77e (patch)
tree4d2a111087922db4e2d3a161f724d700753b2f5a /gcc/cppdefault.c
parentd15a5c7ca14991ad98aa0ed071a2368c5c3a1a76 (diff)
downloadgcc-793e95585c1f86aa89e1fab041a5438032b1a77e.tar.gz
cppdefault.c (cpp_include_defaults): Also search PREFIX_INCLUDE_DIR.
* 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. From-SVN: r45884
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 },