When the before version of the commands are executed, ./configure fails with:
configure: error: C compiler cannot create executables
However, when the arguments are passed as environment variables rather than arguments (at least on BSD), the ./configure runs with no issues and the build succeeds.