~ubuntu-branches/ubuntu/trusty/dovecot/trusty-proposed

« back to all changes in this revision

Viewing changes to pigeonhole/aclocal.m4

  • Committer: Package Import Robot
  • Author(s): James Page, James Page, Ante Karamatic
  • Date: 2013-02-11 12:41:24 UTC
  • mfrom: (4.1.33 sid)
  • Revision ID: package-import@ubuntu.com-20130211124124-v7bdegzftlhw7yfr
Tags: 1:2.1.7-7ubuntu1
[ James Page ]
* Merge from Debian unstable (LP: #1117613, #1075456), remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + d/control: Added Pre-Depends: dpkg (>= 1.15.6) to dovecot-dbg to support
    xz compression in Ubuntu.
  + d/control: Demote dovecot-common Recommends: to Suggests: to prevent
    install of extra packages on upgrade.
  + d/patches/dovecot-drac.patch: Updated with version for dovecot >= 2.0.0.
* Dropped changes, included in Debian:
  + d/{control,rules}: enable PIE hardening.
  + d/control: Drop B-D on systemd.
* d/p/mail-stack-delivery.postinst: Updated to ensure that configured SSL
  cert and key locations are used when configuring postfix, sorted out
  formatting.
* d/p/dovecot-core.postinst: Create compat links to old style, existing
  SSL cert and key if found.
* d/rules: Don't pass hardening flags for DRAC plugin.
* d/dovecot-{pop3d,imapd}.prerm: Re-sync with Debian.
* d/dovecot-core.lintian-overrides: Drop override for DRAC plugin as not
  required in Ubuntu.
* d/01-mail-stack-delivery: Renamed 99-mail-stack-delivery to ensure that
  the mail-stack-delivery configuration overrides configuration options
  set elsewhere, updated with new cert/key file locations.

[ Ante Karamatic ]
* Change configuration file for LDA on new installs and upgrades
  (LP: #671065).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.3 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
 
5
# Inc.
5
6
# This file is free software; the Free Software Foundation
6
7
# gives unlimited permission to copy and/or distribute it,
7
8
# with or without modifications, as long as this notice is preserved.
13
14
 
14
15
m4_ifndef([AC_AUTOCONF_VERSION],
15
16
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
17
 
[m4_warning([this file was generated for autoconf 2.67.
 
17
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
 
18
[m4_warning([this file was generated for autoconf 2.68.
18
19
You have another version of autoconf.  It may work, but is not guaranteed to.
19
20
If you have problems, you may need to regenerate the build system entirely.
20
21
To do so, use the procedure documented by the package, typically `autoreconf'.])])
21
22
 
22
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
23
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
 
24
# Foundation, Inc.
23
25
#
24
26
# This file is free software; the Free Software Foundation
25
27
# gives unlimited permission to copy and/or distribute it,
26
28
# with or without modifications, as long as this notice is preserved.
27
29
 
 
30
# serial 1
 
31
 
28
32
# AM_AUTOMAKE_VERSION(VERSION)
29
33
# ----------------------------
30
34
# Automake X.Y traces this macro to ensure aclocal.m4 has been
31
35
# generated from the m4 files accompanying Automake X.Y.
32
36
# (This private macro should not be called outside this file.)
33
37
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
 
[am__api_version='1.10'
 
38
[am__api_version='1.11'
35
39
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
40
dnl require some minimum version.  Point them to the right macro.
37
 
m4_if([$1], [1.10.3], [],
 
41
m4_if([$1], [1.11.3], [],
38
42
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39
43
])
40
44
 
50
54
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
55
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52
56
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
 
[AM_AUTOMAKE_VERSION([1.10.3])dnl
 
57
[AM_AUTOMAKE_VERSION([1.11.3])dnl
54
58
m4_ifndef([AC_AUTOCONF_VERSION],
55
59
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
60
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
61
 
58
62
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
59
63
 
60
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
64
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
61
65
#
62
66
# This file is free software; the Free Software Foundation
63
67
# gives unlimited permission to copy and/or distribute it,
64
68
# with or without modifications, as long as this notice is preserved.
65
69
 
 
70
# serial 1
 
71
 
66
72
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
73
# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
68
74
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
110
116
 
111
117
# AM_CONDITIONAL                                            -*- Autoconf -*-
112
118
 
113
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
119
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
114
120
# Free Software Foundation, Inc.
115
121
#
116
122
# This file is free software; the Free Software Foundation
117
123
# gives unlimited permission to copy and/or distribute it,
118
124
# with or without modifications, as long as this notice is preserved.
119
125
 
120
 
# serial 8
 
126
# serial 9
121
127
 
122
128
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
129
# -------------------------------------
130
136
AC_SUBST([$1_FALSE])dnl
131
137
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132
138
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
139
m4_define([_AM_COND_VALUE_$1], [$2])dnl
133
140
if $2; then
134
141
  $1_TRUE=
135
142
  $1_FALSE='#'
143
150
Usually this means the macro was only invoked conditionally.]])
144
151
fi])])
145
152
 
146
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
147
 
# Free Software Foundation, Inc.
 
153
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
 
154
# 2010, 2011 Free Software Foundation, Inc.
148
155
#
149
156
# This file is free software; the Free Software Foundation
150
157
# gives unlimited permission to copy and/or distribute it,
151
158
# with or without modifications, as long as this notice is preserved.
152
159
 
153
 
# serial 10
 
160
# serial 12
154
161
 
155
162
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
156
163
# written in clear, in which case automake, when reading aclocal.m4,
190
197
  # instance it was reported that on HP-UX the gcc test will end up
191
198
  # making a dummy file named `D' -- because `-MD' means `put the output
192
199
  # in D'.
 
200
  rm -rf conftest.dir
193
201
  mkdir conftest.dir
194
202
  # Copy depcomp to subdir because otherwise we won't find it if we're
195
203
  # using a relative directory.
254
262
        break
255
263
      fi
256
264
      ;;
257
 
    msvisualcpp | msvcmsys)
 
265
    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
258
266
      # This compiler won't grok `-c -o', but also, the minuso test has
259
267
      # not run yet.  These depmodes are late enough in the game, and
260
268
      # so weak that their functioning should not be impacted.
319
327
if test "x$enable_dependency_tracking" != xno; then
320
328
  am_depcomp="$ac_aux_dir/depcomp"
321
329
  AMDEPBACKSLASH='\'
 
330
  am__nodep='_no'
322
331
fi
323
332
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
324
333
AC_SUBST([AMDEPBACKSLASH])dnl
325
334
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
 
335
AC_SUBST([am__nodep])dnl
 
336
_AM_SUBST_NOTMAKE([am__nodep])dnl
326
337
])
327
338
 
328
339
# Generate code to set up dependency tracking.              -*- Autoconf -*-
414
425
# gives unlimited permission to copy and/or distribute it,
415
426
# with or without modifications, as long as this notice is preserved.
416
427
 
417
 
# serial 13
 
428
# serial 16
418
429
 
419
430
# This macro actually does too much.  Some checks are only needed if
420
431
# your package does certain things.  But this isn't really a big deal.
431
442
# arguments mandatory, and then we can depend on a new Autoconf
432
443
# release and drop the old call support.
433
444
AC_DEFUN([AM_INIT_AUTOMAKE],
434
 
[AC_PREREQ([2.60])dnl
 
445
[AC_PREREQ([2.62])dnl
435
446
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
436
447
dnl the ones we care about.
437
448
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
491
502
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
492
503
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
493
504
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
494
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
495
 
                             [_AM_PROG_TAR([v7])])])
 
505
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
506
                             [_AM_PROG_TAR([v7])])])
496
507
_AM_IF_OPTION([no-dependencies],,
497
508
[AC_PROVIDE_IFELSE([AC_PROG_CC],
498
 
                  [_AM_DEPENDENCIES(CC)],
499
 
                  [define([AC_PROG_CC],
500
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
509
                  [_AM_DEPENDENCIES(CC)],
 
510
                  [define([AC_PROG_CC],
 
511
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
501
512
AC_PROVIDE_IFELSE([AC_PROG_CXX],
502
 
                  [_AM_DEPENDENCIES(CXX)],
503
 
                  [define([AC_PROG_CXX],
504
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
513
                  [_AM_DEPENDENCIES(CXX)],
 
514
                  [define([AC_PROG_CXX],
 
515
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
505
516
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
506
 
                  [_AM_DEPENDENCIES(OBJC)],
507
 
                  [define([AC_PROG_OBJC],
508
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
509
 
])
510
 
])
 
517
                  [_AM_DEPENDENCIES(OBJC)],
 
518
                  [define([AC_PROG_OBJC],
 
519
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
520
])
 
521
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
522
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
523
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
524
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
525
AC_CONFIG_COMMANDS_PRE(dnl
 
526
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
527
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
528
])
 
529
 
 
530
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
531
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
532
dnl mangled by Autoconf and run in a shell conditional statement.
 
533
m4_define([_AC_COMPILER_EXEEXT],
 
534
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
511
535
 
512
536
 
513
537
# When config.status generates a header, we must update the stamp-h file.
531
555
done
532
556
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
533
557
 
534
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
558
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
 
559
# Inc.
535
560
#
536
561
# This file is free software; the Free Software Foundation
537
562
# gives unlimited permission to copy and/or distribute it,
538
563
# with or without modifications, as long as this notice is preserved.
539
564
 
 
565
# serial 1
 
566
 
540
567
# AM_PROG_INSTALL_SH
541
568
# ------------------
542
569
# Define $install_sh.
543
570
AC_DEFUN([AM_PROG_INSTALL_SH],
544
571
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
545
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
572
if test x"${install_sh}" != xset; then
 
573
  case $am_aux_dir in
 
574
  *\ * | *\     *)
 
575
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
576
  *)
 
577
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
578
  esac
 
579
fi
546
580
AC_SUBST(install_sh)])
547
581
 
548
582
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
569
603
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
570
604
# From Jim Meyering
571
605
 
572
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
573
 
# Free Software Foundation, Inc.
 
606
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
 
607
# 2011 Free Software Foundation, Inc.
574
608
#
575
609
# This file is free software; the Free Software Foundation
576
610
# gives unlimited permission to copy and/or distribute it,
577
611
# with or without modifications, as long as this notice is preserved.
578
612
 
579
 
# serial 4
 
613
# serial 5
580
614
 
 
615
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
616
# ----------------------------------
 
617
# Control maintainer-specific portions of Makefiles.
 
618
# Default is to disable them, unless `enable' is passed literally.
 
619
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
620
# can override the default with the --enable/--disable switch.
581
621
AC_DEFUN([AM_MAINTAINER_MODE],
582
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
583
 
  dnl maintainer-mode is disabled by default
584
 
  AC_ARG_ENABLE(maintainer-mode,
585
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
622
[m4_case(m4_default([$1], [disable]),
 
623
       [enable], [m4_define([am_maintainer_other], [disable])],
 
624
       [disable], [m4_define([am_maintainer_other], [enable])],
 
625
       [m4_define([am_maintainer_other], [enable])
 
626
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
627
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
 
628
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
629
  AC_ARG_ENABLE([maintainer-mode],
 
630
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
586
631
                          (and sometimes confusing) to the casual installer],
587
 
      USE_MAINTAINER_MODE=$enableval,
588
 
      USE_MAINTAINER_MODE=no)
 
632
      [USE_MAINTAINER_MODE=$enableval],
 
633
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
589
634
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
590
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
635
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
591
636
  MAINT=$MAINTAINER_MODE_TRUE
592
 
  AC_SUBST(MAINT)dnl
 
637
  AC_SUBST([MAINT])dnl
593
638
]
594
639
)
595
640
 
597
642
 
598
643
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
599
644
 
600
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
645
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
601
646
#
602
647
# This file is free software; the Free Software Foundation
603
648
# gives unlimited permission to copy and/or distribute it,
604
649
# with or without modifications, as long as this notice is preserved.
605
650
 
606
 
# serial 3
 
651
# serial 4
607
652
 
608
653
# AM_MAKE_INCLUDE()
609
654
# -----------------
612
657
[am_make=${MAKE-make}
613
658
cat > confinc << 'END'
614
659
am__doit:
615
 
        @echo done
 
660
        @echo this is the am__doit target
616
661
.PHONY: am__doit
617
662
END
618
663
# If we don't find an include directive, just comment out the code.
622
667
_am_result=none
623
668
# First try GNU make style include.
624
669
echo "include confinc" > confmf
625
 
# We grep out `Entering directory' and `Leaving directory'
626
 
# messages which can occur if `w' ends up in MAKEFLAGS.
627
 
# In particular we don't look at `^make:' because GNU make might
628
 
# be invoked under some other name (usually "gmake"), in which
629
 
# case it prints its new name instead of `make'.
630
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
631
 
   am__include=include
632
 
   am__quote=
633
 
   _am_result=GNU
634
 
fi
 
670
# Ignore all kinds of additional output from `make'.
 
671
case `$am_make -s -f confmf 2> /dev/null` in #(
 
672
*the\ am__doit\ target*)
 
673
  am__include=include
 
674
  am__quote=
 
675
  _am_result=GNU
 
676
  ;;
 
677
esac
635
678
# Now try BSD make style include.
636
679
if test "$am__include" = "#"; then
637
680
   echo '.include "confinc"' > confmf
638
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
639
 
      am__include=.include
640
 
      am__quote="\""
641
 
      _am_result=BSD
642
 
   fi
 
681
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
682
   *the\ am__doit\ target*)
 
683
     am__include=.include
 
684
     am__quote="\""
 
685
     _am_result=BSD
 
686
     ;;
 
687
   esac
643
688
fi
644
689
AC_SUBST([am__include])
645
690
AC_SUBST([am__quote])
649
694
 
650
695
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
651
696
 
652
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
697
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
653
698
# Free Software Foundation, Inc.
654
699
#
655
700
# This file is free software; the Free Software Foundation
656
701
# gives unlimited permission to copy and/or distribute it,
657
702
# with or without modifications, as long as this notice is preserved.
658
703
 
659
 
# serial 5
 
704
# serial 6
660
705
 
661
706
# AM_MISSING_PROG(NAME, PROGRAM)
662
707
# ------------------------------
673
718
AC_DEFUN([AM_MISSING_HAS_RUN],
674
719
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
675
720
AC_REQUIRE_AUX_FILE([missing])dnl
676
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
721
if test x"${MISSING+set}" != xset; then
 
722
  case $am_aux_dir in
 
723
  *\ * | *\     *)
 
724
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
725
  *)
 
726
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
727
  esac
 
728
fi
677
729
# Use eval to expand $SHELL
678
730
if eval "$MISSING --run true"; then
679
731
  am_missing_run="$MISSING --run "
683
735
fi
684
736
])
685
737
 
686
 
# Copyright (C) 2003, 2004, 2005, 2006  Free Software Foundation, Inc.
 
738
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
 
739
# Inc.
687
740
#
688
741
# This file is free software; the Free Software Foundation
689
742
# gives unlimited permission to copy and/or distribute it,
690
743
# with or without modifications, as long as this notice is preserved.
691
744
 
 
745
# serial 1
 
746
 
692
747
# AM_PROG_MKDIR_P
693
748
# ---------------
694
749
# Check for `mkdir -p'.
711
766
 
712
767
# Helper functions for option handling.                     -*- Autoconf -*-
713
768
 
714
 
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
 
769
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
 
770
# Foundation, Inc.
715
771
#
716
772
# This file is free software; the Free Software Foundation
717
773
# gives unlimited permission to copy and/or distribute it,
718
774
# with or without modifications, as long as this notice is preserved.
719
775
 
720
 
# serial 4
 
776
# serial 5
721
777
 
722
778
# _AM_MANGLE_OPTION(NAME)
723
779
# -----------------------
725
781
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
726
782
 
727
783
# _AM_SET_OPTION(NAME)
728
 
# ------------------------------
 
784
# --------------------
729
785
# Set option NAME.  Presently that only means defining a flag for this option.
730
786
AC_DEFUN([_AM_SET_OPTION],
731
787
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
732
788
 
733
789
# _AM_SET_OPTIONS(OPTIONS)
734
 
# ----------------------------------
 
790
# ------------------------
735
791
# OPTIONS is a space-separated list of Automake options.
736
792
AC_DEFUN([_AM_SET_OPTIONS],
737
793
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
742
798
AC_DEFUN([_AM_IF_OPTION],
743
799
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
744
800
 
745
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
801
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
746
802
#
747
803
# This file is free software; the Free Software Foundation
748
804
# gives unlimited permission to copy and/or distribute it,
749
805
# with or without modifications, as long as this notice is preserved.
750
806
 
 
807
# serial 1
 
808
 
751
809
# AM_RUN_LOG(COMMAND)
752
810
# -------------------
753
811
# Run COMMAND, save the exit status in ac_status, and log it.
761
819
 
762
820
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
763
821
 
764
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
822
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
765
823
# Free Software Foundation, Inc.
766
824
#
767
825
# This file is free software; the Free Software Foundation
768
826
# gives unlimited permission to copy and/or distribute it,
769
827
# with or without modifications, as long as this notice is preserved.
770
828
 
771
 
# serial 4
 
829
# serial 5
772
830
 
773
831
# AM_SANITY_CHECK
774
832
# ---------------
777
835
# Just in case
778
836
sleep 1
779
837
echo timestamp > conftest.file
 
838
# Reject unsafe characters in $srcdir or the absolute working directory
 
839
# name.  Accept space and tab only in the latter.
 
840
am_lf='
 
841
'
 
842
case `pwd` in
 
843
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
844
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
845
esac
 
846
case $srcdir in
 
847
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
848
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
849
esac
 
850
 
780
851
# Do `set' in a subshell so we don't clobber the current shell's
781
852
# arguments.  Must try -L first in case configure is actually a
782
853
# symlink; some systems play weird games with the mod time of symlinks
783
854
# (eg FreeBSD returns the mod time of the symlink's containing
784
855
# directory).
785
856
if (
786
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
857
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
787
858
   if test "$[*]" = "X"; then
788
859
      # -L didn't work.
789
 
      set X `ls -t $srcdir/configure conftest.file`
 
860
      set X `ls -t "$srcdir/configure" conftest.file`
790
861
   fi
791
862
   rm -f conftest.file
792
863
   if test "$[*]" != "X $srcdir/configure conftest.file" \
811
882
fi
812
883
AC_MSG_RESULT(yes)])
813
884
 
814
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
885
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
815
886
#
816
887
# This file is free software; the Free Software Foundation
817
888
# gives unlimited permission to copy and/or distribute it,
818
889
# with or without modifications, as long as this notice is preserved.
819
890
 
 
891
# serial 1
 
892
 
820
893
# AM_PROG_INSTALL_STRIP
821
894
# ---------------------
822
895
# One issue with vendor `install' (even GNU) is that you can't
839
912
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
840
913
AC_SUBST([INSTALL_STRIP_PROGRAM])])
841
914
 
842
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
915
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
843
916
#
844
917
# This file is free software; the Free Software Foundation
845
918
# gives unlimited permission to copy and/or distribute it,
846
919
# with or without modifications, as long as this notice is preserved.
847
920
 
 
921
# serial 3
 
922
 
848
923
# _AM_SUBST_NOTMAKE(VARIABLE)
849
924
# ---------------------------
850
925
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
851
926
# This macro is traced by Automake.
852
927
AC_DEFUN([_AM_SUBST_NOTMAKE])
853
928
 
 
929
# AM_SUBST_NOTMAKE(VARIABLE)
 
930
# --------------------------
 
931
# Public sister of _AM_SUBST_NOTMAKE.
 
932
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
933
 
854
934
# Check how to create a tarball.                            -*- Autoconf -*-
855
935
 
856
 
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
 
936
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
857
937
#
858
938
# This file is free software; the Free Software Foundation
859
939
# gives unlimited permission to copy and/or distribute it,
875
955
# a tarball read from stdin.
876
956
#     $(am__untar) < result.tar
877
957
AC_DEFUN([_AM_PROG_TAR],
878
 
[# Always define AMTAR for backward compatibility.
879
 
AM_MISSING_PROG([AMTAR], [tar])
 
958
[# Always define AMTAR for backward compatibility.  Yes, it's still used
 
959
# in the wild :-(  We should find a proper way to deprecate it ...
 
960
AC_SUBST([AMTAR], ['$${TAR-tar}'])
880
961
m4_if([$1], [v7],
881
 
     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
 
962
     [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
882
963
     [m4_case([$1], [ustar],, [pax],,
883
964
              [m4_fatal([Unknown tar format])])
884
965
AC_MSG_CHECKING([how to create a $1 tar archive])