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