Re: AC_PROG_CC_C89 is not adding -std=c89 to CFLAGS

2017-01-16 Thread Zack Weinberg
On Fri, Jan 13, 2017 at 8:12 PM, Dimitrios Apostolou wrote: > > recent GCC versions default to C99 or even C11. I was expecting that adding > AC_PROG_CC_C89 to configure.ac, would force C89, probably by using > -std=gnu89. But this was not the case. Any ideas why? Originally, AC_PROG_CC_C89 meant

Re: AC_PROG_CC_C89 is not adding -std=c89 to CFLAGS

2017-01-16 Thread Dimitrios Apostolou
On Fri, 13 Jan 2017, Paul Eggert wrote: Dimitrios Apostolou wrote: I was expecting that adding AC_PROG_CC_C89 to configure.ac, would force C89 Eeeuuw. Who would want to do that? See the context in my first email, apparently some defines were not very well thought. Passing -std=gnu89 to CFL

Re: AC_PROG_CC_C89 is not adding -std=c89 to CFLAGS

2017-01-13 Thread Paul Eggert
Dimitrios Apostolou wrote: I was expecting that adding AC_PROG_CC_C89 to configure.ac, would force C89 Eeeuuw. Who would want to do that? To some extent AC_PROG_CC_C89 is obsolete, and I don't recommend using it, just as I don't recommend C89. ___

AC_PROG_CC_C89 is not adding -std=c89 to CFLAGS

2017-01-13 Thread Dimitrios Apostolou
Hello list, recent GCC versions default to C99 or even C11. I was expecting that adding AC_PROG_CC_C89 to configure.ac, would force C89, probably by using -std=gnu89. But this was not the case. Any ideas why? Context is compiling a C program using a recent gcc on Solaris 10, resulted to thi