1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 11:05:18 +00:00

disable OpenMP by default, i386 optimization problems

This commit is contained in:
Toni Spets 2009-05-15 22:39:47 +03:00
parent b4ca1d146f
commit 0ea5fa1468

View File

@ -637,6 +637,11 @@ dnl
dnl Check for OpenMP support dnl Check for OpenMP support
dnl dnl
AC_ARG_ENABLE([openmp],
AC_HELP_STRING([--enable-openmp], [enable if you want OpenMP support @<:@default=no@:>@]),
[want_openmp="$enableval"], [want_openmp=no])
if test x$want_openmp = xyes; then
AX_OPENMP([ AX_OPENMP([
gcc_version=`$CC -dumpversion` gcc_version=`$CC -dumpversion`
gcc_major=`echo $gcc_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` gcc_major=`echo $gcc_version | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
@ -645,9 +650,12 @@ AX_OPENMP([
if test ! "x$GCC" = "xyes" -o $gcc_major -ge 4 -a $gcc_minor -ge 3; then if test ! "x$GCC" = "xyes" -o $gcc_major -ge 4 -a $gcc_minor -ge 3; then
AC_DEFINE(HAVE_OPENMP,1,[Define if OpenMP is enabled]) AC_DEFINE(HAVE_OPENMP,1,[Define if OpenMP is enabled])
CFLAGS="$CFLAGS $OPENMP_CFLAGS" CFLAGS="$CFLAGS $OPENMP_CFLAGS"
else
want_openmp=no
fi fi
]) ])
fi
dnl dnl
dnl Check doc stuff dnl Check doc stuff
@ -777,6 +785,7 @@ $PACKAGE $VERSION configured successfully:
XMMS2: $want_xmms2 XMMS2: $want_xmms2
* General: * General:
OpenMP: $want_openmp
math: $want_math math: $want_math
hddtemp: $want_hddtemp hddtemp: $want_hddtemp
portmon: $want_portmon portmon: $want_portmon