diff options
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2019-01-22 18:29:29 +0100 |
---|---|---|
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2019-01-23 16:22:13 +0100 |
commit | 23e6726e0b9fb5e777bf66a1076f3d382dbf7041 (patch) | |
tree | 921ecca5ce357904999615bfc843b325527402cb /configure.ac | |
parent | Fix compile error on Mac OS (diff) | |
download | frr-23e6726e0b9fb5e777bf66a1076f3d382dbf7041.tar.xz frr-23e6726e0b9fb5e777bf66a1076f3d382dbf7041.zip |
Redirect output of $AR check to /dev/null
./configure logs this on Mac OS:
checking whether ar supports D option... /Library/Developer/CommandLineTools/usr/bin/ar: illegal option -- D
usage: ar -d [-TLsv] archive file ...
ar -m [-TLsv] archive file ...
ar -m [-abiTLsv] position archive file ...
ar -p [-TLsv] archive [file ...]
ar -q [-cTLsv] archive file ...
ar -r [-cuTLsv] archive file ...
ar -r [-abciuTLsv] position archive file ...
ar -t [-TLsv] archive [file ...]
ar -x [-ouTLsv] archive [file ...]
no
This is quite noisy and we're only interested in the result of the
check, not the output.
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7f08e8e76..0636177e8 100755 --- a/configure.ac +++ b/configure.ac @@ -346,7 +346,7 @@ AM_CONDITIONAL([STATIC_BIN], [test "x$enable_static_bin" = "xyes"]) dnl $AR and $RANLIB are set by LT_INIT above AC_MSG_CHECKING([whether $AR supports D option]) -if $AR crD conftest.a; then +if $AR crD conftest.a >/dev/null 2>/dev/null; then AC_MSG_RESULT([yes]) dnl ARFLAGS is for automake, AR_FLAGS for libtool m-( ARFLAGS="crD" |