CC, CPP etc vs CONFIGURE_ENV
I wonder why do-configure target explicitly sets things like CC=${CC} CPP=${CPP} etc in configure script environment as opposed to them just being placed into CONFIGURE_ENV. What is the technical reason? -- Andriy Gapon ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CC, CPP etc vs CONFIGURE_ENV
Hi-- On Nov 6, 2013, at 6:27 AM, Andriy Gapon a...@freebsd.org wrote: I wonder why do-configure target explicitly sets things like CC=${CC} CPP=${CPP} etc in configure script environment as opposed to them just being placed into CONFIGURE_ENV. What is the technical reason? Setting $CC and such worked with older ./configure which didn't implement $CONFIGURE_ENV. It also plays more nicely with things which roll their own ./configure as a shim that isn't actually GNU autoconf. Regards, -- -Chuck ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CC, CPP etc vs CONFIGURE_ENV
on 06/11/2013 17:11 Charles Swiger said the following: Hi-- On Nov 6, 2013, at 6:27 AM, Andriy Gapon a...@freebsd.org wrote: I wonder why do-configure target explicitly sets things like CC=${CC} CPP=${CPP} etc in configure script environment as opposed to them just being placed into CONFIGURE_ENV. What is the technical reason? Setting $CC and such worked with older ./configure which didn't implement $CONFIGURE_ENV. It also plays more nicely with things which roll their own ./configure as a shim that isn't actually GNU autoconf. Apologies, you seem to think that CONFIGURE_ENV is an environment variable of its own. But, as far as I can see, it is not. It is a make variable with a value that expands to FOO=BAR VAR=VAL ... and those FOO, VAR, etc are the environment variables that are to be set in configure's environment: ${SETENV} ... ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} So, either I didn't understand what you said or what you said is not relevant. -- Andriy Gapon ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CC, CPP etc vs CONFIGURE_ENV
On Nov 6, 2013, at 7:25 AM, Andriy Gapon a...@freebsd.org wrote: Setting $CC and such worked with older ./configure which didn't implement $CONFIGURE_ENV. It also plays more nicely with things which roll their own ./configure as a shim that isn't actually GNU autoconf. Apologies, you seem to think that CONFIGURE_ENV is an environment variable of its own. But, as far as I can see, it is not. It is a make variable with a value that expands to FOO=BAR VAR=VAL ... and those FOO, VAR, etc are the environment variables that are to be set in configure's environment: ${SETENV} ... ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} Yes, setup via ports/bsd.options.mk and such (aka configure.mk on some other platforms). So, either I didn't understand what you said or what you said is not relevant. That's fair enough-- I don't always manage to be both comprehensible and relevant. :-) I seemed to recall that sufficiently modern configure's would look into $CONFIGURE_ENV if you set it via: export ${CONFIGURE_ENV}; ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ...instead. But I don't see signs of that in GNU autoconf, so that might be a non-standard thing. Regards, -- -Chuck ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
Re: CC, CPP etc vs CONFIGURE_ENV
On Wed, Nov 6, 2013 at 6:51 PM, Charles Swiger cswi...@mac.com wrote: On Nov 6, 2013, at 7:25 AM, Andriy Gapon a...@freebsd.org wrote: Setting $CC and such worked with older ./configure which didn't implement $CONFIGURE_ENV. It also plays more nicely with things which roll their own ./configure as a shim that isn't actually GNU autoconf. Apologies, you seem to think that CONFIGURE_ENV is an environment variable of its own. But, as far as I can see, it is not. It is a make variable with a value that expands to FOO=BAR VAR=VAL ... and those FOO, VAR, etc are the environment variables that are to be set in configure's environment: ${SETENV} ... ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} Yes, setup via ports/bsd.options.mk and such (aka configure.mk on some other platforms). So, either I didn't understand what you said or what you said is not relevant. That's fair enough-- I don't always manage to be both comprehensible and relevant. :-) I seemed to recall that sufficiently modern configure's would look into $CONFIGURE_ENV if you set it via: export ${CONFIGURE_ENV}; ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} ...instead. But I don't see signs of that in GNU autoconf, so that might be a non-standard thing. After variable substitution by make, it will become something like export VAR1=FOO VAR2=BAR; ./configure and then executed by shell. So, from configure script point of view, it is the same environment variables. -- Andrew W. Nosenko andrew.w.nose...@gmail.com ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org