1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005 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
14 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
16 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
18 # This file is free software; the Free Software Foundation
19 # gives unlimited permission to copy and/or distribute it,
20 # with or without modifications, as long as this notice is preserved.
22 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
23 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
24 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
26 # Of course, Automake must honor this variable whenever it calls a
27 # tool from the auxiliary directory. The problem is that $srcdir (and
28 # therefore $ac_aux_dir as well) can be either absolute or relative,
29 # depending on how configure is run. This is pretty annoying, since
30 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
31 # source directory, any form will work fine, but in subdirectories a
32 # relative path needs to be adjusted first.
35 # fails when called from a subdirectory if $ac_aux_dir is relative
36 # $top_srcdir/$ac_aux_dir/missing
37 # fails if $ac_aux_dir is absolute,
38 # fails when called from a subdirectory in a VPATH build with
39 # a relative $ac_aux_dir
41 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
42 # are both prefixed by $srcdir. In an in-source build this is usually
43 # harmless because $srcdir is `.', but things will broke when you
44 # start a VPATH build or use an absolute $srcdir.
46 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
47 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
48 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
49 # and then we would define $MISSING as
50 # MISSING="\${SHELL} $am_aux_dir/missing"
51 # This will work as long as MISSING is not called from configure, because
52 # unfortunately $(top_srcdir) has no meaning in configure.
53 # However there are other variables, like CC, which are often used in
54 # configure, and could therefore not use this "fixed" $ac_aux_dir.
56 # Another solution, used here, is to always expand $ac_aux_dir to an
57 # absolute PATH. The drawback is that using absolute paths prevent a
58 # configured tree to be moved without reconfiguration.
60 AC_DEFUN([AM_AUX_DIR_EXPAND],
61 [dnl Rely on autoconf to set up CDPATH properly.
63 # expand $ac_aux_dir to an absolute path
64 am_aux_dir=`cd $ac_aux_dir && pwd`
67 # AM_CONDITIONAL -*- Autoconf -*-
69 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
70 # Free Software Foundation, Inc.
72 # This file is free software; the Free Software Foundation
73 # gives unlimited permission to copy and/or distribute it,
74 # with or without modifications, as long as this notice is preserved.
78 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
79 # -------------------------------------
80 # Define a conditional.
81 AC_DEFUN([AM_CONDITIONAL],
83 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
84 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
94 AC_CONFIG_COMMANDS_PRE(
95 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
96 AC_MSG_ERROR([[conditional "$1" was never defined.
97 Usually this means the macro was only invoked conditionally.]])
100 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
103 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
104 # Free Software Foundation, Inc.
106 # This file is free software; the Free Software Foundation
107 # gives unlimited permission to copy and/or distribute it,
108 # with or without modifications, as long as this notice is preserved.
112 AC_DEFUN([AM_MAINTAINER_MODE],
113 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
114 dnl maintainer-mode is disabled by default
115 AC_ARG_ENABLE(maintainer-mode,
116 [ --enable-maintainer-mode enable make rules and dependencies not useful
117 (and sometimes confusing) to the casual installer],
118 USE_MAINTAINER_MODE=$enableval,
119 USE_MAINTAINER_MODE=no)
120 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
121 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
122 MAINT=$MAINTAINER_MODE_TRUE
127 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
129 # Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
131 # This file is free software; the Free Software Foundation
132 # gives unlimited permission to copy and/or distribute it,
133 # with or without modifications, as long as this notice is preserved.
139 # Like AC_PROG_CC_C_O, but changed for automake.
140 AC_DEFUN([AM_PROG_CC_C_O],
141 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
142 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
143 # FIXME: we rely on the cache variable name because
144 # there is no other way.
146 ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
147 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
148 # Losing compiler, so override with the script.
149 # FIXME: It is wrong to rewrite CC.
150 # But if we don't then we get into trouble of one sort or another.
151 # A longer-term fix would be to have automake use am__CC in this case,
152 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
153 CC="$am_aux_dir/compile $CC"
157 m4_include([../config/multi.m4])
158 m4_include([acinclude.m4])