15
14
m4_ifndef([AC_AUTOCONF_VERSION],
16
15
[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.
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17
[m4_warning([this file was generated for autoconf 2.69.
19
18
You have another version of autoconf. It may work, but is not guaranteed to.
20
19
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'.])])
23
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
24
# serial 1 (pkg-config-0.24)
26
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
28
# This program is free software; you can redistribute it and/or modify
29
# it under the terms of the GNU General Public License as published by
30
# the Free Software Foundation; either version 2 of the License, or
31
# (at your option) any later version.
33
# This program is distributed in the hope that it will be useful, but
34
# WITHOUT ANY WARRANTY; without even the implied warranty of
35
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36
# General Public License for more details.
38
# You should have received a copy of the GNU General Public License
39
# along with this program; if not, write to the Free Software
40
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
42
# As a special exception to the GNU General Public License, if you
43
# distribute this file as part of a program that contains a
44
# configuration script generated by Autoconf, you may include it under
45
# the same distribution terms that you use for the rest of that program.
47
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
48
# ----------------------------------
49
AC_DEFUN([PKG_PROG_PKG_CONFIG],
50
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
51
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
52
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
53
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
54
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
55
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
57
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
58
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
60
if test -n "$PKG_CONFIG"; then
61
_pkg_min_version=m4_default([$1], [0.9.0])
62
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
63
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
70
])# PKG_PROG_PKG_CONFIG
72
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
74
# Check to see whether a particular set of modules exists. Similar
75
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
77
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
78
# only at the first occurence in configure.ac, so if the first place
79
# it's called might be skipped (such as if it is within an "if", you
80
# have to call PKG_CHECK_EXISTS manually
81
# --------------------------------------------------------------
82
AC_DEFUN([PKG_CHECK_EXISTS],
83
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
84
if test -n "$PKG_CONFIG" && \
85
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
91
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
92
# ---------------------------------------------
93
m4_define([_PKG_CONFIG],
94
[if test -n "$$1"; then
96
elif test -n "$PKG_CONFIG"; then
97
PKG_CHECK_EXISTS([$3],
98
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
99
test "x$?" != "x0" && pkg_failed=yes ],
106
# _PKG_SHORT_ERRORS_SUPPORTED
107
# -----------------------------
108
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
109
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
110
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
111
_pkg_short_errors_supported=yes
113
_pkg_short_errors_supported=no
115
])# _PKG_SHORT_ERRORS_SUPPORTED
118
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
119
# [ACTION-IF-NOT-FOUND])
122
# Note that if there is a possibility the first call to
123
# PKG_CHECK_MODULES might not happen, you should be sure to include an
124
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
127
# --------------------------------------------------------------
128
AC_DEFUN([PKG_CHECK_MODULES],
129
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
130
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
131
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
134
AC_MSG_CHECKING([for $1])
136
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
137
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
139
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
140
and $1[]_LIBS to avoid the need to call pkg-config.
141
See the pkg-config man page for more details.])
143
if test $pkg_failed = yes; then
145
_PKG_SHORT_ERRORS_SUPPORTED
146
if test $_pkg_short_errors_supported = yes; then
147
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
149
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
151
# Put the nasty error message in config.log where it belongs
152
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
154
m4_default([$4], [AC_MSG_ERROR(
155
[Package requirements ($2) were not met:
159
Consider adjusting the PKG_CONFIG_PATH environment variable if you
160
installed software in a non-standard prefix.
164
elif test $pkg_failed = untried; then
166
m4_default([$4], [AC_MSG_FAILURE(
167
[The pkg-config script could not be found or is too old. Make sure it
168
is in your PATH or set the PKG_CONFIG environment variable to the full
173
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
176
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
177
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
181
])# PKG_CHECK_MODULES
183
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
20
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
186
24
# This file is free software; the Free Software Foundation
187
25
# gives unlimited permission to copy and/or distribute it,
188
26
# with or without modifications, as long as this notice is preserved.
192
30
# AM_AUTOMAKE_VERSION(VERSION)
193
31
# ----------------------------
360
198
# AM_CONDITIONAL -*- Autoconf -*-
362
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
363
# Free Software Foundation, Inc.
200
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
365
202
# This file is free software; the Free Software Foundation
366
203
# gives unlimited permission to copy and/or distribute it,
367
204
# with or without modifications, as long as this notice is preserved.
371
208
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
372
209
# -------------------------------------
373
210
# Define a conditional.
374
211
AC_DEFUN([AM_CONDITIONAL],
376
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
377
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
212
[AC_PREREQ([2.52])dnl
213
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
214
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
378
215
AC_SUBST([$1_TRUE])dnl
379
216
AC_SUBST([$1_FALSE])dnl
380
217
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
425
261
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
426
262
AC_REQUIRE([AM_DEP_TRACK])dnl
428
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
429
[$1], CXX, [depcc="$CXX" am_compiler_list=],
430
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
431
[$1], UPC, [depcc="$UPC" am_compiler_list=],
432
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
433
[depcc="$$1" am_compiler_list=])
264
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
265
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
266
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
267
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
268
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
269
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
270
[depcc="$$1" am_compiler_list=])
435
272
AC_CACHE_CHECK([dependency style of $depcc],
436
273
[am_cv_$1_dependencies_compiler_type],
659
497
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
662
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
663
# Free Software Foundation, Inc.
665
# This file is free software; the Free Software Foundation
666
# gives unlimited permission to copy and/or distribute it,
667
# with or without modifications, as long as this notice is preserved.
671
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
672
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
674
500
# Do all the work for Automake. -*- Autoconf -*-
676
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
677
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
502
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
679
504
# This file is free software; the Free Software Foundation
680
505
# gives unlimited permission to copy and/or distribute it,
681
506
# with or without modifications, as long as this notice is preserved.
685
510
# This macro actually does too much. Some checks are only needed if
686
511
# your package does certain things. But this isn't really a big deal.
726
551
# Define the identity of the package.
727
552
dnl Distinguish between old-style and new-style calls.
729
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
554
[AC_DIAGNOSE([obsolete],
555
[$0: two- and three-arguments forms are deprecated. For more info, see:
556
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
557
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
730
558
AC_SUBST([PACKAGE], [$1])dnl
731
559
AC_SUBST([VERSION], [$2])],
732
560
[_AM_SET_OPTIONS([$1])dnl
733
561
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
734
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
563
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
735
565
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
736
566
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
737
567
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
739
569
_AM_IF_OPTION([no-define],,
740
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
741
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
570
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
571
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
743
573
# Some tools Automake needs.
744
574
AC_REQUIRE([AM_SANITY_CHECK])dnl
745
575
AC_REQUIRE([AC_ARG_PROGRAM])dnl
746
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
747
AM_MISSING_PROG(AUTOCONF, autoconf)
748
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
749
AM_MISSING_PROG(AUTOHEADER, autoheader)
750
AM_MISSING_PROG(MAKEINFO, makeinfo)
576
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
577
AM_MISSING_PROG([AUTOCONF], [autoconf])
578
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
579
AM_MISSING_PROG([AUTOHEADER], [autoheader])
580
AM_MISSING_PROG([MAKEINFO], [makeinfo])
751
581
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
752
582
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
753
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
583
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
584
# For better backward compatibility. To be removed once Automake 1.9.x
585
# dies out for good. For more background, see:
586
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
587
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
588
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
754
589
# We need awk for the "check" target. The system "awk" is bad on
755
590
# some platforms.
756
591
AC_REQUIRE([AC_PROG_AWK])dnl
761
596
[_AM_PROG_TAR([v7])])])
762
597
_AM_IF_OPTION([no-dependencies],,
763
598
[AC_PROVIDE_IFELSE([AC_PROG_CC],
764
[_AM_DEPENDENCIES(CC)],
765
[define([AC_PROG_CC],
766
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
599
[_AM_DEPENDENCIES([CC])],
600
[m4_define([AC_PROG_CC],
601
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
767
602
AC_PROVIDE_IFELSE([AC_PROG_CXX],
768
[_AM_DEPENDENCIES(CXX)],
769
[define([AC_PROG_CXX],
770
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
603
[_AM_DEPENDENCIES([CXX])],
604
[m4_define([AC_PROG_CXX],
605
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
771
606
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
772
[_AM_DEPENDENCIES(OBJC)],
773
[define([AC_PROG_OBJC],
774
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
607
[_AM_DEPENDENCIES([OBJC])],
608
[m4_define([AC_PROG_OBJC],
609
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
610
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
611
dnl but we still cater to Autoconf 2.62.
612
m4_ifdef([AC_PROG_OBJCXX],
613
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
614
[_AM_DEPENDENCIES([OBJCXX])],
615
[m4_define([AC_PROG_OBJCXX],
616
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
776
618
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
777
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
778
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
619
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
620
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
779
621
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
780
622
AC_CONFIG_COMMANDS_PRE(dnl
781
623
[m4_provide_if([_AM_COMPILER_EXEEXT],
782
624
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
785
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
627
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
786
628
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
787
629
dnl mangled by Autoconf and run in a shell conditional statement.
788
630
m4_define([_AC_COMPILER_EXEEXT],
946
786
am_missing_run="$MISSING --run "
949
AC_MSG_WARN([`missing' script is too old or missing])
789
AC_MSG_WARN(['missing' script is too old or missing])
953
# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
956
# This file is free software; the Free Software Foundation
957
# gives unlimited permission to copy and/or distribute it,
958
# with or without modifications, as long as this notice is preserved.
964
# Check for `mkdir -p'.
965
AC_DEFUN([AM_PROG_MKDIR_P],
966
[AC_PREREQ([2.60])dnl
967
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
968
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
969
dnl while keeping a definition of mkdir_p for backward compatibility.
970
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
971
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
972
dnl Makefile.ins that do not define MKDIR_P, so we do our own
973
dnl adjustment using top_builddir (which is defined more often than
975
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
977
[[\\/$]]* | ?:[[\\/]]*) ;;
978
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
982
793
# Helper functions for option handling. -*- Autoconf -*-
984
# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
795
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
987
797
# This file is free software; the Free Software Foundation
988
798
# gives unlimited permission to copy and/or distribute it,
989
799
# with or without modifications, as long as this notice is preserved.
993
803
# _AM_MANGLE_OPTION(NAME)
994
804
# -----------------------
1043
849
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1044
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
850
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1047
# Do `set' in a subshell so we don't clobber the current shell's
853
# Do 'set' in a subshell so we don't clobber the current shell's
1048
854
# arguments. Must try -L first in case configure is actually a
1049
855
# symlink; some systems play weird games with the mod time of symlinks
1050
856
# (eg FreeBSD returns the mod time of the symlink's containing
1053
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1054
if test "$[*]" = "X"; then
1056
set X `ls -t "$srcdir/configure" conftest.file`
1059
if test "$[*]" != "X $srcdir/configure conftest.file" \
1060
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1062
# If neither matched, then we have a broken ls. This can happen
1063
# if, for instance, CONFIG_SHELL is bash and it inherits a
1064
# broken ls alias from the environment. This has actually
1065
# happened. Such a system could not be considered "sane".
1066
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1067
alias in your environment])
860
for am_try in 1 2; do
861
echo "timestamp, slept: $am_has_slept" > conftest.file
862
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
863
if test "$[*]" = "X"; then
865
set X `ls -t "$srcdir/configure" conftest.file`
867
if test "$[*]" != "X $srcdir/configure conftest.file" \
868
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
870
# If neither matched, then we have a broken ls. This can happen
871
# if, for instance, CONFIG_SHELL is bash and it inherits a
872
# broken ls alias from the environment. This has actually
873
# happened. Such a system could not be considered "sane".
874
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
875
alias in your environment])
877
if test "$[2]" = conftest.file || test $am_try -eq 2; then
1070
884
test "$[2]" = conftest.file
1076
890
AC_MSG_ERROR([newly created file is older than distributed files!
1077
891
Check your system clock])
1079
AC_MSG_RESULT(yes)])
894
# If we didn't sleep, we still need to ensure time stamps of config.status and
895
# generated files are strictly newer.
897
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
901
AC_CONFIG_COMMANDS_PRE(
902
[AC_MSG_CHECKING([that generated files are newer than configure])
903
if test -n "$am_sleep_pid"; then
904
# Hide warnings about reused PIDs.
905
wait $am_sleep_pid 2>/dev/null
907
AC_MSG_RESULT([done])])
1081
# Copyright (C) 2009, 2011 Free Software Foundation, Inc.
911
# Copyright (C) 2009-2012 Free Software Foundation, Inc.
1083
913
# This file is free software; the Free Software Foundation
1084
914
# gives unlimited permission to copy and/or distribute it,
1085
915
# with or without modifications, as long as this notice is preserved.
1089
919
# AM_SILENT_RULES([DEFAULT])
1090
920
# --------------------------
1091
921
# Enable less verbose build rules; with the default set to DEFAULT
1092
# (`yes' being less verbose, `no' or empty being verbose).
922
# ("yes" being less verbose, "no" or empty being verbose).
1093
923
AC_DEFUN([AM_SILENT_RULES],
1094
[AC_ARG_ENABLE([silent-rules],
1095
[ --enable-silent-rules less verbose build output (undo: `make V=1')
1096
--disable-silent-rules verbose build output (undo: `make V=0')])
1097
case $enable_silent_rules in
1098
yes) AM_DEFAULT_VERBOSITY=0;;
1099
no) AM_DEFAULT_VERBOSITY=1;;
1100
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
924
[AC_ARG_ENABLE([silent-rules], [dnl
926
[--enable-silent-rules],
927
[less verbose build output (undo: "make V=1")])
929
[--disable-silent-rules],
930
[verbose build output (undo: "make V=0")])dnl
932
case $enable_silent_rules in @%:@ (((
933
yes) AM_DEFAULT_VERBOSITY=0;;
934
no) AM_DEFAULT_VERBOSITY=1;;
935
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1103
dnl A few `make' implementations (e.g., NonStop OS and NextStep)
938
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1104
939
dnl do not support nested variable expansions.
1105
940
dnl See automake bug#9928 and bug#10237.
1106
941
am_make=${MAKE-make}
1135
970
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1138
# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
973
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
1140
975
# This file is free software; the Free Software Foundation
1141
976
# gives unlimited permission to copy and/or distribute it,
1142
977
# with or without modifications, as long as this notice is preserved.
1146
981
# AM_PROG_INSTALL_STRIP
1147
982
# ---------------------
1148
# One issue with vendor `install' (even GNU) is that you can't
983
# One issue with vendor 'install' (even GNU) is that you can't
1149
984
# specify the program used to strip binaries. This is especially
1150
985
# annoying in cross-compiling environments, where the build's strip
1151
986
# is unlikely to handle the host's binaries.
1152
987
# Fortunately install-sh will honor a STRIPPROG variable, so we
1153
# always use install-sh in `make install-strip', and initialize
988
# always use install-sh in "make install-strip", and initialize
1154
989
# STRIPPROG with the value of the STRIP variable (set by the user).
1155
990
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1156
991
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1157
# Installed binaries are usually stripped using `strip' when the user
1158
# run `make install-strip'. However `strip' might not be the right
992
# Installed binaries are usually stripped using 'strip' when the user
993
# run "make install-strip". However 'strip' might not be the right
1159
994
# tool to use in cross-compilation environments, therefore Automake
1160
# will honor the `STRIP' environment variable to overrule this program.
1161
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
995
# will honor the 'STRIP' environment variable to overrule this program.
996
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1162
997
if test "$cross_compiling" != no; then
1163
998
AC_CHECK_TOOL([STRIP], [strip], :)
1165
1000
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1166
1001
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1168
# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
1003
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
1170
1005
# This file is free software; the Free Software Foundation
1171
1006
# gives unlimited permission to copy and/or distribute it,