configure.in
changeset 185 34d316d5e744
parent 178 1fc1a101bf23
child 191 c151cfc43c07
     1.1 --- a/configure.in	Fri Sep 14 04:33:01 2001 +0000
     1.2 +++ b/configure.in	Fri Sep 14 04:34:15 2001 +0000
     1.3 @@ -1131,6 +1131,33 @@
     1.4      AM_CONDITIONAL(USE_CLONE, test x$use_clone = xyes)
     1.5  }
     1.6  
     1.7 +dnl See if we can use GNU pth library for threads
     1.8 +CheckPTH()
     1.9 +{
    1.10 +    dnl Check for pth support
    1.11 +    AC_ARG_ENABLE(pth,
    1.12 +[  --enable-pth            use GNU pth library for multi-threading [default=yes]],
    1.13 +                  , enable_pth=yes)
    1.14 +    if test x$enable_threads = xyes -a x$enable_pth = xyes; then
    1.15 +        AC_PATH_PROG(PTH_CONFIG, pth-config, no)
    1.16 +        if test "$PTH_CONFIG" = "no"; then
    1.17 +            use_pth=no
    1.18 +        else
    1.19 +            PTH_CFLAGS=`$PTH_CONFIG --cflags`
    1.20 +            PTH_LIBS=`$PTH_CONFIG --libs`
    1.21 +            SDL_CFLAGS="$SDL_CFLAGS $PTH_CFLAGS"
    1.22 +            SDL_LIBS="$SDL_LIBS $PTH_LIBS"
    1.23 +            use_pth=yes
    1.24 +        fi
    1.25 +        AC_MSG_CHECKING(pth)
    1.26 +        if test "x$use_pth" = xyes; then
    1.27 +            AC_MSG_RESULT(yes)
    1.28 +        else
    1.29 +            AC_MSG_RESULT(no)
    1.30 +        fi
    1.31 +    fi
    1.32 +}
    1.33 +
    1.34  dnl Determine whether the compiler can produce Win32 executables
    1.35  CheckWIN32()
    1.36  {