Revision: 41347
http://brlcad.svn.sourceforge.net/brlcad/?rev=41347&view=rev
Author: starseeker
Date: 2010-11-13 15:29:27 +0000 (Sat, 13 Nov 2010)
Log Message:
-----------
Add union wait test to tcl CMake build
Modified Paths:
--------------
brlcad/branches/cmake/src/other/tcl/CMakeLists.txt
Modified: brlcad/branches/cmake/src/other/tcl/CMakeLists.txt
===================================================================
--- brlcad/branches/cmake/src/other/tcl/CMakeLists.txt 2010-11-12 22:41:06 UTC
(rev 41346)
+++ brlcad/branches/cmake/src/other/tcl/CMakeLists.txt 2010-11-13 15:29:27 UTC
(rev 41347)
@@ -295,7 +295,27 @@
exit(strtoul(string,&term,0) != 0 || term != string+1);"
)
+# Check for union wait
+SET(UNION_WAIT_SRC "
+#include <sys/types.h>
+#include <sys/wait.h>
+int
+main ()
+{
+
+union wait x;
+WIFEXITED(x); /* Generates compiler error if WIFEXITED
+ * uses an int. */
+return 0;
+}
+")
+CHECK_C_SOURCE_RUNS("${UNION_WAIT_SRC}" HAVE_UNION_WAIT)
+IF(NOT HAVE_UNION_WAIT)
+ ADD_TCL_CFLAG(NO_UNION_WAIT)
+ENDIF(NOT HAVE_UNION_WAIT)
+
+
# Check for types - TODO: still need to define substitutes if these
# are not found
CONFIG_CHECK_TYPE_SIZE(mode_t MODE)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits