mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
* configure.in, acconfig.h: Added flags for thread support.
This commit is contained in:
parent
1764973d10
commit
027fde3970
2 changed files with 48 additions and 0 deletions
|
@ -32,3 +32,18 @@
|
|||
#undef GUILE_MAJOR_VERSION
|
||||
#undef GUILE_MINOR_VERSION
|
||||
#undef GUILE_VERSION
|
||||
|
||||
/* Define if using cooperative multithreading. */
|
||||
#undef USE_COOP_THREADS
|
||||
|
||||
/* Define if using "FSU" pthreads. */
|
||||
#undef USE_FSU_PTHREADS
|
||||
|
||||
/* Define if using MIT pthreads. */
|
||||
#undef USE_MIT_PTHREADS
|
||||
|
||||
/* Define if using PCthreads pthreads. */
|
||||
#undef USE_PCTHREADS_PTHREADS
|
||||
|
||||
/* Define if using any sort of threads. */
|
||||
#undef USE_THREADS
|
||||
|
|
|
@ -30,6 +30,10 @@ AC_AIX
|
|||
AC_ISC_POSIX
|
||||
AC_MINIX
|
||||
|
||||
builtin(sinclude, ../aclocal.m4)
|
||||
CY_AC_WITH_THREADS
|
||||
CFLAGS="$CPPFLAGS $CFLAGS"
|
||||
|
||||
AC_C_CONST
|
||||
|
||||
AC_HEADER_STDC
|
||||
|
@ -112,6 +116,35 @@ dnl
|
|||
|
||||
test "x$FD_SETTER" != x && AC_DEFINE(HAVE_FD_SETTER)
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
#
|
||||
# Flags for thread support
|
||||
#
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
dnl
|
||||
dnl Set the appropriate flags!
|
||||
dnl
|
||||
if test "$cy_cv_threads_package" = FSU; then
|
||||
AC_DEFINE(USE_FSU_PTHREADS, 1)
|
||||
else if test "$cy_cv_threads_package" = COOP; then
|
||||
AC_DEFINE(USE_COOP_THREADS, 1)
|
||||
else if test "$cy_cv_threads_package" = MIT; then
|
||||
AC_DEFINE(USE_MIT_PTHREADS, 1)
|
||||
else if test "$cy_cv_threads_package" = PCthreads; then
|
||||
AC_DEFINE(USE_PCTHREADS_PTHREADS, 1)
|
||||
else if test "$cy_cv_threads_package" = unknown; then
|
||||
AC_MSG_ERROR("cannot find threads installation")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$cy_cv_threads_package" != ""; then
|
||||
AC_DEFINE(USE_THREADS)
|
||||
fi
|
||||
|
||||
## If we're using GCC, ask for aggressive warnings.
|
||||
case "$GCC" in
|
||||
yes ) CFLAGS="$CFLAGS -Wall -Wpointer-arith" ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue