configure tweaks, support $libc_add_on_config_subdirs
[glibc.git] / sysdeps / unix / sysv / linux / powerpc / configure
blobdf2813d9cda1e38923a5957cbd78db95257da8ed
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/unix/sysv/linux/powerpc/.
5 { $as_echo "$as_me:$LINENO: checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended format" >&5
6 $as_echo_n "checking whether $CC $CFLAGS -mlong-double-128 uses IBM extended format... " >&6; }
7 if test "${libc_cv_mlong_double_128ibm+set}" = set; then
8   $as_echo_n "(cached) " >&6
9 else
10   save_CFLAGS="$CFLAGS"
11 CFLAGS="$CFLAGS -mlong-double-128"
12 cat >conftest.$ac_ext <<_ACEOF
13 /* confdefs.h.  */
14 _ACEOF
15 cat confdefs.h >>conftest.$ac_ext
16 cat >>conftest.$ac_ext <<_ACEOF
17 /* end confdefs.h.  */
18 #include <float.h>
19 int
20 main ()
23 #if LDBL_MANT_DIG != 106
24 # error "compiler doesn't implement IBM extended format of long double"
25 #endif
26 long double foobar (long double x) { return x; }
27   ;
28   return 0;
30 _ACEOF
31 rm -f conftest.$ac_objext
32 if { (ac_try="$ac_compile"
33 case "(($ac_try" in
34   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35   *) ac_try_echo=$ac_try;;
36 esac
37 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38 $as_echo "$ac_try_echo") >&5
39   (eval "$ac_compile") 2>conftest.er1
40   ac_status=$?
41   grep -v '^ *+' conftest.er1 >conftest.err
42   rm -f conftest.er1
43   cat conftest.err >&5
44   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45   (exit $ac_status); } && {
46          test -z "$ac_c_werror_flag" ||
47          test ! -s conftest.err
48        } && test -s conftest.$ac_objext; then
49   libc_cv_mlong_double_128ibm=yes
50 else
51   $as_echo "$as_me: failed program was:" >&5
52 sed 's/^/| /' conftest.$ac_ext >&5
54         libc_cv_mlong_double_128ibm=no
57 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58 CFLAGS="$save_CFLAGS"
60 { $as_echo "$as_me:$LINENO: result: $libc_cv_mlong_double_128ibm" >&5
61 $as_echo "$libc_cv_mlong_double_128ibm" >&6; }
63 if test "$libc_cv_mlong_double_128ibm" = no; then
64   { $as_echo "$as_me:$LINENO: checking whether $CC $CFLAGS supports -mabi=ibmlongdouble" >&5
65 $as_echo_n "checking whether $CC $CFLAGS supports -mabi=ibmlongdouble... " >&6; }
66 if test "${libc_cv_mabi_ibmlongdouble+set}" = set; then
67   $as_echo_n "(cached) " >&6
68 else
69     save_CFLAGS="$CFLAGS"
70   CFLAGS="$CFLAGS -mlong-double-128 -mabi=ibmlongdouble"
71   cat >conftest.$ac_ext <<_ACEOF
72 /* confdefs.h.  */
73 _ACEOF
74 cat confdefs.h >>conftest.$ac_ext
75 cat >>conftest.$ac_ext <<_ACEOF
76 /* end confdefs.h.  */
77 #include <float.h>
78 int
79 main ()
82 #if LDBL_MANT_DIG != 106
83 # error "compiler doesn't implement IBM extended format of long double"
84 #endif
85 long double foobar (long double x) { return x; }
86   ;
87   return 0;
89 _ACEOF
90 rm -f conftest.$ac_objext
91 if { (ac_try="$ac_compile"
92 case "(($ac_try" in
93   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
94   *) ac_try_echo=$ac_try;;
95 esac
96 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
97 $as_echo "$ac_try_echo") >&5
98   (eval "$ac_compile") 2>conftest.er1
99   ac_status=$?
100   grep -v '^ *+' conftest.er1 >conftest.err
101   rm -f conftest.er1
102   cat conftest.err >&5
103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
104   (exit $ac_status); } && {
105          test -z "$ac_c_werror_flag" ||
106          test ! -s conftest.err
107        } && test -s conftest.$ac_objext; then
108   libc_cv_mabi_ibmlongdouble=yes
109 else
110   $as_echo "$as_me: failed program was:" >&5
111 sed 's/^/| /' conftest.$ac_ext >&5
113         libc_cv_mabi_ibmlongdouble=no
116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
117   CFLAGS="$save_CFLAGS"
119 { $as_echo "$as_me:$LINENO: result: $libc_cv_mabi_ibmlongdouble" >&5
120 $as_echo "$libc_cv_mabi_ibmlongdouble" >&6; }
122   if test "$libc_cv_mabi_ibmlongdouble" = yes; then
123     CFLAGS="$CFLAGS -mabi=ibmlongdouble"
124   else
125     { { $as_echo "$as_me:$LINENO: error: this configuration requires -mlong-double-128 IBM extended format support" >&5
126 $as_echo "$as_me: error: this configuration requires -mlong-double-128 IBM extended format support" >&2;}
127    { (exit 1); exit 1; }; }
128   fi