* configure.ac [GCC && CROSS_CC] (CC): Assign to CROSS_CC temporarily
(for AC_TRY_COMPILE); restore original value after last AC_TRY_COMPILE.
PICFLAG=
AC_MSG_CHECKING(for PIC compiler flag)
if test "$GCC" = yes; then
+ old_CC="$CC"
+ if test -n "$CROSS_CC"; then
+ CC="$CROSS_CC"
+ fi
+
case "$host" in
*-*-cygwin* | *-*-mingw*)
# Cygwin and Mingw[-w32/64] do not need -fPIC.
if test "$enable_werror" = yes; then
CFLAGS="-Werror $CFLAGS"
fi
+
+ CC="$old_CC"
else
case "$host" in
*-*-hpux*)