annotate aclocal.m4 @ 423:079d43b6967b 3.0-beta2 3.0-beta2

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