diff options
| author | Glenn Morris <rgm@gnu.org> | 2013-02-11 06:17:34 -0500 |
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2013-02-11 06:17:34 -0500 |
| commit | 2f559cd2a194c0f1fcf6ea46ad42ee3bc9b036d4 (patch) | |
| tree | f07d2de2978c0a698aae1f1af02d2217543fed45 | |
| parent | add89f61bdf44020ea4a8a571268d79ce995bd98 (diff) | |
| download | emacs-2f559cd2a194c0f1fcf6ea46ad42ee3bc9b036d4.tar.gz | |
Auto-commit of generated files.
| -rwxr-xr-x | autogen/configure | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/autogen/configure b/autogen/configure index 1251680b942..8226d489f72 100755 --- a/autogen/configure +++ b/autogen/configure @@ -3367,7 +3367,19 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu + emacs_config_options="$@" +## Add some environment variables, if they were passed via the environment +## rather than on the command-line. +for var in CFLAGS CPPFLAGS LDFLAGS; do + case "$emacs_config_options" in + *$var=*) continue ;; + esac + eval val="\$${var}" + test x"$val" = x && continue + emacs_config_options="${emacs_config_options}${emacs_config_options:+ }$var=$val" +done + ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
