diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-17 21:19:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-17 21:19:42 +0200 |
commit | 7ec5e2bf704242ff083e258215ed0967173b969c (patch) | |
tree | 1121416c392d2df5624c4d114e614c63893ba6d7 /configure.ac | |
parent | Document FRR service manipulation (#4528) (diff) | |
parent | bgpd: fix uninitialized & wrong endian NOTIFY (diff) | |
download | frr-7ec5e2bf704242ff083e258215ed0967173b969c.tar.xz frr-7ec5e2bf704242ff083e258215ed0967173b969c.zip |
Merge pull request #4514 from opensourcerouting/warnings-20190612
*: kill more warnings
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 828692c3e..9b57c2ec9 100755 --- a/configure.ac +++ b/configure.ac @@ -407,14 +407,19 @@ AC_SUBST([ARFLAGS]) AC_SUBST([AR_FLAGS]) AC_MSG_CHECKING([whether $RANLIB supports D option]) -if $RANLIB -D conftest.a >/dev/null 2>/dev/null; then - AC_MSG_RESULT([yes]) - RANLIB="$RANLIB -D" +if $RANLIB -D conftest.a >conftest.err 2>&1; then + if grep -q -- '-D' conftest.err; then + AC_MSG_RESULT([no]) + else + AC_MSG_RESULT([yes]) + RANLIB="$RANLIB -D" + fi else AC_MSG_RESULT([no]) fi AC_SUBST([RANLIB]) +test -f conftest.err && rm conftest.err test -f conftest.a && rm conftest.a dnl ---------------------- |