From xemacs-m  Fri Jun 13 01:24:30 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id BAA01481
	for <xemacs-beta@xemacs.org>; Fri, 13 Jun 1997 01:24:28 -0500 (CDT)
Received: from Eng.Sun.COM ([129.146.1.25]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id XAA28834 for <xemacs-beta@xemacs.org>; Thu, 12 Jun 1997 23:44:24 -0700
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id XAA10824; Thu, 12 Jun 1997 23:22:47 -0700
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id XAA07631; Thu, 12 Jun 1997 23:22:42 -0700
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id XAA21552; Thu, 12 Jun 1997 23:22:42 -0700
Date: Thu, 12 Jun 1997 23:22:42 -0700
Message-Id: <199706130622.XAA21552@xemacs.eng.sun.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: XEmacs Beta Test <xemacs-beta@xemacs.org>
Subject: User control over compiler directory flag detection
X-Mailer: VM 6.32 under 20.3 "Zagreb" XEmacs Lucid (beta5)
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>

It's all very well for XEmacs to cleverly "do the right thing" to
automagically autodetect everything, but it can be annoying when you
occasionally disagree with configure.  There needs to be a way to give
the user complete control over at least the -I and -L flags.

Perhaps we could have 2 classes of flags:

- the current ones merely augment and override XEmacs' autodetection.
- new ones that set the absolute paths to use.

Perhaps 

--all-includes=dir1:dir2:dir3
--all-libraries=dir1:dir2:dir3

to go with

--site-includes
--site-libraries

But I'm not thrilled by those names.  

Autoconf doesn't have an answer for this sort of problem - there
doesn't appear to be any prior art.

There *is* a kludgy way out for people like Steve and others that
don't want /usr/local or /usr/ccs/lib or whatever automatically used:
Create a cc wrapper that deletes all -I and -L flags in the input
arguments, and replaces them with the desired flags, and then run

configure --compiler=cc-wrapper

Martin

