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