460
# nls.m4 serial 5 (gettext-0.18)
461
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
463
dnl This file is free software; the Free Software Foundation
464
dnl gives unlimited permission to copy and/or distribute it,
465
dnl with or without modifications, as long as this notice is preserved.
467
dnl This file can can be used in projects which are not available under
468
dnl the GNU General Public License or the GNU Library General Public
469
dnl License but which still want to provide support for the GNU gettext
471
dnl Please note that the actual code of the GNU gettext library is covered
472
dnl by the GNU Library General Public License, and the rest of the GNU
473
dnl gettext package package is covered by the GNU General Public License.
474
dnl They are *not* in the public domain.
477
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
478
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
484
AC_MSG_CHECKING([whether NLS is requested])
485
dnl Default is enabled NLS
487
[ --disable-nls do not use Native Language Support],
488
USE_NLS=$enableval, USE_NLS=yes)
489
AC_MSG_RESULT([$USE_NLS])
493
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
494
# serial 1 (pkg-config-0.24)
496
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
498
# This program is free software; you can redistribute it and/or modify
499
# it under the terms of the GNU General Public License as published by
500
# the Free Software Foundation; either version 2 of the License, or
501
# (at your option) any later version.
503
# This program is distributed in the hope that it will be useful, but
504
# WITHOUT ANY WARRANTY; without even the implied warranty of
505
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
506
# General Public License for more details.
508
# You should have received a copy of the GNU General Public License
509
# along with this program; if not, write to the Free Software
510
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
512
# As a special exception to the GNU General Public License, if you
513
# distribute this file as part of a program that contains a
514
# configuration script generated by Autoconf, you may include it under
515
# the same distribution terms that you use for the rest of that program.
517
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
518
# ----------------------------------
519
AC_DEFUN([PKG_PROG_PKG_CONFIG],
520
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
521
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
522
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
523
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
524
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
525
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
527
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
528
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
530
if test -n "$PKG_CONFIG"; then
531
_pkg_min_version=m4_default([$1], [0.9.0])
532
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
533
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
540
])# PKG_PROG_PKG_CONFIG
542
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
544
# Check to see whether a particular set of modules exists. Similar
545
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
547
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
548
# only at the first occurence in configure.ac, so if the first place
549
# it's called might be skipped (such as if it is within an "if", you
550
# have to call PKG_CHECK_EXISTS manually
551
# --------------------------------------------------------------
552
AC_DEFUN([PKG_CHECK_EXISTS],
553
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
554
if test -n "$PKG_CONFIG" && \
555
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
556
m4_default([$2], [:])
557
m4_ifvaln([$3], [else
561
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
562
# ---------------------------------------------
563
m4_define([_PKG_CONFIG],
564
[if test -n "$$1"; then
566
elif test -n "$PKG_CONFIG"; then
567
PKG_CHECK_EXISTS([$3],
568
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
569
test "x$?" != "x0" && pkg_failed=yes ],
576
# _PKG_SHORT_ERRORS_SUPPORTED
577
# -----------------------------
578
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
579
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
580
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
581
_pkg_short_errors_supported=yes
583
_pkg_short_errors_supported=no
585
])# _PKG_SHORT_ERRORS_SUPPORTED
588
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
589
# [ACTION-IF-NOT-FOUND])
592
# Note that if there is a possibility the first call to
593
# PKG_CHECK_MODULES might not happen, you should be sure to include an
594
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
597
# --------------------------------------------------------------
598
AC_DEFUN([PKG_CHECK_MODULES],
599
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
600
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
601
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
604
AC_MSG_CHECKING([for $1])
606
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
607
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
609
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
610
and $1[]_LIBS to avoid the need to call pkg-config.
611
See the pkg-config man page for more details.])
613
if test $pkg_failed = yes; then
615
_PKG_SHORT_ERRORS_SUPPORTED
616
if test $_pkg_short_errors_supported = yes; then
617
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
619
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
621
# Put the nasty error message in config.log where it belongs
622
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
624
m4_default([$4], [AC_MSG_ERROR(
625
[Package requirements ($2) were not met:
629
Consider adjusting the PKG_CONFIG_PATH environment variable if you
630
installed software in a non-standard prefix.
634
elif test $pkg_failed = untried; then
636
m4_default([$4], [AC_MSG_FAILURE(
637
[The pkg-config script could not be found or is too old. Make sure it
638
is in your PATH or set the PKG_CONFIG environment variable to the full
643
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
646
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
647
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
651
])# PKG_CHECK_MODULES
653
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
656
# This file is free software; the Free Software Foundation
657
# gives unlimited permission to copy and/or distribute it,
658
# with or without modifications, as long as this notice is preserved.
662
# AM_AUTOMAKE_VERSION(VERSION)
663
# ----------------------------
664
# Automake X.Y traces this macro to ensure aclocal.m4 has been
665
# generated from the m4 files accompanying Automake X.Y.
666
# (This private macro should not be called outside this file.)
667
AC_DEFUN([AM_AUTOMAKE_VERSION],
668
[am__api_version='1.11'
669
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
670
dnl require some minimum version. Point them to the right macro.
671
m4_if([$1], [1.11.3], [],
672
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
675
# _AM_AUTOCONF_VERSION(VERSION)
676
# -----------------------------
677
# aclocal traces this macro to find the Autoconf version.
678
# This is a private macro too. Using m4_define simplifies
679
# the logic in aclocal, which can simply ignore this definition.
680
m4_define([_AM_AUTOCONF_VERSION], [])
682
# AM_SET_CURRENT_AUTOMAKE_VERSION
683
# -------------------------------
684
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
685
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
686
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
687
[AM_AUTOMAKE_VERSION([1.11.3])dnl
688
m4_ifndef([AC_AUTOCONF_VERSION],
689
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
690
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
692
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
694
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
696
# This file is free software; the Free Software Foundation
697
# gives unlimited permission to copy and/or distribute it,
698
# with or without modifications, as long as this notice is preserved.
702
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
703
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
704
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
706
# Of course, Automake must honor this variable whenever it calls a
707
# tool from the auxiliary directory. The problem is that $srcdir (and
708
# therefore $ac_aux_dir as well) can be either absolute or relative,
709
# depending on how configure is run. This is pretty annoying, since
710
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
711
# source directory, any form will work fine, but in subdirectories a
712
# relative path needs to be adjusted first.
714
# $ac_aux_dir/missing
715
# fails when called from a subdirectory if $ac_aux_dir is relative
716
# $top_srcdir/$ac_aux_dir/missing
717
# fails if $ac_aux_dir is absolute,
718
# fails when called from a subdirectory in a VPATH build with
719
# a relative $ac_aux_dir
721
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
722
# are both prefixed by $srcdir. In an in-source build this is usually
723
# harmless because $srcdir is `.', but things will broke when you
724
# start a VPATH build or use an absolute $srcdir.
726
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
727
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
728
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
729
# and then we would define $MISSING as
730
# MISSING="\${SHELL} $am_aux_dir/missing"
731
# This will work as long as MISSING is not called from configure, because
732
# unfortunately $(top_srcdir) has no meaning in configure.
733
# However there are other variables, like CC, which are often used in
734
# configure, and could therefore not use this "fixed" $ac_aux_dir.
736
# Another solution, used here, is to always expand $ac_aux_dir to an
737
# absolute PATH. The drawback is that using absolute paths prevent a
738
# configured tree to be moved without reconfiguration.
740
AC_DEFUN([AM_AUX_DIR_EXPAND],
741
[dnl Rely on autoconf to set up CDPATH properly.
743
# expand $ac_aux_dir to an absolute path
744
am_aux_dir=`cd $ac_aux_dir && pwd`
747
# AM_CONDITIONAL -*- Autoconf -*-
749
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
750
# Free Software Foundation, Inc.
752
# This file is free software; the Free Software Foundation
753
# gives unlimited permission to copy and/or distribute it,
754
# with or without modifications, as long as this notice is preserved.
758
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
759
# -------------------------------------
760
# Define a conditional.
761
AC_DEFUN([AM_CONDITIONAL],
763
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
764
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
765
AC_SUBST([$1_TRUE])dnl
766
AC_SUBST([$1_FALSE])dnl
767
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
768
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
769
m4_define([_AM_COND_VALUE_$1], [$2])dnl
777
AC_CONFIG_COMMANDS_PRE(
778
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
779
AC_MSG_ERROR([[conditional "$1" was never defined.
780
Usually this means the macro was only invoked conditionally.]])
783
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
784
# 2010, 2011 Free Software Foundation, Inc.
786
# This file is free software; the Free Software Foundation
787
# gives unlimited permission to copy and/or distribute it,
788
# with or without modifications, as long as this notice is preserved.
792
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
793
# written in clear, in which case automake, when reading aclocal.m4,
794
# will think it sees a *use*, and therefore will trigger all it's
795
# C support machinery. Also note that it means that autoscan, seeing
796
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
799
# _AM_DEPENDENCIES(NAME)
800
# ----------------------
801
# See how the compiler implements dependency checking.
802
# NAME is "CC", "CXX", "GCJ", or "OBJC".
803
# We try a few techniques and use that to set a single cache variable.
805
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
806
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
807
# dependency, and given that the user is not expected to run this macro,
808
# just rely on AC_PROG_CC.
809
AC_DEFUN([_AM_DEPENDENCIES],
810
[AC_REQUIRE([AM_SET_DEPDIR])dnl
811
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
812
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
813
AC_REQUIRE([AM_DEP_TRACK])dnl
815
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
816
[$1], CXX, [depcc="$CXX" am_compiler_list=],
817
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
818
[$1], UPC, [depcc="$UPC" am_compiler_list=],
819
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
820
[depcc="$$1" am_compiler_list=])
822
AC_CACHE_CHECK([dependency style of $depcc],
823
[am_cv_$1_dependencies_compiler_type],
824
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
825
# We make a subdir and do the tests there. Otherwise we can end up
826
# making bogus files that we don't know about and never remove. For
827
# instance it was reported that on HP-UX the gcc test will end up
828
# making a dummy file named `D' -- because `-MD' means `put the output
832
# Copy depcomp to subdir because otherwise we won't find it if we're
833
# using a relative directory.
834
cp "$am_depcomp" conftest.dir
836
# We will build objects and dependencies in a subdirectory because
837
# it helps to detect inapplicable dependency modes. For instance
838
# both Tru64's cc and ICC support -MD to output dependencies as a
839
# side effect of compilation, but ICC will put the dependencies in
840
# the current directory while Tru64 will put them in the object
844
am_cv_$1_dependencies_compiler_type=none
845
if test "$am_compiler_list" = ""; then
846
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
850
[case " $depcc " in #(
851
*\ -arch\ *\ -arch\ *) am__universal=true ;;
854
[case " $depcc " in #(
855
*\ -arch\ *\ -arch\ *) am__universal=true ;;
858
for depmode in $am_compiler_list; do
859
# Setup a source with many dependencies, because some compilers
860
# like to wrap large dependency lists on column 80 (with \), and
861
# we should not choose a depcomp mode which is confused by this.
863
# We need to recreate these files for each test, as the compiler may
864
# overwrite some of them when testing with obscure command lines.
865
# This happens at least with the AIX C compiler.
867
for i in 1 2 3 4 5 6; do
868
echo '#include "conftst'$i'.h"' >> sub/conftest.c
869
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
870
# Solaris 8's {/usr,}/bin/sh.
871
touch sub/conftst$i.h
873
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
875
# We check with `-c' and `-o' for the sake of the "dashmstdout"
876
# mode. It turns out that the SunPro C++ compiler does not properly
877
# handle `-M -o', and we need to detect this. Also, some Intel
878
# versions had trouble with output in subdirs
879
am__obj=sub/conftest.${OBJEXT-o}
880
am__minus_obj="-o $am__obj"
883
# This depmode causes a compiler race in universal mode.
884
test "$am__universal" = false || continue
887
# after this tag, mechanisms are not by side-effect, so they'll
888
# only be used when explicitly requested
889
if test "x$enable_dependency_tracking" = xyes; then
895
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
896
# This compiler won't grok `-c -o', but also, the minuso test has
897
# not run yet. These depmodes are late enough in the game, and
898
# so weak that their functioning should not be impacted.
899
am__obj=conftest.${OBJEXT-o}
904
if depmode=$depmode \
905
source=sub/conftest.c object=$am__obj \
906
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
907
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
908
>/dev/null 2>conftest.err &&
909
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
910
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
911
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
912
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
913
# icc doesn't choke on unknown options, it will just issue warnings
914
# or remarks (even with -Werror). So we grep stderr for any message
915
# that says an option was ignored or not supported.
916
# When given -MP, icc 7.0 and 7.1 complain thusly:
917
# icc: Command line warning: ignoring option '-M'; no argument required
918
# The diagnosis changed in icc 8.0:
919
# icc: Command line remark: option '-MP' not supported
920
if (grep 'ignoring option' conftest.err ||
921
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
922
am_cv_$1_dependencies_compiler_type=$depmode
931
am_cv_$1_dependencies_compiler_type=none
934
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
935
AM_CONDITIONAL([am__fastdep$1], [
936
test "x$enable_dependency_tracking" != xno \
937
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
943
# Choose a directory name for dependency files.
944
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
945
AC_DEFUN([AM_SET_DEPDIR],
946
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
947
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
953
AC_DEFUN([AM_DEP_TRACK],
954
[AC_ARG_ENABLE(dependency-tracking,
955
[ --disable-dependency-tracking speeds up one-time build
956
--enable-dependency-tracking do not reject slow dependency extractors])
957
if test "x$enable_dependency_tracking" != xno; then
958
am_depcomp="$ac_aux_dir/depcomp"
962
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
963
AC_SUBST([AMDEPBACKSLASH])dnl
964
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
965
AC_SUBST([am__nodep])dnl
966
_AM_SUBST_NOTMAKE([am__nodep])dnl
969
# Generate code to set up dependency tracking. -*- Autoconf -*-
971
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
972
# Free Software Foundation, Inc.
974
# This file is free software; the Free Software Foundation
975
# gives unlimited permission to copy and/or distribute it,
976
# with or without modifications, as long as this notice is preserved.
980
# _AM_OUTPUT_DEPENDENCY_COMMANDS
981
# ------------------------------
982
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
984
# Autoconf 2.62 quotes --file arguments for eval, but not when files
985
# are listed without --file. Let's play safe and only enable the eval
986
# if we detect the quoting.
987
case $CONFIG_FILES in
988
*\'*) eval set x "$CONFIG_FILES" ;;
989
*) set x $CONFIG_FILES ;;
994
# Strip MF so we end up with the name of the file.
995
mf=`echo "$mf" | sed -e 's/:.*$//'`
996
# Check whether this is an Automake generated Makefile or not.
997
# We used to match only the files named `Makefile.in', but
998
# some people rename them; so instead we look at the file content.
999
# Grep'ing the first line is not enough: some people post-process
1000
# each Makefile.in and add a new line on top of each file to say so.
1001
# Grep'ing the whole file is not good either: AIX grep has a line
1002
# limit of 2048, but all sed's we know have understand at least 4000.
1003
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1004
dirpart=`AS_DIRNAME("$mf")`
1008
# Extract the definition of DEPDIR, am__include, and am__quote
1009
# from the Makefile without running `make'.
1010
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1011
test -z "$DEPDIR" && continue
1012
am__include=`sed -n 's/^am__include = //p' < "$mf"`
1013
test -z "am__include" && continue
1014
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1015
# When using ansi2knr, U may be empty or an underscore; expand it
1016
U=`sed -n 's/^U = //p' < "$mf"`
1017
# Find all dependency output files, they are included files with
1018
# $(DEPDIR) in their names. We invoke sed twice because it is the
1019
# simplest approach to changing $(DEPDIR) to its actual value in the
1021
for file in `sed -n "
1022
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1023
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1024
# Make sure the directory exists.
1025
test -f "$dirpart/$file" && continue
1026
fdir=`AS_DIRNAME(["$file"])`
1027
AS_MKDIR_P([$dirpart/$fdir])
1028
# echo "creating $dirpart/$file"
1029
echo '# dummy' > "$dirpart/$file"
1033
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1036
# AM_OUTPUT_DEPENDENCY_COMMANDS
1037
# -----------------------------
1038
# This macro should only be invoked once -- use via AC_REQUIRE.
1040
# This code is only required when automatic dependency tracking
1041
# is enabled. FIXME. This creates each `.P' file that we will
1042
# need in order to bootstrap the dependency handling code.
1043
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1044
[AC_CONFIG_COMMANDS([depfiles],
1045
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1046
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1049
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1050
# Free Software Foundation, Inc.
1052
# This file is free software; the Free Software Foundation
1053
# gives unlimited permission to copy and/or distribute it,
1054
# with or without modifications, as long as this notice is preserved.
1058
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1059
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1061
# Do all the work for Automake. -*- Autoconf -*-
1063
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1064
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1066
# This file is free software; the Free Software Foundation
1067
# gives unlimited permission to copy and/or distribute it,
1068
# with or without modifications, as long as this notice is preserved.
1072
# This macro actually does too much. Some checks are only needed if
1073
# your package does certain things. But this isn't really a big deal.
1075
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1076
# AM_INIT_AUTOMAKE([OPTIONS])
1077
# -----------------------------------------------
1078
# The call with PACKAGE and VERSION arguments is the old style
1079
# call (pre autoconf-2.50), which is being phased out. PACKAGE
1080
# and VERSION should now be passed to AC_INIT and removed from
1081
# the call to AM_INIT_AUTOMAKE.
1082
# We support both call styles for the transition. After
1083
# the next Automake release, Autoconf can make the AC_INIT
1084
# arguments mandatory, and then we can depend on a new Autoconf
1085
# release and drop the old call support.
1086
AC_DEFUN([AM_INIT_AUTOMAKE],
1087
[AC_PREREQ([2.62])dnl
1088
dnl Autoconf wants to disallow AM_ names. We explicitly allow
1089
dnl the ones we care about.
1090
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1091
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1092
AC_REQUIRE([AC_PROG_INSTALL])dnl
1093
if test "`cd $srcdir && pwd`" != "`pwd`"; then
1094
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1095
# is not polluted with repeated "-I."
1096
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1097
# test to see if srcdir already configured
1098
if test -f $srcdir/config.status; then
1099
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1103
# test whether we have cygpath
1104
if test -z "$CYGPATH_W"; then
1105
if (cygpath --version) >/dev/null 2>/dev/null; then
1106
CYGPATH_W='cygpath -w'
1111
AC_SUBST([CYGPATH_W])
1113
# Define the identity of the package.
1114
dnl Distinguish between old-style and new-style calls.
1116
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1117
AC_SUBST([PACKAGE], [$1])dnl
1118
AC_SUBST([VERSION], [$2])],
1119
[_AM_SET_OPTIONS([$1])dnl
1120
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1121
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1122
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1123
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1124
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1126
_AM_IF_OPTION([no-define],,
1127
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1128
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1130
# Some tools Automake needs.
1131
AC_REQUIRE([AM_SANITY_CHECK])dnl
1132
AC_REQUIRE([AC_ARG_PROGRAM])dnl
1133
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1134
AM_MISSING_PROG(AUTOCONF, autoconf)
1135
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1136
AM_MISSING_PROG(AUTOHEADER, autoheader)
1137
AM_MISSING_PROG(MAKEINFO, makeinfo)
1138
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1139
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
1140
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1141
# We need awk for the "check" target. The system "awk" is bad on
1143
AC_REQUIRE([AC_PROG_AWK])dnl
1144
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1145
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1146
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1147
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1148
[_AM_PROG_TAR([v7])])])
1149
_AM_IF_OPTION([no-dependencies],,
1150
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1151
[_AM_DEPENDENCIES(CC)],
1152
[define([AC_PROG_CC],
1153
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1154
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1155
[_AM_DEPENDENCIES(CXX)],
1156
[define([AC_PROG_CXX],
1157
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1158
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1159
[_AM_DEPENDENCIES(OBJC)],
1160
[define([AC_PROG_OBJC],
1161
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1163
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
1164
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
1165
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
1166
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1167
AC_CONFIG_COMMANDS_PRE(dnl
1168
[m4_provide_if([_AM_COMPILER_EXEEXT],
1169
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1172
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1173
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
1174
dnl mangled by Autoconf and run in a shell conditional statement.
1175
m4_define([_AC_COMPILER_EXEEXT],
1176
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
1179
# When config.status generates a header, we must update the stamp-h file.
1180
# This file resides in the same directory as the config header
1181
# that is generated. The stamp files are numbered to have different names.
1183
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1184
# loop where config.status creates the headers, so we can generate
1185
# our stamp files there.
1186
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1187
[# Compute $1's index in $config_headers.
1190
for _am_header in $config_headers :; do
1192
$_am_arg | $_am_arg:* )
1195
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
1198
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
1200
# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
1203
# This file is free software; the Free Software Foundation
1204
# gives unlimited permission to copy and/or distribute it,
1205
# with or without modifications, as long as this notice is preserved.
1209
# AM_PROG_INSTALL_SH
1210
# ------------------
1211
# Define $install_sh.
1212
AC_DEFUN([AM_PROG_INSTALL_SH],
1213
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1214
if test x"${install_sh}" != xset; then
1217
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
1219
install_sh="\${SHELL} $am_aux_dir/install-sh"
1222
AC_SUBST(install_sh)])
1224
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1226
# This file is free software; the Free Software Foundation
1227
# gives unlimited permission to copy and/or distribute it,
1228
# with or without modifications, as long as this notice is preserved.
1232
# Check whether the underlying file-system supports filenames
1233
# with a leading dot. For instance MS-DOS doesn't.
1234
AC_DEFUN([AM_SET_LEADING_DOT],
1235
[rm -rf .tst 2>/dev/null
1236
mkdir .tst 2>/dev/null
1237
if test -d .tst; then
1242
rmdir .tst 2>/dev/null
1243
AC_SUBST([am__leading_dot])])
1245
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
1248
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008,
1249
# 2011 Free Software Foundation, Inc.
1251
# This file is free software; the Free Software Foundation
1252
# gives unlimited permission to copy and/or distribute it,
1253
# with or without modifications, as long as this notice is preserved.
1257
# AM_MAINTAINER_MODE([DEFAULT-MODE])
1258
# ----------------------------------
1259
# Control maintainer-specific portions of Makefiles.
1260
# Default is to disable them, unless `enable' is passed literally.
1261
# For symmetry, `disable' may be passed as well. Anyway, the user
1262
# can override the default with the --enable/--disable switch.
1263
AC_DEFUN([AM_MAINTAINER_MODE],
1264
[m4_case(m4_default([$1], [disable]),
1265
[enable], [m4_define([am_maintainer_other], [disable])],
1266
[disable], [m4_define([am_maintainer_other], [enable])],
1267
[m4_define([am_maintainer_other], [enable])
1268
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
1269
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
1270
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
1271
AC_ARG_ENABLE([maintainer-mode],
1272
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
1273
(and sometimes confusing) to the casual installer],
1274
[USE_MAINTAINER_MODE=$enableval],
1275
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1276
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
1277
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
1278
MAINT=$MAINTAINER_MODE_TRUE
1279
AC_SUBST([MAINT])dnl
1283
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1285
# Check to see how 'make' treats includes. -*- Autoconf -*-
1287
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1289
# This file is free software; the Free Software Foundation
1290
# gives unlimited permission to copy and/or distribute it,
1291
# with or without modifications, as long as this notice is preserved.
1297
# Check to see how make treats includes.
1298
AC_DEFUN([AM_MAKE_INCLUDE],
1299
[am_make=${MAKE-make}
1300
cat > confinc << 'END'
1302
@echo this is the am__doit target
1305
# If we don't find an include directive, just comment out the code.
1306
AC_MSG_CHECKING([for style of include used by $am_make])
1310
# First try GNU make style include.
1311
echo "include confinc" > confmf
1312
# Ignore all kinds of additional output from `make'.
1313
case `$am_make -s -f confmf 2> /dev/null` in #(
1314
*the\ am__doit\ target*)
1320
# Now try BSD make style include.
1321
if test "$am__include" = "#"; then
1322
echo '.include "confinc"' > confmf
1323
case `$am_make -s -f confmf 2> /dev/null` in #(
1324
*the\ am__doit\ target*)
1325
am__include=.include
1331
AC_SUBST([am__include])
1332
AC_SUBST([am__quote])
1333
AC_MSG_RESULT([$_am_result])
1334
rm -f confinc confmf
1337
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
1338
# Free Software Foundation, Inc.
1340
# This file is free software; the Free Software Foundation
1341
# gives unlimited permission to copy and/or distribute it,
1342
# with or without modifications, as long as this notice is preserved.
1348
# Like AC_PROG_CC_C_O, but changed for automake.
1349
AC_DEFUN([AM_PROG_CC_C_O],
1350
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1351
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1352
AC_REQUIRE_AUX_FILE([compile])dnl
1353
# FIXME: we rely on the cache variable name because
1354
# there is no other way.
1356
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1357
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
1358
if test "$am_t" != yes; then
1359
# Losing compiler, so override with the script.
1360
# FIXME: It is wrong to rewrite CC.
1361
# But if we don't then we get into trouble of one sort or another.
1362
# A longer-term fix would be to have automake use am__CC in this case,
1363
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1364
CC="$am_aux_dir/compile $CC"
1366
dnl Make sure AC_PROG_CC is never called again, or it will override our
1368
m4_define([AC_PROG_CC],
1369
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1372
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1374
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
1375
# Free Software Foundation, Inc.
1377
# This file is free software; the Free Software Foundation
1378
# gives unlimited permission to copy and/or distribute it,
1379
# with or without modifications, as long as this notice is preserved.
1383
# AM_MISSING_PROG(NAME, PROGRAM)
1384
# ------------------------------
1385
AC_DEFUN([AM_MISSING_PROG],
1386
[AC_REQUIRE([AM_MISSING_HAS_RUN])
1387
$1=${$1-"${am_missing_run}$2"}
1391
# AM_MISSING_HAS_RUN
1392
# ------------------
1393
# Define MISSING if not defined so far and test if it supports --run.
1394
# If it does, set am_missing_run to use it, otherwise, to nothing.
1395
AC_DEFUN([AM_MISSING_HAS_RUN],
1396
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1397
AC_REQUIRE_AUX_FILE([missing])dnl
1398
if test x"${MISSING+set}" != xset; then
1401
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1403
MISSING="\${SHELL} $am_aux_dir/missing" ;;
1406
# Use eval to expand $SHELL
1407
if eval "$MISSING --run true"; then
1408
am_missing_run="$MISSING --run "
1411
AC_MSG_WARN([`missing' script is too old or missing])
1415
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
1418
# This file is free software; the Free Software Foundation
1419
# gives unlimited permission to copy and/or distribute it,
1420
# with or without modifications, as long as this notice is preserved.
1426
# Check for `mkdir -p'.
1427
AC_DEFUN([AM_PROG_MKDIR_P],
1428
[AC_PREREQ([2.60])dnl
1429
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1430
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1431
dnl while keeping a definition of mkdir_p for backward compatibility.
1432
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1433
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1434
dnl Makefile.ins that do not define MKDIR_P, so we do our own
1435
dnl adjustment using top_builddir (which is defined more often than
1437
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1439
[[\\/$]]* | ?:[[\\/]]*) ;;
1440
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1444
# Helper functions for option handling. -*- Autoconf -*-
1446
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
1449
# This file is free software; the Free Software Foundation
1450
# gives unlimited permission to copy and/or distribute it,
1451
# with or without modifications, as long as this notice is preserved.
1455
# _AM_MANGLE_OPTION(NAME)
1456
# -----------------------
1457
AC_DEFUN([_AM_MANGLE_OPTION],
1458
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1460
# _AM_SET_OPTION(NAME)
1461
# --------------------
1462
# Set option NAME. Presently that only means defining a flag for this option.
1463
AC_DEFUN([_AM_SET_OPTION],
1464
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1466
# _AM_SET_OPTIONS(OPTIONS)
1467
# ------------------------
1468
# OPTIONS is a space-separated list of Automake options.
1469
AC_DEFUN([_AM_SET_OPTIONS],
1470
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1472
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1473
# -------------------------------------------
1474
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1475
AC_DEFUN([_AM_IF_OPTION],
1476
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1478
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1480
# This file is free software; the Free Software Foundation
1481
# gives unlimited permission to copy and/or distribute it,
1482
# with or without modifications, as long as this notice is preserved.
1486
# AM_RUN_LOG(COMMAND)
1487
# -------------------
1488
# Run COMMAND, save the exit status in ac_status, and log it.
1489
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1490
AC_DEFUN([AM_RUN_LOG],
1491
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1492
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1494
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1495
(exit $ac_status); }])
1497
# Check to make sure that the build environment is sane. -*- Autoconf -*-
1499
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
1500
# Free Software Foundation, Inc.
1502
# This file is free software; the Free Software Foundation
1503
# gives unlimited permission to copy and/or distribute it,
1504
# with or without modifications, as long as this notice is preserved.
1510
AC_DEFUN([AM_SANITY_CHECK],
1511
[AC_MSG_CHECKING([whether build environment is sane])
1514
echo timestamp > conftest.file
1515
# Reject unsafe characters in $srcdir or the absolute working directory
1516
# name. Accept space and tab only in the latter.
1520
*[[\\\"\#\$\&\'\`$am_lf]]*)
1521
AC_MSG_ERROR([unsafe absolute working directory name]);;
1524
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1525
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1528
# Do `set' in a subshell so we don't clobber the current shell's
1529
# arguments. Must try -L first in case configure is actually a
1530
# symlink; some systems play weird games with the mod time of symlinks
1531
# (eg FreeBSD returns the mod time of the symlink's containing
1534
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1535
if test "$[*]" = "X"; then
1537
set X `ls -t "$srcdir/configure" conftest.file`
1540
if test "$[*]" != "X $srcdir/configure conftest.file" \
1541
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1543
# If neither matched, then we have a broken ls. This can happen
1544
# if, for instance, CONFIG_SHELL is bash and it inherits a
1545
# broken ls alias from the environment. This has actually
1546
# happened. Such a system could not be considered "sane".
1547
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1548
alias in your environment])
1551
test "$[2]" = conftest.file
1557
AC_MSG_ERROR([newly created file is older than distributed files!
1558
Check your system clock])
1560
AC_MSG_RESULT(yes)])
1562
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
1564
# This file is free software; the Free Software Foundation
1565
# gives unlimited permission to copy and/or distribute it,
1566
# with or without modifications, as long as this notice is preserved.
1570
# AM_SILENT_RULES([DEFAULT])
1571
# --------------------------
1572
# Enable less verbose build rules; with the default set to DEFAULT
1573
# (`yes' being less verbose, `no' or empty being verbose).
1574
AC_DEFUN([AM_SILENT_RULES],
1575
[AC_ARG_ENABLE([silent-rules],
1576
[ --enable-silent-rules less verbose build output (undo: `make V=1')
1577
--disable-silent-rules verbose build output (undo: `make V=0')])
1578
case $enable_silent_rules in
1579
yes) AM_DEFAULT_VERBOSITY=0;;
1580
no) AM_DEFAULT_VERBOSITY=1;;
1581
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1584
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
1585
dnl do not support nested variable expansions.
1586
dnl See automake bug#9928 and bug#10237.
1587
am_make=${MAKE-make}
1588
AC_CACHE_CHECK([whether $am_make supports nested variables],
1589
[am_cv_make_support_nested_variables],
1590
[if AS_ECHO([['TRUE=$(BAR$(V))
1596
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1597
am_cv_make_support_nested_variables=yes
1599
am_cv_make_support_nested_variables=no
1601
if test $am_cv_make_support_nested_variables = yes; then
1602
dnl Using `$V' instead of `$(V)' breaks IRIX make.
1604
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1606
AM_V=$AM_DEFAULT_VERBOSITY
1607
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1610
AM_SUBST_NOTMAKE([AM_V])dnl
1611
AC_SUBST([AM_DEFAULT_V])dnl
1612
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1613
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1615
AC_SUBST([AM_BACKSLASH])dnl
1616
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1619
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
1621
# This file is free software; the Free Software Foundation
1622
# gives unlimited permission to copy and/or distribute it,
1623
# with or without modifications, as long as this notice is preserved.
1627
# AM_PROG_INSTALL_STRIP
1628
# ---------------------
1629
# One issue with vendor `install' (even GNU) is that you can't
1630
# specify the program used to strip binaries. This is especially
1631
# annoying in cross-compiling environments, where the build's strip
1632
# is unlikely to handle the host's binaries.
1633
# Fortunately install-sh will honor a STRIPPROG variable, so we
1634
# always use install-sh in `make install-strip', and initialize
1635
# STRIPPROG with the value of the STRIP variable (set by the user).
1636
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1637
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1638
# Installed binaries are usually stripped using `strip' when the user
1639
# run `make install-strip'. However `strip' might not be the right
1640
# tool to use in cross-compilation environments, therefore Automake
1641
# will honor the `STRIP' environment variable to overrule this program.
1642
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1643
if test "$cross_compiling" != no; then
1644
AC_CHECK_TOOL([STRIP], [strip], :)
1646
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1647
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1649
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1651
# This file is free software; the Free Software Foundation
1652
# gives unlimited permission to copy and/or distribute it,
1653
# with or without modifications, as long as this notice is preserved.
1657
# _AM_SUBST_NOTMAKE(VARIABLE)
1658
# ---------------------------
1659
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1660
# This macro is traced by Automake.
1661
AC_DEFUN([_AM_SUBST_NOTMAKE])
1663
# AM_SUBST_NOTMAKE(VARIABLE)
1664
# --------------------------
1665
# Public sister of _AM_SUBST_NOTMAKE.
1666
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1668
# Check how to create a tarball. -*- Autoconf -*-
1670
# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
1672
# This file is free software; the Free Software Foundation
1673
# gives unlimited permission to copy and/or distribute it,
1674
# with or without modifications, as long as this notice is preserved.
1678
# _AM_PROG_TAR(FORMAT)
1679
# --------------------
1680
# Check how to create a tarball in format FORMAT.
1681
# FORMAT should be one of `v7', `ustar', or `pax'.
1683
# Substitute a variable $(am__tar) that is a command
1684
# writing to stdout a FORMAT-tarball containing the directory
1686
# tardir=directory && $(am__tar) > result.tar
1688
# Substitute a variable $(am__untar) that extract such
1689
# a tarball read from stdin.
1690
# $(am__untar) < result.tar
1691
AC_DEFUN([_AM_PROG_TAR],
1692
[# Always define AMTAR for backward compatibility. Yes, it's still used
1693
# in the wild :-( We should find a proper way to deprecate it ...
1694
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1696
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1697
[m4_case([$1], [ustar],, [pax],,
1698
[m4_fatal([Unknown tar format])])
1699
AC_MSG_CHECKING([how to create a $1 tar archive])
1700
# Loop over all known methods to create a tar archive until one works.
1701
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1702
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1703
# Do not fold the above two line into one, because Tru64 sh and
1704
# Solaris sh will not grok spaces in the rhs of `-'.
1705
for _am_tool in $_am_tools
1709
for _am_tar in tar gnutar gtar;
1711
AM_RUN_LOG([$_am_tar --version]) && break
1713
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1714
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1715
am__untar="$_am_tar -xf -"
1718
# Must skip GNU tar: if it does not support --format= it doesn't create
1719
# ustar tarball either.
1720
(tar --version) >/dev/null 2>&1 && continue
1721
am__tar='tar chf - "$$tardir"'
1722
am__tar_='tar chf - "$tardir"'
1723
am__untar='tar xf -'
1726
am__tar='pax -L -x $1 -w "$$tardir"'
1727
am__tar_='pax -L -x $1 -w "$tardir"'
1731
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1732
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1733
am__untar='cpio -i -H $1 -d'
1742
# If the value was cached, stop now. We just wanted to have am__tar
1743
# and am__untar set.
1744
test -n "${am_cv_prog_tar_$1}" && break
1746
# tar/untar a dummy directory, and stop if the command works
1749
echo GrepMe > conftest.dir/file
1750
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1752
if test -s conftest.tar; then
1753
AM_RUN_LOG([$am__untar <conftest.tar])
1754
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1759
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1760
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1762
AC_SUBST([am__untar])
455
1765
dnl -*- mode: autoconf -*-
9135
10651
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
9136
10652
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
9138
# nls.m4 serial 5 (gettext-0.18)
9139
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
9141
dnl This file is free software; the Free Software Foundation
9142
dnl gives unlimited permission to copy and/or distribute it,
9143
dnl with or without modifications, as long as this notice is preserved.
9145
dnl This file can can be used in projects which are not available under
9146
dnl the GNU General Public License or the GNU Library General Public
9147
dnl License but which still want to provide support for the GNU gettext
9149
dnl Please note that the actual code of the GNU gettext library is covered
9150
dnl by the GNU Library General Public License, and the rest of the GNU
9151
dnl gettext package package is covered by the GNU General Public License.
9152
dnl They are *not* in the public domain.
9155
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
9156
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
9162
AC_MSG_CHECKING([whether NLS is requested])
9163
dnl Default is enabled NLS
9164
AC_ARG_ENABLE([nls],
9165
[ --disable-nls do not use Native Language Support],
9166
USE_NLS=$enableval, USE_NLS=yes)
9167
AC_MSG_RESULT([$USE_NLS])
9171
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
9172
# serial 1 (pkg-config-0.24)
9174
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9176
# This program is free software; you can redistribute it and/or modify
9177
# it under the terms of the GNU General Public License as published by
9178
# the Free Software Foundation; either version 2 of the License, or
9179
# (at your option) any later version.
9181
# This program is distributed in the hope that it will be useful, but
9182
# WITHOUT ANY WARRANTY; without even the implied warranty of
9183
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9184
# General Public License for more details.
9186
# You should have received a copy of the GNU General Public License
9187
# along with this program; if not, write to the Free Software
9188
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9190
# As a special exception to the GNU General Public License, if you
9191
# distribute this file as part of a program that contains a
9192
# configuration script generated by Autoconf, you may include it under
9193
# the same distribution terms that you use for the rest of that program.
9195
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
9196
# ----------------------------------
9197
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9198
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9199
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9200
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9201
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9202
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9204
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9205
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9207
if test -n "$PKG_CONFIG"; then
9208
_pkg_min_version=m4_default([$1], [0.9.0])
9209
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9210
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9211
AC_MSG_RESULT([yes])
9217
])# PKG_PROG_PKG_CONFIG
9219
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9221
# Check to see whether a particular set of modules exists. Similar
9222
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9224
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9225
# only at the first occurence in configure.ac, so if the first place
9226
# it's called might be skipped (such as if it is within an "if", you
9227
# have to call PKG_CHECK_EXISTS manually
9228
# --------------------------------------------------------------
9229
AC_DEFUN([PKG_CHECK_EXISTS],
9230
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9231
if test -n "$PKG_CONFIG" && \
9232
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9233
m4_default([$2], [:])
9234
m4_ifvaln([$3], [else
9238
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9239
# ---------------------------------------------
9240
m4_define([_PKG_CONFIG],
9241
[if test -n "$$1"; then
9243
elif test -n "$PKG_CONFIG"; then
9244
PKG_CHECK_EXISTS([$3],
9245
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9252
# _PKG_SHORT_ERRORS_SUPPORTED
9253
# -----------------------------
9254
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9255
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9256
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9257
_pkg_short_errors_supported=yes
9259
_pkg_short_errors_supported=no
9261
])# _PKG_SHORT_ERRORS_SUPPORTED
9264
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9265
# [ACTION-IF-NOT-FOUND])
9268
# Note that if there is a possibility the first call to
9269
# PKG_CHECK_MODULES might not happen, you should be sure to include an
9270
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9273
# --------------------------------------------------------------
9274
AC_DEFUN([PKG_CHECK_MODULES],
9275
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9276
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9277
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9280
AC_MSG_CHECKING([for $1])
9282
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9283
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
9285
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9286
and $1[]_LIBS to avoid the need to call pkg-config.
9287
See the pkg-config man page for more details.])
9289
if test $pkg_failed = yes; then
9291
_PKG_SHORT_ERRORS_SUPPORTED
9292
if test $_pkg_short_errors_supported = yes; then
9293
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9295
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
9297
# Put the nasty error message in config.log where it belongs
9298
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9300
m4_default([$4], [AC_MSG_ERROR(
9301
[Package requirements ($2) were not met:
9305
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9306
installed software in a non-standard prefix.
9310
elif test $pkg_failed = untried; then
9312
m4_default([$4], [AC_MSG_FAILURE(
9313
[The pkg-config script could not be found or is too old. Make sure it
9314
is in your PATH or set the PKG_CONFIG environment variable to the full
9319
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
9322
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9323
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9324
AC_MSG_RESULT([yes])
9327
])# PKG_CHECK_MODULES
9329
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9331
# This file is free software; the Free Software Foundation
9332
# gives unlimited permission to copy and/or distribute it,
9333
# with or without modifications, as long as this notice is preserved.
9335
# AM_AUTOMAKE_VERSION(VERSION)
9336
# ----------------------------
9337
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9338
# generated from the m4 files accompanying Automake X.Y.
9339
# (This private macro should not be called outside this file.)
9340
AC_DEFUN([AM_AUTOMAKE_VERSION],
9341
[am__api_version='1.11'
9342
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9343
dnl require some minimum version. Point them to the right macro.
9344
m4_if([$1], [1.11.1], [],
9345
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9348
# _AM_AUTOCONF_VERSION(VERSION)
9349
# -----------------------------
9350
# aclocal traces this macro to find the Autoconf version.
9351
# This is a private macro too. Using m4_define simplifies
9352
# the logic in aclocal, which can simply ignore this definition.
9353
m4_define([_AM_AUTOCONF_VERSION], [])
9355
# AM_SET_CURRENT_AUTOMAKE_VERSION
9356
# -------------------------------
9357
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9358
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9359
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9360
[AM_AUTOMAKE_VERSION([1.11.1])dnl
9361
m4_ifndef([AC_AUTOCONF_VERSION],
9362
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9363
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9365
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
9367
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9369
# This file is free software; the Free Software Foundation
9370
# gives unlimited permission to copy and/or distribute it,
9371
# with or without modifications, as long as this notice is preserved.
9373
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9374
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9375
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9377
# Of course, Automake must honor this variable whenever it calls a
9378
# tool from the auxiliary directory. The problem is that $srcdir (and
9379
# therefore $ac_aux_dir as well) can be either absolute or relative,
9380
# depending on how configure is run. This is pretty annoying, since
9381
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9382
# source directory, any form will work fine, but in subdirectories a
9383
# relative path needs to be adjusted first.
9385
# $ac_aux_dir/missing
9386
# fails when called from a subdirectory if $ac_aux_dir is relative
9387
# $top_srcdir/$ac_aux_dir/missing
9388
# fails if $ac_aux_dir is absolute,
9389
# fails when called from a subdirectory in a VPATH build with
9390
# a relative $ac_aux_dir
9392
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9393
# are both prefixed by $srcdir. In an in-source build this is usually
9394
# harmless because $srcdir is `.', but things will broke when you
9395
# start a VPATH build or use an absolute $srcdir.
9397
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9398
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9399
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9400
# and then we would define $MISSING as
9401
# MISSING="\${SHELL} $am_aux_dir/missing"
9402
# This will work as long as MISSING is not called from configure, because
9403
# unfortunately $(top_srcdir) has no meaning in configure.
9404
# However there are other variables, like CC, which are often used in
9405
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9407
# Another solution, used here, is to always expand $ac_aux_dir to an
9408
# absolute PATH. The drawback is that using absolute paths prevent a
9409
# configured tree to be moved without reconfiguration.
9411
AC_DEFUN([AM_AUX_DIR_EXPAND],
9412
[dnl Rely on autoconf to set up CDPATH properly.
9413
AC_PREREQ([2.50])dnl
9414
# expand $ac_aux_dir to an absolute path
9415
am_aux_dir=`cd $ac_aux_dir && pwd`
9418
# AM_CONDITIONAL -*- Autoconf -*-
9420
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9421
# Free Software Foundation, Inc.
9423
# This file is free software; the Free Software Foundation
9424
# gives unlimited permission to copy and/or distribute it,
9425
# with or without modifications, as long as this notice is preserved.
9429
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9430
# -------------------------------------
9431
# Define a conditional.
9432
AC_DEFUN([AM_CONDITIONAL],
9434
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9435
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9436
AC_SUBST([$1_TRUE])dnl
9437
AC_SUBST([$1_FALSE])dnl
9438
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9439
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9440
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9448
AC_CONFIG_COMMANDS_PRE(
9449
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9450
AC_MSG_ERROR([[conditional "$1" was never defined.
9451
Usually this means the macro was only invoked conditionally.]])
9454
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9455
# Free Software Foundation, Inc.
9457
# This file is free software; the Free Software Foundation
9458
# gives unlimited permission to copy and/or distribute it,
9459
# with or without modifications, as long as this notice is preserved.
9463
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9464
# written in clear, in which case automake, when reading aclocal.m4,
9465
# will think it sees a *use*, and therefore will trigger all it's
9466
# C support machinery. Also note that it means that autoscan, seeing
9467
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9470
# _AM_DEPENDENCIES(NAME)
9471
# ----------------------
9472
# See how the compiler implements dependency checking.
9473
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9474
# We try a few techniques and use that to set a single cache variable.
9476
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9477
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9478
# dependency, and given that the user is not expected to run this macro,
9479
# just rely on AC_PROG_CC.
9480
AC_DEFUN([_AM_DEPENDENCIES],
9481
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9482
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9483
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9484
AC_REQUIRE([AM_DEP_TRACK])dnl
9486
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9487
[$1], CXX, [depcc="$CXX" am_compiler_list=],
9488
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9489
[$1], UPC, [depcc="$UPC" am_compiler_list=],
9490
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9491
[depcc="$$1" am_compiler_list=])
9493
AC_CACHE_CHECK([dependency style of $depcc],
9494
[am_cv_$1_dependencies_compiler_type],
9495
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9496
# We make a subdir and do the tests there. Otherwise we can end up
9497
# making bogus files that we don't know about and never remove. For
9498
# instance it was reported that on HP-UX the gcc test will end up
9499
# making a dummy file named `D' -- because `-MD' means `put the output
9502
# Copy depcomp to subdir because otherwise we won't find it if we're
9503
# using a relative directory.
9504
cp "$am_depcomp" conftest.dir
9506
# We will build objects and dependencies in a subdirectory because
9507
# it helps to detect inapplicable dependency modes. For instance
9508
# both Tru64's cc and ICC support -MD to output dependencies as a
9509
# side effect of compilation, but ICC will put the dependencies in
9510
# the current directory while Tru64 will put them in the object
9514
am_cv_$1_dependencies_compiler_type=none
9515
if test "$am_compiler_list" = ""; then
9516
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9520
[case " $depcc " in #(
9521
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9524
[case " $depcc " in #(
9525
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9528
for depmode in $am_compiler_list; do
9529
# Setup a source with many dependencies, because some compilers
9530
# like to wrap large dependency lists on column 80 (with \), and
9531
# we should not choose a depcomp mode which is confused by this.
9533
# We need to recreate these files for each test, as the compiler may
9534
# overwrite some of them when testing with obscure command lines.
9535
# This happens at least with the AIX C compiler.
9537
for i in 1 2 3 4 5 6; do
9538
echo '#include "conftst'$i'.h"' >> sub/conftest.c
9539
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9540
# Solaris 8's {/usr,}/bin/sh.
9541
touch sub/conftst$i.h
9543
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9545
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9546
# mode. It turns out that the SunPro C++ compiler does not properly
9547
# handle `-M -o', and we need to detect this. Also, some Intel
9548
# versions had trouble with output in subdirs
9549
am__obj=sub/conftest.${OBJEXT-o}
9550
am__minus_obj="-o $am__obj"
9553
# This depmode causes a compiler race in universal mode.
9554
test "$am__universal" = false || continue
9557
# after this tag, mechanisms are not by side-effect, so they'll
9558
# only be used when explicitly requested
9559
if test "x$enable_dependency_tracking" = xyes; then
9565
msvisualcpp | msvcmsys)
9566
# This compiler won't grok `-c -o', but also, the minuso test has
9567
# not run yet. These depmodes are late enough in the game, and
9568
# so weak that their functioning should not be impacted.
9569
am__obj=conftest.${OBJEXT-o}
9574
if depmode=$depmode \
9575
source=sub/conftest.c object=$am__obj \
9576
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9577
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9578
>/dev/null 2>conftest.err &&
9579
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9580
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9581
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9582
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9583
# icc doesn't choke on unknown options, it will just issue warnings
9584
# or remarks (even with -Werror). So we grep stderr for any message
9585
# that says an option was ignored or not supported.
9586
# When given -MP, icc 7.0 and 7.1 complain thusly:
9587
# icc: Command line warning: ignoring option '-M'; no argument required
9588
# The diagnosis changed in icc 8.0:
9589
# icc: Command line remark: option '-MP' not supported
9590
if (grep 'ignoring option' conftest.err ||
9591
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9592
am_cv_$1_dependencies_compiler_type=$depmode
9601
am_cv_$1_dependencies_compiler_type=none
9604
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9605
AM_CONDITIONAL([am__fastdep$1], [
9606
test "x$enable_dependency_tracking" != xno \
9607
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9613
# Choose a directory name for dependency files.
9614
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9615
AC_DEFUN([AM_SET_DEPDIR],
9616
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9617
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9623
AC_DEFUN([AM_DEP_TRACK],
9624
[AC_ARG_ENABLE(dependency-tracking,
9625
[ --disable-dependency-tracking speeds up one-time build
9626
--enable-dependency-tracking do not reject slow dependency extractors])
9627
if test "x$enable_dependency_tracking" != xno; then
9628
am_depcomp="$ac_aux_dir/depcomp"
9631
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9632
AC_SUBST([AMDEPBACKSLASH])dnl
9633
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9636
# Generate code to set up dependency tracking. -*- Autoconf -*-
9638
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9639
# Free Software Foundation, Inc.
9641
# This file is free software; the Free Software Foundation
9642
# gives unlimited permission to copy and/or distribute it,
9643
# with or without modifications, as long as this notice is preserved.
9647
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9648
# ------------------------------
9649
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9651
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9652
# are listed without --file. Let's play safe and only enable the eval
9653
# if we detect the quoting.
9654
case $CONFIG_FILES in
9655
*\'*) eval set x "$CONFIG_FILES" ;;
9656
*) set x $CONFIG_FILES ;;
9661
# Strip MF so we end up with the name of the file.
9662
mf=`echo "$mf" | sed -e 's/:.*$//'`
9663
# Check whether this is an Automake generated Makefile or not.
9664
# We used to match only the files named `Makefile.in', but
9665
# some people rename them; so instead we look at the file content.
9666
# Grep'ing the first line is not enough: some people post-process
9667
# each Makefile.in and add a new line on top of each file to say so.
9668
# Grep'ing the whole file is not good either: AIX grep has a line
9669
# limit of 2048, but all sed's we know have understand at least 4000.
9670
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9671
dirpart=`AS_DIRNAME("$mf")`
9675
# Extract the definition of DEPDIR, am__include, and am__quote
9676
# from the Makefile without running `make'.
9677
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9678
test -z "$DEPDIR" && continue
9679
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9680
test -z "am__include" && continue
9681
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9682
# When using ansi2knr, U may be empty or an underscore; expand it
9683
U=`sed -n 's/^U = //p' < "$mf"`
9684
# Find all dependency output files, they are included files with
9685
# $(DEPDIR) in their names. We invoke sed twice because it is the
9686
# simplest approach to changing $(DEPDIR) to its actual value in the
9688
for file in `sed -n "
9689
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9690
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9691
# Make sure the directory exists.
9692
test -f "$dirpart/$file" && continue
9693
fdir=`AS_DIRNAME(["$file"])`
9694
AS_MKDIR_P([$dirpart/$fdir])
9695
# echo "creating $dirpart/$file"
9696
echo '# dummy' > "$dirpart/$file"
9700
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9703
# AM_OUTPUT_DEPENDENCY_COMMANDS
9704
# -----------------------------
9705
# This macro should only be invoked once -- use via AC_REQUIRE.
9707
# This code is only required when automatic dependency tracking
9708
# is enabled. FIXME. This creates each `.P' file that we will
9709
# need in order to bootstrap the dependency handling code.
9710
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9711
[AC_CONFIG_COMMANDS([depfiles],
9712
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9713
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9716
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9717
# Free Software Foundation, Inc.
9719
# This file is free software; the Free Software Foundation
9720
# gives unlimited permission to copy and/or distribute it,
9721
# with or without modifications, as long as this notice is preserved.
9725
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
9726
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9728
# Do all the work for Automake. -*- Autoconf -*-
9730
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9731
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9733
# This file is free software; the Free Software Foundation
9734
# gives unlimited permission to copy and/or distribute it,
9735
# with or without modifications, as long as this notice is preserved.
9739
# This macro actually does too much. Some checks are only needed if
9740
# your package does certain things. But this isn't really a big deal.
9742
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9743
# AM_INIT_AUTOMAKE([OPTIONS])
9744
# -----------------------------------------------
9745
# The call with PACKAGE and VERSION arguments is the old style
9746
# call (pre autoconf-2.50), which is being phased out. PACKAGE
9747
# and VERSION should now be passed to AC_INIT and removed from
9748
# the call to AM_INIT_AUTOMAKE.
9749
# We support both call styles for the transition. After
9750
# the next Automake release, Autoconf can make the AC_INIT
9751
# arguments mandatory, and then we can depend on a new Autoconf
9752
# release and drop the old call support.
9753
AC_DEFUN([AM_INIT_AUTOMAKE],
9754
[AC_PREREQ([2.62])dnl
9755
dnl Autoconf wants to disallow AM_ names. We explicitly allow
9756
dnl the ones we care about.
9757
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9758
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9759
AC_REQUIRE([AC_PROG_INSTALL])dnl
9760
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9761
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9762
# is not polluted with repeated "-I."
9763
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9764
# test to see if srcdir already configured
9765
if test -f $srcdir/config.status; then
9766
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9770
# test whether we have cygpath
9771
if test -z "$CYGPATH_W"; then
9772
if (cygpath --version) >/dev/null 2>/dev/null; then
9773
CYGPATH_W='cygpath -w'
9778
AC_SUBST([CYGPATH_W])
9780
# Define the identity of the package.
9781
dnl Distinguish between old-style and new-style calls.
9783
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9784
AC_SUBST([PACKAGE], [$1])dnl
9785
AC_SUBST([VERSION], [$2])],
9786
[_AM_SET_OPTIONS([$1])dnl
9787
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9788
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9789
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9790
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9791
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9793
_AM_IF_OPTION([no-define],,
9794
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9795
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9797
# Some tools Automake needs.
9798
AC_REQUIRE([AM_SANITY_CHECK])dnl
9799
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9800
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9801
AM_MISSING_PROG(AUTOCONF, autoconf)
9802
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9803
AM_MISSING_PROG(AUTOHEADER, autoheader)
9804
AM_MISSING_PROG(MAKEINFO, makeinfo)
9805
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9806
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9807
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9808
# We need awk for the "check" target. The system "awk" is bad on
9810
AC_REQUIRE([AC_PROG_AWK])dnl
9811
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9812
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9813
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9814
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9815
[_AM_PROG_TAR([v7])])])
9816
_AM_IF_OPTION([no-dependencies],,
9817
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9818
[_AM_DEPENDENCIES(CC)],
9819
[define([AC_PROG_CC],
9820
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9821
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9822
[_AM_DEPENDENCIES(CXX)],
9823
[define([AC_PROG_CXX],
9824
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9825
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9826
[_AM_DEPENDENCIES(OBJC)],
9827
[define([AC_PROG_OBJC],
9828
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9830
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9831
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9832
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9833
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9834
AC_CONFIG_COMMANDS_PRE(dnl
9835
[m4_provide_if([_AM_COMPILER_EXEEXT],
9836
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9839
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9840
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9841
dnl mangled by Autoconf and run in a shell conditional statement.
9842
m4_define([_AC_COMPILER_EXEEXT],
9843
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9846
# When config.status generates a header, we must update the stamp-h file.
9847
# This file resides in the same directory as the config header
9848
# that is generated. The stamp files are numbered to have different names.
9850
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9851
# loop where config.status creates the headers, so we can generate
9852
# our stamp files there.
9853
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9854
[# Compute $1's index in $config_headers.
9857
for _am_header in $config_headers :; do
9859
$_am_arg | $_am_arg:* )
9862
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
9865
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9867
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9869
# This file is free software; the Free Software Foundation
9870
# gives unlimited permission to copy and/or distribute it,
9871
# with or without modifications, as long as this notice is preserved.
9873
# AM_PROG_INSTALL_SH
9874
# ------------------
9875
# Define $install_sh.
9876
AC_DEFUN([AM_PROG_INSTALL_SH],
9877
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9878
if test x"${install_sh}" != xset; then
9881
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9883
install_sh="\${SHELL} $am_aux_dir/install-sh"
9886
AC_SUBST(install_sh)])
9888
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9890
# This file is free software; the Free Software Foundation
9891
# gives unlimited permission to copy and/or distribute it,
9892
# with or without modifications, as long as this notice is preserved.
9896
# Check whether the underlying file-system supports filenames
9897
# with a leading dot. For instance MS-DOS doesn't.
9898
AC_DEFUN([AM_SET_LEADING_DOT],
9899
[rm -rf .tst 2>/dev/null
9900
mkdir .tst 2>/dev/null
9901
if test -d .tst; then
9906
rmdir .tst 2>/dev/null
9907
AC_SUBST([am__leading_dot])])
9909
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9912
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9913
# Free Software Foundation, Inc.
9915
# This file is free software; the Free Software Foundation
9916
# gives unlimited permission to copy and/or distribute it,
9917
# with or without modifications, as long as this notice is preserved.
9921
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9922
# ----------------------------------
9923
# Control maintainer-specific portions of Makefiles.
9924
# Default is to disable them, unless `enable' is passed literally.
9925
# For symmetry, `disable' may be passed as well. Anyway, the user
9926
# can override the default with the --enable/--disable switch.
9927
AC_DEFUN([AM_MAINTAINER_MODE],
9928
[m4_case(m4_default([$1], [disable]),
9929
[enable], [m4_define([am_maintainer_other], [disable])],
9930
[disable], [m4_define([am_maintainer_other], [enable])],
9931
[m4_define([am_maintainer_other], [enable])
9932
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9933
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9934
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9935
AC_ARG_ENABLE([maintainer-mode],
9936
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
9937
(and sometimes confusing) to the casual installer],
9938
[USE_MAINTAINER_MODE=$enableval],
9939
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9940
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9941
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9942
MAINT=$MAINTAINER_MODE_TRUE
9943
AC_SUBST([MAINT])dnl
9947
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9949
# Check to see how 'make' treats includes. -*- Autoconf -*-
9951
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9953
# This file is free software; the Free Software Foundation
9954
# gives unlimited permission to copy and/or distribute it,
9955
# with or without modifications, as long as this notice is preserved.
9961
# Check to see how make treats includes.
9962
AC_DEFUN([AM_MAKE_INCLUDE],
9963
[am_make=${MAKE-make}
9964
cat > confinc << 'END'
9966
@echo this is the am__doit target
9969
# If we don't find an include directive, just comment out the code.
9970
AC_MSG_CHECKING([for style of include used by $am_make])
9974
# First try GNU make style include.
9975
echo "include confinc" > confmf
9976
# Ignore all kinds of additional output from `make'.
9977
case `$am_make -s -f confmf 2> /dev/null` in #(
9978
*the\ am__doit\ target*)
9984
# Now try BSD make style include.
9985
if test "$am__include" = "#"; then
9986
echo '.include "confinc"' > confmf
9987
case `$am_make -s -f confmf 2> /dev/null` in #(
9988
*the\ am__doit\ target*)
9989
am__include=.include
9995
AC_SUBST([am__include])
9996
AC_SUBST([am__quote])
9997
AC_MSG_RESULT([$_am_result])
9998
rm -f confinc confmf
10001
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
10002
# Free Software Foundation, Inc.
10004
# This file is free software; the Free Software Foundation
10005
# gives unlimited permission to copy and/or distribute it,
10006
# with or without modifications, as long as this notice is preserved.
10012
# Like AC_PROG_CC_C_O, but changed for automake.
10013
AC_DEFUN([AM_PROG_CC_C_O],
10014
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
10015
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10016
AC_REQUIRE_AUX_FILE([compile])dnl
10017
# FIXME: we rely on the cache variable name because
10018
# there is no other way.
10020
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
10021
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
10022
if test "$am_t" != yes; then
10023
# Losing compiler, so override with the script.
10024
# FIXME: It is wrong to rewrite CC.
10025
# But if we don't then we get into trouble of one sort or another.
10026
# A longer-term fix would be to have automake use am__CC in this case,
10027
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10028
CC="$am_aux_dir/compile $CC"
10030
dnl Make sure AC_PROG_CC is never called again, or it will override our
10032
m4_define([AC_PROG_CC],
10033
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
10036
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10038
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
10039
# Free Software Foundation, Inc.
10041
# This file is free software; the Free Software Foundation
10042
# gives unlimited permission to copy and/or distribute it,
10043
# with or without modifications, as long as this notice is preserved.
10047
# AM_MISSING_PROG(NAME, PROGRAM)
10048
# ------------------------------
10049
AC_DEFUN([AM_MISSING_PROG],
10050
[AC_REQUIRE([AM_MISSING_HAS_RUN])
10051
$1=${$1-"${am_missing_run}$2"}
10055
# AM_MISSING_HAS_RUN
10056
# ------------------
10057
# Define MISSING if not defined so far and test if it supports --run.
10058
# If it does, set am_missing_run to use it, otherwise, to nothing.
10059
AC_DEFUN([AM_MISSING_HAS_RUN],
10060
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10061
AC_REQUIRE_AUX_FILE([missing])dnl
10062
if test x"${MISSING+set}" != xset; then
10063
case $am_aux_dir in
10065
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10067
MISSING="\${SHELL} $am_aux_dir/missing" ;;
10070
# Use eval to expand $SHELL
10071
if eval "$MISSING --run true"; then
10072
am_missing_run="$MISSING --run "
10075
AC_MSG_WARN([`missing' script is too old or missing])
10079
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10081
# This file is free software; the Free Software Foundation
10082
# gives unlimited permission to copy and/or distribute it,
10083
# with or without modifications, as long as this notice is preserved.
10087
# Check for `mkdir -p'.
10088
AC_DEFUN([AM_PROG_MKDIR_P],
10089
[AC_PREREQ([2.60])dnl
10090
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
10091
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
10092
dnl while keeping a definition of mkdir_p for backward compatibility.
10093
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
10094
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
10095
dnl Makefile.ins that do not define MKDIR_P, so we do our own
10096
dnl adjustment using top_builddir (which is defined more often than
10098
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
10100
[[\\/$]]* | ?:[[\\/]]*) ;;
10101
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10105
# Helper functions for option handling. -*- Autoconf -*-
10107
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
10109
# This file is free software; the Free Software Foundation
10110
# gives unlimited permission to copy and/or distribute it,
10111
# with or without modifications, as long as this notice is preserved.
10115
# _AM_MANGLE_OPTION(NAME)
10116
# -----------------------
10117
AC_DEFUN([_AM_MANGLE_OPTION],
10118
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
10120
# _AM_SET_OPTION(NAME)
10121
# ------------------------------
10122
# Set option NAME. Presently that only means defining a flag for this option.
10123
AC_DEFUN([_AM_SET_OPTION],
10124
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
10126
# _AM_SET_OPTIONS(OPTIONS)
10127
# ----------------------------------
10128
# OPTIONS is a space-separated list of Automake options.
10129
AC_DEFUN([_AM_SET_OPTIONS],
10130
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
10132
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
10133
# -------------------------------------------
10134
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
10135
AC_DEFUN([_AM_IF_OPTION],
10136
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10138
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
10140
# This file is free software; the Free Software Foundation
10141
# gives unlimited permission to copy and/or distribute it,
10142
# with or without modifications, as long as this notice is preserved.
10144
# AM_RUN_LOG(COMMAND)
10145
# -------------------
10146
# Run COMMAND, save the exit status in ac_status, and log it.
10147
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
10148
AC_DEFUN([AM_RUN_LOG],
10149
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
10150
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
10152
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
10153
(exit $ac_status); }])
10155
# Check to make sure that the build environment is sane. -*- Autoconf -*-
10157
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
10158
# Free Software Foundation, Inc.
10160
# This file is free software; the Free Software Foundation
10161
# gives unlimited permission to copy and/or distribute it,
10162
# with or without modifications, as long as this notice is preserved.
10168
AC_DEFUN([AM_SANITY_CHECK],
10169
[AC_MSG_CHECKING([whether build environment is sane])
10172
echo timestamp > conftest.file
10173
# Reject unsafe characters in $srcdir or the absolute working directory
10174
# name. Accept space and tab only in the latter.
10178
*[[\\\"\#\$\&\'\`$am_lf]]*)
10179
AC_MSG_ERROR([unsafe absolute working directory name]);;
10182
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
10183
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
10186
# Do `set' in a subshell so we don't clobber the current shell's
10187
# arguments. Must try -L first in case configure is actually a
10188
# symlink; some systems play weird games with the mod time of symlinks
10189
# (eg FreeBSD returns the mod time of the symlink's containing
10192
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10193
if test "$[*]" = "X"; then
10195
set X `ls -t "$srcdir/configure" conftest.file`
10197
rm -f conftest.file
10198
if test "$[*]" != "X $srcdir/configure conftest.file" \
10199
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
10201
# If neither matched, then we have a broken ls. This can happen
10202
# if, for instance, CONFIG_SHELL is bash and it inherits a
10203
# broken ls alias from the environment. This has actually
10204
# happened. Such a system could not be considered "sane".
10205
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
10206
alias in your environment])
10209
test "$[2]" = conftest.file
10215
AC_MSG_ERROR([newly created file is older than distributed files!
10216
Check your system clock])
10218
AC_MSG_RESULT(yes)])
10220
# Copyright (C) 2009 Free Software Foundation, Inc.
10222
# This file is free software; the Free Software Foundation
10223
# gives unlimited permission to copy and/or distribute it,
10224
# with or without modifications, as long as this notice is preserved.
10228
# AM_SILENT_RULES([DEFAULT])
10229
# --------------------------
10230
# Enable less verbose build rules; with the default set to DEFAULT
10231
# (`yes' being less verbose, `no' or empty being verbose).
10232
AC_DEFUN([AM_SILENT_RULES],
10233
[AC_ARG_ENABLE([silent-rules],
10234
[ --enable-silent-rules less verbose build output (undo: `make V=1')
10235
--disable-silent-rules verbose build output (undo: `make V=0')])
10236
case $enable_silent_rules in
10237
yes) AM_DEFAULT_VERBOSITY=0;;
10238
no) AM_DEFAULT_VERBOSITY=1;;
10239
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10241
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10243
AC_SUBST([AM_BACKSLASH])dnl
10244
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10247
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
10249
# This file is free software; the Free Software Foundation
10250
# gives unlimited permission to copy and/or distribute it,
10251
# with or without modifications, as long as this notice is preserved.
10253
# AM_PROG_INSTALL_STRIP
10254
# ---------------------
10255
# One issue with vendor `install' (even GNU) is that you can't
10256
# specify the program used to strip binaries. This is especially
10257
# annoying in cross-compiling environments, where the build's strip
10258
# is unlikely to handle the host's binaries.
10259
# Fortunately install-sh will honor a STRIPPROG variable, so we
10260
# always use install-sh in `make install-strip', and initialize
10261
# STRIPPROG with the value of the STRIP variable (set by the user).
10262
AC_DEFUN([AM_PROG_INSTALL_STRIP],
10263
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10264
# Installed binaries are usually stripped using `strip' when the user
10265
# run `make install-strip'. However `strip' might not be the right
10266
# tool to use in cross-compilation environments, therefore Automake
10267
# will honor the `STRIP' environment variable to overrule this program.
10268
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10269
if test "$cross_compiling" != no; then
10270
AC_CHECK_TOOL([STRIP], [strip], :)
10272
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10273
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10275
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
10277
# This file is free software; the Free Software Foundation
10278
# gives unlimited permission to copy and/or distribute it,
10279
# with or without modifications, as long as this notice is preserved.
10283
# _AM_SUBST_NOTMAKE(VARIABLE)
10284
# ---------------------------
10285
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10286
# This macro is traced by Automake.
10287
AC_DEFUN([_AM_SUBST_NOTMAKE])
10289
# AM_SUBST_NOTMAKE(VARIABLE)
10290
# ---------------------------
10291
# Public sister of _AM_SUBST_NOTMAKE.
10292
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10294
# Check how to create a tarball. -*- Autoconf -*-
10296
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
10298
# This file is free software; the Free Software Foundation
10299
# gives unlimited permission to copy and/or distribute it,
10300
# with or without modifications, as long as this notice is preserved.
10304
# _AM_PROG_TAR(FORMAT)
10305
# --------------------
10306
# Check how to create a tarball in format FORMAT.
10307
# FORMAT should be one of `v7', `ustar', or `pax'.
10309
# Substitute a variable $(am__tar) that is a command
10310
# writing to stdout a FORMAT-tarball containing the directory
10312
# tardir=directory && $(am__tar) > result.tar
10314
# Substitute a variable $(am__untar) that extract such
10315
# a tarball read from stdin.
10316
# $(am__untar) < result.tar
10317
AC_DEFUN([_AM_PROG_TAR],
10318
[# Always define AMTAR for backward compatibility.
10319
AM_MISSING_PROG([AMTAR], [tar])
10321
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10322
[m4_case([$1], [ustar],, [pax],,
10323
[m4_fatal([Unknown tar format])])
10324
AC_MSG_CHECKING([how to create a $1 tar archive])
10325
# Loop over all known methods to create a tar archive until one works.
10326
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10327
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10328
# Do not fold the above two line into one, because Tru64 sh and
10329
# Solaris sh will not grok spaces in the rhs of `-'.
10330
for _am_tool in $_am_tools
10334
for _am_tar in tar gnutar gtar;
10336
AM_RUN_LOG([$_am_tar --version]) && break
10338
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10339
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10340
am__untar="$_am_tar -xf -"
10343
# Must skip GNU tar: if it does not support --format= it doesn't create
10344
# ustar tarball either.
10345
(tar --version) >/dev/null 2>&1 && continue
10346
am__tar='tar chf - "$$tardir"'
10347
am__tar_='tar chf - "$tardir"'
10348
am__untar='tar xf -'
10351
am__tar='pax -L -x $1 -w "$$tardir"'
10352
am__tar_='pax -L -x $1 -w "$tardir"'
10356
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10357
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10358
am__untar='cpio -i -H $1 -d'
10367
# If the value was cached, stop now. We just wanted to have am__tar
10368
# and am__untar set.
10369
test -n "${am_cv_prog_tar_$1}" && break
10371
# tar/untar a dummy directory, and stop if the command works
10372
rm -rf conftest.dir
10374
echo GrepMe > conftest.dir/file
10375
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10376
rm -rf conftest.dir
10377
if test -s conftest.tar; then
10378
AM_RUN_LOG([$am__untar <conftest.tar])
10379
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10382
rm -rf conftest.dir
10384
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10385
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10386
AC_SUBST([am__tar])
10387
AC_SUBST([am__untar])
10392
10656
dnl Copyright (c) 2002-2006