573
580
[_AM_DEPENDENCIES([OBJC])],
574
581
[m4_define([AC_PROG_OBJC],
575
582
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
576
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
577
dnl but we still cater to Autoconf 2.62.
578
m4_ifdef([AC_PROG_OBJCXX],
579
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
583
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
580
584
[_AM_DEPENDENCIES([OBJCXX])],
581
585
[m4_define([AC_PROG_OBJCXX],
582
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
586
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
584
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
585
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
586
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
587
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
588
AC_REQUIRE([AM_SILENT_RULES])dnl
589
dnl The testsuite driver may need to know about EXEEXT, so add the
590
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
591
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
588
592
AC_CONFIG_COMMANDS_PRE(dnl
589
593
[m4_provide_if([_AM_COMPILER_EXEEXT],
590
594
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
596
# POSIX will say in a future version that running "rm -f" with no argument
597
# is OK; and we want to be able to make that assumption in our Makefile
598
# recipes. So use an aggressive probe to check that the usage we want is
599
# actually supported "in the wild" to an acceptable degree.
600
# See automake bug#10828.
601
# To make any issue more visible, cause the running configure to be aborted
602
# by default if the 'rm' program in use doesn't match our expectations; the
603
# user can still override this though.
604
if rm -f && rm -fr && rm -rf; then : OK; else
608
Your 'rm' program seems unable to run without file operands specified
609
on the command line, even when the '-f' option is present. This is contrary
610
to the behaviour of most rm programs out there, and not conforming with
611
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
613
Please tell bug-automake@gnu.org about your system, including the value
614
of your $PATH and any error possibly output before this message. This
615
can help us improve future automake versions.
618
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
619
echo 'Configuration will proceed anyway, since you have set the' >&2
620
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
624
Aborting the configuration process, to ensure you take notice of the issue.
626
You can download and install GNU coreutils to get an 'rm' implementation
627
that behaves properly: <http://www.gnu.org/software/coreutils/>.
629
If you want to complete the configuration process using your problematic
630
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
631
to "yes", and re-run configure.
634
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
593
638
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
594
639
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
778
822
AC_DEFUN([_AM_IF_OPTION],
779
823
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
825
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
827
# This file is free software; the Free Software Foundation
828
# gives unlimited permission to copy and/or distribute it,
829
# with or without modifications, as long as this notice is preserved.
833
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
834
# to automatically call this.
835
AC_DEFUN([_AM_PROG_CC_C_O],
836
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
837
AC_REQUIRE_AUX_FILE([compile])dnl
840
[whether $CC understands -c and -o together],
842
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
843
# Make sure it works both with $CC and with simple cc.
844
# Following AC_PROG_CC_C_O, we do the test twice because some
845
# compilers refuse to overwrite an existing .o file with -o,
846
# though they will create one.
847
am_cv_prog_cc_c_o=yes
849
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
850
&& test -f conftest2.$ac_objext; then
859
if test "$am_cv_prog_cc_c_o" != yes; then
860
# Losing compiler, so override with the script.
861
# FIXME: It is wrong to rewrite CC.
862
# But if we don't then we get into trouble of one sort or another.
863
# A longer-term fix would be to have automake use am__CC in this case,
864
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
865
CC="$am_aux_dir/compile $CC"
869
# For backward compatibility.
870
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
872
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
874
# This file is free software; the Free Software Foundation
875
# gives unlimited permission to copy and/or distribute it,
876
# with or without modifications, as long as this notice is preserved.
878
# AM_RUN_LOG(COMMAND)
879
# -------------------
880
# Run COMMAND, save the exit status in ac_status, and log it.
881
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
882
AC_DEFUN([AM_RUN_LOG],
883
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
884
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
886
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
887
(exit $ac_status); }])
781
889
# Check to make sure that the build environment is sane. -*- Autoconf -*-
783
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
891
# Copyright (C) 1996-2013 Free Software Foundation, Inc.
785
893
# This file is free software; the Free Software Foundation
786
894
# gives unlimited permission to copy and/or distribute it,
987
1095
# Substitute a variable $(am__untar) that extract such
988
1096
# a tarball read from stdin.
989
1097
# $(am__untar) < result.tar
990
1099
AC_DEFUN([_AM_PROG_TAR],
991
1100
[# Always define AMTAR for backward compatibility. Yes, it's still used
992
1101
# in the wild :-( We should find a proper way to deprecate it ...
993
1102
AC_SUBST([AMTAR], ['$${TAR-tar}'])
1104
# We'll loop over all known methods to create a tar archive until one works.
1105
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
994
1107
m4_if([$1], [v7],
995
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
996
[m4_case([$1], [ustar],, [pax],,
997
[m4_fatal([Unknown tar format])])
998
AC_MSG_CHECKING([how to create a $1 tar archive])
999
# Loop over all known methods to create a tar archive until one works.
1000
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1001
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1002
# Do not fold the above two line into one, because Tru64 sh and
1003
# Solaris sh will not grok spaces in the rhs of '-'.
1004
for _am_tool in $_am_tools
1008
for _am_tar in tar gnutar gtar;
1010
AM_RUN_LOG([$_am_tar --version]) && break
1012
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1013
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1014
am__untar="$_am_tar -xf -"
1017
# Must skip GNU tar: if it does not support --format= it doesn't create
1018
# ustar tarball either.
1019
(tar --version) >/dev/null 2>&1 && continue
1020
am__tar='tar chf - "$$tardir"'
1021
am__tar_='tar chf - "$tardir"'
1022
am__untar='tar xf -'
1025
am__tar='pax -L -x $1 -w "$$tardir"'
1026
am__tar_='pax -L -x $1 -w "$tardir"'
1030
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1031
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1032
am__untar='cpio -i -H $1 -d'
1041
# If the value was cached, stop now. We just wanted to have am__tar
1042
# and am__untar set.
1043
test -n "${am_cv_prog_tar_$1}" && break
1045
# tar/untar a dummy directory, and stop if the command works
1048
echo GrepMe > conftest.dir/file
1049
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1051
if test -s conftest.tar; then
1052
AM_RUN_LOG([$am__untar <conftest.tar])
1053
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1058
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1059
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1108
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1112
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1113
# There is notably a 21 bits limit for the UID and the GID. In fact,
1114
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1116
am_max_uid=2097151 # 2^21 - 1
1117
am_max_gid=$am_max_uid
1118
# The $UID and $GID variables are not portable, so we need to resort
1119
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1120
# below are definitely unexpected, so allow the users to see them
1121
# (that is, avoid stderr redirection).
1122
am_uid=`id -u || echo unknown`
1123
am_gid=`id -g || echo unknown`
1124
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1125
if test $am_uid -le $am_max_uid; then
1126
AC_MSG_RESULT([yes])
1131
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1132
if test $am_gid -le $am_max_gid; then
1133
AC_MSG_RESULT([yes])
1142
[m4_fatal([Unknown tar format])])
1144
AC_MSG_CHECKING([how to create a $1 tar archive])
1146
# Go ahead even if we have the value already cached. We do so because we
1147
# need to set the values for the 'am__tar' and 'am__untar' variables.
1148
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1150
for _am_tool in $_am_tools; do
1153
for _am_tar in tar gnutar gtar; do
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
AM_RUN_LOG([cat conftest.dir/file])
1198
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1203
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1204
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1060
1206
AC_SUBST([am__tar])
1061
1207
AC_SUBST([am__untar])
1062
1208
]) # _AM_PROG_TAR
1064
1210
m4_include([confdb/aclocal_cc.m4])
1065
1211
m4_include([confdb/aclocal_coverage.m4])
1212
m4_include([confdb/aclocal_runlog.m4])
1066
1213
m4_include([confdb/aclocal_util.m4])
1067
1214
m4_include([confdb/ax_prefix_config_h.m4])
1068
1215
m4_include([confdb/libtool.m4])