]> git.sur5r.net Git - openldap/commitdiff
Fix OL_PTHREAD_TRY
authorHoward Chu <hyc@openldap.org>
Wed, 24 Aug 2005 10:51:44 +0000 (10:51 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 24 Aug 2005 10:51:44 +0000 (10:51 +0000)
build/openldap.m4

index 8730e6aebd2230b18e6616cbced0dfd3c62e439d..66545788e350436f5ac5d758fd15225524395827 100644 (file)
@@ -786,7 +786,7 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[
 ]])
 
 AC_DEFUN([OL_PTHREAD_TEST_PROGRAM],
-[OL_PTHREAD_TEST_INCLUDES
+AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES
 
 int main(argc, argv)
        int argc;
@@ -794,7 +794,7 @@ int main(argc, argv)
 {
 OL_PTHREAD_TEST_FUNCTION
 }
-])
+]))
 dnl --------------------------------------------------------------------
 AC_DEFUN([OL_PTHREAD_TRY], [# Pthread try link: $1 ($2)
 if test "$ol_link_threads" = no ; then
@@ -807,7 +807,8 @@ if test "$ol_link_threads" = no ; then
                AC_RUN_IFELSE([OL_PTHREAD_TEST_PROGRAM],
                        [$2=yes],
                        [$2=no],
-                       [AC_TRY_LINK(OL_PTHREAD_TEST_INCLUDES,OL_PTHREAD_TEST_FUNCTION,
+                       [AC_LINK_IFELSE([AC_LANG_PROGRAM(OL_PTHREAD_TEST_INCLUDES,
+                               OL_PTHREAD_TEST_FUNCTION)],
                                [$2=yes], [$2=no])])
 
                # restore the LIBS