From 23f7fe548956f41bac09d0d1c9b3d75a12033342 Mon Sep 17 00:00:00 2001 From: Ben Gardiner Date: Sun, 2 Sep 2018 11:25:22 -0400 Subject: [PATCH] fix autogen.sh error on trusty where pkconfig is 0.26 --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 08d732d..7a547c5 100644 --- a/configure.ac +++ b/configure.ac @@ -32,8 +32,10 @@ LT_PREREQ(2.2) LT_INIT PKG_CHECK_MODULES([XWIIMOTE], [libxwiimote]) -PKG_CHECK_VAR([XWIIMOTE_INCLUDEDIR], [libxwiimote], [includedir]) -PKG_CHECK_VAR([XWIIMOTE_LIBDIR], [libxwiimote], [libdir]) +XWIIMOTE_INCLUDEDIR=`$PKG_CONFIG --variable=includedir libxwiimote` +AC_SUBST([XWIIMOTE_INCLUDEDIR]) +XWIIMOTE_LIBDIR=`$PKG_CONFIG --variable=libdir libxwiimote` +AC_SUBST([XWIIMOTE_LIBDIR]) AC_SUBST(XWIIMOTE_CFLAGS) AC_SUBST(XWIIMOTE_LIBS) AC_SUBST(XWIIMOTE_INCLUDEDIR)