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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33 (eval $ac_compile) 2>conftest.er1
35 grep -v '^ *+' conftest.er1 >conftest.err
38 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39 (exit $ac_status); } &&
40 { ac_try='test -z "$ac_c_werror_flag"
41 || test ! -s conftest.err'
42 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46 (exit $ac_status); }; } &&
47 { ac_try='test -s conftest.$ac_objext'
48 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52 (exit $ac_status); }; }; then
53 libc_cv_mlong_double_128ibm=yes
55 echo "$as_me: failed program was:" >&5
56 sed 's/^/| /' conftest.$ac_ext >&5
58 libc_cv_mlong_double_128ibm=no
60 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63 echo "$as_me:$LINENO: result: $libc_cv_mlong_double_128ibm" >&5
64 echo "${ECHO_T}$libc_cv_mlong_double_128ibm" >&6
66 if test "$libc_cv_mlong_double_128ibm" = no; then
67 echo "$as_me:$LINENO: checking whether $CC $CFLAGS supports -mabi=ibmlongdouble" >&5
68 echo $ECHO_N "checking whether $CC $CFLAGS supports -mabi=ibmlongdouble... $ECHO_C" >&6
69 if test "${libc_cv_mabi_ibmlongdouble+set}" = set; then
70 echo $ECHO_N "(cached) $ECHO_C" >&6
73 CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble"
74 cat >conftest.$ac_ext <<_ACEOF
77 cat confdefs.h >>conftest.$ac_ext
78 cat >>conftest.$ac_ext <<_ACEOF
85 #if LDBL_MANT_DIG != 106
86 # error "compiler doesn't implement IBM extended format of long double"
88 long double foobar (long double x) { return x; }
93 rm -f conftest.$ac_objext
94 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
95 (eval $ac_compile) 2>conftest.er1
97 grep -v '^ *+' conftest.er1 >conftest.err
100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
101 (exit $ac_status); } &&
102 { ac_try='test -z "$ac_c_werror_flag"
103 || test ! -s conftest.err'
104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
108 (exit $ac_status); }; } &&
109 { ac_try='test -s conftest.$ac_objext'
110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
114 (exit $ac_status); }; }; then
115 libc_cv_mabi_ibmlongdouble=yes
117 echo "$as_me: failed program was:" >&5
118 sed 's/^/| /' conftest.$ac_ext >&5
120 libc_cv_mabi_ibmlongdouble=no
122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
123 CFLAGS="$save_CFLAGS"
125 echo "$as_me:$LINENO: result: $libc_cv_mabi_ibmlongdouble" >&5
126 echo "${ECHO_T}$libc_cv_mabi_ibmlongdouble" >&6
128 if test "$libc_cv_mabi_ibmlongdouble" = yes; then
129 CFLAGS="$CFLAGS -mabi=ibmlongdouble"
131 { { echo "$as_me:$LINENO: error: this configuration requires -mlong-double-128 IBM extended format support" >&5
132 echo "$as_me: error: this configuration requires -mlong-double-128 IBM extended format support" >&2;}
133 { (exit 1); exit 1; }; }