[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
autoconf-archive: please enhance AC_DEFINE_DIR
From: |
Joost van Baal |
Subject: |
autoconf-archive: please enhance AC_DEFINE_DIR |
Date: |
Sat, 4 Oct 2003 16:58:54 +0200 |
User-agent: |
Mutt/1.5.4i |
Package: autoconf-archive
Version: 20030521-1
Severity: wishlist
Tags: upstream, patch
Hi,
[Upstream Cc-ed.]
Please enhance AC_DEFINE_DIR, and apply this patch:
------------------------
--- ac_define_dir.m4 2001-07-26 02:46:27.000000000 +0200
+++ ac_define_dir.m4.hacked 2003-10-04 16:44:44.000000000 +0200
@@ -3,6 +3,9 @@
dnl This macro _AC_DEFINEs VARNAME to the expansion of the DIR
dnl variable, taking care of fixing up ${prefix} and such.
dnl
+dnl VARNAME is offered as both a C preprocessor symbol, and an output
+dnl variable.
+dnl
dnl Note that the 3 argument form is only supported with autoconf 2.13 and
dnl later (i.e. only where _AC_DEFINE supports 3 arguments).
dnl
@@ -19,6 +22,8 @@
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
ac_define_dir=`eval echo [$]$2`
ac_define_dir=`eval echo [$]ac_define_dir`
+ $1="$ac_define_dir"
+ AC_SUBST($1)
ifelse($3, ,
AC_DEFINE_UNQUOTED($1, "$ac_define_dir"),
AC_DEFINE_UNQUOTED($1, "$ac_define_dir", $3))
----------------------
(patch against Miscellaneous/ac_define_dir.m4 as found in
ac-archive-0.5.51.tar.gz )
This makes available the variables not only as C preprocessor symbols,
but also as output variables, so that files in AC_CONFIG_FILES get their
variables like @PROG_PATH@ expanded.
Bye,
Joost
--
. . http://mdcc.cx/
Joost van Baal . .
. . http://logreport.org/
. . http://abramowitz.uvt.nl/
pgpH3VPPXYT4s.pgp
Description: PGP signature
- autoconf-archive: please enhance AC_DEFINE_DIR,
Joost van Baal <=