diff options
author | Jim Blandy <jimb@redhat.com> | 1993-05-10 19:20:56 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 1993-05-10 19:20:56 +0000 |
commit | b0ec6ae047e29128d72625a9bc84ab5d6fe0fd99 (patch) | |
tree | fc155b5131520adad3bcc4c5d0378b69ae23014e /configure1.in | |
parent | b75c4626774cafdc4cbc6d005d0e22434242c822 (diff) | |
download | emacs-b0ec6ae047e29128d72625a9bc84ab5d6fe0fd99.tar.gz |
* configure.in: Sidestep autoconf's quoting of the second argument
of AC_DEFINE, so we can specify the value to put there. It would
be nice if autoconf provided some way to specify computed values
for macros.
Diffstat (limited to 'configure1.in')
-rwxr-xr-x | configure1.in | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/configure1.in b/configure1.in index 6aa4967d2b7..a75861e593a 100755 --- a/configure1.in +++ b/configure1.in @@ -992,8 +992,18 @@ AC_SUBST(LD_SWITCH_X_SITE) AC_SUBST(C_SWITCH_X_SITE) AC_SUBST(CFLAGS) -AC_DEFINE(config_machfile, \"${machfile}\") -AC_DEFINE(config_opsysfile, \"${opsysfile}\") +dnl This is hopefully a temporary hack. In autoconf version 1.3, +dnl the second argument to AC_DEFINE is quoted in every which way, +dnl so (as far as I can tell) there's no way to compute the value +dnl the CPP macro should receive. We cripple that quoting for a +dnl bit, invoke AC_DEFINE, and then uncripple it. + +define([hold_ac_define_sedquote], defn([AC_DEFINE_SEDQUOTE])) +define([AC_DEFINE_SEDQUOTE],[$1]) +AC_DEFINE(config_machfile, "\"${machfile}\"") +AC_DEFINE(config_opsysfile, "\"${opsysfile}\"") +define([AC_DEFINE_SEDQUOTE],hold_ac_define_sedquote) + AC_DEFINE(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) AC_DEFINE(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}) [ |