Source
95
95
AC_ARG_WITH([libpthread-lib],
96
96
AC_HELP_STRING([--with-libpthread-lib@<:@=DIR@:>@],
97
97
[use libpthread libraries from given path.]
98
98
),
99
99
[
100
100
LIBPTHREAD_LDFLAGS="-L$withval"
101
101
_libpthread_dir_set="yes"
102
102
]
103
103
)
104
104
105
-
AC_MSG_CHECKING(for process shared libpthread support)
106
-
105
+
AC_CHECK_HEADER([pthread.h],[found_libpthread=yes])
107
106
LIBPTHREAD_LIBS="-lpthread"
107
+
AC_MSG_CHECKING(for process shared libpthread support)
108
108
109
-
AC_CHECK_HEADER([pthread.h],[found_libpthread=yes])
110
109
if test -n "$_libpthread_dir_set" -o "x$found_libpthread" = xyes; then
111
110
found_libpthread="yes"
112
111
elif test -f /usr/local/include/pthread.h; then
113
112
LIBPTHREAD_CFLAGS="-I/usr/local/include"
114
113
LIBPTHREAD_LDFLAGS="-L/usr/local/lib"
115
114
found_libpthread="yes"
116
115
elif test -f /usr/pkg/include/pthread.h; then
117
116
LIBPTHREAD_CFLAGS="-I/usr/pkg/include"
118
117
LIBPTHREAD_LDFLAGS="-L/usr/pkg/lib"
119
118
LIBPTHREAD_LDFLAGS="$LIBPTHREAD_LDFLAGS -Wl,-R/usr/pkg/lib"