aboutsummaryrefslogtreecommitdiff
path: root/binutils/configure.in
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2011-12-21 19:39:11 +0000
committerRoland McGrath <roland@gnu.org>2011-12-21 19:39:11 +0000
commit9cb80f72d8b8b2f59562692d9385cd5a533e9b3f (patch)
tree4078a2fd60a6db5f5f129aca712554d99e2080b6 /binutils/configure.in
parent74929e7bba5eb4a9499d5d6d08e78fc76596edbe (diff)
downloadfsf-binutils-gdb-9cb80f72d8b8b2f59562692d9385cd5a533e9b3f.zip
fsf-binutils-gdb-9cb80f72d8b8b2f59562692d9385cd5a533e9b3f.tar.gz
fsf-binutils-gdb-9cb80f72d8b8b2f59562692d9385cd5a533e9b3f.tar.bz2
* configure.in (--enable-deterministic-archives): Grok new
argument. Set DEFAULT_AR_DETERMINISTIC to 1 or 0 accordingly. * configure: Regenerated. * config.in: Regenerated. * ar.c (deterministic): Initialize to -1. (decode_options, ranlib_main): Grok U option. (usage, ranlib_usage): Mention U; say for D and U which is the default. (default_deterministic): New function. (ranlib_main): Call it. (main): Likewise. Make newer_only && deterministic error non-fatal if it was just DEFAULT_AR_DETERMINISTIC and not the D option. * doc/binutils.texi (ar cmdline, ranlib): Document U modifier and --enable-deterministic-archives behavior.
Diffstat (limited to 'binutils/configure.in')
-rw-r--r--binutils/configure.in20
1 files changed, 16 insertions, 4 deletions
diff --git a/binutils/configure.in b/binutils/configure.in
index 1f3b25d..d38b677 100644
--- a/binutils/configure.in
+++ b/binutils/configure.in
@@ -28,8 +28,20 @@ AC_ARG_ENABLE(targets,
*) enable_targets=$enableval ;;
esac])dnl
+AC_ARG_ENABLE(deterministic-archives,
+[AS_HELP_STRING([--enable-deterministic-archives],
+ [ar and ranlib default to -D behavior])], [
+if test "${enableval}" = no; then
+ default_ar_deterministic=0
+else
+ default_ar_deterministic=1
+fi], [default_ar_deterministic=0])
+
+AC_DEFINE_UNQUOTED(DEFAULT_AR_DETERMINISTIC, $default_ar_deterministic,
+ [Should ar and ranlib use -D behavior by default?])
+
AM_BINUTILS_WARNINGS
-
+
AC_CONFIG_HEADERS(config.h:config.in)
if test -z "$target" ; then
@@ -203,7 +215,7 @@ do
else
case $targ in
changequote(,)dnl
- i[3-7]86*-*-netware*)
+ i[3-7]86*-*-netware*)
changequote([,])dnl
BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
@@ -432,11 +444,11 @@ fi
AC_DEFINE_UNQUOTED(TARGET_PREPENDS_UNDERSCORE, $UNDERSCORE,
[Define to 1 if user symbol names have a leading underscore, 0 if not.])
-# Emulation
+# Emulation
targ=$target
. ${srcdir}/configure.tgt
EMULATION=$targ_emul
-EMULATION_VECTOR=$targ_emul_vector
+EMULATION_VECTOR=$targ_emul_vector
AC_SUBST(EMULATION)
AC_SUBST(EMULATION_VECTOR)