Improving Xorg

conon troll at arach.net.au
Fri Jun 30 18:36:49 PDT 2006


All this seffort on using scripts to build modular Xorg.

Autoconf is a script which does just that.

The autoconf/automake system can be written to cover everything from a make world
scenario to a full modular scenario and a make libs/apps... scenario.

All that would be neede would be a simple script to package them for release.

The options given by autoconf save the need for editing scripts etc.

It would also simplify any changes made in the future.

The answer lies in the automake info pages. -

example - libA, libB

libA (libB would be similar)
configure.ac
------------------------------------------------------------------------------
m4_include([version.m4])
AC_INIT([libA],
        [libA_VERSION],
        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
        [libA])
m4_include([configure.m4])
AC_OUTPUT
------------------------------------------------------------------------------
version.m4
------------------------------------------------------------------------------
XORG_DEFUN([lib?_VERSION], [0.1.0])
AC_DEFUN([libA_PKG_NAME], [A])     dnl for pkg-config
------------------------------------------------------------------------------
configure.m4
------------------------------------------------------------------------------
XORG_CHECK_HEADER([some-header.h])
XORG_CHECK_MODULES([x11 xproto xaw6])
XORG_CONFIG_FILES([libA], [Makefile src/Makefile])
------------------------------------------------------------------------------

combined package -
------------------------------------------------------------------------------
AC_INIT([libAB],
        [1.1.1],
        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
        [libAB])
AC_DEFUN([COMBINED_SOURCE], [])
AC_ARG_ENABLE(libs, ...)
m4_include([libA/configure.m4])
m4_include([libB/configure.m4])
AC_OUTPUT
------------------------------------------------------------------------------

Alowing for the fact that the XORG macros need to be written to take care of the
directory translations and order checks. The overall effect would be to self order
in the top level configure.

A bit of work initially - but less work in the long run.

But - its only an idea.
-- 
regs conon
_______________________
\                      \
 \   OOHH I hate TYPOS  \
  \                      \
   ~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20060701/44cec1a0/attachment.html>


More information about the xorg mailing list