This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcc/f/runtime/configure.in fix for x-compilation


Here's a quick and dirty hack to make sure f/runtime/configure picks up
the right CC when figuring out configuration parameter when building a
cross compiler. Currently the unconditional call to AC_PROG_CC is simply
wrong.

Wed Oct 29 01:01:04 1997  Mumit Khan  <khan@brahma.xraylith.wisc.edu>

	* configure.in: Set CC to CC_FOR_TARGET when cross-compiling.

*** gcc/f/runtime/configure.in.~1	Wed Oct 29 00:58:53 1997
--- gcc/f/runtime/configure.in	Wed Oct 29 01:00:55 1997
*************** AC_INIT(libF77/Version.c)
*** 24,36 ****
  AC_REVISION(1.10)
  
- dnl Checks for programs.
- # For g77 we'll set CC to point at the built gcc, but this will get it into
- # the makefiles
- AC_PROG_CC
  dnl AC_C_CROSS
  dnl Gives misleading `(cached)' message from the check.
  if test "$CROSS";then
    ac_cv_c_cross=yes
  else
    ac_cv_c_cross=no
  fi
--- 24,41 ----
  AC_REVISION(1.10)
  
  dnl AC_C_CROSS
  dnl Gives misleading `(cached)' message from the check.
  if test "$CROSS";then
+   if test "$CC_FOR_TARGET"; then
+     CC="$CC_FOR_TARGET"
+   else
+     CC="../../xgcc -B../../xgcc/"
+   fi
    ac_cv_c_cross=yes
  else
+   dnl Checks for programs.
+   # For g77 we'll set CC to point at the built gcc, but this will get it into
+   # the makefiles
+   AC_PROG_CC
    ac_cv_c_cross=no
  fi

Regards,
Mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]