OSDN Git Service

* testsuite/lib/libstdc++.exp (libstdc++_init): Search the path
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / aclocal.m4
1 # generated automatically by aclocal 1.9.4 -*- 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.9"])
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.9.4])])
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, 2004 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, 2004
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_PROG_INSTALL_SH
234 AM_PROG_INSTALL_STRIP
235 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
236 # We need awk for the "check" target.  The system "awk" is bad on
237 # some platforms.
238 AC_REQUIRE([AC_PROG_AWK])dnl
239 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
240 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
241 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
242               [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
243                              [_AM_PROG_TAR([v7])])])
244 _AM_IF_OPTION([no-dependencies],,
245 [AC_PROVIDE_IFELSE([AC_PROG_CC],
246                   [_AM_DEPENDENCIES(CC)],
247                   [define([AC_PROG_CC],
248                           defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
249 AC_PROVIDE_IFELSE([AC_PROG_CXX],
250                   [_AM_DEPENDENCIES(CXX)],
251                   [define([AC_PROG_CXX],
252                           defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
253 ])
254 ])
255
256
257 # When config.status generates a header, we must update the stamp-h file.
258 # This file resides in the same directory as the config header
259 # that is generated.  The stamp files are numbered to have different names.
260
261 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
262 # loop where config.status creates the headers, so we can generate
263 # our stamp files there.
264 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
265 [# Compute $1's index in $config_headers.
266 _am_stamp_count=1
267 for _am_header in $config_headers :; do
268   case $_am_header in
269     $1 | $1:* )
270       break ;;
271     * )
272       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
273   esac
274 done
275 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
276
277 # AM_PROG_INSTALL_SH
278 # ------------------
279 # Define $install_sh.
280
281 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
282
283 # This program is free software; you can redistribute it and/or modify
284 # it under the terms of the GNU General Public License as published by
285 # the Free Software Foundation; either version 2, or (at your option)
286 # any later version.
287
288 # This program is distributed in the hope that it will be useful,
289 # but WITHOUT ANY WARRANTY; without even the implied warranty of
290 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
291 # GNU General Public License for more details.
292
293 # You should have received a copy of the GNU General Public License
294 # along with this program; if not, write to the Free Software
295 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
296 # 02111-1307, USA.
297
298 AC_DEFUN([AM_PROG_INSTALL_SH],
299 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
300 install_sh=${install_sh-"$am_aux_dir/install-sh"}
301 AC_SUBST(install_sh)])
302
303 #                                                          -*- Autoconf -*-
304 # Copyright (C) 2003  Free Software Foundation, Inc.
305
306 # This program is free software; you can redistribute it and/or modify
307 # it under the terms of the GNU General Public License as published by
308 # the Free Software Foundation; either version 2, or (at your option)
309 # any later version.
310
311 # This program is distributed in the hope that it will be useful,
312 # but WITHOUT ANY WARRANTY; without even the implied warranty of
313 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
314 # GNU General Public License for more details.
315
316 # You should have received a copy of the GNU General Public License
317 # along with this program; if not, write to the Free Software
318 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
319 # 02111-1307, USA.
320
321 # serial 1
322
323 # Check whether the underlying file-system supports filenames
324 # with a leading dot.  For instance MS-DOS doesn't.
325 AC_DEFUN([AM_SET_LEADING_DOT],
326 [rm -rf .tst 2>/dev/null
327 mkdir .tst 2>/dev/null
328 if test -d .tst; then
329   am__leading_dot=.
330 else
331   am__leading_dot=_
332 fi
333 rmdir .tst 2>/dev/null
334 AC_SUBST([am__leading_dot])])
335
336 # Add --enable-maintainer-mode option to configure.
337 # From Jim Meyering
338
339 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
340 # Free Software Foundation, Inc.
341
342 # This program is free software; you can redistribute it and/or modify
343 # it under the terms of the GNU General Public License as published by
344 # the Free Software Foundation; either version 2, or (at your option)
345 # any later version.
346
347 # This program is distributed in the hope that it will be useful,
348 # but WITHOUT ANY WARRANTY; without even the implied warranty of
349 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
350 # GNU General Public License for more details.
351
352 # You should have received a copy of the GNU General Public License
353 # along with this program; if not, write to the Free Software
354 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
355 # 02111-1307, USA.
356
357 # serial 3
358
359 AC_DEFUN([AM_MAINTAINER_MODE],
360 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
361   dnl maintainer-mode is disabled by default
362   AC_ARG_ENABLE(maintainer-mode,
363 [  --enable-maintainer-mode  enable make rules and dependencies not useful
364                           (and sometimes confusing) to the casual installer],
365       USE_MAINTAINER_MODE=$enableval,
366       USE_MAINTAINER_MODE=no)
367   AC_MSG_RESULT([$USE_MAINTAINER_MODE])
368   AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
369   MAINT=$MAINTAINER_MODE_TRUE
370   AC_SUBST(MAINT)dnl
371 ]
372 )
373
374 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
375
376 #  -*- Autoconf -*-
377
378
379 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
380
381 # This program is free software; you can redistribute it and/or modify
382 # it under the terms of the GNU General Public License as published by
383 # the Free Software Foundation; either version 2, or (at your option)
384 # any later version.
385
386 # This program is distributed in the hope that it will be useful,
387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
389 # GNU General Public License for more details.
390
391 # You should have received a copy of the GNU General Public License
392 # along with this program; if not, write to the Free Software
393 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
394 # 02111-1307, USA.
395
396 # serial 3
397
398 # AM_MISSING_PROG(NAME, PROGRAM)
399 # ------------------------------
400 AC_DEFUN([AM_MISSING_PROG],
401 [AC_REQUIRE([AM_MISSING_HAS_RUN])
402 $1=${$1-"${am_missing_run}$2"}
403 AC_SUBST($1)])
404
405
406 # AM_MISSING_HAS_RUN
407 # ------------------
408 # Define MISSING if not defined so far and test if it supports --run.
409 # If it does, set am_missing_run to use it, otherwise, to nothing.
410 AC_DEFUN([AM_MISSING_HAS_RUN],
411 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
412 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
413 # Use eval to expand $SHELL
414 if eval "$MISSING --run true"; then
415   am_missing_run="$MISSING --run "
416 else
417   am_missing_run=
418   AC_MSG_WARN([`missing' script is too old or missing])
419 fi
420 ])
421
422 # AM_PROG_MKDIR_P
423 # ---------------
424 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
425
426 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
427
428 # This program is free software; you can redistribute it and/or modify
429 # it under the terms of the GNU General Public License as published by
430 # the Free Software Foundation; either version 2, or (at your option)
431 # any later version.
432
433 # This program is distributed in the hope that it will be useful,
434 # but WITHOUT ANY WARRANTY; without even the implied warranty of
435 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
436 # GNU General Public License for more details.
437
438 # You should have received a copy of the GNU General Public License
439 # along with this program; if not, write to the Free Software
440 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
441 # 02111-1307, USA.
442
443 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
444 # created by `make install' are always world readable, even if the
445 # installer happens to have an overly restrictive umask (e.g. 077).
446 # This was a mistake.  There are at least two reasons why we must not
447 # use `-m 0755':
448 #   - it causes special bits like SGID to be ignored,
449 #   - it may be too restrictive (some setups expect 775 directories).
450 #
451 # Do not use -m 0755 and let people choose whatever they expect by
452 # setting umask.
453 #
454 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
455 # Some implementations (such as Solaris 8's) are not thread-safe: if a
456 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
457 # concurrently, both version can detect that a/ is missing, but only
458 # one can create it and the other will error out.  Consequently we
459 # restrict ourselves to GNU make (using the --version option ensures
460 # this.)
461 AC_DEFUN([AM_PROG_MKDIR_P],
462 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
463   # We used to keeping the `.' as first argument, in order to
464   # allow $(mkdir_p) to be used without argument.  As in
465   #   $(mkdir_p) $(somedir)
466   # where $(somedir) is conditionally defined.  However this is wrong
467   # for two reasons:
468   #  1. if the package is installed by a user who cannot write `.'
469   #     make install will fail,
470   #  2. the above comment should most certainly read
471   #     $(mkdir_p) $(DESTDIR)$(somedir)
472   #     so it does not work when $(somedir) is undefined and
473   #     $(DESTDIR) is not.
474   #  To support the latter case, we have to write
475   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
476   #  so the `.' trick is pointless.
477   mkdir_p='mkdir -p --'
478 else
479   # On NextStep and OpenStep, the `mkdir' command does not
480   # recognize any option.  It will interpret all options as
481   # directories to create, and then abort because `.' already
482   # exists.
483   for d in ./-p ./--version;
484   do
485     test -d $d && rmdir $d
486   done
487   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
488   if test -f "$ac_aux_dir/mkinstalldirs"; then
489     mkdir_p='$(mkinstalldirs)'
490   else
491     mkdir_p='$(install_sh) -d'
492   fi
493 fi
494 AC_SUBST([mkdir_p])])
495
496 # Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004
497 # Free Software Foundation, Inc.
498
499 # This program is free software; you can redistribute it and/or modify
500 # it under the terms of the GNU General Public License as published by
501 # the Free Software Foundation; either version 2, or (at your option)
502 # any later version.
503
504 # This program is distributed in the hope that it will be useful,
505 # but WITHOUT ANY WARRANTY; without even the implied warranty of
506 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
507 # GNU General Public License for more details.
508
509 # You should have received a copy of the GNU General Public License
510 # along with this program; if not, write to the Free Software
511 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
512 # 02111-1307, USA.
513
514 # serial 4
515
516 # AM_ENABLE_MULTILIB([MAKEFILE], [REL-TO-TOP-SRCDIR])
517 # ---------------------------------------------------
518 # Add --enable-multilib to configure.
519 AC_DEFUN([AM_ENABLE_MULTILIB],
520 [# Default to --enable-multilib
521 AC_ARG_ENABLE(multilib,
522 [  --enable-multilib       build many library versions (default)],
523 [case "$enableval" in
524   yes) multilib=yes ;;
525   no)  multilib=no ;;
526   *)   AC_MSG_ERROR([bad value $enableval for multilib option]) ;;
527  esac],
528               [multilib=yes])
529
530 # We may get other options which we leave undocumented:
531 # --with-target-subdir, --with-multisrctop, --with-multisubdir
532 # See config-ml.in if you want the gory details.
533
534 if test "$srcdir" = "."; then
535   if test "$with_target_subdir" != "."; then
536     multi_basedir="$srcdir/$with_multisrctop../$2"
537   else
538     multi_basedir="$srcdir/$with_multisrctop$2"
539   fi
540 else
541   multi_basedir="$srcdir/$2"
542 fi
543 AC_SUBST(multi_basedir)
544
545 AC_OUTPUT_COMMANDS([
546 # Only add multilib support code if we just rebuilt the top-level
547 # Makefile.
548 case " $CONFIG_FILES " in
549  *" ]m4_default([$1],Makefile)[ "*)
550    ac_file=]m4_default([$1],Makefile)[ . ${multi_basedir}/config-ml.in
551    ;;
552 esac],
553                    [
554 srcdir="$srcdir"
555 host="$host"
556 target="$target"
557 with_multisubdir="$with_multisubdir"
558 with_multisrctop="$with_multisrctop"
559 with_target_subdir="$with_target_subdir"
560 ac_configure_args="${multilib_arg} ${ac_configure_args}"
561 multi_basedir="$multi_basedir"
562 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
563 CC="$CC"])])dnl
564
565 # Helper functions for option handling.                    -*- Autoconf -*-
566
567 # Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
568
569 # This program is free software; you can redistribute it and/or modify
570 # it under the terms of the GNU General Public License as published by
571 # the Free Software Foundation; either version 2, or (at your option)
572 # any later version.
573
574 # This program is distributed in the hope that it will be useful,
575 # but WITHOUT ANY WARRANTY; without even the implied warranty of
576 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
577 # GNU General Public License for more details.
578
579 # You should have received a copy of the GNU General Public License
580 # along with this program; if not, write to the Free Software
581 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
582 # 02111-1307, USA.
583
584 # serial 2
585
586 # _AM_MANGLE_OPTION(NAME)
587 # -----------------------
588 AC_DEFUN([_AM_MANGLE_OPTION],
589 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
590
591 # _AM_SET_OPTION(NAME)
592 # ------------------------------
593 # Set option NAME.  Presently that only means defining a flag for this option.
594 AC_DEFUN([_AM_SET_OPTION],
595 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
596
597 # _AM_SET_OPTIONS(OPTIONS)
598 # ----------------------------------
599 # OPTIONS is a space-separated list of Automake options.
600 AC_DEFUN([_AM_SET_OPTIONS],
601 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
602
603 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
604 # -------------------------------------------
605 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
606 AC_DEFUN([_AM_IF_OPTION],
607 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
608
609 #
610 # Check to make sure that the build environment is sane.
611 #
612
613 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
614
615 # This program is free software; you can redistribute it and/or modify
616 # it under the terms of the GNU General Public License as published by
617 # the Free Software Foundation; either version 2, or (at your option)
618 # any later version.
619
620 # This program is distributed in the hope that it will be useful,
621 # but WITHOUT ANY WARRANTY; without even the implied warranty of
622 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
623 # GNU General Public License for more details.
624
625 # You should have received a copy of the GNU General Public License
626 # along with this program; if not, write to the Free Software
627 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
628 # 02111-1307, USA.
629
630 # serial 3
631
632 # AM_SANITY_CHECK
633 # ---------------
634 AC_DEFUN([AM_SANITY_CHECK],
635 [AC_MSG_CHECKING([whether build environment is sane])
636 # Just in case
637 sleep 1
638 echo timestamp > conftest.file
639 # Do `set' in a subshell so we don't clobber the current shell's
640 # arguments.  Must try -L first in case configure is actually a
641 # symlink; some systems play weird games with the mod time of symlinks
642 # (eg FreeBSD returns the mod time of the symlink's containing
643 # directory).
644 if (
645    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
646    if test "$[*]" = "X"; then
647       # -L didn't work.
648       set X `ls -t $srcdir/configure conftest.file`
649    fi
650    rm -f conftest.file
651    if test "$[*]" != "X $srcdir/configure conftest.file" \
652       && test "$[*]" != "X conftest.file $srcdir/configure"; then
653
654       # If neither matched, then we have a broken ls.  This can happen
655       # if, for instance, CONFIG_SHELL is bash and it inherits a
656       # broken ls alias from the environment.  This has actually
657       # happened.  Such a system could not be considered "sane".
658       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
659 alias in your environment])
660    fi
661
662    test "$[2]" = conftest.file
663    )
664 then
665    # Ok.
666    :
667 else
668    AC_MSG_ERROR([newly created file is older than distributed files!
669 Check your system clock])
670 fi
671 AC_MSG_RESULT(yes)])
672
673 # AM_PROG_INSTALL_STRIP
674
675 # Copyright (C) 2001, 2003 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 # One issue with vendor `install' (even GNU) is that you can't
693 # specify the program used to strip binaries.  This is especially
694 # annoying in cross-compiling environments, where the build's strip
695 # is unlikely to handle the host's binaries.
696 # Fortunately install-sh will honor a STRIPPROG variable, so we
697 # always use install-sh in `make install-strip', and initialize
698 # STRIPPROG with the value of the STRIP variable (set by the user).
699 AC_DEFUN([AM_PROG_INSTALL_STRIP],
700 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
701 # Installed binaries are usually stripped using `strip' when the user
702 # run `make install-strip'.  However `strip' might not be the right
703 # tool to use in cross-compilation environments, therefore Automake
704 # will honor the `STRIP' environment variable to overrule this program.
705 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
706 if test "$cross_compiling" != no; then
707   AC_CHECK_TOOL([STRIP], [strip], :)
708 fi
709 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
710 AC_SUBST([INSTALL_STRIP_PROGRAM])])
711
712 # Check how to create a tarball.                            -*- Autoconf -*-
713
714 # Copyright (C) 2004  Free Software Foundation, Inc.
715
716 # This program is free software; you can redistribute it and/or modify
717 # it under the terms of the GNU General Public License as published by
718 # the Free Software Foundation; either version 2, or (at your option)
719 # any later version.
720
721 # This program is distributed in the hope that it will be useful,
722 # but WITHOUT ANY WARRANTY; without even the implied warranty of
723 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
724 # GNU General Public License for more details.
725
726 # You should have received a copy of the GNU General Public License
727 # along with this program; if not, write to the Free Software
728 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
729 # 02111-1307, USA.
730
731 # serial 1
732
733
734 # _AM_PROG_TAR(FORMAT)
735 # --------------------
736 # Check how to create a tarball in format FORMAT.
737 # FORMAT should be one of `v7', `ustar', or `pax'.
738 #
739 # Substitute a variable $(am__tar) that is a command
740 # writing to stdout a FORMAT-tarball containing the directory
741 # $tardir.
742 #     tardir=directory && $(am__tar) > result.tar
743 #
744 # Substitute a variable $(am__untar) that extract such
745 # a tarball read from stdin.
746 #     $(am__untar) < result.tar
747 AC_DEFUN([_AM_PROG_TAR],
748 [# Always define AMTAR for backward compatibility.
749 AM_MISSING_PROG([AMTAR], [tar])
750 m4_if([$1], [v7],
751      [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
752      [m4_case([$1], [ustar],, [pax],,
753               [m4_fatal([Unknown tar format])])
754 AC_MSG_CHECKING([how to create a $1 tar archive])
755 # Loop over all known methods to create a tar archive until one works.
756 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
757 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
758 # Do not fold the above two line into one, because Tru64 sh and
759 # Solaris sh will not grok spaces in the rhs of `-'.
760 for _am_tool in $_am_tools
761 do
762   case $_am_tool in
763   gnutar)
764     for _am_tar in tar gnutar gtar;
765     do
766       AM_RUN_LOG([$_am_tar --version]) && break
767     done
768     am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
769     am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
770     am__untar="$_am_tar -xf -"
771     ;;
772   plaintar)
773     # Must skip GNU tar: if it does not support --format= it doesn't create
774     # ustar tarball either.
775     (tar --version) >/dev/null 2>&1 && continue
776     am__tar='tar chf - "$$tardir"'
777     am__tar_='tar chf - "$tardir"'
778     am__untar='tar xf -'
779     ;;
780   pax)
781     am__tar='pax -L -x $1 -w "$$tardir"'
782     am__tar_='pax -L -x $1 -w "$tardir"'
783     am__untar='pax -r'
784     ;;
785   cpio)
786     am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
787     am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
788     am__untar='cpio -i -H $1 -d'
789     ;;
790   none)
791     am__tar=false
792     am__tar_=false
793     am__untar=false
794     ;;
795   esac
796
797   # If the value was cached, stop now.  We just wanted to have am__tar
798   # and am__untar set.
799   test -n "${am_cv_prog_tar_$1}" && break
800
801   # tar/untar a dummy directory, and stop if the command works
802   rm -rf conftest.dir
803   mkdir conftest.dir
804   echo GrepMe > conftest.dir/file
805   AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
806   rm -rf conftest.dir
807   if test -s conftest.tar; then
808     AM_RUN_LOG([$am__untar <conftest.tar])
809     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
810   fi
811 done
812 rm -rf conftest.dir
813
814 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
815 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
816 AC_SUBST([am__tar])
817 AC_SUBST([am__untar])
818 ]) # _AM_PROG_TAR
819
820 m4_include([acinclude.m4])