~ubuntu-branches/ubuntu/lucid/autoconf-archive/lucid

« back to all changes in this revision

Viewing changes to html/ax_warning_default_pkgconfig.html

  • Committer: Bazaar Package Importer
  • Author(s): Deng Xiyue
  • Date: 2009-05-12 17:30:18 UTC
  • mfrom: (1.1.9 upstream) (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090512173018-s7y88nfoxpaauztk
Tags: 20090426-1
* New upstream release.
* Update Standard-Version to 3.8.1:
  + List original Debianizer.
  + Point to versioned license file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
   Autoconf Macro: ax_warning_default_pkgconfig
7
7
  </title>
8
8
  <link rel="stylesheet" type="text/css" href="autoconf-archive.css">
 
9
  <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
9
10
 </head>
10
11
 <body>
11
12
  <table summary="web navigation" style="width:100%;">
12
13
   <tbody>
13
14
    <tr>
14
 
     <td style="width:25%;" align="center" valign="top">
15
 
      <a href=
16
 
      "http://autoconf-archive.cryp.to/ax_warning_default_pkgconfig.m4">Download
17
 
      M4 Source</a>
18
 
     </td>
19
 
     <td style="width:25%;" align="center" valign="top">
20
 
      <a href=
21
 
      "http://git.cryp.to/autoconf-archive?a=history;f=ax_warning_default_pkgconfig.m4">
22
 
      Macro History</a>
23
 
     </td>
24
 
     <td style="width:25%;" align="center" valign="top">
25
 
      <a href="macros-by-category.html">Category Index</a>
26
 
     </td>
27
 
     <td style="width:25%;" align="center" valign="top">
 
15
     <td style="width:33%;" align="center" valign="top">
 
16
      <a href="macros-by-category.html">Macros by Category</a>
 
17
     </td>
 
18
     <td style="width:33%;" align="center" valign="top">
 
19
      <a href=
 
20
      "http://git.cryp.to/autoconf-archive/history/master:/ax_warning_default_pkgconfig.m4">
 
21
      Revision History</a>
 
22
     </td>
 
23
     <td style="width:33%;" align="center" valign="top">
28
24
      <form method="get" action="http://www.google.com/search">
29
25
       <div>
30
26
        <input name="sitesearch" value="autoconf-archive.cryp.to" type=
31
 
        "hidden"><a href="http://www.google.com/">Search</a>: <input name="q"
32
 
        size="10" maxlength="255" type="text">
 
27
        "hidden">Search: <input name="q" maxlength="255" type="text">
33
28
       </div>
34
29
      </form>
35
30
     </td>
41
36
   ax_warning_default_pkgconfig
42
37
  </h1>
43
38
  <h2>
44
 
   Synopsis
 
39
   SYNOPSIS
45
40
  </h2>
46
41
  <p class="indent" style="white-space:nowrap;">
47
42
   <code>AX_WARNING_DEFAULT_PKGCONFIGDIR [(dirvariable
49
44
   <code>AX_ENABLE_DEFAULT_PKGCONFIGDIR [(dirvariable [,defsetting])]</code>
50
45
  </p>
51
46
  <h2>
52
 
   Description
 
47
   DESCRIPTION
53
48
  </h2>
54
49
  <div class="indent">
55
50
   <p>
82
77
   </p>
83
78
  </div>
84
79
  <h2>
85
 
   Author
86
 
  </h2>
87
 
  <p class="indent">
88
 
   Guido U. Draheim &lt;guidod@gmx.de&gt;
89
 
  </p>
90
 
  <h2>
91
 
   Last Modified
92
 
  </h2>
93
 
  <p class="indent">
94
 
   2008-04-12
95
 
  </p>
96
 
  <h2>
97
 
   Cross References
98
 
  </h2>
99
 
  <p class="indent">
100
 
   <img src="group28-xrefs.png" alt="group28-xrefs.png" usemap=
101
 
   "#group28"><map id="group28" name="group28">
102
 
    <area shape="poly" href="ax_expand_prefix.html" title="ax_expand_prefix"
103
 
    alt="" coords=
104
 
    "658,65 652,58 636,51 610,46 578,43 543,41 507,43 475,46 449,51 433,58 427,65 433,73 449,79 475,85 507,88 543,89 578,88 610,85 636,79 652,73">
105
 
    <area shape="poly" href="ax_warning_default_aclocaldir.html" title=
106
 
    "ax_warning_default_aclocaldir" alt="" coords=
107
 
    "376,29 367,22 341,15 300,10 249,7 192,5 135,7 84,10 43,15 17,22 8,29 17,37 43,43 84,49 135,52 192,53 249,52 300,49 341,43 367,37">
108
 
    <area shape="poly" href="ax_warning_default_pkgconfig.html" title=
109
 
    "ax_warning_default_pkgconfig" alt="" coords=
110
 
    "378,101 369,94 343,87 301,82 249,79 192,77 135,79 83,82 41,87 15,94 6,101 15,109 41,115 83,121 135,124 192,125 249,124 301,121 343,115 369,109">
111
 
   </map>
112
 
  </p>
113
 
  <h2>
114
 
   M4 Source Code
115
 
  </h2>
116
 
  <div class="indent">
117
 
   <pre class="m4source">
118
 
AC_DEFUN([AX_WARNING_DEFAULT_PKGCONFIGDIR],[dnl
119
 
AC_REQUIRE([AX_EXPAND_PREFIX])dnl
120
 
AS_VAR_PUSHDEF([DIR],[ax_warning_default_pkgconfig_dir])dnl
121
 
AS_VAR_PUSHDEF([BIN],[ax_warning_default_pkgconfig_bin])dnl
122
 
AS_VAR_PUSHDEF([LOC],[ax_warning_default_pkgconfig_loc])dnl
123
 
LOC='m4_if([$2],,[${libdir}/pkgconfig],[$2])'
124
 
m4_ifval([$1],[test ".$[]$1" != "." &amp;&amp; LOC="$[]$1"])
125
 
 if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4
126
 
    AC_PATH_PROG([PKG_CONFIG],[pkg-config],[no])
127
 
 fi
128
 
 if test "$PKG_CONFIG" = "no"
129
 
 then DIR="/" ; test -d "/usr/lib/pkgconfig" &amp;&amp; DIR="/usr/lib/pkgconfig"
130
 
 else BIN=`AS_DIRNAME(["$DIR"])` ;
131
 
      if test -d "$BIN/lib/pkgconfig" ; then
132
 
          DIR="$BIN/lib/pkgconfig"
133
 
      else BIN=`AS_DIRNAME(["$DIR"])`
134
 
      if test -d "$BIN/lib/pkgconfig" ; then
135
 
          DIR="$BIN/lib/pkgconfig"
136
 
      else
137
 
      if test -d "/usr/lib/pkgconfig" ; then
138
 
          DIR="/usr/lib/pkgconfig"
139
 
      else
140
 
          DIR="/"
141
 
      fi fi fi
142
 
 fi
143
 
AC_RUN_LOG([: last pkgconfig dir is assumed as "$DIR"])
144
 
DIR=`eval "echo $DIR"`
145
 
DIR=`eval "echo $DIR"`
146
 
LOC=`eval "echo $LOC"`
147
 
LOC=`eval "echo $LOC"`
148
 
LOC=`eval "echo $LOC"`
149
 
LOC=`eval "echo $LOC"`
150
 
for DIR in `echo "$PKG_CONFIG_PATH:$DIR" | sed -e 's,:, ,g'` ; do
151
 
    AC_RUN_LOG([: test ".$LOC" = ".$DIR"])
152
 
    test ".$LOC" = ".$DIR" &amp;&amp; break
153
 
done
154
 
if  test "$LOC" != "$DIR" ; then
155
 
        m4_ifval([$4],[$4],[dnl
156
 
 AC_MSG_NOTICE([warning: m4_if([$1],,[pkgconfigdir],[$1])=$LOC dnl
157
 
(see config.log)])
158
 
   AC_MSG_NOTICE([perhaps: make install m4_if([$1],,[pkgconfigdir],[$1])=$DIR])
159
 
   cat m4_ifset([AS_MESSAGE_LOG_FD],[&gt;&amp;AS_MESSAGE_LOG_FD],[&gt;&gt;config.log]) &lt;&lt;EOF
160
 
 pkgconfigdir:  the m4_if([$1],,[default pkgconfigdir],[$1 value]) of $LOC
161
 
 pkgconfigdir:  is not listed in the dirlist where pkg-config will look for
162
 
 pkgconfigdir:  package-configs - you can override the install-path using
163
 
 pkgconfigdir:  make install m4_if([$1],,[pkgconfigdir],[$1])=$DIR
164
 
 pkgconfigdir:  or set/append the directory to the environment variable
165
 
 pkgconfigdir:  PKG_CONFIG_PATH="$LOC"
166
 
EOF
167
 
   m4_ifvaln([$5],[$5])])dnl
168
 
   m4_ifvaln([$3],[else $3])dnl
169
 
fi
170
 
AS_VAR_POPDEF([LOC])dnl
171
 
AS_VAR_POPDEF([BIN])dnl
172
 
AS_VAR_POPDEF([DIR])dnl
173
 
])
174
 
 
175
 
AC_DEFUN([AX_ENABLE_DEFAULT_PKGCONFIGDIR],[dnl
176
 
AS_VAR_PUSHDEF([BIN],[ax_warning_default_pkgconfig_bin])dnl
177
 
AS_VAR_PUSHDEF([DIR],[ax_warning_default_pkgconfig_def])dnl
178
 
AS_VAR_PUSHDEF([DEF],[ax_warning_default_pkgconfig_def])dnl
179
 
AC_ARG_ENABLE([enable-default-pkgconfigdir],
180
 
[  --enable-default-pkgconfigdir(=PATH) override the libdir/pkgconfig default])
181
 
test ".$enable_default_pkgconfigdir" = "." &amp;&amp; enable_default_pkgconfigdir="no"
182
 
case ".$enable_default_pkgconfigdir" in
183
 
  .no) DIR='m4_if([$2],,[${libdir}/pkgconfig],[$2])' ;;
184
 
  .yes) # autodetect
185
 
 if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4
186
 
    AC_PATH_PROG([PKG_CONFIG],[pkg-config],[no])
187
 
 fi
188
 
 if test "$PKG_CONFIG" = "no"
189
 
 then DIR="/tmp" ; test -d "/usr/lib/pkgconfig" &amp;&amp; DIR="/usr/lib/pkgconfig"
190
 
 else BIN=`AS_DIRNAME(["$DIR"])` ;
191
 
      if test -d "$BIN/lib/pkgconfig" ; then
192
 
          DIR="$BIN/lib/pkgconfig"
193
 
      else BIN=`AS_DIRNAME(["$DIR"])`
194
 
      if test -d "$BIN/lib/pkgconfig" ; then
195
 
          DIR="$BIN/lib/pkgconfig"
196
 
      else
197
 
      if test -d "/usr/lib/pkgconfig" ; then
198
 
          DIR="/usr/lib/pkgconfig"
199
 
      else
200
 
          DIR="/tmp"
201
 
      fi fi fi
202
 
 fi ;;
203
 
  *) DIR="$enable_default_pkgconfigdir" ;;
204
 
esac
205
 
AX_WARNING_DEFAULT_PKGCONFIGDIR([$1],[$DEF],[$3],[$4],[$5])
206
 
m4_if([$1],,[pkgconfigdir],[$1])="$ax_warning_default_pkgconfig_dir"
207
 
AC_SUBST(m4_if([$1],,[pkgconfigdir],[$1]))
208
 
AS_VAR_POPDEF([DEF])dnl
209
 
AS_VAR_POPDEF([DIR])dnl
210
 
AS_VAR_POPDEF([BIN])dnl
211
 
])
212
 
</pre>
213
 
  </div>
214
 
  <h2>
215
 
   License
216
 
  </h2>
217
 
  <div class="indent">
218
 
   <span style="white-space:nowrap;">Copyright &copy; 2008 Guido U. Draheim
219
 
   &lt;guidod@gmx.de&gt;</span>
 
80
   SOURCE CODE
 
81
  </h2>
 
82
  <p class="indent">
 
83
   <a href=
 
84
   "http://autoconf-archive.cryp.to/ax_warning_default_pkgconfig.m4">http://autoconf-archive.cryp.to/ax_warning_default_pkgconfig.m4</a>
 
85
  </p>
 
86
  <h2>
 
87
   LICENSE
 
88
  </h2>
 
89
  <div class="indent">
 
90
   <p style="white-space:nowrap;">
 
91
    Copyright &copy; 2008 Guido U. Draheim &lt;guidod@gmx.de&gt;
 
92
   </p>
220
93
   <p>
221
94
    This program is free software; you can redistribute it and/or modify it
222
95
    under the terms of the GNU General Public License as published by the Free
245
118
   </p>
246
119
   <p>
247
120
    This special exception to the GPL applies to versions of the Autoconf Macro
248
 
    released by the Autoconf Macro Archive. When you make and distribute a
249
 
    modified version of the Autoconf Macro, you may extend this special
250
 
    exception to the GPL to apply to your modified version as well.
 
121
    released by the Autoconf Archive. When you make and distribute a modified
 
122
    version of the Autoconf Macro, you may extend this special exception to the
 
123
    GPL to apply to your modified version as well.
251
124
   </p>
252
125
  </div>
253
126
 </body>