diff options
author | Jeremy Henty <onepoint@starurchin.org> | 2011-01-08 17:55:36 +0000 |
---|---|---|
committer | Jeremy Henty <onepoint@starurchin.org> | 2011-01-08 17:55:36 +0000 |
commit | b6de5169318881d6c9a7c132111a8425ea6a9c07 (patch) | |
tree | d3546db9eb11a0d250f6aa1577cabe45a2527b4d /configure.in | |
parent | 1e559352ca52524b3c438f03efc4db06ac294d35 (diff) |
configure.in: replace obsolete AC_TRY_LINK_FUNC with AC_LINK_IFELSE/AC_LANG_CALL.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 6af695b9..9fcfbf5f 100644 --- a/configure.in +++ b/configure.in @@ -392,7 +392,8 @@ case $target in 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 |