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
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
16 cat >conftest.$ac_ext <<_ACEOF
17 #line $LINENO "configure"
20 cat confdefs.h >>conftest.$ac_ext
21 cat >>conftest.$ac_ext <<_ACEOF
23 /* System header to define __stub macros and hopefully few prototypes,
24 which can conflict with char $ac_func (); below. */
26 /* Override any gcc2 internal prototype to avoid an error. */
31 /* We use char because int might match the return type of a gcc2
32 builtin and then its argument prototype would still apply. */
34 /* The GNU C library defines this for functions which it implements
35 to always fail with ENOSYS. Some functions are actually named
36 something starting with __ and the normal name is an alias. */
37 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40 char (*f) () = $ac_func;
54 rm -f conftest.$ac_objext conftest$ac_exeext
55 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59 (exit $ac_status); } &&
60 { ac_try='test -s conftest$ac_exeext'
61 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65 (exit $ac_status); }; }; then
68 echo "$as_me: failed program was:" >&5
69 sed 's/^/| /' conftest.$ac_ext >&5
73 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
75 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
76 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
77 if test `eval echo '${'$as_ac_var'}'` = yes; then
78 cat >>confdefs.h <<_ACEOF
79 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1