From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2959 invoked by alias); 3 Feb 2009 12:43:17 -0000 Received: (qmail 2951 invoked by uid 22791); 3 Feb 2009 12:43:17 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_92,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from service2-us.mimecast.com (HELO service2-us.mimecast.com) (209.59.2.2) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 03 Feb 2009 12:43:12 +0000 Received: from savm-exch03.arc.com (mailgate-sa02.arc.com [83.244.211.73]) by service2-us.mimecast.com; Tue, 03 Feb 2009 07:43:08 -0500 content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: include path Date: Tue, 03 Feb 2009 12:43:00 -0000 Message-ID: <5569E67A2E319949992066CE19C44BF608B2FB@savm-exch03.arc.com> References: <5569E67A2E319949992066CE19C44BF608B2F5@savm-exch03.arc.com> From: "Richard Stuckey" To: X-MC-Unique: 109020307430800302 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00032.txt.bz2 > A typical approach is to define a new variable in configure.ac, then > AC_SUBST it: > > XISS_INCLUDES=3D"-Iwhatever" > AC_SUBST(XISS_INCLUDES) > > Then in Makefile.in: > > XISS_INCLUDES =3D @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=3D"-I${with_xiss_prefix}/include" AC_SUBST(XISS_INCLUDES) which gives the required result. Thanks for your help! Richard