1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2
"http://www.w3.org/TR/html4/strict.dtd">
6
Autoconf Macro: ac_subst_dir
8
<link rel="stylesheet" type="text/css" href="autoconf-archive.css">
11
<table summary="web navigation" style="width:100%;">
14
<td style="width:25%;" align="center" valign="top">
15
<a href="http://autoconf-archive.cryp.to/ac_subst_dir.m4">Download M4
18
<td style="width:25%;" align="center" valign="top">
20
"http://git.cryp.to/autoconf-archive?a=history;f=ac_subst_dir.m4">Macro
23
<td style="width:25%;" align="center" valign="top">
24
<a href="macros-by-category.html">Category Index</a>
26
<td style="width:25%;" align="center" valign="top">
27
<form method="get" action="http://www.google.com/search">
29
<input name="sitesearch" value="autoconf-archive.cryp.to" type=
30
"hidden"><a href="http://www.google.com/">Search</a>: <input name="q"
31
size="10" maxlength="255" type="text">
46
The macro <a href="ac_define_dir.html">AC_DEFINE_DIR</a> provides this
47
functionality directly now.
52
<p class="indent" style="white-space:nowrap;">
53
<code>AC_SUBST_DIR(VARNAME, [DIR])</code>
60
This macro substitutes (with AC_SUBST) VARNAME with the expansion of itself
61
or the DIR variable if specified, taking care of fixing up ${prefix} and
65
Side effect: VARNAME is replaced with the expansion.
68
AC_SUBST_DIR bases on Alexandre Oliva's <a href=
69
"ac_define_dir.html">AC_DEFINE_DIR</a> macro.
82
Stepan Kasal <kasal@ucw.cz> and Mathias Hasselmann
83
<mathias.hasselmann@gmx.de>.
95
<pre class="m4source">
96
AC_DEFUN([AC_SUBST_DIR], [
97
ifelse($2,,,$1="[$]$2")
99
test "x$prefix" = xNONE && prefix="$ac_default_prefix"
100
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
102
eval echo \""[$]$1"\"
112
<span style="white-space:nowrap;">Copyright © 2008 Stepan Kasal
113
<kasal@ucw.cz></span><br>
114
<span style="white-space:nowrap;">Copyright © 2008 Mathias Hasselmann
115
<mathias.hasselmann@gmx.de></span>
117
Copying and distribution of this file, with or without modification, are
118
permitted in any medium without royalty provided the copyright notice and
119
this notice are preserved.