Source
5
5
#
6
6
# This macro sets @LIBPTHREAD_LDFLAGS@, @LIBPTHREAD_CFLAGS@ and @LIBPTHREAD_LIBS@ to the necessary
7
7
# values.
8
8
#
9
9
# This macro is distributed in the hope that it will be useful,
10
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
12
13
13
AC_DEFUN([LIBPTHREAD_TRY_LINK],
14
14
[
15
-
AC_TRY_LINK(
16
-
[
15
+
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
17
16
#include <pthread.h>
18
-
],
19
-
[
17
+
]], [[
20
18
pthread_mutexattr_t mta;
21
19
pthread_mutex_t mutex;
22
20
23
21
pthread_mutexattr_init(&mta);
24
22
pthread_mutex_init(&mutex, &mta);
25
-
],
26
-
found_libpthread="yes")
23
+
]])],[found_libpthread="yes"],[])
27
24
])dnl
28
25
29
26
AC_DEFUN([LIBPTHREAD_TRY_RUN],
30
27
[
31
28
AC_RUN_IFELSE(
32
29
[
33
30
AC_LANG_SOURCE(
34
31
#include <pthread.h>
35
32
36
33
int main()