1
by Jeremy Bicha
Import upstream version 3.7.90 |
1 |
# generated automatically by aclocal 1.11.3 -*- Autoconf -*- |
2 |
||
3 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
|
4 |
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, |
|
5 |
# Inc. |
|
6 |
# This file is free software; the Free Software Foundation |
|
7 |
# gives unlimited permission to copy and/or distribute it, |
|
8 |
# with or without modifications, as long as this notice is preserved. |
|
9 |
||
10 |
# This program is distributed in the hope that it will be useful, |
|
11 |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
|
12 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
|
13 |
# PARTICULAR PURPOSE. |
|
14 |
||
15 |
m4_ifndef([AC_AUTOCONF_VERSION], |
|
16 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
|
17 |
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, |
|
18 |
[m4_warning([this file was generated for autoconf 2.68. |
|
19 |
You have another version of autoconf. It may work, but is not guaranteed to.
|
|
20 |
If you have problems, you may need to regenerate the build system entirely.
|
|
21 |
To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
|
22 |
||
23 |
# gnome-common.m4 |
|
24 |
#
|
|
25 |
# serial 3 |
|
26 |
# |
|
27 |
||
28 |
dnl GNOME_COMMON_INIT |
|
29 |
||
30 |
AU_DEFUN([GNOME_COMMON_INIT], |
|
31 |
[
|
|
32 |
dnl this macro should come after AC_CONFIG_MACRO_DIR
|
|
33 |
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0]) |
|
34 |
||
35 |
dnl ensure that when the Automake generated makefile calls aclocal, |
|
36 |
dnl it honours the $ACLOCAL_FLAGS environment variable |
|
37 |
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}" |
|
38 |
if test -n "$ac_macro_dir"; then |
|
39 |
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS" |
|
40 |
fi |
|
41 |
||
42 |
AC_SUBST([ACLOCAL_AMFLAGS]) |
|
43 |
], |
|
44 |
[[$0: This macro is deprecated. You should set put "ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}" |
|
45 |
in your top-level Makefile.am, instead, where "m4" is the macro directory set
|
|
46 |
with AC_CONFIG_MACRO_DIR() in your configure.ac]]) |
|
47 |
||
48 |
AC_DEFUN([GNOME_DEBUG_CHECK], |
|
49 |
[
|
|
50 |
AC_ARG_ENABLE([debug], |
|
51 |
AC_HELP_STRING([--enable-debug], |
|
52 |
[turn on debugging]),, |
|
53 |
[enable_debug=no]) |
|
54 |
||
55 |
if test x$enable_debug = xyes ; then |
|
56 |
AC_DEFINE(GNOME_ENABLE_DEBUG, 1, |
|
57 |
[Enable additional debugging at the expense of performance and size]) |
|
58 |
fi |
|
59 |
]) |
|
60 |
||
61 |
dnl GNOME_MAINTAINER_MODE_DEFINES () |
|
62 |
dnl define DISABLE_DEPRECATED |
|
63 |
dnl
|
|
64 |
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES], |
|
65 |
[
|
|
66 |
AC_REQUIRE([AM_MAINTAINER_MODE]) |
|
67 |
||
68 |
DISABLE_DEPRECATED="" |
|
69 |
if test $USE_MAINTAINER_MODE = yes; then |
|
70 |
DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP" |
|
71 |
for DOMAIN in $DOMAINS; do |
|
72 |
DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" |
|
73 |
done |
|
74 |
fi |
|
75 |
||
76 |
AC_SUBST(DISABLE_DEPRECATED) |
|
77 |
]) |
|
78 |
||
79 |
dnl GLIB_GSETTINGS |
|
80 |
dnl Defines GSETTINGS_SCHEMAS_INSTALL which controls whether |
|
81 |
dnl the schema should be compiled |
|
82 |
dnl
|
|
83 |
||
84 |
AC_DEFUN([GLIB_GSETTINGS], |
|
85 |
[
|
|
86 |
m4_pattern_allow([AM_V_GEN]) |
|
87 |
AC_ARG_ENABLE(schemas-compile, |
|
88 |
AS_HELP_STRING([--disable-schemas-compile], |
|
89 |
[Disable regeneration of gschemas.compiled on install]), |
|
90 |
[case ${enableval} in |
|
91 |
yes) GSETTINGS_DISABLE_SCHEMAS_COMPILE="" ;;
|
|
92 |
no) GSETTINGS_DISABLE_SCHEMAS_COMPILE="1" ;;
|
|
93 |
*) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-compile]) ;; |
|
94 |
esac]) |
|
95 |
AC_SUBST([GSETTINGS_DISABLE_SCHEMAS_COMPILE]) |
|
96 |
PKG_PROG_PKG_CONFIG([0.16]) |
|
97 |
AC_SUBST(gsettingsschemadir, [${datadir}/glib-2.0/schemas]) |
|
98 |
if test x$cross_compiling != xyes; then |
|
99 |
GLIB_COMPILE_SCHEMAS=`$PKG_CONFIG --variable glib_compile_schemas gio-2.0` |
|
100 |
else |
|
101 |
AC_PATH_PROG(GLIB_COMPILE_SCHEMAS, glib-compile-schemas) |
|
102 |
fi |
|
103 |
AC_SUBST(GLIB_COMPILE_SCHEMAS) |
|
104 |
if test "x$GLIB_COMPILE_SCHEMAS" = "x"; then |
|
105 |
ifelse([$2],,[AC_MSG_ERROR([glib-compile-schemas not found.])],[$2]) |
|
106 |
else |
|
107 |
ifelse([$1],,[:],[$1]) |
|
108 |
fi |
|
109 |
||
110 |
GSETTINGS_RULES=' |
|
111 |
.PHONY : uninstall-gsettings-schemas install-gsettings-schemas clean-gsettings-schemas
|
|
112 |
||
113 |
mostlyclean-am: clean-gsettings-schemas
|
|
114 |
||
115 |
gsettings__enum_file = $(addsuffix .enums.xml,$(gsettings_ENUM_NAMESPACE))
|
|
116 |
||
117 |
%.gschema.valid: %.gschema.xml $(gsettings__enum_file)
|
|
118 |
$(AM_V_GEN) if test -f "$<"; then d=; else d="$(srcdir)/"; fi; $(GLIB_COMPILE_SCHEMAS) --strict --dry-run $(addprefix --schema-file=,$(gsettings__enum_file)) --schema-file=$${d}$< && touch [$]@
|
|
119 |
||
120 |
all-am: $(gsettings_SCHEMAS:.xml=.valid)
|
|
121 |
uninstall-am: uninstall-gsettings-schemas
|
|
122 |
install-data-am: install-gsettings-schemas
|
|
123 |
||
124 |
.SECONDARY: $(gsettings_SCHEMAS)
|
|
125 |
||
126 |
install-gsettings-schemas: $(gsettings_SCHEMAS) $(gsettings__enum_file)
|
|
127 |
@$(NORMAL_INSTALL)
|
|
128 |
if test -n "$^"; then \
|
|
129 |
test -z "$(gsettingsschemadir)" || $(MKDIR_P) "$(DESTDIR)$(gsettingsschemadir)"; \
|
|
130 |
$(INSTALL_DATA) $^ "$(DESTDIR)$(gsettingsschemadir)"; \
|
|
131 |
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir); \
|
|
132 |
fi
|
|
133 |
||
134 |
uninstall-gsettings-schemas:
|
|
135 |
@$(NORMAL_UNINSTALL)
|
|
136 |
@list='\''$(gsettings_SCHEMAS) $(gsettings__enum_file)'\''; test -n "$(gsettingsschemadir)" || list=; \ |
|
137 |
files=`for p in $$list; do echo $$p; done | sed -e '\''s|^.*/||'\''`; \ |
|
138 |
test -n "$$files" || exit 0; \
|
|
139 |
echo " ( cd '\''$(DESTDIR)$(gsettingsschemadir)'\'' && rm -f" $$files ")"; \ |
|
140 |
cd "$(DESTDIR)$(gsettingsschemadir)" && rm -f $$files
|
|
141 |
test -n "$(GSETTINGS_DISABLE_SCHEMAS_COMPILE)$(DESTDIR)" || $(GLIB_COMPILE_SCHEMAS) $(gsettingsschemadir)
|
|
142 |
||
143 |
clean-gsettings-schemas:
|
|
144 |
rm -f $(gsettings_SCHEMAS:.xml=.valid) $(gsettings__enum_file)
|
|
145 |
||
146 |
ifdef gsettings_ENUM_NAMESPACE
|
|
147 |
$(gsettings__enum_file): $(gsettings_ENUM_FILES)
|
|
148 |
$(AM_V_GEN) glib-mkenums --comments '\''<!-- @comment@ -->'\'' --fhead "<schemalist>" --vhead " <@type@ id='\''$(gsettings_ENUM_NAMESPACE).@EnumName@'\''>" --vprod " <value nick='\''@valuenick@'\'' value='\''@valuenum@'\''/>" --vtail " </@type@>" --ftail "</schemalist>" [$]^ > [$]@.tmp && mv [$]@.tmp [$]@ |
|
149 |
endif
|
|
150 |
'
|
|
151 |
_GSETTINGS_SUBST(GSETTINGS_RULES) |
|
152 |
]) |
|
153 |
||
154 |
dnl _GSETTINGS_SUBST(VARIABLE) |
|
155 |
dnl Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST |
|
156 |
AC_DEFUN([_GSETTINGS_SUBST], |
|
157 |
[
|
|
158 |
AC_SUBST([$1]) |
|
159 |
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) |
|
160 |
]
|
|
161 |
)
|
|
162 |
||
163 |
||
164 |
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) |
|
165 |
# serial 42 IT_PROG_INTLTOOL |
|
166 |
AC_DEFUN([IT_PROG_INTLTOOL], [ |
|
167 |
AC_PREREQ([2.50])dnl |
|
168 |
AC_REQUIRE([AM_NLS])dnl |
|
169 |
||
170 |
case "$am__api_version" in |
|
171 |
1.[01234]) |
|
172 |
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) |
|
173 |
;; |
|
174 |
*) |
|
175 |
;; |
|
176 |
esac
|
|
177 |
||
178 |
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
|
179 |
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` |
|
180 |
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` |
|
181 |
if test -n "$1"; then |
|
182 |
AC_MSG_CHECKING([for intltool >= $1]) |
|
183 |
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) |
|
184 |
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || |
|
185 |
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) |
|
186 |
fi
|
|
187 |
||
188 |
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) |
|
189 |
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) |
|
190 |
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) |
|
191 |
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then |
|
192 |
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) |
|
193 |
fi
|
|
194 |
||
195 |
if test -z "$AM_DEFAULT_VERBOSITY"; then |
|
196 |
AM_DEFAULT_VERBOSITY=1 |
|
197 |
fi
|
|
198 |
AC_SUBST([AM_DEFAULT_VERBOSITY]) |
|
199 |
||
200 |
INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))' |
|
201 |
INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))' |
|
202 |
INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;' |
|
203 |
AC_SUBST(INTLTOOL_V_MERGE) |
|
204 |
AC_SUBST(INTLTOOL__v_MERGE_) |
|
205 |
AC_SUBST(INTLTOOL__v_MERGE_0) |
|
206 |
||
207 |
INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))' |
|
208 |
intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))' |
|
209 |
intltool__v_merge_options_0='-q' |
|
210 |
AC_SUBST(INTLTOOL_V_MERGE_OPTIONS) |
|
211 |
AC_SUBST(intltool__v_merge_options_) |
|
212 |
AC_SUBST(intltool__v_merge_options_0) |
|
213 |
||
214 |
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
215 |
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
216 |
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
217 |
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
218 |
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@' |
|
219 |
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
220 |
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
221 |
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
222 |
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
223 |
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
224 |
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
225 |
if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then |
|
226 |
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@' |
|
227 |
else
|
|
228 |
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir' |
|
229 |
fi
|
|
230 |
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
231 |
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
232 |
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
233 |
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
234 |
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
235 |
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
236 |
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' |
|
237 |
||
238 |
_IT_SUBST(INTLTOOL_DESKTOP_RULE) |
|
239 |
_IT_SUBST(INTLTOOL_DIRECTORY_RULE) |
|
240 |
_IT_SUBST(INTLTOOL_KEYS_RULE) |
|
241 |
_IT_SUBST(INTLTOOL_PROP_RULE) |
|
242 |
_IT_SUBST(INTLTOOL_OAF_RULE) |
|
243 |
_IT_SUBST(INTLTOOL_PONG_RULE) |
|
244 |
_IT_SUBST(INTLTOOL_SERVER_RULE) |
|
245 |
_IT_SUBST(INTLTOOL_SHEET_RULE) |
|
246 |
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE) |
|
247 |
_IT_SUBST(INTLTOOL_UI_RULE) |
|
248 |
_IT_SUBST(INTLTOOL_XAM_RULE) |
|
249 |
_IT_SUBST(INTLTOOL_KBD_RULE) |
|
250 |
_IT_SUBST(INTLTOOL_XML_RULE) |
|
251 |
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) |
|
252 |
_IT_SUBST(INTLTOOL_CAVES_RULE) |
|
253 |
_IT_SUBST(INTLTOOL_SCHEMAS_RULE) |
|
254 |
_IT_SUBST(INTLTOOL_THEME_RULE) |
|
255 |
_IT_SUBST(INTLTOOL_SERVICE_RULE) |
|
256 |
_IT_SUBST(INTLTOOL_POLICY_RULE) |
|
257 |
||
258 |
# Check the gettext tools to make sure they are GNU |
|
259 |
AC_PATH_PROG(XGETTEXT, xgettext) |
|
260 |
AC_PATH_PROG(MSGMERGE, msgmerge) |
|
261 |
AC_PATH_PROG(MSGFMT, msgfmt) |
|
262 |
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
|
263 |
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then |
|
264 |
AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
|
265 |
fi
|
|
266 |
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" |
|
267 |
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" |
|
268 |
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" |
|
269 |
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then |
|
270 |
AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) |
|
271 |
fi
|
|
272 |
||
273 |
AC_PATH_PROG(INTLTOOL_PERL, perl) |
|
274 |
if test -z "$INTLTOOL_PERL"; then |
|
275 |
AC_MSG_ERROR([perl not found]) |
|
276 |
fi
|
|
277 |
AC_MSG_CHECKING([for perl >= 5.8.1]) |
|
278 |
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 |
|
279 |
if test $? -ne 0; then |
|
280 |
AC_MSG_ERROR([perl 5.8.1 is required for intltool]) |
|
281 |
else
|
|
282 |
IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"` |
|
283 |
AC_MSG_RESULT([$IT_PERL_VERSION]) |
|
284 |
fi
|
|
285 |
if test "x$2" != "xno-xml"; then |
|
286 |
AC_MSG_CHECKING([for XML::Parser]) |
|
287 |
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then |
|
288 |
AC_MSG_RESULT([ok]) |
|
289 |
else |
|
290 |
AC_MSG_ERROR([XML::Parser perl module is required for intltool]) |
|
291 |
fi |
|
292 |
fi
|
|
293 |
||
294 |
# Substitute ALL_LINGUAS so we can use it in po/Makefile |
|
295 |
AC_SUBST(ALL_LINGUAS) |
|
296 |
||
297 |
# Set DATADIRNAME correctly if it is not set yet |
|
298 |
# (copied from glib-gettext.m4) |
|
299 |
if test -z "$DATADIRNAME"; then |
|
300 |
AC_LINK_IFELSE( |
|
301 |
[AC_LANG_PROGRAM([[]], |
|
302 |
[[extern int _nl_msg_cat_cntr; |
|
303 |
return _nl_msg_cat_cntr]])], |
|
304 |
[DATADIRNAME=share], |
|
305 |
[case $host in |
|
306 |
*-*-solaris*)
|
|
307 |
dnl On Solaris, if bind_textdomain_codeset is in libc,
|
|
308 |
dnl GNU format message catalog is always supported,
|
|
309 |
dnl since both are added to the libc all together.
|
|
310 |
dnl Hence, we'd like to go with DATADIRNAME=share
|
|
311 |
dnl in this case.
|
|
312 |
AC_CHECK_FUNC(bind_textdomain_codeset,
|
|
313 |
[DATADIRNAME=share], [DATADIRNAME=lib]) |
|
314 |
;; |
|
315 |
*) |
|
316 |
[DATADIRNAME=lib] |
|
317 |
;; |
|
318 |
esac]) |
|
319 |
fi
|
|
320 |
AC_SUBST(DATADIRNAME) |
|
321 |
||
322 |
IT_PO_SUBDIR([po]) |
|
323 |
||
324 |
]) |
|
325 |
||
326 |
||
327 |
# IT_PO_SUBDIR(DIRNAME) |
|
328 |
# --------------------- |
|
329 |
# All po subdirs have to be declared with this macro; the subdir "po" is |
|
330 |
# declared by IT_PROG_INTLTOOL. |
|
331 |
#
|
|
332 |
AC_DEFUN([IT_PO_SUBDIR], |
|
333 |
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. |
|
334 |
dnl
|
|
335 |
dnl The following CONFIG_COMMANDS should be executed at the very end |
|
336 |
dnl of config.status. |
|
337 |
AC_CONFIG_COMMANDS_PRE([ |
|
338 |
AC_CONFIG_COMMANDS([$1/stamp-it], [ |
|
339 |
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then |
|
340 |
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) |
|
341 |
fi |
|
342 |
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" |
|
343 |
>"$1/stamp-it.tmp" |
|
344 |
[sed '/^#/d |
|
345 |
s/^[[].*] *// |
|
346 |
/^[ ]*$/d |
|
347 |
'"s|^| $ac_top_srcdir/|" \ |
|
348 |
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" |
|
349 |
]
|
|
350 |
[sed '/^POTFILES =/,/[^\\]$/ { |
|
351 |
/^POTFILES =/!d |
|
352 |
r $1/POTFILES |
|
353 |
} |
|
354 |
' "$1/Makefile.in" >"$1/Makefile"] |
|
355 |
rm -f "$1/Makefile.tmp"
|
|
356 |
mv "$1/stamp-it.tmp" "$1/stamp-it"
|
|
357 |
])
|
|
358 |
])dnl
|
|
359 |
])
|
|
360 |
||
361 |
# _IT_SUBST(VARIABLE)
|
|
362 |
# -------------------
|
|
363 |
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
|
|
364 |
#
|
|
365 |
AC_DEFUN([_IT_SUBST],
|
|
366 |
[
|
|
367 |
AC_SUBST([$1])
|
|
368 |
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
|
|
369 |
]
|
|
370 |
)
|
|
371 |
||
372 |
# deprecated macros
|
|
373 |
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
|
|
374 |
# A hint is needed for aclocal from Automake <= 1.9.4:
|
|
375 |
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
|
|
376 |
||
377 |
||
378 |
# nls.m4 serial 5 (gettext-0.18)
|
|
379 |
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
|
|
380 |
dnl Inc.
|
|
381 |
dnl This file is free software; the Free Software Foundation
|
|
382 |
dnl gives unlimited permission to copy and/or distribute it,
|
|
383 |
dnl with or without modifications, as long as this notice is preserved.
|
|
384 |
dnl
|
|
385 |
dnl This file can can be used in projects which are not available under
|
|
386 |
dnl the GNU General Public License or the GNU Library General Public
|
|
387 |
dnl License but which still want to provide support for the GNU gettext
|
|
388 |
dnl functionality.
|
|
389 |
dnl Please note that the actual code of the GNU gettext library is covered
|
|
390 |
dnl by the GNU Library General Public License, and the rest of the GNU
|
|
391 |
dnl gettext package package is covered by the GNU General Public License.
|
|
392 |
dnl They are *not* in the public domain.
|
|
393 |
||
394 |
dnl Authors:
|
|
395 |
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
|
396 |
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
|
|
397 |
||
398 |
AC_PREREQ([2.50])
|
|
399 |
||
400 |
AC_DEFUN([AM_NLS],
|
|
401 |
[
|
|
402 |
AC_MSG_CHECKING([whether NLS is requested])
|
|
403 |
dnl Default is enabled NLS
|
|
404 |
AC_ARG_ENABLE([nls],
|
|
405 |
[ --disable-nls do not use Native Language Support],
|
|
406 |
USE_NLS=$enableval, USE_NLS=yes)
|
|
407 |
AC_MSG_RESULT([$USE_NLS])
|
|
408 |
AC_SUBST([USE_NLS])
|
|
409 |
])
|
|
410 |
||
411 |
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
|
412 |
# serial 1 (pkg-config-0.24)
|
|
413 |
#
|
|
414 |
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
|
415 |
#
|
|
416 |
# This program is free software; you can redistribute it and/or modify
|
|
417 |
# it under the terms of the GNU General Public License as published by
|
|
418 |
# the Free Software Foundation; either version 2 of the License, or
|
|
419 |
# (at your option) any later version.
|
|
420 |
#
|
|
421 |
# This program is distributed in the hope that it will be useful, but
|
|
422 |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
423 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
424 |
# General Public License for more details.
|
|
425 |
#
|
|
426 |
# You should have received a copy of the GNU General Public License
|
|
427 |
# along with this program; if not, write to the Free Software
|
|
428 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
429 |
#
|
|
430 |
# As a special exception to the GNU General Public License, if you
|
|
431 |
# distribute this file as part of a program that contains a
|
|
432 |
# configuration script generated by Autoconf, you may include it under
|
|
433 |
# the same distribution terms that you use for the rest of that program.
|
|
434 |
||
435 |
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
|
|
436 |
# ----------------------------------
|
|
437 |
AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
|
438 |
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
|
439 |
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
|
|
440 |
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
|
|
441 |
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
|
|
442 |
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) |
|
443 |
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) |
|
444 |
||
445 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
|
446 |
AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
|
447 |
fi
|
|
448 |
if test -n "$PKG_CONFIG"; then |
|
449 |
_pkg_min_version=m4_default([$1], [0.9.0]) |
|
450 |
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) |
|
451 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
|
452 |
AC_MSG_RESULT([yes]) |
|
453 |
else |
|
454 |
AC_MSG_RESULT([no]) |
|
455 |
PKG_CONFIG="" |
|
456 |
fi |
|
457 |
fi[]dnl |
|
458 |
])# PKG_PROG_PKG_CONFIG |
|
459 |
||
460 |
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
|
461 |
#
|
|
462 |
# Check to see whether a particular set of modules exists. Similar |
|
463 |
# to PKG_CHECK_MODULES(), but does not set variables or print errors. |
|
464 |
#
|
|
465 |
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
|
466 |
# only at the first occurence in configure.ac, so if the first place |
|
467 |
# it's called might be skipped (such as if it is within an "if", you |
|
468 |
# have to call PKG_CHECK_EXISTS manually
|
|
469 |
# --------------------------------------------------------------
|
|
470 |
AC_DEFUN([PKG_CHECK_EXISTS],
|
|
471 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
472 |
if test -n "$PKG_CONFIG" && \
|
|
473 |
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
|
|
474 |
m4_default([$2], [:])
|
|
475 |
m4_ifvaln([$3], [else
|
|
476 |
$3])dnl
|
|
477 |
fi])
|
|
478 |
||
479 |
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
|
|
480 |
# ---------------------------------------------
|
|
481 |
m4_define([_PKG_CONFIG],
|
|
482 |
[if test -n "$$1"; then
|
|
483 |
pkg_cv_[]$1="$$1"
|
|
484 |
elif test -n "$PKG_CONFIG"; then
|
|
485 |
PKG_CHECK_EXISTS([$3],
|
|
486 |
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
|
|
487 |
test "x$?" != "x0" && pkg_failed=yes ],
|
|
488 |
[pkg_failed=yes])
|
|
489 |
else
|
|
490 |
pkg_failed=untried
|
|
491 |
fi[]dnl
|
|
492 |
])# _PKG_CONFIG
|
|
493 |
||
494 |
# _PKG_SHORT_ERRORS_SUPPORTED
|
|
495 |
# -----------------------------
|
|
496 |
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
|
|
497 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
|
498 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
499 |
_pkg_short_errors_supported=yes
|
|
500 |
else
|
|
501 |
_pkg_short_errors_supported=no
|
|
502 |
fi[]dnl
|
|
503 |
])# _PKG_SHORT_ERRORS_SUPPORTED
|
|
504 |
||
505 |
||
506 |
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
|
507 |
# [ACTION-IF-NOT-FOUND])
|
|
508 |
#
|
|
509 |
#
|
|
510 |
# Note that if there is a possibility the first call to
|
|
511 |
# PKG_CHECK_MODULES might not happen, you should be sure to include an
|
|
512 |
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
|
|
513 |
#
|
|
514 |
#
|
|
515 |
# --------------------------------------------------------------
|
|
516 |
AC_DEFUN([PKG_CHECK_MODULES],
|
|
517 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
518 |
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
|
519 |
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
|
520 |
||
521 |
pkg_failed=no
|
|
522 |
AC_MSG_CHECKING([for $1])
|
|
523 |
||
524 |
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
|
525 |
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
|
526 |
||
527 |
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
|
|
528 |
and $1[]_LIBS to avoid the need to call pkg-config.
|
|
529 |
See the pkg-config man page for more details.])
|
|
530 |
||
531 |
if test $pkg_failed = yes; then
|
|
532 |
AC_MSG_RESULT([no])
|
|
533 |
_PKG_SHORT_ERRORS_SUPPORTED
|
|
534 |
if test $_pkg_short_errors_supported = yes; then
|
|
535 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
|
536 |
else
|
|
537 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
|
538 |
fi
|
|
539 |
# Put the nasty error message in config.log where it belongs
|
|
540 |
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
|
541 |
||
542 |
m4_default([$4], [AC_MSG_ERROR(
|
|
543 |
[Package requirements ($2) were not met:
|
|
544 |
||
545 |
$$1_PKG_ERRORS
|
|
546 |
||
547 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
548 |
installed software in a non-standard prefix.
|
|
549 |
||
550 |
_PKG_TEXT])[]dnl
|
|
551 |
])
|
|
552 |
elif test $pkg_failed = untried; then
|
|
553 |
AC_MSG_RESULT([no])
|
|
554 |
m4_default([$4], [AC_MSG_FAILURE(
|
|
555 |
[The pkg-config script could not be found or is too old. Make sure it
|
|
556 |
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
557 |
path to pkg-config.
|
|
558 |
||
559 |
_PKG_TEXT
|
|
560 |
||
561 |
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
|
|
562 |
])
|
|
563 |
else
|
|
564 |
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
|
565 |
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
|
566 |
AC_MSG_RESULT([yes])
|
|
567 |
$3
|
|
568 |
fi[]dnl
|
|
569 |
])# PKG_CHECK_MODULES
|
|
570 |
||
571 |
AC_DEFUN([YELP_HELP_INIT],
|
|
572 |
[
|
|
573 |
AC_REQUIRE([AC_PROG_LN_S])
|
|
574 |
m4_pattern_allow([AM_V_at])
|
|
575 |
m4_pattern_allow([AM_V_GEN])
|
|
576 |
m4_pattern_allow([AM_DEFAULT_VERBOSITY])
|
|
577 |
AC_ARG_WITH([help-dir],
|
|
578 |
AC_HELP_STRING([--with-help-dir=DIR],
|
|
579 |
[path where help files are installed]),,
|
|
580 |
[with_help_dir='${datadir}/help']) |
|
581 |
HELP_DIR="$with_help_dir"
|
|
582 |
AC_SUBST(HELP_DIR)
|
|
583 |
||
584 |
AC_ARG_VAR([ITSTOOL], [Path to the `itstool` command])
|
|
585 |
AC_CHECK_PROG([ITSTOOL], [itstool], [itstool])
|
|
586 |
if test x"$ITSTOOL" = x; then
|
|
587 |
AC_MSG_ERROR([itstool not found])
|
|
588 |
fi
|
|
589 |
||
590 |
AC_ARG_VAR([XMLLINT], [Path to the `xmllint` command])
|
|
591 |
AC_CHECK_PROG([XMLLINT], [xmllint], [xmllint])
|
|
592 |
if test x"$XMLLINT" = x; then
|
|
593 |
AC_MSG_ERROR([xmllint not found])
|
|
594 |
fi
|
|
595 |
||
596 |
YELP_HELP_RULES='
|
|
597 |
HELP_ID ?= |
|
598 |
HELP_POT ?= |
|
599 |
HELP_FILES ?= |
|
600 |
HELP_EXTRA ?= |
|
601 |
HELP_MEDIA ?= |
|
602 |
HELP_LINGUAS ?= |
|
603 |
||
604 |
_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS)) |
|
605 |
_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot)) |
|
606 |
_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po)) |
|
607 |
_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES)) |
|
608 |
_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f)) |
|
609 |
_HELP_C_EXTRA = $(foreach f,$(HELP_EXTRA),C/$(f)) |
|
610 |
_HELP_C_MEDIA = $(foreach f,$(HELP_MEDIA),C/$(f)) |
|
611 |
_HELP_LC_FILES = $(foreach lc,$(_HELP_LINGUAS),$(foreach f,$(HELP_FILES),$(lc)/$(f))) |
|
612 |
_HELP_LC_STAMPS = $(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).stamp) |
|
613 |
||
614 |
_HELP_DEFAULT_V = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1) |
|
615 |
_HELP_V = $(if $(V),$(V),$(_HELP_DEFAULT_V)) |
|
616 |
_HELP_LC_VERBOSE = $(_HELP_LC_VERBOSE_$(_HELP_V)) |
|
617 |
_HELP_LC_VERBOSE_ = $(_HELP_LC_VERBOSE_$(_HELP_DEFAULT_V)) |
|
618 |
_HELP_LC_VERBOSE_0 = @echo " GEN "$(dir [$]@); |
|
619 |
||
620 |
all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HELP_POFILES) |
|
621 |
||
622 |
.PHONY: pot |
|
623 |
pot: $(_HELP_POTFILE) |
|
624 |
$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) |
|
625 |
$(AM_V_GEN)$(ITSTOOL) -o "[$]@" $(_HELP_C_FILES) |
|
626 |
||
627 |
.PHONY: repo |
|
628 |
repo: $(_HELP_POTFILE) |
|
629 |
$(AM_V_at)for po in $(_HELP_POFILES); do \ |
|
630 |
if test "x[$](_HELP_V)" = "x0"; then echo " GEN $${po}"; fi; \ |
|
631 |
msgmerge -q -o "$${po}" "$${po}" "$(_HELP_POTFILE)"; \ |
|
632 |
done |
|
633 |
||
634 |
$(_HELP_POFILES): |
|
635 |
$(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi |
|
636 |
$(AM_V_at)if test ! -f "[$]@" -a -f "$(srcdir)/[$]@"; then cp "$(srcdir)/[$]@" "[$]@"; fi |
|
637 |
$(AM_V_GEN)if ! test -f "[$]@"; then \ |
|
638 |
(cd "$(dir [$]@)" && \ |
|
639 |
$(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \ |
|
640 |
mv "$(notdir [$]@).tmp" "$(notdir [$]@)"); \ |
|
641 |
else \ |
|
642 |
(cd "$(dir [$]@)" && \ |
|
643 |
$(ITSTOOL) -o "$(notdir [$]@).tmp" $(_HELP_C_FILES) && \ |
|
644 |
msgmerge -o "$(notdir [$]@)" "$(notdir [$]@)" "$(notdir [$]@).tmp" && \ |
|
645 |
rm "$(notdir [$]@).tmp"); \ |
|
646 |
fi |
|
647 |
||
648 |
$(_HELP_MOFILES): %.mo: %.po |
|
649 |
$(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi |
|
650 |
$(AM_V_GEN)msgfmt -o "[$]@" "$<" |
|
651 |
||
652 |
$(_HELP_LC_FILES): $(_HELP_LINGUAS) |
|
653 |
$(_HELP_LINGUAS): $(_HELP_LC_STAMPS) |
|
654 |
$(_HELP_LC_STAMPS): %.stamp: %.mo |
|
655 |
$(_HELP_LC_STAMPS): $(_HELP_C_FILES) $(_HELP_C_EXTRA) |
|
656 |
$(AM_V_at)if ! test -d "$(dir [$]@)"; then mkdir "$(dir [$]@)"; fi |
|
657 |
$(_HELP_LC_VERBOSE)if test -d "C"; then d="../"; else d="$(abs_srcdir)/"; fi; \ |
|
658 |
mo="$(dir [$]@)$(patsubst %/$(notdir [$]@),%,[$]@).mo"; \ |
|
659 |
if test -f "$${mo}"; then mo="../$${mo}"; else mo="$(abs_srcdir)/$${mo}"; fi; \ |
|
660 |
(cd "$(dir [$]@)" && $(ITSTOOL) -m "$${mo}" $(foreach f,$(_HELP_C_FILES),$${d}/$(f))) && \ |
|
661 |
touch "[$]@" |
|
662 |
||
663 |
.PHONY: clean-help |
|
664 |
mostlyclean-am: $(if $(HELP_ID),clean-help) |
|
665 |
clean-help: |
|
666 |
rm -f $(_HELP_LC_FILES) $(_HELP_LC_STAMPS) $(_HELP_MOFILES) |
|
667 |
||
668 |
EXTRA_DIST ?= |
|
669 |
EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) |
|
670 |
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp) |
|
671 |
EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po) |
|
672 |
EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f)))) |
|
673 |
||
674 |
distdir: distdir-help-files |
|
675 |
distdir-help-files: |
|
676 |
@for lc in C $(HELP_LINGUAS); do \ |
|
677 |
$(MKDIR_P) "$(distdir)/$$lc"; \ |
|
678 |
for file in $(HELP_FILES); do \ |
|
679 |
if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \ |
|
680 |
cp -p "$$d$$lc/$$file" "$(distdir)/$$lc/" || exit 1; \ |
|
681 |
done; \ |
|
682 |
done; \ |
|
683 |
||
684 |
.PHONY: check-help |
|
685 |
check: check-help |
|
686 |
check-help: |
|
687 |
for lc in C $(_HELP_LINGUAS); do \ |
|
688 |
if test -d "$$lc"; \ |
|
689 |
then d=; \ |
|
690 |
xmlpath="$$lc"; \ |
|
691 |
else \ |
|
692 |
d="$(srcdir)/"; \ |
|
693 |
xmlpath="$$lc:$(srcdir)/$$lc"; \ |
|
694 |
fi; \ |
|
695 |
for page in $(HELP_FILES); do \ |
|
696 |
echo "$(XMLLINT) --noout --noent --path $$xmlpath --xinclude $$d$$lc/$$page"; \ |
|
697 |
$(XMLLINT) --noout --noent --path "$$xmlpath" --xinclude "$$d$$lc/$$page"; \ |
|
698 |
done; \ |
|
699 |
done |
|
700 |
||
701 |
||
702 |
.PHONY: install-help |
|
703 |
install-data-am: $(if $(HELP_ID),install-help) |
|
704 |
install-help: |
|
705 |
@for lc in C $(_HELP_LINGUAS); do \ |
|
706 |
$(mkinstalldirs) "$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)" || exit 1; \ |
|
707 |
done |
|
708 |
@for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \ |
|
709 |
if test -f "$$lc/$$f"; then d=; else d="$(srcdir)/"; fi; \ |
|
710 |
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ |
|
711 |
if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \ |
|
712 |
echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir`basename $$f`"; \ |
|
713 |
$(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir`basename $$f`" || exit 1; \ |
|
714 |
done; done |
|
715 |
@for f in $(_HELP_C_EXTRA); do \ |
|
716 |
lc=`dirname "$$f"`; lc=`basename "$$lc"`; \ |
|
717 |
if test -f "$$f"; then d=; else d="$(srcdir)/"; fi; \ |
|
718 |
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ |
|
719 |
if ! test -d "$$helpdir"; then $(mkinstalldirs) "$$helpdir"; fi; \ |
|
720 |
echo "$(INSTALL_DATA) $$d$$f $$helpdir`basename $$f`"; \ |
|
721 |
$(INSTALL_DATA) "$$d$$f" "$$helpdir`basename $$f`" || exit 1; \ |
|
722 |
done |
|
723 |
@for f in $(HELP_MEDIA); do \ |
|
724 |
for lc in C $(_HELP_LINGUAS); do \ |
|
725 |
if test -f "$$lc$$f"; then d=; else d="$(srcdir)/"; fi; \ |
|
726 |
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ |
|
727 |
mdir=`dirname "$$f"`; \ |
|
728 |
if test "x$mdir" = "x."; then mdir=""; fi; \ |
|
729 |
if ! test -d "$$helpdir$$mdir"; then $(mkinstalldirs) "$$helpdir$$mdir"; fi; \ |
|
730 |
if test -f "$$d$$lc/$$f"; then \ |
|
731 |
echo "$(INSTALL_DATA) $$d$$lc/$$f $$helpdir$$f"; \ |
|
732 |
$(INSTALL_DATA) "$$d$$lc/$$f" "$$helpdir$$f" || exit 1; \ |
|
733 |
elif test "x$$lc" != "xC"; then \ |
|
734 |
echo "$(LN_S) -f $(HELP_DIR)/C/$(HELP_ID)/$$f $$helpdir$$f"; \ |
|
735 |
$(LN_S) -f "$(HELP_DIR)/C/$(HELP_ID)/$$f" "$$helpdir$$f" || exit 1; \ |
|
736 |
fi; \ |
|
737 |
done; \ |
|
738 |
done |
|
739 |
||
740 |
.PHONY: uninstall-help |
|
741 |
uninstall-am: $(if $(HELP_ID),uninstall-help) |
|
742 |
uninstall-help: |
|
743 |
for lc in C $(_HELP_LINGUAS); do for f in $(HELP_FILES); do \ |
|
744 |
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ |
|
745 |
echo "rm -f $$helpdir`basename $$f`"; \ |
|
746 |
rm -f "$$helpdir`basename $$f`"; \ |
|
747 |
done; done |
|
748 |
@for f in $(_HELP_C_EXTRA); do \ |
|
749 |
lc=`dirname "$$f"`; lc=`basename "$$lc"`; \ |
|
750 |
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ |
|
751 |
echo "rm -f $$helpdir`basename $$f`"; \ |
|
752 |
rm -f "$$helpdir`basename $$f`"; \ |
|
753 |
done |
|
754 |
@for f in $(HELP_MEDIA); do \ |
|
755 |
for lc in C $(_HELP_LINGUAS); do \ |
|
756 |
helpdir="$(DESTDIR)$(HELP_DIR)/$$lc/$(HELP_ID)/"; \ |
|
757 |
echo "rm -f $$helpdir$$f"; \ |
|
758 |
rm -f "$$helpdir$$f"; \ |
|
759 |
done; \ |
|
760 |
done; |
|
761 |
'
|
|
762 |
AC_SUBST([YELP_HELP_RULES])
|
|
763 |
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([YELP_HELP_RULES])])
|
|
764 |
])
|
|
765 |
||
766 |
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
|
|
767 |
# Foundation, Inc.
|
|
768 |
#
|
|
769 |
# This file is free software; the Free Software Foundation
|
|
770 |
# gives unlimited permission to copy and/or distribute it,
|
|
771 |
# with or without modifications, as long as this notice is preserved.
|
|
772 |
||
773 |
# serial 1
|
|
774 |
||
775 |
# AM_AUTOMAKE_VERSION(VERSION)
|
|
776 |
# ----------------------------
|
|
777 |
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
|
778 |
# generated from the m4 files accompanying Automake X.Y.
|
|
779 |
# (This private macro should not be called outside this file.)
|
|
780 |
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
781 |
[am__api_version='1.11' |
|
782 |
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
783 |
dnl require some minimum version. Point them to the right macro.
|
|
784 |
m4_if([$1], [1.11.3], [],
|
|
785 |
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
786 |
])
|
|
787 |
||
788 |
# _AM_AUTOCONF_VERSION(VERSION)
|
|
789 |
# -----------------------------
|
|
790 |
# aclocal traces this macro to find the Autoconf version.
|
|
791 |
# This is a private macro too. Using m4_define simplifies
|
|
792 |
# the logic in aclocal, which can simply ignore this definition.
|
|
793 |
m4_define([_AM_AUTOCONF_VERSION], [])
|
|
794 |
||
795 |
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
|
796 |
# -------------------------------
|
|
797 |
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
798 |
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
799 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
800 |
[AM_AUTOMAKE_VERSION([1.11.3])dnl
|
|
801 |
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
802 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
803 |
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
804 |
||
805 |
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
806 |
||
807 |
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
|
|
808 |
#
|
|
809 |
# This file is free software; the Free Software Foundation
|
|
810 |
# gives unlimited permission to copy and/or distribute it,
|
|
811 |
# with or without modifications, as long as this notice is preserved.
|
|
812 |
||
813 |
# serial 1
|
|
814 |
||
815 |
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
816 |
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
|
817 |
# `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
|
818 |
#
|
|
819 |
# Of course, Automake must honor this variable whenever it calls a
|
|
820 |
# tool from the auxiliary directory. The problem is that $srcdir (and
|
|
821 |
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
822 |
# depending on how configure is run. This is pretty annoying, since
|
|
823 |
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
824 |
# source directory, any form will work fine, but in subdirectories a
|
|
825 |
# relative path needs to be adjusted first.
|
|
826 |
#
|
|
827 |
# $ac_aux_dir/missing
|
|
828 |
# fails when called from a subdirectory if $ac_aux_dir is relative
|
|
829 |
# $top_srcdir/$ac_aux_dir/missing
|
|
830 |
# fails if $ac_aux_dir is absolute,
|
|
831 |
# fails when called from a subdirectory in a VPATH build with
|
|
832 |
# a relative $ac_aux_dir
|
|
833 |
#
|
|
834 |
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
835 |
# are both prefixed by $srcdir. In an in-source build this is usually
|
|
836 |
# harmless because $srcdir is `.', but things will broke when you |
|
837 |
# start a VPATH build or use an absolute $srcdir. |
|
838 |
#
|
|
839 |
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
|
840 |
# iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
|
841 |
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
|
842 |
# and then we would define $MISSING as |
|
843 |
# MISSING="\${SHELL} $am_aux_dir/missing" |
|
844 |
# This will work as long as MISSING is not called from configure, because |
|
845 |
# unfortunately $(top_srcdir) has no meaning in configure. |
|
846 |
# However there are other variables, like CC, which are often used in |
|
847 |
# configure, and could therefore not use this "fixed" $ac_aux_dir. |
|
848 |
#
|
|
849 |
# Another solution, used here, is to always expand $ac_aux_dir to an |
|
850 |
# absolute PATH. The drawback is that using absolute paths prevent a |
|
851 |
# configured tree to be moved without reconfiguration. |
|
852 |
||
853 |
AC_DEFUN([AM_AUX_DIR_EXPAND], |
|
854 |
[dnl Rely on autoconf to set up CDPATH properly. |
|
855 |
AC_PREREQ([2.50])dnl |
|
856 |
# expand $ac_aux_dir to an absolute path |
|
857 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
|
858 |
]) |
|
859 |
||
860 |
# AM_CONDITIONAL -*- Autoconf -*- |
|
861 |
||
862 |
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 |
|
863 |
# Free Software Foundation, Inc. |
|
864 |
#
|
|
865 |
# This file is free software; the Free Software Foundation |
|
866 |
# gives unlimited permission to copy and/or distribute it, |
|
867 |
# with or without modifications, as long as this notice is preserved. |
|
868 |
||
869 |
# serial 9 |
|
870 |
||
871 |
# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
|
872 |
# ------------------------------------- |
|
873 |
# Define a conditional. |
|
874 |
AC_DEFUN([AM_CONDITIONAL], |
|
875 |
[AC_PREREQ(2.52)dnl |
|
876 |
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
|
877 |
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
|
878 |
AC_SUBST([$1_TRUE])dnl |
|
879 |
AC_SUBST([$1_FALSE])dnl |
|
880 |
_AM_SUBST_NOTMAKE([$1_TRUE])dnl |
|
881 |
_AM_SUBST_NOTMAKE([$1_FALSE])dnl |
|
882 |
m4_define([_AM_COND_VALUE_$1], [$2])dnl |
|
883 |
if $2; then |
|
884 |
$1_TRUE= |
|
885 |
$1_FALSE='#' |
|
886 |
else
|
|
887 |
$1_TRUE='#' |
|
888 |
$1_FALSE= |
|
889 |
fi
|
|
890 |
AC_CONFIG_COMMANDS_PRE( |
|
891 |
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
|
892 |
AC_MSG_ERROR([[conditional "$1" was never defined.
|
|
893 |
Usually this means the macro was only invoked conditionally.]]) |
|
894 |
fi])]) |
|
895 |
||
896 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, |
|
897 |
# 2010, 2011 Free Software Foundation, Inc. |
|
898 |
#
|
|
899 |
# This file is free software; the Free Software Foundation |
|
900 |
# gives unlimited permission to copy and/or distribute it, |
|
901 |
# with or without modifications, as long as this notice is preserved. |
|
902 |
||
903 |
# serial 12 |
|
904 |
||
905 |
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
|
906 |
# written in clear, in which case automake, when reading aclocal.m4,
|
|
907 |
# will think it sees a *use*, and therefore will trigger all it's |
|
908 |
# C support machinery. Also note that it means that autoscan, seeing |
|
909 |
# CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
|
910 |
||
911 |
||
912 |
# _AM_DEPENDENCIES(NAME) |
|
913 |
# ---------------------- |
|
914 |
# See how the compiler implements dependency checking. |
|
915 |
# NAME is "CC", "CXX", "GCJ", or "OBJC". |
|
916 |
# We try a few techniques and use that to set a single cache variable. |
|
917 |
#
|
|
918 |
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
|
919 |
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
|
920 |
# dependency, and given that the user is not expected to run this macro,
|
|
921 |
# just rely on AC_PROG_CC.
|
|
922 |
AC_DEFUN([_AM_DEPENDENCIES],
|
|
923 |
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
|
924 |
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
|
925 |
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
|
926 |
AC_REQUIRE([AM_DEP_TRACK])dnl
|
|
927 |
||
928 |
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
|
929 |
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
|
930 |
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
|
931 |
[$1], UPC, [depcc="$UPC" am_compiler_list=],
|
|
932 |
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
|
933 |
[depcc="$$1" am_compiler_list=])
|
|
934 |
||
935 |
AC_CACHE_CHECK([dependency style of $depcc],
|
|
936 |
[am_cv_$1_dependencies_compiler_type],
|
|
937 |
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
938 |
# We make a subdir and do the tests there. Otherwise we can end up
|
|
939 |
# making bogus files that we don't know about and never remove. For |
|
940 |
# instance it was reported that on HP-UX the gcc test will end up |
|
941 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
942 |
# in D'. |
|
943 |
rm -rf conftest.dir
|
|
944 |
mkdir conftest.dir
|
|
945 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
946 |
# using a relative directory.
|
|
947 |
cp "$am_depcomp" conftest.dir
|
|
948 |
cd conftest.dir
|
|
949 |
# We will build objects and dependencies in a subdirectory because
|
|
950 |
# it helps to detect inapplicable dependency modes. For instance
|
|
951 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
952 |
# side effect of compilation, but ICC will put the dependencies in |
|
953 |
# the current directory while Tru64 will put them in the object |
|
954 |
# directory. |
|
955 |
mkdir sub |
|
956 |
||
957 |
am_cv_$1_dependencies_compiler_type=none |
|
958 |
if test "$am_compiler_list" = ""; then |
|
959 |
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
|
960 |
fi
|
|
961 |
am__universal=false
|
|
962 |
m4_case([$1], [CC],
|
|
963 |
[case " $depcc " in #(
|
|
964 |
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
965 |
esac],
|
|
966 |
[CXX],
|
|
967 |
[case " $depcc " in #(
|
|
968 |
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
969 |
esac])
|
|
970 |
||
971 |
for depmode in $am_compiler_list; do
|
|
972 |
# Setup a source with many dependencies, because some compilers
|
|
973 |
# like to wrap large dependency lists on column 80 (with \), and
|
|
974 |
# we should not choose a depcomp mode which is confused by this.
|
|
975 |
#
|
|
976 |
# We need to recreate these files for each test, as the compiler may
|
|
977 |
# overwrite some of them when testing with obscure command lines.
|
|
978 |
# This happens at least with the AIX C compiler.
|
|
979 |
: > sub/conftest.c
|
|
980 |
for i in 1 2 3 4 5 6; do
|
|
981 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
982 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
983 |
# Solaris 8's {/usr,}/bin/sh. |
|
984 |
touch sub/conftst$i.h
|
|
985 |
done
|
|
986 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
987 |
||
988 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
989 |
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
990 |
# handle `-M -o', and we need to detect this. Also, some Intel |
|
991 |
# versions had trouble with output in subdirs |
|
992 |
am__obj=sub/conftest.${OBJEXT-o} |
|
993 |
am__minus_obj="-o $am__obj" |
|
994 |
case $depmode in |
|
995 |
gcc) |
|
996 |
# This depmode causes a compiler race in universal mode. |
|
997 |
test "$am__universal" = false || continue |
|
998 |
;; |
|
999 |
nosideeffect) |
|
1000 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
1001 |
# only be used when explicitly requested
|
|
1002 |
if test "x$enable_dependency_tracking" = xyes; then
|
|
1003 |
continue
|
|
1004 |
else
|
|
1005 |
break
|
|
1006 |
fi
|
|
1007 |
;;
|
|
1008 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
|
1009 |
# This compiler won't grok `-c -o', but also, the minuso test has |
|
1010 |
# not run yet. These depmodes are late enough in the game, and
|
|
1011 |
# so weak that their functioning should not be impacted.
|
|
1012 |
am__obj=conftest.${OBJEXT-o}
|
|
1013 |
am__minus_obj=
|
|
1014 |
;;
|
|
1015 |
none) break ;;
|
|
1016 |
esac
|
|
1017 |
if depmode=$depmode \
|
|
1018 |
source=sub/conftest.c object=$am__obj \
|
|
1019 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
1020 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
|
1021 |
>/dev/null 2>conftest.err &&
|
|
1022 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
1023 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
1024 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
|
1025 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
1026 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
1027 |
# or remarks (even with -Werror). So we grep stderr for any message |
|
1028 |
# that says an option was ignored or not supported. |
|
1029 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
1030 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
1031 |
# The diagnosis changed in icc 8.0: |
|
1032 |
# icc: Command line remark: option '-MP' not supported |
|
1033 |
if (grep 'ignoring option' conftest.err || |
|
1034 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
1035 |
am_cv_$1_dependencies_compiler_type=$depmode |
|
1036 |
break |
|
1037 |
fi |
|
1038 |
fi |
|
1039 |
done |
|
1040 |
||
1041 |
cd .. |
|
1042 |
rm -rf conftest.dir |
|
1043 |
else
|
|
1044 |
am_cv_$1_dependencies_compiler_type=none |
|
1045 |
fi
|
|
1046 |
]) |
|
1047 |
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
|
1048 |
AM_CONDITIONAL([am__fastdep$1], [ |
|
1049 |
test "x$enable_dependency_tracking" != xno \
|
|
1050 |
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
|
1051 |
]) |
|
1052 |
||
1053 |
||
1054 |
# AM_SET_DEPDIR |
|
1055 |
# ------------- |
|
1056 |
# Choose a directory name for dependency files. |
|
1057 |
# This macro is AC_REQUIREd in _AM_DEPENDENCIES |
|
1058 |
AC_DEFUN([AM_SET_DEPDIR], |
|
1059 |
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
|
1060 |
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
|
1061 |
]) |
|
1062 |
||
1063 |
||
1064 |
# AM_DEP_TRACK |
|
1065 |
# ------------ |
|
1066 |
AC_DEFUN([AM_DEP_TRACK], |
|
1067 |
[AC_ARG_ENABLE(dependency-tracking, |
|
1068 |
[ --disable-dependency-tracking speeds up one-time build
|
|
1069 |
--enable-dependency-tracking do not reject slow dependency extractors]) |
|
1070 |
if test "x$enable_dependency_tracking" != xno; then |
|
1071 |
am_depcomp="$ac_aux_dir/depcomp" |
|
1072 |
AMDEPBACKSLASH='\' |
|
1073 |
am__nodep='_no' |
|
1074 |
fi
|
|
1075 |
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
|
1076 |
AC_SUBST([AMDEPBACKSLASH])dnl |
|
1077 |
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
|
1078 |
AC_SUBST([am__nodep])dnl |
|
1079 |
_AM_SUBST_NOTMAKE([am__nodep])dnl |
|
1080 |
]) |
|
1081 |
||
1082 |
# Generate code to set up dependency tracking. -*- Autoconf -*- |
|
1083 |
||
1084 |
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 |
|
1085 |
# Free Software Foundation, Inc. |
|
1086 |
#
|
|
1087 |
# This file is free software; the Free Software Foundation |
|
1088 |
# gives unlimited permission to copy and/or distribute it, |
|
1089 |
# with or without modifications, as long as this notice is preserved. |
|
1090 |
||
1091 |
#serial 5 |
|
1092 |
||
1093 |
# _AM_OUTPUT_DEPENDENCY_COMMANDS |
|
1094 |
# ------------------------------ |
|
1095 |
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
|
1096 |
[{ |
|
1097 |
# Autoconf 2.62 quotes --file arguments for eval, but not when files
|
|
1098 |
# are listed without --file. Let's play safe and only enable the eval
|
|
1099 |
# if we detect the quoting.
|
|
1100 |
case $CONFIG_FILES in
|
|
1101 |
*\'*) eval set x "$CONFIG_FILES" ;;
|
|
1102 |
*) set x $CONFIG_FILES ;;
|
|
1103 |
esac
|
|
1104 |
shift
|
|
1105 |
for mf
|
|
1106 |
do
|
|
1107 |
# Strip MF so we end up with the name of the file.
|
|
1108 |
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
1109 |
# Check whether this is an Automake generated Makefile or not.
|
|
1110 |
# We used to match only the files named `Makefile.in', but
|
|
1111 |
# some people rename them; so instead we look at the file content.
|
|
1112 |
# Grep'ing the first line is not enough: some people post-process
|
|
1113 |
# each Makefile.in and add a new line on top of each file to say so.
|
|
1114 |
# Grep'ing the whole file is not good either: AIX grep has a line
|
|
1115 |
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
1116 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
|
1117 |
dirpart=`AS_DIRNAME("$mf")`
|
|
1118 |
else
|
|
1119 |
continue
|
|
1120 |
fi
|
|
1121 |
# Extract the definition of DEPDIR, am__include, and am__quote
|
|
1122 |
# from the Makefile without running `make'.
|
|
1123 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
1124 |
test -z "$DEPDIR" && continue
|
|
1125 |
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
1126 |
test -z "am__include" && continue
|
|
1127 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
1128 |
# When using ansi2knr, U may be empty or an underscore; expand it
|
|
1129 |
U=`sed -n 's/^U = //p' < "$mf"`
|
|
1130 |
# Find all dependency output files, they are included files with
|
|
1131 |
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
1132 |
# simplest approach to changing $(DEPDIR) to its actual value in the
|
|
1133 |
# expansion.
|
|
1134 |
for file in `sed -n "
|
|
1135 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
1136 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
|
1137 |
# Make sure the directory exists.
|
|
1138 |
test -f "$dirpart/$file" && continue
|
|
1139 |
fdir=`AS_DIRNAME(["$file"])` |
|
1140 |
AS_MKDIR_P([$dirpart/$fdir]) |
|
1141 |
# echo "creating $dirpart/$file" |
|
1142 |
echo '# dummy' > "$dirpart/$file" |
|
1143 |
done |
|
1144 |
done |
|
1145 |
}
|
|
1146 |
])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
|
1147 |
||
1148 |
||
1149 |
# AM_OUTPUT_DEPENDENCY_COMMANDS |
|
1150 |
# ----------------------------- |
|
1151 |
# This macro should only be invoked once -- use via AC_REQUIRE. |
|
1152 |
#
|
|
1153 |
# This code is only required when automatic dependency tracking |
|
1154 |
# is enabled. FIXME. This creates each `.P' file that we will |
|
1155 |
# need in order to bootstrap the dependency handling code.
|
|
1156 |
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
1157 |
[AC_CONFIG_COMMANDS([depfiles],
|
|
1158 |
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
1159 |
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
|
1160 |
])
|
|
1161 |
||
1162 |
# Do all the work for Automake. -*- Autoconf -*-
|
|
1163 |
||
1164 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
|
1165 |
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
|
|
1166 |
#
|
|
1167 |
# This file is free software; the Free Software Foundation
|
|
1168 |
# gives unlimited permission to copy and/or distribute it,
|
|
1169 |
# with or without modifications, as long as this notice is preserved.
|
|
1170 |
||
1171 |
# serial 16
|
|
1172 |
||
1173 |
# This macro actually does too much. Some checks are only needed if
|
|
1174 |
# your package does certain things. But this isn't really a big deal. |
|
1175 |
||
1176 |
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
|
1177 |
# AM_INIT_AUTOMAKE([OPTIONS]) |
|
1178 |
# ----------------------------------------------- |
|
1179 |
# The call with PACKAGE and VERSION arguments is the old style |
|
1180 |
# call (pre autoconf-2.50), which is being phased out. PACKAGE |
|
1181 |
# and VERSION should now be passed to AC_INIT and removed from |
|
1182 |
# the call to AM_INIT_AUTOMAKE. |
|
1183 |
# We support both call styles for the transition. After |
|
1184 |
# the next Automake release, Autoconf can make the AC_INIT |
|
1185 |
# arguments mandatory, and then we can depend on a new Autoconf |
|
1186 |
# release and drop the old call support. |
|
1187 |
AC_DEFUN([AM_INIT_AUTOMAKE], |
|
1188 |
[AC_PREREQ([2.62])dnl |
|
1189 |
dnl Autoconf wants to disallow AM_ names. We explicitly allow |
|
1190 |
dnl the ones we care about. |
|
1191 |
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
|
1192 |
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
|
1193 |
AC_REQUIRE([AC_PROG_INSTALL])dnl |
|
1194 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
|
1195 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
|
1196 |
# is not polluted with repeated "-I."
|
|
1197 |
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
|
1198 |
# test to see if srcdir already configured
|
|
1199 |
if test -f $srcdir/config.status; then
|
|
1200 |
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|
1201 |
fi
|
|
1202 |
fi
|
|
1203 |
||
1204 |
# test whether we have cygpath
|
|
1205 |
if test -z "$CYGPATH_W"; then
|
|
1206 |
if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
1207 |
CYGPATH_W='cygpath -w' |
|
1208 |
else
|
|
1209 |
CYGPATH_W=echo
|
|
1210 |
fi
|
|
1211 |
fi
|
|
1212 |
AC_SUBST([CYGPATH_W])
|
|
1213 |
||
1214 |
# Define the identity of the package.
|
|
1215 |
dnl Distinguish between old-style and new-style calls.
|
|
1216 |
m4_ifval([$2],
|
|
1217 |
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
1218 |
AC_SUBST([PACKAGE], [$1])dnl
|
|
1219 |
AC_SUBST([VERSION], [$2])],
|
|
1220 |
[_AM_SET_OPTIONS([$1])dnl
|
|
1221 |
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
1222 |
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
|
|
1223 |
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
1224 |
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
|
1225 |
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
|
1226 |
||
1227 |
_AM_IF_OPTION([no-define],,
|
|
1228 |
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
|
1229 |
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
|
1230 |
||
1231 |
# Some tools Automake needs.
|
|
1232 |
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|
1233 |
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|
1234 |
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
|
1235 |
AM_MISSING_PROG(AUTOCONF, autoconf)
|
|
1236 |
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
|
1237 |
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
|
1238 |
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
|
1239 |
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
1240 |
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
1241 |
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
|
1242 |
# We need awk for the "check" target. The system "awk" is bad on
|
|
1243 |
# some platforms.
|
|
1244 |
AC_REQUIRE([AC_PROG_AWK])dnl
|
|
1245 |
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
1246 |
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
1247 |
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|
1248 |
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|
1249 |
[_AM_PROG_TAR([v7])])])
|
|
1250 |
_AM_IF_OPTION([no-dependencies],,
|
|
1251 |
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|
1252 |
[_AM_DEPENDENCIES(CC)],
|
|
1253 |
[define([AC_PROG_CC],
|
|
1254 |
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
|
1255 |
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
1256 |
[_AM_DEPENDENCIES(CXX)],
|
|
1257 |
[define([AC_PROG_CXX],
|
|
1258 |
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
|
1259 |
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
|
1260 |
[_AM_DEPENDENCIES(OBJC)],
|
|
1261 |
[define([AC_PROG_OBJC],
|
|
1262 |
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
|
|
1263 |
])
|
|
1264 |
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
|
|
1265 |
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the |
|
1266 |
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro |
|
1267 |
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
|
1268 |
AC_CONFIG_COMMANDS_PRE(dnl
|
|
1269 |
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
|
1270 |
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
|
1271 |
])
|
|
1272 |
||
1273 |
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
|
1274 |
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |
|
1275 |
dnl mangled by Autoconf and run in a shell conditional statement. |
|
1276 |
m4_define([_AC_COMPILER_EXEEXT], |
|
1277 |
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
|
1278 |
||
1279 |
||
1280 |
# When config.status generates a header, we must update the stamp-h file. |
|
1281 |
# This file resides in the same directory as the config header |
|
1282 |
# that is generated. The stamp files are numbered to have different names. |
|
1283 |
||
1284 |
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
|
1285 |
# loop where config.status creates the headers, so we can generate |
|
1286 |
# our stamp files there. |
|
1287 |
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
|
1288 |
[# Compute $1's index in $config_headers. |
|
1289 |
_am_arg=$1
|
|
1290 |
_am_stamp_count=1
|
|
1291 |
for _am_header in $config_headers :; do
|
|
1292 |
case $_am_header in
|
|
1293 |
$_am_arg | $_am_arg:* )
|
|
1294 |
break ;;
|
|
1295 |
* )
|
|
1296 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
1297 |
esac
|
|
1298 |
done
|
|
1299 |
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
|
1300 |
||
1301 |
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, |
|
1302 |
# Inc. |
|
1303 |
#
|
|
1304 |
# This file is free software; the Free Software Foundation |
|
1305 |
# gives unlimited permission to copy and/or distribute it, |
|
1306 |
# with or without modifications, as long as this notice is preserved. |
|
1307 |
||
1308 |
# serial 1 |
|
1309 |
||
1310 |
# AM_PROG_INSTALL_SH |
|
1311 |
# ------------------ |
|
1312 |
# Define $install_sh. |
|
1313 |
AC_DEFUN([AM_PROG_INSTALL_SH], |
|
1314 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
1315 |
if test x"${install_sh}" != xset; then |
|
1316 |
case $am_aux_dir in |
|
1317 |
*\ * | *\ *) |
|
1318 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
|
1319 |
*) |
|
1320 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
|
1321 |
esac |
|
1322 |
fi
|
|
1323 |
AC_SUBST(install_sh)]) |
|
1324 |
||
1325 |
# Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
|
1326 |
#
|
|
1327 |
# This file is free software; the Free Software Foundation |
|
1328 |
# gives unlimited permission to copy and/or distribute it, |
|
1329 |
# with or without modifications, as long as this notice is preserved. |
|
1330 |
||
1331 |
# serial 2 |
|
1332 |
||
1333 |
# Check whether the underlying file-system supports filenames |
|
1334 |
# with a leading dot. For instance MS-DOS doesn't. |
|
1335 |
AC_DEFUN([AM_SET_LEADING_DOT],
|
|
1336 |
[rm -rf .tst 2>/dev/null
|
|
1337 |
mkdir .tst 2>/dev/null
|
|
1338 |
if test -d .tst; then
|
|
1339 |
am__leading_dot=.
|
|
1340 |
else
|
|
1341 |
am__leading_dot=_
|
|
1342 |
fi
|
|
1343 |
rmdir .tst 2>/dev/null
|
|
1344 |
AC_SUBST([am__leading_dot])])
|
|
1345 |
||
1346 |
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
|
1347 |
# From Jim Meyering
|
|
1348 |
||
1349 |
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
|
|
1350 |
# 2011 Free Software Foundation, Inc.
|
|
1351 |
#
|
|
1352 |
# This file is free software; the Free Software Foundation
|
|
1353 |
# gives unlimited permission to copy and/or distribute it,
|
|
1354 |
# with or without modifications, as long as this notice is preserved.
|
|
1355 |
||
1356 |
# serial 5
|
|
1357 |
||
1358 |
# AM_MAINTAINER_MODE([DEFAULT-MODE])
|
|
1359 |
# ----------------------------------
|
|
1360 |
# Control maintainer-specific portions of Makefiles.
|
|
1361 |
# Default is to disable them, unless `enable' is passed literally. |
|
1362 |
# For symmetry, `disable' may be passed as well. Anyway, the user |
|
1363 |
# can override the default with the --enable/--disable switch.
|
|
1364 |
AC_DEFUN([AM_MAINTAINER_MODE],
|
|
1365 |
[m4_case(m4_default([$1], [disable]),
|
|
1366 |
[enable], [m4_define([am_maintainer_other], [disable])],
|
|
1367 |
[disable], [m4_define([am_maintainer_other], [enable])],
|
|
1368 |
[m4_define([am_maintainer_other], [enable])
|
|
1369 |
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
|
|
1370 |
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
|
1371 |
dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
|
1372 |
AC_ARG_ENABLE([maintainer-mode], |
|
1373 |
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful |
|
1374 |
(and sometimes confusing) to the casual installer], |
|
1375 |
[USE_MAINTAINER_MODE=$enableval], |
|
1376 |
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) |
|
1377 |
AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
|
1378 |
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
|
1379 |
MAINT=$MAINTAINER_MODE_TRUE |
|
1380 |
AC_SUBST([MAINT])dnl |
|
1381 |
]
|
|
1382 |
)
|
|
1383 |
||
1384 |
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
|
1385 |
||
1386 |
# Check to see how 'make' treats includes. -*- Autoconf -*- |
|
1387 |
||
1388 |
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. |
|
1389 |
#
|
|
1390 |
# This file is free software; the Free Software Foundation |
|
1391 |
# gives unlimited permission to copy and/or distribute it, |
|
1392 |
# with or without modifications, as long as this notice is preserved. |
|
1393 |
||
1394 |
# serial 4 |
|
1395 |
||
1396 |
# AM_MAKE_INCLUDE() |
|
1397 |
# ----------------- |
|
1398 |
# Check to see how make treats includes. |
|
1399 |
AC_DEFUN([AM_MAKE_INCLUDE], |
|
1400 |
[am_make=${MAKE-make} |
|
1401 |
cat > confinc << 'END'
|
|
1402 |
am__doit:
|
|
1403 |
@echo this is the am__doit target
|
|
1404 |
.PHONY: am__doit
|
|
1405 |
END
|
|
1406 |
# If we don't find an include directive, just comment out the code.
|
|
1407 |
AC_MSG_CHECKING([for style of include used by $am_make]) |
|
1408 |
am__include="#" |
|
1409 |
am__quote= |
|
1410 |
_am_result=none |
|
1411 |
# First try GNU make style include. |
|
1412 |
echo "include confinc" > confmf |
|
1413 |
# Ignore all kinds of additional output from `make'. |
|
1414 |
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
1415 |
*the\ am__doit\ target*)
|
|
1416 |
am__include=include
|
|
1417 |
am__quote=
|
|
1418 |
_am_result=GNU
|
|
1419 |
;;
|
|
1420 |
esac
|
|
1421 |
# Now try BSD make style include.
|
|
1422 |
if test "$am__include" = "#"; then
|
|
1423 |
echo '.include "confinc"' > confmf |
|
1424 |
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
1425 |
*the\ am__doit\ target*)
|
|
1426 |
am__include=.include
|
|
1427 |
am__quote="\""
|
|
1428 |
_am_result=BSD
|
|
1429 |
;;
|
|
1430 |
esac
|
|
1431 |
fi
|
|
1432 |
AC_SUBST([am__include])
|
|
1433 |
AC_SUBST([am__quote])
|
|
1434 |
AC_MSG_RESULT([$_am_result])
|
|
1435 |
rm -f confinc confmf
|
|
1436 |
])
|
|
1437 |
||
1438 |
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
|
|
1439 |
# Free Software Foundation, Inc.
|
|
1440 |
#
|
|
1441 |
# This file is free software; the Free Software Foundation
|
|
1442 |
# gives unlimited permission to copy and/or distribute it,
|
|
1443 |
# with or without modifications, as long as this notice is preserved.
|
|
1444 |
||
1445 |
# serial 6
|
|
1446 |
||
1447 |
# AM_PROG_CC_C_O
|
|
1448 |
# --------------
|
|
1449 |
# Like AC_PROG_CC_C_O, but changed for automake.
|
|
1450 |
AC_DEFUN([AM_PROG_CC_C_O],
|
|
1451 |
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
|
|
1452 |
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
1453 |
AC_REQUIRE_AUX_FILE([compile])dnl
|
|
1454 |
# FIXME: we rely on the cache variable name because
|
|
1455 |
# there is no other way.
|
|
1456 |
set dummy $CC
|
|
1457 |
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` |
|
1458 |
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
|
|
1459 |
if test "$am_t" != yes; then
|
|
1460 |
# Losing compiler, so override with the script.
|
|
1461 |
# FIXME: It is wrong to rewrite CC.
|
|
1462 |
# But if we don't then we get into trouble of one sort or another. |
|
1463 |
# A longer-term fix would be to have automake use am__CC in this case, |
|
1464 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
|
1465 |
CC="$am_aux_dir/compile $CC" |
|
1466 |
fi
|
|
1467 |
dnl Make sure AC_PROG_CC is never called again, or it will override our |
|
1468 |
dnl setting of CC. |
|
1469 |
m4_define([AC_PROG_CC], |
|
1470 |
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) |
|
1471 |
]) |
|
1472 |
||
1473 |
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
|
1474 |
||
1475 |
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 |
|
1476 |
# Free Software Foundation, Inc. |
|
1477 |
#
|
|
1478 |
# This file is free software; the Free Software Foundation |
|
1479 |
# gives unlimited permission to copy and/or distribute it, |
|
1480 |
# with or without modifications, as long as this notice is preserved. |
|
1481 |
||
1482 |
# serial 6 |
|
1483 |
||
1484 |
# AM_MISSING_PROG(NAME, PROGRAM) |
|
1485 |
# ------------------------------ |
|
1486 |
AC_DEFUN([AM_MISSING_PROG], |
|
1487 |
[AC_REQUIRE([AM_MISSING_HAS_RUN]) |
|
1488 |
$1=${$1-"${am_missing_run}$2"} |
|
1489 |
AC_SUBST($1)]) |
|
1490 |
||
1491 |
||
1492 |
# AM_MISSING_HAS_RUN |
|
1493 |
# ------------------ |
|
1494 |
# Define MISSING if not defined so far and test if it supports --run. |
|
1495 |
# If it does, set am_missing_run to use it, otherwise, to nothing. |
|
1496 |
AC_DEFUN([AM_MISSING_HAS_RUN], |
|
1497 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
|
1498 |
AC_REQUIRE_AUX_FILE([missing])dnl |
|
1499 |
if test x"${MISSING+set}" != xset; then |
|
1500 |
case $am_aux_dir in |
|
1501 |
*\ * | *\ *) |
|
1502 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
|
1503 |
*) |
|
1504 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
|
1505 |
esac |
|
1506 |
fi
|
|
1507 |
# Use eval to expand $SHELL |
|
1508 |
if eval "$MISSING --run true"; then |
|
1509 |
am_missing_run="$MISSING --run " |
|
1510 |
else
|
|
1511 |
am_missing_run= |
|
1512 |
AC_MSG_WARN([`missing' script is too old or missing]) |
|
1513 |
fi
|
|
1514 |
]) |
|
1515 |
||
1516 |
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, |
|
1517 |
# Inc. |
|
1518 |
#
|
|
1519 |
# This file is free software; the Free Software Foundation |
|
1520 |
# gives unlimited permission to copy and/or distribute it, |
|
1521 |
# with or without modifications, as long as this notice is preserved. |
|
1522 |
||
1523 |
# serial 1 |
|
1524 |
||
1525 |
# AM_PROG_MKDIR_P |
|
1526 |
# --------------- |
|
1527 |
# Check for `mkdir -p'. |
|
1528 |
AC_DEFUN([AM_PROG_MKDIR_P],
|
|
1529 |
[AC_PREREQ([2.60])dnl
|
|
1530 |
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
1531 |
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
|
|
1532 |
dnl while keeping a definition of mkdir_p for backward compatibility.
|
|
1533 |
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
|
|
1534 |
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
|
|
1535 |
dnl Makefile.ins that do not define MKDIR_P, so we do our own
|
|
1536 |
dnl adjustment using top_builddir (which is defined more often than
|
|
1537 |
dnl MKDIR_P).
|
|
1538 |
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
|
|
1539 |
case $mkdir_p in
|
|
1540 |
[[\\/$]]* | ?:[[\\/]]*) ;;
|
|
1541 |
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
|
1542 |
esac
|
|
1543 |
])
|
|
1544 |
||
1545 |
# Helper functions for option handling. -*- Autoconf -*-
|
|
1546 |
||
1547 |
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
|
|
1548 |
# Foundation, Inc.
|
|
1549 |
#
|
|
1550 |
# This file is free software; the Free Software Foundation
|
|
1551 |
# gives unlimited permission to copy and/or distribute it,
|
|
1552 |
# with or without modifications, as long as this notice is preserved.
|
|
1553 |
||
1554 |
# serial 5
|
|
1555 |
||
1556 |
# _AM_MANGLE_OPTION(NAME)
|
|
1557 |
# -----------------------
|
|
1558 |
AC_DEFUN([_AM_MANGLE_OPTION],
|
|
1559 |
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|
1560 |
||
1561 |
# _AM_SET_OPTION(NAME)
|
|
1562 |
# --------------------
|
|
1563 |
# Set option NAME. Presently that only means defining a flag for this option.
|
|
1564 |
AC_DEFUN([_AM_SET_OPTION],
|
|
1565 |
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
|
1566 |
||
1567 |
# _AM_SET_OPTIONS(OPTIONS)
|
|
1568 |
# ------------------------
|
|
1569 |
# OPTIONS is a space-separated list of Automake options.
|
|
1570 |
AC_DEFUN([_AM_SET_OPTIONS],
|
|
1571 |
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
|
1572 |
||
1573 |
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|
1574 |
# -------------------------------------------
|
|
1575 |
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
1576 |
AC_DEFUN([_AM_IF_OPTION],
|
|
1577 |
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
1578 |
||
1579 |
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
1580 |
||
1581 |
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
|
|
1582 |
# Free Software Foundation, Inc.
|
|
1583 |
#
|
|
1584 |
# This file is free software; the Free Software Foundation
|
|
1585 |
# gives unlimited permission to copy and/or distribute it,
|
|
1586 |
# with or without modifications, as long as this notice is preserved.
|
|
1587 |
||
1588 |
# serial 5
|
|
1589 |
||
1590 |
# AM_SANITY_CHECK
|
|
1591 |
# ---------------
|
|
1592 |
AC_DEFUN([AM_SANITY_CHECK],
|
|
1593 |
[AC_MSG_CHECKING([whether build environment is sane])
|
|
1594 |
# Just in case
|
|
1595 |
sleep 1
|
|
1596 |
echo timestamp > conftest.file
|
|
1597 |
# Reject unsafe characters in $srcdir or the absolute working directory
|
|
1598 |
# name. Accept space and tab only in the latter.
|
|
1599 |
am_lf='
|
|
1600 |
'
|
|
1601 |
case `pwd` in
|
|
1602 |
*[[\\\"\#\$\&\'\`$am_lf]]*) |
|
1603 |
AC_MSG_ERROR([unsafe absolute working directory name]);; |
|
1604 |
esac
|
|
1605 |
case $srcdir in |
|
1606 |
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) |
|
1607 |
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; |
|
1608 |
esac
|
|
1609 |
||
1610 |
# Do `set' in a subshell so we don't clobber the current shell's |
|
1611 |
# arguments. Must try -L first in case configure is actually a
|
|
1612 |
# symlink; some systems play weird games with the mod time of symlinks
|
|
1613 |
# (eg FreeBSD returns the mod time of the symlink's containing |
|
1614 |
# directory). |
|
1615 |
if ( |
|
1616 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
|
1617 |
if test "$[*]" = "X"; then |
|
1618 |
# -L didn't work. |
|
1619 |
set X `ls -t "$srcdir/configure" conftest.file`
|
|
1620 |
fi
|
|
1621 |
rm -f conftest.file
|
|
1622 |
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|
1623 |
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|
1624 |
||
1625 |
# If neither matched, then we have a broken ls. This can happen
|
|
1626 |
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
1627 |
# broken ls alias from the environment. This has actually
|
|
1628 |
# happened. Such a system could not be considered "sane".
|
|
1629 |
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|
1630 |
alias in your environment])
|
|
1631 |
fi
|
|
1632 |
||
1633 |
test "$[2]" = conftest.file
|
|
1634 |
)
|
|
1635 |
then
|
|
1636 |
# Ok.
|
|
1637 |
:
|
|
1638 |
else
|
|
1639 |
AC_MSG_ERROR([newly created file is older than distributed files!
|
|
1640 |
Check your system clock])
|
|
1641 |
fi
|
|
1642 |
AC_MSG_RESULT(yes)])
|
|
1643 |
||
1644 |
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
|
|
1645 |
#
|
|
1646 |
# This file is free software; the Free Software Foundation
|
|
1647 |
# gives unlimited permission to copy and/or distribute it,
|
|
1648 |
# with or without modifications, as long as this notice is preserved.
|
|
1649 |
||
1650 |
# serial 2
|
|
1651 |
||
1652 |
# AM_SILENT_RULES([DEFAULT])
|
|
1653 |
# --------------------------
|
|
1654 |
# Enable less verbose build rules; with the default set to DEFAULT
|
|
1655 |
# (`yes' being less verbose, `no' or empty being verbose). |
|
1656 |
AC_DEFUN([AM_SILENT_RULES],
|
|
1657 |
[AC_ARG_ENABLE([silent-rules],
|
|
1658 |
[ --enable-silent-rules less verbose build output (undo: `make V=1') |
|
1659 |
--disable-silent-rules verbose build output (undo: `make V=0')]) |
|
1660 |
case $enable_silent_rules in
|
|
1661 |
yes) AM_DEFAULT_VERBOSITY=0;;
|
|
1662 |
no) AM_DEFAULT_VERBOSITY=1;;
|
|
1663 |
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
|
|
1664 |
esac
|
|
1665 |
dnl
|
|
1666 |
dnl A few `make' implementations (e.g., NonStop OS and NextStep) |
|
1667 |
dnl do not support nested variable expansions. |
|
1668 |
dnl See automake bug#9928 and bug#10237. |
|
1669 |
am_make=${MAKE-make} |
|
1670 |
AC_CACHE_CHECK([whether $am_make supports nested variables], |
|
1671 |
[am_cv_make_support_nested_variables], |
|
1672 |
[if AS_ECHO([['TRUE=$(BAR$(V)) |
|
1673 |
BAR0=false
|
|
1674 |
BAR1=true
|
|
1675 |
V=1
|
|
1676 |
am__doit:
|
|
1677 |
@$(TRUE)
|
|
1678 |
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then |
|
1679 |
am_cv_make_support_nested_variables=yes |
|
1680 |
else
|
|
1681 |
am_cv_make_support_nested_variables=no |
|
1682 |
fi]) |
|
1683 |
if test $am_cv_make_support_nested_variables = yes; then |
|
1684 |
dnl Using `$V' instead of `$(V)' breaks IRIX make. |
|
1685 |
AM_V='$(V)' |
|
1686 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
|
1687 |
else
|
|
1688 |
AM_V=$AM_DEFAULT_VERBOSITY |
|
1689 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
|
1690 |
fi
|
|
1691 |
AC_SUBST([AM_V])dnl |
|
1692 |
AM_SUBST_NOTMAKE([AM_V])dnl |
|
1693 |
AC_SUBST([AM_DEFAULT_V])dnl |
|
1694 |
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl |
|
1695 |
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl |
|
1696 |
AM_BACKSLASH='\' |
|
1697 |
AC_SUBST([AM_BACKSLASH])dnl |
|
1698 |
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
|
1699 |
]) |
|
1700 |
||
1701 |
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. |
|
1702 |
#
|
|
1703 |
# This file is free software; the Free Software Foundation |
|
1704 |
# gives unlimited permission to copy and/or distribute it, |
|
1705 |
# with or without modifications, as long as this notice is preserved. |
|
1706 |
||
1707 |
# serial 1 |
|
1708 |
||
1709 |
# AM_PROG_INSTALL_STRIP |
|
1710 |
# --------------------- |
|
1711 |
# One issue with vendor `install' (even GNU) is that you can't |
|
1712 |
# specify the program used to strip binaries. This is especially |
|
1713 |
# annoying in cross-compiling environments, where the build's strip |
|
1714 |
# is unlikely to handle the host's binaries. |
|
1715 |
# Fortunately install-sh will honor a STRIPPROG variable, so we |
|
1716 |
# always use install-sh in `make install-strip', and initialize |
|
1717 |
# STRIPPROG with the value of the STRIP variable (set by the user).
|
|
1718 |
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
|
1719 |
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
1720 |
# Installed binaries are usually stripped using `strip' when the user |
|
1721 |
# run `make install-strip'. However `strip' might not be the right |
|
1722 |
# tool to use in cross-compilation environments, therefore Automake |
|
1723 |
# will honor the `STRIP' environment variable to overrule this program. |
|
1724 |
dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
|
1725 |
if test "$cross_compiling" != no; then
|
|
1726 |
AC_CHECK_TOOL([STRIP], [strip], :)
|
|
1727 |
fi
|
|
1728 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
1729 |
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
1730 |
||
1731 |
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
|
|
1732 |
#
|
|
1733 |
# This file is free software; the Free Software Foundation
|
|
1734 |
# gives unlimited permission to copy and/or distribute it,
|
|
1735 |
# with or without modifications, as long as this notice is preserved.
|
|
1736 |
||
1737 |
# serial 3
|
|
1738 |
||
1739 |
# _AM_SUBST_NOTMAKE(VARIABLE)
|
|
1740 |
# ---------------------------
|
|
1741 |
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
|
1742 |
# This macro is traced by Automake.
|
|
1743 |
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
|
1744 |
||
1745 |
# AM_SUBST_NOTMAKE(VARIABLE)
|
|
1746 |
# --------------------------
|
|
1747 |
# Public sister of _AM_SUBST_NOTMAKE.
|
|
1748 |
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
1749 |
||
1750 |
# Check how to create a tarball. -*- Autoconf -*-
|
|
1751 |
||
1752 |
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
|
|
1753 |
#
|
|
1754 |
# This file is free software; the Free Software Foundation
|
|
1755 |
# gives unlimited permission to copy and/or distribute it,
|
|
1756 |
# with or without modifications, as long as this notice is preserved.
|
|
1757 |
||
1758 |
# serial 2
|
|
1759 |
||
1760 |
# _AM_PROG_TAR(FORMAT)
|
|
1761 |
# --------------------
|
|
1762 |
# Check how to create a tarball in format FORMAT.
|
|
1763 |
# FORMAT should be one of `v7', `ustar', or `pax'. |
|
1764 |
#
|
|
1765 |
# Substitute a variable $(am__tar) that is a command |
|
1766 |
# writing to stdout a FORMAT-tarball containing the directory |
|
1767 |
# $tardir. |
|
1768 |
# tardir=directory && $(am__tar) > result.tar |
|
1769 |
#
|
|
1770 |
# Substitute a variable $(am__untar) that extract such |
|
1771 |
# a tarball read from stdin. |
|
1772 |
# $(am__untar) < result.tar |
|
1773 |
AC_DEFUN([_AM_PROG_TAR], |
|
1774 |
[# Always define AMTAR for backward compatibility. Yes, it's still used |
|
1775 |
# in the wild :-( We should find a proper way to deprecate it ...
|
|
1776 |
AC_SUBST([AMTAR], ['$${TAR-tar}']) |
|
1777 |
m4_if([$1], [v7], |
|
1778 |
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], |
|
1779 |
[m4_case([$1], [ustar],, [pax],, |
|
1780 |
[m4_fatal([Unknown tar format])]) |
|
1781 |
AC_MSG_CHECKING([how to create a $1 tar archive]) |
|
1782 |
# Loop over all known methods to create a tar archive until one works. |
|
1783 |
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
|
1784 |
_am_tools=${am_cv_prog_tar_$1-$_am_tools} |
|
1785 |
# Do not fold the above two line into one, because Tru64 sh and |
|
1786 |
# Solaris sh will not grok spaces in the rhs of `-'. |
|
1787 |
for _am_tool in $_am_tools
|
|
1788 |
do
|
|
1789 |
case $_am_tool in
|
|
1790 |
gnutar)
|
|
1791 |
for _am_tar in tar gnutar gtar;
|
|
1792 |
do
|
|
1793 |
AM_RUN_LOG([$_am_tar --version]) && break
|
|
1794 |
done
|
|
1795 |
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
|
1796 |
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
|
1797 |
am__untar="$_am_tar -xf -"
|
|
1798 |
;;
|
|
1799 |
plaintar)
|
|
1800 |
# Must skip GNU tar: if it does not support --format= it doesn't create |
|
1801 |
# ustar tarball either. |
|
1802 |
(tar --version) >/dev/null 2>&1 && continue |
|
1803 |
am__tar='tar chf - "$$tardir"' |
|
1804 |
am__tar_='tar chf - "$tardir"' |
|
1805 |
am__untar='tar xf -' |
|
1806 |
;; |
|
1807 |
pax) |
|
1808 |
am__tar='pax -L -x $1 -w "$$tardir"' |
|
1809 |
am__tar_='pax -L -x $1 -w "$tardir"' |
|
1810 |
am__untar='pax -r' |
|
1811 |
;; |
|
1812 |
cpio) |
|
1813 |
am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
|
1814 |
am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
|
1815 |
am__untar='cpio -i -H $1 -d' |
|
1816 |
;; |
|
1817 |
none) |
|
1818 |
am__tar=false |
|
1819 |
am__tar_=false |
|
1820 |
am__untar=false |
|
1821 |
;; |
|
1822 |
esac |
|
1823 |
||
1824 |
# If the value was cached, stop now. We just wanted to have am__tar |
|
1825 |
# and am__untar set. |
|
1826 |
test -n "${am_cv_prog_tar_$1}" && break |
|
1827 |
||
1828 |
# tar/untar a dummy directory, and stop if the command works |
|
1829 |
rm -rf conftest.dir |
|
1830 |
mkdir conftest.dir |
|
1831 |
echo GrepMe > conftest.dir/file |
|
1832 |
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
|
1833 |
rm -rf conftest.dir |
|
1834 |
if test -s conftest.tar; then |
|
1835 |
AM_RUN_LOG([$am__untar <conftest.tar]) |
|
1836 |
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
|
1837 |
fi |
|
1838 |
done
|
|
1839 |
rm -rf conftest.dir |
|
1840 |
||
1841 |
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
|
1842 |
AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
|
1843 |
AC_SUBST([am__tar]) |
|
1844 |
AC_SUBST([am__untar]) |
|
1845 |
]) # _AM_PROG_TAR |
|
1846 |
||
1847 |
# Autoconf support for the Vala compiler |
|
1848 |
||
1849 |
# Copyright (C) 2008, 2009 Free Software Foundation, Inc. |
|
1850 |
#
|
|
1851 |
# This file is free software; the Free Software Foundation |
|
1852 |
# gives unlimited permission to copy and/or distribute it, |
|
1853 |
# with or without modifications, as long as this notice is preserved. |
|
1854 |
||
1855 |
# serial 4 |
|
1856 |
||
1857 |
# Check whether the Vala compiler exists in `PATH'. If it is found, the |
|
1858 |
# variable VALAC is set. Optionally a minimum release number of the
|
|
1859 |
# compiler can be requested.
|
|
1860 |
#
|
|
1861 |
# AM_PROG_VALAC([MINIMUM-VERSION])
|
|
1862 |
# --------------------------------
|
|
1863 |
AC_DEFUN([AM_PROG_VALAC],
|
|
1864 |
[AC_PATH_PROG([VALAC], [valac], [])
|
|
1865 |
AS_IF([test -z "$VALAC"],
|
|
1866 |
[AC_MSG_WARN([No Vala compiler found. You will not be able to compile .vala source files.])],
|
|
1867 |
[AS_IF([test -n "$1"],
|
|
1868 |
[AC_MSG_CHECKING([$VALAC is at least version $1])
|
|
1869 |
am__vala_version=`$VALAC --version | sed 's/Vala *//'` |
|
1870 |
AS_VERSION_COMPARE([$1], ["$am__vala_version"], |
|
1871 |
[AC_MSG_RESULT([yes])], |
|
1872 |
[AC_MSG_RESULT([yes])], |
|
1873 |
[AC_MSG_RESULT([no]) |
|
1874 |
AC_MSG_ERROR([Vala $1 not found.])])])]) |
|
1875 |
]) |
|
1876 |