219
220
m4_popdef([pkg_description])
220
221
]) dnl PKG_NOARCH_INSTALLDIR
222
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
223
# Copyright (C) 2002-2013 Free Software Foundation, Inc.
224
225
# This file is free software; the Free Software Foundation
225
226
# gives unlimited permission to copy and/or distribute it,
226
227
# with or without modifications, as long as this notice is preserved.
230
229
# AM_AUTOMAKE_VERSION(VERSION)
231
230
# ----------------------------
232
231
# Automake X.Y traces this macro to ensure aclocal.m4 has been
233
232
# generated from the m4 files accompanying Automake X.Y.
234
233
# (This private macro should not be called outside this file.)
235
234
AC_DEFUN([AM_AUTOMAKE_VERSION],
236
[am__api_version='1.12'
235
[am__api_version='1.13'
237
236
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
238
237
dnl require some minimum version. Point them to the right macro.
239
m4_if([$1], [1.12.2], [],
238
m4_if([$1], [1.13.4], [],
240
239
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
252
251
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
253
252
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
254
253
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
255
[AM_AUTOMAKE_VERSION([1.12.2])dnl
254
[AM_AUTOMAKE_VERSION([1.13.4])dnl
256
255
m4_ifndef([AC_AUTOCONF_VERSION],
257
256
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
258
257
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
260
259
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
262
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
261
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
264
263
# This file is free software; the Free Software Foundation
265
264
# gives unlimited permission to copy and/or distribute it,
266
265
# with or without modifications, as long as this notice is preserved.
270
267
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
271
268
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
272
269
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
724
714
[_AM_DEPENDENCIES([OBJC])],
725
715
[m4_define([AC_PROG_OBJC],
726
716
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
727
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
728
dnl but we still cater to Autoconf 2.62.
729
m4_ifdef([AC_PROG_OBJCXX],
730
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
717
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
731
718
[_AM_DEPENDENCIES([OBJCXX])],
732
719
[m4_define([AC_PROG_OBJCXX],
733
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
720
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
735
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
736
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
737
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
738
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
722
AC_REQUIRE([AM_SILENT_RULES])dnl
723
dnl The testsuite driver may need to know about EXEEXT, so add the
724
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
725
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
739
726
AC_CONFIG_COMMANDS_PRE(dnl
740
727
[m4_provide_if([_AM_COMPILER_EXEEXT],
741
728
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
1059
1031
rm -f conftest.file
1062
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
1064
# This file is free software; the Free Software Foundation
1065
# gives unlimited permission to copy and/or distribute it,
1066
# with or without modifications, as long as this notice is preserved.
1034
# Copyright (C) 2009-2013 Free Software Foundation, Inc.
1036
# This file is free software; the Free Software Foundation
1037
# gives unlimited permission to copy and/or distribute it,
1038
# with or without modifications, as long as this notice is preserved.
1040
# AM_SILENT_RULES([DEFAULT])
1041
# --------------------------
1042
# Enable less verbose build rules; with the default set to DEFAULT
1043
# ("yes" being less verbose, "no" or empty being verbose).
1044
AC_DEFUN([AM_SILENT_RULES],
1045
[AC_ARG_ENABLE([silent-rules], [dnl
1047
[--enable-silent-rules],
1048
[less verbose build output (undo: "make V=1")])
1050
[--disable-silent-rules],
1051
[verbose build output (undo: "make V=0")])dnl
1053
case $enable_silent_rules in @%:@ (((
1054
yes) AM_DEFAULT_VERBOSITY=0;;
1055
no) AM_DEFAULT_VERBOSITY=1;;
1056
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1059
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1060
dnl do not support nested variable expansions.
1061
dnl See automake bug#9928 and bug#10237.
1062
am_make=${MAKE-make}
1063
AC_CACHE_CHECK([whether $am_make supports nested variables],
1064
[am_cv_make_support_nested_variables],
1065
[if AS_ECHO([['TRUE=$(BAR$(V))
1071
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1072
am_cv_make_support_nested_variables=yes
1074
am_cv_make_support_nested_variables=no
1076
if test $am_cv_make_support_nested_variables = yes; then
1077
dnl Using '$V' instead of '$(V)' breaks IRIX make.
1079
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1081
AM_V=$AM_DEFAULT_VERBOSITY
1082
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1085
AM_SUBST_NOTMAKE([AM_V])dnl
1086
AC_SUBST([AM_DEFAULT_V])dnl
1087
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1088
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1090
AC_SUBST([AM_BACKSLASH])dnl
1091
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1094
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
1096
# This file is free software; the Free Software Foundation
1097
# gives unlimited permission to copy and/or distribute it,
1098
# with or without modifications, as long as this notice is preserved.
1070
1100
# AM_PROG_INSTALL_STRIP
1071
1101
# ---------------------
1131
1157
# Substitute a variable $(am__untar) that extract such
1132
1158
# a tarball read from stdin.
1133
1159
# $(am__untar) < result.tar
1134
1161
AC_DEFUN([_AM_PROG_TAR],
1135
1162
[# Always define AMTAR for backward compatibility. Yes, it's still used
1136
1163
# in the wild :-( We should find a proper way to deprecate it ...
1137
1164
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1166
# We'll loop over all known methods to create a tar archive until one works.
1167
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1138
1169
m4_if([$1], [v7],
1139
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1140
[m4_case([$1], [ustar],, [pax],,
1141
[m4_fatal([Unknown tar format])])
1142
AC_MSG_CHECKING([how to create a $1 tar archive])
1143
# Loop over all known methods to create a tar archive until one works.
1144
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1145
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1146
# Do not fold the above two line into one, because Tru64 sh and
1147
# Solaris sh will not grok spaces in the rhs of '-'.
1148
for _am_tool in $_am_tools
1152
for _am_tar in tar gnutar gtar;
1154
AM_RUN_LOG([$_am_tar --version]) && break
1156
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1157
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1158
am__untar="$_am_tar -xf -"
1161
# Must skip GNU tar: if it does not support --format= it doesn't create
1162
# ustar tarball either.
1163
(tar --version) >/dev/null 2>&1 && continue
1164
am__tar='tar chf - "$$tardir"'
1165
am__tar_='tar chf - "$tardir"'
1166
am__untar='tar xf -'
1169
am__tar='pax -L -x $1 -w "$$tardir"'
1170
am__tar_='pax -L -x $1 -w "$tardir"'
1174
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1175
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1176
am__untar='cpio -i -H $1 -d'
1185
# If the value was cached, stop now. We just wanted to have am__tar
1186
# and am__untar set.
1187
test -n "${am_cv_prog_tar_$1}" && break
1189
# tar/untar a dummy directory, and stop if the command works
1192
echo GrepMe > conftest.dir/file
1193
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1195
if test -s conftest.tar; then
1196
AM_RUN_LOG([$am__untar <conftest.tar])
1197
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1202
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1203
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1170
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1174
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1175
# There is notably a 21 bits limit for the UID and the GID. In fact,
1176
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1178
am_max_uid=2097151 # 2^21 - 1
1179
am_max_gid=$am_max_uid
1180
# The $UID and $GID variables are not portable, so we need to resort
1181
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1182
# below are definitely unexpected, so allow the users to see them
1183
# (that is, avoid stderr redirection).
1184
am_uid=`id -u || echo unknown`
1185
am_gid=`id -g || echo unknown`
1186
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1187
if test $am_uid -le $am_max_uid; then
1188
AC_MSG_RESULT([yes])
1193
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1194
if test $am_gid -le $am_max_gid; then
1195
AC_MSG_RESULT([yes])
1204
[m4_fatal([Unknown tar format])])
1206
AC_MSG_CHECKING([how to create a $1 tar archive])
1208
# Go ahead even if we have the value already cached. We do so because we
1209
# need to set the values for the 'am__tar' and 'am__untar' variables.
1210
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1212
for _am_tool in $_am_tools; do
1215
for _am_tar in tar gnutar gtar; do
1216
AM_RUN_LOG([$_am_tar --version]) && break
1218
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1219
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1220
am__untar="$_am_tar -xf -"
1223
# Must skip GNU tar: if it does not support --format= it doesn't create
1224
# ustar tarball either.
1225
(tar --version) >/dev/null 2>&1 && continue
1226
am__tar='tar chf - "$$tardir"'
1227
am__tar_='tar chf - "$tardir"'
1228
am__untar='tar xf -'
1231
am__tar='pax -L -x $1 -w "$$tardir"'
1232
am__tar_='pax -L -x $1 -w "$tardir"'
1236
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1237
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1238
am__untar='cpio -i -H $1 -d'
1247
# If the value was cached, stop now. We just wanted to have am__tar
1248
# and am__untar set.
1249
test -n "${am_cv_prog_tar_$1}" && break
1251
# tar/untar a dummy directory, and stop if the command works.
1254
echo GrepMe > conftest.dir/file
1255
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1257
if test -s conftest.tar; then
1258
AM_RUN_LOG([$am__untar <conftest.tar])
1259
AM_RUN_LOG([cat conftest.dir/file])
1260
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1265
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1266
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1204
1268
AC_SUBST([am__tar])
1205
1269
AC_SUBST([am__untar])
1206
1270
]) # _AM_PROG_TAR