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