From: "Richard Stuckey" <Richard.Stuckey@arc.com>
To: <gdb@sourceware.org>
Subject: RE: include path
Date: Tue, 03 Feb 2009 12:43:00 -0000 [thread overview]
Message-ID: <5569E67A2E319949992066CE19C44BF608B2FB@savm-exch03.arc.com> (raw)
In-Reply-To: <m3ljsopwbt.fsf@fleche.redhat.com>
> A typical approach is to define a new variable in configure.ac, then
> AC_SUBST it:
>
> XISS_INCLUDES="-Iwhatever"
> AC_SUBST(XISS_INCLUDES)
>
> Then in Makefile.in:
>
> XISS_INCLUDES = @XISS_INCLUDES@
>
> Finally, add $(XISS_INCLUDES) to INTERNAL_CFLAGS_BASE.
Ah, that's it.
It finally dawned on me that I get the "whatever" from the script
variable 'with_xiss_prefix', i.e. the script creates a variable
corresponding to each command-line option to 'configure'. So I now have
AC_DEFINE(HAVE_LIBXISS, 1, [Define if you have the xISS library.])
XISS_INCLUDES="-I${with_xiss_prefix}/include"
AC_SUBST(XISS_INCLUDES)
which gives the required result.
Thanks for your help!
Richard
prev parent reply other threads:[~2009-02-03 12:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-02 11:55 Richard Stuckey
2009-02-02 15:03 ` Daniel Jacobowitz
2009-02-02 16:20 ` Richard Stuckey
2009-02-02 18:02 ` Tom Tromey
2009-02-03 12:43 ` Richard Stuckey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5569E67A2E319949992066CE19C44BF608B2FB@savm-exch03.arc.com \
--to=richard.stuckey@arc.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox