|
From: Dan M. <d-...@uc...> - 2001-07-15 17:38:49
|
On Sun, 15 Jul 2001, L=E1szl=F3 Kov=E1cs wrote: > Hi, > > I added /etc/scrollkeeper.conf with an extensive default value, and thi= s > is processed by Scrollkeeper now. The priorities are, the "-o" flag > overwrites everything, then OMF_DIR environment variable, then > /etc/scrollkeeper.conf, then scrollkeeper-config --omfdir. Awesome. The feature list of 0.3 over 0.2 is getting huge. > I couldn't figure out how to make configurable as I don't know how to > make a new configure option (like --omfdirs or similar). If anybody > knows, please let me know. You mean for autoconf, right? I think you would do it like: AC_ARG_WITH(omf-dirs, [ --with-omfdirs=3DDIR Location of OMF directories]) if test "x$with_omfdirs" =3D x ; then omfdirs=3D/usr/share/omf:/usr/local/share/omf else omfdirs=3D$with_omfdirs fi AC_DEFINE_UNQUOTED(OMFDIRS, "$omfdirs") For more examples check out gnome-core which does a lot of this. Dan |