mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:14:49 +02:00
libgo/configure.ac: Use AC_COMPILE_IFELSE, not AC_PREPROC_IFELSE.
From-SVN: r170030
This commit is contained in:
16
libgo/configure
vendored
16
libgo/configure
vendored
@@ -13302,12 +13302,12 @@ case ${host} in
|
||||
#error 64-bit
|
||||
#endif
|
||||
_ACEOF
|
||||
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||
if ac_fn_c_try_compile "$LINENO"; then :
|
||||
is_386=yes
|
||||
else
|
||||
is_x86_64=yes
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_ext
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
if test "$is_386" = "yes"; then
|
||||
GOARCH=386
|
||||
else
|
||||
@@ -13326,12 +13326,12 @@ rm -f conftest.err conftest.$ac_ext
|
||||
#error 64-bit
|
||||
#endif
|
||||
_ACEOF
|
||||
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||
if ac_fn_c_try_compile "$LINENO"; then :
|
||||
is_mips=yes
|
||||
else
|
||||
is_mips64=yes
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_ext
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
if test "$is_mips" = "yes"; then
|
||||
GOARCH=mips
|
||||
else
|
||||
@@ -13346,12 +13346,12 @@ rm -f conftest.err conftest.$ac_ext
|
||||
#error 64-bit
|
||||
#endif
|
||||
_ACEOF
|
||||
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||
if ac_fn_c_try_compile "$LINENO"; then :
|
||||
is_ppc=yes
|
||||
else
|
||||
is_ppc64=yes
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_ext
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
if test "$is_ppc" = "yes"; then
|
||||
GOARCH=ppc
|
||||
else
|
||||
@@ -13366,12 +13366,12 @@ rm -f conftest.err conftest.$ac_ext
|
||||
#error 64-bit
|
||||
#endif
|
||||
_ACEOF
|
||||
if ac_fn_c_try_cpp "$LINENO"; then :
|
||||
if ac_fn_c_try_compile "$LINENO"; then :
|
||||
is_sparc=yes
|
||||
else
|
||||
is_sparc64=yes
|
||||
fi
|
||||
rm -f conftest.err conftest.$ac_ext
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
if test "$is_sparc" = "yes"; then
|
||||
GOARCH=sparc
|
||||
else
|
||||
|
||||
@@ -152,7 +152,7 @@ case ${host} in
|
||||
changequote(,)dnl
|
||||
i[34567]86-*-* | x86_64-*-*)
|
||||
changequote([,])dnl
|
||||
AC_PREPROC_IFELSE([
|
||||
AC_COMPILE_IFELSE([
|
||||
#ifdef __x86_64__
|
||||
#error 64-bit
|
||||
#endif],
|
||||
@@ -168,7 +168,7 @@ changequote([,])dnl
|
||||
GOARCH=m68k
|
||||
;;
|
||||
mips*-*-*)
|
||||
AC_PREPROC_IFELSE([
|
||||
AC_COMPILE_IFELSE([
|
||||
#ifdef __mips64
|
||||
#error 64-bit
|
||||
#endif],
|
||||
@@ -180,7 +180,7 @@ changequote([,])dnl
|
||||
fi
|
||||
;;
|
||||
rs6000*-*-* | powerpc*-*-*)
|
||||
AC_PREPROC_IFELSE([
|
||||
AC_COMPILE_IFELSE([
|
||||
#ifdef _ARCH_PPC64
|
||||
#error 64-bit
|
||||
#endif],
|
||||
@@ -192,7 +192,7 @@ changequote([,])dnl
|
||||
fi
|
||||
;;
|
||||
sparc*-*-*)
|
||||
AC_PREPROC_IFELSE([
|
||||
AC_COMPILE_IFELSE([
|
||||
#if defined(__sparcv9) || defined(__arch64__)
|
||||
#error 64-bit
|
||||
#endif],
|
||||
|
||||
Reference in New Issue
Block a user