Paul Eggert <[EMAIL PROTECTED]> writes:
|> We could change Autoconf so that it first tries to link this program
|> instead:
|>
|> #include "confdefs.h"
|> [Put the standard includes here.]
|>
|> int
|> main ()
|> {
|> #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|> choke me
|> #else
|> return $ac_func != 0;
|> #endif
|> }
|>
|> If this works, the function exists; otherwise, 'configure' should fall
|> back on trying to link the old program.
|>
|> We need the fallback because many hosts still don't declare functions.
|> Once C99 takes over the world, we can remove the fallback, since C99
|> requires that all functions must be declared.
But this also requires including all the necessary headers, which
AC_CHECK_FUNC[S] cannot do currently. So the old method will continue to
be necessary for the generic function tests.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 N�rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."