Revert test commit at revision 233535.
[oota-llvm.git] / configure
index 2c2a92a28daca601851e0c34ca54a280a34185bb..4ad1f21ed3bc9f752d4a519a2167bbada4735674 100755 (executable)
--- a/configure
+++ b/configure
@@ -1426,6 +1426,9 @@ Optional Features:
   --enable-expensive-checks
                           Compile with expensive debug checks enabled (default
                           is NO)
+  --enable-abi-breaking-checks
+                          Compile with abi-breaking asserts support (default
+                          is with-asserts)
   --enable-debug-runtime  Build runtime libs with debug symbols (default is
                           NO)
   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
@@ -4980,9 +4983,11 @@ fi
 if test ${enableval} = "yes" ; then
   DISABLE_ASSERTIONS=
 
+  assertions_enabled="yes"
 else
   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
 
+  assertions_enabled="no"
 fi
 
 # Check whether --enable-werror was given.
@@ -5023,6 +5028,32 @@ else
 
 fi
 
+# Check whether --enable-abi-breaking-checks was given.
+if test "${enable_abi_breaking_checks+set}" = set; then
+  enableval=$enable_abi_breaking_checks;
+else
+  enableval="with-asserts"
+fi
+
+case "$enableval" in
+  with-asserts)  if test ${assertions_enabled} = "yes" ; then
+
+cat >>confdefs.h <<\_ACEOF
+#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
+_ACEOF
+
+                fi ;;
+  yes)
+cat >>confdefs.h <<\_ACEOF
+#define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
+_ACEOF
+ ;;
+  no) ;;
+  *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
+echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
+   { (exit 1); exit 1; }; }
+esac
+
 # Check whether --enable-debug-runtime was given.
 if test "${enable_debug_runtime+set}" = set; then
   enableval=$enable_debug_runtime;
@@ -5221,9 +5252,9 @@ echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxyge
 
         enable_server_based_search=YES
 
-        searchengine_url=$WITH_DOXYGEN_SEARCH_ENGINE_URL
+        searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
 
-        extra_search_mappings=$WITH_DOXYGEN_SEARCH_MAPPINGS
+        extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
 
         ;;
 
@@ -5319,11 +5350,11 @@ fi
 
     llvm_doxygen_qhp_namespace=org.llvm
 
-    llvm_doxygen_qhelpgenerator_path=$QHELPGENERATOR
+    llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
 
-    llvm_doxygen_qhp_cust_filter_name=$PACKAGE_STRING
+    llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
 
-    llvm_doxygen_qhp_cust_filter_attrs=$PACKAGE_NAME,$PACKAGE_VERSION
+    llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
 
 
         clang_doxygen_generate_qhp=YES
@@ -5332,11 +5363,11 @@ fi
 
     clang_doxygen_qhp_namespace=org.llvm.clang
 
-    clang_doxygen_qhelpgenerator_path=$QHELPGENERATOR
+    clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
 
-    clang_doxygen_qhp_cust_filter_name=Clang $PACKAGE_VERSION
+    clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
 
-    clang_doxygen_qhp_cust_filter_attrs=Clang,$PACKAGE_VERSION
+    clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
 
     ;;
 
@@ -5354,9 +5385,9 @@ fi
 
 
 
-    clang_doxygen_qhp_cust_filter_name=Clang $PACKAGE_VERSION
+    clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
 
-    clang_doxygen_qhp_cust_filter_attrs=Clang,$PACKAGE_VERSION
+    clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
 
     ;;