[project @ 2004-12-16 10:23:44 by simonmar]
authorsimonmar <unknown>
Thu, 16 Dec 2004 10:23:44 +0000 (10:23 +0000)
committersimonmar <unknown>
Thu, 16 Dec 2004 10:23:44 +0000 (10:23 +0000)
--with-gcc: export the CC environment variable, so the setting gets
picked up by sub-configures.  Perhaps we should be advising people to use

  CC=c:/mingw/bin/gcc ./configure

because that works for all configure scripts, not just the top level one.

Background:

 - We want --with-gcc to do the right thing, because we don't want
   to require Cygwin users to put c:/mingw/bin first on their
   path: that would break their Cygwin environment.

 - The build system should work with *no* gcc on your PATH, as long
   as you use --with-gcc (equivalently, CC=... ./configure).

configure.ac

index 75ab52c..388fa5c 100644 (file)
@@ -622,7 +622,9 @@ AC_ARG_WITH(gcc,
          withval=`cygpath -w ${withval} | sed -e 's@\\\\@/@g' `
        fi
  fi;
- CC="$withval"],
+ CC="$withval"
+ export CC
+ ],
 [WhatGccIsCalled="gcc"]
 )
 AC_SUBST(WhatGccIsCalled)