]> git.proxmox.com Git - pve-manager.git/blob - aclocal.m4
imported from svn 'pve-manager/pve2'
[pve-manager.git] / aclocal.m4
1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009 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.
8
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.
13
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.67],,
17 [m4_warning([this file was generated for autoconf 2.67.
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 # nls.m4 serial 5 (gettext-0.18)
23 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
24 dnl Inc.
25 dnl This file is free software; the Free Software Foundation
26 dnl gives unlimited permission to copy and/or distribute it,
27 dnl with or without modifications, as long as this notice is preserved.
28 dnl
29 dnl This file can can be used in projects which are not available under
30 dnl the GNU General Public License or the GNU Library General Public
31 dnl License but which still want to provide support for the GNU gettext
32 dnl functionality.
33 dnl Please note that the actual code of the GNU gettext library is covered
34 dnl by the GNU Library General Public License, and the rest of the GNU
35 dnl gettext package package is covered by the GNU General Public License.
36 dnl They are *not* in the public domain.
37
38 dnl Authors:
39 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
40 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
41
42 AC_PREREQ([2.50])
43
44 AC_DEFUN([AM_NLS],
45 [
46 AC_MSG_CHECKING([whether NLS is requested])
47 dnl Default is enabled NLS
48 AC_ARG_ENABLE([nls],
49 [ --disable-nls do not use Native Language Support],
50 USE_NLS=$enableval, USE_NLS=yes)
51 AC_MSG_RESULT([$USE_NLS])
52 AC_SUBST([USE_NLS])
53 ])
54
55 # po.m4 serial 17 (gettext-0.18)
56 dnl Copyright (C) 1995-2010 Free Software Foundation, Inc.
57 dnl This file is free software; the Free Software Foundation
58 dnl gives unlimited permission to copy and/or distribute it,
59 dnl with or without modifications, as long as this notice is preserved.
60 dnl
61 dnl This file can can be used in projects which are not available under
62 dnl the GNU General Public License or the GNU Library General Public
63 dnl License but which still want to provide support for the GNU gettext
64 dnl functionality.
65 dnl Please note that the actual code of the GNU gettext library is covered
66 dnl by the GNU Library General Public License, and the rest of the GNU
67 dnl gettext package package is covered by the GNU General Public License.
68 dnl They are *not* in the public domain.
69
70 dnl Authors:
71 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
72 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
73
74 AC_PREREQ([2.50])
75
76 dnl Checks for all prerequisites of the po subdirectory.
77 AC_DEFUN([AM_PO_SUBDIRS],
78 [
79 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
80 AC_REQUIRE([AC_PROG_INSTALL])dnl
81 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
82 AC_REQUIRE([AM_NLS])dnl
83
84 dnl Release version of the gettext macros. This is used to ensure that
85 dnl the gettext macros and po/Makefile.in.in are in sync.
86 AC_SUBST([GETTEXT_MACRO_VERSION], [0.18])
87
88 dnl Perform the following tests also if --disable-nls has been given,
89 dnl because they are needed for "make dist" to work.
90
91 dnl Search for GNU msgfmt in the PATH.
92 dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions.
93 dnl The second test excludes FreeBSD msgfmt.
94 AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
95 [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
96 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
97 :)
98 AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT])
99
100 dnl Test whether it is GNU msgfmt >= 0.15.
101 changequote(,)dnl
102 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
103 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
104 *) MSGFMT_015=$MSGFMT ;;
105 esac
106 changequote([,])dnl
107 AC_SUBST([MSGFMT_015])
108 changequote(,)dnl
109 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
110 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
111 *) GMSGFMT_015=$GMSGFMT ;;
112 esac
113 changequote([,])dnl
114 AC_SUBST([GMSGFMT_015])
115
116 dnl Search for GNU xgettext 0.12 or newer in the PATH.
117 dnl The first test excludes Solaris xgettext and early GNU xgettext versions.
118 dnl The second test excludes FreeBSD xgettext.
119 AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
120 [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 &&
121 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)],
122 :)
123 dnl Remove leftover from FreeBSD xgettext call.
124 rm -f messages.po
125
126 dnl Test whether it is GNU xgettext >= 0.15.
127 changequote(,)dnl
128 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
129 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
130 *) XGETTEXT_015=$XGETTEXT ;;
131 esac
132 changequote([,])dnl
133 AC_SUBST([XGETTEXT_015])
134
135 dnl Search for GNU msgmerge 0.11 or newer in the PATH.
136 AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge,
137 [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :)
138
139 dnl Installation directories.
140 dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we
141 dnl have to define it here, so that it can be used in po/Makefile.
142 test -n "$localedir" || localedir='${datadir}/locale'
143 AC_SUBST([localedir])
144
145 dnl Support for AM_XGETTEXT_OPTION.
146 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
147 AC_SUBST([XGETTEXT_EXTRA_OPTIONS])
148
149 AC_CONFIG_COMMANDS([po-directories], [[
150 for ac_file in $CONFIG_FILES; do
151 # Support "outfile[:infile[:infile...]]"
152 case "$ac_file" in
153 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
154 esac
155 # PO directories have a Makefile.in generated from Makefile.in.in.
156 case "$ac_file" in */Makefile.in)
157 # Adjust a relative srcdir.
158 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
159 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
160 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
161 # In autoconf-2.13 it is called $ac_given_srcdir.
162 # In autoconf-2.50 it is called $srcdir.
163 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
164 case "$ac_given_srcdir" in
165 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
166 /*) top_srcdir="$ac_given_srcdir" ;;
167 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
168 esac
169 # Treat a directory as a PO directory if and only if it has a
170 # POTFILES.in file. This allows packages to have multiple PO
171 # directories under different names or in different locations.
172 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
173 rm -f "$ac_dir/POTFILES"
174 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
175 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
176 POMAKEFILEDEPS="POTFILES.in"
177 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
178 # on $ac_dir but don't depend on user-specified configuration
179 # parameters.
180 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
181 # The LINGUAS file contains the set of available languages.
182 if test -n "$OBSOLETE_ALL_LINGUAS"; then
183 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
184 fi
185 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
186 # Hide the ALL_LINGUAS assigment from automake < 1.5.
187 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
188 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
189 else
190 # The set of available languages was given in configure.in.
191 # Hide the ALL_LINGUAS assigment from automake < 1.5.
192 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
193 fi
194 # Compute POFILES
195 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
196 # Compute UPDATEPOFILES
197 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
198 # Compute DUMMYPOFILES
199 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
200 # Compute GMOFILES
201 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
202 case "$ac_given_srcdir" in
203 .) srcdirpre= ;;
204 *) srcdirpre='$(srcdir)/' ;;
205 esac
206 POFILES=
207 UPDATEPOFILES=
208 DUMMYPOFILES=
209 GMOFILES=
210 for lang in $ALL_LINGUAS; do
211 POFILES="$POFILES $srcdirpre$lang.po"
212 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
213 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
214 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
215 done
216 # CATALOGS depends on both $ac_dir and the user's LINGUAS
217 # environment variable.
218 INST_LINGUAS=
219 if test -n "$ALL_LINGUAS"; then
220 for presentlang in $ALL_LINGUAS; do
221 useit=no
222 if test "%UNSET%" != "$LINGUAS"; then
223 desiredlanguages="$LINGUAS"
224 else
225 desiredlanguages="$ALL_LINGUAS"
226 fi
227 for desiredlang in $desiredlanguages; do
228 # Use the presentlang catalog if desiredlang is
229 # a. equal to presentlang, or
230 # b. a variant of presentlang (because in this case,
231 # presentlang can be used as a fallback for messages
232 # which are not translated in the desiredlang catalog).
233 case "$desiredlang" in
234 "$presentlang"*) useit=yes;;
235 esac
236 done
237 if test $useit = yes; then
238 INST_LINGUAS="$INST_LINGUAS $presentlang"
239 fi
240 done
241 fi
242 CATALOGS=
243 if test -n "$INST_LINGUAS"; then
244 for lang in $INST_LINGUAS; do
245 CATALOGS="$CATALOGS $lang.gmo"
246 done
247 fi
248 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
249 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
250 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
251 if test -f "$f"; then
252 case "$f" in
253 *.orig | *.bak | *~) ;;
254 *) cat "$f" >> "$ac_dir/Makefile" ;;
255 esac
256 fi
257 done
258 fi
259 ;;
260 esac
261 done]],
262 [# Capture the value of obsolete ALL_LINGUAS because we need it to compute
263 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
264 # from automake < 1.5.
265 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
266 # Capture the value of LINGUAS because we need it to compute CATALOGS.
267 LINGUAS="${LINGUAS-%UNSET%}"
268 ])
269 ])
270
271 dnl Postprocesses a Makefile in a directory containing PO files.
272 AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE],
273 [
274 # When this code is run, in config.status, two variables have already been
275 # set:
276 # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in,
277 # - LINGUAS is the value of the environment variable LINGUAS at configure
278 # time.
279
280 changequote(,)dnl
281 # Adjust a relative srcdir.
282 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
283 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
284 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
285 # In autoconf-2.13 it is called $ac_given_srcdir.
286 # In autoconf-2.50 it is called $srcdir.
287 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
288 case "$ac_given_srcdir" in
289 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
290 /*) top_srcdir="$ac_given_srcdir" ;;
291 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
292 esac
293
294 # Find a way to echo strings without interpreting backslash.
295 if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then
296 gt_echo='echo'
297 else
298 if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then
299 gt_echo='printf %s\n'
300 else
301 echo_func () {
302 cat <<EOT
303 $*
304 EOT
305 }
306 gt_echo='echo_func'
307 fi
308 fi
309
310 # A sed script that extracts the value of VARIABLE from a Makefile.
311 sed_x_variable='
312 # Test if the hold space is empty.
313 x
314 s/P/P/
315 x
316 ta
317 # Yes it was empty. Look if we have the expected variable definition.
318 /^[ ]*VARIABLE[ ]*=/{
319 # Seen the first line of the variable definition.
320 s/^[ ]*VARIABLE[ ]*=//
321 ba
322 }
323 bd
324 :a
325 # Here we are processing a line from the variable definition.
326 # Remove comment, more precisely replace it with a space.
327 s/#.*$/ /
328 # See if the line ends in a backslash.
329 tb
330 :b
331 s/\\$//
332 # Print the line, without the trailing backslash.
333 p
334 tc
335 # There was no trailing backslash. The end of the variable definition is
336 # reached. Clear the hold space.
337 s/^.*$//
338 x
339 bd
340 :c
341 # A trailing backslash means that the variable definition continues in the
342 # next line. Put a nonempty string into the hold space to indicate this.
343 s/^.*$/P/
344 x
345 :d
346 '
347 changequote([,])dnl
348
349 # Set POTFILES to the value of the Makefile variable POTFILES.
350 sed_x_POTFILES=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/POTFILES/g'`
351 POTFILES=`sed -n -e "$sed_x_POTFILES" < "$ac_file"`
352 # Compute POTFILES_DEPS as
353 # $(foreach file, $(POTFILES), $(top_srcdir)/$(file))
354 POTFILES_DEPS=
355 for file in $POTFILES; do
356 POTFILES_DEPS="$POTFILES_DEPS "'$(top_srcdir)/'"$file"
357 done
358 POMAKEFILEDEPS=""
359
360 if test -n "$OBSOLETE_ALL_LINGUAS"; then
361 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
362 fi
363 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
364 # The LINGUAS file contains the set of available languages.
365 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
366 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
367 else
368 # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.
369 sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'`
370 ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"`
371 fi
372 # Hide the ALL_LINGUAS assigment from automake < 1.5.
373 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
374 # Compute POFILES
375 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
376 # Compute UPDATEPOFILES
377 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
378 # Compute DUMMYPOFILES
379 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
380 # Compute GMOFILES
381 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
382 # Compute PROPERTIESFILES
383 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties)
384 # Compute CLASSFILES
385 # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class)
386 # Compute QMFILES
387 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm)
388 # Compute MSGFILES
389 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang)).msg)
390 # Compute RESOURCESDLLFILES
391 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(frob $(lang))/$(DOMAIN).resources.dll)
392 case "$ac_given_srcdir" in
393 .) srcdirpre= ;;
394 *) srcdirpre='$(srcdir)/' ;;
395 esac
396 POFILES=
397 UPDATEPOFILES=
398 DUMMYPOFILES=
399 GMOFILES=
400 PROPERTIESFILES=
401 CLASSFILES=
402 QMFILES=
403 MSGFILES=
404 RESOURCESDLLFILES=
405 for lang in $ALL_LINGUAS; do
406 POFILES="$POFILES $srcdirpre$lang.po"
407 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
408 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
409 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
410 PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties"
411 CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class"
412 QMFILES="$QMFILES $srcdirpre$lang.qm"
413 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
414 MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg"
415 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
416 RESOURCESDLLFILES="$RESOURCESDLLFILES $srcdirpre$frobbedlang/\$(DOMAIN).resources.dll"
417 done
418 # CATALOGS depends on both $ac_dir and the user's LINGUAS
419 # environment variable.
420 INST_LINGUAS=
421 if test -n "$ALL_LINGUAS"; then
422 for presentlang in $ALL_LINGUAS; do
423 useit=no
424 if test "%UNSET%" != "$LINGUAS"; then
425 desiredlanguages="$LINGUAS"
426 else
427 desiredlanguages="$ALL_LINGUAS"
428 fi
429 for desiredlang in $desiredlanguages; do
430 # Use the presentlang catalog if desiredlang is
431 # a. equal to presentlang, or
432 # b. a variant of presentlang (because in this case,
433 # presentlang can be used as a fallback for messages
434 # which are not translated in the desiredlang catalog).
435 case "$desiredlang" in
436 "$presentlang"*) useit=yes;;
437 esac
438 done
439 if test $useit = yes; then
440 INST_LINGUAS="$INST_LINGUAS $presentlang"
441 fi
442 done
443 fi
444 CATALOGS=
445 JAVACATALOGS=
446 QTCATALOGS=
447 TCLCATALOGS=
448 CSHARPCATALOGS=
449 if test -n "$INST_LINGUAS"; then
450 for lang in $INST_LINGUAS; do
451 CATALOGS="$CATALOGS $lang.gmo"
452 JAVACATALOGS="$JAVACATALOGS \$(DOMAIN)_$lang.properties"
453 QTCATALOGS="$QTCATALOGS $lang.qm"
454 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
455 TCLCATALOGS="$TCLCATALOGS $frobbedlang.msg"
456 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
457 CSHARPCATALOGS="$CSHARPCATALOGS $frobbedlang/\$(DOMAIN).resources.dll"
458 done
459 fi
460
461 sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp"
462 if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then
463 # Add dependencies that cannot be formulated as a simple suffix rule.
464 for lang in $ALL_LINGUAS; do
465 frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
466 cat >> "$ac_file.tmp" <<EOF
467 $frobbedlang.msg: $lang.po
468 @echo "\$(MSGFMT) -c --tcl -d \$(srcdir) -l $lang $srcdirpre$lang.po"; \
469 \$(MSGFMT) -c --tcl -d "\$(srcdir)" -l $lang $srcdirpre$lang.po || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
470 EOF
471 done
472 fi
473 if grep -l '@CSHARPCATALOGS@' "$ac_file" > /dev/null; then
474 # Add dependencies that cannot be formulated as a simple suffix rule.
475 for lang in $ALL_LINGUAS; do
476 frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'`
477 cat >> "$ac_file.tmp" <<EOF
478 $frobbedlang/\$(DOMAIN).resources.dll: $lang.po
479 @echo "\$(MSGFMT) -c --csharp -d \$(srcdir) -l $lang $srcdirpre$lang.po -r \$(DOMAIN)"; \
480 \$(MSGFMT) -c --csharp -d "\$(srcdir)" -l $lang $srcdirpre$lang.po -r "\$(DOMAIN)" || { rm -f "\$(srcdir)/$frobbedlang.msg"; exit 1; }
481 EOF
482 done
483 fi
484 if test -n "$POMAKEFILEDEPS"; then
485 cat >> "$ac_file.tmp" <<EOF
486 Makefile: $POMAKEFILEDEPS
487 EOF
488 fi
489 mv "$ac_file.tmp" "$ac_file"
490 ])
491
492 dnl Initializes the accumulator used by AM_XGETTEXT_OPTION.
493 AC_DEFUN([AM_XGETTEXT_OPTION_INIT],
494 [
495 XGETTEXT_EXTRA_OPTIONS=
496 ])
497
498 dnl Registers an option to be passed to xgettext in the po subdirectory.
499 AC_DEFUN([AM_XGETTEXT_OPTION],
500 [
501 AC_REQUIRE([AM_XGETTEXT_OPTION_INIT])
502 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS $1"
503 ])
504
505 # progtest.m4 serial 6 (gettext-0.18)
506 dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc.
507 dnl This file is free software; the Free Software Foundation
508 dnl gives unlimited permission to copy and/or distribute it,
509 dnl with or without modifications, as long as this notice is preserved.
510 dnl
511 dnl This file can can be used in projects which are not available under
512 dnl the GNU General Public License or the GNU Library General Public
513 dnl License but which still want to provide support for the GNU gettext
514 dnl functionality.
515 dnl Please note that the actual code of the GNU gettext library is covered
516 dnl by the GNU Library General Public License, and the rest of the GNU
517 dnl gettext package package is covered by the GNU General Public License.
518 dnl They are *not* in the public domain.
519
520 dnl Authors:
521 dnl Ulrich Drepper <drepper@cygnus.com>, 1996.
522
523 AC_PREREQ([2.50])
524
525 # Search path for a program which passes the given test.
526
527 dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
528 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
529 AC_DEFUN([AM_PATH_PROG_WITH_TEST],
530 [
531 # Prepare PATH_SEPARATOR.
532 # The user is always right.
533 if test "${PATH_SEPARATOR+set}" != set; then
534 echo "#! /bin/sh" >conf$$.sh
535 echo "exit 0" >>conf$$.sh
536 chmod +x conf$$.sh
537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
538 PATH_SEPARATOR=';'
539 else
540 PATH_SEPARATOR=:
541 fi
542 rm -f conf$$.sh
543 fi
544
545 # Find out how to test for executable files. Don't use a zero-byte file,
546 # as systems may use methods other than mode bits to determine executability.
547 cat >conf$$.file <<_ASEOF
548 #! /bin/sh
549 exit 0
550 _ASEOF
551 chmod +x conf$$.file
552 if test -x conf$$.file >/dev/null 2>&1; then
553 ac_executable_p="test -x"
554 else
555 ac_executable_p="test -f"
556 fi
557 rm -f conf$$.file
558
559 # Extract the first word of "$2", so it can be a program name with args.
560 set dummy $2; ac_word=[$]2
561 AC_MSG_CHECKING([for $ac_word])
562 AC_CACHE_VAL([ac_cv_path_$1],
563 [case "[$]$1" in
564 [[\\/]]* | ?:[[\\/]]*)
565 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
566 ;;
567 *)
568 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
569 for ac_dir in ifelse([$5], , $PATH, [$5]); do
570 IFS="$ac_save_IFS"
571 test -z "$ac_dir" && ac_dir=.
572 for ac_exec_ext in '' $ac_executable_extensions; do
573 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
574 echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD
575 if [$3]; then
576 ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext"
577 break 2
578 fi
579 fi
580 done
581 done
582 IFS="$ac_save_IFS"
583 dnl If no 4th arg is given, leave the cache variable unset,
584 dnl so AC_PATH_PROGS will keep looking.
585 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
586 ])dnl
587 ;;
588 esac])dnl
589 $1="$ac_cv_path_$1"
590 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
591 AC_MSG_RESULT([$][$1])
592 else
593 AC_MSG_RESULT([no])
594 fi
595 AC_SUBST([$1])dnl
596 ])
597
598 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
599 #
600 # This file is free software; the Free Software Foundation
601 # gives unlimited permission to copy and/or distribute it,
602 # with or without modifications, as long as this notice is preserved.
603
604 # AM_AUTOMAKE_VERSION(VERSION)
605 # ----------------------------
606 # Automake X.Y traces this macro to ensure aclocal.m4 has been
607 # generated from the m4 files accompanying Automake X.Y.
608 # (This private macro should not be called outside this file.)
609 AC_DEFUN([AM_AUTOMAKE_VERSION],
610 [am__api_version='1.11'
611 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
612 dnl require some minimum version. Point them to the right macro.
613 m4_if([$1], [1.11.1], [],
614 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
615 ])
616
617 # _AM_AUTOCONF_VERSION(VERSION)
618 # -----------------------------
619 # aclocal traces this macro to find the Autoconf version.
620 # This is a private macro too. Using m4_define simplifies
621 # the logic in aclocal, which can simply ignore this definition.
622 m4_define([_AM_AUTOCONF_VERSION], [])
623
624 # AM_SET_CURRENT_AUTOMAKE_VERSION
625 # -------------------------------
626 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
627 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
628 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
629 [AM_AUTOMAKE_VERSION([1.11.1])dnl
630 m4_ifndef([AC_AUTOCONF_VERSION],
631 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
632 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
633
634 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
635
636 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
637 #
638 # This file is free software; the Free Software Foundation
639 # gives unlimited permission to copy and/or distribute it,
640 # with or without modifications, as long as this notice is preserved.
641
642 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
643 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
644 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
645 #
646 # Of course, Automake must honor this variable whenever it calls a
647 # tool from the auxiliary directory. The problem is that $srcdir (and
648 # therefore $ac_aux_dir as well) can be either absolute or relative,
649 # depending on how configure is run. This is pretty annoying, since
650 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
651 # source directory, any form will work fine, but in subdirectories a
652 # relative path needs to be adjusted first.
653 #
654 # $ac_aux_dir/missing
655 # fails when called from a subdirectory if $ac_aux_dir is relative
656 # $top_srcdir/$ac_aux_dir/missing
657 # fails if $ac_aux_dir is absolute,
658 # fails when called from a subdirectory in a VPATH build with
659 # a relative $ac_aux_dir
660 #
661 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
662 # are both prefixed by $srcdir. In an in-source build this is usually
663 # harmless because $srcdir is `.', but things will broke when you
664 # start a VPATH build or use an absolute $srcdir.
665 #
666 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
667 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
668 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
669 # and then we would define $MISSING as
670 # MISSING="\${SHELL} $am_aux_dir/missing"
671 # This will work as long as MISSING is not called from configure, because
672 # unfortunately $(top_srcdir) has no meaning in configure.
673 # However there are other variables, like CC, which are often used in
674 # configure, and could therefore not use this "fixed" $ac_aux_dir.
675 #
676 # Another solution, used here, is to always expand $ac_aux_dir to an
677 # absolute PATH. The drawback is that using absolute paths prevent a
678 # configured tree to be moved without reconfiguration.
679
680 AC_DEFUN([AM_AUX_DIR_EXPAND],
681 [dnl Rely on autoconf to set up CDPATH properly.
682 AC_PREREQ([2.50])dnl
683 # expand $ac_aux_dir to an absolute path
684 am_aux_dir=`cd $ac_aux_dir && pwd`
685 ])
686
687 # AM_CONDITIONAL -*- Autoconf -*-
688
689 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
690 # Free Software Foundation, Inc.
691 #
692 # This file is free software; the Free Software Foundation
693 # gives unlimited permission to copy and/or distribute it,
694 # with or without modifications, as long as this notice is preserved.
695
696 # serial 9
697
698 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
699 # -------------------------------------
700 # Define a conditional.
701 AC_DEFUN([AM_CONDITIONAL],
702 [AC_PREREQ(2.52)dnl
703 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
704 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
705 AC_SUBST([$1_TRUE])dnl
706 AC_SUBST([$1_FALSE])dnl
707 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
708 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
709 m4_define([_AM_COND_VALUE_$1], [$2])dnl
710 if $2; then
711 $1_TRUE=
712 $1_FALSE='#'
713 else
714 $1_TRUE='#'
715 $1_FALSE=
716 fi
717 AC_CONFIG_COMMANDS_PRE(
718 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
719 AC_MSG_ERROR([[conditional "$1" was never defined.
720 Usually this means the macro was only invoked conditionally.]])
721 fi])])
722
723 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
724 # Free Software Foundation, Inc.
725 #
726 # This file is free software; the Free Software Foundation
727 # gives unlimited permission to copy and/or distribute it,
728 # with or without modifications, as long as this notice is preserved.
729
730 # serial 10
731
732 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
733 # written in clear, in which case automake, when reading aclocal.m4,
734 # will think it sees a *use*, and therefore will trigger all it's
735 # C support machinery. Also note that it means that autoscan, seeing
736 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
737
738
739 # _AM_DEPENDENCIES(NAME)
740 # ----------------------
741 # See how the compiler implements dependency checking.
742 # NAME is "CC", "CXX", "GCJ", or "OBJC".
743 # We try a few techniques and use that to set a single cache variable.
744 #
745 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
746 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
747 # dependency, and given that the user is not expected to run this macro,
748 # just rely on AC_PROG_CC.
749 AC_DEFUN([_AM_DEPENDENCIES],
750 [AC_REQUIRE([AM_SET_DEPDIR])dnl
751 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
752 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
753 AC_REQUIRE([AM_DEP_TRACK])dnl
754
755 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
756 [$1], CXX, [depcc="$CXX" am_compiler_list=],
757 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
758 [$1], UPC, [depcc="$UPC" am_compiler_list=],
759 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
760 [depcc="$$1" am_compiler_list=])
761
762 AC_CACHE_CHECK([dependency style of $depcc],
763 [am_cv_$1_dependencies_compiler_type],
764 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
765 # We make a subdir and do the tests there. Otherwise we can end up
766 # making bogus files that we don't know about and never remove. For
767 # instance it was reported that on HP-UX the gcc test will end up
768 # making a dummy file named `D' -- because `-MD' means `put the output
769 # in D'.
770 mkdir conftest.dir
771 # Copy depcomp to subdir because otherwise we won't find it if we're
772 # using a relative directory.
773 cp "$am_depcomp" conftest.dir
774 cd conftest.dir
775 # We will build objects and dependencies in a subdirectory because
776 # it helps to detect inapplicable dependency modes. For instance
777 # both Tru64's cc and ICC support -MD to output dependencies as a
778 # side effect of compilation, but ICC will put the dependencies in
779 # the current directory while Tru64 will put them in the object
780 # directory.
781 mkdir sub
782
783 am_cv_$1_dependencies_compiler_type=none
784 if test "$am_compiler_list" = ""; then
785 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
786 fi
787 am__universal=false
788 m4_case([$1], [CC],
789 [case " $depcc " in #(
790 *\ -arch\ *\ -arch\ *) am__universal=true ;;
791 esac],
792 [CXX],
793 [case " $depcc " in #(
794 *\ -arch\ *\ -arch\ *) am__universal=true ;;
795 esac])
796
797 for depmode in $am_compiler_list; do
798 # Setup a source with many dependencies, because some compilers
799 # like to wrap large dependency lists on column 80 (with \), and
800 # we should not choose a depcomp mode which is confused by this.
801 #
802 # We need to recreate these files for each test, as the compiler may
803 # overwrite some of them when testing with obscure command lines.
804 # This happens at least with the AIX C compiler.
805 : > sub/conftest.c
806 for i in 1 2 3 4 5 6; do
807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
808 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
809 # Solaris 8's {/usr,}/bin/sh.
810 touch sub/conftst$i.h
811 done
812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
813
814 # We check with `-c' and `-o' for the sake of the "dashmstdout"
815 # mode. It turns out that the SunPro C++ compiler does not properly
816 # handle `-M -o', and we need to detect this. Also, some Intel
817 # versions had trouble with output in subdirs
818 am__obj=sub/conftest.${OBJEXT-o}
819 am__minus_obj="-o $am__obj"
820 case $depmode in
821 gcc)
822 # This depmode causes a compiler race in universal mode.
823 test "$am__universal" = false || continue
824 ;;
825 nosideeffect)
826 # after this tag, mechanisms are not by side-effect, so they'll
827 # only be used when explicitly requested
828 if test "x$enable_dependency_tracking" = xyes; then
829 continue
830 else
831 break
832 fi
833 ;;
834 msvisualcpp | msvcmsys)
835 # This compiler won't grok `-c -o', but also, the minuso test has
836 # not run yet. These depmodes are late enough in the game, and
837 # so weak that their functioning should not be impacted.
838 am__obj=conftest.${OBJEXT-o}
839 am__minus_obj=
840 ;;
841 none) break ;;
842 esac
843 if depmode=$depmode \
844 source=sub/conftest.c object=$am__obj \
845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
847 >/dev/null 2>conftest.err &&
848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
852 # icc doesn't choke on unknown options, it will just issue warnings
853 # or remarks (even with -Werror). So we grep stderr for any message
854 # that says an option was ignored or not supported.
855 # When given -MP, icc 7.0 and 7.1 complain thusly:
856 # icc: Command line warning: ignoring option '-M'; no argument required
857 # The diagnosis changed in icc 8.0:
858 # icc: Command line remark: option '-MP' not supported
859 if (grep 'ignoring option' conftest.err ||
860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
861 am_cv_$1_dependencies_compiler_type=$depmode
862 break
863 fi
864 fi
865 done
866
867 cd ..
868 rm -rf conftest.dir
869 else
870 am_cv_$1_dependencies_compiler_type=none
871 fi
872 ])
873 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
874 AM_CONDITIONAL([am__fastdep$1], [
875 test "x$enable_dependency_tracking" != xno \
876 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
877 ])
878
879
880 # AM_SET_DEPDIR
881 # -------------
882 # Choose a directory name for dependency files.
883 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
884 AC_DEFUN([AM_SET_DEPDIR],
885 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
886 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
887 ])
888
889
890 # AM_DEP_TRACK
891 # ------------
892 AC_DEFUN([AM_DEP_TRACK],
893 [AC_ARG_ENABLE(dependency-tracking,
894 [ --disable-dependency-tracking speeds up one-time build
895 --enable-dependency-tracking do not reject slow dependency extractors])
896 if test "x$enable_dependency_tracking" != xno; then
897 am_depcomp="$ac_aux_dir/depcomp"
898 AMDEPBACKSLASH='\'
899 fi
900 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
901 AC_SUBST([AMDEPBACKSLASH])dnl
902 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
903 ])
904
905 # Generate code to set up dependency tracking. -*- Autoconf -*-
906
907 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
908 # Free Software Foundation, Inc.
909 #
910 # This file is free software; the Free Software Foundation
911 # gives unlimited permission to copy and/or distribute it,
912 # with or without modifications, as long as this notice is preserved.
913
914 #serial 5
915
916 # _AM_OUTPUT_DEPENDENCY_COMMANDS
917 # ------------------------------
918 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
919 [{
920 # Autoconf 2.62 quotes --file arguments for eval, but not when files
921 # are listed without --file. Let's play safe and only enable the eval
922 # if we detect the quoting.
923 case $CONFIG_FILES in
924 *\'*) eval set x "$CONFIG_FILES" ;;
925 *) set x $CONFIG_FILES ;;
926 esac
927 shift
928 for mf
929 do
930 # Strip MF so we end up with the name of the file.
931 mf=`echo "$mf" | sed -e 's/:.*$//'`
932 # Check whether this is an Automake generated Makefile or not.
933 # We used to match only the files named `Makefile.in', but
934 # some people rename them; so instead we look at the file content.
935 # Grep'ing the first line is not enough: some people post-process
936 # each Makefile.in and add a new line on top of each file to say so.
937 # Grep'ing the whole file is not good either: AIX grep has a line
938 # limit of 2048, but all sed's we know have understand at least 4000.
939 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
940 dirpart=`AS_DIRNAME("$mf")`
941 else
942 continue
943 fi
944 # Extract the definition of DEPDIR, am__include, and am__quote
945 # from the Makefile without running `make'.
946 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
947 test -z "$DEPDIR" && continue
948 am__include=`sed -n 's/^am__include = //p' < "$mf"`
949 test -z "am__include" && continue
950 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
951 # When using ansi2knr, U may be empty or an underscore; expand it
952 U=`sed -n 's/^U = //p' < "$mf"`
953 # Find all dependency output files, they are included files with
954 # $(DEPDIR) in their names. We invoke sed twice because it is the
955 # simplest approach to changing $(DEPDIR) to its actual value in the
956 # expansion.
957 for file in `sed -n "
958 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
959 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
960 # Make sure the directory exists.
961 test -f "$dirpart/$file" && continue
962 fdir=`AS_DIRNAME(["$file"])`
963 AS_MKDIR_P([$dirpart/$fdir])
964 # echo "creating $dirpart/$file"
965 echo '# dummy' > "$dirpart/$file"
966 done
967 done
968 }
969 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
970
971
972 # AM_OUTPUT_DEPENDENCY_COMMANDS
973 # -----------------------------
974 # This macro should only be invoked once -- use via AC_REQUIRE.
975 #
976 # This code is only required when automatic dependency tracking
977 # is enabled. FIXME. This creates each `.P' file that we will
978 # need in order to bootstrap the dependency handling code.
979 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
980 [AC_CONFIG_COMMANDS([depfiles],
981 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
982 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
983 ])
984
985 # Do all the work for Automake. -*- Autoconf -*-
986
987 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
988 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
989 #
990 # This file is free software; the Free Software Foundation
991 # gives unlimited permission to copy and/or distribute it,
992 # with or without modifications, as long as this notice is preserved.
993
994 # serial 16
995
996 # This macro actually does too much. Some checks are only needed if
997 # your package does certain things. But this isn't really a big deal.
998
999 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1000 # AM_INIT_AUTOMAKE([OPTIONS])
1001 # -----------------------------------------------
1002 # The call with PACKAGE and VERSION arguments is the old style
1003 # call (pre autoconf-2.50), which is being phased out. PACKAGE
1004 # and VERSION should now be passed to AC_INIT and removed from
1005 # the call to AM_INIT_AUTOMAKE.
1006 # We support both call styles for the transition. After
1007 # the next Automake release, Autoconf can make the AC_INIT
1008 # arguments mandatory, and then we can depend on a new Autoconf
1009 # release and drop the old call support.
1010 AC_DEFUN([AM_INIT_AUTOMAKE],
1011 [AC_PREREQ([2.62])dnl
1012 dnl Autoconf wants to disallow AM_ names. We explicitly allow
1013 dnl the ones we care about.
1014 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1015 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1016 AC_REQUIRE([AC_PROG_INSTALL])dnl
1017 if test "`cd $srcdir && pwd`" != "`pwd`"; then
1018 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1019 # is not polluted with repeated "-I."
1020 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1021 # test to see if srcdir already configured
1022 if test -f $srcdir/config.status; then
1023 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1024 fi
1025 fi
1026
1027 # test whether we have cygpath
1028 if test -z "$CYGPATH_W"; then
1029 if (cygpath --version) >/dev/null 2>/dev/null; then
1030 CYGPATH_W='cygpath -w'
1031 else
1032 CYGPATH_W=echo
1033 fi
1034 fi
1035 AC_SUBST([CYGPATH_W])
1036
1037 # Define the identity of the package.
1038 dnl Distinguish between old-style and new-style calls.
1039 m4_ifval([$2],
1040 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1041 AC_SUBST([PACKAGE], [$1])dnl
1042 AC_SUBST([VERSION], [$2])],
1043 [_AM_SET_OPTIONS([$1])dnl
1044 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1045 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1046 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1047 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1048 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1049
1050 _AM_IF_OPTION([no-define],,
1051 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1052 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1053
1054 # Some tools Automake needs.
1055 AC_REQUIRE([AM_SANITY_CHECK])dnl
1056 AC_REQUIRE([AC_ARG_PROGRAM])dnl
1057 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1058 AM_MISSING_PROG(AUTOCONF, autoconf)
1059 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1060 AM_MISSING_PROG(AUTOHEADER, autoheader)
1061 AM_MISSING_PROG(MAKEINFO, makeinfo)
1062 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1063 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1064 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1065 # We need awk for the "check" target. The system "awk" is bad on
1066 # some platforms.
1067 AC_REQUIRE([AC_PROG_AWK])dnl
1068 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1069 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1070 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1071 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1072 [_AM_PROG_TAR([v7])])])
1073 _AM_IF_OPTION([no-dependencies],,
1074 [AC_PROVIDE_IFELSE([AC_PROG_CC],
1075 [_AM_DEPENDENCIES(CC)],
1076 [define([AC_PROG_CC],
1077 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1078 AC_PROVIDE_IFELSE([AC_PROG_CXX],
1079 [_AM_DEPENDENCIES(CXX)],
1080 [define([AC_PROG_CXX],
1081 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1082 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1083 [_AM_DEPENDENCIES(OBJC)],
1084 [define([AC_PROG_OBJC],
1085 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1086 ])
1087 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1088 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1089 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1090 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1091 AC_CONFIG_COMMANDS_PRE(dnl
1092 [m4_provide_if([_AM_COMPILER_EXEEXT],
1093 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1094 ])
1095
1096 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1097 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1098 dnl mangled by Autoconf and run in a shell conditional statement.
1099 m4_define([_AC_COMPILER_EXEEXT],
1100 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1101
1102
1103 # When config.status generates a header, we must update the stamp-h file.
1104 # This file resides in the same directory as the config header
1105 # that is generated. The stamp files are numbered to have different names.
1106
1107 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1108 # loop where config.status creates the headers, so we can generate
1109 # our stamp files there.
1110 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1111 [# Compute $1's index in $config_headers.
1112 _am_arg=$1
1113 _am_stamp_count=1
1114 for _am_header in $config_headers :; do
1115 case $_am_header in
1116 $_am_arg | $_am_arg:* )
1117 break ;;
1118 * )
1119 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1120 esac
1121 done
1122 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1123
1124 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
1125 #
1126 # This file is free software; the Free Software Foundation
1127 # gives unlimited permission to copy and/or distribute it,
1128 # with or without modifications, as long as this notice is preserved.
1129
1130 # AM_PROG_INSTALL_SH
1131 # ------------------
1132 # Define $install_sh.
1133 AC_DEFUN([AM_PROG_INSTALL_SH],
1134 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1135 if test x"${install_sh}" != xset; then
1136 case $am_aux_dir in
1137 *\ * | *\ *)
1138 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1139 *)
1140 install_sh="\${SHELL} $am_aux_dir/install-sh"
1141 esac
1142 fi
1143 AC_SUBST(install_sh)])
1144
1145 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1146 #
1147 # This file is free software; the Free Software Foundation
1148 # gives unlimited permission to copy and/or distribute it,
1149 # with or without modifications, as long as this notice is preserved.
1150
1151 # serial 2
1152
1153 # Check whether the underlying file-system supports filenames
1154 # with a leading dot. For instance MS-DOS doesn't.
1155 AC_DEFUN([AM_SET_LEADING_DOT],
1156 [rm -rf .tst 2>/dev/null
1157 mkdir .tst 2>/dev/null
1158 if test -d .tst; then
1159 am__leading_dot=.
1160 else
1161 am__leading_dot=_
1162 fi
1163 rmdir .tst 2>/dev/null
1164 AC_SUBST([am__leading_dot])])
1165
1166 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1167 # From Jim Meyering
1168
1169 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
1170 # Free Software Foundation, Inc.
1171 #
1172 # This file is free software; the Free Software Foundation
1173 # gives unlimited permission to copy and/or distribute it,
1174 # with or without modifications, as long as this notice is preserved.
1175
1176 # serial 5
1177
1178 # AM_MAINTAINER_MODE([DEFAULT-MODE])
1179 # ----------------------------------
1180 # Control maintainer-specific portions of Makefiles.
1181 # Default is to disable them, unless `enable' is passed literally.
1182 # For symmetry, `disable' may be passed as well. Anyway, the user
1183 # can override the default with the --enable/--disable switch.
1184 AC_DEFUN([AM_MAINTAINER_MODE],
1185 [m4_case(m4_default([$1], [disable]),
1186 [enable], [m4_define([am_maintainer_other], [disable])],
1187 [disable], [m4_define([am_maintainer_other], [enable])],
1188 [m4_define([am_maintainer_other], [enable])
1189 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1190 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
1191 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1192 AC_ARG_ENABLE([maintainer-mode],
1193 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
1194 (and sometimes confusing) to the casual installer],
1195 [USE_MAINTAINER_MODE=$enableval],
1196 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1197 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1198 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1199 MAINT=$MAINTAINER_MODE_TRUE
1200 AC_SUBST([MAINT])dnl
1201 ]
1202 )
1203
1204 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1205
1206 # Check to see how 'make' treats includes. -*- Autoconf -*-
1207
1208 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1209 #
1210 # This file is free software; the Free Software Foundation
1211 # gives unlimited permission to copy and/or distribute it,
1212 # with or without modifications, as long as this notice is preserved.
1213
1214 # serial 4
1215
1216 # AM_MAKE_INCLUDE()
1217 # -----------------
1218 # Check to see how make treats includes.
1219 AC_DEFUN([AM_MAKE_INCLUDE],
1220 [am_make=${MAKE-make}
1221 cat > confinc << 'END'
1222 am__doit:
1223 @echo this is the am__doit target
1224 .PHONY: am__doit
1225 END
1226 # If we don't find an include directive, just comment out the code.
1227 AC_MSG_CHECKING([for style of include used by $am_make])
1228 am__include="#"
1229 am__quote=
1230 _am_result=none
1231 # First try GNU make style include.
1232 echo "include confinc" > confmf
1233 # Ignore all kinds of additional output from `make'.
1234 case `$am_make -s -f confmf 2> /dev/null` in #(
1235 *the\ am__doit\ target*)
1236 am__include=include
1237 am__quote=
1238 _am_result=GNU
1239 ;;
1240 esac
1241 # Now try BSD make style include.
1242 if test "$am__include" = "#"; then
1243 echo '.include "confinc"' > confmf
1244 case `$am_make -s -f confmf 2> /dev/null` in #(
1245 *the\ am__doit\ target*)
1246 am__include=.include
1247 am__quote="\""
1248 _am_result=BSD
1249 ;;
1250 esac
1251 fi
1252 AC_SUBST([am__include])
1253 AC_SUBST([am__quote])
1254 AC_MSG_RESULT([$_am_result])
1255 rm -f confinc confmf
1256 ])
1257
1258 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1259
1260 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1261 # Free Software Foundation, Inc.
1262 #
1263 # This file is free software; the Free Software Foundation
1264 # gives unlimited permission to copy and/or distribute it,
1265 # with or without modifications, as long as this notice is preserved.
1266
1267 # serial 6
1268
1269 # AM_MISSING_PROG(NAME, PROGRAM)
1270 # ------------------------------
1271 AC_DEFUN([AM_MISSING_PROG],
1272 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1273 $1=${$1-"${am_missing_run}$2"}
1274 AC_SUBST($1)])
1275
1276
1277 # AM_MISSING_HAS_RUN
1278 # ------------------
1279 # Define MISSING if not defined so far and test if it supports --run.
1280 # If it does, set am_missing_run to use it, otherwise, to nothing.
1281 AC_DEFUN([AM_MISSING_HAS_RUN],
1282 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1283 AC_REQUIRE_AUX_FILE([missing])dnl
1284 if test x"${MISSING+set}" != xset; then
1285 case $am_aux_dir in
1286 *\ * | *\ *)
1287 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1288 *)
1289 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1290 esac
1291 fi
1292 # Use eval to expand $SHELL
1293 if eval "$MISSING --run true"; then
1294 am_missing_run="$MISSING --run "
1295 else
1296 am_missing_run=
1297 AC_MSG_WARN([`missing' script is too old or missing])
1298 fi
1299 ])
1300
1301 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1302 #
1303 # This file is free software; the Free Software Foundation
1304 # gives unlimited permission to copy and/or distribute it,
1305 # with or without modifications, as long as this notice is preserved.
1306
1307 # AM_PROG_MKDIR_P
1308 # ---------------
1309 # Check for `mkdir -p'.
1310 AC_DEFUN([AM_PROG_MKDIR_P],
1311 [AC_PREREQ([2.60])dnl
1312 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1313 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1314 dnl while keeping a definition of mkdir_p for backward compatibility.
1315 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1316 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1317 dnl Makefile.ins that do not define MKDIR_P, so we do our own
1318 dnl adjustment using top_builddir (which is defined more often than
1319 dnl MKDIR_P).
1320 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1321 case $mkdir_p in
1322 [[\\/$]]* | ?:[[\\/]]*) ;;
1323 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1324 esac
1325 ])
1326
1327 # Helper functions for option handling. -*- Autoconf -*-
1328
1329 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
1330 #
1331 # This file is free software; the Free Software Foundation
1332 # gives unlimited permission to copy and/or distribute it,
1333 # with or without modifications, as long as this notice is preserved.
1334
1335 # serial 4
1336
1337 # _AM_MANGLE_OPTION(NAME)
1338 # -----------------------
1339 AC_DEFUN([_AM_MANGLE_OPTION],
1340 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1341
1342 # _AM_SET_OPTION(NAME)
1343 # ------------------------------
1344 # Set option NAME. Presently that only means defining a flag for this option.
1345 AC_DEFUN([_AM_SET_OPTION],
1346 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1347
1348 # _AM_SET_OPTIONS(OPTIONS)
1349 # ----------------------------------
1350 # OPTIONS is a space-separated list of Automake options.
1351 AC_DEFUN([_AM_SET_OPTIONS],
1352 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1353
1354 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1355 # -------------------------------------------
1356 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1357 AC_DEFUN([_AM_IF_OPTION],
1358 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1359
1360 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1361
1362 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1363 # Free Software Foundation, Inc.
1364 #
1365 # This file is free software; the Free Software Foundation
1366 # gives unlimited permission to copy and/or distribute it,
1367 # with or without modifications, as long as this notice is preserved.
1368
1369 # serial 5
1370
1371 # AM_SANITY_CHECK
1372 # ---------------
1373 AC_DEFUN([AM_SANITY_CHECK],
1374 [AC_MSG_CHECKING([whether build environment is sane])
1375 # Just in case
1376 sleep 1
1377 echo timestamp > conftest.file
1378 # Reject unsafe characters in $srcdir or the absolute working directory
1379 # name. Accept space and tab only in the latter.
1380 am_lf='
1381 '
1382 case `pwd` in
1383 *[[\\\"\#\$\&\'\`$am_lf]]*)
1384 AC_MSG_ERROR([unsafe absolute working directory name]);;
1385 esac
1386 case $srcdir in
1387 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1388 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1389 esac
1390
1391 # Do `set' in a subshell so we don't clobber the current shell's
1392 # arguments. Must try -L first in case configure is actually a
1393 # symlink; some systems play weird games with the mod time of symlinks
1394 # (eg FreeBSD returns the mod time of the symlink's containing
1395 # directory).
1396 if (
1397 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1398 if test "$[*]" = "X"; then
1399 # -L didn't work.
1400 set X `ls -t "$srcdir/configure" conftest.file`
1401 fi
1402 rm -f conftest.file
1403 if test "$[*]" != "X $srcdir/configure conftest.file" \
1404 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1405
1406 # If neither matched, then we have a broken ls. This can happen
1407 # if, for instance, CONFIG_SHELL is bash and it inherits a
1408 # broken ls alias from the environment. This has actually
1409 # happened. Such a system could not be considered "sane".
1410 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1411 alias in your environment])
1412 fi
1413
1414 test "$[2]" = conftest.file
1415 )
1416 then
1417 # Ok.
1418 :
1419 else
1420 AC_MSG_ERROR([newly created file is older than distributed files!
1421 Check your system clock])
1422 fi
1423 AC_MSG_RESULT(yes)])
1424
1425 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1426 #
1427 # This file is free software; the Free Software Foundation
1428 # gives unlimited permission to copy and/or distribute it,
1429 # with or without modifications, as long as this notice is preserved.
1430
1431 # AM_PROG_INSTALL_STRIP
1432 # ---------------------
1433 # One issue with vendor `install' (even GNU) is that you can't
1434 # specify the program used to strip binaries. This is especially
1435 # annoying in cross-compiling environments, where the build's strip
1436 # is unlikely to handle the host's binaries.
1437 # Fortunately install-sh will honor a STRIPPROG variable, so we
1438 # always use install-sh in `make install-strip', and initialize
1439 # STRIPPROG with the value of the STRIP variable (set by the user).
1440 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1441 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1442 # Installed binaries are usually stripped using `strip' when the user
1443 # run `make install-strip'. However `strip' might not be the right
1444 # tool to use in cross-compilation environments, therefore Automake
1445 # will honor the `STRIP' environment variable to overrule this program.
1446 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1447 if test "$cross_compiling" != no; then
1448 AC_CHECK_TOOL([STRIP], [strip], :)
1449 fi
1450 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1451 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1452
1453 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1454 #
1455 # This file is free software; the Free Software Foundation
1456 # gives unlimited permission to copy and/or distribute it,
1457 # with or without modifications, as long as this notice is preserved.
1458
1459 # serial 2
1460
1461 # _AM_SUBST_NOTMAKE(VARIABLE)
1462 # ---------------------------
1463 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1464 # This macro is traced by Automake.
1465 AC_DEFUN([_AM_SUBST_NOTMAKE])
1466
1467 # AM_SUBST_NOTMAKE(VARIABLE)
1468 # ---------------------------
1469 # Public sister of _AM_SUBST_NOTMAKE.
1470 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1471
1472 # Check how to create a tarball. -*- Autoconf -*-
1473
1474 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1475 #
1476 # This file is free software; the Free Software Foundation
1477 # gives unlimited permission to copy and/or distribute it,
1478 # with or without modifications, as long as this notice is preserved.
1479
1480 # serial 2
1481
1482 # _AM_PROG_TAR(FORMAT)
1483 # --------------------
1484 # Check how to create a tarball in format FORMAT.
1485 # FORMAT should be one of `v7', `ustar', or `pax'.
1486 #
1487 # Substitute a variable $(am__tar) that is a command
1488 # writing to stdout a FORMAT-tarball containing the directory
1489 # $tardir.
1490 # tardir=directory && $(am__tar) > result.tar
1491 #
1492 # Substitute a variable $(am__untar) that extract such
1493 # a tarball read from stdin.
1494 # $(am__untar) < result.tar
1495 AC_DEFUN([_AM_PROG_TAR],
1496 [# Always define AMTAR for backward compatibility.
1497 AM_MISSING_PROG([AMTAR], [tar])
1498 m4_if([$1], [v7],
1499 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1500 [m4_case([$1], [ustar],, [pax],,
1501 [m4_fatal([Unknown tar format])])
1502 AC_MSG_CHECKING([how to create a $1 tar archive])
1503 # Loop over all known methods to create a tar archive until one works.
1504 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1505 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1506 # Do not fold the above two line into one, because Tru64 sh and
1507 # Solaris sh will not grok spaces in the rhs of `-'.
1508 for _am_tool in $_am_tools
1509 do
1510 case $_am_tool in
1511 gnutar)
1512 for _am_tar in tar gnutar gtar;
1513 do
1514 AM_RUN_LOG([$_am_tar --version]) && break
1515 done
1516 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1517 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1518 am__untar="$_am_tar -xf -"
1519 ;;
1520 plaintar)
1521 # Must skip GNU tar: if it does not support --format= it doesn't create
1522 # ustar tarball either.
1523 (tar --version) >/dev/null 2>&1 && continue
1524 am__tar='tar chf - "$$tardir"'
1525 am__tar_='tar chf - "$tardir"'
1526 am__untar='tar xf -'
1527 ;;
1528 pax)
1529 am__tar='pax -L -x $1 -w "$$tardir"'
1530 am__tar_='pax -L -x $1 -w "$tardir"'
1531 am__untar='pax -r'
1532 ;;
1533 cpio)
1534 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1535 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1536 am__untar='cpio -i -H $1 -d'
1537 ;;
1538 none)
1539 am__tar=false
1540 am__tar_=false
1541 am__untar=false
1542 ;;
1543 esac
1544
1545 # If the value was cached, stop now. We just wanted to have am__tar
1546 # and am__untar set.
1547 test -n "${am_cv_prog_tar_$1}" && break
1548
1549 # tar/untar a dummy directory, and stop if the command works
1550 rm -rf conftest.dir
1551 mkdir conftest.dir
1552 echo GrepMe > conftest.dir/file
1553 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1554 rm -rf conftest.dir
1555 if test -s conftest.tar; then
1556 AM_RUN_LOG([$am__untar <conftest.tar])
1557 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1558 fi
1559 done
1560 rm -rf conftest.dir
1561
1562 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1563 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1564 AC_SUBST([am__tar])
1565 AC_SUBST([am__untar])
1566 ]) # _AM_PROG_TAR
1567