]>
Commit | Line | Data |
---|---|---|
f96fe483 | 1 | # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*- |
1810fe2a | 2 | |
f96fe483 | 3 | # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 |
0a417fb3 | 4 | # Free Software Foundation, Inc. |
5 | # This file is free software; the Free Software Foundation | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
1810fe2a | 8 | |
0a417fb3 | 9 | # This program is distributed in the hope that it will be useful, |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
1810fe2a | 13 | |
14 | m4_define([AH_LCLINT_TEMPLATE], | |
15 | [AH_VERBATIM([$1], | |
16 | m4_text_wrap([$2 */], [ ], [/* ]) | |
17 | m4_text_wrap([$3@*/], [ ], [/*@])[ | |
18 | #undef $1])]) | |
19 | ||
20 | m4_define([AC_DEFINE_LCLINT], | |
21 | [AC_DEFINE_TRACE([$1])dnl | |
22 | AH_LCLINT_TEMPLATE([$1], [$3], [$4])dnl | |
23 | cat >>confdefs.h <<\_ACEOF | |
24 | [@%:@define] $1 [$2] | |
25 | _ACEOF | |
26 | ]) | |
27 | ||
f96fe483 | 28 | # Do all the work for Automake. -*- Autoconf -*- |
1810fe2a | 29 | |
f96fe483 | 30 | # This macro actually does too much some checks are only needed if |
31 | # your package does certain things. But this isn't really a big deal. | |
32 | ||
33 | # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 | |
34 | # Free Software Foundation, Inc. | |
35 | ||
36 | # This program is free software; you can redistribute it and/or modify | |
37 | # it under the terms of the GNU General Public License as published by | |
38 | # the Free Software Foundation; either version 2, or (at your option) | |
39 | # any later version. | |
40 | ||
41 | # This program is distributed in the hope that it will be useful, | |
42 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
43 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
44 | # GNU General Public License for more details. | |
45 | ||
46 | # You should have received a copy of the GNU General Public License | |
47 | # along with this program; if not, write to the Free Software | |
48 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
49 | # 02111-1307, USA. | |
50 | ||
51 | # serial 8 | |
1810fe2a | 52 | |
0a417fb3 | 53 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
54 | # written in clear, in which case automake, when reading aclocal.m4, | |
55 | # will think it sees a *use*, and therefore will trigger all it's | |
56 | # C support machinery. Also note that it means that autoscan, seeing | |
57 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
1810fe2a | 58 | |
0a417fb3 | 59 | |
f96fe483 | 60 | AC_PREREQ([2.52]) |
0a417fb3 | 61 | |
f96fe483 | 62 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
63 | # the ones we care about. | |
64 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
65 | ||
66 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
67 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
68 | # ----------------------------------------------- | |
69 | # The call with PACKAGE and VERSION arguments is the old style | |
70 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
71 | # and VERSION should now be passed to AC_INIT and removed from | |
72 | # the call to AM_INIT_AUTOMAKE. | |
73 | # We support both call styles for the transition. After | |
74 | # the next Automake release, Autoconf can make the AC_INIT | |
75 | # arguments mandatory, and then we can depend on a new Autoconf | |
76 | # release and drop the old call support. | |
1810fe2a | 77 | AC_DEFUN([AM_INIT_AUTOMAKE], |
f96fe483 | 78 | [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
79 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
0a417fb3 | 80 | # test to see if srcdir already configured |
f96fe483 | 81 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
0a417fb3 | 82 | test -f $srcdir/config.status; then |
f96fe483 | 83 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
1810fe2a | 84 | fi |
0a417fb3 | 85 | |
86 | # Define the identity of the package. | |
f96fe483 | 87 | dnl Distinguish between old-style and new-style calls. |
88 | m4_ifval([$2], | |
89 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
90 | AC_SUBST([PACKAGE], [$1])dnl | |
91 | AC_SUBST([VERSION], [$2])], | |
92 | [_AM_SET_OPTIONS([$1])dnl | |
93 | AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl | |
94 | AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl | |
95 | ||
96 | _AM_IF_OPTION([no-define],, | |
0a417fb3 | 97 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
f96fe483 | 98 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
0a417fb3 | 99 | |
100 | # Some tools Automake needs. | |
101 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
102 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
f96fe483 | 103 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
0a417fb3 | 104 | AM_MISSING_PROG(AUTOCONF, autoconf) |
f96fe483 | 105 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
0a417fb3 | 106 | AM_MISSING_PROG(AUTOHEADER, autoheader) |
107 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
108 | AM_MISSING_PROG(AMTAR, tar) | |
109 | AM_PROG_INSTALL_SH | |
110 | AM_PROG_INSTALL_STRIP | |
111 | # We need awk for the "check" target. The system "awk" is bad on | |
112 | # some platforms. | |
113 | AC_REQUIRE([AC_PROG_AWK])dnl | |
114 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
f96fe483 | 115 | |
116 | _AM_IF_OPTION([no-dependencies],, | |
117 | [AC_PROVIDE_IFELSE([AC_PROG_][CC], | |
0a417fb3 | 118 | [_AM_DEPENDENCIES(CC)], |
119 | [define([AC_PROG_][CC], | |
120 | defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl | |
121 | AC_PROVIDE_IFELSE([AC_PROG_][CXX], | |
122 | [_AM_DEPENDENCIES(CXX)], | |
123 | [define([AC_PROG_][CXX], | |
124 | defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
125 | ]) | |
f96fe483 | 126 | ]) |
127 | ||
128 | # Copyright 2002 Free Software Foundation, Inc. | |
129 | ||
130 | # This program is free software; you can redistribute it and/or modify | |
131 | # it under the terms of the GNU General Public License as published by | |
132 | # the Free Software Foundation; either version 2, or (at your option) | |
133 | # any later version. | |
134 | ||
135 | # This program is distributed in the hope that it will be useful, | |
136 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
137 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
138 | # GNU General Public License for more details. | |
139 | ||
140 | # You should have received a copy of the GNU General Public License | |
141 | # along with this program; if not, write to the Free Software | |
142 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
143 | ||
144 | # AM_AUTOMAKE_VERSION(VERSION) | |
145 | # ---------------------------- | |
146 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
147 | # generated from the m4 files accompanying Automake X.Y. | |
148 | AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"]) | |
149 | ||
150 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
151 | # ------------------------------- | |
152 | # Call AM_AUTOMAKE_VERSION so it can be traced. | |
153 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | |
154 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
155 | [AM_AUTOMAKE_VERSION([1.6.3])]) | |
156 | ||
157 | # Helper functions for option handling. -*- Autoconf -*- | |
158 | ||
159 | # Copyright 2001, 2002 Free Software Foundation, Inc. | |
160 | ||
161 | # This program is free software; you can redistribute it and/or modify | |
162 | # it under the terms of the GNU General Public License as published by | |
163 | # the Free Software Foundation; either version 2, or (at your option) | |
164 | # any later version. | |
165 | ||
166 | # This program is distributed in the hope that it will be useful, | |
167 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
168 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
169 | # GNU General Public License for more details. | |
170 | ||
171 | # You should have received a copy of the GNU General Public License | |
172 | # along with this program; if not, write to the Free Software | |
173 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
174 | # 02111-1307, USA. | |
175 | ||
176 | # serial 2 | |
177 | ||
178 | # _AM_MANGLE_OPTION(NAME) | |
179 | # ----------------------- | |
180 | AC_DEFUN([_AM_MANGLE_OPTION], | |
181 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
182 | ||
183 | # _AM_SET_OPTION(NAME) | |
184 | # ------------------------------ | |
185 | # Set option NAME. Presently that only means defining a flag for this option. | |
186 | AC_DEFUN([_AM_SET_OPTION], | |
187 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
188 | ||
189 | # _AM_SET_OPTIONS(OPTIONS) | |
190 | # ---------------------------------- | |
191 | # OPTIONS is a space-separated list of Automake options. | |
192 | AC_DEFUN([_AM_SET_OPTIONS], | |
193 | [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
194 | ||
195 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
196 | # ------------------------------------------- | |
197 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
198 | AC_DEFUN([_AM_IF_OPTION], | |
199 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
1810fe2a | 200 | |
201 | # | |
202 | # Check to make sure that the build environment is sane. | |
203 | # | |
204 | ||
f96fe483 | 205 | # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
206 | ||
207 | # This program is free software; you can redistribute it and/or modify | |
208 | # it under the terms of the GNU General Public License as published by | |
209 | # the Free Software Foundation; either version 2, or (at your option) | |
210 | # any later version. | |
211 | ||
212 | # This program is distributed in the hope that it will be useful, | |
213 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
214 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
215 | # GNU General Public License for more details. | |
216 | ||
217 | # You should have received a copy of the GNU General Public License | |
218 | # along with this program; if not, write to the Free Software | |
219 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
220 | # 02111-1307, USA. | |
221 | ||
0a417fb3 | 222 | # serial 3 |
223 | ||
224 | # AM_SANITY_CHECK | |
225 | # --------------- | |
1810fe2a | 226 | AC_DEFUN([AM_SANITY_CHECK], |
227 | [AC_MSG_CHECKING([whether build environment is sane]) | |
228 | # Just in case | |
229 | sleep 1 | |
0a417fb3 | 230 | echo timestamp > conftest.file |
1810fe2a | 231 | # Do `set' in a subshell so we don't clobber the current shell's |
232 | # arguments. Must try -L first in case configure is actually a | |
233 | # symlink; some systems play weird games with the mod time of symlinks | |
234 | # (eg FreeBSD returns the mod time of the symlink's containing | |
235 | # directory). | |
236 | if ( | |
0a417fb3 | 237 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
238 | if test "$[*]" = "X"; then | |
1810fe2a | 239 | # -L didn't work. |
0a417fb3 | 240 | set X `ls -t $srcdir/configure conftest.file` |
1810fe2a | 241 | fi |
0a417fb3 | 242 | rm -f conftest.file |
243 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
244 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
1810fe2a | 245 | |
246 | # If neither matched, then we have a broken ls. This can happen | |
247 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
248 | # broken ls alias from the environment. This has actually | |
249 | # happened. Such a system could not be considered "sane". | |
250 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
251 | alias in your environment]) | |
252 | fi | |
253 | ||
0a417fb3 | 254 | test "$[2]" = conftest.file |
1810fe2a | 255 | ) |
256 | then | |
257 | # Ok. | |
258 | : | |
259 | else | |
260 | AC_MSG_ERROR([newly created file is older than distributed files! | |
261 | Check your system clock]) | |
262 | fi | |
263 | AC_MSG_RESULT(yes)]) | |
264 | ||
f96fe483 | 265 | # -*- Autoconf -*- |
0a417fb3 | 266 | |
f96fe483 | 267 | |
268 | # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. | |
269 | ||
270 | # This program is free software; you can redistribute it and/or modify | |
271 | # it under the terms of the GNU General Public License as published by | |
272 | # the Free Software Foundation; either version 2, or (at your option) | |
273 | # any later version. | |
274 | ||
275 | # This program is distributed in the hope that it will be useful, | |
276 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
277 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
278 | # GNU General Public License for more details. | |
279 | ||
280 | # You should have received a copy of the GNU General Public License | |
281 | # along with this program; if not, write to the Free Software | |
282 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
283 | # 02111-1307, USA. | |
284 | ||
285 | # serial 3 | |
0a417fb3 | 286 | |
287 | # AM_MISSING_PROG(NAME, PROGRAM) | |
288 | # ------------------------------ | |
1810fe2a | 289 | AC_DEFUN([AM_MISSING_PROG], |
0a417fb3 | 290 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
291 | $1=${$1-"${am_missing_run}$2"} | |
292 | AC_SUBST($1)]) | |
293 | ||
294 | ||
295 | # AM_MISSING_HAS_RUN | |
296 | # ------------------ | |
297 | # Define MISSING if not defined so far and test if it supports --run. | |
298 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
299 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
300 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
301 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
302 | # Use eval to expand $SHELL | |
303 | if eval "$MISSING --run true"; then | |
304 | am_missing_run="$MISSING --run " | |
1810fe2a | 305 | else |
0a417fb3 | 306 | am_missing_run= |
f96fe483 | 307 | AC_MSG_WARN([`missing' script is too old or missing]) |
1810fe2a | 308 | fi |
0a417fb3 | 309 | ]) |
310 | ||
311 | # AM_AUX_DIR_EXPAND | |
312 | ||
f96fe483 | 313 | # Copyright 2001 Free Software Foundation, Inc. |
314 | ||
315 | # This program is free software; you can redistribute it and/or modify | |
316 | # it under the terms of the GNU General Public License as published by | |
317 | # the Free Software Foundation; either version 2, or (at your option) | |
318 | # any later version. | |
319 | ||
320 | # This program is distributed in the hope that it will be useful, | |
321 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
322 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
323 | # GNU General Public License for more details. | |
324 | ||
325 | # You should have received a copy of the GNU General Public License | |
326 | # along with this program; if not, write to the Free Software | |
327 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
328 | # 02111-1307, USA. | |
329 | ||
0a417fb3 | 330 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
331 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
332 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
333 | # | |
334 | # Of course, Automake must honor this variable whenever it calls a | |
335 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
336 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
337 | # depending on how configure is run. This is pretty annoying, since | |
338 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
339 | # source directory, any form will work fine, but in subdirectories a | |
340 | # relative path needs to be adjusted first. | |
341 | # | |
342 | # $ac_aux_dir/missing | |
343 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
344 | # $top_srcdir/$ac_aux_dir/missing | |
345 | # fails if $ac_aux_dir is absolute, | |
346 | # fails when called from a subdirectory in a VPATH build with | |
347 | # a relative $ac_aux_dir | |
348 | # | |
349 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
350 | # are both prefixed by $srcdir. In an in-source build this is usually | |
351 | # harmless because $srcdir is `.', but things will broke when you | |
352 | # start a VPATH build or use an absolute $srcdir. | |
353 | # | |
354 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
355 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
356 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
357 | # and then we would define $MISSING as | |
358 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
359 | # This will work as long as MISSING is not called from configure, because | |
360 | # unfortunately $(top_srcdir) has no meaning in configure. | |
361 | # However there are other variables, like CC, which are often used in | |
362 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
363 | # | |
364 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
365 | # absolute PATH. The drawback is that using absolute paths prevent a | |
366 | # configured tree to be moved without reconfiguration. | |
367 | ||
f96fe483 | 368 | # Rely on autoconf to set up CDPATH properly. |
369 | AC_PREREQ([2.50]) | |
370 | ||
0a417fb3 | 371 | AC_DEFUN([AM_AUX_DIR_EXPAND], [ |
372 | # expand $ac_aux_dir to an absolute path | |
f96fe483 | 373 | am_aux_dir=`cd $ac_aux_dir && pwd` |
0a417fb3 | 374 | ]) |
375 | ||
376 | # AM_PROG_INSTALL_SH | |
377 | # ------------------ | |
378 | # Define $install_sh. | |
f96fe483 | 379 | |
380 | # Copyright 2001 Free Software Foundation, Inc. | |
381 | ||
382 | # This program is free software; you can redistribute it and/or modify | |
383 | # it under the terms of the GNU General Public License as published by | |
384 | # the Free Software Foundation; either version 2, or (at your option) | |
385 | # any later version. | |
386 | ||
387 | # This program is distributed in the hope that it will be useful, | |
388 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
389 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
390 | # GNU General Public License for more details. | |
391 | ||
392 | # You should have received a copy of the GNU General Public License | |
393 | # along with this program; if not, write to the Free Software | |
394 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
395 | # 02111-1307, USA. | |
396 | ||
0a417fb3 | 397 | AC_DEFUN([AM_PROG_INSTALL_SH], |
398 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
399 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
400 | AC_SUBST(install_sh)]) | |
401 | ||
f96fe483 | 402 | # AM_PROG_INSTALL_STRIP |
403 | ||
404 | # Copyright 2001 Free Software Foundation, Inc. | |
405 | ||
406 | # This program is free software; you can redistribute it and/or modify | |
407 | # it under the terms of the GNU General Public License as published by | |
408 | # the Free Software Foundation; either version 2, or (at your option) | |
409 | # any later version. | |
410 | ||
411 | # This program is distributed in the hope that it will be useful, | |
412 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
413 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
414 | # GNU General Public License for more details. | |
415 | ||
416 | # You should have received a copy of the GNU General Public License | |
417 | # along with this program; if not, write to the Free Software | |
418 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
419 | # 02111-1307, USA. | |
420 | ||
0a417fb3 | 421 | # One issue with vendor `install' (even GNU) is that you can't |
422 | # specify the program used to strip binaries. This is especially | |
423 | # annoying in cross-compiling environments, where the build's strip | |
424 | # is unlikely to handle the host's binaries. | |
425 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
426 | # always use install-sh in `make install-strip', and initialize | |
427 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
428 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
429 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
f96fe483 | 430 | # Installed binaries are usually stripped using `strip' when the user |
431 | # run `make install-strip'. However `strip' might not be the right | |
432 | # tool to use in cross-compilation environments, therefore Automake | |
433 | # will honor the `STRIP' environment variable to overrule this program. | |
434 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
435 | if test "$cross_compiling" != no; then | |
436 | AC_CHECK_TOOL([STRIP], [strip], :) | |
437 | fi | |
0a417fb3 | 438 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
439 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
440 | ||
441 | # serial 4 -*- Autoconf -*- | |
442 | ||
f96fe483 | 443 | # Copyright 1999, 2000, 2001 Free Software Foundation, Inc. |
444 | ||
445 | # This program is free software; you can redistribute it and/or modify | |
446 | # it under the terms of the GNU General Public License as published by | |
447 | # the Free Software Foundation; either version 2, or (at your option) | |
448 | # any later version. | |
449 | ||
450 | # This program is distributed in the hope that it will be useful, | |
451 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
452 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
453 | # GNU General Public License for more details. | |
454 | ||
455 | # You should have received a copy of the GNU General Public License | |
456 | # along with this program; if not, write to the Free Software | |
457 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
458 | # 02111-1307, USA. | |
0a417fb3 | 459 | |
460 | ||
461 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
462 | # written in clear, in which case automake, when reading aclocal.m4, | |
463 | # will think it sees a *use*, and therefore will trigger all it's | |
464 | # C support machinery. Also note that it means that autoscan, seeing | |
465 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
466 | ||
467 | ||
468 | ||
469 | # _AM_DEPENDENCIES(NAME) | |
f96fe483 | 470 | # ---------------------- |
0a417fb3 | 471 | # See how the compiler implements dependency checking. |
f96fe483 | 472 | # NAME is "CC", "CXX", "GCJ", or "OBJC". |
0a417fb3 | 473 | # We try a few techniques and use that to set a single cache variable. |
474 | # | |
475 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
476 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
477 | # dependency, and given that the user is not expected to run this macro, | |
478 | # just rely on AC_PROG_CC. | |
479 | AC_DEFUN([_AM_DEPENDENCIES], | |
480 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
481 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
482 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
483 | AC_REQUIRE([AM_DEP_TRACK])dnl | |
484 | ||
485 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
486 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
f96fe483 | 487 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
0a417fb3 | 488 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
489 | [depcc="$$1" am_compiler_list=]) | |
490 | ||
491 | AC_CACHE_CHECK([dependency style of $depcc], | |
492 | [am_cv_$1_dependencies_compiler_type], | |
493 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
494 | # We make a subdir and do the tests there. Otherwise we can end up | |
495 | # making bogus files that we don't know about and never remove. For | |
496 | # instance it was reported that on HP-UX the gcc test will end up | |
497 | # making a dummy file named `D' -- because `-MD' means `put the output | |
498 | # in D'. | |
499 | mkdir conftest.dir | |
500 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
501 | # using a relative directory. | |
502 | cp "$am_depcomp" conftest.dir | |
503 | cd conftest.dir | |
504 | ||
505 | am_cv_$1_dependencies_compiler_type=none | |
506 | if test "$am_compiler_list" = ""; then | |
507 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
508 | fi | |
509 | for depmode in $am_compiler_list; do | |
510 | # We need to recreate these files for each test, as the compiler may | |
511 | # overwrite some of them when testing with obscure command lines. | |
512 | # This happens at least with the AIX C compiler. | |
513 | echo '#include "conftest.h"' > conftest.c | |
514 | echo 'int i;' > conftest.h | |
515 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf | |
516 | ||
517 | case $depmode in | |
518 | nosideeffect) | |
519 | # after this tag, mechanisms are not by side-effect, so they'll | |
520 | # only be used when explicitly requested | |
521 | if test "x$enable_dependency_tracking" = xyes; then | |
522 | continue | |
523 | else | |
524 | break | |
525 | fi | |
526 | ;; | |
527 | none) break ;; | |
528 | esac | |
529 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
530 | # mode. It turns out that the SunPro C++ compiler does not properly | |
531 | # handle `-M -o', and we need to detect this. | |
532 | if depmode=$depmode \ | |
533 | source=conftest.c object=conftest.o \ | |
534 | depfile=conftest.Po tmpdepfile=conftest.TPo \ | |
535 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && | |
536 | grep conftest.h conftest.Po > /dev/null 2>&1 && | |
537 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
538 | am_cv_$1_dependencies_compiler_type=$depmode | |
539 | break | |
540 | fi | |
541 | done | |
542 | ||
543 | cd .. | |
544 | rm -rf conftest.dir | |
545 | else | |
546 | am_cv_$1_dependencies_compiler_type=none | |
547 | fi | |
548 | ]) | |
f96fe483 | 549 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
0a417fb3 | 550 | ]) |
551 | ||
552 | ||
553 | # AM_SET_DEPDIR | |
554 | # ------------- | |
555 | # Choose a directory name for dependency files. | |
556 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
557 | AC_DEFUN([AM_SET_DEPDIR], | |
558 | [rm -f .deps 2>/dev/null | |
559 | mkdir .deps 2>/dev/null | |
560 | if test -d .deps; then | |
561 | DEPDIR=.deps | |
562 | else | |
563 | # MS-DOS does not allow filenames that begin with a dot. | |
564 | DEPDIR=_deps | |
565 | fi | |
566 | rmdir .deps 2>/dev/null | |
f96fe483 | 567 | AC_SUBST([DEPDIR]) |
0a417fb3 | 568 | ]) |
569 | ||
570 | ||
571 | # AM_DEP_TRACK | |
572 | # ------------ | |
573 | AC_DEFUN([AM_DEP_TRACK], | |
574 | [AC_ARG_ENABLE(dependency-tracking, | |
575 | [ --disable-dependency-tracking Speeds up one-time builds | |
576 | --enable-dependency-tracking Do not reject slow dependency extractors]) | |
577 | if test "x$enable_dependency_tracking" != xno; then | |
578 | am_depcomp="$ac_aux_dir/depcomp" | |
579 | AMDEPBACKSLASH='\' | |
580 | fi | |
581 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
f96fe483 | 582 | AC_SUBST([AMDEPBACKSLASH]) |
0a417fb3 | 583 | ]) |
584 | ||
f96fe483 | 585 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
0a417fb3 | 586 | |
f96fe483 | 587 | # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
588 | ||
589 | # This program is free software; you can redistribute it and/or modify | |
590 | # it under the terms of the GNU General Public License as published by | |
591 | # the Free Software Foundation; either version 2, or (at your option) | |
592 | # any later version. | |
593 | ||
594 | # This program is distributed in the hope that it will be useful, | |
595 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
596 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
597 | # GNU General Public License for more details. | |
598 | ||
599 | # You should have received a copy of the GNU General Public License | |
600 | # along with this program; if not, write to the Free Software | |
601 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
602 | # 02111-1307, USA. | |
603 | ||
604 | #serial 2 | |
605 | ||
606 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
607 | # ------------------------------ | |
608 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
609 | [for mf in $CONFIG_FILES; do | |
610 | # Strip MF so we end up with the name of the file. | |
611 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
612 | # Check whether this is an Automake generated Makefile or not. | |
613 | # We used to match only the files named `Makefile.in', but | |
614 | # some people rename them; so instead we look at the file content. | |
615 | # Grep'ing the first line is not enough: some people post-process | |
616 | # each Makefile.in and add a new line on top of each file to say so. | |
617 | # So let's grep whole file. | |
618 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
619 | dirpart=`AS_DIRNAME("$mf")` | |
620 | else | |
621 | continue | |
622 | fi | |
623 | grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue | |
0a417fb3 | 624 | # Extract the definition of DEP_FILES from the Makefile without |
625 | # running `make'. | |
626 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` | |
627 | test -z "$DEPDIR" && continue | |
628 | # When using ansi2knr, U may be empty or an underscore; expand it | |
629 | U=`sed -n -e '/^U = / s///p' < "$mf"` | |
630 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" | |
631 | # We invoke sed twice because it is the simplest approach to | |
632 | # changing $(DEPDIR) to its actual value in the expansion. | |
633 | for file in `sed -n -e ' | |
634 | /^DEP_FILES = .*\\\\$/ { | |
635 | s/^DEP_FILES = // | |
636 | :loop | |
637 | s/\\\\$// | |
638 | p | |
639 | n | |
640 | /\\\\$/ b loop | |
641 | p | |
642 | } | |
643 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
644 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
645 | # Make sure the directory exists. | |
646 | test -f "$dirpart/$file" && continue | |
f96fe483 | 647 | fdir=`AS_DIRNAME(["$file"])` |
648 | AS_MKDIR_P([$dirpart/$fdir]) | |
0a417fb3 | 649 | # echo "creating $dirpart/$file" |
650 | echo '# dummy' > "$dirpart/$file" | |
651 | done | |
652 | done | |
f96fe483 | 653 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
654 | ||
655 | ||
656 | # AM_OUTPUT_DEPENDENCY_COMMANDS | |
657 | # ----------------------------- | |
658 | # This macro should only be invoked once -- use via AC_REQUIRE. | |
659 | # | |
660 | # This code is only required when automatic dependency tracking | |
661 | # is enabled. FIXME. This creates each `.P' file that we will | |
662 | # need in order to bootstrap the dependency handling code. | |
663 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
664 | [AC_CONFIG_COMMANDS([depfiles], | |
665 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
666 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
667 | ]) | |
668 | ||
669 | # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*- | |
670 | ||
671 | # This program is free software; you can redistribute it and/or modify | |
672 | # it under the terms of the GNU General Public License as published by | |
673 | # the Free Software Foundation; either version 2, or (at your option) | |
674 | # any later version. | |
675 | ||
676 | # This program is distributed in the hope that it will be useful, | |
677 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
678 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
679 | # GNU General Public License for more details. | |
680 | ||
681 | # You should have received a copy of the GNU General Public License | |
682 | # along with this program; if not, write to the Free Software | |
683 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
684 | # 02111-1307, USA. | |
685 | ||
686 | # serial 2 | |
0a417fb3 | 687 | |
688 | # AM_MAKE_INCLUDE() | |
689 | # ----------------- | |
690 | # Check to see how make treats includes. | |
691 | AC_DEFUN([AM_MAKE_INCLUDE], | |
692 | [am_make=${MAKE-make} | |
693 | cat > confinc << 'END' | |
694 | doit: | |
695 | @echo done | |
696 | END | |
697 | # If we don't find an include directive, just comment out the code. | |
698 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
f96fe483 | 699 | am__include="#" |
0a417fb3 | 700 | am__quote= |
701 | _am_result=none | |
702 | # First try GNU make style include. | |
703 | echo "include confinc" > confmf | |
704 | # We grep out `Entering directory' and `Leaving directory' | |
705 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
706 | # In particular we don't look at `^make:' because GNU make might | |
707 | # be invoked under some other name (usually "gmake"), in which | |
708 | # case it prints its new name instead of `make'. | |
709 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then | |
710 | am__include=include | |
711 | am__quote= | |
712 | _am_result=GNU | |
713 | fi | |
714 | # Now try BSD make style include. | |
715 | if test "$am__include" = "#"; then | |
716 | echo '.include "confinc"' > confmf | |
717 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
718 | am__include=.include | |
f96fe483 | 719 | am__quote="\"" |
0a417fb3 | 720 | _am_result=BSD |
721 | fi | |
722 | fi | |
723 | AC_SUBST(am__include) | |
724 | AC_SUBST(am__quote) | |
725 | AC_MSG_RESULT($_am_result) | |
726 | rm -f confinc confmf | |
727 | ]) | |
728 | ||
f96fe483 | 729 | # AM_CONDITIONAL -*- Autoconf -*- |
730 | ||
731 | # Copyright 1997, 2000, 2001 Free Software Foundation, Inc. | |
732 | ||
733 | # This program is free software; you can redistribute it and/or modify | |
734 | # it under the terms of the GNU General Public License as published by | |
735 | # the Free Software Foundation; either version 2, or (at your option) | |
736 | # any later version. | |
737 | ||
738 | # This program is distributed in the hope that it will be useful, | |
739 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
740 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
741 | # GNU General Public License for more details. | |
742 | ||
743 | # You should have received a copy of the GNU General Public License | |
744 | # along with this program; if not, write to the Free Software | |
745 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
746 | # 02111-1307, USA. | |
747 | ||
748 | # serial 5 | |
749 | ||
750 | AC_PREREQ(2.52) | |
0a417fb3 | 751 | |
752 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
753 | # ------------------------------------- | |
754 | # Define a conditional. | |
0a417fb3 | 755 | AC_DEFUN([AM_CONDITIONAL], |
f96fe483 | 756 | [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
757 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
0a417fb3 | 758 | AC_SUBST([$1_TRUE]) |
759 | AC_SUBST([$1_FALSE]) | |
760 | if $2; then | |
761 | $1_TRUE= | |
762 | $1_FALSE='#' | |
763 | else | |
764 | $1_TRUE='#' | |
765 | $1_FALSE= | |
f96fe483 | 766 | fi |
767 | AC_CONFIG_COMMANDS_PRE( | |
768 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
769 | AC_MSG_ERROR([conditional \"$1\" was never defined. | |
770 | Usually this means the macro was only invoked conditionally.]) | |
771 | fi])]) | |
1810fe2a | 772 | |
f96fe483 | 773 | # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*- |
1810fe2a | 774 | |
f96fe483 | 775 | # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. |
776 | ||
777 | # This program is free software; you can redistribute it and/or modify | |
778 | # it under the terms of the GNU General Public License as published by | |
779 | # the Free Software Foundation; either version 2, or (at your option) | |
780 | # any later version. | |
781 | ||
782 | # This program is distributed in the hope that it will be useful, | |
783 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
784 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
785 | # GNU General Public License for more details. | |
786 | ||
787 | # You should have received a copy of the GNU General Public License | |
788 | # along with this program; if not, write to the Free Software | |
789 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
790 | # 02111-1307, USA. | |
791 | ||
792 | AC_PREREQ([2.52]) | |
793 | ||
794 | # serial 6 | |
0a417fb3 | 795 | |
796 | # When config.status generates a header, we must update the stamp-h file. | |
797 | # This file resides in the same directory as the config header | |
798 | # that is generated. We must strip everything past the first ":", | |
799 | # and everything past the last "/". | |
800 | ||
0a417fb3 | 801 | # _AM_DIRNAME(PATH) |
802 | # ----------------- | |
803 | # Like AS_DIRNAME, only do it during macro expansion | |
804 | AC_DEFUN([_AM_DIRNAME], | |
f96fe483 | 805 | [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1, |
806 | m4_if(regexp([$1], [^//\([^/]\|$\)]), -1, | |
807 | m4_if(regexp([$1], [^/.*]), -1, | |
0a417fb3 | 808 | [.], |
f96fe483 | 809 | patsubst([$1], [^\(/\).*], [\1])), |
810 | patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])), | |
811 | patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl | |
812 | ])# _AM_DIRNAME | |
813 | ||
814 | ||
815 | # The stamp files are numbered to have different names. | |
816 | # We could number them on a directory basis, but that's additional | |
817 | # complications, let's have a unique counter. | |
818 | m4_define([_AM_STAMP_Count], [0]) | |
819 | ||
820 | ||
821 | # _AM_STAMP(HEADER) | |
822 | # ----------------- | |
823 | # The name of the stamp file for HEADER. | |
824 | AC_DEFUN([_AM_STAMP], | |
825 | [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl | |
826 | AS_ESCAPE(_AM_DIRNAME(patsubst([$1], | |
827 | [:.*])))/stamp-h[]_AM_STAMP_Count]) | |
828 | ||
829 | ||
830 | # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS) | |
831 | # ------------------------------------------------------------ | |
832 | # We used to try to get a real timestamp in stamp-h. But the fear is that | |
833 | # that will cause unnecessary cvs conflicts. | |
834 | AC_DEFUN([_AM_CONFIG_HEADER], | |
835 | [# Add the stamp file to the list of files AC keeps track of, | |
836 | # along with our hook. | |
837 | AC_CONFIG_HEADERS([$1], | |
838 | [# update the timestamp | |
839 | echo 'timestamp for $1' >"_AM_STAMP([$1])" | |
840 | $2], | |
841 | [$3]) | |
842 | ])# _AM_CONFIG_HEADER | |
843 | ||
844 | ||
845 | # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS) | |
846 | # -------------------------------------------------------------- | |
847 | AC_DEFUN([AM_CONFIG_HEADER], | |
848 | [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])]) | |
849 | ])# AM_CONFIG_HEADER | |
850 | ||
851 | ||
852 | # Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | |
1810fe2a | 853 | |
f96fe483 | 854 | # This program is free software; you can redistribute it and/or modify |
855 | # it under the terms of the GNU General Public License as published by | |
856 | # the Free Software Foundation; either version 2, or (at your option) | |
857 | # any later version. | |
858 | ||
859 | # This program is distributed in the hope that it will be useful, | |
860 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
861 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
862 | # GNU General Public License for more details. | |
863 | ||
864 | # You should have received a copy of the GNU General Public License | |
865 | # along with this program; if not, write to the Free Software | |
866 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
867 | # 02111-1307, USA. | |
868 | ||
869 | # serial 3 | |
870 | ||
871 | AC_PREREQ(2.50) | |
1810fe2a | 872 | |
0a417fb3 | 873 | # AM_PROG_LEX |
f96fe483 | 874 | # ----------- |
875 | # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a | |
876 | # "missing" invocation, for better error output. | |
1810fe2a | 877 | AC_DEFUN([AM_PROG_LEX], |
f96fe483 | 878 | [AC_REQUIRE([AM_MISSING_HAS_RUN])dnl |
879 | AC_REQUIRE([AC_PROG_LEX])dnl | |
880 | if test "$LEX" = :; then | |
881 | LEX=${am_missing_run}flex | |
882 | fi]) | |
1810fe2a | 883 |