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)