Subversion Repositories alertlog

Rev

Details | Last modification | View Log | RSS feed

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