2049
2049
rm -rf conftest*
2052
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
2052
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2053
2053
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2054
2054
# Find out which ABI we are using.
2055
2055
echo 'int i;' > conftest.$ac_ext
2092
2089
x86_64-*linux*)
2093
2090
LD="${LD-ld} -m elf_x86_64"
2096
LD="${LD-ld} -m elf64lppc"
2092
ppc*-*linux*|powerpc*-*linux*)
2099
2093
LD="${LD-ld} -m elf64ppc"
2101
2095
s390*-*linux*|s390*-*tpf*)
9346
9340
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
9348
9342
# nls.m4 serial 5 (gettext-0.18)
9349
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
9343
dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
9351
9345
dnl This file is free software; the Free Software Foundation
9352
9346
dnl gives unlimited permission to copy and/or distribute it,
9550
9544
# generated from the m4 files accompanying Automake X.Y.
9551
9545
# (This private macro should not be called outside this file.)
9552
9546
AC_DEFUN([AM_AUTOMAKE_VERSION],
9553
[am__api_version='1.14'
9547
[am__api_version='1.13'
9554
9548
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9555
9549
dnl require some minimum version. Point them to the right macro.
9556
m4_if([$1], [1.14.1], [],
9550
m4_if([$1], [1.13.3], [],
9557
9551
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9569
9563
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9570
9564
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9571
9565
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9572
[AM_AUTOMAKE_VERSION([1.14.1])dnl
9566
[AM_AUTOMAKE_VERSION([1.13.3])dnl
9573
9567
m4_ifndef([AC_AUTOCONF_VERSION],
9574
9568
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9575
9569
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9936
9930
# This macro actually does too much. Some checks are only needed if
9937
9931
# your package does certain things. But this isn't really a big deal.
9939
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
9940
m4_define([AC_PROG_CC],
9941
m4_defn([AC_PROG_CC])
9945
9933
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9946
9934
# AM_INIT_AUTOMAKE([OPTIONS])
9947
9935
# -----------------------------------------------
10050
10038
AC_CONFIG_COMMANDS_PRE(dnl
10051
10039
[m4_provide_if([_AM_COMPILER_EXEEXT],
10052
10040
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
10054
# POSIX will say in a future version that running "rm -f" with no argument
10055
# is OK; and we want to be able to make that assumption in our Makefile
10056
# recipes. So use an aggressive probe to check that the usage we want is
10057
# actually supported "in the wild" to an acceptable degree.
10058
# See automake bug#10828.
10059
# To make any issue more visible, cause the running configure to be aborted
10060
# by default if the 'rm' program in use doesn't match our expectations; the
10061
# user can still override this though.
10062
if rm -f && rm -fr && rm -rf; then : OK; else
10066
Your 'rm' program seems unable to run without file operands specified
10067
on the command line, even when the '-f' option is present. This is contrary
10068
to the behaviour of most rm programs out there, and not conforming with
10069
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
10071
Please tell bug-automake@gnu.org about your system, including the value
10072
of your $PATH and any error possibly output before this message. This
10073
can help us improve future automake versions.
10076
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
10077
echo 'Configuration will proceed anyway, since you have set the' >&2
10078
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
10082
Aborting the configuration process, to ensure you take notice of the issue.
10084
You can download and install GNU coreutils to get an 'rm' implementation
10085
that behaves properly: <http://www.gnu.org/software/coreutils/>.
10087
If you want to complete the configuration process using your problematic
10088
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
10089
to "yes", and re-run configure.
10092
AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
10096
10043
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
10097
10044
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
10099
10046
m4_define([_AC_COMPILER_EXEEXT],
10100
10047
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
10102
10050
# When config.status generates a header, we must update the stamp-h file.
10103
10051
# This file resides in the same directory as the config header
10104
10052
# that is generated. The stamp files are numbered to have different names.
10246
10194
rm -f confinc confmf
10197
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
10199
# This file is free software; the Free Software Foundation
10200
# gives unlimited permission to copy and/or distribute it,
10201
# with or without modifications, as long as this notice is preserved.
10205
# Like AC_PROG_CC_C_O, but changed for automake.
10206
AC_DEFUN([AM_PROG_CC_C_O],
10207
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
10208
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10209
AC_REQUIRE_AUX_FILE([compile])dnl
10210
# FIXME: we rely on the cache variable name because
10211
# there is no other way.
10213
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
10214
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
10215
if test "$am_t" != yes; then
10216
# Losing compiler, so override with the script.
10217
# FIXME: It is wrong to rewrite CC.
10218
# But if we don't then we get into trouble of one sort or another.
10219
# A longer-term fix would be to have automake use am__CC in this case,
10220
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10221
CC="$am_aux_dir/compile $CC"
10223
dnl Make sure AC_PROG_CC is never called again, or it will override our
10225
m4_define([AC_PROG_CC],
10226
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
10249
10229
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
10251
10231
# Copyright (C) 1997-2013 Free Software Foundation, Inc.
10316
10296
AC_DEFUN([_AM_IF_OPTION],
10317
10297
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
10319
# Copyright (C) 1999-2013 Free Software Foundation, Inc.
10321
# This file is free software; the Free Software Foundation
10322
# gives unlimited permission to copy and/or distribute it,
10323
# with or without modifications, as long as this notice is preserved.
10327
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
10328
# to automatically call this.
10329
AC_DEFUN([_AM_PROG_CC_C_O],
10330
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
10331
AC_REQUIRE_AUX_FILE([compile])dnl
10332
AC_LANG_PUSH([C])dnl
10334
[whether $CC understands -c and -o together],
10335
[am_cv_prog_cc_c_o],
10336
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
10337
# Make sure it works both with $CC and with simple cc.
10338
# Following AC_PROG_CC_C_O, we do the test twice because some
10339
# compilers refuse to overwrite an existing .o file with -o,
10340
# though they will create one.
10341
am_cv_prog_cc_c_o=yes
10342
for am_i in 1 2; do
10343
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
10344
&& test -f conftest2.$ac_objext; then
10347
am_cv_prog_cc_c_o=no
10351
rm -f core conftest*
10353
if test "$am_cv_prog_cc_c_o" != yes; then
10354
# Losing compiler, so override with the script.
10355
# FIXME: It is wrong to rewrite CC.
10356
# But if we don't then we get into trouble of one sort or another.
10357
# A longer-term fix would be to have automake use am__CC in this case,
10358
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
10359
CC="$am_aux_dir/compile $CC"
10363
# For backward compatibility.
10364
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
10366
10299
# Copyright (C) 2001-2013 Free Software Foundation, Inc.
10368
10301
# This file is free software; the Free Software Foundation
11085
11018
AC_MSG_CHECKING([if $CC supports $flag])
11086
11019
saved_CFLAGS="$CFLAGS"
11087
11020
CFLAGS="$CFLAGS $flag"
11088
AC_COMPILE_IFELSE([ ], [flag_supported=yes], [flag_supported=no])
11021
AC_COMPILE_IFELSE([AC_LANG_SOURCE([ ])], [flag_supported=yes], [flag_supported=no])
11089
11022
CFLAGS="$saved_CFLAGS"
11090
11023
AC_MSG_RESULT([$flag_supported])
11119
11052
-Wdeclaration-after-statement \
11120
11053
-Wmissing-declarations \
11121
11054
-Wmissing-noreturn -Wshadow -Wpointer-arith \
11122
-Wcast-align -Wformat-security \
11055
-Wcast-align -Wformat -Wformat-security -Wformat-y2k \
11123
11056
-Winit-self -Wmissing-include-dirs -Wundef \
11124
-Wmissing-format-attribute -Wnested-externs"
11125
CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
11058
CPPFLAGS="$CPPFLAGS"
11127
11060
if test x`uname` = x"Linux"; then
11128
11061
xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -fstack-protector"
11189
11122
saved_CFLAGS="$CFLAGS"
11190
11123
CFLAGS="$CFLAGS $xdt_vis_test_cflags"
11191
11124
AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
11192
AC_COMPILE_IFELSE(AC_LANG_SOURCE(
11125
AC_COMPILE_IFELSE([AC_LANG_SOURCE(
11194
11127
void test_default (void);
11195
11128
void test_hidden (void);