Project

General

Profile

Bug #2235 ยป patch-configure_ac.patch

brad@comstyle.com, 2010-07-06 22:16

View differences:

configure.ac Tue Jul 6 15:22:43 2010
69 69

  
70 70
# check for extra compiler options (warning options)
71 71
if test "${GCC}" = "yes"; then
72
    CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic -std=gnu99"
72
    CFLAGS="${CFLAGS} -Wall -W -Wshadow -pedantic"
73

  
74
    # Use std=gnu99 if we have new enough GCC
75
    old_cflags=${CFLAGS}
76
    CFLAGS="-std=gnu99"
77
    AC_TRY_COMPILE([
78
    ],, [
79
      CFLAGS="${CFLAGS} $old_cflags"
80
    ], [
81
      CFLAGS="${old_cflags}"
82
    ])
73 83
fi
74 84

  
75 85
AC_ARG_ENABLE(extra-warnings,
    (1-1/1)