~joel-auterson/ubuntu/maverick/ibus/newmenuname

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): LI Daobing
  • Date: 2009-10-05 20:45:18 UTC
  • mfrom: (1.1.5 upstream) (6.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20091005204518-069vlwrl3r8v7bbr
Tags: 1.2.0.20090927-2
* create po template when build (LP: #188690)
  - debian/rules: updated.
  - debian/clean: remove pot file when clean.
* debian/control: build depends on python-rsvg (LP: #432375)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.2 -*- 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.
445
445
# generated from the m4 files accompanying Automake X.Y.
446
446
# (This private macro should not be called outside this file.)
447
447
AC_DEFUN([AM_AUTOMAKE_VERSION],
448
 
[am__api_version='1.10'
 
448
[am__api_version='1.11'
449
449
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
450
450
dnl require some minimum version.  Point them to the right macro.
451
 
m4_if([$1], [1.10.2], [],
 
451
m4_if([$1], [1.11], [],
452
452
      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
453
453
])
454
454
 
464
464
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
465
465
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
466
466
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
467
 
[AM_AUTOMAKE_VERSION([1.10.2])dnl
 
467
[AM_AUTOMAKE_VERSION([1.11])dnl
468
468
m4_ifndef([AC_AUTOCONF_VERSION],
469
469
  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
470
470
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
524
524
 
525
525
# AM_CONDITIONAL                                            -*- Autoconf -*-
526
526
 
527
 
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
 
527
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
528
528
# Free Software Foundation, Inc.
529
529
#
530
530
# This file is free software; the Free Software Foundation
531
531
# gives unlimited permission to copy and/or distribute it,
532
532
# with or without modifications, as long as this notice is preserved.
533
533
 
534
 
# serial 8
 
534
# serial 9
535
535
 
536
536
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
537
537
# -------------------------------------
544
544
AC_SUBST([$1_FALSE])dnl
545
545
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
546
546
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
 
547
m4_define([_AM_COND_VALUE_$1], [$2])dnl
547
548
if $2; then
548
549
  $1_TRUE=
549
550
  $1_FALSE='#'
557
558
Usually this means the macro was only invoked conditionally.]])
558
559
fi])])
559
560
 
560
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
 
561
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
561
562
# Free Software Foundation, Inc.
562
563
#
563
564
# This file is free software; the Free Software Foundation
564
565
# gives unlimited permission to copy and/or distribute it,
565
566
# with or without modifications, as long as this notice is preserved.
566
567
 
567
 
# serial 9
 
568
# serial 10
568
569
 
569
570
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
570
571
# written in clear, in which case automake, when reading aclocal.m4,
621
622
  if test "$am_compiler_list" = ""; then
622
623
     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
623
624
  fi
 
625
  am__universal=false
 
626
  m4_case([$1], [CC],
 
627
    [case " $depcc " in #(
 
628
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
629
     esac],
 
630
    [CXX],
 
631
    [case " $depcc " in #(
 
632
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
633
     esac])
 
634
 
624
635
  for depmode in $am_compiler_list; do
625
636
    # Setup a source with many dependencies, because some compilers
626
637
    # like to wrap large dependency lists on column 80 (with \), and
638
649
    done
639
650
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
640
651
 
 
652
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
653
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
654
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
655
    # versions had trouble with output in subdirs
 
656
    am__obj=sub/conftest.${OBJEXT-o}
 
657
    am__minus_obj="-o $am__obj"
641
658
    case $depmode in
 
659
    gcc)
 
660
      # This depmode causes a compiler race in universal mode.
 
661
      test "$am__universal" = false || continue
 
662
      ;;
642
663
    nosideeffect)
643
664
      # after this tag, mechanisms are not by side-effect, so they'll
644
665
      # only be used when explicitly requested
648
669
        break
649
670
      fi
650
671
      ;;
 
672
    msvisualcpp | msvcmsys)
 
673
      # This compiler won't grok `-c -o', but also, the minuso test has
 
674
      # not run yet.  These depmodes are late enough in the game, and
 
675
      # so weak that their functioning should not be impacted.
 
676
      am__obj=conftest.${OBJEXT-o}
 
677
      am__minus_obj=
 
678
      ;;
651
679
    none) break ;;
652
680
    esac
653
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
654
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
655
 
    # handle `-M -o', and we need to detect this.
656
681
    if depmode=$depmode \
657
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
682
       source=sub/conftest.c object=$am__obj \
658
683
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
659
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
684
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
660
685
         >/dev/null 2>conftest.err &&
661
686
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
662
687
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
663
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
688
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
664
689
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
665
690
      # icc doesn't choke on unknown options, it will just issue warnings
666
691
      # or remarks (even with -Werror).  So we grep stderr for any message
724
749
# gives unlimited permission to copy and/or distribute it,
725
750
# with or without modifications, as long as this notice is preserved.
726
751
 
727
 
#serial 4
 
752
#serial 5
728
753
 
729
754
# _AM_OUTPUT_DEPENDENCY_COMMANDS
730
755
# ------------------------------
731
756
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
732
 
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
733
 
# are listed without --file.  Let's play safe and only enable the eval
734
 
# if we detect the quoting.
735
 
case $CONFIG_FILES in
736
 
*\'*) eval set x "$CONFIG_FILES" ;;
737
 
*)   set x $CONFIG_FILES ;;
738
 
esac
739
 
shift
740
 
for mf
741
 
do
742
 
  # Strip MF so we end up with the name of the file.
743
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
744
 
  # Check whether this is an Automake generated Makefile or not.
745
 
  # We used to match only the files named `Makefile.in', but
746
 
  # some people rename them; so instead we look at the file content.
747
 
  # Grep'ing the first line is not enough: some people post-process
748
 
  # each Makefile.in and add a new line on top of each file to say so.
749
 
  # Grep'ing the whole file is not good either: AIX grep has a line
750
 
  # limit of 2048, but all sed's we know have understand at least 4000.
751
 
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
752
 
    dirpart=`AS_DIRNAME("$mf")`
753
 
  else
754
 
    continue
755
 
  fi
756
 
  # Extract the definition of DEPDIR, am__include, and am__quote
757
 
  # from the Makefile without running `make'.
758
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
759
 
  test -z "$DEPDIR" && continue
760
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
761
 
  test -z "am__include" && continue
762
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
763
 
  # When using ansi2knr, U may be empty or an underscore; expand it
764
 
  U=`sed -n 's/^U = //p' < "$mf"`
765
 
  # Find all dependency output files, they are included files with
766
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
767
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
768
 
  # expansion.
769
 
  for file in `sed -n "
770
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
771
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
772
 
    # Make sure the directory exists.
773
 
    test -f "$dirpart/$file" && continue
774
 
    fdir=`AS_DIRNAME(["$file"])`
775
 
    AS_MKDIR_P([$dirpart/$fdir])
776
 
    # echo "creating $dirpart/$file"
777
 
    echo '# dummy' > "$dirpart/$file"
 
757
[{
 
758
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
759
  # are listed without --file.  Let's play safe and only enable the eval
 
760
  # if we detect the quoting.
 
761
  case $CONFIG_FILES in
 
762
  *\'*) eval set x "$CONFIG_FILES" ;;
 
763
  *)   set x $CONFIG_FILES ;;
 
764
  esac
 
765
  shift
 
766
  for mf
 
767
  do
 
768
    # Strip MF so we end up with the name of the file.
 
769
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
770
    # Check whether this is an Automake generated Makefile or not.
 
771
    # We used to match only the files named `Makefile.in', but
 
772
    # some people rename them; so instead we look at the file content.
 
773
    # Grep'ing the first line is not enough: some people post-process
 
774
    # each Makefile.in and add a new line on top of each file to say so.
 
775
    # Grep'ing the whole file is not good either: AIX grep has a line
 
776
    # limit of 2048, but all sed's we know have understand at least 4000.
 
777
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
778
      dirpart=`AS_DIRNAME("$mf")`
 
779
    else
 
780
      continue
 
781
    fi
 
782
    # Extract the definition of DEPDIR, am__include, and am__quote
 
783
    # from the Makefile without running `make'.
 
784
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
785
    test -z "$DEPDIR" && continue
 
786
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
787
    test -z "am__include" && continue
 
788
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
789
    # When using ansi2knr, U may be empty or an underscore; expand it
 
790
    U=`sed -n 's/^U = //p' < "$mf"`
 
791
    # Find all dependency output files, they are included files with
 
792
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
793
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
794
    # expansion.
 
795
    for file in `sed -n "
 
796
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
797
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
798
      # Make sure the directory exists.
 
799
      test -f "$dirpart/$file" && continue
 
800
      fdir=`AS_DIRNAME(["$file"])`
 
801
      AS_MKDIR_P([$dirpart/$fdir])
 
802
      # echo "creating $dirpart/$file"
 
803
      echo '# dummy' > "$dirpart/$file"
 
804
    done
778
805
  done
779
 
done
 
806
}
780
807
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
781
808
 
782
809
 
796
823
# Do all the work for Automake.                             -*- Autoconf -*-
797
824
 
798
825
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
799
 
# 2005, 2006, 2008 Free Software Foundation, Inc.
 
826
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
800
827
#
801
828
# This file is free software; the Free Software Foundation
802
829
# gives unlimited permission to copy and/or distribute it,
803
830
# with or without modifications, as long as this notice is preserved.
804
831
 
805
 
# serial 13
 
832
# serial 16
806
833
 
807
834
# This macro actually does too much.  Some checks are only needed if
808
835
# your package does certain things.  But this isn't really a big deal.
819
846
# arguments mandatory, and then we can depend on a new Autoconf
820
847
# release and drop the old call support.
821
848
AC_DEFUN([AM_INIT_AUTOMAKE],
822
 
[AC_PREREQ([2.60])dnl
 
849
[AC_PREREQ([2.62])dnl
823
850
dnl Autoconf wants to disallow AM_ names.  We explicitly allow
824
851
dnl the ones we care about.
825
852
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
870
897
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
871
898
AM_MISSING_PROG(AUTOHEADER, autoheader)
872
899
AM_MISSING_PROG(MAKEINFO, makeinfo)
873
 
AM_PROG_INSTALL_SH
874
 
AM_PROG_INSTALL_STRIP
 
900
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
 
901
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
875
902
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
876
903
# We need awk for the "check" target.  The system "awk" is bad on
877
904
# some platforms.
879
906
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
880
907
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
881
908
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
882
 
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
883
 
                             [_AM_PROG_TAR([v7])])])
 
909
              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
 
910
                             [_AM_PROG_TAR([v7])])])
884
911
_AM_IF_OPTION([no-dependencies],,
885
912
[AC_PROVIDE_IFELSE([AC_PROG_CC],
886
 
                  [_AM_DEPENDENCIES(CC)],
887
 
                  [define([AC_PROG_CC],
888
 
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
 
913
                  [_AM_DEPENDENCIES(CC)],
 
914
                  [define([AC_PROG_CC],
 
915
                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
889
916
AC_PROVIDE_IFELSE([AC_PROG_CXX],
890
 
                  [_AM_DEPENDENCIES(CXX)],
891
 
                  [define([AC_PROG_CXX],
892
 
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
 
917
                  [_AM_DEPENDENCIES(CXX)],
 
918
                  [define([AC_PROG_CXX],
 
919
                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
893
920
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
894
 
                  [_AM_DEPENDENCIES(OBJC)],
895
 
                  [define([AC_PROG_OBJC],
896
 
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
897
 
])
898
 
])
 
921
                  [_AM_DEPENDENCIES(OBJC)],
 
922
                  [define([AC_PROG_OBJC],
 
923
                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
 
924
])
 
925
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
 
926
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
 
927
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
 
928
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
 
929
AC_CONFIG_COMMANDS_PRE(dnl
 
930
[m4_provide_if([_AM_COMPILER_EXEEXT],
 
931
  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
 
932
])
 
933
 
 
934
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
 
935
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
 
936
dnl mangled by Autoconf and run in a shell conditional statement.
 
937
m4_define([_AC_COMPILER_EXEEXT],
 
938
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
899
939
 
900
940
 
901
941
# When config.status generates a header, we must update the stamp-h file.
919
959
done
920
960
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
921
961
 
922
 
# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
 
962
# Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
923
963
#
924
964
# This file is free software; the Free Software Foundation
925
965
# gives unlimited permission to copy and/or distribute it,
930
970
# Define $install_sh.
931
971
AC_DEFUN([AM_PROG_INSTALL_SH],
932
972
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
933
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
973
if test x"${install_sh}" != xset; then
 
974
  case $am_aux_dir in
 
975
  *\ * | *\     *)
 
976
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
977
  *)
 
978
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
979
  esac
 
980
fi
934
981
AC_SUBST(install_sh)])
935
982
 
936
983
# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
957
1004
# Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
958
1005
# From Jim Meyering
959
1006
 
960
 
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
 
1007
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
961
1008
# Free Software Foundation, Inc.
962
1009
#
963
1010
# This file is free software; the Free Software Foundation
964
1011
# gives unlimited permission to copy and/or distribute it,
965
1012
# with or without modifications, as long as this notice is preserved.
966
1013
 
967
 
# serial 4
 
1014
# serial 5
968
1015
 
 
1016
# AM_MAINTAINER_MODE([DEFAULT-MODE])
 
1017
# ----------------------------------
 
1018
# Control maintainer-specific portions of Makefiles.
 
1019
# Default is to disable them, unless `enable' is passed literally.
 
1020
# For symmetry, `disable' may be passed as well.  Anyway, the user
 
1021
# can override the default with the --enable/--disable switch.
969
1022
AC_DEFUN([AM_MAINTAINER_MODE],
970
 
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
971
 
  dnl maintainer-mode is disabled by default
972
 
  AC_ARG_ENABLE(maintainer-mode,
973
 
[  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1023
[m4_case(m4_default([$1], [disable]),
 
1024
       [enable], [m4_define([am_maintainer_other], [disable])],
 
1025
       [disable], [m4_define([am_maintainer_other], [enable])],
 
1026
       [m4_define([am_maintainer_other], [enable])
 
1027
        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
 
1028
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
 
1029
  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
 
1030
  AC_ARG_ENABLE([maintainer-mode],
 
1031
[  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
974
1032
                          (and sometimes confusing) to the casual installer],
975
 
      USE_MAINTAINER_MODE=$enableval,
976
 
      USE_MAINTAINER_MODE=no)
 
1033
      [USE_MAINTAINER_MODE=$enableval],
 
1034
      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
977
1035
  AC_MSG_RESULT([$USE_MAINTAINER_MODE])
978
 
  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
 
1036
  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
979
1037
  MAINT=$MAINTAINER_MODE_TRUE
980
 
  AC_SUBST(MAINT)dnl
 
1038
  AC_SUBST([MAINT])dnl
981
1039
]
982
1040
)
983
1041
 
985
1043
 
986
1044
# Check to see how 'make' treats includes.                  -*- Autoconf -*-
987
1045
 
988
 
# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
 
1046
# Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
989
1047
#
990
1048
# This file is free software; the Free Software Foundation
991
1049
# gives unlimited permission to copy and/or distribute it,
992
1050
# with or without modifications, as long as this notice is preserved.
993
1051
 
994
 
# serial 3
 
1052
# serial 4
995
1053
 
996
1054
# AM_MAKE_INCLUDE()
997
1055
# -----------------
1000
1058
[am_make=${MAKE-make}
1001
1059
cat > confinc << 'END'
1002
1060
am__doit:
1003
 
        @echo done
 
1061
        @echo this is the am__doit target
1004
1062
.PHONY: am__doit
1005
1063
END
1006
1064
# If we don't find an include directive, just comment out the code.
1010
1068
_am_result=none
1011
1069
# First try GNU make style include.
1012
1070
echo "include confinc" > confmf
1013
 
# We grep out `Entering directory' and `Leaving directory'
1014
 
# messages which can occur if `w' ends up in MAKEFLAGS.
1015
 
# In particular we don't look at `^make:' because GNU make might
1016
 
# be invoked under some other name (usually "gmake"), in which
1017
 
# case it prints its new name instead of `make'.
1018
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1019
 
   am__include=include
1020
 
   am__quote=
1021
 
   _am_result=GNU
1022
 
fi
 
1071
# Ignore all kinds of additional output from `make'.
 
1072
case `$am_make -s -f confmf 2> /dev/null` in #(
 
1073
*the\ am__doit\ target*)
 
1074
  am__include=include
 
1075
  am__quote=
 
1076
  _am_result=GNU
 
1077
  ;;
 
1078
esac
1023
1079
# Now try BSD make style include.
1024
1080
if test "$am__include" = "#"; then
1025
1081
   echo '.include "confinc"' > confmf
1026
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1027
 
      am__include=.include
1028
 
      am__quote="\""
1029
 
      _am_result=BSD
1030
 
   fi
 
1082
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
1083
   *the\ am__doit\ target*)
 
1084
     am__include=.include
 
1085
     am__quote="\""
 
1086
     _am_result=BSD
 
1087
     ;;
 
1088
   esac
1031
1089
fi
1032
1090
AC_SUBST([am__include])
1033
1091
AC_SUBST([am__quote])
1072
1130
 
1073
1131
# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
1074
1132
 
1075
 
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
 
1133
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1076
1134
# Free Software Foundation, Inc.
1077
1135
#
1078
1136
# This file is free software; the Free Software Foundation
1079
1137
# gives unlimited permission to copy and/or distribute it,
1080
1138
# with or without modifications, as long as this notice is preserved.
1081
1139
 
1082
 
# serial 5
 
1140
# serial 6
1083
1141
 
1084
1142
# AM_MISSING_PROG(NAME, PROGRAM)
1085
1143
# ------------------------------
1096
1154
AC_DEFUN([AM_MISSING_HAS_RUN],
1097
1155
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1098
1156
AC_REQUIRE_AUX_FILE([missing])dnl
1099
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1157
if test x"${MISSING+set}" != xset; then
 
1158
  case $am_aux_dir in
 
1159
  *\ * | *\     *)
 
1160
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
1161
  *)
 
1162
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
1163
  esac
 
1164
fi
1100
1165
# Use eval to expand $SHELL
1101
1166
if eval "$MISSING --run true"; then
1102
1167
  am_missing_run="$MISSING --run "
1165
1230
AC_DEFUN([_AM_IF_OPTION],
1166
1231
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1167
1232
 
1168
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
1233
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
1169
1234
# Free Software Foundation, Inc.
1170
1235
#
1171
1236
# This file is free software; the Free Software Foundation
1196
1261
# numbers and dots only.
1197
1262
AC_DEFUN([AM_PATH_PYTHON],
1198
1263
 [
1199
 
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
1200
 
  dnl supported because the default installation locations changed from
1201
 
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
1202
 
  dnl in 1.5.
 
1264
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
 
1265
  dnl supported. (2.0 was released on October 16, 2000).
1203
1266
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
1204
 
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
1205
 
python2.1 python2.0 python1.6 python1.5])
 
1267
                    [python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 dnl
 
1268
python2.1 python2.0])
1206
1269
 
1207
1270
  m4_if([$1],[],[
1208
1271
    dnl No version check is needed.
1249
1312
  dnl library.
1250
1313
 
1251
1314
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
1252
 
    [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
 
1315
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
1253
1316
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
1254
1317
 
1255
1318
  dnl Use the values of $prefix and $exec_prefix for the corresponding
1264
1327
  dnl to know which OS platform Python thinks this is.
1265
1328
 
1266
1329
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
1267
 
    [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
 
1330
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
1268
1331
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
1269
1332
 
1270
1333
 
1279
1342
  dnl doesn't work.
1280
1343
  AC_CACHE_CHECK([for $am_display_PYTHON script directory],
1281
1344
    [am_cv_python_pythondir],
1282
 
    [am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
1283
 
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
 
1345
    [if test "x$prefix" = xNONE
 
1346
     then
 
1347
       am_py_prefix=$ac_default_prefix
 
1348
     else
 
1349
       am_py_prefix=$prefix
 
1350
     fi
 
1351
     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 ||
 
1352
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
1353
     case $am_cv_python_pythondir in
 
1354
     $am_py_prefix*)
 
1355
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
1356
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
1357
       ;;
 
1358
     esac
 
1359
    ])
1284
1360
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
1285
1361
 
1286
1362
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
1296
1372
  dnl doesn't work.
1297
1373
  AC_CACHE_CHECK([for $am_display_PYTHON extension module directory],
1298
1374
    [am_cv_python_pyexecdir],
1299
 
    [am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
1300
 
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`])
 
1375
    [if test "x$exec_prefix" = xNONE
 
1376
     then
 
1377
       am_py_exec_prefix=$am_py_prefix
 
1378
     else
 
1379
       am_py_exec_prefix=$exec_prefix
 
1380
     fi
 
1381
     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 ||
 
1382
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
1383
     case $am_cv_python_pyexecdir in
 
1384
     $am_py_exec_prefix*)
 
1385
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
1386
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
1387
       ;;
 
1388
     esac
 
1389
    ])
1301
1390
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
1302
1391
 
1303
1392
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
1317
1406
# Run ACTION-IF-FALSE otherwise.
1318
1407
# This test uses sys.hexversion instead of the string equivalent (first
1319
1408
# word of sys.version), in order to cope with versions such as 2.2c1.
1320
 
# hexversion has been introduced in Python 1.5.2; it's probably not
1321
 
# worth to support older versions (1.5.1 was released on October 31, 1998).
 
1409
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
1322
1410
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
1323
 
 [prog="import sys, string
 
1411
 [prog="import sys
1324
1412
# split strings by '.' and convert to numeric.  Append some zeros
1325
1413
# because we need at least 4 digits for the hex conversion.
1326
 
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
 
1414
# map returns an iterator in Python 3.0 and a list in 2.x
 
1415
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
1327
1416
minverhex = 0
1328
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
 
1417
# xrange is not present in Python 3.0 and range returns an iterator
 
1418
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
1329
1419
sys.exit(sys.hexversion < minverhex)"
1330
1420
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1331
1421
 
1348
1438
 
1349
1439
# Check to make sure that the build environment is sane.    -*- Autoconf -*-
1350
1440
 
1351
 
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
 
1441
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1352
1442
# Free Software Foundation, Inc.
1353
1443
#
1354
1444
# This file is free software; the Free Software Foundation
1355
1445
# gives unlimited permission to copy and/or distribute it,
1356
1446
# with or without modifications, as long as this notice is preserved.
1357
1447
 
1358
 
# serial 4
 
1448
# serial 5
1359
1449
 
1360
1450
# AM_SANITY_CHECK
1361
1451
# ---------------
1364
1454
# Just in case
1365
1455
sleep 1
1366
1456
echo timestamp > conftest.file
 
1457
# Reject unsafe characters in $srcdir or the absolute working directory
 
1458
# name.  Accept space and tab only in the latter.
 
1459
am_lf='
 
1460
'
 
1461
case `pwd` in
 
1462
  *[[\\\"\#\$\&\'\`$am_lf]]*)
 
1463
    AC_MSG_ERROR([unsafe absolute working directory name]);;
 
1464
esac
 
1465
case $srcdir in
 
1466
  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
 
1467
    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
 
1468
esac
 
1469
 
1367
1470
# Do `set' in a subshell so we don't clobber the current shell's
1368
1471
# arguments.  Must try -L first in case configure is actually a
1369
1472
# symlink; some systems play weird games with the mod time of symlinks
1370
1473
# (eg FreeBSD returns the mod time of the symlink's containing
1371
1474
# directory).
1372
1475
if (
1373
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1476
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1374
1477
   if test "$[*]" = "X"; then
1375
1478
      # -L didn't work.
1376
 
      set X `ls -t $srcdir/configure conftest.file`
 
1479
      set X `ls -t "$srcdir/configure" conftest.file`
1377
1480
   fi
1378
1481
   rm -f conftest.file
1379
1482
   if test "$[*]" != "X $srcdir/configure conftest.file" \
1426
1529
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1427
1530
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1428
1531
 
1429
 
# Copyright (C) 2006  Free Software Foundation, Inc.
 
1532
# Copyright (C) 2006, 2008  Free Software Foundation, Inc.
1430
1533
#
1431
1534
# This file is free software; the Free Software Foundation
1432
1535
# gives unlimited permission to copy and/or distribute it,
1433
1536
# with or without modifications, as long as this notice is preserved.
1434
1537
 
 
1538
# serial 2
 
1539
 
1435
1540
# _AM_SUBST_NOTMAKE(VARIABLE)
1436
1541
# ---------------------------
1437
1542
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1438
1543
# This macro is traced by Automake.
1439
1544
AC_DEFUN([_AM_SUBST_NOTMAKE])
1440
1545
 
 
1546
# AM_SUBST_NOTMAKE(VARIABLE)
 
1547
# ---------------------------
 
1548
# Public sister of _AM_SUBST_NOTMAKE.
 
1549
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
 
1550
 
1441
1551
# Check how to create a tarball.                            -*- Autoconf -*-
1442
1552
 
1443
1553
# Copyright (C) 2004, 2005  Free Software Foundation, Inc.