Update.
[glibc.git] / sysdeps / unix / configure
blob4c009a2477db59eff8b45c34e3c8e45bfcb96a53
1  # Local configure fragment for sysdeps/unix.
3 if test -z "$inhibit_glue"; then
4 # For make_errlist.c, used in make_errlist.
5 for ac_func in strerror
6 do
7 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9   echo $ac_n "(cached) $ac_c" 1>&6
10 else
11   cat > conftest.$ac_ext <<EOF
12 #line 13 "configure"
13 #include "confdefs.h"
14 /* System header to define __stub macros and hopefully few prototypes,
15     which can conflict with char $ac_func(); below.  */
16 #include <assert.h>
17 /* Override any gcc2 internal prototype to avoid an error.  */
18 char $ac_func(); 
20 int main() { return 0; }
21 int t() {
23 /* The GNU C library defines this for functions which it implements
24     to always fail with ENOSYS.  Some functions are actually named
25     something starting with __ and the normal name is an alias.  */
26 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27 choke me
28 #else
29 $ac_func();
30 #endif
32 ; return 0; }
33 EOF
34 if eval $ac_link; then
35   rm -rf conftest*
36   eval "ac_cv_func_$ac_func=yes"
37 else
38   rm -rf conftest*
39   eval "ac_cv_func_$ac_func=no"
41 rm -f conftest*
44 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
45   echo "$ac_t""yes" 1>&6
46     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
47   cat >> confdefs.h <<EOF
48 #define $ac_tr_func 1
49 EOF
51 else
52   echo "$ac_t""no" 1>&6
54 done