Author: tjansen Date: Wed Nov 11 14:39:11 2009 New Revision: 1648 Log: Switch from -std=gnu99 to -std=c99. All files requiring functionality not available in the standard are marked with #define _XOPEN_SOURCE, #define _BSD_SOURCE etc. This pushes down potential sources of nonportability from the global project level down to individual source files. Modified: trunk/configure.ac Modified: trunk/configure.ac ============================================================================== --- trunk/configure.ac Wed Nov 11 14:28:52 2009 (r1647) +++ trunk/configure.ac Wed Nov 11 14:39:11 2009 (r1648) @@ -73,7 +73,7 @@ # Set default AM_CFLAGS for the complete project. -AC_SUBST(AM_CFLAGS, "-std=gnu99 -Wall -Wextra -Wredundant-decls -Wstrict-prototypes -Wdisabled-optimization -Wpointer-arith -Wundef -Wno-deprecated-declarations -Wmissing-prototypes -Wwrite-strings -Wcast-qual -Wshadow -Werror") +AC_SUBST(AM_CFLAGS, "-std=c99 -Wall -Wextra -Wredundant-decls -Wstrict-prototypes -Wdisabled-optimization -Wpointer-arith -Wundef -Wno-deprecated-declarations -Wmissing-prototypes -Wwrite-strings -Wcast-qual -Wshadow -Werror") # If no --prefix option is passed to configure, $prefix is empty. But we want # to expand $sysconfdir, which defaults to ${prefix}/etc. So set $prefix.