OSDN Git Service

2004-03-06 Paolo Carlini <pcarlini@suse.de>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / aclocal.m4
1 # generated automatically by aclocal 1.8.2 -*- 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.2])])
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 AC_DEFUN([AM_PROG_MKDIR_P],
453 [if mkdir -p -- . 2>/dev/null; then
454   # Keeping the `.' argument allows $(mkdir_p) to be used without
455   # argument.  Indeed, we sometimes output rules like
456   #   $(mkdir_p) $(somedir)
457   # where $(somedir) is conditionally defined.
458   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
459   # expensive solution, as it forces Make to start a sub-shell.)
460   mkdir_p='mkdir -p -- .'
461 else
462   # On NextStep and OpenStep, the `mkdir' command does not
463   # recognize any option.  It will interpret all options as
464   # directories to create, and then abort because `.' already
465   # exists.
466   for d in ./-p ./--;
467   do
468     test -d $d && rmdir $d
469   done
470   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
471   if test -f "$ac_aux_dir/mkinstalldirs"; then
472     mkdir_p='$(mkinstalldirs)'
473   else
474     mkdir_p='$(install_sh) -d'
475   fi
476 fi
477 AC_SUBST([mkdir_p])])
478
479 # Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004
480 # Free Software Foundation, Inc.
481
482 # This program is free software; you can redistribute it and/or modify
483 # it under the terms of the GNU General Public License as published by
484 # the Free Software Foundation; either version 2, or (at your option)
485 # any later version.
486
487 # This program is distributed in the hope that it will be useful,
488 # but WITHOUT ANY WARRANTY; without even the implied warranty of
489 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
490 # GNU General Public License for more details.
491
492 # You should have received a copy of the GNU General Public License
493 # along with this program; if not, write to the Free Software
494 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
495 # 02111-1307, USA.
496
497 # serial 4
498
499 # AM_ENABLE_MULTILIB([MAKEFILE], [REL-TO-TOP-SRCDIR])
500 # ---------------------------------------------------
501 # Add --enable-multilib to configure.
502 AC_DEFUN([AM_ENABLE_MULTILIB],
503 [# Default to --enable-multilib
504 AC_ARG_ENABLE(multilib,
505 [  --enable-multilib       build many library versions (default)],
506 [case "$enableval" in
507   yes) multilib=yes ;;
508   no)  multilib=no ;;
509   *)   AC_MSG_ERROR([bad value $enableval for multilib option]) ;;
510  esac],
511               [multilib=yes])
512
513 # We may get other options which we leave undocumented:
514 # --with-target-subdir, --with-multisrctop, --with-multisubdir
515 # See config-ml.in if you want the gory details.
516
517 if test "$srcdir" = "."; then
518   if test "$with_target_subdir" != "."; then
519     multi_basedir="$srcdir/$with_multisrctop../$2"
520   else
521     multi_basedir="$srcdir/$with_multisrctop$2"
522   fi
523 else
524   multi_basedir="$srcdir/$2"
525 fi
526 AC_SUBST(multi_basedir)
527
528 AC_OUTPUT_COMMANDS([
529 # Only add multilib support code if we just rebuilt the top-level
530 # Makefile.
531 case " $CONFIG_FILES " in
532  *" ]m4_default([$1],Makefile)[ "*)
533    ac_file=]m4_default([$1],Makefile)[ . ${multi_basedir}/config-ml.in
534    ;;
535 esac],
536                    [
537 srcdir="$srcdir"
538 host="$host"
539 target="$target"
540 with_multisubdir="$with_multisubdir"
541 with_multisrctop="$with_multisrctop"
542 with_target_subdir="$with_target_subdir"
543 ac_configure_args="${multilib_arg} ${ac_configure_args}"
544 multi_basedir="$multi_basedir"
545 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
546 CC="$CC"])])dnl
547
548 # Helper functions for option handling.                    -*- Autoconf -*-
549
550 # Copyright (C) 2001, 2002, 2003  Free Software Foundation, Inc.
551
552 # This program is free software; you can redistribute it and/or modify
553 # it under the terms of the GNU General Public License as published by
554 # the Free Software Foundation; either version 2, or (at your option)
555 # any later version.
556
557 # This program is distributed in the hope that it will be useful,
558 # but WITHOUT ANY WARRANTY; without even the implied warranty of
559 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
560 # GNU General Public License for more details.
561
562 # You should have received a copy of the GNU General Public License
563 # along with this program; if not, write to the Free Software
564 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
565 # 02111-1307, USA.
566
567 # serial 2
568
569 # _AM_MANGLE_OPTION(NAME)
570 # -----------------------
571 AC_DEFUN([_AM_MANGLE_OPTION],
572 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
573
574 # _AM_SET_OPTION(NAME)
575 # ------------------------------
576 # Set option NAME.  Presently that only means defining a flag for this option.
577 AC_DEFUN([_AM_SET_OPTION],
578 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
579
580 # _AM_SET_OPTIONS(OPTIONS)
581 # ----------------------------------
582 # OPTIONS is a space-separated list of Automake options.
583 AC_DEFUN([_AM_SET_OPTIONS],
584 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
585
586 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
587 # -------------------------------------------
588 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
589 AC_DEFUN([_AM_IF_OPTION],
590 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
591
592 #
593 # Check to make sure that the build environment is sane.
594 #
595
596 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
597
598 # This program is free software; you can redistribute it and/or modify
599 # it under the terms of the GNU General Public License as published by
600 # the Free Software Foundation; either version 2, or (at your option)
601 # any later version.
602
603 # This program is distributed in the hope that it will be useful,
604 # but WITHOUT ANY WARRANTY; without even the implied warranty of
605 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
606 # GNU General Public License for more details.
607
608 # You should have received a copy of the GNU General Public License
609 # along with this program; if not, write to the Free Software
610 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
611 # 02111-1307, USA.
612
613 # serial 3
614
615 # AM_SANITY_CHECK
616 # ---------------
617 AC_DEFUN([AM_SANITY_CHECK],
618 [AC_MSG_CHECKING([whether build environment is sane])
619 # Just in case
620 sleep 1
621 echo timestamp > conftest.file
622 # Do `set' in a subshell so we don't clobber the current shell's
623 # arguments.  Must try -L first in case configure is actually a
624 # symlink; some systems play weird games with the mod time of symlinks
625 # (eg FreeBSD returns the mod time of the symlink's containing
626 # directory).
627 if (
628    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
629    if test "$[*]" = "X"; then
630       # -L didn't work.
631       set X `ls -t $srcdir/configure conftest.file`
632    fi
633    rm -f conftest.file
634    if test "$[*]" != "X $srcdir/configure conftest.file" \
635       && test "$[*]" != "X conftest.file $srcdir/configure"; then
636
637       # If neither matched, then we have a broken ls.  This can happen
638       # if, for instance, CONFIG_SHELL is bash and it inherits a
639       # broken ls alias from the environment.  This has actually
640       # happened.  Such a system could not be considered "sane".
641       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
642 alias in your environment])
643    fi
644
645    test "$[2]" = conftest.file
646    )
647 then
648    # Ok.
649    :
650 else
651    AC_MSG_ERROR([newly created file is older than distributed files!
652 Check your system clock])
653 fi
654 AC_MSG_RESULT(yes)])
655
656 # AM_PROG_INSTALL_STRIP
657
658 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
659
660 # This program is free software; you can redistribute it and/or modify
661 # it under the terms of the GNU General Public License as published by
662 # the Free Software Foundation; either version 2, or (at your option)
663 # any later version.
664
665 # This program is distributed in the hope that it will be useful,
666 # but WITHOUT ANY WARRANTY; without even the implied warranty of
667 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
668 # GNU General Public License for more details.
669
670 # You should have received a copy of the GNU General Public License
671 # along with this program; if not, write to the Free Software
672 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
673 # 02111-1307, USA.
674
675 # One issue with vendor `install' (even GNU) is that you can't
676 # specify the program used to strip binaries.  This is especially
677 # annoying in cross-compiling environments, where the build's strip
678 # is unlikely to handle the host's binaries.
679 # Fortunately install-sh will honor a STRIPPROG variable, so we
680 # always use install-sh in `make install-strip', and initialize
681 # STRIPPROG with the value of the STRIP variable (set by the user).
682 AC_DEFUN([AM_PROG_INSTALL_STRIP],
683 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
684 # Installed binaries are usually stripped using `strip' when the user
685 # run `make install-strip'.  However `strip' might not be the right
686 # tool to use in cross-compilation environments, therefore Automake
687 # will honor the `STRIP' environment variable to overrule this program.
688 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
689 if test "$cross_compiling" != no; then
690   AC_CHECK_TOOL([STRIP], [strip], :)
691 fi
692 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
693 AC_SUBST([INSTALL_STRIP_PROGRAM])])
694
695 m4_include([acinclude.m4])