> The real problem that I was trying to illuminate is that the fact that
> if a particular
> interface was implemented as a macro then the AC_CHECK_FUNCS() breaks.
Most POSIX functions are required to exist as a linkable function, even
if they are also implemented as a macro. There are relativel
Paul Eggert wrote:
This macro does not work when the headers #define sigsetjmp to
something else.
Since sigsetjmp might be a macro without a function but might be a
function, which is a bit unusual, I suggest "#if defined sigsetjmp ||
HAVE_SIGSETJMP".
Hi Paul,
Thank you. Clearly, for
"Bruce Korb" <[EMAIL PROTECTED]> writes:
"Bruce Korb" <[EMAIL PROTECTED]> writes:
> This macro does not work when the headers #define sigsetjmp to
> something else.
Since sigsetjmp might be a macro without a function but might be a
function, which is a bit unusual, I suggest "#if defined sigsetj
> But supposing that I wanted to pass around a pointer to it, that wouldn't
> help much.
That's where the standards come in handy. In the case of sigsetjmp, read POSIX:
http://www.opengroup.org/onlinepubs/009695399/basedefs/setjmp.h.html
Attempting to pass around a pointer to sigsetjmp is a bug
Thomas Dickey wrote, quoting me:
> Thomas Dickey wrote, quoting Eric Blake:
Have you tried AC_CHECK_DECLS instead? You really are checking
whether sigsetjmp is declared and you can compile with it, not
whether it is a function and you can link with it.
>>>
>>> But supposing that I w
On Fri, 28 Jul 2006, Keith MARSHALL wrote:
Thomas Dickey wrote, quoting Eric Blake:
Have you tried AC_CHECK_DECLS instead? You really are checking
whether sigsetjmp is declared and you can compile with it, not
whether it is a function and you can link with it.
But supposing that I wanted to
Thomas Dickey wrote, quoting Eric Blake:
>> Have you tried AC_CHECK_DECLS instead? You really are checking
>> whether sigsetjmp is declared and you can compile with it, not
>> whether it is a function and you can link with it.
>
> But supposing that I wanted to pass around a pointer to it, that
>
Bruce Korb <[EMAIL PROTECTED]> writes:
> "not required to be a normal function" implies that it is
> common knowledge that everybody knows you have to roll your
> own AC macro?
autoconf does not save you from learning the language you use for
programming.
Andreas.
--
Andreas Schwab, SuSE Labs,
On Fri, 28 Jul 2006, Eric Blake wrote:
"not required to be a normal function" implies that it is
common knowledge that everybody knows you have to roll your
own AC macro?
Have you tried AC_CHECK_DECLS instead? You really are checking
whether sigsetjmp is declared and you can compile with it,
Eric Blake wrote:
"not required to be a normal function" implies that it is
common knowledge that everybody knows you have to roll your
own AC macro?
Have you tried AC_CHECK_DECLS instead? You really are checking
whether sigsetjmp is declared and you can compile with it, not
whether it is a f
>
> "not required to be a normal function" implies that it is
> common knowledge that everybody knows you have to roll your
> own AC macro?
Have you tried AC_CHECK_DECLS instead? You really are checking
whether sigsetjmp is declared and you can compile with it, not
whether it is a function and y
Andreas Schwab wrote:
Thomas Dickey <[EMAIL PROTECTED]> writes:
btw - does AC_CHECK_FUNCS(stat) work? stat() is required to be a
function.
Yes, but many libcs are buggy.
"not required to be a normal function" implies that it is
common knowledge that everybody knows you have to roll your
Thomas Dickey <[EMAIL PROTECTED]> writes:
> btw - does AC_CHECK_FUNCS(stat) work? stat() is required to be a
> function.
Yes, but many libcs are buggy.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerpri
On Fri, 28 Jul 2006, Andreas Schwab wrote:
"Bruce Korb" <[EMAIL PROTECTED]> writes:
This macro does not work when the headers #define sigsetjmp to
something else.
sigsetjmp is special since it's not required to be a normal function. You
can't use AC_CHECK_FUNCS to check for it.
That's wha
"Bruce Korb" <[EMAIL PROTECTED]> writes:
> This macro does not work when the headers #define sigsetjmp to
> something else.
sigsetjmp is special since it's not required to be a normal function. You
can't use AC_CHECK_FUNCS to check for it.
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTEC
This macro does not work when the headers #define sigsetjmp to
something else. I'm not finding the right alternative. Should the
macro be enhanced, or is one expected to know ahead of time that
"sigsetjmp" might be a macro and use a different autoconf macro?
Thanks - Bruce
+ gcc -o conftest -g
This macro does not work when the headers #define sigsetjmp to
something else. I'm not finding the right alternative.
Thanks - Bruce
+ gcc -o conftest -g -O2 conftest.c -ldl
/net/simpsons/export/ws/ws0/bkorb/tmp/ccZ30ygl.o: In function `main':
/local/src/ag/autogen-5.8.5pre99/_b/conftest.c:79: u
17 matches
Mail list logo