Author: vedge
Date: 2008-10-19 11:39:16 -0300 (Sun, 19 Oct 2008)
New Revision: 743
Modified:
trunk/BSDBuild/cc.pm
Log:
add HAVE_GCC check
Modified: trunk/BSDBuild/cc.pm
===================================================================
--- trunk/BSDBuild/cc.pm 2008-10-14 05:22:41 UTC (rev 742)
+++ trunk/BSDBuild/cc.pm 2008-10-19 14:39:16 UTC (rev 743)
@@ -73,6 +73,16 @@
MkIf('"${HAVE_CC_WARNINGS}" = "yes"');
MkDefine('TEST_CFLAGS', '-Wall -Werror');
MkEndif;
+
+ MkPrintN('checking for gcc...');
+ MkCompileC('HAVE_GCC', '', '', << 'EOF');
+int main(int argc, char *argv[]) {
+#if !defined(__GNUC__)
+# error "Not GCC"
+#endif
+ return (0);
+}
+EOF
# Check for floating point support.
# TODO representation
_______________________________________________
BSDBuild-Commits mailing list
[email protected]
http://mail231.csoft.net/mailman/listinfo/bsdbuild-commits