summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-26 18:10:14 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-26 18:10:14 (GMT)
commite49b93989dbf67b87c84fe3a1516b0d9bf6aab9d (patch)
tree50152af3d77c72a9b367c81f0fe37d2fa5db05c8 /bootstrap
parent45d85c2e341dea5de0348273b70c027bd918a45f (diff)
downloadCMake-e49b93989dbf67b87c84fe3a1516b0d9bf6aab9d.zip
CMake-e49b93989dbf67b87c84fe3a1516b0d9bf6aab9d.tar.gz
CMake-e49b93989dbf67b87c84fe3a1516b0d9bf6aab9d.tar.bz2
COMP: More warnings and hp issues
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap16
1 files changed, 5 insertions, 11 deletions
diff --git a/bootstrap b/bootstrap
index 047f0f1..d6331df 100755
--- a/bootstrap
+++ b/bootstrap
@@ -536,19 +536,13 @@ fi
# Check if C compiler works
TMPFILE=`cmake_tmp_file`
cat > "${TMPFILE}.c" <<EOF
-#include<stdio.h>
-#if defined(__hpux) && !defined(__GNUC__)
-# if defined(__CLASSIC_C__)
-/* No ansi option given. */
-# define bootstrap_require_no_prototype
-# elif defined(__STDC_EXT__)
-/* Option -Ae given. */
-# else
-/* Option -Aa given. */
-# endif
+#ifdef __cplusplus
+# error "The CMAKE_C_COMPILER is set to a C++ compiler"
#endif
-#ifdef bootstrap_require_no_prototype
+#include<stdio.h>
+
+#if defined(__CLASSIC_C__)
int main(argc, argv)
int argc;
char* argv[];