]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: silence libtool warning about using cru
authorVincent Bernat <vincent@bernat.im>
Sun, 27 Mar 2016 08:25:50 +0000 (10:25 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 27 Mar 2016 08:25:50 +0000 (10:25 +0200)
Use "cr" instead. Snippet stolen from freeciv.

configure.ac

index b7ff5d79e78dc72390badf0687aa50bb3e569404..04b0cc80caae5df0782ed4feba1073dbecbf25c5 100644 (file)
@@ -373,6 +373,11 @@ AM_CONDITIONAL([USE_JSON], [test x"$with_json" = x"json-c" || test -x"$with_json
 AM_CONDITIONAL([USE_JANSSON], [test x"$with_json" = x"jansson"])
 AM_CONDITIONAL([USE_JSONC], [test x"$with_json" = x"json-c"])
 AM_CONDITIONAL([USE_SECCOMP], [test x"$with_seccomp" = x"yes"])
+dnl If old default of AR_FLAGS is otherwise being used (because of older automake),
+dnl replace it with one without 'u'
+if test "x$AR_FLAGS" = "xcru" ; then
+  AR_FLAGS="cr"
+fi
 AC_OUTPUT
 
 if test x"$LIBEVENT_EMBEDDED" = x; then