~ubuntu-branches/ubuntu/raring/gnupg2/raring-proposed

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-08-23 20:48:11 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090823204811-cajik24rci4xszia
Tags: 2.0.12-1
* New upstream release. (Closes: #499569, #463270, #446494, #314068, 
  #519375, #514587)
* debian/control: Change build dependency on gs to ghoscript, since
  ghoscript has been replaced.
* debian/compat: Use debhelper v7.
* debian/control: Update Standards-Version to 3.8.2.
* debian/control: Use ${misc:Depends}.
* configure.ac: Override pkgdatadir so that it points to
  /usr/share/gnupg2. (Closes: #528734)
* debian/rules: No longer need to specify pkgdatadir at make install
  time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
13
13
 
14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
 
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
 
[m4_warning([this file was generated for autoconf 2.61.
 
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
 
17
[m4_warning([this file was generated for autoconf 2.64.
18
18
You have another version of autoconf.  It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
181
181
              | (ullmax / ull) | (ullmax % ull));]])
182
182
])
183
183
 
184
 
# Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
 
184
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
185
185
#
186
186
# This file is free software; the Free Software Foundation
187
187
# gives unlimited permission to copy and/or distribute it,
193
193
# generated from the m4 files accompanying Automake X.Y.
194
194
# (This private macro should not be called outside this file.)
195
195
AC_DEFUN([AM_AUTOMAKE_VERSION],
196
 
[am__api_version='1.10'
 
196
[am__api_version='1.11'
197
197
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
198
198
dnl require some minimum version.  Point them to the right macro.
199
 
m4_if([$1], [1.10.1], [],
 
199
m4_if([$1], [1.11], [],
200
200
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
201
201
])
202
202
 
210
210
# AM_SET_CURRENT_AUTOMAKE_VERSION
211
211
# -------------------------------
212
212
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
213
 
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
 
213
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
214
214
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
215
 
[AM_AUTOMAKE_VERSION([1.10.1])dnl
 
215
[AM_AUTOMAKE_VERSION([1.11])dnl
216
216
m4_ifndef([AC_AUTOCONF_VERSION],
217
217
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
218
 
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
 
218
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
219
219
 
220
220
# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
221
221
 
272
272
 
273
273
# AM_CONDITIONAL                                            -*- Autoconf -*-
274
274
 
275
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
275
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
276
276
# Free Software Foundation, Inc.
277
277
#
278
278
# This file is free software; the Free Software Foundation
279
279
# gives unlimited permission to copy and/or distribute it,
280
280
# with or without modifications, as long as this notice is preserved.
281
281
 
282
 
# serial 8
 
282
# serial 9
283
283
 
284
284
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
285
285
# -------------------------------------
292
292
AC_SUBST([$1_FALSE])dnl
293
293
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
294
294
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
295
m4_define([_AM_COND_VALUE_$1], [$2])dnl
295
296
if $2; then
296
297
  $1_TRUE=
297
298
  $1_FALSE='#'
305
306
Usually this means the macro was only invoked conditionally.]])
306
307
fi])])
307
308
 
308
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
309
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
309
310
# Free Software Foundation, Inc.
310
311
#
311
312
# This file is free software; the Free Software Foundation
312
313
# gives unlimited permission to copy and/or distribute it,
313
314
# with or without modifications, as long as this notice is preserved.
314
315
 
315
 
# serial 9
 
316
# serial 10
316
317
 
317
318
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
318
319
# written in clear, in which case automake, when reading aclocal.m4,
369
370
  if test "$am_compiler_list" = ""; then
370
371
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
371
372
  fi
 
373
  am__universal=false
 
374
  m4_case([$1], [CC],
 
375
    [case " $depcc " in #(
 
376
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
377
     esac],
 
378
    [CXX],
 
379
    [case " $depcc " in #(
 
380
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
381
     esac])
 
382
 
372
383
  for depmode in $am_compiler_list; do
373
384
    # Setup a source with many dependencies, because some compilers
374
385
    # like to wrap large dependency lists on column 80 (with \), and
386
397
    done
387
398
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
388
399
 
 
400
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
401
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
402
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
403
    # versions had trouble with output in subdirs
 
404
    am__obj=sub/conftest.${OBJEXT-o}
 
405
    am__minus_obj="-o $am__obj"
389
406
    case $depmode in
 
407
    gcc)
 
408
      # This depmode causes a compiler race in universal mode.
 
409
      test "$am__universal" = false || continue
 
410
      ;;
390
411
    nosideeffect)
391
412
      # after this tag, mechanisms are not by side-effect, so they'll
392
413
      # only be used when explicitly requested
396
417
        break
397
418
      fi
398
419
      ;;
 
420
    msvisualcpp | msvcmsys)
 
421
      # This compiler won't grok `-c -o', but also, the minuso test has
 
422
      # not run yet.  These depmodes are late enough in the game, and
 
423
      # so weak that their functioning should not be impacted.
 
424
      am__obj=conftest.${OBJEXT-o}
 
425
      am__minus_obj=
 
426
      ;;
399
427
    none) break ;;
400
428
    esac
401
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
402
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
403
 
    # handle `-M -o', and we need to detect this.
404
429
    if depmode=$depmode \
405
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
430
       source=sub/conftest.c object=$am__obj \
406
431
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
407
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
432
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
408
433
         >/dev/null 2>conftest.err &&
409
434
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
410
435
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
411
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
436
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
412
437
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
413
438
      # icc doesn't choke on unknown options, it will just issue warnings
414
439
      # or remarks (even with -Werror).  So we grep stderr for any message
465
490
 
466
491
# Generate code to set up dependency tracking.              -*- Autoconf -*-
467
492
 
468
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
493
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
469
494
# Free Software Foundation, Inc.
470
495
#
471
496
# This file is free software; the Free Software Foundation
472
497
# gives unlimited permission to copy and/or distribute it,
473
498
# with or without modifications, as long as this notice is preserved.
474
499
 
475
 
#serial 3
 
500
#serial 5
476
501
 
477
502
# _AM_OUTPUT_DEPENDENCY_COMMANDS
478
503
# ------------------------------
479
504
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
480
 
[for mf in $CONFIG_FILES; do
481
 
  # Strip MF so we end up with the name of the file.
482
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
483
 
  # Check whether this is an Automake generated Makefile or not.
484
 
  # We used to match only the files named `Makefile.in', but
485
 
  # some people rename them; so instead we look at the file content.
486
 
  # Grep'ing the first line is not enough: some people post-process
487
 
  # each Makefile.in and add a new line on top of each file to say so.
488
 
  # Grep'ing the whole file is not good either: AIX grep has a line
489
 
  # limit of 2048, but all sed's we know have understand at least 4000.
490
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
491
 
    dirpart=`AS_DIRNAME("$mf")`
492
 
  else
493
 
    continue
494
 
  fi
495
 
  # Extract the definition of DEPDIR, am__include, and am__quote
496
 
  # from the Makefile without running `make'.
497
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
498
 
  test -z "$DEPDIR" && continue
499
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
500
 
  test -z "am__include" && continue
501
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
502
 
  # When using ansi2knr, U may be empty or an underscore; expand it
503
 
  U=`sed -n 's/^U = //p' < "$mf"`
504
 
  # Find all dependency output files, they are included files with
505
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
506
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
507
 
  # expansion.
508
 
  for file in `sed -n "
509
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
510
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
511
 
    # Make sure the directory exists.
512
 
    test -f "$dirpart/$file" && continue
513
 
    fdir=`AS_DIRNAME(["$file"])`
514
 
    AS_MKDIR_P([$dirpart/$fdir])
515
 
    # echo "creating $dirpart/$file"
516
 
    echo '# dummy' > "$dirpart/$file"
 
505
[{
 
506
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
507
  # are listed without --file.  Let's play safe and only enable the eval
 
508
  # if we detect the quoting.
 
509
  case $CONFIG_FILES in
 
510
  *\'*) eval set x "$CONFIG_FILES" ;;
 
511
  *)   set x $CONFIG_FILES ;;
 
512
  esac
 
513
  shift
 
514
  for mf
 
515
  do
 
516
    # Strip MF so we end up with the name of the file.
 
517
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
518
    # Check whether this is an Automake generated Makefile or not.
 
519
    # We used to match only the files named `Makefile.in', but
 
520
    # some people rename them; so instead we look at the file content.
 
521
    # Grep'ing the first line is not enough: some people post-process
 
522
    # each Makefile.in and add a new line on top of each file to say so.
 
523
    # Grep'ing the whole file is not good either: AIX grep has a line
 
524
    # limit of 2048, but all sed's we know have understand at least 4000.
 
525
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
526
      dirpart=`AS_DIRNAME("$mf")`
 
527
    else
 
528
      continue
 
529
    fi
 
530
    # Extract the definition of DEPDIR, am__include, and am__quote
 
531
    # from the Makefile without running `make'.
 
532
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
533
    test -z "$DEPDIR" && continue
 
534
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
535
    test -z "am__include" && continue
 
536
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
537
    # When using ansi2knr, U may be empty or an underscore; expand it
 
538
    U=`sed -n 's/^U = //p' < "$mf"`
 
539
    # Find all dependency output files, they are included files with
 
540
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
541
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
542
    # expansion.
 
543
    for file in `sed -n "
 
544
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
545
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
546
      # Make sure the directory exists.
 
547
      test -f "$dirpart/$file" && continue
 
548
      fdir=`AS_DIRNAME(["$file"])`
 
549
      AS_MKDIR_P([$dirpart/$fdir])
 
550
      # echo "creating $dirpart/$file"
 
551
      echo '# dummy' > "$dirpart/$file"
 
552
    done
517
553
  done
518
 
done
 
554
}
519
555
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
520
556
 
521
557
 
547
583
# Do all the work for Automake.                             -*- Autoconf -*-
548
584
 
549
585
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
550
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
586
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
551
587
#
552
588
# This file is free software; the Free Software Foundation
553
589
# gives unlimited permission to copy and/or distribute it,
554
590
# with or without modifications, as long as this notice is preserved.
555
591
 
556
 
# serial 13
 
592
# serial 16
557
593
 
558
594
# This macro actually does too much.  Some checks are only needed if
559
595
# your package does certain things.  But this isn't really a big deal.
570
606
# arguments mandatory, and then we can depend on a new Autoconf
571
607
# release and drop the old call support.
572
608
AC_DEFUN([AM_INIT_AUTOMAKE],
573
 
[AC_PREREQ([2.60])dnl
 
609
[AC_PREREQ([2.62])dnl
574
610
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
575
611
dnl the ones we care about.
576
612
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
621
657
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
622
658
AM_MISSING_PROG(AUTOHEADER, autoheader)
623
659
AM_MISSING_PROG(MAKEINFO, makeinfo)
624
 
AM_PROG_INSTALL_SH
625
 
AM_PROG_INSTALL_STRIP
 
660
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
661
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
626
662
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
627
663
# We need awk for the "check" target.  The system "awk" is bad on
628
664
# some platforms.
630
666
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
631
667
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
632
668
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
633
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
634
 
                             [_AM_PROG_TAR([v7])])])
 
669
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
670
                             [_AM_PROG_TAR([v7])])])
635
671
_AM_IF_OPTION([no-dependencies],,
636
672
[AC_PROVIDE_IFELSE([AC_PROG_CC],
637
 
                  [_AM_DEPENDENCIES(CC)],
638
 
                  [define([AC_PROG_CC],
639
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
673
                  [_AM_DEPENDENCIES(CC)],
 
674
                  [define([AC_PROG_CC],
 
675
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
640
676
AC_PROVIDE_IFELSE([AC_PROG_CXX],
641
 
                  [_AM_DEPENDENCIES(CXX)],
642
 
                  [define([AC_PROG_CXX],
643
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
677
                  [_AM_DEPENDENCIES(CXX)],
 
678
                  [define([AC_PROG_CXX],
 
679
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
644
680
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
645
 
                  [_AM_DEPENDENCIES(OBJC)],
646
 
                  [define([AC_PROG_OBJC],
647
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
648
 
])
649
 
])
 
681
                  [_AM_DEPENDENCIES(OBJC)],
 
682
                  [define([AC_PROG_OBJC],
 
683
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
684
])
 
685
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
686
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
687
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
688
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
689
AC_CONFIG_COMMANDS_PRE(dnl
 
690
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
691
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
692
])
 
693
 
 
694
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
695
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
696
dnl mangled by Autoconf and run in a shell conditional statement.
 
697
m4_define([_AC_COMPILER_EXEEXT],
 
698
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
650
699
 
651
700
 
652
701
# When config.status generates a header, we must update the stamp-h file.
670
719
done
671
720
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
672
721
 
673
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
722
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
674
723
#
675
724
# This file is free software; the Free Software Foundation
676
725
# gives unlimited permission to copy and/or distribute it,
681
730
# Define $install_sh.
682
731
AC_DEFUN([AM_PROG_INSTALL_SH],
683
732
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
684
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
733
if test x"${install_sh}" != xset; then
 
734
  case $am_aux_dir in
 
735
  *\ * | *\     *)
 
736
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
737
  *)
 
738
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
739
  esac
 
740
fi
685
741
AC_SUBST(install_sh)])
686
742
 
687
743
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
708
764
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
709
765
# From Jim Meyering
710
766
 
711
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
767
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
712
768
# Free Software Foundation, Inc.
713
769
#
714
770
# This file is free software; the Free Software Foundation
715
771
# gives unlimited permission to copy and/or distribute it,
716
772
# with or without modifications, as long as this notice is preserved.
717
773
 
718
 
# serial 4
 
774
# serial 5
719
775
 
 
776
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
777
# ----------------------------------
 
778
# Control maintainer-specific portions of Makefiles.
 
779
# Default is to disable them, unless `enable' is passed literally.
 
780
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
781
# can override the default with the --enable/--disable switch.
720
782
AC_DEFUN([AM_MAINTAINER_MODE],
721
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
722
 
  dnl maintainer-mode is disabled by default
723
 
  AC_ARG_ENABLE(maintainer-mode,
724
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
783
[m4_case(m4_default([$1], [disable]),
 
784
       [enable], [m4_define([am_maintainer_other], [disable])],
 
785
       [disable], [m4_define([am_maintainer_other], [enable])],
 
786
       [m4_define([am_maintainer_other], [enable])
 
787
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
788
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
789
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
790
  AC_ARG_ENABLE([maintainer-mode],
 
791
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
725
792
                          (and sometimes confusing) to the casual installer],
726
 
      USE_MAINTAINER_MODE=$enableval,
727
 
      USE_MAINTAINER_MODE=no)
 
793
      [USE_MAINTAINER_MODE=$enableval],
 
794
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
728
795
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
729
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
796
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
730
797
  MAINT=$MAINTAINER_MODE_TRUE
731
 
  AC_SUBST(MAINT)dnl
 
798
  AC_SUBST([MAINT])dnl
732
799
]
733
800
)
734
801
 
736
803
 
737
804
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
738
805
 
739
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
806
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
740
807
#
741
808
# This file is free software; the Free Software Foundation
742
809
# gives unlimited permission to copy and/or distribute it,
743
810
# with or without modifications, as long as this notice is preserved.
744
811
 
745
 
# serial 3
 
812
# serial 4
746
813
 
747
814
# AM_MAKE_INCLUDE()
748
815
# -----------------
751
818
[am_make=${MAKE-make}
752
819
cat > confinc << 'END'
753
820
am__doit:
754
 
        @echo done
 
821
        @echo this is the am__doit target
755
822
.PHONY: am__doit
756
823
END
757
824
# If we don't find an include directive, just comment out the code.
761
828
_am_result=none
762
829
# First try GNU make style include.
763
830
echo "include confinc" > confmf
764
 
# We grep out `Entering directory' and `Leaving directory'
765
 
# messages which can occur if `w' ends up in MAKEFLAGS.
766
 
# In particular we don't look at `^make:' because GNU make might
767
 
# be invoked under some other name (usually "gmake"), in which
768
 
# case it prints its new name instead of `make'.
769
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
770
 
   am__include=include
771
 
   am__quote=
772
 
   _am_result=GNU
773
 
fi
 
831
# Ignore all kinds of additional output from `make'.
 
832
case `$am_make -s -f confmf 2> /dev/null` in #(
 
833
*the\ am__doit\ target*)
 
834
  am__include=include
 
835
  am__quote=
 
836
  _am_result=GNU
 
837
  ;;
 
838
esac
774
839
# Now try BSD make style include.
775
840
if test "$am__include" = "#"; then
776
841
   echo '.include "confinc"' > confmf
777
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
778
 
      am__include=.include
779
 
      am__quote="\""
780
 
      _am_result=BSD
781
 
   fi
 
842
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
843
   *the\ am__doit\ target*)
 
844
     am__include=.include
 
845
     am__quote="\""
 
846
     _am_result=BSD
 
847
     ;;
 
848
   esac
782
849
fi
783
850
AC_SUBST([am__include])
784
851
AC_SUBST([am__quote])
786
853
rm -f confinc confmf
787
854
])
788
855
 
789
 
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
 
856
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
790
857
# Free Software Foundation, Inc.
791
858
#
792
859
# This file is free software; the Free Software Foundation
793
860
# gives unlimited permission to copy and/or distribute it,
794
861
# with or without modifications, as long as this notice is preserved.
795
862
 
796
 
# serial 5
 
863
# serial 6
797
864
 
798
865
# AM_PROG_CC_C_O
799
866
# --------------
805
872
# FIXME: we rely on the cache variable name because
806
873
# there is no other way.
807
874
set dummy $CC
808
 
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
809
 
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
875
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
 
876
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
 
877
if test "$am_t" != yes; then
810
878
   # Losing compiler, so override with the script.
811
879
   # FIXME: It is wrong to rewrite CC.
812
880
   # But if we don't then we get into trouble of one sort or another.
822
890
 
823
891
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
824
892
 
825
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
893
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
826
894
# Free Software Foundation, Inc.
827
895
#
828
896
# This file is free software; the Free Software Foundation
829
897
# gives unlimited permission to copy and/or distribute it,
830
898
# with or without modifications, as long as this notice is preserved.
831
899
 
832
 
# serial 5
 
900
# serial 6
833
901
 
834
902
# AM_MISSING_PROG(NAME, PROGRAM)
835
903
# ------------------------------
846
914
AC_DEFUN([AM_MISSING_HAS_RUN],
847
915
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
848
916
AC_REQUIRE_AUX_FILE([missing])dnl
849
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
917
if test x"${MISSING+set}" != xset; then
 
918
  case $am_aux_dir in
 
919
  *\ * | *\     *)
 
920
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
921
  *)
 
922
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
923
  esac
 
924
fi
850
925
# Use eval to expand $SHELL
851
926
if eval "$MISSING --run true"; then
852
927
  am_missing_run="$MISSING --run "
884
959
 
885
960
# Helper functions for option handling.                     -*- Autoconf -*-
886
961
 
887
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
962
# Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
888
963
#
889
964
# This file is free software; the Free Software Foundation
890
965
# gives unlimited permission to copy and/or distribute it,
891
966
# with or without modifications, as long as this notice is preserved.
892
967
 
893
 
# serial 3
 
968
# serial 4
894
969
 
895
970
# _AM_MANGLE_OPTION(NAME)
896
971
# -----------------------
907
982
# ----------------------------------
908
983
# OPTIONS is a space-separated list of Automake options.
909
984
AC_DEFUN([_AM_SET_OPTIONS],
910
 
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
 
985
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
911
986
 
912
987
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
913
988
# -------------------------------------------
917
992
 
918
993
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
919
994
 
920
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
995
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
921
996
# Free Software Foundation, Inc.
922
997
#
923
998
# This file is free software; the Free Software Foundation
924
999
# gives unlimited permission to copy and/or distribute it,
925
1000
# with or without modifications, as long as this notice is preserved.
926
1001
 
927
 
# serial 4
 
1002
# serial 5
928
1003
 
929
1004
# AM_SANITY_CHECK
930
1005
# ---------------
933
1008
# Just in case
934
1009
sleep 1
935
1010
echo timestamp > conftest.file
 
1011
# Reject unsafe characters in $srcdir or the absolute working directory
 
1012
# name.  Accept space and tab only in the latter.
 
1013
am_lf='
 
1014
'
 
1015
case `pwd` in
 
1016
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1017
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1018
esac
 
1019
case $srcdir in
 
1020
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1021
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1022
esac
 
1023
 
936
1024
# Do `set' in a subshell so we don't clobber the current shell's
937
1025
# arguments.  Must try -L first in case configure is actually a
938
1026
# symlink; some systems play weird games with the mod time of symlinks
939
1027
# (eg FreeBSD returns the mod time of the symlink's containing
940
1028
# directory).
941
1029
if (
942
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1030
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
943
1031
   if test "$[*]" = "X"; then
944
1032
      # -L didn't work.
945
 
      set X `ls -t $srcdir/configure conftest.file`
 
1033
      set X `ls -t "$srcdir/configure" conftest.file`
946
1034
   fi
947
1035
   rm -f conftest.file
948
1036
   if test "$[*]" != "X $srcdir/configure conftest.file" \
995
1083
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
996
1084
AC_SUBST([INSTALL_STRIP_PROGRAM])])
997
1085
 
998
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1086
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
999
1087
#
1000
1088
# This file is free software; the Free Software Foundation
1001
1089
# gives unlimited permission to copy and/or distribute it,
1002
1090
# with or without modifications, as long as this notice is preserved.
1003
1091
 
 
1092
# serial 2
 
1093
 
1004
1094
# _AM_SUBST_NOTMAKE(VARIABLE)
1005
1095
# ---------------------------
1006
1096
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1007
1097
# This macro is traced by Automake.
1008
1098
AC_DEFUN([_AM_SUBST_NOTMAKE])
1009
1099
 
 
1100
# AM_SUBST_NOTMAKE(VARIABLE)
 
1101
# ---------------------------
 
1102
# Public sister of _AM_SUBST_NOTMAKE.
 
1103
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1104
 
1010
1105
# Check how to create a tarball.                            -*- Autoconf -*-
1011
1106
 
1012
1107
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.