Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-29 Thread Eric Blake
> 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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-29 Thread Bruce Korb
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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-29 Thread Paul Eggert
"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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-28 Thread Eric Blake
> 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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-28 Thread Keith MARSHALL
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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-28 Thread Thomas Dickey
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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-28 Thread Keith MARSHALL
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 >

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-28 Thread Andreas Schwab
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,

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-28 Thread Thomas Dickey
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,

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Bruce Korb
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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Eric Blake
> > "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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Bruce Korb
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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Andreas Schwab
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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Thomas Dickey
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

Re: AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Andreas Schwab
"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

AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Bruce Korb
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

AC_CHECK_FUNCS(sigsetjmp)

2006-07-27 Thread Bruce Korb
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