diff options
Diffstat (limited to 'gcc-4.8/libitm/configure')
-rw-r--r-- | gcc-4.8/libitm/configure | 54 |
1 files changed, 48 insertions, 6 deletions
diff --git a/gcc-4.8/libitm/configure b/gcc-4.8/libitm/configure index 7635a4712..031c19ce3 100644 --- a/gcc-4.8/libitm/configure +++ b/gcc-4.8/libitm/configure @@ -7270,7 +7270,7 @@ ia64-*-hpux*) rm -rf conftest* ;; -x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ +x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext @@ -7295,7 +7295,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) ;; esac ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*linux*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*linux*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -7314,7 +7317,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*linux*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*linux*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) @@ -11779,7 +11785,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11782 "configure" +#line 11788 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11885,7 +11891,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11888 "configure" +#line 11894 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -17362,6 +17368,43 @@ $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h fi ;; +esac + +case "${target_cpu}" in +powerpc*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5 +$as_echo_n "checking if the assembler supports HTM... " >&6; } +if test "${libitm_cv_as_htm+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ +asm("tbegin. 0; tend. 0"); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + libitm_cv_as_htm=yes +else + libitm_cv_as_htm=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5 +$as_echo "$libitm_cv_as_htm" >&6; } + if test x$libitm_cv_as_htm = xyes; then + +$as_echo "#define HAVE_AS_HTM 1" >>confdefs.h + + fi + ;; s390*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5 $as_echo_n "checking if the assembler supports HTM... " >&6; } @@ -17399,7 +17442,6 @@ $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h fi ;; esac -LIBITM_CHECK_AS_HTM { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5 |