Commit 58332894 authored by Adam Jackson's avatar Adam Jackson 🎧
Browse files

Export the server ABI versions from xorg-server.pc

parent 632c33c5
...@@ -1536,6 +1536,17 @@ dnl has it in libc), or if libdl is needed to get it. ...@@ -1536,6 +1536,17 @@ dnl has it in libc), or if libdl is needed to get it.
AC_SUBST([sdkdir]) AC_SUBST([sdkdir])
AC_SUBST([extdir]) AC_SUBST([extdir])
AC_SUBST([logdir]) AC_SUBST([logdir])
# stuff the ABI versions into the pc file too
extract_abi() {
grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' ' .' | awk '{ print $4$5 }'
}
abi_ansic=`extract_abi ANSIC`
abi_videodrv=`extract_abi VIDEODRV`
abi_xinput=`extract_abi XINPUT`
abi_extension=`extract_abi EXTENSION`
abi_font=`extract_abi FONT`
AC_SUBST([abi_ansic abi_videodrv abi_xinput abi_extension abi_font])
fi fi
AM_CONDITIONAL([XORG], [test "x$XORG" = xyes]) AM_CONDITIONAL([XORG], [test "x$XORG" = xyes])
AM_CONDITIONAL([XORG_BUS_LINUXPCI], [test "x$xorg_bus_linuxpci" = xyes]) AM_CONDITIONAL([XORG_BUS_LINUXPCI], [test "x$xorg_bus_linuxpci" = xyes])
......
...@@ -5,6 +5,12 @@ includedir=@includedir@ ...@@ -5,6 +5,12 @@ includedir=@includedir@
moduledir=@moduledir@ moduledir=@moduledir@
sdkdir=@sdkdir@ sdkdir=@sdkdir@
abi_ansic=@abi_ansic@
abi_videodrv=@abi_videodrv@
abi_xinput=@abi_xinput@
abi_extension=@abi_extension@
abi_font=@abi_font@
Name: xorg-server Name: xorg-server
Description: Modular X.Org X Server Description: Modular X.Org X Server
Version: @PACKAGE_VERSION@ Version: @PACKAGE_VERSION@
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment