[icinga-checkins] icinga.org: icinga-core/mfriedrich/core: install: set -Wall gcc flags based on os/compiler #959

git at icinga.org git at icinga.org
Wed Nov 24 14:16:16 CET 2010


Module: icinga-core
Branch: mfriedrich/core
Commit: 2192b2e37321481b8e06f37d4f88619905a6d7fb
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=2192b2e37321481b8e06f37d4f88619905a6d7fb

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Wed Nov 24 14:15:55 2010 +0100

install: set -Wall gcc flags based on os/compiler #959

fixes #959

---

 Changelog    |    1 +
 configure    |   22 ++++++++++++++++++++++
 configure.in |   22 ++++++++++++++++++++++
 3 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/Changelog b/Changelog
index 745d790..7d9a57d 100644
--- a/Changelog
+++ b/Changelog
@@ -17,6 +17,7 @@ ENHANCEMENTS
 * classic ui: change default url target frame to main #1014 
 
 * install: add sysconfig source to init script #1015
+* install: set -Wall gcc flags based on os/compiler #959
 
 * idoutils: add index to table icinga_statehistory for usage in reporting module #957
 
diff --git a/configure b/configure
index e3d9b81..c4f305d 100755
--- a/configure
+++ b/configure
@@ -6776,6 +6776,28 @@ else
 	echo ""
 fi
 
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wall based on os/compiler" >&5
+$as_echo_n "checking for -Wall based on os/compiler... " >&6; }
+        case $host_os in
+                solaris2*|sysv4*)
+                ;;
+                aix4*|aix5*)
+			CFLAGS="-Wall $CFLAGS"
+                ;;
+                freebsd2*)
+                ;;
+                darwin*)
+                ;;
+                linux* | k*bsd*-gnu*)
+			CFLAGS="-Wall $CFLAGS"
+		;;
+                freebsd*)
+			CFLAGS="-Wall $CFLAGS"
+                ;;
+                *)
+                ;;
+        esac
+
 
 ac_config_files="$ac_config_files Makefile subst pkginfo base/Makefile common/Makefile contrib/Makefile cgi/Makefile html/Makefile module/Makefile module/idoutils/Makefile xdata/Makefile daemon-init daemon-init-redhat rc.ido2db module/idoutils/src/Makefile t-tap/Makefile t/Makefile module/idoutils/db/scripts/installdb module/idoutils/db/scripts/upgradedb module/idoutils/db/scripts/prepsql"
 
diff --git a/configure.in b/configure.in
index cba31e2..e3632a4 100644
--- a/configure.in
+++ b/configure.in
@@ -1111,6 +1111,28 @@ else
 	echo ""
 fi
 
+dnl set -Wall based on os/compiler
+AC_MSG_CHECKING(for -Wall based on os/compiler)
+        case $host_os in
+                solaris2*|sysv4*)
+                ;;
+                aix4*|aix5*)
+			CFLAGS="-Wall $CFLAGS"
+                ;;
+                freebsd2*)
+                ;;
+                darwin*)
+                ;;
+                linux* | k*bsd*-gnu*)
+			CFLAGS="-Wall $CFLAGS"
+		;;
+                freebsd*)
+			CFLAGS="-Wall $CFLAGS"
+                ;;
+                *)
+                ;;
+        esac
+
 
 AC_OUTPUT(Makefile subst pkginfo base/Makefile common/Makefile contrib/Makefile cgi/Makefile html/Makefile module/Makefile module/idoutils/Makefile xdata/Makefile daemon-init daemon-init-redhat rc.ido2db module/idoutils/src/Makefile t-tap/Makefile t/Makefile module/idoutils/db/scripts/installdb module/idoutils/db/scripts/upgradedb module/idoutils/db/scripts/prepsql)
 





More information about the icinga-checkins mailing list