Minor xfsprogs updates - add checks for pthreads lib, add missing stripe

info init in libxfs_mount, testing script for large filesystems.
Macros for checking aspects of the installed pthreads library.
This commit is contained in:
Nathan Scott
2003-06-26 07:05:59 +00:00
parent f617ff9bd7
commit 6904219985
2 changed files with 152 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
AC_DEFUN([AC_PACKAGE_NEED_PTHREAD_H],
[ AC_CHECK_HEADERS(pthread.h)
if test $ac_cv_header_pthread_h = no; then
AC_CHECK_HEADERS(pthread.h,, [
echo
echo 'FATAL ERROR: could not find a valid pthread header.'
exit 1])
fi
])
AC_DEFUN([AC_PACKAGE_NEED_PTHREADMUTEXINIT],
[ AC_CHECK_LIB(pthread, pthread_mutex_init,, [
echo
echo 'FATAL ERROR: could not find a valid pthread library.'
exit 1
])
libpthread=-lpthread
AC_SUBST(libpthread)
])