1 # generated automatically by aclocal 1.9.3 -*- Autoconf -*-
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.
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
16 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
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)
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA
33 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
34 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
35 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
37 # Of course, Automake must honor this variable whenever it calls a
38 # tool from the auxiliary directory. The problem is that $srcdir (and
39 # therefore $ac_aux_dir as well) can be either absolute or relative,
40 # depending on how configure is run. This is pretty annoying, since
41 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
42 # source directory, any form will work fine, but in subdirectories a
43 # relative path needs to be adjusted first.
46 # fails when called from a subdirectory if $ac_aux_dir is relative
47 # $top_srcdir/$ac_aux_dir/missing
48 # fails if $ac_aux_dir is absolute,
49 # fails when called from a subdirectory in a VPATH build with
50 # a relative $ac_aux_dir
52 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
53 # are both prefixed by $srcdir. In an in-source build this is usually
54 # harmless because $srcdir is `.', but things will broke when you
55 # start a VPATH build or use an absolute $srcdir.
57 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
58 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
59 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
60 # and then we would define $MISSING as
61 # MISSING="\${SHELL} $am_aux_dir/missing"
62 # This will work as long as MISSING is not called from configure, because
63 # unfortunately $(top_srcdir) has no meaning in configure.
64 # However there are other variables, like CC, which are often used in
65 # configure, and could therefore not use this "fixed" $ac_aux_dir.
67 # Another solution, used here, is to always expand $ac_aux_dir to an
68 # absolute PATH. The drawback is that using absolute paths prevent a
69 # configured tree to be moved without reconfiguration.
71 AC_DEFUN([AM_AUX_DIR_EXPAND],
72 [dnl Rely on autoconf to set up CDPATH properly.
74 # expand $ac_aux_dir to an absolute path
75 am_aux_dir=`cd $ac_aux_dir && pwd`
78 # AM_CONDITIONAL -*- Autoconf -*-
80 # Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
82 # This program is free software; you can redistribute it and/or modify
83 # it under the terms of the GNU General Public License as published by
84 # the Free Software Foundation; either version 2, or (at your option)
87 # This program is distributed in the hope that it will be useful,
88 # but WITHOUT ANY WARRANTY; without even the implied warranty of
89 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
90 # GNU General Public License for more details.
92 # You should have received a copy of the GNU General Public License
93 # along with this program; if not, write to the Free Software
94 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
99 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
100 # -------------------------------------
101 # Define a conditional.
102 AC_DEFUN([AM_CONDITIONAL],
104 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
105 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
115 AC_CONFIG_COMMANDS_PRE(
116 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
117 AC_MSG_ERROR([[conditional "$1" was never defined.
118 Usually this means the macro was only invoked conditionally.]])
121 # Add --enable-maintainer-mode option to configure.
124 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
125 # Free Software Foundation, Inc.
127 # This program is free software; you can redistribute it and/or modify
128 # it under the terms of the GNU General Public License as published by
129 # the Free Software Foundation; either version 2, or (at your option)
132 # This program is distributed in the hope that it will be useful,
133 # but WITHOUT ANY WARRANTY; without even the implied warranty of
134 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
135 # GNU General Public License for more details.
137 # You should have received a copy of the GNU General Public License
138 # along with this program; if not, write to the Free Software
139 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
144 AC_DEFUN([AM_MAINTAINER_MODE],
145 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
146 dnl maintainer-mode is disabled by default
147 AC_ARG_ENABLE(maintainer-mode,
148 [ --enable-maintainer-mode enable make rules and dependencies not useful
149 (and sometimes confusing) to the casual installer],
150 USE_MAINTAINER_MODE=$enableval,
151 USE_MAINTAINER_MODE=no)
152 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
153 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
154 MAINT=$MAINTAINER_MODE_TRUE
159 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
165 # Like AC_PROG_CC_C_O, but changed for automake.
167 # Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
169 # This program is free software; you can redistribute it and/or modify
170 # it under the terms of the GNU General Public License as published by
171 # the Free Software Foundation; either version 2, or (at your option)
174 # This program is distributed in the hope that it will be useful,
175 # but WITHOUT ANY WARRANTY; without even the implied warranty of
176 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
177 # GNU General Public License for more details.
179 # You should have received a copy of the GNU General Public License
180 # along with this program; if not, write to the Free Software
181 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
184 AC_DEFUN([AM_PROG_CC_C_O],
185 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
186 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
187 # FIXME: we rely on the cache variable name because
188 # there is no other way.
190 ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
191 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
192 # Losing compiler, so override with the script.
193 # FIXME: It is wrong to rewrite CC.
194 # But if we don't then we get into trouble of one sort or another.
195 # A longer-term fix would be to have automake use am__CC in this case,
196 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
197 CC="$am_aux_dir/compile $CC"
201 m4_include([acinclude.m4])