]> granicus.if.org Git - gc/commitdiff
Improve detection of internal libatomic_ops (configure)
authorIvan Maidanski <ivmai@mail.ru>
Mon, 29 May 2017 07:22:39 +0000 (10:22 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 29 May 2017 07:22:39 +0000 (10:22 +0300)
* configure.ac [with_libatomic_ops=no]: Check presence of
libatomic_ops/src/atomic_ops.h file instead of libatomic_ops/src
folder.

configure.ac

index 38db91e6aa705cdf387933abf264657704b5da6b..162284b9065f1651827e05a1db0b72192ee67284 100644 (file)
@@ -987,7 +987,8 @@ AS_IF([test x$missing_libatomic_ops = xtrue ],
 
 # If we have neither an external or an internal version, offer a useful hint
 # and exit.
-AS_IF([test x"$with_libatomic_ops" = xno -a ! -e "$srcdir/libatomic_ops"],
+AS_IF([test x"$with_libatomic_ops" = xno \
+            -a ! -e "$srcdir/libatomic_ops/src/atomic_ops.h"],
   [ AC_MSG_ERROR([libatomic_ops is required.  You can either install it on
                   your system, or fetch and unpack a recent version into the
                   source directory and link or rename it to libatomic_ops.]) ])