diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-02-10 23:43:42 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-02-10 23:43:42 +0000 |
commit | 4a299bf4ff32f153cf07e684e177a97568325708 (patch) | |
tree | 84b86054220522da8c70a31cd877d98117cd4e0c /libgo | |
parent | d5f3d14a4282516308125595fcc79d1b6d235f9c (diff) | |
download | gcc-4a299bf4ff32f153cf07e684e177a97568325708.zip gcc-4a299bf4ff32f153cf07e684e177a97568325708.tar.gz gcc-4a299bf4ff32f153cf07e684e177a97568325708.tar.bz2 |
libgo/configure.ac: Use AC_COMPILE_IFELSE, not AC_PREPROC_IFELSE.
From-SVN: r170030
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/configure | 16 | ||||
-rw-r--r-- | libgo/configure.ac | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/libgo/configure b/libgo/configure index fbaac8e..d51af0e 100644 --- a/libgo/configure +++ b/libgo/configure @@ -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 diff --git a/libgo/configure.ac b/libgo/configure.ac index da56610..c2ec80b 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -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], |