diff --git a/configure.ac b/configure.ac index c96e5ce2a..0f8a47530 100644 --- a/configure.ac +++ b/configure.ac @@ -16,6 +16,10 @@ AC_CONFIG_AUX_DIR([build-aux]) : ${CFLAGS=""} : ${CXXFLAGS=""} +# Test ar for the "U" option. Should be checked before the libtool macros. +xxx_ar_flags=$((ar --help) 2>&1) +AS_CASE([$xxx_ar_flags],[*'use actual timestamps and uids/gids'*],[: ${AR_FLAGS="Ucru"}]) + AC_CANONICAL_HOST AC_CANONICAL_BUILD