Author: biurrun Date: Sun Aug 1 23:55:54 2010 New Revision: 2335 Log: Merge all platform-specific settings into one place. Modified: trunk/configure.ac Modified: trunk/configure.ac ============================================================================== --- trunk/configure.ac Sun Aug 1 23:53:59 2010 (r2334) +++ trunk/configure.ac Sun Aug 1 23:55:54 2010 (r2335) @@ -85,22 +85,20 @@ # Set the preprocessor flags for the entire project AC_SUBST(AM_CPPFLAGS, "-D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600") +# Set default AM_CFLAGS for the complete project. +AC_SUBST(AM_CFLAGS, "-std=c99 -Werror -Wall -Wextra -Winline -Wredundant-decls -Wstrict-prototypes -Wdisabled-optimization -Wpointer-arith -Wundef -Wno-deprecated-declarations -Wmissing-prototypes -Wwrite-strings -Wcast-qual -Wshadow") + +# platform-specific settings case "$(uname -s)" in "Darwin") AC_SUBST(AM_CPPFLAGS, "$AM_CPPFLAGS -D_DARWIN_C_SOURCE") ;; "FreeBSD") AC_SUBST(AM_CPPFLAGS, "$AM_CPPFLAGS -D__BSD_VISIBLE") + AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -fno-strict-aliasing") ;; esac -# Set default AM_CFLAGS for the complete project. -AC_SUBST(AM_CFLAGS, "-std=c99 -Werror -Wall -Wextra -Winline -Wredundant-decls -Wstrict-prototypes -Wdisabled-optimization -Wpointer-arith -Wundef -Wno-deprecated-declarations -Wmissing-prototypes -Wwrite-strings -Wcast-qual -Wshadow") - -if test "$(uname -s)" = "FreeBSD"; then - AC_SUBST(AM_CFLAGS, "$AM_CFLAGS -fno-strict-aliasing") -fi - # 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. if test "x$prefix" = "xNONE"; then -- This is the pisa developer mailing list. Please also subscribe to the main pisa list at: //www.freelists.org/list/pisa