case "$with_threads" in
"yes" | "pthread" | "pthreads" | "pthread-threads" | "")
ACX_PTHREAD(CC="$PTHREAD_CC"
- CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
LIBS="$PTHREAD_LIBS $LIBS"
SCM_I_GSC_USE_PTHREAD_THREADS=1
with_threads="pthreads",
#######################################################################
-dnl Tell guile-config what flags guile users should link against.
-GUILE_LIBS="$LDFLAGS $THREAD_LIBS_INSTALLED $LIBS"
+dnl Tell guile-config what flags guile users should compile and link with.
+GUILE_LIBS"$LDFLAGS $LIBS"
+GUILE_CFLAGS="$PTHREAD_CFLAGS"
AC_SUBST(GUILE_LIBS)
+AC_SUBST(GUILE_CFLAGS)
AC_SUBST(AWK)
AC_SUBST(LIBLOBJS)