OSDN Git Service

2004-08-12 Kelley Cook <kcook@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / aclocal.m4
1 # generated automatically by aclocal 1.8.5 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
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 #                                                        -*- Autoconf -*-
15 # Copyright (C) 2002, 2003  Free Software Foundation, Inc.
16 # Generated from amversion.in; do not edit by hand.
17
18 # This program is free software; you can redistribute it and/or modify
19 # it under the terms of the GNU General Public License as published by
20 # the Free Software Foundation; either version 2, or (at your option)
21 # any later version.
22
23 # This program is distributed in the hope that it will be useful,
24 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26 # GNU General Public License for more details.
27
28 # You should have received a copy of the GNU General Public License
29 # along with this program; if not, write to the Free Software
30 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
31
32 # AM_AUTOMAKE_VERSION(VERSION)
33 # ----------------------------
34 # Automake X.Y traces this macro to ensure aclocal.m4 has been
35 # generated from the m4 files accompanying Automake X.Y.
36 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
37
38 # AM_SET_CURRENT_AUTOMAKE_VERSION
39 # -------------------------------
40 # Call AM_AUTOMAKE_VERSION so it can be traced.
41 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
42 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
43          [AM_AUTOMAKE_VERSION([1.8.5])])
44
45 # AM_AUX_DIR_EXPAND
46
47 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
48
49 # This program is free software; you can redistribute it and/or modify
50 # it under the terms of the GNU General Public License as published by
51 # the Free Software Foundation; either version 2, or (at your option)
52 # any later version.
53
54 # This program is distributed in the hope that it will be useful,
55 # but WITHOUT ANY WARRANTY; without even the implied warranty of
56 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
57 # GNU General Public License for more details.
58
59 # You should have received a copy of the GNU General Public License
60 # along with this program; if not, write to the Free Software
61 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
62 # 02111-1307, USA.
63
64 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
65 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
66 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
67 #
68 # Of course, Automake must honor this variable whenever it calls a
69 # tool from the auxiliary directory.  The problem is that $srcdir (and
70 # therefore $ac_aux_dir as well) can be either absolute or relative,
71 # depending on how configure is run.  This is pretty annoying, since
72 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
73 # source directory, any form will work fine, but in subdirectories a
74 # relative path needs to be adjusted first.
75 #
76 # $ac_aux_dir/missing
77 #    fails when called from a subdirectory if $ac_aux_dir is relative
78 # $top_srcdir/$ac_aux_dir/missing
79 #    fails if $ac_aux_dir is absolute,
80 #    fails when called from a subdirectory in a VPATH build with
81 #          a relative $ac_aux_dir
82 #
83 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
84 # are both prefixed by $srcdir.  In an in-source build this is usually
85 # harmless because $srcdir is `.', but things will broke when you
86 # start a VPATH build or use an absolute $srcdir.
87 #
88 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
89 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
90 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
91 # and then we would define $MISSING as
92 #   MISSING="\${SHELL} $am_aux_dir/missing"
93 # This will work as long as MISSING is not called from configure, because
94 # unfortunately $(top_srcdir) has no meaning in configure.
95 # However there are other variables, like CC, which are often used in
96 # configure, and could therefore not use this "fixed" $ac_aux_dir.
97 #
98 # Another solution, used here, is to always expand $ac_aux_dir to an
99 # absolute PATH.  The drawback is that using absolute paths prevent a
100 # configured tree to be moved without reconfiguration.
101
102 AC_DEFUN([AM_AUX_DIR_EXPAND],
103 [dnl Rely on autoconf to set up CDPATH properly.
104 AC_PREREQ([2.50])dnl
105 # expand $ac_aux_dir to an absolute path
106 am_aux_dir=`cd $ac_aux_dir && pwd`
107 ])
108
109 # AM_CONDITIONAL                                              -*- Autoconf -*-
110
111 # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
112
113 # This program is free software; you can redistribute it and/or modify
114 # it under the terms of the GNU General Public License as published by
115 # the Free Software Foundation; either version 2, or (at your option)
116 # any later version.
117
118 # This program is distributed in the hope that it will be useful,
119 # but WITHOUT ANY WARRANTY; without even the implied warranty of
120 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
121 # GNU General Public License for more details.
122
123 # You should have received a copy of the GNU General Public License
124 # along with this program; if not, write to the Free Software
125 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
126 # 02111-1307, USA.
127
128 # serial 6
129
130 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
131 # -------------------------------------
132 # Define a conditional.
133 AC_DEFUN([AM_CONDITIONAL],
134 [AC_PREREQ(2.52)dnl
135  ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
136         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
137 AC_SUBST([$1_TRUE])
138 AC_SUBST([$1_FALSE])
139 if $2; then
140   $1_TRUE=
141   $1_FALSE='#'
142 else
143   $1_TRUE='#'
144   $1_FALSE=
145 fi
146 AC_CONFIG_COMMANDS_PRE(
147 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148   AC_MSG_ERROR([conditional "$1" was never defined.
149 Usually this means the macro was only invoked conditionally.])
150 fi])])
151
152 # Do all the work for Automake.                            -*- Autoconf -*-
153
154 # This macro actually does too much some checks are only needed if
155 # your package does certain things.  But this isn't really a big deal.
156
157 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
158 # Free Software Foundation, Inc.
159
160 # This program is free software; you can redistribute it and/or modify
161 # it under the terms of the GNU General Public License as published by
162 # the Free Software Foundation; either version 2, or (at your option)
163 # any later version.
164
165 # This program is distributed in the hope that it will be useful,
166 # but WITHOUT ANY WARRANTY; without even the implied warranty of
167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
168 # GNU General Public License for more details.
169
170 # You should have received a copy of the GNU General Public License
171 # along with this program; if not, write to the Free Software
172 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
173 # 02111-1307, USA.
174
175 # serial 11
176
177 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
178 # AM_INIT_AUTOMAKE([OPTIONS])
179 # -----------------------------------------------
180 # The call with PACKAGE and VERSION arguments is the old style
181 # call (pre autoconf-2.50), which is being phased out.  PACKAGE
182 # and VERSION should now be passed to AC_INIT and removed from
183 # the call to AM_INIT_AUTOMAKE.
184 # We support both call styles for the transition.  After
185 # the next Automake release, Autoconf can make the AC_INIT
186 # arguments mandatory, and then we can depend on a new Autoconf
187 # release and drop the old call support.
188 AC_DEFUN([AM_INIT_AUTOMAKE],
189 [AC_PREREQ([2.58])dnl
190 dnl Autoconf wants to disallow AM_ names.  We explicitly allow
191 dnl the ones we care about.
192 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
193 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
194 AC_REQUIRE([AC_PROG_INSTALL])dnl
195 # test to see if srcdir already configured
196 if test "`cd $srcdir && pwd`" != "`pwd`" &&
197    test -f $srcdir/config.status; then
198   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
199 fi
200
201 # test whether we have cygpath
202 if test -z "$CYGPATH_W"; then
203   if (cygpath --version) >/dev/null 2>/dev/null; then
204     CYGPATH_W='cygpath -w'
205   else
206     CYGPATH_W=echo
207   fi
208 fi
209 AC_SUBST([CYGPATH_W])
210
211 # Define the identity of the package.
212 dnl Distinguish between old-style and new-style calls.
213 m4_ifval([$2],
214 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
215  AC_SUBST([PACKAGE], [$1])dnl
216  AC_SUBST([VERSION], [$2])],
217 [_AM_SET_OPTIONS([$1])dnl
218  AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
219  AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
220
221 _AM_IF_OPTION([no-define],,
222 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
223  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
224
225 # Some tools Automake needs.
226 AC_REQUIRE([AM_SANITY_CHECK])dnl
227 AC_REQUIRE([AC_ARG_PROGRAM])dnl
228 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
229 AM_MISSING_PROG(AUTOCONF, autoconf)
230 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
231 AM_MISSING_PROG(AUTOHEADER, autoheader)
232 AM_MISSING_PROG(MAKEINFO, makeinfo)
233 AM_MISSING_PROG(AMTAR, tar)
234 AM_PROG_INSTALL_SH
235 AM_PROG_INSTALL_STRIP
236 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
237 # We need awk for the "check" target.  The system "awk" is bad on
238 # some platforms.
239 AC_REQUIRE([AC_PROG_AWK])dnl
240 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
241 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
242
243 _AM_IF_OPTION([no-dependencies],,
244 [AC_PROVIDE_IFELSE([AC_PROG_CC],
245                   [_AM_DEPENDENCIES(CC)],
246                   [define([AC_PROG_CC],
247                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
248 AC_PROVIDE_IFELSE([AC_PROG_CXX],
249                   [_AM_DEPENDENCIES(CXX)],
250                   [define([AC_PROG_CXX],
251                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
252 ])
253 ])
254
255
256 # When config.status generates a header, we must update the stamp-h file.
257 # This file resides in the same directory as the config header
258 # that is generated.  The stamp files are numbered to have different names.
259
260 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
261 # loop where config.status creates the headers, so we can generate
262 # our stamp files there.
263 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
264 [# Compute $1's index in $config_headers.
265 _am_stamp_count=1
266 for _am_header in $config_headers :; do
267   case $_am_header in
268     $1 | $1:* )
269       break ;;
270     * )
271       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
272   esac
273 done
274 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
275
276 # AM_PROG_INSTALL_SH
277 # ------------------
278 # Define $install_sh.
279
280 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
281
282 # This program is free software; you can redistribute it and/or modify
283 # it under the terms of the GNU General Public License as published by
284 # the Free Software Foundation; either version 2, or (at your option)
285 # any later version.
286
287 # This program is distributed in the hope that it will be useful,
288 # but WITHOUT ANY WARRANTY; without even the implied warranty of
289 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
290 # GNU General Public License for more details.
291
292 # You should have received a copy of the GNU General Public License
293 # along with this program; if not, write to the Free Software
294 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
295 # 02111-1307, USA.
296
297 AC_DEFUN([AM_PROG_INSTALL_SH],
298 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
299 install_sh=${install_sh-"$am_aux_dir/install-sh"}
300 AC_SUBST(install_sh)])
301
302 #                                                          -*- Autoconf -*-
303 # Copyright (C) 2003  Free Software Foundation, Inc.
304
305 # This program is free software; you can redistribute it and/or modify
306 # it under the terms of the GNU General Public License as published by
307 # the Free Software Foundation; either version 2, or (at your option)
308 # any later version.
309
310 # This program is distributed in the hope that it will be useful,
311 # but WITHOUT ANY WARRANTY; without even the implied warranty of
312 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
313 # GNU General Public License for more details.
314
315 # You should have received a copy of the GNU General Public License
316 # along with this program; if not, write to the Free Software
317 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
318 # 02111-1307, USA.
319
320 # serial 1
321
322 # Check whether the underlying file-system supports filenames
323 # with a leading dot.  For instance MS-DOS doesn't.
324 AC_DEFUN([AM_SET_LEADING_DOT],
325 [rm -rf .tst 2>/dev/null
326 mkdir .tst 2>/dev/null
327 if test -d .tst; then
328   am__leading_dot=.
329 else
330   am__leading_dot=_
331 fi
332 rmdir .tst 2>/dev/null
333 AC_SUBST([am__leading_dot])])
334
335 # Add --enable-maintainer-mode option to configure.
336 # From Jim Meyering
337
338 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
339 # Free Software Foundation, Inc.
340
341 # This program is free software; you can redistribute it and/or modify
342 # it under the terms of the GNU General Public License as published by
343 # the Free Software Foundation; either version 2, or (at your option)
344 # any later version.
345
346 # This program is distributed in the hope that it will be useful,
347 # but WITHOUT ANY WARRANTY; without even the implied warranty of
348 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
349 # GNU General Public License for more details.
350
351 # You should have received a copy of the GNU General Public License
352 # along with this program; if not, write to the Free Software
353 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
354 # 02111-1307, USA.
355
356 # serial 3
357
358 AC_DEFUN([AM_MAINTAINER_MODE],
359 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
360   dnl maintainer-mode is disabled by default
361   AC_ARG_ENABLE(maintainer-mode,
362 [  --enable-maintainer-mode  enable make rules and dependencies not useful
363                           (and sometimes confusing) to the casual installer],
364       USE_MAINTAINER_MODE=$enableval,
365       USE_MAINTAINER_MODE=no)
366   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
367   AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
368   MAINT=$MAINTAINER_MODE_TRUE
369   AC_SUBST(MAINT)dnl
370 ]
371 )
372
373 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
374
375 #  -*- Autoconf -*-
376
377
378 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
379
380 # This program is free software; you can redistribute it and/or modify
381 # it under the terms of the GNU General Public License as published by
382 # the Free Software Foundation; either version 2, or (at your option)
383 # any later version.
384
385 # This program is distributed in the hope that it will be useful,
386 # but WITHOUT ANY WARRANTY; without even the implied warranty of
387 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
388 # GNU General Public License for more details.
389
390 # You should have received a copy of the GNU General Public License
391 # along with this program; if not, write to the Free Software
392 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
393 # 02111-1307, USA.
394
395 # serial 3
396
397 # AM_MISSING_PROG(NAME, PROGRAM)
398 # ------------------------------
399 AC_DEFUN([AM_MISSING_PROG],
400 [AC_REQUIRE([AM_MISSING_HAS_RUN])
401 $1=${$1-"${am_missing_run}$2"}
402 AC_SUBST($1)])
403
404
405 # AM_MISSING_HAS_RUN
406 # ------------------
407 # Define MISSING if not defined so far and test if it supports --run.
408 # If it does, set am_missing_run to use it, otherwise, to nothing.
409 AC_DEFUN([AM_MISSING_HAS_RUN],
410 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
411 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
412 # Use eval to expand $SHELL
413 if eval "$MISSING --run true"; then
414   am_missing_run="$MISSING --run "
415 else
416   am_missing_run=
417   AC_MSG_WARN([`missing' script is too old or missing])
418 fi
419 ])
420
421 # AM_PROG_MKDIR_P
422 # ---------------
423 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
424
425 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
426
427 # This program is free software; you can redistribute it and/or modify
428 # it under the terms of the GNU General Public License as published by
429 # the Free Software Foundation; either version 2, or (at your option)
430 # any later version.
431
432 # This program is distributed in the hope that it will be useful,
433 # but WITHOUT ANY WARRANTY; without even the implied warranty of
434 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
435 # GNU General Public License for more details.
436
437 # You should have received a copy of the GNU General Public License
438 # along with this program; if not, write to the Free Software
439 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
440 # 02111-1307, USA.
441
442 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
443 # created by `make install' are always world readable, even if the
444 # installer happens to have an overly restrictive umask (e.g. 077).
445 # This was a mistake.  There are at least two reasons why we must not
446 # use `-m 0755':
447 #   - it causes special bits like SGID to be ignored,
448 #   - it may be too restrictive (some setups expect 775 directories).
449 #
450 # Do not use -m 0755 and let people choose whatever they expect by
451 # setting umask.
452 #
453 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
454 # Some implementations (such as Solaris 8's) are not thread-safe: if a
455 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
456 # concurrently, both version can detect that a/ is missing, but only
457 # one can create it and the other will error out.  Consequently we
458 # restrict ourselves to GNU make (using the --version option ensures
459 # this.)
460 AC_DEFUN([AM_PROG_MKDIR_P],
461 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
462   # Keeping the `.' argument allows $(mkdir_p) to be used without
463   # argument.  Indeed, we sometimes output rules like
464   #   $(mkdir_p) $(somedir)
465   # where $(somedir) is conditionally defined.
466   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
467   # expensive solution, as it forces Make to start a sub-shell.)
468   mkdir_p='mkdir -p -- .'
469 else
470   # On NextStep and OpenStep, the `mkdir' command does not
471   # recognize any option.  It will interpret all options as
472   # directories to create, and then abort because `.' already
473   # exists.
474   for d in ./-p ./--version;
475   do
476     test -d $d && rmdir $d
477   done
478   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
479   if test -f "$ac_aux_dir/mkinstalldirs"; then
480     mkdir_p='$(mkinstalldirs)'
481   else
482     mkdir_p='$(install_sh) -d'
483   fi
484 fi
485 AC_SUBST([mkdir_p])])
486
487 # Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004
488 # Free Software Foundation, Inc.
489
490 # This program is free software; you can redistribute it and/or modify
491 # it under the terms of the GNU General Public License as published by
492 # the Free Software Foundation; either version 2, or (at your option)
493 # any later version.
494
495 # This program is distributed in the hope that it will be useful,
496 # but WITHOUT ANY WARRANTY; without even the implied warranty of
497 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
498 # GNU General Public License for more details.
499
500 # You should have received a copy of the GNU General Public License
501 # along with this program; if not, write to the Free Software
502 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
503 # 02111-1307, USA.
504
505 # serial 4
506
507 # AM_ENABLE_MULTILIB([MAKEFILE], [REL-TO-TOP-SRCDIR])
508 # ---------------------------------------------------
509 # Add --enable-multilib to configure.
510 AC_DEFUN([AM_ENABLE_MULTILIB],
511 [# Default to --enable-multilib
512 AC_ARG_ENABLE(multilib,
513 [  --enable-multilib       build many library versions (default)],
514 [case "$enableval" in
515   yes) multilib=yes ;;
516   no)  multilib=no ;;
517   *)   AC_MSG_ERROR([bad value $enableval for multilib option]) ;;
518  esac],
519               [multilib=yes])
520
521 # We may get other options which we leave undocumented:
522 # --with-target-subdir, --with-multisrctop, --with-multisubdir
523 # See config-ml.in if you want the gory details.
524
525 if test "$srcdir" = "."; then
526   if test "$with_target_subdir" != "."; then
527     multi_basedir="$srcdir/$with_multisrctop../$2"
528   else
529     multi_basedir="$srcdir/$with_multisrctop$2"
530   fi
531 else
532   multi_basedir="$srcdir/$2"
533 fi
534 AC_SUBST(multi_basedir)
535
536 AC_OUTPUT_COMMANDS([
537 # Only add multilib support code if we just rebuilt the top-level
538 # Makefile.
539 case " $CONFIG_FILES " in
540  *" ]m4_default([$1],Makefile)[ "*)
541    ac_file=]m4_default([$1],Makefile)[ . ${multi_basedir}/config-ml.in
542    ;;
543 esac],
544                    [
545 srcdir="$srcdir"
546 host="$host"
547 target="$target"
548 with_multisubdir="$with_multisubdir"
549 with_multisrctop="$with_multisrctop"
550 with_target_subdir="$with_target_subdir"
551 ac_configure_args="${multilib_arg} ${ac_configure_args}"
552 multi_basedir="$multi_basedir"
553 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
554 CC="$CC"])])dnl
555
556 # Helper functions for option handling.                    -*- Autoconf -*-
557
558 # Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
559
560 # This program is free software; you can redistribute it and/or modify
561 # it under the terms of the GNU General Public License as published by
562 # the Free Software Foundation; either version 2, or (at your option)
563 # any later version.
564
565 # This program is distributed in the hope that it will be useful,
566 # but WITHOUT ANY WARRANTY; without even the implied warranty of
567 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
568 # GNU General Public License for more details.
569
570 # You should have received a copy of the GNU General Public License
571 # along with this program; if not, write to the Free Software
572 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
573 # 02111-1307, USA.
574
575 # serial 2
576
577 # _AM_MANGLE_OPTION(NAME)
578 # -----------------------
579 AC_DEFUN([_AM_MANGLE_OPTION],
580 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
581
582 # _AM_SET_OPTION(NAME)
583 # ------------------------------
584 # Set option NAME.  Presently that only means defining a flag for this option.
585 AC_DEFUN([_AM_SET_OPTION],
586 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
587
588 # _AM_SET_OPTIONS(OPTIONS)
589 # ----------------------------------
590 # OPTIONS is a space-separated list of Automake options.
591 AC_DEFUN([_AM_SET_OPTIONS],
592 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
593
594 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
595 # -------------------------------------------
596 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
597 AC_DEFUN([_AM_IF_OPTION],
598 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
599
600 #
601 # Check to make sure that the build environment is sane.
602 #
603
604 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
605
606 # This program is free software; you can redistribute it and/or modify
607 # it under the terms of the GNU General Public License as published by
608 # the Free Software Foundation; either version 2, or (at your option)
609 # any later version.
610
611 # This program is distributed in the hope that it will be useful,
612 # but WITHOUT ANY WARRANTY; without even the implied warranty of
613 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
614 # GNU General Public License for more details.
615
616 # You should have received a copy of the GNU General Public License
617 # along with this program; if not, write to the Free Software
618 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
619 # 02111-1307, USA.
620
621 # serial 3
622
623 # AM_SANITY_CHECK
624 # ---------------
625 AC_DEFUN([AM_SANITY_CHECK],
626 [AC_MSG_CHECKING([whether build environment is sane])
627 # Just in case
628 sleep 1
629 echo timestamp > conftest.file
630 # Do `set' in a subshell so we don't clobber the current shell's
631 # arguments.  Must try -L first in case configure is actually a
632 # symlink; some systems play weird games with the mod time of symlinks
633 # (eg FreeBSD returns the mod time of the symlink's containing
634 # directory).
635 if (
636    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
637    if test "$[*]" = "X"; then
638       # -L didn't work.
639       set X `ls -t $srcdir/configure conftest.file`
640    fi
641    rm -f conftest.file
642    if test "$[*]" != "X $srcdir/configure conftest.file" \
643       && test "$[*]" != "X conftest.file $srcdir/configure"; then
644
645       # If neither matched, then we have a broken ls.  This can happen
646       # if, for instance, CONFIG_SHELL is bash and it inherits a
647       # broken ls alias from the environment.  This has actually
648       # happened.  Such a system could not be considered "sane".
649       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
650 alias in your environment])
651    fi
652
653    test "$[2]" = conftest.file
654    )
655 then
656    # Ok.
657    :
658 else
659    AC_MSG_ERROR([newly created file is older than distributed files!
660 Check your system clock])
661 fi
662 AC_MSG_RESULT(yes)])
663
664 # AM_PROG_INSTALL_STRIP
665
666 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
667
668 # This program is free software; you can redistribute it and/or modify
669 # it under the terms of the GNU General Public License as published by
670 # the Free Software Foundation; either version 2, or (at your option)
671 # any later version.
672
673 # This program is distributed in the hope that it will be useful,
674 # but WITHOUT ANY WARRANTY; without even the implied warranty of
675 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
676 # GNU General Public License for more details.
677
678 # You should have received a copy of the GNU General Public License
679 # along with this program; if not, write to the Free Software
680 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
681 # 02111-1307, USA.
682
683 # One issue with vendor `install' (even GNU) is that you can't
684 # specify the program used to strip binaries.  This is especially
685 # annoying in cross-compiling environments, where the build's strip
686 # is unlikely to handle the host's binaries.
687 # Fortunately install-sh will honor a STRIPPROG variable, so we
688 # always use install-sh in `make install-strip', and initialize
689 # STRIPPROG with the value of the STRIP variable (set by the user).
690 AC_DEFUN([AM_PROG_INSTALL_STRIP],
691 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
692 # Installed binaries are usually stripped using `strip' when the user
693 # run `make install-strip'.  However `strip' might not be the right
694 # tool to use in cross-compilation environments, therefore Automake
695 # will honor the `STRIP' environment variable to overrule this program.
696 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
697 if test "$cross_compiling" != no; then
698   AC_CHECK_TOOL([STRIP], [strip], :)
699 fi
700 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
701 AC_SUBST([INSTALL_STRIP_PROGRAM])])
702
703 m4_include([acinclude.m4])