Mercurial > hg > CbC > CbC_gcc
comparison libssp/aclocal.m4 @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | b7f97abdc517 |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*- | 1 # generated automatically by aclocal 1.11 -*- Autoconf -*- |
2 | 2 |
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
4 # 2005 Free Software Foundation, Inc. | 4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
5 # This file is free software; the Free Software Foundation | 5 # This file is free software; the Free Software Foundation |
6 # gives unlimited permission to copy and/or distribute it, | 6 # gives unlimited permission to copy and/or distribute it, |
7 # with or without modifications, as long as this notice is preserved. | 7 # with or without modifications, as long as this notice is preserved. |
8 | 8 |
9 # This program is distributed in the hope that it will be useful, | 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 | 10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
12 # PARTICULAR PURPOSE. | 12 # PARTICULAR PURPOSE. |
13 | 13 |
14 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. | 14 m4_ifndef([AC_AUTOCONF_VERSION], |
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],, | |
17 [m4_warning([this file was generated for autoconf 2.64. | |
18 You have another version of autoconf. It may work, but is not guaranteed to. | |
19 If you have problems, you may need to regenerate the build system entirely. | |
20 To do so, use the procedure documented by the package, typically `autoreconf'.])]) | |
21 | |
22 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
15 # | 23 # |
16 # This file is free software; the Free Software Foundation | 24 # This file is free software; the Free Software Foundation |
17 # gives unlimited permission to copy and/or distribute it, | 25 # gives unlimited permission to copy and/or distribute it, |
18 # with or without modifications, as long as this notice is preserved. | 26 # with or without modifications, as long as this notice is preserved. |
19 | 27 |
20 # AM_AUTOMAKE_VERSION(VERSION) | 28 # AM_AUTOMAKE_VERSION(VERSION) |
21 # ---------------------------- | 29 # ---------------------------- |
22 # Automake X.Y traces this macro to ensure aclocal.m4 has been | 30 # Automake X.Y traces this macro to ensure aclocal.m4 has been |
23 # generated from the m4 files accompanying Automake X.Y. | 31 # generated from the m4 files accompanying Automake X.Y. |
24 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) | 32 # (This private macro should not be called outside this file.) |
33 AC_DEFUN([AM_AUTOMAKE_VERSION], | |
34 [am__api_version='1.11' | |
35 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
36 dnl require some minimum version. Point them to the right macro. | |
37 m4_if([$1], [1.11], [], | |
38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
39 ]) | |
40 | |
41 # _AM_AUTOCONF_VERSION(VERSION) | |
42 # ----------------------------- | |
43 # aclocal traces this macro to find the Autoconf version. | |
44 # This is a private macro too. Using m4_define simplifies | |
45 # the logic in aclocal, which can simply ignore this definition. | |
46 m4_define([_AM_AUTOCONF_VERSION], []) | |
25 | 47 |
26 # AM_SET_CURRENT_AUTOMAKE_VERSION | 48 # AM_SET_CURRENT_AUTOMAKE_VERSION |
27 # ------------------------------- | 49 # ------------------------------- |
28 # Call AM_AUTOMAKE_VERSION so it can be traced. | 50 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
29 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | 51 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
30 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | 52 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
31 [AM_AUTOMAKE_VERSION([1.9.6])]) | 53 [AM_AUTOMAKE_VERSION([1.11])dnl |
54 m4_ifndef([AC_AUTOCONF_VERSION], | |
55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
56 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
32 | 57 |
33 # AM_AUX_DIR_EXPAND -*- Autoconf -*- | 58 # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
34 | 59 |
35 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | 60 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
36 # | 61 # |
83 am_aux_dir=`cd $ac_aux_dir && pwd` | 108 am_aux_dir=`cd $ac_aux_dir && pwd` |
84 ]) | 109 ]) |
85 | 110 |
86 # AM_CONDITIONAL -*- Autoconf -*- | 111 # AM_CONDITIONAL -*- Autoconf -*- |
87 | 112 |
88 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 | 113 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 |
89 # Free Software Foundation, Inc. | 114 # Free Software Foundation, Inc. |
90 # | 115 # |
91 # This file is free software; the Free Software Foundation | 116 # This file is free software; the Free Software Foundation |
92 # gives unlimited permission to copy and/or distribute it, | 117 # gives unlimited permission to copy and/or distribute it, |
93 # with or without modifications, as long as this notice is preserved. | 118 # with or without modifications, as long as this notice is preserved. |
94 | 119 |
95 # serial 7 | 120 # serial 9 |
96 | 121 |
97 # AM_CONDITIONAL(NAME, SHELL-CONDITION) | 122 # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
98 # ------------------------------------- | 123 # ------------------------------------- |
99 # Define a conditional. | 124 # Define a conditional. |
100 AC_DEFUN([AM_CONDITIONAL], | 125 AC_DEFUN([AM_CONDITIONAL], |
101 [AC_PREREQ(2.52)dnl | 126 [AC_PREREQ(2.52)dnl |
102 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | 127 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
103 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | 128 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
104 AC_SUBST([$1_TRUE]) | 129 AC_SUBST([$1_TRUE])dnl |
105 AC_SUBST([$1_FALSE]) | 130 AC_SUBST([$1_FALSE])dnl |
131 _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
132 _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
133 m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
106 if $2; then | 134 if $2; then |
107 $1_TRUE= | 135 $1_TRUE= |
108 $1_FALSE='#' | 136 $1_FALSE='#' |
109 else | 137 else |
110 $1_TRUE='#' | 138 $1_TRUE='#' |
114 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | 142 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
115 AC_MSG_ERROR([[conditional "$1" was never defined. | 143 AC_MSG_ERROR([[conditional "$1" was never defined. |
116 Usually this means the macro was only invoked conditionally.]]) | 144 Usually this means the macro was only invoked conditionally.]]) |
117 fi])]) | 145 fi])]) |
118 | 146 |
119 | 147 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 |
120 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 | |
121 # Free Software Foundation, Inc. | 148 # Free Software Foundation, Inc. |
122 # | 149 # |
123 # This file is free software; the Free Software Foundation | 150 # This file is free software; the Free Software Foundation |
124 # gives unlimited permission to copy and/or distribute it, | 151 # gives unlimited permission to copy and/or distribute it, |
125 # with or without modifications, as long as this notice is preserved. | 152 # with or without modifications, as long as this notice is preserved. |
126 | 153 |
127 # serial 8 | 154 # serial 10 |
128 | 155 |
129 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | 156 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
130 # written in clear, in which case automake, when reading aclocal.m4, | 157 # written in clear, in which case automake, when reading aclocal.m4, |
131 # will think it sees a *use*, and therefore will trigger all it's | 158 # will think it sees a *use*, and therefore will trigger all it's |
132 # C support machinery. Also note that it means that autoscan, seeing | 159 # C support machinery. Also note that it means that autoscan, seeing |
150 AC_REQUIRE([AM_DEP_TRACK])dnl | 177 AC_REQUIRE([AM_DEP_TRACK])dnl |
151 | 178 |
152 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | 179 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
153 [$1], CXX, [depcc="$CXX" am_compiler_list=], | 180 [$1], CXX, [depcc="$CXX" am_compiler_list=], |
154 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | 181 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
182 [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
155 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | 183 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
156 [depcc="$$1" am_compiler_list=]) | 184 [depcc="$$1" am_compiler_list=]) |
157 | 185 |
158 AC_CACHE_CHECK([dependency style of $depcc], | 186 AC_CACHE_CHECK([dependency style of $depcc], |
159 [am_cv_$1_dependencies_compiler_type], | 187 [am_cv_$1_dependencies_compiler_type], |
178 | 206 |
179 am_cv_$1_dependencies_compiler_type=none | 207 am_cv_$1_dependencies_compiler_type=none |
180 if test "$am_compiler_list" = ""; then | 208 if test "$am_compiler_list" = ""; then |
181 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | 209 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
182 fi | 210 fi |
211 am__universal=false | |
212 m4_case([$1], [CC], | |
213 [case " $depcc " in #( | |
214 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
215 esac], | |
216 [CXX], | |
217 [case " $depcc " in #( | |
218 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
219 esac]) | |
220 | |
183 for depmode in $am_compiler_list; do | 221 for depmode in $am_compiler_list; do |
184 # Setup a source with many dependencies, because some compilers | 222 # Setup a source with many dependencies, because some compilers |
185 # like to wrap large dependency lists on column 80 (with \), and | 223 # like to wrap large dependency lists on column 80 (with \), and |
186 # we should not choose a depcomp mode which is confused by this. | 224 # we should not choose a depcomp mode which is confused by this. |
187 # | 225 # |
195 # Solaris 8's {/usr,}/bin/sh. | 233 # Solaris 8's {/usr,}/bin/sh. |
196 touch sub/conftst$i.h | 234 touch sub/conftst$i.h |
197 done | 235 done |
198 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | 236 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
199 | 237 |
238 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
239 # mode. It turns out that the SunPro C++ compiler does not properly | |
240 # handle `-M -o', and we need to detect this. Also, some Intel | |
241 # versions had trouble with output in subdirs | |
242 am__obj=sub/conftest.${OBJEXT-o} | |
243 am__minus_obj="-o $am__obj" | |
200 case $depmode in | 244 case $depmode in |
245 gcc) | |
246 # This depmode causes a compiler race in universal mode. | |
247 test "$am__universal" = false || continue | |
248 ;; | |
201 nosideeffect) | 249 nosideeffect) |
202 # after this tag, mechanisms are not by side-effect, so they'll | 250 # after this tag, mechanisms are not by side-effect, so they'll |
203 # only be used when explicitly requested | 251 # only be used when explicitly requested |
204 if test "x$enable_dependency_tracking" = xyes; then | 252 if test "x$enable_dependency_tracking" = xyes; then |
205 continue | 253 continue |
206 else | 254 else |
207 break | 255 break |
208 fi | 256 fi |
209 ;; | 257 ;; |
258 msvisualcpp | msvcmsys) | |
259 # This compiler won't grok `-c -o', but also, the minuso test has | |
260 # not run yet. These depmodes are late enough in the game, and | |
261 # so weak that their functioning should not be impacted. | |
262 am__obj=conftest.${OBJEXT-o} | |
263 am__minus_obj= | |
264 ;; | |
210 none) break ;; | 265 none) break ;; |
211 esac | 266 esac |
212 # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
213 # mode. It turns out that the SunPro C++ compiler does not properly | |
214 # handle `-M -o', and we need to detect this. | |
215 if depmode=$depmode \ | 267 if depmode=$depmode \ |
216 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | 268 source=sub/conftest.c object=$am__obj \ |
217 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | 269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
218 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | 270 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
219 >/dev/null 2>conftest.err && | 271 >/dev/null 2>conftest.err && |
272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | 273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
221 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | 274 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | 275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
223 # icc doesn't choke on unknown options, it will just issue warnings | 276 # icc doesn't choke on unknown options, it will just issue warnings |
224 # or remarks (even with -Werror). So we grep stderr for any message | 277 # or remarks (even with -Werror). So we grep stderr for any message |
225 # that says an option was ignored or not supported. | 278 # that says an option was ignored or not supported. |
226 # When given -MP, icc 7.0 and 7.1 complain thusly: | 279 # When given -MP, icc 7.0 and 7.1 complain thusly: |
267 if test "x$enable_dependency_tracking" != xno; then | 320 if test "x$enable_dependency_tracking" != xno; then |
268 am_depcomp="$ac_aux_dir/depcomp" | 321 am_depcomp="$ac_aux_dir/depcomp" |
269 AMDEPBACKSLASH='\' | 322 AMDEPBACKSLASH='\' |
270 fi | 323 fi |
271 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | 324 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
272 AC_SUBST([AMDEPBACKSLASH]) | 325 AC_SUBST([AMDEPBACKSLASH])dnl |
326 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
273 ]) | 327 ]) |
274 | 328 |
275 # Generate code to set up dependency tracking. -*- Autoconf -*- | 329 # Generate code to set up dependency tracking. -*- Autoconf -*- |
276 | 330 |
277 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 | 331 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
278 # Free Software Foundation, Inc. | 332 # Free Software Foundation, Inc. |
279 # | 333 # |
280 # This file is free software; the Free Software Foundation | 334 # This file is free software; the Free Software Foundation |
281 # gives unlimited permission to copy and/or distribute it, | 335 # gives unlimited permission to copy and/or distribute it, |
282 # with or without modifications, as long as this notice is preserved. | 336 # with or without modifications, as long as this notice is preserved. |
283 | 337 |
284 #serial 3 | 338 #serial 5 |
285 | 339 |
286 # _AM_OUTPUT_DEPENDENCY_COMMANDS | 340 # _AM_OUTPUT_DEPENDENCY_COMMANDS |
287 # ------------------------------ | 341 # ------------------------------ |
288 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | 342 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
289 [for mf in $CONFIG_FILES; do | 343 [{ |
290 # Strip MF so we end up with the name of the file. | 344 # Autoconf 2.62 quotes --file arguments for eval, but not when files |
291 mf=`echo "$mf" | sed -e 's/:.*$//'` | 345 # are listed without --file. Let's play safe and only enable the eval |
292 # Check whether this is an Automake generated Makefile or not. | 346 # if we detect the quoting. |
293 # We used to match only the files named `Makefile.in', but | 347 case $CONFIG_FILES in |
294 # some people rename them; so instead we look at the file content. | 348 *\'*) eval set x "$CONFIG_FILES" ;; |
295 # Grep'ing the first line is not enough: some people post-process | 349 *) set x $CONFIG_FILES ;; |
296 # each Makefile.in and add a new line on top of each file to say so. | 350 esac |
297 # So let's grep whole file. | 351 shift |
298 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | 352 for mf |
299 dirpart=`AS_DIRNAME("$mf")` | 353 do |
300 else | 354 # Strip MF so we end up with the name of the file. |
301 continue | 355 mf=`echo "$mf" | sed -e 's/:.*$//'` |
302 fi | 356 # Check whether this is an Automake generated Makefile or not. |
303 # Extract the definition of DEPDIR, am__include, and am__quote | 357 # We used to match only the files named `Makefile.in', but |
304 # from the Makefile without running `make'. | 358 # some people rename them; so instead we look at the file content. |
305 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | 359 # Grep'ing the first line is not enough: some people post-process |
306 test -z "$DEPDIR" && continue | 360 # each Makefile.in and add a new line on top of each file to say so. |
307 am__include=`sed -n 's/^am__include = //p' < "$mf"` | 361 # Grep'ing the whole file is not good either: AIX grep has a line |
308 test -z "am__include" && continue | 362 # limit of 2048, but all sed's we know have understand at least 4000. |
309 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | 363 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
310 # When using ansi2knr, U may be empty or an underscore; expand it | 364 dirpart=`AS_DIRNAME("$mf")` |
311 U=`sed -n 's/^U = //p' < "$mf"` | 365 else |
312 # Find all dependency output files, they are included files with | 366 continue |
313 # $(DEPDIR) in their names. We invoke sed twice because it is the | 367 fi |
314 # simplest approach to changing $(DEPDIR) to its actual value in the | 368 # Extract the definition of DEPDIR, am__include, and am__quote |
315 # expansion. | 369 # from the Makefile without running `make'. |
316 for file in `sed -n " | 370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
317 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | 371 test -z "$DEPDIR" && continue |
318 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | 372 am__include=`sed -n 's/^am__include = //p' < "$mf"` |
319 # Make sure the directory exists. | 373 test -z "am__include" && continue |
320 test -f "$dirpart/$file" && continue | 374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
321 fdir=`AS_DIRNAME(["$file"])` | 375 # When using ansi2knr, U may be empty or an underscore; expand it |
322 AS_MKDIR_P([$dirpart/$fdir]) | 376 U=`sed -n 's/^U = //p' < "$mf"` |
323 # echo "creating $dirpart/$file" | 377 # Find all dependency output files, they are included files with |
324 echo '# dummy' > "$dirpart/$file" | 378 # $(DEPDIR) in their names. We invoke sed twice because it is the |
379 # simplest approach to changing $(DEPDIR) to its actual value in the | |
380 # expansion. | |
381 for file in `sed -n " | |
382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
384 # Make sure the directory exists. | |
385 test -f "$dirpart/$file" && continue | |
386 fdir=`AS_DIRNAME(["$file"])` | |
387 AS_MKDIR_P([$dirpart/$fdir]) | |
388 # echo "creating $dirpart/$file" | |
389 echo '# dummy' > "$dirpart/$file" | |
390 done | |
325 done | 391 done |
326 done | 392 } |
327 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | 393 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
328 | 394 |
329 | 395 |
330 # AM_OUTPUT_DEPENDENCY_COMMANDS | 396 # AM_OUTPUT_DEPENDENCY_COMMANDS |
331 # ----------------------------- | 397 # ----------------------------- |
340 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | 406 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
341 ]) | 407 ]) |
342 | 408 |
343 # Do all the work for Automake. -*- Autoconf -*- | 409 # Do all the work for Automake. -*- Autoconf -*- |
344 | 410 |
345 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 | 411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
346 # Free Software Foundation, Inc. | 412 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. |
347 # | 413 # |
348 # This file is free software; the Free Software Foundation | 414 # This file is free software; the Free Software Foundation |
349 # gives unlimited permission to copy and/or distribute it, | 415 # gives unlimited permission to copy and/or distribute it, |
350 # with or without modifications, as long as this notice is preserved. | 416 # with or without modifications, as long as this notice is preserved. |
351 | 417 |
352 # serial 12 | 418 # serial 16 |
353 | 419 |
354 # This macro actually does too much. Some checks are only needed if | 420 # This macro actually does too much. Some checks are only needed if |
355 # your package does certain things. But this isn't really a big deal. | 421 # your package does certain things. But this isn't really a big deal. |
356 | 422 |
357 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | 423 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
364 # We support both call styles for the transition. After | 430 # We support both call styles for the transition. After |
365 # the next Automake release, Autoconf can make the AC_INIT | 431 # the next Automake release, Autoconf can make the AC_INIT |
366 # arguments mandatory, and then we can depend on a new Autoconf | 432 # arguments mandatory, and then we can depend on a new Autoconf |
367 # release and drop the old call support. | 433 # release and drop the old call support. |
368 AC_DEFUN([AM_INIT_AUTOMAKE], | 434 AC_DEFUN([AM_INIT_AUTOMAKE], |
369 [AC_PREREQ([2.58])dnl | 435 [AC_PREREQ([2.62])dnl |
370 dnl Autoconf wants to disallow AM_ names. We explicitly allow | 436 dnl Autoconf wants to disallow AM_ names. We explicitly allow |
371 dnl the ones we care about. | 437 dnl the ones we care about. |
372 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | 438 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
373 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | 439 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
374 AC_REQUIRE([AC_PROG_INSTALL])dnl | 440 AC_REQUIRE([AC_PROG_INSTALL])dnl |
375 # test to see if srcdir already configured | 441 if test "`cd $srcdir && pwd`" != "`pwd`"; then |
376 if test "`cd $srcdir && pwd`" != "`pwd`" && | 442 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
377 test -f $srcdir/config.status; then | 443 # is not polluted with repeated "-I." |
378 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | 444 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
445 # test to see if srcdir already configured | |
446 if test -f $srcdir/config.status; then | |
447 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
448 fi | |
379 fi | 449 fi |
380 | 450 |
381 # test whether we have cygpath | 451 # test whether we have cygpath |
382 if test -z "$CYGPATH_W"; then | 452 if test -z "$CYGPATH_W"; then |
383 if (cygpath --version) >/dev/null 2>/dev/null; then | 453 if (cygpath --version) >/dev/null 2>/dev/null; then |
393 m4_ifval([$2], | 463 m4_ifval([$2], |
394 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | 464 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
395 AC_SUBST([PACKAGE], [$1])dnl | 465 AC_SUBST([PACKAGE], [$1])dnl |
396 AC_SUBST([VERSION], [$2])], | 466 AC_SUBST([VERSION], [$2])], |
397 [_AM_SET_OPTIONS([$1])dnl | 467 [_AM_SET_OPTIONS([$1])dnl |
468 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
469 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
470 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
398 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | 471 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
399 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | 472 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
400 | 473 |
401 _AM_IF_OPTION([no-define],, | 474 _AM_IF_OPTION([no-define],, |
402 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | 475 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
408 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | 481 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
409 AM_MISSING_PROG(AUTOCONF, autoconf) | 482 AM_MISSING_PROG(AUTOCONF, autoconf) |
410 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | 483 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
411 AM_MISSING_PROG(AUTOHEADER, autoheader) | 484 AM_MISSING_PROG(AUTOHEADER, autoheader) |
412 AM_MISSING_PROG(MAKEINFO, makeinfo) | 485 AM_MISSING_PROG(MAKEINFO, makeinfo) |
413 AM_PROG_INSTALL_SH | 486 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
414 AM_PROG_INSTALL_STRIP | 487 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl |
415 AC_REQUIRE([AM_PROG_MKDIR_P])dnl | 488 AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
416 # We need awk for the "check" target. The system "awk" is bad on | 489 # We need awk for the "check" target. The system "awk" is bad on |
417 # some platforms. | 490 # some platforms. |
418 AC_REQUIRE([AC_PROG_AWK])dnl | 491 AC_REQUIRE([AC_PROG_AWK])dnl |
419 AC_REQUIRE([AC_PROG_MAKE_SET])dnl | 492 AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
420 AC_REQUIRE([AM_SET_LEADING_DOT])dnl | 493 AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
421 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | 494 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
422 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | 495 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
423 [_AM_PROG_TAR([v7])])]) | 496 [_AM_PROG_TAR([v7])])]) |
424 _AM_IF_OPTION([no-dependencies],, | 497 _AM_IF_OPTION([no-dependencies],, |
425 [AC_PROVIDE_IFELSE([AC_PROG_CC], | 498 [AC_PROVIDE_IFELSE([AC_PROG_CC], |
426 [_AM_DEPENDENCIES(CC)], | 499 [_AM_DEPENDENCIES(CC)], |
427 [define([AC_PROG_CC], | 500 [define([AC_PROG_CC], |
428 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | 501 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
429 AC_PROVIDE_IFELSE([AC_PROG_CXX], | 502 AC_PROVIDE_IFELSE([AC_PROG_CXX], |
430 [_AM_DEPENDENCIES(CXX)], | 503 [_AM_DEPENDENCIES(CXX)], |
431 [define([AC_PROG_CXX], | 504 [define([AC_PROG_CXX], |
432 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | 505 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
433 ]) | 506 AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
434 ]) | 507 [_AM_DEPENDENCIES(OBJC)], |
508 [define([AC_PROG_OBJC], | |
509 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
510 ]) | |
511 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
512 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
513 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
514 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
515 AC_CONFIG_COMMANDS_PRE(dnl | |
516 [m4_provide_if([_AM_COMPILER_EXEEXT], | |
517 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
518 ]) | |
519 | |
520 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
521 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
522 dnl mangled by Autoconf and run in a shell conditional statement. | |
523 m4_define([_AC_COMPILER_EXEEXT], | |
524 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
435 | 525 |
436 | 526 |
437 # When config.status generates a header, we must update the stamp-h file. | 527 # When config.status generates a header, we must update the stamp-h file. |
438 # This file resides in the same directory as the config header | 528 # This file resides in the same directory as the config header |
439 # that is generated. The stamp files are numbered to have different names. | 529 # that is generated. The stamp files are numbered to have different names. |
441 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | 531 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
442 # loop where config.status creates the headers, so we can generate | 532 # loop where config.status creates the headers, so we can generate |
443 # our stamp files there. | 533 # our stamp files there. |
444 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | 534 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
445 [# Compute $1's index in $config_headers. | 535 [# Compute $1's index in $config_headers. |
536 _am_arg=$1 | |
446 _am_stamp_count=1 | 537 _am_stamp_count=1 |
447 for _am_header in $config_headers :; do | 538 for _am_header in $config_headers :; do |
448 case $_am_header in | 539 case $_am_header in |
449 $1 | $1:* ) | 540 $_am_arg | $_am_arg:* ) |
450 break ;; | 541 break ;; |
451 * ) | 542 * ) |
452 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | 543 _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
453 esac | 544 esac |
454 done | 545 done |
455 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) | 546 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
456 | 547 |
457 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | 548 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. |
458 # | 549 # |
459 # This file is free software; the Free Software Foundation | 550 # This file is free software; the Free Software Foundation |
460 # gives unlimited permission to copy and/or distribute it, | 551 # gives unlimited permission to copy and/or distribute it, |
461 # with or without modifications, as long as this notice is preserved. | 552 # with or without modifications, as long as this notice is preserved. |
462 | 553 |
463 # AM_PROG_INSTALL_SH | 554 # AM_PROG_INSTALL_SH |
464 # ------------------ | 555 # ------------------ |
465 # Define $install_sh. | 556 # Define $install_sh. |
466 AC_DEFUN([AM_PROG_INSTALL_SH], | 557 AC_DEFUN([AM_PROG_INSTALL_SH], |
467 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | 558 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
468 install_sh=${install_sh-"$am_aux_dir/install-sh"} | 559 if test x"${install_sh}" != xset; then |
560 case $am_aux_dir in | |
561 *\ * | *\ *) | |
562 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
563 *) | |
564 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
565 esac | |
566 fi | |
469 AC_SUBST(install_sh)]) | 567 AC_SUBST(install_sh)]) |
470 | 568 |
471 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | 569 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
472 # From Jim Meyering | 570 # From Jim Meyering |
473 | 571 |
474 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 | 572 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
475 # Free Software Foundation, Inc. | 573 # Free Software Foundation, Inc. |
476 # | 574 # |
477 # This file is free software; the Free Software Foundation | 575 # This file is free software; the Free Software Foundation |
478 # gives unlimited permission to copy and/or distribute it, | 576 # gives unlimited permission to copy and/or distribute it, |
479 # with or without modifications, as long as this notice is preserved. | 577 # with or without modifications, as long as this notice is preserved. |
480 | 578 |
481 # serial 4 | 579 # serial 5 |
482 | 580 |
581 # AM_MAINTAINER_MODE([DEFAULT-MODE]) | |
582 # ---------------------------------- | |
583 # Control maintainer-specific portions of Makefiles. | |
584 # Default is to disable them, unless `enable' is passed literally. | |
585 # For symmetry, `disable' may be passed as well. Anyway, the user | |
586 # can override the default with the --enable/--disable switch. | |
483 AC_DEFUN([AM_MAINTAINER_MODE], | 587 AC_DEFUN([AM_MAINTAINER_MODE], |
484 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | 588 [m4_case(m4_default([$1], [disable]), |
485 dnl maintainer-mode is disabled by default | 589 [enable], [m4_define([am_maintainer_other], [disable])], |
486 AC_ARG_ENABLE(maintainer-mode, | 590 [disable], [m4_define([am_maintainer_other], [enable])], |
487 [ --enable-maintainer-mode enable make rules and dependencies not useful | 591 [m4_define([am_maintainer_other], [enable]) |
592 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) | |
593 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) | |
594 dnl maintainer-mode's default is 'disable' unless 'enable' is passed | |
595 AC_ARG_ENABLE([maintainer-mode], | |
596 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | |
488 (and sometimes confusing) to the casual installer], | 597 (and sometimes confusing) to the casual installer], |
489 USE_MAINTAINER_MODE=$enableval, | 598 [USE_MAINTAINER_MODE=$enableval], |
490 USE_MAINTAINER_MODE=no) | 599 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) |
491 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | 600 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
492 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) | 601 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
493 MAINT=$MAINTAINER_MODE_TRUE | 602 MAINT=$MAINTAINER_MODE_TRUE |
494 AC_SUBST(MAINT)dnl | 603 AC_SUBST([MAINT])dnl |
495 ] | 604 ] |
496 ) | 605 ) |
497 | 606 |
498 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | 607 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
499 | 608 |
500 # Check to see how 'make' treats includes. -*- Autoconf -*- | 609 # Check to see how 'make' treats includes. -*- Autoconf -*- |
501 | 610 |
502 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | 611 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. |
503 # | 612 # |
504 # This file is free software; the Free Software Foundation | 613 # This file is free software; the Free Software Foundation |
505 # gives unlimited permission to copy and/or distribute it, | 614 # gives unlimited permission to copy and/or distribute it, |
506 # with or without modifications, as long as this notice is preserved. | 615 # with or without modifications, as long as this notice is preserved. |
507 | 616 |
508 # serial 3 | 617 # serial 4 |
509 | 618 |
510 # AM_MAKE_INCLUDE() | 619 # AM_MAKE_INCLUDE() |
511 # ----------------- | 620 # ----------------- |
512 # Check to see how make treats includes. | 621 # Check to see how make treats includes. |
513 AC_DEFUN([AM_MAKE_INCLUDE], | 622 AC_DEFUN([AM_MAKE_INCLUDE], |
514 [am_make=${MAKE-make} | 623 [am_make=${MAKE-make} |
515 cat > confinc << 'END' | 624 cat > confinc << 'END' |
516 am__doit: | 625 am__doit: |
517 @echo done | 626 @echo this is the am__doit target |
518 .PHONY: am__doit | 627 .PHONY: am__doit |
519 END | 628 END |
520 # If we don't find an include directive, just comment out the code. | 629 # If we don't find an include directive, just comment out the code. |
521 AC_MSG_CHECKING([for style of include used by $am_make]) | 630 AC_MSG_CHECKING([for style of include used by $am_make]) |
522 am__include="#" | 631 am__include="#" |
523 am__quote= | 632 am__quote= |
524 _am_result=none | 633 _am_result=none |
525 # First try GNU make style include. | 634 # First try GNU make style include. |
526 echo "include confinc" > confmf | 635 echo "include confinc" > confmf |
527 # We grep out `Entering directory' and `Leaving directory' | 636 # Ignore all kinds of additional output from `make'. |
528 # messages which can occur if `w' ends up in MAKEFLAGS. | 637 case `$am_make -s -f confmf 2> /dev/null` in #( |
529 # In particular we don't look at `^make:' because GNU make might | 638 *the\ am__doit\ target*) |
530 # be invoked under some other name (usually "gmake"), in which | 639 am__include=include |
531 # case it prints its new name instead of `make'. | 640 am__quote= |
532 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | 641 _am_result=GNU |
533 am__include=include | 642 ;; |
534 am__quote= | 643 esac |
535 _am_result=GNU | |
536 fi | |
537 # Now try BSD make style include. | 644 # Now try BSD make style include. |
538 if test "$am__include" = "#"; then | 645 if test "$am__include" = "#"; then |
539 echo '.include "confinc"' > confmf | 646 echo '.include "confinc"' > confmf |
540 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | 647 case `$am_make -s -f confmf 2> /dev/null` in #( |
541 am__include=.include | 648 *the\ am__doit\ target*) |
542 am__quote="\"" | 649 am__include=.include |
543 _am_result=BSD | 650 am__quote="\"" |
544 fi | 651 _am_result=BSD |
652 ;; | |
653 esac | |
545 fi | 654 fi |
546 AC_SUBST([am__include]) | 655 AC_SUBST([am__include]) |
547 AC_SUBST([am__quote]) | 656 AC_SUBST([am__quote]) |
548 AC_MSG_RESULT([$_am_result]) | 657 AC_MSG_RESULT([$_am_result]) |
549 rm -f confinc confmf | 658 rm -f confinc confmf |
550 ]) | 659 ]) |
551 | 660 |
552 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | 661 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
553 | 662 |
554 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 | 663 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 |
555 # Free Software Foundation, Inc. | 664 # Free Software Foundation, Inc. |
556 # | 665 # |
557 # This file is free software; the Free Software Foundation | 666 # This file is free software; the Free Software Foundation |
558 # gives unlimited permission to copy and/or distribute it, | 667 # gives unlimited permission to copy and/or distribute it, |
559 # with or without modifications, as long as this notice is preserved. | 668 # with or without modifications, as long as this notice is preserved. |
560 | 669 |
561 # serial 4 | 670 # serial 6 |
562 | 671 |
563 # AM_MISSING_PROG(NAME, PROGRAM) | 672 # AM_MISSING_PROG(NAME, PROGRAM) |
564 # ------------------------------ | 673 # ------------------------------ |
565 AC_DEFUN([AM_MISSING_PROG], | 674 AC_DEFUN([AM_MISSING_PROG], |
566 [AC_REQUIRE([AM_MISSING_HAS_RUN]) | 675 [AC_REQUIRE([AM_MISSING_HAS_RUN]) |
572 # ------------------ | 681 # ------------------ |
573 # Define MISSING if not defined so far and test if it supports --run. | 682 # Define MISSING if not defined so far and test if it supports --run. |
574 # If it does, set am_missing_run to use it, otherwise, to nothing. | 683 # If it does, set am_missing_run to use it, otherwise, to nothing. |
575 AC_DEFUN([AM_MISSING_HAS_RUN], | 684 AC_DEFUN([AM_MISSING_HAS_RUN], |
576 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | 685 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
577 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | 686 AC_REQUIRE_AUX_FILE([missing])dnl |
687 if test x"${MISSING+set}" != xset; then | |
688 case $am_aux_dir in | |
689 *\ * | *\ *) | |
690 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
691 *) | |
692 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
693 esac | |
694 fi | |
578 # Use eval to expand $SHELL | 695 # Use eval to expand $SHELL |
579 if eval "$MISSING --run true"; then | 696 if eval "$MISSING --run true"; then |
580 am_missing_run="$MISSING --run " | 697 am_missing_run="$MISSING --run " |
581 else | 698 else |
582 am_missing_run= | 699 am_missing_run= |
583 AC_MSG_WARN([`missing' script is too old or missing]) | 700 AC_MSG_WARN([`missing' script is too old or missing]) |
584 fi | 701 fi |
585 ]) | 702 ]) |
586 | 703 |
587 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. | 704 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
588 # | 705 # |
589 # This file is free software; the Free Software Foundation | 706 # This file is free software; the Free Software Foundation |
590 # gives unlimited permission to copy and/or distribute it, | 707 # gives unlimited permission to copy and/or distribute it, |
591 # with or without modifications, as long as this notice is preserved. | 708 # with or without modifications, as long as this notice is preserved. |
592 | 709 |
593 # AM_PROG_MKDIR_P | 710 # AM_PROG_MKDIR_P |
594 # --------------- | 711 # --------------- |
595 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. | 712 # Check for `mkdir -p'. |
596 # | |
597 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories | |
598 # created by `make install' are always world readable, even if the | |
599 # installer happens to have an overly restrictive umask (e.g. 077). | |
600 # This was a mistake. There are at least two reasons why we must not | |
601 # use `-m 0755': | |
602 # - it causes special bits like SGID to be ignored, | |
603 # - it may be too restrictive (some setups expect 775 directories). | |
604 # | |
605 # Do not use -m 0755 and let people choose whatever they expect by | |
606 # setting umask. | |
607 # | |
608 # We cannot accept any implementation of `mkdir' that recognizes `-p'. | |
609 # Some implementations (such as Solaris 8's) are not thread-safe: if a | |
610 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' | |
611 # concurrently, both version can detect that a/ is missing, but only | |
612 # one can create it and the other will error out. Consequently we | |
613 # restrict ourselves to GNU make (using the --version option ensures | |
614 # this.) | |
615 AC_DEFUN([AM_PROG_MKDIR_P], | 713 AC_DEFUN([AM_PROG_MKDIR_P], |
616 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | 714 [AC_PREREQ([2.60])dnl |
617 # We used to keeping the `.' as first argument, in order to | 715 AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
618 # allow $(mkdir_p) to be used without argument. As in | 716 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, |
619 # $(mkdir_p) $(somedir) | 717 dnl while keeping a definition of mkdir_p for backward compatibility. |
620 # where $(somedir) is conditionally defined. However this is wrong | 718 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. |
621 # for two reasons: | 719 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of |
622 # 1. if the package is installed by a user who cannot write `.' | 720 dnl Makefile.ins that do not define MKDIR_P, so we do our own |
623 # make install will fail, | 721 dnl adjustment using top_builddir (which is defined more often than |
624 # 2. the above comment should most certainly read | 722 dnl MKDIR_P). |
625 # $(mkdir_p) $(DESTDIR)$(somedir) | 723 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl |
626 # so it does not work when $(somedir) is undefined and | 724 case $mkdir_p in |
627 # $(DESTDIR) is not. | 725 [[\\/$]]* | ?:[[\\/]]*) ;; |
628 # To support the latter case, we have to write | 726 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
629 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | 727 esac |
630 # so the `.' trick is pointless. | 728 ]) |
631 mkdir_p='mkdir -p --' | |
632 else | |
633 # On NextStep and OpenStep, the `mkdir' command does not | |
634 # recognize any option. It will interpret all options as | |
635 # directories to create, and then abort because `.' already | |
636 # exists. | |
637 for d in ./-p ./--version; | |
638 do | |
639 test -d $d && rmdir $d | |
640 done | |
641 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
642 if test -f "$ac_aux_dir/mkinstalldirs"; then | |
643 mkdir_p='$(mkinstalldirs)' | |
644 else | |
645 mkdir_p='$(install_sh) -d' | |
646 fi | |
647 fi | |
648 AC_SUBST([mkdir_p])]) | |
649 | 729 |
650 # Helper functions for option handling. -*- Autoconf -*- | 730 # Helper functions for option handling. -*- Autoconf -*- |
651 | 731 |
652 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | 732 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. |
653 # | 733 # |
654 # This file is free software; the Free Software Foundation | 734 # This file is free software; the Free Software Foundation |
655 # gives unlimited permission to copy and/or distribute it, | 735 # gives unlimited permission to copy and/or distribute it, |
656 # with or without modifications, as long as this notice is preserved. | 736 # with or without modifications, as long as this notice is preserved. |
657 | 737 |
658 # serial 3 | 738 # serial 4 |
659 | 739 |
660 # _AM_MANGLE_OPTION(NAME) | 740 # _AM_MANGLE_OPTION(NAME) |
661 # ----------------------- | 741 # ----------------------- |
662 AC_DEFUN([_AM_MANGLE_OPTION], | 742 AC_DEFUN([_AM_MANGLE_OPTION], |
663 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | 743 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
670 | 750 |
671 # _AM_SET_OPTIONS(OPTIONS) | 751 # _AM_SET_OPTIONS(OPTIONS) |
672 # ---------------------------------- | 752 # ---------------------------------- |
673 # OPTIONS is a space-separated list of Automake options. | 753 # OPTIONS is a space-separated list of Automake options. |
674 AC_DEFUN([_AM_SET_OPTIONS], | 754 AC_DEFUN([_AM_SET_OPTIONS], |
675 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | 755 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
676 | 756 |
677 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | 757 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
678 # ------------------------------------------- | 758 # ------------------------------------------- |
679 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | 759 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
680 AC_DEFUN([_AM_IF_OPTION], | 760 AC_DEFUN([_AM_IF_OPTION], |
681 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | 761 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
682 | 762 |
683 # Check to make sure that the build environment is sane. -*- Autoconf -*- | 763 # Check to make sure that the build environment is sane. -*- Autoconf -*- |
684 | 764 |
685 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | 765 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 |
686 # Free Software Foundation, Inc. | 766 # Free Software Foundation, Inc. |
687 # | 767 # |
688 # This file is free software; the Free Software Foundation | 768 # This file is free software; the Free Software Foundation |
689 # gives unlimited permission to copy and/or distribute it, | 769 # gives unlimited permission to copy and/or distribute it, |
690 # with or without modifications, as long as this notice is preserved. | 770 # with or without modifications, as long as this notice is preserved. |
691 | 771 |
692 # serial 4 | 772 # serial 5 |
693 | 773 |
694 # AM_SANITY_CHECK | 774 # AM_SANITY_CHECK |
695 # --------------- | 775 # --------------- |
696 AC_DEFUN([AM_SANITY_CHECK], | 776 AC_DEFUN([AM_SANITY_CHECK], |
697 [AC_MSG_CHECKING([whether build environment is sane]) | 777 [AC_MSG_CHECKING([whether build environment is sane]) |
698 # Just in case | 778 # Just in case |
699 sleep 1 | 779 sleep 1 |
700 echo timestamp > conftest.file | 780 echo timestamp > conftest.file |
781 # Reject unsafe characters in $srcdir or the absolute working directory | |
782 # name. Accept space and tab only in the latter. | |
783 am_lf=' | |
784 ' | |
785 case `pwd` in | |
786 *[[\\\"\#\$\&\'\`$am_lf]]*) | |
787 AC_MSG_ERROR([unsafe absolute working directory name]);; | |
788 esac | |
789 case $srcdir in | |
790 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
791 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
792 esac | |
793 | |
701 # Do `set' in a subshell so we don't clobber the current shell's | 794 # Do `set' in a subshell so we don't clobber the current shell's |
702 # arguments. Must try -L first in case configure is actually a | 795 # arguments. Must try -L first in case configure is actually a |
703 # symlink; some systems play weird games with the mod time of symlinks | 796 # symlink; some systems play weird games with the mod time of symlinks |
704 # (eg FreeBSD returns the mod time of the symlink's containing | 797 # (eg FreeBSD returns the mod time of the symlink's containing |
705 # directory). | 798 # directory). |
706 if ( | 799 if ( |
707 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | 800 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
708 if test "$[*]" = "X"; then | 801 if test "$[*]" = "X"; then |
709 # -L didn't work. | 802 # -L didn't work. |
710 set X `ls -t $srcdir/configure conftest.file` | 803 set X `ls -t "$srcdir/configure" conftest.file` |
711 fi | 804 fi |
712 rm -f conftest.file | 805 rm -f conftest.file |
713 if test "$[*]" != "X $srcdir/configure conftest.file" \ | 806 if test "$[*]" != "X $srcdir/configure conftest.file" \ |
714 && test "$[*]" != "X conftest.file $srcdir/configure"; then | 807 && test "$[*]" != "X conftest.file $srcdir/configure"; then |
715 | 808 |
755 # will honor the `STRIP' environment variable to overrule this program. | 848 # will honor the `STRIP' environment variable to overrule this program. |
756 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | 849 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
757 if test "$cross_compiling" != no; then | 850 if test "$cross_compiling" != no; then |
758 AC_CHECK_TOOL([STRIP], [strip], :) | 851 AC_CHECK_TOOL([STRIP], [strip], :) |
759 fi | 852 fi |
760 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | 853 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
761 AC_SUBST([INSTALL_STRIP_PROGRAM])]) | 854 AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
855 | |
856 # Copyright (C) 2006, 2008 Free Software Foundation, Inc. | |
857 # | |
858 # This file is free software; the Free Software Foundation | |
859 # gives unlimited permission to copy and/or distribute it, | |
860 # with or without modifications, as long as this notice is preserved. | |
861 | |
862 # serial 2 | |
863 | |
864 # _AM_SUBST_NOTMAKE(VARIABLE) | |
865 # --------------------------- | |
866 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
867 # This macro is traced by Automake. | |
868 AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
869 | |
870 # AM_SUBST_NOTMAKE(VARIABLE) | |
871 # --------------------------- | |
872 # Public sister of _AM_SUBST_NOTMAKE. | |
873 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
762 | 874 |
763 # Check how to create a tarball. -*- Autoconf -*- | 875 # Check how to create a tarball. -*- Autoconf -*- |
764 | 876 |
765 # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | 877 # Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
766 # | 878 # |
860 m4_include([../config/depstand.m4]) | 972 m4_include([../config/depstand.m4]) |
861 m4_include([../config/lead-dot.m4]) | 973 m4_include([../config/lead-dot.m4]) |
862 m4_include([../config/multi.m4]) | 974 m4_include([../config/multi.m4]) |
863 m4_include([../config/no-executables.m4]) | 975 m4_include([../config/no-executables.m4]) |
864 m4_include([../config/override.m4]) | 976 m4_include([../config/override.m4]) |
865 m4_include([../config/proginstall.m4]) | |
866 m4_include([../libtool.m4]) | 977 m4_include([../libtool.m4]) |
867 m4_include([../ltoptions.m4]) | 978 m4_include([../ltoptions.m4]) |
868 m4_include([../ltsugar.m4]) | 979 m4_include([../ltsugar.m4]) |
869 m4_include([../ltversion.m4]) | 980 m4_include([../ltversion.m4]) |
870 m4_include([../lt~obsolete.m4]) | 981 m4_include([../lt~obsolete.m4]) |