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
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
11 cat > conftest.$ac_ext <<EOF
14 /* System header to define __stub macros and hopefully few prototypes,
15 which can conflict with char $ac_func(); below. */
17 /* Override any gcc2 internal prototype to avoid an error. */
20 int main() { return 0; }
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)
34 if eval $ac_link; then
36 eval "ac_cv_func_$ac_func=yes"
39 eval "ac_cv_func_$ac_func=no"
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