(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / sysdeps / unix / configure
blobb910353cd941f18453040ee62e425e07c5ee708a
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/unix.
4 if test -z "$inhibit_glue"; then
5 # For make_errlist.c, used in make_errlist.
8 for ac_func in strerror
9 do
10 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11 echo "$as_me:$LINENO: checking for $ac_func" >&5
12 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13 if eval "test \"\${$as_ac_var+set}\" = set"; then
14   echo $ECHO_N "(cached) $ECHO_C" >&6
15 else
16   cat >conftest.$ac_ext <<_ACEOF
17 /* confdefs.h.  */
18 _ACEOF
19 cat confdefs.h >>conftest.$ac_ext
20 cat >>conftest.$ac_ext <<_ACEOF
21 /* end confdefs.h.  */
22 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24 #define $ac_func innocuous_$ac_func
26 /* System header to define __stub macros and hopefully few prototypes,
27     which can conflict with char $ac_func (); below.
28     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29     <limits.h> exists even on freestanding compilers.  */
31 #ifdef __STDC__
32 # include <limits.h>
33 #else
34 # include <assert.h>
35 #endif
37 #undef $ac_func
39 /* Override any gcc2 internal prototype to avoid an error.  */
40 #ifdef __cplusplus
41 extern "C"
43 #endif
44 /* We use char because int might match the return type of a gcc2
45    builtin and then its argument prototype would still apply.  */
46 char $ac_func ();
47 /* The GNU C library defines this for functions which it implements
48     to always fail with ENOSYS.  Some functions are actually named
49     something starting with __ and the normal name is an alias.  */
50 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51 choke me
52 #else
53 char (*f) () = $ac_func;
54 #endif
55 #ifdef __cplusplus
57 #endif
59 int
60 main ()
62 return f != $ac_func;
63   ;
64   return 0;
66 _ACEOF
67 rm -f conftest.$ac_objext conftest$ac_exeext
68 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69   (eval $ac_link) 2>conftest.er1
70   ac_status=$?
71   grep -v '^ *+' conftest.er1 >conftest.err
72   rm -f conftest.er1
73   cat conftest.err >&5
74   echo "$as_me:$LINENO: \$? = $ac_status" >&5
75   (exit $ac_status); } &&
76          { ac_try='test -z "$ac_c_werror_flag"
77                          || test ! -s conftest.err'
78   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
79   (eval $ac_try) 2>&5
80   ac_status=$?
81   echo "$as_me:$LINENO: \$? = $ac_status" >&5
82   (exit $ac_status); }; } &&
83          { ac_try='test -s conftest$ac_exeext'
84   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
85   (eval $ac_try) 2>&5
86   ac_status=$?
87   echo "$as_me:$LINENO: \$? = $ac_status" >&5
88   (exit $ac_status); }; }; then
89   eval "$as_ac_var=yes"
90 else
91   echo "$as_me: failed program was:" >&5
92 sed 's/^/| /' conftest.$ac_ext >&5
94 eval "$as_ac_var=no"
96 rm -f conftest.err conftest.$ac_objext \
97       conftest$ac_exeext conftest.$ac_ext
99 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
101 if test `eval echo '${'$as_ac_var'}'` = yes; then
102   cat >>confdefs.h <<_ACEOF
103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
104 _ACEOF
107 done