Change Linux-centric clone() to POSIX threads for portability (Daryl Fonseca-Holt)

This commit is contained in:
marschap
2007-11-10 19:41:46 +00:00
parent cdd1c13711
commit a21f727566
3 changed files with 40 additions and 15 deletions
+25 -2
View File
@@ -263,9 +263,31 @@ dnl else
])
;;
lis)
AC_CHECK_HEADERS([pthread.h],[
AC_CHECK_LIB(pthread, pthread_create,[
LIBPTHREAD_LIBS="-lpthread"
ac_cv_lis_pthread=yes
],[
dnl else
ac_cv_lis_pthread=no
AC_MSG_WARN([The lis driver needs the pthread library and pthread_create() from it])
])
],[
dnl else
ac_cv_lis_pthread=no
AC_MSG_WARN([The lis driver needs pthread.h])
])
if test "$enable_libftdi" = yes ; then
DRIVERS="$DRIVERS lis${SO}"
actdrivers=["$actdrivers lis"]
if test "$enable_libusb" = yes; then
if test "$ac_cv_lis_pthread" = yes; then
DRIVERS="$DRIVERS lis${SO}"
actdrivers=["$actdrivers lis"]
else
AC_MSG_WARN([The lis driver needs the pthread library])
fi
else
AC_MSG_WARN([The lis driver needs the usb library])
fi
else
AC_MSG_WARN([The lis driver needs the ftdi library])
fi
@@ -423,6 +445,7 @@ AC_SUBST(LIBG15)
AC_SUBST(LIBGLCD)
AC_SUBST(LIBFTDI)
AC_SUBST(LIBXOSD)
AC_SUBST(LIBPTHREAD_LIBS)
])