1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/unix/sysv/linux/powerpc/.
5 { echo "$as_me:$LINENO: checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended format" >&5
6 echo $ECHO_N "checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended format... $ECHO_C" >&6; }
7 if test "${libc_cv_mlong_double_128ibm+set}" = set; then
8 echo $ECHO_N "(cached) $ECHO_C" >&6
11 CFLAGS="$CFLAGS -mlong-double-128"
12 cat >conftest.$ac_ext <<_ACEOF
15 cat confdefs.h >>conftest.$ac_ext
16 cat >>conftest.$ac_ext <<_ACEOF
23 #if LDBL_MANT_DIG != 106
24 # error "compiler doesn't implement IBM extended format of long double"
26 long double foobar (long double x) { return x; }
31 rm -f conftest.$ac_objext
32 if { (ac_try="$ac_compile"
34 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35 *) ac_try_echo=$ac_try;;
37 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38 (eval "$ac_compile") 2>conftest.er1
40 grep -v '^ *+' conftest.er1 >conftest.err
43 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44 (exit $ac_status); } && {
45 test -z "$ac_c_werror_flag" ||
46 test ! -s conftest.err
47 } && test -s conftest.$ac_objext; then
48 libc_cv_mlong_double_128ibm=yes
50 echo "$as_me: failed program was:" >&5
51 sed 's/^/| /' conftest.$ac_ext >&5
53 libc_cv_mlong_double_128ibm=no
56 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59 { echo "$as_me:$LINENO: result: $libc_cv_mlong_double_128ibm" >&5
60 echo "${ECHO_T}$libc_cv_mlong_double_128ibm" >&6; }
62 if test "$libc_cv_mlong_double_128ibm" = no; then
63 { echo "$as_me:$LINENO: checking whether $CC $CFLAGS supports -mabi=ibmlongdouble" >&5
64 echo $ECHO_N "checking whether $CC $CFLAGS supports -mabi=ibmlongdouble... $ECHO_C" >&6; }
65 if test "${libc_cv_mabi_ibmlongdouble+set}" = set; then
66 echo $ECHO_N "(cached) $ECHO_C" >&6
69 CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble"
70 cat >conftest.$ac_ext <<_ACEOF
73 cat confdefs.h >>conftest.$ac_ext
74 cat >>conftest.$ac_ext <<_ACEOF
81 #if LDBL_MANT_DIG != 106
82 # error "compiler doesn't implement IBM extended format of long double"
84 long double foobar (long double x) { return x; }
89 rm -f conftest.$ac_objext
90 if { (ac_try="$ac_compile"
92 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
93 *) ac_try_echo=$ac_try;;
95 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
96 (eval "$ac_compile") 2>conftest.er1
98 grep -v '^ *+' conftest.er1 >conftest.err
101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
102 (exit $ac_status); } && {
103 test -z "$ac_c_werror_flag" ||
104 test ! -s conftest.err
105 } && test -s conftest.$ac_objext; then
106 libc_cv_mabi_ibmlongdouble=yes
108 echo "$as_me: failed program was:" >&5
109 sed 's/^/| /' conftest.$ac_ext >&5
111 libc_cv_mabi_ibmlongdouble=no
114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
115 CFLAGS="$save_CFLAGS"
117 { echo "$as_me:$LINENO: result: $libc_cv_mabi_ibmlongdouble" >&5
118 echo "${ECHO_T}$libc_cv_mabi_ibmlongdouble" >&6; }
120 if test "$libc_cv_mabi_ibmlongdouble" = yes; then
121 CFLAGS="$CFLAGS -mabi=ibmlongdouble"
123 { { echo "$as_me:$LINENO: error: this configuration requires -mlong-double-128 IBM extended format support" >&5
124 echo "$as_me: error: this configuration requires -mlong-double-128 IBM extended format support" >&2;}
125 { (exit 1); exit 1; }; }