This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 2.95 does not look in /usr/local/include
- To: schwab at suse dot de (Andreas Schwab)
- Subject: Re: GCC 2.95 does not look in /usr/local/include
- From: hjl at lucon dot org (H.J. Lu)
- Date: Tue, 27 Jul 1999 08:35:15 -0700 (PDT)
- Cc: gcc at gcc dot gnu dot org
>
> Just in case someone wonders why gcc 2.95 does not find their headers in
> /usr/local/include when prefix != /usr/local I'd suggest to take a look at
> http://egcs.cygnus.com/ml/gcc-patches/1999-07/msg00488.html or
> http://egcs.cygnus.com/ml/gcc-patches/1999-05/msg00477.html. I won't
> report this bug a third time, but IMHO it is still enough time to fix it
> before the release.
>
I sent a patch many years for Linux to make gcc as the vendor compiler and
it was accepted. However, egcs didn't have the patch and I sent it again.
This time I was told egcs wouldn't be used as the vendor compiler and
someone might even remove my patch from the gcc subdirectory. That might be
ok since there was gcc 2.7.2.3. Now egcs == gcc. My patch should go in.
Here is the patch again.
--
H.J. Lu (hjl@gnu.org)
---
Tue Jul 27 08:33:08 1999 H.J. Lu (hjl@gnu.org)
* configure (native_prefix): New, set to /usr
(default_prefix): New, set to /usr/local.
(prefix): Set by ${native_prefix} or ${default_prefix}.
Index: configure
===================================================================
RCS file: /work/cvs/gnu/egcs/configure,v
retrieving revision 1.1.1.17
diff -u -p -r1.1.1.17 configure
--- configure 1999/07/11 18:28:23 1.1.1.17
+++ configure 1999/07/11 18:35:57
@@ -67,7 +67,9 @@ norecursion=
other_options=
package_makefile_frag=
package_makefile_rules_frag=
-prefix=/usr/local
+prefix=NONE
+default_prefix=/usr/local
+native_prefix=/usr
progname=
program_prefix=
program_prefixoption=
@@ -575,6 +577,18 @@ case "${srcdir}" in
exit 1
fi
esac
+
+# Are we using gcc as the native compiler?
+if [ x${prefix} = xNONE ]; then
+ case ${host_alias} in
+ *linux*) # All Linux's use gcc as the native compiler.
+ prefix=${native_prefix}
+ ;;
+ *)
+ prefix=${default_prefix}
+ ;;
+ esac
+fi
# default exec_prefix
case "${exec_prefixoption}" in