Commit | Line | Data |
---|---|---|
44122162 | 1 | # generated automatically by aclocal 1.11.6 -*- Autoconf -*- |
c906108c | 2 | |
20e95c23 | 3 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
44122162 RO |
4 | # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, |
5 | # Inc. | |
85981d60 AC |
6 | # This file is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy and/or distribute it, | |
8 | # with or without modifications, as long as this notice is preserved. | |
c906108c | 9 | |
85981d60 AC |
10 | # This program is distributed in the hope that it will be useful, |
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
13 | # PARTICULAR PURPOSE. | |
e17bf198 | 14 | |
4869db5e RM |
15 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
16 | ||
44122162 | 17 | # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. |
4869db5e RM |
18 | # |
19 | # This file is free software; the Free Software Foundation | |
20 | # gives unlimited permission to copy and/or distribute it, | |
21 | # with or without modifications, as long as this notice is preserved. | |
22 | ||
44122162 RO |
23 | # serial 1 |
24 | ||
4869db5e RM |
25 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
26 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
27 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
28 | # | |
29 | # Of course, Automake must honor this variable whenever it calls a | |
30 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
31 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
32 | # depending on how configure is run. This is pretty annoying, since | |
33 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
34 | # source directory, any form will work fine, but in subdirectories a | |
35 | # relative path needs to be adjusted first. | |
36 | # | |
37 | # $ac_aux_dir/missing | |
38 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
39 | # $top_srcdir/$ac_aux_dir/missing | |
40 | # fails if $ac_aux_dir is absolute, | |
41 | # fails when called from a subdirectory in a VPATH build with | |
42 | # a relative $ac_aux_dir | |
43 | # | |
44 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
45 | # are both prefixed by $srcdir. In an in-source build this is usually | |
46 | # harmless because $srcdir is `.', but things will broke when you | |
47 | # start a VPATH build or use an absolute $srcdir. | |
48 | # | |
49 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
50 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
51 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
52 | # and then we would define $MISSING as | |
53 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
54 | # This will work as long as MISSING is not called from configure, because | |
55 | # unfortunately $(top_srcdir) has no meaning in configure. | |
56 | # However there are other variables, like CC, which are often used in | |
57 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
58 | # | |
59 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
60 | # absolute PATH. The drawback is that using absolute paths prevent a | |
61 | # configured tree to be moved without reconfiguration. | |
62 | ||
63 | AC_DEFUN([AM_AUX_DIR_EXPAND], | |
64 | [dnl Rely on autoconf to set up CDPATH properly. | |
65 | AC_PREREQ([2.50])dnl | |
66 | # expand $ac_aux_dir to an absolute path | |
67 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
68 | ]) | |
69 | ||
20e95c23 | 70 | # AM_CONDITIONAL -*- Autoconf -*- |
46711df8 | 71 | |
81ecdfbb | 72 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 |
20e95c23 DJ |
73 | # Free Software Foundation, Inc. |
74 | # | |
75 | # This file is free software; the Free Software Foundation | |
76 | # gives unlimited permission to copy and/or distribute it, | |
77 | # with or without modifications, as long as this notice is preserved. | |
60bf0650 | 78 | |
81ecdfbb | 79 | # serial 9 |
60bf0650 MM |
80 | |
81 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
82 | # ------------------------------------- | |
83 | # Define a conditional. | |
84 | AC_DEFUN([AM_CONDITIONAL], | |
85 | [AC_PREREQ(2.52)dnl | |
86 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
87 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
81ecdfbb RW |
88 | AC_SUBST([$1_TRUE])dnl |
89 | AC_SUBST([$1_FALSE])dnl | |
90 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
91 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
92 | m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
60bf0650 MM |
93 | if $2; then |
94 | $1_TRUE= | |
95 | $1_FALSE='#' | |
96 | else | |
97 | $1_TRUE='#' | |
98 | $1_FALSE= | |
99 | fi | |
100 | AC_CONFIG_COMMANDS_PRE( | |
101 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
102 | AC_MSG_ERROR([[conditional "$1" was never defined. | |
103 | Usually this means the macro was only invoked conditionally.]]) | |
104 | fi])]) | |
105 | ||
44122162 RO |
106 | # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, |
107 | # Inc. | |
4869db5e RM |
108 | # |
109 | # This file is free software; the Free Software Foundation | |
110 | # gives unlimited permission to copy and/or distribute it, | |
111 | # with or without modifications, as long as this notice is preserved. | |
112 | ||
44122162 RO |
113 | # serial 1 |
114 | ||
4869db5e RM |
115 | # AM_PROG_INSTALL_SH |
116 | # ------------------ | |
117 | # Define $install_sh. | |
118 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
119 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
120 | if test x"${install_sh}" != xset; then | |
121 | case $am_aux_dir in | |
122 | *\ * | *\ *) | |
123 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
124 | *) | |
125 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
126 | esac | |
127 | fi | |
128 | AC_SUBST(install_sh)]) | |
129 | ||
20e95c23 | 130 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
60bf0650 MM |
131 | # From Jim Meyering |
132 | ||
44122162 RO |
133 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, |
134 | # 2011 Free Software Foundation, Inc. | |
20e95c23 DJ |
135 | # |
136 | # This file is free software; the Free Software Foundation | |
137 | # gives unlimited permission to copy and/or distribute it, | |
138 | # with or without modifications, as long as this notice is preserved. | |
60bf0650 | 139 | |
81ecdfbb | 140 | # serial 5 |
56157b4a | 141 | |
81ecdfbb RW |
142 | # AM_MAINTAINER_MODE([DEFAULT-MODE]) |
143 | # ---------------------------------- | |
144 | # Control maintainer-specific portions of Makefiles. | |
145 | # Default is to disable them, unless `enable' is passed literally. | |
146 | # For symmetry, `disable' may be passed as well. Anyway, the user | |
147 | # can override the default with the --enable/--disable switch. | |
85981d60 | 148 | AC_DEFUN([AM_MAINTAINER_MODE], |
81ecdfbb RW |
149 | [m4_case(m4_default([$1], [disable]), |
150 | [enable], [m4_define([am_maintainer_other], [disable])], | |
151 | [disable], [m4_define([am_maintainer_other], [enable])], | |
152 | [m4_define([am_maintainer_other], [enable]) | |
153 | m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) | |
44122162 | 154 | AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
81ecdfbb RW |
155 | dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
156 | AC_ARG_ENABLE([maintainer-mode], | |
157 | [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | |
85981d60 | 158 | (and sometimes confusing) to the casual installer], |
81ecdfbb RW |
159 | [USE_MAINTAINER_MODE=$enableval], |
160 | [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
85981d60 | 161 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
81ecdfbb | 162 | AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
56157b4a | 163 | MAINT=$MAINTAINER_MODE_TRUE |
81ecdfbb | 164 | AC_SUBST([MAINT])dnl |
56157b4a AC |
165 | ] |
166 | ) | |
167 | ||
85981d60 | 168 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
56157b4a | 169 | |
44122162 | 170 | # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. |
4869db5e RM |
171 | # |
172 | # This file is free software; the Free Software Foundation | |
173 | # gives unlimited permission to copy and/or distribute it, | |
174 | # with or without modifications, as long as this notice is preserved. | |
175 | ||
44122162 RO |
176 | # serial 1 |
177 | ||
4869db5e RM |
178 | # AM_PROG_INSTALL_STRIP |
179 | # --------------------- | |
180 | # One issue with vendor `install' (even GNU) is that you can't | |
181 | # specify the program used to strip binaries. This is especially | |
182 | # annoying in cross-compiling environments, where the build's strip | |
183 | # is unlikely to handle the host's binaries. | |
184 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
185 | # always use install-sh in `make install-strip', and initialize | |
186 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
187 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
188 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
189 | # Installed binaries are usually stripped using `strip' when the user | |
190 | # run `make install-strip'. However `strip' might not be the right | |
191 | # tool to use in cross-compilation environments, therefore Automake | |
192 | # will honor the `STRIP' environment variable to overrule this program. | |
193 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
194 | if test "$cross_compiling" != no; then | |
195 | AC_CHECK_TOOL([STRIP], [strip], :) | |
196 | fi | |
197 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
198 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
199 | ||
44122162 | 200 | # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. |
81ecdfbb RW |
201 | # |
202 | # This file is free software; the Free Software Foundation | |
203 | # gives unlimited permission to copy and/or distribute it, | |
204 | # with or without modifications, as long as this notice is preserved. | |
205 | ||
44122162 | 206 | # serial 3 |
81ecdfbb RW |
207 | |
208 | # _AM_SUBST_NOTMAKE(VARIABLE) | |
209 | # --------------------------- | |
210 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
211 | # This macro is traced by Automake. | |
212 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
213 | ||
214 | # AM_SUBST_NOTMAKE(VARIABLE) | |
44122162 | 215 | # -------------------------- |
81ecdfbb RW |
216 | # Public sister of _AM_SUBST_NOTMAKE. |
217 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
218 | ||
85981d60 | 219 | m4_include([acinclude.m4]) |