~ubuntu-branches/ubuntu/oneiric/wackamole/oneiric

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2003-07-09 16:02:27 UTC
  • Revision ID: james.westby@ubuntu.com-20030709160227-o829bo3nmehbp9h6
Tags: upstream-2.0.0
ImportĀ upstreamĀ versionĀ 2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl FreeBSD -pthread check - Jonathan McDowell <<EMAIL: PROTECTED>>
 
2
AC_DEFUN(AC_PTHREAD_FREEBSD,
 
3
[AC_MSG_CHECKING([if we need -pthread for threads])
 
4
AC_CACHE_VAL(ac_ldflag_pthread,
 
5
[ac_save_LDFLAGS="$LDFLAGS"
 
6
LDFLAGS="-pthread $LDFLAGS"
 
7
AC_TRY_LINK(
 
8
[
 
9
char pthread_create();
 
10
],
 
11
pthread_create();,
 
12
eval "ac_ldflag_pthread=yes",
 
13
eval "ac_ldflag_pthread=no"),
 
14
LIBS="$ac_save_LDFLAGS"
 
15
])
 
16
if eval "test \"`echo $ac_ldflag_pthread`\" = yes"; then
 
17
        AC_MSG_RESULT(yes)
 
18
else
 
19
        AC_MSG_RESULT(no)
 
20
fi
 
21
])
 
22