On Mon, May 21, 2007 at 10:52:18AM -0700, Paul Eggert wrote: > Bruno Haible <bruno@xxxxxxxxx> writes: > > 2007-05-17 Bruno Haible <bruno@xxxxxxxxx> > > > > * lib/autoconf/c.m4 (_AC_LANG_OPENMP, AC_OPENMP): New macros. > > * doc/autoconf.texi (Generic Compiler Characteristics): Document > > AC_OPENMP. > > * NEWS: Mention AC_OPENMP. > > Thanks much. I installed that, after tweaking the documentation a > bit. Here's the documentation I installed: The automatic test for AC_OPENMP fails due to two instances of namespace pollution. Use of `OPENMP_CFLAGS' is intended, so add that to the list of exceptions. Avoid use of `enable_openmp' when the user passes no options to `configure'. This mirrors how AC_SYS_LARGEFILE handles the same situation. I installed this as fairly straightforward. 2007-05-21 Noah Misch <noah@xxxxxxxxxxxxxx> * lib/autoconf/c.m4 (AC_OPENMP): Simplify use of AC_ARG_ENABLE. * tests/local.at (AT_CHECK_ENV): Exempt OPENMP_CFLAGS. diff -Nurp -X dontdiff ac-clean/lib/autoconf/c.m4 ac-simplify_openmp/lib/autoconf/c.m4 --- ac-clean/lib/autoconf/c.m4 2007-05-21 17:34:34.000000000 -0400 +++ ac-simplify_openmp/lib/autoconf/c.m4 2007-05-21 17:56:49.000000000 -0400 @@ -1889,12 +1889,10 @@ AC_DEFUN([AC_OPENMP], [ AC_MSG_CHECKING([whether to use OpenMP]) AC_ARG_ENABLE(openmp, - [AS_HELP_STRING([--disable-openmp], [do not use OpenMP])], - [], - [enable_openmp=yes]) + [AS_HELP_STRING([--disable-openmp], [do not use OpenMP])]) AC_MSG_RESULT([$enable_openmp]) OPENMP_[]_AC_LANG_PREFIX[]FLAGS= - if test "$enable_openmp" = yes; then + if test "$enable_openmp" != no; then AC_MSG_CHECKING([for $CC option to support OpenMP]) AC_CACHE_VAL([ac_cv_prog_[]_AC_LANG_ABBREV[]_openmp], [ ac_cv_prog_[]_AC_LANG_ABBREV[]_openmp=unsupported diff -Nurp -X dontdiff ac-clean/tests/local.at ac-simplify_openmp/tests/local.at --- ac-clean/tests/local.at 2007-05-21 17:34:34.000000000 -0400 +++ ac-simplify_openmp/tests/local.at 2007-05-21 17:48:56.000000000 -0400 @@ -297,6 +297,7 @@ if test -f state-env.before && test -f s [CC|CFLAGS|CPP|GCC|CXX|CXXFLAGS|CXXCPP|GXX|F77|FFLAGS|FLIBS|G77], [ERL|ERLC|ERLCFLAGS|ERLANG_PATH_ERL|ERLANG_ROOT_DIR|ERLANG_LIB_DIR], [ERLANG_INSTALL_LIB_DIR|OBJC|OBJCPP|OBJCFLAGS], + [OPENMP_CFLAGS], [LIBS|LIB@&t@OBJS|LTLIBOBJS|LDFLAGS], [INSTALL(_(DATA|PROGRAM|SCRIPT))?], [CYGWIN|ISC|MINGW32|MINIX|EMXOS2|XENIX|EXEEXT|OBJEXT], _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf