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 echo "configure:9: checking for $ac_func" >&5
9 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10 echo $ac_n "(cached) $ac_c" 1>&6
12 cat > conftest.$ac_ext <<EOF
15 /* System header to define __stub macros and hopefully few prototypes,
16 which can conflict with char $ac_func(); below. */
18 /* Override any gcc2 internal prototype to avoid an error. */
19 /* We use char because int might match the return type of a gcc2
20 builtin and then its argument prototype would still apply. */
25 /* The GNU C library defines this for functions which it implements
26 to always fail with ENOSYS. Some functions are actually named
27 something starting with __ and the normal name is an alias. */
28 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36 if { (eval echo configure:37: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
38 eval "ac_cv_func_$ac_func=yes"
40 echo "configure: failed program was:" >&5
41 cat conftest.$ac_ext >&5
43 eval "ac_cv_func_$ac_func=no"
48 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
49 echo "$ac_t""yes" 1>&6
50 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
51 cat >> confdefs.h <<EOF