Re: configure question (AC_SUBST)
- From: "John R. Sheets" <dusk ravendusk org>
- To: gnome-devel-list gnome org
- Subject: Re: configure question (AC_SUBST)
- Date: Sun, 21 May 2000 10:02:08 -0500
On May 20, 2000, Stéphane Genaud <genaud@icps.u-strasbg.fr> wrote:
>
> I am learning the configure and build GNU tools to package a Gnome app.
> I don't really understand how to control the exportation of some
> variables like DATADIR to my gnome program. (i want
> I thought AC_SUBST($datadir) in configure.in was the solution it
> didn't work as well : no DATADIR neither in config.h nor in the -D
> flags.
It sounds like you want AC_DEFINE instead. AC_DEFINE will add the given
variable to your compile line as a -D flag unless you also use
AM_CONFIG_HEADER to send it to config.h or some other config header. If
you give the initialization value in the optional second parameter of
AC_DEFINE, you don't have to add the variable to acconfig.h.
The following may work, depending on what your trying to do. You may
have to experiment.
AC_DEFINE(DATADIR, "somedir")
John
--
dusk@ravendusk.org http://www.gnome.org
jsheets@codeweavers.com http://www.worldforge.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]