1
# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
1
# generated automatically by aclocal 1.13.1 -*- Autoconf -*-
3
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
6
5
# This file is free software; the Free Software Foundation
7
6
# gives unlimited permission to copy and/or distribute it,
8
7
# with or without modifications, as long as this notice is preserved.
12
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13
12
# PARTICULAR PURPOSE.
14
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
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'.])])
23
23
# Configure paths for GLIB
24
24
# Owen Taylor 1997-2001
263
263
# ----------------------------------
264
264
AC_DEFUN([PKG_PROG_PKG_CONFIG],
265
265
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
266
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
266
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
267
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
267
268
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
268
269
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
269
270
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
394
396
])# PKG_CHECK_MODULES
396
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
399
# PKG_INSTALLDIR(DIRECTORY)
400
# -------------------------
401
# Substitutes the variable pkgconfigdir as the location where a module
402
# should install pkg-config .pc files. By default the directory is
403
# $libdir/pkgconfig, but the default can be changed by passing
404
# DIRECTORY. The user can override through the --with-pkgconfigdir
406
AC_DEFUN([PKG_INSTALLDIR],
407
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
408
m4_pushdef([pkg_description],
409
[pkg-config installation directory @<:@]pkg_default[@:>@])
410
AC_ARG_WITH([pkgconfigdir],
411
[AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
412
[with_pkgconfigdir=]pkg_default)
413
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
414
m4_popdef([pkg_default])
415
m4_popdef([pkg_description])
416
]) dnl PKG_INSTALLDIR
419
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
420
# -------------------------
421
# Substitutes the variable noarch_pkgconfigdir as the location where a
422
# module should install arch-independent pkg-config .pc files. By
423
# default the directory is $datadir/pkgconfig, but the default can be
424
# changed by passing DIRECTORY. The user can override through the
425
# --with-noarch-pkgconfigdir parameter.
426
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
427
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
428
m4_pushdef([pkg_description],
429
[pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
430
AC_ARG_WITH([noarch-pkgconfigdir],
431
[AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
432
[with_noarch_pkgconfigdir=]pkg_default)
433
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
434
m4_popdef([pkg_default])
435
m4_popdef([pkg_description])
436
]) dnl PKG_NOARCH_INSTALLDIR
438
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
399
440
# This file is free software; the Free Software Foundation
400
441
# gives unlimited permission to copy and/or distribute it,
401
442
# with or without modifications, as long as this notice is preserved.
405
444
# AM_AUTOMAKE_VERSION(VERSION)
406
445
# ----------------------------
407
446
# Automake X.Y traces this macro to ensure aclocal.m4 has been
408
447
# generated from the m4 files accompanying Automake X.Y.
409
448
# (This private macro should not be called outside this file.)
410
449
AC_DEFUN([AM_AUTOMAKE_VERSION],
411
[am__api_version='1.11'
450
[am__api_version='1.13'
412
451
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
413
452
dnl require some minimum version. Point them to the right macro.
414
m4_if([$1], [1.11.3], [],
453
m4_if([$1], [1.13.1], [],
415
454
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
427
466
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
428
467
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
429
468
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
430
[AM_AUTOMAKE_VERSION([1.11.3])dnl
469
[AM_AUTOMAKE_VERSION([1.13.1])dnl
431
470
m4_ifndef([AC_AUTOCONF_VERSION],
432
471
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
433
472
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
435
474
# Figure out how to run the assembler. -*- Autoconf -*-
437
# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
476
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
439
478
# This file is free software; the Free Software Foundation
440
479
# gives unlimited permission to copy and/or distribute it,
441
480
# with or without modifications, as long as this notice is preserved.
447
484
AC_DEFUN([AM_PROG_AS],
457
494
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
459
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
496
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
461
498
# This file is free software; the Free Software Foundation
462
499
# gives unlimited permission to copy and/or distribute it,
463
500
# with or without modifications, as long as this notice is preserved.
467
502
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
468
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
469
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
503
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
504
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
471
506
# Of course, Automake must honor this variable whenever it calls a
472
507
# tool from the auxiliary directory. The problem is that $srcdir (and
512
547
# AM_CONDITIONAL -*- Autoconf -*-
514
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
515
# Free Software Foundation, Inc.
549
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
517
551
# This file is free software; the Free Software Foundation
518
552
# gives unlimited permission to copy and/or distribute it,
519
553
# with or without modifications, as long as this notice is preserved.
523
555
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
524
556
# -------------------------------------
525
557
# Define a conditional.
526
558
AC_DEFUN([AM_CONDITIONAL],
528
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
529
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
559
[AC_PREREQ([2.52])dnl
560
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
561
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
530
562
AC_SUBST([$1_TRUE])dnl
531
563
AC_SUBST([$1_FALSE])dnl
532
564
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
545
577
Usually this means the macro was only invoked conditionally.]])
548
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
549
# 2010, 2011 Free Software Foundation, Inc.
580
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
551
582
# This file is free software; the Free Software Foundation
552
583
# gives unlimited permission to copy and/or distribute it,
553
584
# with or without modifications, as long as this notice is preserved.
557
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
587
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
558
588
# written in clear, in which case automake, when reading aclocal.m4,
559
589
# will think it sees a *use*, and therefore will trigger all it's
560
590
# C support machinery. Also note that it means that autoscan, seeing
577
607
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
578
608
AC_REQUIRE([AM_DEP_TRACK])dnl
580
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
581
[$1], CXX, [depcc="$CXX" am_compiler_list=],
582
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
583
[$1], UPC, [depcc="$UPC" am_compiler_list=],
584
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
585
[depcc="$$1" am_compiler_list=])
610
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
611
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
612
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
613
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
614
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
615
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
616
[depcc="$$1" am_compiler_list=])
587
618
AC_CACHE_CHECK([dependency style of $depcc],
588
619
[am_cv_$1_dependencies_compiler_type],
631
662
: > sub/conftest.c
632
663
for i in 1 2 3 4 5 6; do
633
664
echo '#include "conftst'$i'.h"' >> sub/conftest.c
634
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
635
# Solaris 8's {/usr,}/bin/sh.
636
touch sub/conftst$i.h
665
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
666
# Solaris 10 /bin/sh.
667
echo '/* dummy */' > sub/conftst$i.h
638
669
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
640
# We check with `-c' and `-o' for the sake of the "dashmstdout"
671
# We check with '-c' and '-o' for the sake of the "dashmstdout"
641
672
# mode. It turns out that the SunPro C++ compiler does not properly
642
# handle `-M -o', and we need to detect this. Also, some Intel
643
# versions had trouble with output in subdirs
673
# handle '-M -o', and we need to detect this. Also, some Intel
674
# versions had trouble with output in subdirs.
644
675
am__obj=sub/conftest.${OBJEXT-o}
645
676
am__minus_obj="-o $am__obj"
718
749
AC_DEFUN([AM_DEP_TRACK],
719
[AC_ARG_ENABLE(dependency-tracking,
720
[ --disable-dependency-tracking speeds up one-time build
721
--enable-dependency-tracking do not reject slow dependency extractors])
750
[AC_ARG_ENABLE([dependency-tracking], [dnl
752
[--enable-dependency-tracking],
753
[do not reject slow dependency extractors])
755
[--disable-dependency-tracking],
756
[speeds up one-time build])])
722
757
if test "x$enable_dependency_tracking" != xno; then
723
758
am_depcomp="$ac_aux_dir/depcomp"
724
759
AMDEPBACKSLASH='\'
734
769
# Generate code to set up dependency tracking. -*- Autoconf -*-
736
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
737
# Free Software Foundation, Inc.
771
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
739
773
# This file is free software; the Free Software Foundation
740
774
# gives unlimited permission to copy and/or distribute it,
741
775
# with or without modifications, as long as this notice is preserved.
745
778
# _AM_OUTPUT_DEPENDENCY_COMMANDS
746
779
# ------------------------------
747
780
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
749
# Autoconf 2.62 quotes --file arguments for eval, but not when files
782
# Older Autoconf quotes --file arguments for eval, but not when files
750
783
# are listed without --file. Let's play safe and only enable the eval
751
784
# if we detect the quoting.
752
785
case $CONFIG_FILES in
773
806
# Extract the definition of DEPDIR, am__include, and am__quote
774
# from the Makefile without running `make'.
807
# from the Makefile without running 'make'.
775
808
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
776
809
test -z "$DEPDIR" && continue
777
810
am__include=`sed -n 's/^am__include = //p' < "$mf"`
778
811
test -z "am__include" && continue
779
812
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
780
# When using ansi2knr, U may be empty or an underscore; expand it
781
U=`sed -n 's/^U = //p' < "$mf"`
782
813
# Find all dependency output files, they are included files with
783
814
# $(DEPDIR) in their names. We invoke sed twice because it is the
784
815
# simplest approach to changing $(DEPDIR) to its actual value in the
786
817
for file in `sed -n "
787
818
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
788
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
819
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
789
820
# Make sure the directory exists.
790
821
test -f "$dirpart/$file" && continue
791
822
fdir=`AS_DIRNAME(["$file"])`
814
845
# Do all the work for Automake. -*- Autoconf -*-
816
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
817
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
847
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
819
849
# This file is free software; the Free Software Foundation
820
850
# gives unlimited permission to copy and/or distribute it,
821
851
# with or without modifications, as long as this notice is preserved.
825
853
# This macro actually does too much. Some checks are only needed if
826
854
# your package does certain things. But this isn't really a big deal.
866
894
# Define the identity of the package.
867
895
dnl Distinguish between old-style and new-style calls.
869
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
897
[AC_DIAGNOSE([obsolete],
898
[$0: two- and three-arguments forms are deprecated.])
899
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
870
900
AC_SUBST([PACKAGE], [$1])dnl
871
901
AC_SUBST([VERSION], [$2])],
872
902
[_AM_SET_OPTIONS([$1])dnl
873
903
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
874
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
905
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
875
907
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
876
908
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
877
909
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
879
911
_AM_IF_OPTION([no-define],,
880
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
881
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
912
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
913
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
883
915
# Some tools Automake needs.
884
916
AC_REQUIRE([AM_SANITY_CHECK])dnl
885
917
AC_REQUIRE([AC_ARG_PROGRAM])dnl
886
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
887
AM_MISSING_PROG(AUTOCONF, autoconf)
888
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
889
AM_MISSING_PROG(AUTOHEADER, autoheader)
890
AM_MISSING_PROG(MAKEINFO, makeinfo)
918
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
919
AM_MISSING_PROG([AUTOCONF], [autoconf])
920
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
921
AM_MISSING_PROG([AUTOHEADER], [autoheader])
922
AM_MISSING_PROG([MAKEINFO], [makeinfo])
891
923
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
892
924
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
893
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
925
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
926
# For better backward compatibility. To be removed once Automake 1.9.x
927
# dies out for good. For more background, see:
928
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
929
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
930
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
894
931
# We need awk for the "check" target. The system "awk" is bad on
895
932
# some platforms.
896
933
AC_REQUIRE([AC_PROG_AWK])dnl
901
938
[_AM_PROG_TAR([v7])])])
902
939
_AM_IF_OPTION([no-dependencies],,
903
940
[AC_PROVIDE_IFELSE([AC_PROG_CC],
904
[_AM_DEPENDENCIES(CC)],
905
[define([AC_PROG_CC],
906
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
941
[_AM_DEPENDENCIES([CC])],
942
[m4_define([AC_PROG_CC],
943
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
907
944
AC_PROVIDE_IFELSE([AC_PROG_CXX],
908
[_AM_DEPENDENCIES(CXX)],
909
[define([AC_PROG_CXX],
910
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
945
[_AM_DEPENDENCIES([CXX])],
946
[m4_define([AC_PROG_CXX],
947
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
911
948
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
912
[_AM_DEPENDENCIES(OBJC)],
913
[define([AC_PROG_OBJC],
914
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
949
[_AM_DEPENDENCIES([OBJC])],
950
[m4_define([AC_PROG_OBJC],
951
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
952
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
953
[_AM_DEPENDENCIES([OBJCXX])],
954
[m4_define([AC_PROG_OBJCXX],
955
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
916
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
917
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
918
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
919
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
957
AC_REQUIRE([AM_SILENT_RULES])dnl
958
dnl The testsuite driver may need to know about EXEEXT, so add the
959
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
960
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
920
961
AC_CONFIG_COMMANDS_PRE(dnl
921
962
[m4_provide_if([_AM_COMPILER_EXEEXT],
922
963
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
925
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
966
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
926
967
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
927
968
dnl mangled by Autoconf and run in a shell conditional statement.
928
969
m4_define([_AC_COMPILER_EXEEXT],
951
992
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
953
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
994
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
956
996
# This file is free software; the Free Software Foundation
957
997
# gives unlimited permission to copy and/or distribute it,
958
998
# with or without modifications, as long as this notice is preserved.
962
1000
# AM_PROG_INSTALL_SH
963
1001
# ------------------
964
1002
# Define $install_sh.
972
1010
install_sh="\${SHELL} $am_aux_dir/install-sh"
975
AC_SUBST(install_sh)])
1013
AC_SUBST([install_sh])])
977
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1015
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
979
1017
# This file is free software; the Free Software Foundation
980
1018
# gives unlimited permission to copy and/or distribute it,
981
1019
# with or without modifications, as long as this notice is preserved.
985
1021
# Check whether the underlying file-system supports filenames
986
1022
# with a leading dot. For instance MS-DOS doesn't.
987
1023
AC_DEFUN([AM_SET_LEADING_DOT],
998
1034
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
999
1035
# From Jim Meyering
1001
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
1002
# 2011 Free Software Foundation, Inc.
1037
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1004
1039
# This file is free software; the Free Software Foundation
1005
1040
# gives unlimited permission to copy and/or distribute it,
1006
1041
# with or without modifications, as long as this notice is preserved.
1010
1043
# AM_MAINTAINER_MODE([DEFAULT-MODE])
1011
1044
# ----------------------------------
1012
1045
# Control maintainer-specific portions of Makefiles.
1013
# Default is to disable them, unless `enable' is passed literally.
1014
# For symmetry, `disable' may be passed as well. Anyway, the user
1046
# Default is to disable them, unless 'enable' is passed literally.
1047
# For symmetry, 'disable' may be passed as well. Anyway, the user
1015
1048
# can override the default with the --enable/--disable switch.
1016
1049
AC_DEFUN([AM_MAINTAINER_MODE],
1017
1050
[m4_case(m4_default([$1], [disable]),
1022
1055
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1023
1056
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1024
1057
AC_ARG_ENABLE([maintainer-mode],
1025
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
1026
(and sometimes confusing) to the casual installer],
1027
[USE_MAINTAINER_MODE=$enableval],
1028
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1058
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
1059
am_maintainer_other[ make rules and dependencies not useful
1060
(and sometimes confusing) to the casual installer])],
1061
[USE_MAINTAINER_MODE=$enableval],
1062
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1029
1063
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1030
1064
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1031
1065
MAINT=$MAINTAINER_MODE_TRUE
1036
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1038
1070
# Check to see how 'make' treats includes. -*- Autoconf -*-
1040
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1072
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1042
1074
# This file is free software; the Free Software Foundation
1043
1075
# gives unlimited permission to copy and/or distribute it,
1044
1076
# with or without modifications, as long as this notice is preserved.
1048
1078
# AM_MAKE_INCLUDE()
1049
1079
# -----------------
1050
1080
# Check to see how make treats includes.
1090
1120
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1092
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1093
# Free Software Foundation, Inc.
1122
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
1095
1124
# This file is free software; the Free Software Foundation
1096
1125
# gives unlimited permission to copy and/or distribute it,
1097
1126
# with or without modifications, as long as this notice is preserved.
1101
1128
# AM_MISSING_PROG(NAME, PROGRAM)
1102
1129
# ------------------------------
1103
1130
AC_DEFUN([AM_MISSING_PROG],
1105
1132
$1=${$1-"${am_missing_run}$2"}
1109
1135
# AM_MISSING_HAS_RUN
1110
1136
# ------------------
1111
# Define MISSING if not defined so far and test if it supports --run.
1112
# If it does, set am_missing_run to use it, otherwise, to nothing.
1137
# Define MISSING if not defined so far and test if it is modern enough.
1138
# If it is, set am_missing_run to use it, otherwise, to nothing.
1113
1139
AC_DEFUN([AM_MISSING_HAS_RUN],
1114
1140
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1115
1141
AC_REQUIRE_AUX_FILE([missing])dnl
1124
1150
# Use eval to expand $SHELL
1125
if eval "$MISSING --run true"; then
1126
am_missing_run="$MISSING --run "
1151
if eval "$MISSING --is-lightweight"; then
1152
am_missing_run="$MISSING "
1128
1154
am_missing_run=
1129
AC_MSG_WARN([`missing' script is too old or missing])
1155
AC_MSG_WARN(['missing' script is too old or missing])
1133
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
1159
# Copyright (C) 2003-2013 Free Software Foundation, Inc.
1136
1161
# This file is free software; the Free Software Foundation
1137
1162
# gives unlimited permission to copy and/or distribute it,
1138
1163
# with or without modifications, as long as this notice is preserved.
1142
1165
# AM_PROG_MKDIR_P
1143
1166
# ---------------
1144
# Check for `mkdir -p'.
1167
# Check for 'mkdir -p'.
1145
1168
AC_DEFUN([AM_PROG_MKDIR_P],
1146
1169
[AC_PREREQ([2.60])dnl
1147
1170
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1171
dnl FIXME to be removed in Automake 1.14.
1172
AC_DIAGNOSE([obsolete],
1173
[$0: this macro is deprecated, and will soon be removed.
1174
You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead,
1175
and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.])
1148
1176
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1149
1177
dnl while keeping a definition of mkdir_p for backward compatibility.
1150
1178
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1162
1190
# Helper functions for option handling. -*- Autoconf -*-
1164
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1192
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1167
1194
# This file is free software; the Free Software Foundation
1168
1195
# gives unlimited permission to copy and/or distribute it,
1169
1196
# with or without modifications, as long as this notice is preserved.
1173
1198
# _AM_MANGLE_OPTION(NAME)
1174
1199
# -----------------------
1175
1200
AC_DEFUN([_AM_MANGLE_OPTION],
1193
1218
AC_DEFUN([_AM_IF_OPTION],
1194
1219
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1196
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1221
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1198
1223
# This file is free software; the Free Software Foundation
1199
1224
# gives unlimited permission to copy and/or distribute it,
1200
1225
# with or without modifications, as long as this notice is preserved.
1204
1227
# AM_RUN_LOG(COMMAND)
1205
1228
# -------------------
1206
1229
# Run COMMAND, save the exit status in ac_status, and log it.
1215
1238
# Check to make sure that the build environment is sane. -*- Autoconf -*-
1217
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1218
# Free Software Foundation, Inc.
1240
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
1220
1242
# This file is free software; the Free Software Foundation
1221
1243
# gives unlimited permission to copy and/or distribute it,
1222
1244
# with or without modifications, as long as this notice is preserved.
1226
1246
# AM_SANITY_CHECK
1227
1247
# ---------------
1228
1248
AC_DEFUN([AM_SANITY_CHECK],
1229
1249
[AC_MSG_CHECKING([whether build environment is sane])
1232
echo timestamp > conftest.file
1233
1250
# Reject unsafe characters in $srcdir or the absolute working directory
1234
1251
# name. Accept space and tab only in the latter.
1241
1258
case $srcdir in
1242
1259
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1243
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1260
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1246
# Do `set' in a subshell so we don't clobber the current shell's
1263
# Do 'set' in a subshell so we don't clobber the current shell's
1247
1264
# arguments. Must try -L first in case configure is actually a
1248
1265
# symlink; some systems play weird games with the mod time of symlinks
1249
1266
# (eg FreeBSD returns the mod time of the symlink's containing
1252
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1253
if test "$[*]" = "X"; then
1255
set X `ls -t "$srcdir/configure" conftest.file`
1258
if test "$[*]" != "X $srcdir/configure conftest.file" \
1259
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1261
# If neither matched, then we have a broken ls. This can happen
1262
# if, for instance, CONFIG_SHELL is bash and it inherits a
1263
# broken ls alias from the environment. This has actually
1264
# happened. Such a system could not be considered "sane".
1265
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1266
alias in your environment])
1270
for am_try in 1 2; do
1271
echo "timestamp, slept: $am_has_slept" > conftest.file
1272
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1273
if test "$[*]" = "X"; then
1275
set X `ls -t "$srcdir/configure" conftest.file`
1277
if test "$[*]" != "X $srcdir/configure conftest.file" \
1278
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1280
# If neither matched, then we have a broken ls. This can happen
1281
# if, for instance, CONFIG_SHELL is bash and it inherits a
1282
# broken ls alias from the environment. This has actually
1283
# happened. Such a system could not be considered "sane".
1284
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1285
alias in your environment])
1287
if test "$[2]" = conftest.file || test $am_try -eq 2; then
1269
1294
test "$[2]" = conftest.file
1275
1300
AC_MSG_ERROR([newly created file is older than distributed files!
1276
1301
Check your system clock])
1278
AC_MSG_RESULT(yes)])
1303
AC_MSG_RESULT([yes])
1304
# If we didn't sleep, we still need to ensure time stamps of config.status and
1305
# generated files are strictly newer.
1307
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1311
AC_CONFIG_COMMANDS_PRE(
1312
[AC_MSG_CHECKING([that generated files are newer than configure])
1313
if test -n "$am_sleep_pid"; then
1314
# Hide warnings about reused PIDs.
1315
wait $am_sleep_pid 2>/dev/null
1317
AC_MSG_RESULT([done])])
1280
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1321
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1282
1323
# This file is free software; the Free Software Foundation
1283
1324
# gives unlimited permission to copy and/or distribute it,
1284
1325
# with or without modifications, as long as this notice is preserved.
1288
1327
# AM_SILENT_RULES([DEFAULT])
1289
1328
# --------------------------
1290
1329
# Enable less verbose build rules; with the default set to DEFAULT
1291
# (`yes' being less verbose, `no' or empty being verbose).
1330
# ("yes" being less verbose, "no" or empty being verbose).
1292
1331
AC_DEFUN([AM_SILENT_RULES],
1293
[AC_ARG_ENABLE([silent-rules],
1294
[ --enable-silent-rules less verbose build output (undo: `make V=1')
1295
--disable-silent-rules verbose build output (undo: `make V=0')])
1296
case $enable_silent_rules in
1297
yes) AM_DEFAULT_VERBOSITY=0;;
1298
no) AM_DEFAULT_VERBOSITY=1;;
1299
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1332
[AC_ARG_ENABLE([silent-rules], [dnl
1334
[--enable-silent-rules],
1335
[less verbose build output (undo: "make V=1")])
1337
[--disable-silent-rules],
1338
[verbose build output (undo: "make V=0")])dnl
1340
case $enable_silent_rules in @%:@ (((
1341
yes) AM_DEFAULT_VERBOSITY=0;;
1342
no) AM_DEFAULT_VERBOSITY=1;;
1343
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1302
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1346
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1303
1347
dnl do not support nested variable expansions.
1304
1348
dnl See automake bug#9928 and bug#10237.
1305
1349
am_make=${MAKE-make}
1334
1378
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1337
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1381
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1339
1383
# This file is free software; the Free Software Foundation
1340
1384
# gives unlimited permission to copy and/or distribute it,
1341
1385
# with or without modifications, as long as this notice is preserved.
1345
1387
# AM_PROG_INSTALL_STRIP
1346
1388
# ---------------------
1347
# One issue with vendor `install' (even GNU) is that you can't
1389
# One issue with vendor 'install' (even GNU) is that you can't
1348
1390
# specify the program used to strip binaries. This is especially
1349
1391
# annoying in cross-compiling environments, where the build's strip
1350
1392
# is unlikely to handle the host's binaries.
1351
1393
# Fortunately install-sh will honor a STRIPPROG variable, so we
1352
# always use install-sh in `make install-strip', and initialize
1394
# always use install-sh in "make install-strip", and initialize
1353
1395
# STRIPPROG with the value of the STRIP variable (set by the user).
1354
1396
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1355
1397
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1356
# Installed binaries are usually stripped using `strip' when the user
1357
# run `make install-strip'. However `strip' might not be the right
1398
# Installed binaries are usually stripped using 'strip' when the user
1399
# run "make install-strip". However 'strip' might not be the right
1358
1400
# tool to use in cross-compilation environments, therefore Automake
1359
# will honor the `STRIP' environment variable to overrule this program.
1360
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1401
# will honor the 'STRIP' environment variable to overrule this program.
1402
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1361
1403
if test "$cross_compiling" != no; then
1362
1404
AC_CHECK_TOOL([STRIP], [strip], :)
1364
1406
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1365
1407
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1367
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1409
# Copyright (C) 2006-2013 Free Software Foundation, Inc.
1369
1411
# This file is free software; the Free Software Foundation
1370
1412
# gives unlimited permission to copy and/or distribute it,
1371
1413
# with or without modifications, as long as this notice is preserved.
1375
1415
# _AM_SUBST_NOTMAKE(VARIABLE)
1376
1416
# ---------------------------
1377
1417
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1386
1426
# Check how to create a tarball. -*- Autoconf -*-
1388
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1428
# Copyright (C) 2004-2013 Free Software Foundation, Inc.
1390
1430
# This file is free software; the Free Software Foundation
1391
1431
# gives unlimited permission to copy and/or distribute it,
1392
1432
# with or without modifications, as long as this notice is preserved.
1396
1434
# _AM_PROG_TAR(FORMAT)
1397
1435
# --------------------
1398
1436
# Check how to create a tarball in format FORMAT.
1399
# FORMAT should be one of `v7', `ustar', or `pax'.
1437
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
1401
1439
# Substitute a variable $(am__tar) that is a command
1402
1440
# writing to stdout a FORMAT-tarball containing the directory