From: Andrew Deason Date: Fri, 21 Sep 2018 22:16:52 +0000 (-0500) Subject: pthread.m4: Add missing 'test' to conditional X-Git-Tag: debian/1.8.4_pre1-1~9^2^2~41 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b3882518f65a14b4de9846c5d11814bea3d91d96;p=packages%2Fo%2Fopenafs.git pthread.m4: Add missing 'test' to conditional Commit c5def62d (autoconf: update pthread checks) accidentally omitted a 'test' in one of the conditionals. This causes an ugly error message during configure: checking for pthread_attr_init in -lpthread... yes ./configure[31043]: x-lpthread: not found [No such file or directory] Replace the missing 'test'. Reviewed-on: https://gerrit.openafs.org/13342 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk (cherry picked from commit 38a094137f067255c586dd5c85f3040d7a7c4486) Change-Id: Iaa7014c6ae58bd492930dbe4f39180111bacb67e Reviewed-on: https://gerrit.openafs.org/13595 Tested-by: BuildBot Reviewed-by: Mark Vitale Reviewed-by: Andrew Deason Reviewed-by: Michael Meffie Reviewed-by: Stephan Wiesand --- diff --git a/src/cf/pthread.m4 b/src/cf/pthread.m4 index 0661c749c..94aadad9c 100644 --- a/src/cf/pthread.m4 +++ b/src/cf/pthread.m4 @@ -7,7 +7,7 @@ AS_IF([test "x$MKAFS_OSTYPE" = xDFBSD], AS_IF([test "x$PTHREAD_LIBS" = xerror], [AC_CHECK_LIB([pthread], [pthread_attr_init], [PTHREAD_LIBS="-lpthread"])]) -AS_IF(["x$PTHREAD_LIBS" = xerror], +AS_IF([test "x$PTHREAD_LIBS" = xerror], [AC_CHECK_LIB([pthreads], [pthread_attr_init], [PTHREAD_LIBS="-lpthreads"])]) AS_IF([test "x$PTHREAD_LIBS" = xerror],