~ubuntu-branches/ubuntu/hardy/autoconf-archive/hardy

« back to all changes in this revision

Viewing changes to htmldoc/ac_subst_dir.html

  • Committer: Bazaar Package Importer
  • Author(s): Martin A. Godisch
  • Date: 2004-06-26 09:43:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040626094357-3be3jwcz1vcdhpe8
Tags: upstream-20040616
ImportĀ upstreamĀ versionĀ 20040616

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 
2
"http://www.w3.org/TR/html4/strict.dtd">
 
3
 
 
4
<html lang="en">
 
5
<head>
 
6
  <title>Autoconf Macro: ac_subst_dir</title>
 
7
  <link rel="stylesheet" type="text/css" href="ac-archive.css">
 
8
</head>
 
9
 
 
10
<body>
 
11
  <table summary="web navigation" style="width:100%;">
 
12
    <tbody>
 
13
      <tr>
 
14
        <td style="width:50%;" align="center">[<a href="index.html">Macro Index
 
15
        Page</a>]</td>
 
16
 
 
17
        <td style="width:50%;" align="center">[<a href=
 
18
        "../m4source/ac_subst_dir.m4">Download M4 Source</a>]</td>
 
19
      </tr>
 
20
    </tbody>
 
21
  </table>
 
22
  <hr>
 
23
 
 
24
  <h1>ac_subst_dir</h1>
 
25
 
 
26
  <h2>Synopsis</h2>
 
27
 
 
28
  <div class="indent">
 
29
    <p style="text-align:left; white-space:nowrap;"><code>AC_SUBST_DIR(VARNAME,
 
30
    [DIR])</code></p>
 
31
  </div>
 
32
 
 
33
  <h2>Description</h2>
 
34
 
 
35
  <div class="indent">
 
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}
 
38
    and such.</p>
 
39
 
 
40
    <p>Side effect: VARNAME is replaced with the expansion.</p>
 
41
 
 
42
    <p>AC_SUBST_DIR bases on Alexandre Oliva's AC_DEFINE_DIR macro.</p>
 
43
 
 
44
    <p>Examples:</p>
 
45
    <pre>
 
46
   AC_SUBST_DIR(DATADIR)
 
47
</pre>
 
48
  </div>
 
49
 
 
50
  <h2>Version</h2>
 
51
 
 
52
  <div class="indent">
 
53
    <p>1.3 (last modified: 2003-04-24)</p>
 
54
  </div>
 
55
 
 
56
  <h2>Author</h2>
 
57
 
 
58
  <div class="indent">
 
59
    <p>Mathias Hasselmann &lt;mathias.hasselmann@gmx.de&gt;</p>
 
60
  </div>
 
61
 
 
62
  <h2>M4 Source Code</h2>
 
63
 
 
64
  <div class="indent">
 
65
    <pre class="m4source">
 
66
AC_DEFUN([AC_SUBST_DIR], [
 
67
        ifelse($2,,,$1="[$]$2")
 
68
        $1=`(
 
69
            test "x$prefix" = xNONE &amp;&amp; prefix="$ac_default_prefix"
 
70
            test "x$exec_prefix" = xNONE &amp;&amp; exec_prefix="${prefix}"
 
71
            eval echo \""[$]$1"\"
 
72
        )`
 
73
        AC_SUBST($1)
 
74
])
 
75
</pre>
 
76
  </div>
 
77
 
 
78
  <h2>Copyright</h2>
 
79
 
 
80
  <div class="indent">
 
81
    <a href="COPYING.html">GNU General Public License</a> with this special
 
82
    <a href="COPYING-Exception.html">exception</a>.
 
83
  </div>
 
84
</body>
 
85
</html>