[gst-devel] configure.base cleanup
omega at temple-baptist.com
Mon Jun 25 08:43:24 CEST 2001
The configure.base file is once again in need of some major cleanup. In
an earlier mail I proposed a standard structure for checking for dependent
libraries, and Richard suggested an m4 macro. I'll reply to his mail soon
with some comments, but the idea is sound.
Even with that, we're left with a *huge* configure.base file. The only
packages on my system that beat us are gcc, SDL (huge amount of per-arch
stuff), glib (arch-specific stuff), kdelibs, and the gnome-vfs-extras
I've made a list of the major sections and such, with a few comments:
package, version definitions
Fundamental tools checks
cc, cxx, cxxpp, isc_posic,headers, etc.
gtkdoc, docbook, fig2dec
mmx... # I'd like to move this out to 'SpeciaLib'
glib2 / glib+gtk # this is nasty because we have to pick
gnome # is this the right place for this check?
Optional library checks
[gnome] # see above
atomic.h # usure if we use this atm
Library --enable arguments # should be part of each check
gdk-pixbuf, libghttp, libmmx, atomic
DEBUG # == --enable-debug-verbose
INFO # == --enable-info-system
loadsave # first of the subsystem disables
AC_DEFINEs # should be part of each check
gdk_pixbuf, libghhtp, libmmx, atomic.h, plugins_use_builddir
AC_CONDITIONALs # should be part of each check
Various defines of strings
config_dir, win32_libdir, plugins_dir, ....
Setting up CFLAGS and LIBS # a whole 'nother mess
Now, a lot of the goes away with an m4 macro such as Richard suggested,
and becomes rather automatic. Getting the variable names right will be a
little tricky, but not too hard. One useful trick might be to keep a list
of the libraries not found and the plugins based on them, and move the
warning down to the bottom with a table of lacking libraries.
Another problem is dealing with the CFLAGS and LIBS. The current setup is
a mess, and will only get worse with the addition of various DISABLE flags
that need to be added to the CFLAGS in order to be saved off into the
-config and .pc files so other apps can disable things as appropriate.
I'm getting tired now, and have to get up early tomorrow to fly to work,
so I'll leave it at that for now.
Erik Walthinsen <omega at temple-baptist.com> - System Administrator
/ \ GStreamer - The only way to stream!
| | M E G A ***** http://gstreamer.net/ *****
More information about the gstreamer-devel