summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2014-03-15 14:24:40 +0800
committerBrian Behlendorf <[email protected]>2014-03-20 12:11:57 -0700
commita15dac42df202bf9e6825a62b81a36ad449ef53f (patch)
tree7384b784a52f640880a09023e47a7c05bb9b9958
parent26b42f3f9d03f85cc7966dc2fe4dfe9216601b0e (diff)
config: compile test rather than run test
When testing compiler flags, we only need to do compile test. Otherwise, configure will fail with "configure: error: cannot run test program while cross compiling" when cross compiling. Signed-off-by: Chunwei Chen <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2191
-rw-r--r--config/always-no-aggressive-loop-optimizations.m42
-rw-r--r--config/always-no-unused-but-set-variable.m42
-rw-r--r--config/user-frame-larger-than.m42
3 files changed, 3 insertions, 3 deletions
diff --git a/config/always-no-aggressive-loop-optimizations.m4 b/config/always-no-aggressive-loop-optimizations.m4
index 8f2115ae6..0a5576de1 100644
--- a/config/always-no-aggressive-loop-optimizations.m4
+++ b/config/always-no-aggressive-loop-optimizations.m4
@@ -7,7 +7,7 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_NO_AGGRESSIVE_LOOP_OPTIMIZATIONS], [
saved_flags="$CFLAGS"
CFLAGS="$CFLAGS -fno-aggressive-loop-optimizations"
- AC_RUN_IFELSE([AC_LANG_PROGRAM([], [])], [
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])], [
NO_AGGRESSIVE_LOOP_OPTIMIZATIONS=-fno-aggressive-loop-optimizations
AC_MSG_RESULT([yes])
], [
diff --git a/config/always-no-unused-but-set-variable.m4 b/config/always-no-unused-but-set-variable.m4
index 4a3ceb614..863c90a16 100644
--- a/config/always-no-unused-but-set-variable.m4
+++ b/config/always-no-unused-but-set-variable.m4
@@ -12,7 +12,7 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_NO_UNUSED_BUT_SET_VARIABLE], [
saved_flags="$CFLAGS"
CFLAGS="$CFLAGS -Wunused-but-set-variable"
- AC_RUN_IFELSE([AC_LANG_PROGRAM([], [])],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])],
[
NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
AC_MSG_RESULT([yes])
diff --git a/config/user-frame-larger-than.m4 b/config/user-frame-larger-than.m4
index 7ad86220d..e0828eca0 100644
--- a/config/user-frame-larger-than.m4
+++ b/config/user-frame-larger-than.m4
@@ -7,7 +7,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_FRAME_LARGER_THAN], [
saved_flags="$CFLAGS"
CFLAGS="$CFLAGS -Wframe-larger-than=1024"
- AC_RUN_IFELSE([AC_LANG_PROGRAM([], [])],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])],
[
FRAME_LARGER_THAN=-Wframe-larger-than=1024
AC_MSG_RESULT([yes])