OSDN Git Service

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