Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the clang configure check.

  • Loading branch information...
commit d308d4f961a842640872ef527d4e253ac172523f 1 parent 1dac25c
Zoltan Varga vargaz authored
Showing with 6 additions and 11 deletions.
  1. +6 −11 configure.in
17 configure.in
View
@@ -324,9 +324,6 @@ case "$host" in
;;
arm*-darwin*)
has_dtrace=no
-
- # Disable the clang check if we're cross compiling
- mono_cv_clang=no
;;
esac
;;
@@ -538,14 +535,12 @@ CFLAGS_FOR_LIBGC="$CFLAGS_FOR_LIBGC -g"
AC_CACHE_CHECK([for clang],
mono_cv_clang,[
- AC_TRY_RUN([
- int main () {
- #ifdef __clang__
- return 0;
- #else
- return 1;
- #endif
- }
+ AC_TRY_COMPILE([], [
+ #ifdef __clang__
+ #else
+ #error "FAILED"
+ #endif
+ return 0;
],
[mono_cv_clang=yes],
[mono_cv_clang=no],
Please sign in to comment.
Something went wrong with that request. Please try again.