From: Ivan Maidanski Date: Mon, 29 May 2017 07:22:39 +0000 (+0300) Subject: Improve detection of internal libatomic_ops (configure) X-Git-Tag: v8.0.0~721 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8759c47b16162efe3c5d96aba799daeebdd88c1d;p=gc Improve detection of internal libatomic_ops (configure) * configure.ac [with_libatomic_ops=no]: Check presence of libatomic_ops/src/atomic_ops.h file instead of libatomic_ops/src folder. --- diff --git a/configure.ac b/configure.ac index 38db91e6..162284b9 100644 --- a/configure.ac +++ b/configure.ac @@ -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.]) ])