~ubuntu-branches/ubuntu/utopic/texlive-bin/utopic

« back to all changes in this revision

Viewing changes to texk/lcdf-typetools/aclocal.m4

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-05-07 10:47:49 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20120507104749-p00ot5sajjbkp1hp
Tags: 2011.20120507-1
* new upstream checkout: uptex 1.10
* drop patches for config file inclusion in (x)dvipdfmx, included upstream
* add man page for etex
* include pmpost patches and build it
* adapt/unfuzzify patches for current sources
* disable mtx building, we have prepmx package in Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.11.4 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.12 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
14
14
 
15
15
m4_ifndef([AC_AUTOCONF_VERSION],
16
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.
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
 
18
[m4_warning([this file was generated for autoconf 2.69.
19
19
You have another version of autoconf.  It may work, but is not guaranteed to.
20
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'.])])
 
21
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
22
 
23
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
24
 
# Foundation, Inc.
 
23
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
25
24
#
26
25
# This file is free software; the Free Software Foundation
27
26
# gives unlimited permission to copy and/or distribute it,
28
27
# with or without modifications, as long as this notice is preserved.
29
28
 
30
 
# serial 1
 
29
# serial 8
31
30
 
32
31
# AM_AUTOMAKE_VERSION(VERSION)
33
32
# ----------------------------
35
34
# generated from the m4 files accompanying Automake X.Y.
36
35
# (This private macro should not be called outside this file.)
37
36
AC_DEFUN([AM_AUTOMAKE_VERSION],
38
 
[am__api_version='1.11'
 
37
[am__api_version='1.12'
39
38
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
40
39
dnl require some minimum version.  Point them to the right macro.
41
 
m4_if([$1], [1.11.4], [],
 
40
m4_if([$1], [1.12], [],
42
41
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
43
42
])
44
43
 
54
53
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
55
54
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
56
55
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
57
 
[AM_AUTOMAKE_VERSION([1.11.4])dnl
 
56
[AM_AUTOMAKE_VERSION([1.12])dnl
58
57
m4_ifndef([AC_AUTOCONF_VERSION],
59
58
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
60
59
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
61
60
 
62
61
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
63
62
 
64
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
63
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
65
64
#
66
65
# This file is free software; the Free Software Foundation
67
66
# gives unlimited permission to copy and/or distribute it,
68
67
# with or without modifications, as long as this notice is preserved.
69
68
 
70
 
# serial 1
 
69
# serial 2
71
70
 
72
71
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
73
 
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
74
 
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
 
72
# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
 
73
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
75
74
#
76
75
# Of course, Automake must honor this variable whenever it calls a
77
76
# tool from the auxiliary directory.  The problem is that $srcdir (and
90
89
#
91
90
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
92
91
# are both prefixed by $srcdir.  In an in-source build this is usually
93
 
# harmless because $srcdir is `.', but things will broke when you
 
92
# harmless because $srcdir is '.', but things will broke when you
94
93
# start a VPATH build or use an absolute $srcdir.
95
94
#
96
95
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
116
115
 
117
116
# AM_CONDITIONAL                                            -*- Autoconf -*-
118
117
 
119
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
120
 
# Free Software Foundation, Inc.
 
118
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
121
119
#
122
120
# This file is free software; the Free Software Foundation
123
121
# gives unlimited permission to copy and/or distribute it,
124
122
# with or without modifications, as long as this notice is preserved.
125
123
 
126
 
# serial 9
 
124
# serial 10
127
125
 
128
126
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
129
127
# -------------------------------------
130
128
# Define a conditional.
131
129
AC_DEFUN([AM_CONDITIONAL],
132
 
[AC_PREREQ(2.52)dnl
133
 
 ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
134
 
        [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
 
130
[AC_PREREQ([2.52])dnl
 
131
 m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
 
132
       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
135
133
AC_SUBST([$1_TRUE])dnl
136
134
AC_SUBST([$1_FALSE])dnl
137
135
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
150
148
Usually this means the macro was only invoked conditionally.]])
151
149
fi])])
152
150
 
153
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
154
 
# 2010, 2011 Free Software Foundation, Inc.
 
151
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
155
152
#
156
153
# This file is free software; the Free Software Foundation
157
154
# gives unlimited permission to copy and/or distribute it,
158
155
# with or without modifications, as long as this notice is preserved.
159
156
 
160
 
# serial 12
 
157
# serial 16
161
158
 
162
 
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
 
159
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
163
160
# written in clear, in which case automake, when reading aclocal.m4,
164
161
# will think it sees a *use*, and therefore will trigger all it's
165
162
# C support machinery.  Also note that it means that autoscan, seeing
182
179
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
183
180
AC_REQUIRE([AM_DEP_TRACK])dnl
184
181
 
185
 
ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
186
 
       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
187
 
       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
188
 
       [$1], UPC,  [depcc="$UPC"  am_compiler_list=],
189
 
       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
190
 
                   [depcc="$$1"   am_compiler_list=])
 
182
m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
 
183
      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
 
184
      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
 
185
      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
 
186
      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
 
187
                    [depcc="$$1"   am_compiler_list=])
191
188
 
192
189
AC_CACHE_CHECK([dependency style of $depcc],
193
190
               [am_cv_$1_dependencies_compiler_type],
195
192
  # We make a subdir and do the tests there.  Otherwise we can end up
196
193
  # making bogus files that we don't know about and never remove.  For
197
194
  # instance it was reported that on HP-UX the gcc test will end up
198
 
  # making a dummy file named `D' -- because `-MD' means `put the output
199
 
  # in D'.
 
195
  # making a dummy file named 'D' -- because '-MD' means "put the output
 
196
  # in D".
200
197
  rm -rf conftest.dir
201
198
  mkdir conftest.dir
202
199
  # Copy depcomp to subdir because otherwise we won't find it if we're
236
233
    : > sub/conftest.c
237
234
    for i in 1 2 3 4 5 6; do
238
235
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
239
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
240
 
      # Solaris 8's {/usr,}/bin/sh.
241
 
      touch sub/conftst$i.h
 
236
      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 
237
      # Solaris 10 /bin/sh.
 
238
      echo '/* dummy */' > sub/conftst$i.h
242
239
    done
243
240
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
244
241
 
245
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
242
    # We check with '-c' and '-o' for the sake of the "dashmstdout"
246
243
    # mode.  It turns out that the SunPro C++ compiler does not properly
247
 
    # handle `-M -o', and we need to detect this.  Also, some Intel
248
 
    # versions had trouble with output in subdirs
 
244
    # handle '-M -o', and we need to detect this.  Also, some Intel
 
245
    # versions had trouble with output in subdirs.
249
246
    am__obj=sub/conftest.${OBJEXT-o}
250
247
    am__minus_obj="-o $am__obj"
251
248
    case $depmode in
254
251
      test "$am__universal" = false || continue
255
252
      ;;
256
253
    nosideeffect)
257
 
      # after this tag, mechanisms are not by side-effect, so they'll
258
 
      # only be used when explicitly requested
 
254
      # After this tag, mechanisms are not by side-effect, so they'll
 
255
      # only be used when explicitly requested.
259
256
      if test "x$enable_dependency_tracking" = xyes; then
260
257
        continue
261
258
      else
263
260
      fi
264
261
      ;;
265
262
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
266
 
      # This compiler won't grok `-c -o', but also, the minuso test has
 
263
      # This compiler won't grok '-c -o', but also, the minuso test has
267
264
      # not run yet.  These depmodes are late enough in the game, and
268
265
      # so weak that their functioning should not be impacted.
269
266
      am__obj=conftest.${OBJEXT-o}
311
308
# AM_SET_DEPDIR
312
309
# -------------
313
310
# Choose a directory name for dependency files.
314
 
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
 
311
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
315
312
AC_DEFUN([AM_SET_DEPDIR],
316
313
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
317
314
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
321
318
# AM_DEP_TRACK
322
319
# ------------
323
320
AC_DEFUN([AM_DEP_TRACK],
324
 
[AC_ARG_ENABLE(dependency-tracking,
325
 
[  --disable-dependency-tracking  speeds up one-time build
326
 
  --enable-dependency-tracking   do not reject slow dependency extractors])
 
321
[AC_ARG_ENABLE([dependency-tracking], [dnl
 
322
AS_HELP_STRING(
 
323
  [--enable-dependency-tracking],
 
324
  [do not reject slow dependency extractors])
 
325
AS_HELP_STRING(
 
326
  [--disable-dependency-tracking],
 
327
  [speeds up one-time build])])
327
328
if test "x$enable_dependency_tracking" != xno; then
328
329
  am_depcomp="$ac_aux_dir/depcomp"
329
330
  AMDEPBACKSLASH='\'
338
339
 
339
340
# Generate code to set up dependency tracking.              -*- Autoconf -*-
340
341
 
341
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
342
 
# Free Software Foundation, Inc.
 
342
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
343
343
#
344
344
# This file is free software; the Free Software Foundation
345
345
# gives unlimited permission to copy and/or distribute it,
346
346
# with or without modifications, as long as this notice is preserved.
347
347
 
348
 
#serial 5
 
348
# serial 6
349
349
 
350
350
# _AM_OUTPUT_DEPENDENCY_COMMANDS
351
351
# ------------------------------
364
364
    # Strip MF so we end up with the name of the file.
365
365
    mf=`echo "$mf" | sed -e 's/:.*$//'`
366
366
    # Check whether this is an Automake generated Makefile or not.
367
 
    # We used to match only the files named `Makefile.in', but
 
367
    # We used to match only the files named 'Makefile.in', but
368
368
    # some people rename them; so instead we look at the file content.
369
369
    # Grep'ing the first line is not enough: some people post-process
370
370
    # each Makefile.in and add a new line on top of each file to say so.
376
376
      continue
377
377
    fi
378
378
    # Extract the definition of DEPDIR, am__include, and am__quote
379
 
    # from the Makefile without running `make'.
 
379
    # from the Makefile without running 'make'.
380
380
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
381
381
    test -z "$DEPDIR" && continue
382
382
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
383
383
    test -z "am__include" && continue
384
384
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
385
 
    # When using ansi2knr, U may be empty or an underscore; expand it
386
 
    U=`sed -n 's/^U = //p' < "$mf"`
387
385
    # Find all dependency output files, they are included files with
388
386
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
389
387
    # simplest approach to changing $(DEPDIR) to its actual value in the
390
388
    # expansion.
391
389
    for file in `sed -n "
392
390
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
393
 
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
391
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
394
392
      # Make sure the directory exists.
395
393
      test -f "$dirpart/$file" && continue
396
394
      fdir=`AS_DIRNAME(["$file"])`
408
406
# This macro should only be invoked once -- use via AC_REQUIRE.
409
407
#
410
408
# This code is only required when automatic dependency tracking
411
 
# is enabled.  FIXME.  This creates each `.P' file that we will
 
409
# is enabled.  FIXME.  This creates each '.P' file that we will
412
410
# need in order to bootstrap the dependency handling code.
413
411
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
414
412
[AC_CONFIG_COMMANDS([depfiles],
416
414
     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
417
415
])
418
416
 
419
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
420
 
# Free Software Foundation, Inc.
 
417
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
421
418
#
422
419
# This file is free software; the Free Software Foundation
423
420
# gives unlimited permission to copy and/or distribute it,
430
427
 
431
428
# Do all the work for Automake.                             -*- Autoconf -*-
432
429
 
433
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
434
 
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
 
430
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
435
431
#
436
432
# This file is free software; the Free Software Foundation
437
433
# gives unlimited permission to copy and/or distribute it,
438
434
# with or without modifications, as long as this notice is preserved.
439
435
 
440
 
# serial 16
 
436
# serial 18
441
437
 
442
438
# This macro actually does too much.  Some checks are only needed if
443
439
# your package does certain things.  But this isn't really a big deal.
488
484
 AC_SUBST([VERSION], [$2])],
489
485
[_AM_SET_OPTIONS([$1])dnl
490
486
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
491
 
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
 
487
m4_if(
 
488
  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
 
489
  [ok:ok],,
492
490
  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
493
491
 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
494
492
 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
495
493
 
496
494
_AM_IF_OPTION([no-define],,
497
 
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
498
 
 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
 
495
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
 
496
 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
499
497
 
500
498
# Some tools Automake needs.
501
499
AC_REQUIRE([AM_SANITY_CHECK])dnl
502
500
AC_REQUIRE([AC_ARG_PROGRAM])dnl
503
 
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
504
 
AM_MISSING_PROG(AUTOCONF, autoconf)
505
 
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
506
 
AM_MISSING_PROG(AUTOHEADER, autoheader)
507
 
AM_MISSING_PROG(MAKEINFO, makeinfo)
 
501
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
 
502
AM_MISSING_PROG([AUTOCONF], [autoconf])
 
503
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
 
504
AM_MISSING_PROG([AUTOHEADER], [autoheader])
 
505
AM_MISSING_PROG([MAKEINFO], [makeinfo])
508
506
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
509
507
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
510
508
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
518
516
                             [_AM_PROG_TAR([v7])])])
519
517
_AM_IF_OPTION([no-dependencies],,
520
518
[AC_PROVIDE_IFELSE([AC_PROG_CC],
521
 
                  [_AM_DEPENDENCIES(CC)],
 
519
                  [_AM_DEPENDENCIES([CC])],
522
520
                  [define([AC_PROG_CC],
523
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
521
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
524
522
AC_PROVIDE_IFELSE([AC_PROG_CXX],
525
 
                  [_AM_DEPENDENCIES(CXX)],
 
523
                  [_AM_DEPENDENCIES([CXX])],
526
524
                  [define([AC_PROG_CXX],
527
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
525
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
528
526
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
529
 
                  [_AM_DEPENDENCIES(OBJC)],
 
527
                  [_AM_DEPENDENCIES([OBJC])],
530
528
                  [define([AC_PROG_OBJC],
531
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
529
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
532
530
])
533
531
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
534
 
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
535
 
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
532
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
 
533
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
536
534
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
537
535
AC_CONFIG_COMMANDS_PRE(dnl
538
536
[m4_provide_if([_AM_COMPILER_EXEEXT],
539
537
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
540
538
])
541
539
 
542
 
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
540
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
543
541
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
544
542
dnl mangled by Autoconf and run in a shell conditional statement.
545
543
m4_define([_AC_COMPILER_EXEEXT],
567
565
done
568
566
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
569
567
 
570
 
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
571
 
# Inc.
 
568
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
572
569
#
573
570
# This file is free software; the Free Software Foundation
574
571
# gives unlimited permission to copy and/or distribute it,
575
572
# with or without modifications, as long as this notice is preserved.
576
573
 
577
 
# serial 1
 
574
# serial 8
578
575
 
579
576
# AM_PROG_INSTALL_SH
580
577
# ------------------
589
586
    install_sh="\${SHELL} $am_aux_dir/install-sh"
590
587
  esac
591
588
fi
592
 
AC_SUBST(install_sh)])
 
589
AC_SUBST([install_sh])])
593
590
 
594
 
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 
591
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
595
592
#
596
593
# This file is free software; the Free Software Foundation
597
594
# gives unlimited permission to copy and/or distribute it,
615
612
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
616
613
# From Jim Meyering
617
614
 
618
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
619
 
# 2011 Free Software Foundation, Inc.
 
615
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
620
616
#
621
617
# This file is free software; the Free Software Foundation
622
618
# gives unlimited permission to copy and/or distribute it,
623
619
# with or without modifications, as long as this notice is preserved.
624
620
 
625
 
# serial 5
 
621
# serial 7
626
622
 
627
623
# AM_MAINTAINER_MODE([DEFAULT-MODE])
628
624
# ----------------------------------
629
625
# Control maintainer-specific portions of Makefiles.
630
 
# Default is to disable them, unless `enable' is passed literally.
631
 
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
626
# Default is to disable them, unless 'enable' is passed literally.
 
627
# For symmetry, 'disable' may be passed as well.  Anyway, the user
632
628
# can override the default with the --enable/--disable switch.
633
629
AC_DEFUN([AM_MAINTAINER_MODE],
634
630
[m4_case(m4_default([$1], [disable]),
639
635
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
640
636
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
641
637
  AC_ARG_ENABLE([maintainer-mode],
642
 
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
643
 
                          (and sometimes confusing) to the casual installer],
644
 
      [USE_MAINTAINER_MODE=$enableval],
645
 
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
 
638
    [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
 
639
      am_maintainer_other[ make rules and dependencies not useful
 
640
      (and sometimes confusing) to the casual installer])],
 
641
    [USE_MAINTAINER_MODE=$enableval],
 
642
    [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
646
643
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
647
644
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
648
645
  MAINT=$MAINTAINER_MODE_TRUE
654
651
 
655
652
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
656
653
 
657
 
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
 
654
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
658
655
#
659
656
# This file is free software; the Free Software Foundation
660
657
# gives unlimited permission to copy and/or distribute it,
661
658
# with or without modifications, as long as this notice is preserved.
662
659
 
663
 
# serial 4
 
660
# serial 5
664
661
 
665
662
# AM_MAKE_INCLUDE()
666
663
# -----------------
679
676
_am_result=none
680
677
# First try GNU make style include.
681
678
echo "include confinc" > confmf
682
 
# Ignore all kinds of additional output from `make'.
 
679
# Ignore all kinds of additional output from 'make'.
683
680
case `$am_make -s -f confmf 2> /dev/null` in #(
684
681
*the\ am__doit\ target*)
685
682
  am__include=include
706
703
 
707
704
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
708
705
 
709
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
710
 
# Free Software Foundation, Inc.
 
706
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
711
707
#
712
708
# This file is free software; the Free Software Foundation
713
709
# gives unlimited permission to copy and/or distribute it,
714
710
# with or without modifications, as long as this notice is preserved.
715
711
 
716
 
# serial 6
 
712
# serial 7
717
713
 
718
714
# AM_MISSING_PROG(NAME, PROGRAM)
719
715
# ------------------------------
743
739
  am_missing_run="$MISSING --run "
744
740
else
745
741
  am_missing_run=
746
 
  AC_MSG_WARN([`missing' script is too old or missing])
 
742
  AC_MSG_WARN(['missing' script is too old or missing])
747
743
fi
748
744
])
749
745
 
750
 
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
751
 
# Inc.
 
746
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
752
747
#
753
748
# This file is free software; the Free Software Foundation
754
749
# gives unlimited permission to copy and/or distribute it,
755
750
# with or without modifications, as long as this notice is preserved.
756
751
 
757
 
# serial 1
 
752
# serial 2
758
753
 
759
754
# AM_PROG_MKDIR_P
760
755
# ---------------
761
 
# Check for `mkdir -p'.
 
756
# Check for 'mkdir -p'.
762
757
AC_DEFUN([AM_PROG_MKDIR_P],
763
758
[AC_PREREQ([2.60])dnl
764
759
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
778
773
 
779
774
# Helper functions for option handling.                     -*- Autoconf -*-
780
775
 
781
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
782
 
# Foundation, Inc.
 
776
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
783
777
#
784
778
# This file is free software; the Free Software Foundation
785
779
# gives unlimited permission to copy and/or distribute it,
786
780
# with or without modifications, as long as this notice is preserved.
787
781
 
788
 
# serial 5
 
782
# serial 6
789
783
 
790
784
# _AM_MANGLE_OPTION(NAME)
791
785
# -----------------------
796
790
# --------------------
797
791
# Set option NAME.  Presently that only means defining a flag for this option.
798
792
AC_DEFUN([_AM_SET_OPTION],
799
 
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
 
793
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
800
794
 
801
795
# _AM_SET_OPTIONS(OPTIONS)
802
796
# ------------------------
812
806
 
813
807
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
814
808
 
815
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
816
 
# Free Software Foundation, Inc.
 
809
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
817
810
#
818
811
# This file is free software; the Free Software Foundation
819
812
# gives unlimited permission to copy and/or distribute it,
820
813
# with or without modifications, as long as this notice is preserved.
821
814
 
822
 
# serial 5
 
815
# serial 9
823
816
 
824
817
# AM_SANITY_CHECK
825
818
# ---------------
826
819
AC_DEFUN([AM_SANITY_CHECK],
827
820
[AC_MSG_CHECKING([whether build environment is sane])
828
 
# Just in case
829
 
sleep 1
830
 
echo timestamp > conftest.file
831
821
# Reject unsafe characters in $srcdir or the absolute working directory
832
822
# name.  Accept space and tab only in the latter.
833
823
am_lf='
838
828
esac
839
829
case $srcdir in
840
830
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
841
 
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
831
    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
842
832
esac
843
833
 
844
 
# Do `set' in a subshell so we don't clobber the current shell's
 
834
# Do 'set' in a subshell so we don't clobber the current shell's
845
835
# arguments.  Must try -L first in case configure is actually a
846
836
# symlink; some systems play weird games with the mod time of symlinks
847
837
# (eg FreeBSD returns the mod time of the symlink's containing
848
838
# directory).
849
839
if (
850
 
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
851
 
   if test "$[*]" = "X"; then
852
 
      # -L didn't work.
853
 
      set X `ls -t "$srcdir/configure" conftest.file`
854
 
   fi
855
 
   rm -f conftest.file
856
 
   if test "$[*]" != "X $srcdir/configure conftest.file" \
857
 
      && test "$[*]" != "X conftest.file $srcdir/configure"; then
858
 
 
859
 
      # If neither matched, then we have a broken ls.  This can happen
860
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
861
 
      # broken ls alias from the environment.  This has actually
862
 
      # happened.  Such a system could not be considered "sane".
863
 
      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
864
 
alias in your environment])
865
 
   fi
866
 
 
 
840
   am_has_slept=no
 
841
   for am_try in 1 2; do
 
842
     echo "timestamp, slept: $am_has_slept" > conftest.file
 
843
     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
844
     if test "$[*]" = "X"; then
 
845
        # -L didn't work.
 
846
        set X `ls -t "$srcdir/configure" conftest.file`
 
847
     fi
 
848
     if test "$[*]" != "X $srcdir/configure conftest.file" \
 
849
        && test "$[*]" != "X conftest.file $srcdir/configure"; then
 
850
 
 
851
        # If neither matched, then we have a broken ls.  This can happen
 
852
        # if, for instance, CONFIG_SHELL is bash and it inherits a
 
853
        # broken ls alias from the environment.  This has actually
 
854
        # happened.  Such a system could not be considered "sane".
 
855
        AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
 
856
  alias in your environment])
 
857
     fi
 
858
     if test "$[2]" = conftest.file || test $am_try -eq 2; then
 
859
       break
 
860
     fi
 
861
     # Just in case.
 
862
     sleep 1
 
863
     am_has_slept=yes
 
864
   done
867
865
   test "$[2]" = conftest.file
868
866
   )
869
867
then
873
871
   AC_MSG_ERROR([newly created file is older than distributed files!
874
872
Check your system clock])
875
873
fi
876
 
AC_MSG_RESULT(yes)])
 
874
AC_MSG_RESULT([yes])
 
875
# If we didn't sleep, we still need to ensure time stamps of config.status and
 
876
# generated files are strictly newer.
 
877
am_sleep_pid=
 
878
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 
879
  ( sleep 1 ) &
 
880
  am_sleep_pid=$!
 
881
fi
 
882
AC_CONFIG_COMMANDS_PRE(
 
883
  [AC_MSG_CHECKING([that generated files are newer than configure])
 
884
   if test -n "$am_sleep_pid"; then
 
885
     # Hide warnings about reused PIDs.
 
886
     wait $am_sleep_pid 2>/dev/null
 
887
   fi
 
888
   AC_MSG_RESULT([done])])
 
889
rm -f conftest.file
 
890
])
877
891
 
878
 
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
 
892
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
879
893
#
880
894
# This file is free software; the Free Software Foundation
881
895
# gives unlimited permission to copy and/or distribute it,
882
896
# with or without modifications, as long as this notice is preserved.
883
897
 
884
 
# serial 1
 
898
# serial 2
885
899
 
886
900
# AM_PROG_INSTALL_STRIP
887
901
# ---------------------
888
 
# One issue with vendor `install' (even GNU) is that you can't
 
902
# One issue with vendor 'install' (even GNU) is that you can't
889
903
# specify the program used to strip binaries.  This is especially
890
904
# annoying in cross-compiling environments, where the build's strip
891
905
# is unlikely to handle the host's binaries.
892
906
# Fortunately install-sh will honor a STRIPPROG variable, so we
893
 
# always use install-sh in `make install-strip', and initialize
 
907
# always use install-sh in "make install-strip", and initialize
894
908
# STRIPPROG with the value of the STRIP variable (set by the user).
895
909
AC_DEFUN([AM_PROG_INSTALL_STRIP],
896
910
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
897
 
# Installed binaries are usually stripped using `strip' when the user
898
 
# run `make install-strip'.  However `strip' might not be the right
 
911
# Installed binaries are usually stripped using 'strip' when the user
 
912
# run "make install-strip".  However 'strip' might not be the right
899
913
# tool to use in cross-compilation environments, therefore Automake
900
 
# will honor the `STRIP' environment variable to overrule this program.
901
 
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
 
914
# will honor the 'STRIP' environment variable to overrule this program.
 
915
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
902
916
if test "$cross_compiling" != no; then
903
917
  AC_CHECK_TOOL([STRIP], [strip], :)
904
918
fi
905
919
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
906
920
AC_SUBST([INSTALL_STRIP_PROGRAM])])
907
921
 
908
 
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
 
922
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
909
923
#
910
924
# This file is free software; the Free Software Foundation
911
925
# gives unlimited permission to copy and/or distribute it,
926
940
 
927
941
# Check how to create a tarball.                            -*- Autoconf -*-
928
942
 
929
 
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
 
943
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
930
944
#
931
945
# This file is free software; the Free Software Foundation
932
946
# gives unlimited permission to copy and/or distribute it,
933
947
# with or without modifications, as long as this notice is preserved.
934
948
 
935
 
# serial 2
 
949
# serial 3
936
950
 
937
951
# _AM_PROG_TAR(FORMAT)
938
952
# --------------------
939
953
# Check how to create a tarball in format FORMAT.
940
 
# FORMAT should be one of `v7', `ustar', or `pax'.
 
954
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
941
955
#
942
956
# Substitute a variable $(am__tar) that is a command
943
957
# writing to stdout a FORMAT-tarball containing the directory
960
974
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
961
975
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
962
976
# Do not fold the above two line into one, because Tru64 sh and
963
 
# Solaris sh will not grok spaces in the rhs of `-'.
 
977
# Solaris sh will not grok spaces in the rhs of '-'.
964
978
for _am_tool in $_am_tools
965
979
do
966
980
  case $_am_tool in