build/autotools: fix symbol versioning configure check
authorRan Benita <ran234@gmail.com>
Wed, 2 Aug 2017 15:28:17 +0000 (18:28 +0300)
committerRan Benita <ran234@gmail.com>
Wed, 2 Aug 2017 15:34:29 +0000 (18:34 +0300)
Regressed in 4309735. I thought `$top_srcdir` works in configure too,
apparently not!

See: https://github.com/xkbcommon/libxkbcommon/issues/50#issuecomment-319693694

Signed-off-by: Ran Benita <ran234@gmail.com>
configure.ac

index 895acc5..8ba57d3 100644 (file)
@@ -97,7 +97,7 @@ openbsd*)
 esac
 AM_CONDITIONAL([HAVE_NO_UNDEFINED], [test "x$have_no_undefined" = xyes])
 
-XORG_CHECK_LINKER_FLAGS([-Wl,--version-script="$top_srcdir/xkbcommon.map"], [have_version_script=yes])
+XORG_CHECK_LINKER_FLAGS([-Wl,--version-script="$srcdir/xkbcommon.map"], [have_version_script=yes])
 AM_CONDITIONAL([HAVE_VERSION_SCRIPT], [test "x$have_version_script" = xyes])
 
 AC_CHECK_LIB(rt, clock_gettime,