2003-12-05 Roland McGrath <roland@redhat.com>
[glibc.git] / sysdeps / unix / configure
blob75dc5896a0322023a100391bc98354390d325742
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 #line $LINENO "configure"
18 /* confdefs.h.  */
19 _ACEOF
20 cat confdefs.h >>conftest.$ac_ext
21 cat >>conftest.$ac_ext <<_ACEOF
22 /* end confdefs.h.  */
23 /* System header to define __stub macros and hopefully few prototypes,
24     which can conflict with char $ac_func (); below.  */
25 #include <assert.h>
26 /* Override any gcc2 internal prototype to avoid an error.  */
27 #ifdef __cplusplus
28 extern "C"
30 #endif
31 /* We use char because int might match the return type of a gcc2
32    builtin and then its argument prototype would still apply.  */
33 char $ac_func ();
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)
38 choke me
39 #else
40 char (*f) () = $ac_func;
41 #endif
42 #ifdef __cplusplus
44 #endif
46 int
47 main ()
50   ;
51   return 0;
53 _ACEOF
54 rm -f conftest.$ac_objext conftest$ac_exeext
55 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56   (eval $ac_link) 2>&5
57   ac_status=$?
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
62   (eval $ac_try) 2>&5
63   ac_status=$?
64   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65   (exit $ac_status); }; }; then
66   eval "$as_ac_var=yes"
67 else
68   echo "$as_me: failed program was:" >&5
69 sed 's/^/| /' conftest.$ac_ext >&5
71 eval "$as_ac_var=no"
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
80 _ACEOF
83 done