- (dtucker) [configure.ac] Add a --with-Werror option to configure for
adding -Werror to CFLAGS when all of the configure tests are done. ok djm@
This commit is contained in:
parent
dd352b675b
commit
7da23cb5d3
|
@ -5,6 +5,8 @@
|
||||||
Silence bogus -Wuninitialized warnings; ok djm@
|
Silence bogus -Wuninitialized warnings; ok djm@
|
||||||
- (dtucker) [configure.ac] Enable -Wuninitialized by default when compiling
|
- (dtucker) [configure.ac] Enable -Wuninitialized by default when compiling
|
||||||
with gcc. ok djm@
|
with gcc. ok djm@
|
||||||
|
- (dtucker) [configure.ac] Add a --with-Werror option to configure for
|
||||||
|
adding -Werror to CFLAGS when all of the configure tests are done. ok djm@
|
||||||
|
|
||||||
20050726
|
20050726
|
||||||
- (dtucker) [configure.ac] Update zlib warning message too, pointed out by
|
- (dtucker) [configure.ac] Update zlib warning message too, pointed out by
|
||||||
|
@ -2887,4 +2889,4 @@
|
||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.3859 2005/08/02 07:21:29 dtucker Exp $
|
$Id: ChangeLog,v 1.3860 2005/08/02 14:20:15 dtucker Exp $
|
||||||
|
|
17
configure.ac
17
configure.ac
|
@ -1,4 +1,4 @@
|
||||||
# $Id: configure.ac,v 1.281 2005/08/02 07:21:29 dtucker Exp $
|
# $Id: configure.ac,v 1.282 2005/08/02 14:20:15 dtucker Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 1999-2004 Damien Miller
|
# Copyright (c) 1999-2004 Damien Miller
|
||||||
#
|
#
|
||||||
|
@ -594,6 +594,17 @@ AC_ARG_WITH(libs,
|
||||||
fi
|
fi
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
AC_ARG_WITH(Werror,
|
||||||
|
[ --with-Werror Build main code with -Werror],
|
||||||
|
[
|
||||||
|
if test -n "$withval" && test "x$withval" != "xno"; then
|
||||||
|
werror_flags="-Werror"
|
||||||
|
if "x${withval}" != "xyes"; then
|
||||||
|
werror_flags="$withval"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
AC_MSG_CHECKING(compiler and flags for sanity)
|
AC_MSG_CHECKING(compiler and flags for sanity)
|
||||||
AC_RUN_IFELSE(
|
AC_RUN_IFELSE(
|
||||||
|
@ -3358,6 +3369,10 @@ if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
|
||||||
LIBS=`echo $LIBS | sed 's/-ldl //'`
|
LIBS=`echo $LIBS | sed 's/-ldl //'`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Adding -Werror to CFLAGS early prevents configure tests from running.
|
||||||
|
dnl Add now.
|
||||||
|
CFLAGS="$CFLAGS $werror_flags"
|
||||||
|
|
||||||
AC_EXEEXT
|
AC_EXEEXT
|
||||||
AC_CONFIG_FILES([Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile \
|
AC_CONFIG_FILES([Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile \
|
||||||
scard/Makefile ssh_prng_cmds survey.sh])
|
scard/Makefile ssh_prng_cmds survey.sh])
|
||||||
|
|
Loading…
Reference in New Issue