environment variable conventions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am working on a project in which the end-user's configure would like to
ensure that certain items appear in autoconf output variables such as
CPPFLAGS.  We have received a query from a user whose routine "configure"
usage at his site not a simple "./configure" but rather is of the form:
    CPPFLAGS="..."  ./configure

How should the incoming CPPFLAGS (from the user's environment) normally
interact with any being set in "configure".  My guess is that configure's
CPPFLAGS should modify (prepend? append?) any setting from the environment
rather than simply replace it.

But presumably in the case of "CC", the operation would be a simple
replacement.  What about CFLAGS, LDFLAGS etc.?

Are these principles documented somewhere?  In neither the autoconf manual
nor the "GNU Autoconf, Automake and Libtool" book did I find anything but,
of course, I may well have missed it, so a pointer would be fine.

Thanks.

-- 

:  David Lee                                I.T. Service          :
:  Systems Programmer                       Computer Centre       :
:                                           University of Durham  :
:  http://www.dur.ac.uk/t.d.lee/            South Road            :
:                                           Durham                :
:  Phone: +44 191 334 2752                  U.K.                  :


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux