aboutsummaryrefslogtreecommitdiff
path: root/binutils/configure
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
parent74929e7bba5eb4a9499d5d6d08e78fc76596edbe (diff)
downloadgdb-9cb80f72d8b8b2f59562692d9385cd5a533e9b3f.zip
gdb-9cb80f72d8b8b2f59562692d9385cd5a533e9b3f.tar.gz
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')
-rwxr-xr-xbinutils/configure26
1 files changed, 24 insertions, 2 deletions
diff --git a/binutils/configure b/binutils/configure
index b46a30b..028abb9 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -771,6 +771,7 @@ enable_fast_install
with_gnu_ld
enable_libtool_lock
enable_targets
+enable_deterministic_archives
enable_werror
enable_build_warnings
enable_nls
@@ -1417,6 +1418,8 @@ Optional Features:
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--enable-targets alternative target configurations
+ --enable-deterministic-archives
+ ar and ranlib default to -D behavior
--enable-werror treat compile warnings as errors
--enable-build-warnings enable build-time compiler warnings
--disable-nls do not use Native Language Support
@@ -11199,7 +11202,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11202 "configure"
+#line 11205 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11305,7 +11308,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11308 "configure"
+#line 11311 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11553,6 +11556,25 @@ if test "${enable_targets+set}" = set; then :
esac
fi
+# Check whether --enable-deterministic-archives was given.
+if test "${enable_deterministic_archives+set}" = set; then :
+ enableval=$enable_deterministic_archives;
+if test "${enableval}" = no; then
+ default_ar_deterministic=0
+else
+ default_ar_deterministic=1
+fi
+else
+ default_ar_deterministic=0
+fi
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define DEFAULT_AR_DETERMINISTIC $default_ar_deterministic
+_ACEOF
+
+
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext