changeset 1867:35094bb928a5

configure.in: replace obsolete AC_TRY_LINK_FUNC with AC_LINK_IFELSE/AC_LANG_CALL.
author Jeremy Henty <onepoint@starurchin.org>
date Sat, 08 Jan 2011 17:55:36 +0000
parents 086b5a6137ce
children 3311bde3bae8
files configure.in
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Sat Jan 08 17:55:36 2011 +0000
+++ b/configure.in	Sat Jan 08 17:55:36 2011 +0000
@@ -392,7 +392,8 @@
     AC_MSG_CHECKING(whether threads work with -pthread)
     LDSAVEFLAGS=$LDFLAGS
     LDFLAGS="$LDFLAGS -pthread"
-    AC_TRY_LINK_FUNC(pthread_create, pthread_ok=yes, pthread_ok=no)
+    AC_LINK_IFELSE([AC_LANG_CALL([],[pthread_create])],
+pthread_ok=yes, pthread_ok=no)
     LDFLAGS=$LDSAVEFLAGS
 
     if test "x$pthread_ok" = "xyes"; then