pthread.m4: Add missing 'test' to conditional 42/13342/2
authorAndrew Deason <adeason@dson.org>
Fri, 21 Sep 2018 22:16:52 +0000 (17:16 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Mon, 24 Sep 2018 01:15:00 +0000 (21:15 -0400)
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'.

Change-Id: I28b82594e43a4ab42a5eb9fcc78e0ce8c5517d8b
Reviewed-on: https://gerrit.openafs.org/13342
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>

src/cf/pthread.m4

index 0661c74..94aadad 100644 (file)
@@ -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],