diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2020-11-10 18:20:24 +0100 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2020-12-10 13:28:07 +0200 |
commit | 4d3b57bed1e78936b86377efe9c4b92a731c7f8b (patch) | |
tree | 5a48d6d66bafe6929dfcad31fdf6212c013e6ff8 | |
parent | de2b3f139e7c51748e701f7449587c1c10faeaec (diff) | |
download | rpm-4d3b57bed1e78936b86377efe9c4b92a731c7f8b.tar.gz |
configure.ac: fix cross-compilation
Use AC_COMPILE_IFELSE as AC_RUN_IFELSE raises a build failure when
cross-compiling
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
(cherry picked from commit 13585fbbe83eb177b13d86c2d6f11ff41a68d07e)
-rw-r--r-- | configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index f64f0f3e0..ca30fd7c7 100644 --- a/configure.ac +++ b/configure.ac @@ -183,11 +183,11 @@ AS_IF([test "x$ac_cv_prog_c_openmp" != x && old_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $OPENMP_CFLAGS" AC_MSG_CHECKING([OpenMP is at least version 4.5]) - AC_RUN_IFELSE( + AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [#include <omp.h>], [#if _OPENMP < 201511 - exit(1); + #error #endif ] )], |