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

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. ___