2005-01-28 Martin Schwidefsky <schwidefsky@de.ibm.com>
[glibc.git] / sysdeps / generic / configure
blob47f9ec0d5e734279127f0c3b1cdce36d49992d2a
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
3 if test -z "$inhibit_glue"; then
4 # For signame.c, used in make_siglist.
7 for ac_func in psignal
8 do
9 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10 echo "$as_me:$LINENO: checking for $ac_func" >&5
11 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12 if eval "test \"\${$as_ac_var+set}\" = set"; then
13   echo $ECHO_N "(cached) $ECHO_C" >&6
14 else
15   cat >conftest.$ac_ext <<_ACEOF
16 /* confdefs.h.  */
17 _ACEOF
18 cat confdefs.h >>conftest.$ac_ext
19 cat >>conftest.$ac_ext <<_ACEOF
20 /* end confdefs.h.  */
21 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23 #define $ac_func innocuous_$ac_func
25 /* System header to define __stub macros and hopefully few prototypes,
26     which can conflict with char $ac_func (); below.
27     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28     <limits.h> exists even on freestanding compilers.  */
30 #ifdef __STDC__
31 # include <limits.h>
32 #else
33 # include <assert.h>
34 #endif
36 #undef $ac_func
38 /* Override any gcc2 internal prototype to avoid an error.  */
39 #ifdef __cplusplus
40 extern "C"
42 #endif
43 /* We use char because int might match the return type of a gcc2
44    builtin and then its argument prototype would still apply.  */
45 char $ac_func ();
46 /* The GNU C library defines this for functions which it implements
47     to always fail with ENOSYS.  Some functions are actually named
48     something starting with __ and the normal name is an alias.  */
49 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50 choke me
51 #else
52 char (*f) () = $ac_func;
53 #endif
54 #ifdef __cplusplus
56 #endif
58 int
59 main ()
61 return f != $ac_func;
62   ;
63   return 0;
65 _ACEOF
66 rm -f conftest.$ac_objext conftest$ac_exeext
67 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68   (eval $ac_link) 2>conftest.er1
69   ac_status=$?
70   grep -v '^ *+' conftest.er1 >conftest.err
71   rm -f conftest.er1
72   cat conftest.err >&5
73   echo "$as_me:$LINENO: \$? = $ac_status" >&5
74   (exit $ac_status); } &&
75          { ac_try='test -z "$ac_c_werror_flag"
76                          || test ! -s conftest.err'
77   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
78   (eval $ac_try) 2>&5
79   ac_status=$?
80   echo "$as_me:$LINENO: \$? = $ac_status" >&5
81   (exit $ac_status); }; } &&
82          { ac_try='test -s conftest$ac_exeext'
83   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
84   (eval $ac_try) 2>&5
85   ac_status=$?
86   echo "$as_me:$LINENO: \$? = $ac_status" >&5
87   (exit $ac_status); }; }; then
88   eval "$as_ac_var=yes"
89 else
90   echo "$as_me: failed program was:" >&5
91 sed 's/^/| /' conftest.$ac_ext >&5
93 eval "$as_ac_var=no"
95 rm -f conftest.err conftest.$ac_objext \
96       conftest$ac_exeext conftest.$ac_ext
98 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
99 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
100 if test `eval echo '${'$as_ac_var'}'` = yes; then
101   cat >>confdefs.h <<_ACEOF
102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
103 _ACEOF
106 done