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