Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 499af5d

Browse files
author
Jonathan Kliem
committed
remove SAGE_HAVE_OPENMP
1 parent 3e415ce commit 499af5d

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

build/pkgs/gcc/spkg-configure.m4

-2
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,9 @@ SAGE_SPKG_CONFIGURE_BASE([gcc], [
227227
AX_OPENMP([
228228
AC_SUBST(OPENMP_CFLAGS)
229229
AC_SUBST(OPENMP_CXXFLAGS)
230-
SAGE_HAVE_OPENMP=yes
231230
])
232231
AC_LANG_POP()
233232
])
234-
AC_SUBST(SAGE_HAVE_OPENMP)
235233
AC_LANG_POP()
236234
237235

build/pkgs/python3/spkg-configure.m4

+3-2
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,14 @@ SAGE_SPKG_CONFIGURE([python3], [
9898
])
9999
])
100100
101-
AS_IF([test -n "$SAGE_HAVE_OPENMP"], [
101+
AS_IF([test -n "$OPENMP_CFLAGS"], [
102102
AC_MSG_CHECKING([whether OpenMP works with the C/C++ compilers configured for building extensions for $PYTHON_FOR_VENV])
103103
SAGE_PYTHON_CHECK_DISTUTILS([CC="$CC" CXX="$CXX" CFLAGS="$CFLAGS $OPENMP_CFLAGS" CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS" conftest_venv/bin/python3], [
104104
AC_MSG_RESULT([yes])
105105
], [
106106
AC_MSG_RESULT([no, $reason; disabling use OpenMP])
107-
SAGE_HAVE_OPENMP=""
107+
OPENMP_CFLAGS=""
108+
OPENMP_CXXFLAGS=""
108109
])
109110
])
110111

src/bin/sage-env-config.in

+2-6
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,8 @@ CONFIGURED_OBJCXX="@OBJCXX@"
4747
# Other configuration (exported)
4848
#######################################
4949
# OpenMP flags, if available.
50-
export SAGE_HAVE_OPENMP="@SAGE_HAVE_OPENMP@"
51-
if [ -n "$SAGE_HAVE_OPENMP" ]; then
52-
export SAGE_OPENMP_CFLAGS="@OPENMP_CFLAGS@"
53-
export SAGE_OPENMP_CXXFLAGS="@OPENMP_CXXFLAGS@"
54-
fi
55-
50+
export SAGE_OPENMP_CFLAGS="@OPENMP_CFLAGS@"
51+
export SAGE_OPENMP_CXXFLAGS="@OPENMP_CXXFLAGS@"
5652

5753
#######################################
5854
# Other configuration (not exported, only used in sage-env)

0 commit comments

Comments
 (0)