/[guile]/guile/guile-core/configure.in
ViewVC logotype

Diff of /guile/guile-core/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.203 by mdj, Sun Dec 1 13:10:07 2002 UTC revision 1.204 by mvo, Mon Dec 2 01:02:46 2002 UTC
# Line 639  fi Line 639  fi
639    
640  ### What thread package has the user asked for?  ### What thread package has the user asked for?
641  AC_ARG_WITH(threads, [  --with-threads          thread interface],  AC_ARG_WITH(threads, [  --with-threads          thread interface],
642              , with_threads=no)              , with_threads=yes)
643    
 ### Turn $with_threads into either the name of a threads package, like  
 ### `qt', or `no', meaning that threads should not be supported.  
 AC_MSG_CHECKING(what kind of threads to support)  
644  case "$with_threads" in  case "$with_threads" in
645    "yes" | "qt" | "coop" | "")    "yes" | "coop-pthread" | "copt" | "coop" | "")
646      with_threads=qt      AC_CHECK_LIB(pthread, main,
647    ;;        LIBS="-lpthread $LIBS"
648    "no" | "null")        AC_DEFINE(USE_COPT_THREADS, 1,
649      with_threads=null          [Define if using coop-pthread multithreading.])
650          with_threads="coop-pthreads",
651          with_threads="null")
652    ;;    ;;
   "coop-pthreads" | "copt" )  
     with_threads="coop-pthreads"  
   ;;  
   * )  
     AC_MSG_ERROR(invalid value for --with-threads: $with_threads)  
   ;;  
 esac  
 AC_MSG_RESULT($with_threads)  
   
 ## Make sure the threads package we've chosen is actually supported on  
 ## the present platform.  
 case "${with_threads}" in  
   "qt" )  
     ## This configures the QuickThreads package, and sets or clears  
     ## the THREAD_PACKAGE variable if qthreads don't configure  
     ## correctly.  In that case, we fall back on null-threads.  
     QTHREADS_CONFIGURE  
    ;;  
   * )  
     THREAD_PACKAGE="${with_threads}"  
    ;;  
653  esac  esac
654    
655  case "${THREAD_PACKAGE}" in  case "$with_threads" in
656    "QT" )    "coop-pthreads")
     AC_DEFINE(USE_COOP_THREADS, 1,  
       [Define if using cooperative multithreading.])  
   
     AC_ARG_ENABLE(linuxthreads,  
       [  --disable-linuxthreads  disable linuxthreads workaround],,  
        enable_linuxthreads=yes)  
   
     ## Workaround for linuxthreads (optionally disabled)  
     if test $host_os = linux-gnu -a "$enable_linuxthreads" = yes; then  
       AC_DEFINE(GUILE_PTHREAD_COMPAT, 1,  
         [Define to enable workaround for COOP-linuxthreads compatibility.])  
       AC_CHECK_LIB(pthread, main)  
     fi  
   
657    ;;    ;;
658    "null" | "" )    "no" | "null")
659      AC_DEFINE(USE_NULL_THREADS, 1,      AC_DEFINE(USE_NULL_THREADS, 1,
660        [Define if using one-thread 'multi'threading.])        [Define if using one-thread 'multi'threading.])
661    ;;      with_threads="null-threads"
   "coop-pthreads" )  
     AC_DEFINE(USE_COPT_THREADS, 1,  
       [Define if using coop-pthread multithreading.])  
     AC_CHECK_LIB(pthread, main)  
662    ;;    ;;
663    * )    * )
664      AC_MSG_ERROR(invalid value for THREAD_PACKAGE: ${THREAD_PACKAGE})      AC_MSG_ERROR(invalid value for --with-threads: $with_threads)
665    ;;    ;;
666  esac  esac
667    
668    AC_MSG_CHECKING(what kind of threads to support)
669    AC_MSG_RESULT($with_threads)
670    
671  ## Cross building        ## Cross building      
672  if test "$cross_compiling" = "yes"; then  if test "$cross_compiling" = "yes"; then
# Line 864  AC_CONFIG_FILES([ Line 826  AC_CONFIG_FILES([
826    oop/goops/Makefile    oop/goops/Makefile
827    scripts/Makefile    scripts/Makefile
828    srfi/Makefile    srfi/Makefile
   qt/Makefile  
   qt/qt.h  
   qt/md/Makefile  
   qt/time/Makefile  
829    guile-config/Makefile    guile-config/Makefile
830    doc/Makefile    doc/Makefile
831    doc/ref/Makefile    doc/ref/Makefile

Legend:
Removed from v.1.203  
changed lines
  Added in v.1.204

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26