[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug in many acspecific tests under AC_LANG(C++)
From: |
Andreas Schwab |
Subject: |
Re: Possible bug in many acspecific tests under AC_LANG(C++) |
Date: |
Wed, 29 May 2002 10:29:47 +0200 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (ia64-suse-linux) |
Paul Eggert <address@hidden> 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, address@hidden
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."