Detecting gated functions w/ AC_CHECK_FUNCS()

2022-05-02 Thread Philip Prindeville
Hi, I was wondering how to do discovery of functions like open_memstream() which is only exposed by when compilation used -D_GNU_SOURCE or -D_POSIX_C_SOURCE=200809L. It might be the case that I compile everything with a certain flag, or I might just compile one-off modules such as: time.o: _

Re: Detecting gated functions w/ AC_CHECK_FUNCS()

2022-05-02 Thread Bob Friesenhahn
On Mon, 2 May 2022, Philip Prindeville wrote: Hi, I was wondering how to do discovery of functions like open_memstream() which is only exposed by when compilation used -D_GNU_SOURCE or -D_POSIX_C_SOURCE=200809L. It might be the case that I compile everything with a certain flag, or I might

Re: Detecting gated functions w/ AC_CHECK_FUNCS()

2022-05-02 Thread Nick Bowler
Hi, On 2022-05-02, Philip Prindeville wrote: > I was wondering how to do discovery of functions like open_memstream() which > is only exposed by when compilation used -D_GNU_SOURCE or > -D_POSIX_C_SOURCE=200809L. The "normal way" is to just use the AC_USE_SYSTEM_EXTENSIONS macro early in your c