# HG changeset patch # User Ralf Wildenhues # Date 1299310769 -3600 # Node ID 45ec4f35abdf50c995bbe08709a1bb6cc3ffb832 # Parent 8d1ec7b0bc4d655c2c861a7355bcb0d2387dbf96 Update AC_OPENMP macro for Lahey compiler on GNU/Linux. * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf. Signed-off-by: Ralf Wildenhues diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-03-05 Ralf Wildenhues + + Update AC_OPENMP macro for Lahey compiler on GNU/Linux. + * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf. + 2011-03-03 Bruce Korb parse-duration: remove xalloc.h dependency diff --git a/m4/openmp.m4 b/m4/openmp.m4 --- a/m4/openmp.m4 +++ b/m4/openmp.m4 @@ -1,4 +1,4 @@ -# openmp.m4 serial 8 +# openmp.m4 serial 9 dnl Copyright (C) 2006-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -79,12 +79,14 @@ dnl IBM C (AIX, Linux) -qsmp=omp dnl Cray CCE -homp dnl NEC SX -Popenmp + dnl Lahey Fortran (Linux) --openmp dnl If in this loop a compiler is passed an option that it doesn't dnl understand or that it misinterprets, the AC_LINK_IFELSE test dnl will fail (since we know that it failed without the option), dnl therefore the loop will continue searching for an option, and dnl no output file called 'penmp' or 'mp' is created. - for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp -Popenmp; do + for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \ + -Popenmp --openmp; do ac_save_[]_AC_LANG_PREFIX[]FLAGS=$[]_AC_LANG_PREFIX[]FLAGS _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $ac_option" AC_LINK_IFELSE([_AC_LANG_OPENMP],