From 203a013d13a90f29b46252aa234f3af31828257d Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 11 Oct 2012 21:46:02 +0200 Subject: [PATCH] Correct test if library can be dlopen()ed. --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index dcd7125..ef06350 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ ############################################################################# # Initialisation # ############################################################################# -AC_INIT([ctools], [0.5.1], [jurgen.knodlseder@irap.omp.eu], [ctools]) +AC_INIT([ctools], [0.5.2], [jurgen.knodlseder@irap.omp.eu], [ctools]) AC_CONFIG_SRCDIR([src/ctselect/ctselect.cpp]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([gnu no-dependencies]) @@ -763,8 +763,8 @@ if test "x$openmp_ok" = "xyes"; then # dynamically if test "$OPENMP_CXXFLAGS" = "-fopenmp" -a "$ac_sys_system" = "Linux"; then AC_MSG_CHECKING(whether we can dynamically load libgomp) - SAVED_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -ldl" + SAVED_LIBS=$LIBS + LIBS="-ldl" AC_TRY_RUN(AC_LANG_PROGRAM([#include ], [if (dlopen("libgomp.so.1", RTLD_NOW) == 0) return 1;]), [AC_MSG_RESULT(yes)], @@ -772,7 +772,7 @@ if test "x$openmp_ok" = "xyes"; then AC_MSG_RESULT(no) AC_MSG_WARN([OpenMP detected but shared libgomp.so.1 library cannot be dlopen()ed.]) AC_MSG_WARN([If you use a gcc 4.2.x compiler, this is a known feature. Try to use gcc >= 4.3.])]) - LDFLAGS=$SAVED_LDFLAGS + LIBS=$SAVED_LIBS fi # Special Darwin test to see whether OpenMP compiles without adding the -- libgit2 0.21.4