1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
"http://www.w3.org/TR/html4/strict.dtd">
6
<title>Autoconf Macro: ac_subst_dir</title>
7
<link rel="stylesheet" type="text/css" href="ac-archive.css">
11
<table summary="web navigation" style="width:100%;">
14
<td style="width:50%;" align="center">[<a href="index.html">Macro Index
17
<td style="width:50%;" align="center">[<a href=
18
"../m4source/ac_subst_dir.m4">Download M4 Source</a>]</td>
29
<p style="text-align:left; white-space:nowrap;"><code>AC_SUBST_DIR(VARNAME,
36
<p>This macro substitutes (with AC_SUBST) VARNAME with the expansion of
37
itself or the DIR variable if specified, taking care of fixing up ${prefix}
40
<p>Side effect: VARNAME is replaced with the expansion.</p>
42
<p>AC_SUBST_DIR bases on Alexandre Oliva's AC_DEFINE_DIR macro.</p>
53
<p>1.3 (last modified: 2003-04-24)</p>
59
<p>Mathias Hasselmann <mathias.hasselmann@gmx.de></p>
62
<h2>M4 Source Code</h2>
65
<pre class="m4source">
66
AC_DEFUN([AC_SUBST_DIR], [
67
ifelse($2,,,$1="[$]$2")
69
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
70
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
81
<a href="COPYING.html">GNU General Public License</a> with this special
82
<a href="COPYING-Exception.html">exception</a>.