Browse Source

Use AM_PROG_AR to improve portability

Turning on warnings in Automake makes it complain about not using the
AM_PROG_AR macro. The AM_PROG_AR macro is required when LIBRARIES or

The macro looks for an archiver and wraps it in the ar-lib script which
is automatically generated so Git should ignore it.

It makes the custom check for 'ar' obsolete so it is removed.

The AM_PROG_AR macro was added in Automake 1.11.2 thus the minimum
Automake version is increased.
cypherpunks 6 years ago
2 changed files with 2 additions and 4 deletions
  1. 1 0
  2. 1 4

+ 1 - 0

@@ -38,6 +38,7 @@ uptime-*.json

+ 1 - 4

@@ -171,10 +171,7 @@ AC_ARG_ENABLE(libscrypt,
      AS_HELP_STRING(--disable-libscrypt, [do not attempt to use libscrypt]))
 dnl check for the correct "ar" when cross-compiling
-AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL([AR], [ar], [ar])])
 dnl Check whether the above macro has settled for a simply named tool even
 dnl though we're cross compiling. We must do this before running AC_PROG_CC,