]> diplodocus.org Git - nmh/commitdiff
That didn't work, try adding -pedantic-errors.
authorDavid Levine <levinedl@acm.org>
Fri, 6 Dec 2013 00:35:00 +0000 (18:35 -0600)
committerDavid Levine <levinedl@acm.org>
Fri, 6 Dec 2013 00:35:00 +0000 (18:35 -0600)
configure.ac

index 0788b9f14e833d0b672b62b3c427e26291d31146..839547d1174f066845a0e24c528324e14cf089b3 100644 (file)
@@ -114,7 +114,7 @@ if test "$GCC" = yes; then
   AC_CACHE_CHECK([whether we can use -ansi with linker],
                  [nmh_cv_has_dash_ansi_with_linker],
     [nmh_saved_ldflags="$LDFLAGS"
   AC_CACHE_CHECK([whether we can use -ansi with linker],
                  [nmh_cv_has_dash_ansi_with_linker],
     [nmh_saved_ldflags="$LDFLAGS"
-     LDFLAGS="-ansi"
+     LDFLAGS="-ansi -pedantic-errors"
      AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>],[tzset();])],
        [nmh_cv_has_dash_ansi_with_linker=yes],
        [nmh_cv_has_dash_ansi_with_linker=no])
      AC_COMPILE_IFELSE([AC_LANG_PROGRAM([#include <time.h>],[tzset();])],
        [nmh_cv_has_dash_ansi_with_linker=yes],
        [nmh_cv_has_dash_ansi_with_linker=no])