diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | configure.ac | 17 |
2 files changed, 19 insertions, 2 deletions
@@ -5,6 +5,8 @@ | |||
5 | Silence bogus -Wuninitialized warnings; ok djm@ | 5 | Silence bogus -Wuninitialized warnings; ok djm@ |
6 | - (dtucker) [configure.ac] Enable -Wuninitialized by default when compiling | 6 | - (dtucker) [configure.ac] Enable -Wuninitialized by default when compiling |
7 | with gcc. ok djm@ | 7 | with gcc. ok djm@ |
8 | - (dtucker) [configure.ac] Add a --with-Werror option to configure for | ||
9 | adding -Werror to CFLAGS when all of the configure tests are done. ok djm@ | ||
8 | 10 | ||
9 | 20050726 | 11 | 20050726 |
10 | - (dtucker) [configure.ac] Update zlib warning message too, pointed out by | 12 | - (dtucker) [configure.ac] Update zlib warning message too, pointed out by |
@@ -2887,4 +2889,4 @@ | |||
2887 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 2889 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
2888 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 2890 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
2889 | 2891 | ||
2890 | $Id: ChangeLog,v 1.3859 2005/08/02 07:21:29 dtucker Exp $ | 2892 | $Id: ChangeLog,v 1.3860 2005/08/02 14:20:15 dtucker Exp $ |
diff --git a/configure.ac b/configure.ac index 6e2f5c1f5..93297bbd8 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.281 2005/08/02 07:21:29 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.282 2005/08/02 14:20:15 dtucker Exp $ |
2 | # | 2 | # |
3 | # Copyright (c) 1999-2004 Damien Miller | 3 | # Copyright (c) 1999-2004 Damien Miller |
4 | # | 4 | # |
@@ -594,6 +594,17 @@ AC_ARG_WITH(libs, | |||
594 | fi | 594 | fi |
595 | ] | 595 | ] |
596 | ) | 596 | ) |
597 | AC_ARG_WITH(Werror, | ||
598 | [ --with-Werror Build main code with -Werror], | ||
599 | [ | ||
600 | if test -n "$withval" && test "x$withval" != "xno"; then | ||
601 | werror_flags="-Werror" | ||
602 | if "x${withval}" != "xyes"; then | ||
603 | werror_flags="$withval" | ||
604 | fi | ||
605 | fi | ||
606 | ] | ||
607 | ) | ||
597 | 608 | ||
598 | AC_MSG_CHECKING(compiler and flags for sanity) | 609 | AC_MSG_CHECKING(compiler and flags for sanity) |
599 | AC_RUN_IFELSE( | 610 | AC_RUN_IFELSE( |
@@ -3358,6 +3369,10 @@ if test "$ac_cv_lib_pam_pam_set_item" = yes ; then | |||
3358 | LIBS=`echo $LIBS | sed 's/-ldl //'` | 3369 | LIBS=`echo $LIBS | sed 's/-ldl //'` |
3359 | fi | 3370 | fi |
3360 | 3371 | ||
3372 | dnl Adding -Werror to CFLAGS early prevents configure tests from running. | ||
3373 | dnl Add now. | ||
3374 | CFLAGS="$CFLAGS $werror_flags" | ||
3375 | |||
3361 | AC_EXEEXT | 3376 | AC_EXEEXT |
3362 | AC_CONFIG_FILES([Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile \ | 3377 | AC_CONFIG_FILES([Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile \ |
3363 | scard/Makefile ssh_prng_cmds survey.sh]) | 3378 | scard/Makefile ssh_prng_cmds survey.sh]) |