source: git/acinclude.m4 @ d853bfd

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since d853bfd was 661c8cd, checked in by Olly Betts <olly@…>, 19 years ago

Fix m4 quoting

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@2813 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 845 bytes
Line 
1dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION])
2dnl
3dnl This macro defines (with AC_DEFINE) VARNAME to the expansion of the DIR
4dnl variable, taking care of fixing up ${prefix} and such.
5dnl
6dnl Note that the 3 argument form is only supported with autoconf 2.13 and
7dnl later (i.e. only where AC_DEFINE supports 3 arguments).
8dnl
9dnl Examples:
10dnl
11dnl    AC_DEFINE_DIR(DATADIR, datadir)
12dnl
13dnl    AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries])
14dnl
15dnl @author Alexandre Oliva <oliva@lsd.ic.unicamp.br>
16
17AC_DEFUN([AC_DEFINE_DIR], [
18        ac_expanded=`(
19            test "x$prefix" = xNONE && prefix="$ac_default_prefix"
20            test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
21            eval echo \""[$]$2"\"
22        )`
23        ifelse($3, ,
24          AC_DEFINE_UNQUOTED($1, "$ac_expanded"),
25          AC_DEFINE_UNQUOTED($1, "$ac_expanded", $3))
26])
Note: See TracBrowser for help on using the repository browser.