diff options
author | Nick Papior <nickpapior@gmail.com> | 2016-09-22 20:25:00 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2016-09-23 22:06:28 +0200 |
commit | 498565eb307516460b56e4eac742e85c573617bd (patch) | |
tree | 7ce3ba1ceb867ae1bb59c52058210595d71ad811 /m4/ax_openmp.m4 | |
parent | 3c51a60e4348b0f81d772db3a3ac9d278f18bed1 (diff) | |
download | autoconf-archive-498565eb307516460b56e4eac742e85c573617bd.tar.gz |
Updated OpenMP flag detection for latest Intel compilers
- icc/ifort will deprecate -openmp in the future,
-qopenmp will replace it.
Signed-off-by: Nick Papior <nickpapior@gmail.com>
Diffstat (limited to 'm4/ax_openmp.m4')
-rw-r--r-- | m4/ax_openmp.m4 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/m4/ax_openmp.m4 b/m4/ax_openmp.m4 index 4d5d88b..26639fa 100644 --- a/m4/ax_openmp.m4 +++ b/m4/ax_openmp.m4 @@ -39,6 +39,7 @@ # # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> # Copyright (c) 2015 John W. Peterson <jwpeterson@gmail.com> +# Copyright (c) 2016 Nick R. Papior <nickpapior@gmail.com> # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -66,16 +67,19 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 11 +#serial 12 AC_DEFUN([AX_OPENMP], [ AC_PREREQ([2.69]) dnl for _AC_LANG_PREFIX AC_CACHE_CHECK([for OpenMP flag of _AC_LANG compiler], ax_cv_[]_AC_LANG_ABBREV[]_openmp, [save[]_AC_LANG_PREFIX[]FLAGS=$[]_AC_LANG_PREFIX[]FLAGS ax_cv_[]_AC_LANG_ABBREV[]_openmp=unknown -# Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI), -# -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none -ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none" +# Flags to try: -fopenmp (gcc), -mp (SGI & PGI), +# -qopenmp (icc>=15), -openmp (icc), +# -xopenmp (Sun), -omp (Tru64), +# -qsmp=omp (AIX), +# none +ax_openmp_flags="-fopenmp -openmp -qopenmp -mp -xopenmp -omp -qsmp=omp none" if test "x$OPENMP_[]_AC_LANG_PREFIX[]FLAGS" != x; then ax_openmp_flags="$OPENMP_[]_AC_LANG_PREFIX[]FLAGS $ax_openmp_flags" fi |