From 9f665430e4c7b1e5d33d810153e7c83c4963afea Mon Sep 17 00:00:00 2001 From: psychon Date: Thu, 19 Jul 2007 19:56:20 +0000 Subject: [PATCH] Add -Woverloaded-virtual to CXXFLAGS and use tabs for indentation. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@815 726aef4b-f618-498e-8847-2d620e286838 --- configure | 22 +++++++++++++--------- configure.in | 26 +++++++++++++++----------- 2 files changed, 28 insertions(+), 20 deletions(-) diff --git a/configure b/configure index d61de412..34a15111 100755 --- a/configure +++ b/configure @@ -2441,17 +2441,17 @@ appendLD () { } case "${host_os}" in - freebsd*) - appendInc -I/usr/local/include - appendLib -L/usr/local/lib -lcompat - appendCXX -D__GNU_LIBRARY__ + freebsd*) + appendInc -I/usr/local/include + appendLib -L/usr/local/lib -lcompat + appendCXX -D__GNU_LIBRARY__ ;; - solaris*) - appendLib -lsocket -lnsl - ISSUN=1 + solaris*) + appendLib -lsocket -lnsl + ISSUN=1 ;; - cygwin) - ISCYGWIN=1 + cygwin) + ISCYGWIN=1 ;; esac @@ -2506,6 +2506,10 @@ else appendCXX -Wall -s -O2 -fomit-frame-pointer fi +if test "x$GXX" = "xyes"; then + appendCXX -Woverloaded-virtual +fi + if test "$IPV6" != "no"; then appendCXX -DHAVE_IPV6 fi diff --git a/configure.in b/configure.in index 7763c496..ccc5041b 100644 --- a/configure.in +++ b/configure.in @@ -40,17 +40,17 @@ appendLD () { } case "${host_os}" in - freebsd*) - appendInc -I/usr/local/include - appendLib -L/usr/local/lib -lcompat - appendCXX -D__GNU_LIBRARY__ + freebsd*) + appendInc -I/usr/local/include + appendLib -L/usr/local/lib -lcompat + appendCXX -D__GNU_LIBRARY__ ;; - solaris*) - appendLib -lsocket -lnsl - ISSUN=1 + solaris*) + appendLib -lsocket -lnsl + ISSUN=1 ;; - cygwin) - ISCYGWIN=1 + cygwin) + ISCYGWIN=1 ;; esac @@ -93,6 +93,10 @@ if test "$IPV6" != "no"; then appendCXX -DHAVE_IPV6 fi +if test "x$GXX" = "xyes"; then + appendCXX -Woverloaded-virtual +fi + AC_CHECK_LIB( gnugetopt, getopt_long,) AC_CHECK_FUNCS( stat lstat chmod open, , AC_ERROR([Missing Required libc feature])) if test "$MODULES" = "yes"; then @@ -151,8 +155,8 @@ if test "$MODULES" = "yes"; then if test -n "$PERL"; then echo "$PERL" AC_CHECK_LIB(perl, perl_alloc,unset NOPERL, - AC_ERROR([Could not find liberl. Try --disable-perl]), - [`$PERL -MExtUtils::Embed -e ccopts -e ldopts`]) + AC_ERROR([Could not find liberl. Try --disable-perl]), + [`$PERL -MExtUtils::Embed -e ccopts -e ldopts`]) else echo "no" unset PERL