mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
* configure.in: Don't get CC from the host Makefile fragment if we
can find gcc in PATH, or if this is a Canadian Cross. Move the Solaris test for /usr/ucb/cc to the post target script, just after the compiler sanity test.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
Thu Feb 15 17:42:25 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* configure.in: Don't get CC from the host Makefile fragment if we
|
||||||
|
can find gcc in PATH, or if this is a Canadian Cross. Move the
|
||||||
|
Solaris test for /usr/ucb/cc to the post target script, just after
|
||||||
|
the compiler sanity test.
|
||||||
|
|
||||||
Wed Feb 14 16:57:40 1996 Ian Lance Taylor <ian@cygnus.com>
|
Wed Feb 14 16:57:40 1996 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
* config.sub: Merge with FSF.
|
* config.sub: Merge with FSF.
|
||||||
|
71
configure.in
71
configure.in
@ -128,9 +128,20 @@ case "${host}" in
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# See if we can extract a definition of CC from the fragment.
|
# If we aren't going to be using gcc, see if we can extract a definition
|
||||||
if [ -z "${CC}" ]; then
|
# of CC from the fragment.
|
||||||
if [ -n "${host_makefile_frag}" -a -f "${srcdir}/${host_makefile_frag}" ]; then
|
if [ -z "${CC}" -a "${build}" = "${host}" ]; then
|
||||||
|
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
|
||||||
|
found=
|
||||||
|
for dir in $PATH; do
|
||||||
|
test -z "$dir" && dir=.
|
||||||
|
if test -f $dir/gcc; then
|
||||||
|
found=yes
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$save_ifs"
|
||||||
|
if [ -z "${found}" -a -n "${host_makefile_frag}" -a -f "${srcdir}/${host_makefile_frag}" ]; then
|
||||||
xx=`sed -n -e 's/^[ ]*CC[ ]*=[ ]*\(.*\)$/\1/p' < ${srcdir}/${host_makefile_frag}`
|
xx=`sed -n -e 's/^[ ]*CC[ ]*=[ ]*\(.*\)$/\1/p' < ${srcdir}/${host_makefile_frag}`
|
||||||
if [ -n "${xx}" ] ; then
|
if [ -n "${xx}" ] ; then
|
||||||
CC=$xx
|
CC=$xx
|
||||||
@ -138,33 +149,6 @@ if [ -z "${CC}" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# The Solaris /usr/ucb/cc compiler does not appear to work.
|
|
||||||
case "${host}" in
|
|
||||||
sparc-sun-solaris2*)
|
|
||||||
if [ "`/usr/bin/which ${CC-cc}`" = "/usr/ucb/cc" ] ; then
|
|
||||||
could_use=
|
|
||||||
[ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin"
|
|
||||||
if [ -d /opt/cygnus/bin ] ; then
|
|
||||||
if [ "$could_use" = "" ] ; then
|
|
||||||
could_use="/opt/cygnus/bin"
|
|
||||||
else
|
|
||||||
could_use="$could_use or /opt/cygnus/bin"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [ "$could_use" = "" ] ; then
|
|
||||||
echo "Warning: compilation may fail because you're using"
|
|
||||||
echo "/usr/ucb/cc. You should change your PATH or CC "
|
|
||||||
echo "variable and rerun configure."
|
|
||||||
else
|
|
||||||
echo "Warning: compilation may fail because you're using"
|
|
||||||
echo "/usr/ucb/cc, when you should use the C compiler from"
|
|
||||||
echo "$could_use. You should change your"
|
|
||||||
echo "PATH or CC variable and rerun configure."
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# We default to --with-shared on platforms where -fpic is meaningless.
|
# We default to --with-shared on platforms where -fpic is meaningless.
|
||||||
# Well, we don't yet, but we will.
|
# Well, we don't yet, but we will.
|
||||||
if false && [ "${host}" = "${target}" ] && [ x${enable_shared} = x ]; then
|
if false && [ "${host}" = "${target}" ] && [ x${enable_shared} = x ]; then
|
||||||
@ -710,6 +694,33 @@ else
|
|||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f conftest*
|
||||||
|
|
||||||
|
# The Solaris /usr/ucb/cc compiler does not appear to work.
|
||||||
|
case "${host}" in
|
||||||
|
sparc-sun-solaris2*)
|
||||||
|
if [ "`/usr/bin/which ${CC-cc}`" = "/usr/ucb/cc" ] ; then
|
||||||
|
could_use=
|
||||||
|
[ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin"
|
||||||
|
if [ -d /opt/cygnus/bin ] ; then
|
||||||
|
if [ "$could_use" = "" ] ; then
|
||||||
|
could_use="/opt/cygnus/bin"
|
||||||
|
else
|
||||||
|
could_use="$could_use or /opt/cygnus/bin"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ "$could_use" = "" ] ; then
|
||||||
|
echo "Warning: compilation may fail because you're using"
|
||||||
|
echo "/usr/ucb/cc. You should change your PATH or CC "
|
||||||
|
echo "variable and rerun configure."
|
||||||
|
else
|
||||||
|
echo "Warning: compilation may fail because you're using"
|
||||||
|
echo "/usr/ucb/cc, when you should use the C compiler from"
|
||||||
|
echo "$could_use. You should change your"
|
||||||
|
echo "PATH or CC variable and rerun configure."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
|
# If --enable-shared was set, we must set LD_LIBRARY_PATH so that the
|
||||||
# binutils tools will find libbfd.so.
|
# binutils tools will find libbfd.so.
|
||||||
if [ "${enable_shared}" = "yes" ]; then
|
if [ "${enable_shared}" = "yes" ]; then
|
||||||
|
Reference in New Issue
Block a user