mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-14 11:42:29 -08:00
(config_options): New shell variable.
Pass its value to C code in EMACS_CONFIG_OPTIONS.
This commit is contained in:
parent
f0fc0b1a46
commit
64cfec5c1c
1 changed files with 3 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ done
|
|||
### However, it also turns out that many shells cannot expand ${10} at all.
|
||||
### So using an index variable doesn't work either. It is possible to use
|
||||
### some shell magic to make 'set x "$arguments"; shift' work portably.
|
||||
config_options=
|
||||
while [ $# != 0 ]; do
|
||||
arg="$1"; shift
|
||||
case "${arg}" in
|
||||
|
|
@ -161,6 +162,7 @@ while [ $# != 0 ]; do
|
|||
valomitted=no
|
||||
;;
|
||||
-*)
|
||||
config_options="${config_options} ${arg}"
|
||||
## If FOO is a boolean argument, --FOO is equivalent to
|
||||
## --FOO=yes. Otherwise, the value comes from the next
|
||||
## argument - see below.
|
||||
|
|
@ -1592,6 +1594,7 @@ AC_SUBST(machfile)
|
|||
AC_SUBST(opsysfile)
|
||||
|
||||
AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${configuration}\"")
|
||||
AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "\"${config_options}\"")
|
||||
AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
|
||||
AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
|
||||
AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue