[prev in list] [next in list] [prev in thread] [next in thread] 

List:       geos-commits
Subject:    [geos-commits] r2744 - trunk
From:       svn_geos () osgeo ! org
Date:       2009-11-26 19:49:25
Message-ID: 20091126194925.2F097E019F8 () lists ! osgeo ! org
[Download RAW message or body]

Author: pramsey
Date: 2009-11-26 14:49:24 -0500 (Thu, 26 Nov 2009)
New Revision: 2744

Modified:
   trunk/configure.in
Log:
Add magic flags for OS/X Snow Leopard only. (#299)


Modified: trunk/configure.in
===================================================================
--- trunk/configure.in	2009-11-26 19:46:31 UTC (rev 2743)
+++ trunk/configure.in	2009-11-26 19:49:24 UTC (rev 2744)
@@ -201,7 +201,6 @@
 
 
 
-
 dnl --------------------------------------------------------------------
 dnl - check whether python is required for the build
 dnl --------------------------------------------------------------------
@@ -284,6 +283,38 @@
 
 
 dnl --------------------------------------------------------------------
+dnl - do operating-system specific things
+dnl --------------------------------------------------------------------
+
+AC_MSG_CHECKING([OS-specific settings])
+
+case "${host_os}" in
+	*darwin*)
+		AC_MSG_RESULT([${host_os}])
+		AC_MSG_CHECKING([for OS/X version])
+		kernel=`uname -r`
+
+		# "Darwin 9.6.0" is Mac OSX 10.5.6
+		# "Darwin 10.x" would presumably be Mac OS X 10.6.x
+		case "${kernel}" in
+			8.*)
+				AC_MSG_RESULT([Mac OS X 10.4 Tiger])
+				;;
+			9.*)
+				AC_MSG_RESULT([Mac OS X 10.5 Leopard])
+				;;
+			10.*)
+				CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor -Woverloaded-virtual"
+				AC_MSG_RESULT([Mac OS X 10.6 Snow Leopard])
+				;;
+			*)
+				AC_MSG_RESULT([Mac OS X (Darwin ${kernel} kernel)])
+				;;
+		esac
+		;;
+esac
+
+dnl --------------------------------------------------------------------
 dnl - check for boost 
 dnl --------------------------------------------------------------------
 

_______________________________________________
geos-commits mailing list
geos-commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geos-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic