annotate aclocal.m4 @ 448:5cccf90bf838 3.0 tip

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