diff options
| author | Karl Heuer | 1994-09-17 02:07:50 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-09-17 02:07:50 +0000 |
| commit | 64cfec5c1ce7fc11719d908c5bb67dc50c194799 (patch) | |
| tree | c9960578551f515b533fb438475be25a190cf819 | |
| parent | f0fc0b1a46c0accb687a02d395af5fce40dfb51b (diff) | |
| download | emacs-64cfec5c1ce7fc11719d908c5bb67dc50c194799.tar.gz emacs-64cfec5c1ce7fc11719d908c5bb67dc50c194799.zip | |
(config_options): New shell variable.
Pass its value to C code in EMACS_CONFIG_OPTIONS.
| -rwxr-xr-x | configure1.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure1.in b/configure1.in index dc831bc8469..640d5264918 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -147,6 +147,7 @@ done | |||
| 147 | ### However, it also turns out that many shells cannot expand ${10} at all. | 147 | ### However, it also turns out that many shells cannot expand ${10} at all. |
| 148 | ### So using an index variable doesn't work either. It is possible to use | 148 | ### So using an index variable doesn't work either. It is possible to use |
| 149 | ### some shell magic to make 'set x "$arguments"; shift' work portably. | 149 | ### some shell magic to make 'set x "$arguments"; shift' work portably. |
| 150 | config_options= | ||
| 150 | while [ $# != 0 ]; do | 151 | while [ $# != 0 ]; do |
| 151 | arg="$1"; shift | 152 | arg="$1"; shift |
| 152 | case "${arg}" in | 153 | case "${arg}" in |
| @@ -161,6 +162,7 @@ while [ $# != 0 ]; do | |||
| 161 | valomitted=no | 162 | valomitted=no |
| 162 | ;; | 163 | ;; |
| 163 | -*) | 164 | -*) |
| 165 | config_options="${config_options} ${arg}" | ||
| 164 | ## If FOO is a boolean argument, --FOO is equivalent to | 166 | ## If FOO is a boolean argument, --FOO is equivalent to |
| 165 | ## --FOO=yes. Otherwise, the value comes from the next | 167 | ## --FOO=yes. Otherwise, the value comes from the next |
| 166 | ## argument - see below. | 168 | ## argument - see below. |
| @@ -1592,6 +1594,7 @@ AC_SUBST(machfile) | |||
| 1592 | AC_SUBST(opsysfile) | 1594 | AC_SUBST(opsysfile) |
| 1593 | 1595 | ||
| 1594 | AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${configuration}\"") | 1596 | AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${configuration}\"") |
| 1597 | AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "\"${config_options}\"") | ||
| 1595 | AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") | 1598 | AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"") |
| 1596 | AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") | 1599 | AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"") |
| 1597 | AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) | 1600 | AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) |