Revision: 55654
          http://sourceforge.net/p/brlcad/code/55654
Author:   brlcad
Date:     2013-06-04 05:30:53 +0000 (Tue, 04 Jun 2013)
Log Message:
-----------
so CHECK_PROTOTYPE_EXISTS() is woefully busted in numerous ways.  assumes c++, 
has a bad symbol test, results in unused var warnings, and doesn't work with 
preprocessor-wrapped symbols coming from system headers.  former versions of 
CHECK_SYMBOL_EXISTS() almost did exactly what we need (a simple (void)symbol; 
test just like AC_CHECK_DECL) but was bastardized in recent versions so it now 
spews an error too (it's busted and has been reported).

Modified Paths:
--------------
    brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2013-06-04 04:27:38 UTC (rev 55653)
+++ brlcad/trunk/CMakeLists.txt 2013-06-04 05:30:53 UTC (rev 55654)
@@ -1700,9 +1700,9 @@
 
 # we may compile in strict pedantic mode, but still want access to
 # some POSIX functions.  test whether these symbols are declared in
-# addition to whether they exist (above).
-CHECK_PROTOTYPE_EXISTS(kill "sys/types.h;signal.h" HAVE_DECL_KILL)
-CHECK_PROTOTYPE_EXISTS(fileno "stdio.h" HAVE_DECL_FILENO)
+# addition to whether they resolve (above).
+CHECK_SYMBOL_EXISTS(kill "sys/types.h;signal.h" HAVE_DECL_KILL)
+CHECK_SYMBOL_EXISTS(fileno "stdio.h" HAVE_DECL_FILENO)
 
 # On Windows, we need to check for hypot etc..  This test pertains
 # to the windows specific config file, not CONFIG_H_FILE - hence,

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to