[LC++]changing the source depending on a value in the configure script
Chris Vine
chris at cvine.freeserve.co.uk
Sun Jan 11 03:27:01 UTC 2004
On Saturday 10 January 2004 3:42 pm, Chris Vine wrote:
> I have no idea where .qm files go, or what they are, but if you are not
> using automake, you can include something like this in your aclocal.m4
> file:
>
> QMDIR="/usr/local/share/qm"
> if test -n "$datadir" && test "$datadir" != "NONE"; then
> QMDIR="$datadir/qm"
> fi
I should have added that you will need to follow this with:
AC_SUBST(QMDIR)
so that Makefile.in can find it.
These should all be in an autoconf macro definition in your aclocal.m4 file,
(that is, in a definition defined with AC_DEFUN).
'info autoconf' will give you further information. If none of it makes sense,
use automake.
Chris.
More information about the tuxCPProgramming
mailing list