diff --git a/configure b/configure index 7fee737be7..da74ccd961 100755 --- a/configure +++ b/configure @@ -3981,6 +3981,17 @@ if test "$cpu" = host; then } cpu=$(check_native -march || check_native -mcpu) ;; + clang) + check_native(){ + $cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return + sed -n "/cc1.*-target-cpu /{ + s/.*-target-cpu \\([^ ]*\\).*/\\1/ + p + q + }" $TMPE + } + cpu=$(check_native -march) + ;; esac test "${cpu:-host}" = host &&