From 40b601fbb774cd2be2f6cbe7155570340fc475a2 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 21 Mar 2012 16:33:57 +0000 Subject: Use autoconf macro for testing compiler options with empty input. --- configure.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index ee5e856..bb3b057 100644 --- a/configure.in +++ b/configure.in @@ -2005,10 +2005,9 @@ if test -n "$submachine"; then libc_cv_cc_submachine, [dnl libc_cv_cc_submachine=no for opt in "-march=$submachine" "-mcpu=$submachine"; do - if AC_TRY_COMMAND([${CC-cc} $opt -xc /dev/null -S -o /dev/null]); then + LIBC_TRY_CC_OPTION([$opt], [ libc_cv_cc_submachine="$opt" - break - fi + break], []) done]) if test "x$libc_cv_cc_submachine" = xno; then AC_MSG_ERROR([${CC-cc} does not support $submachine]) -- cgit v1.1