Only use AM_PROG_AR if it’s defined

Fixes
  aclocal:configure.ac:22: warning: macro `AM_PROG_AR' not found in library
and
  ./configure: line 4024: AM_PROG_AR: command not found
with old automake.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2012-05-05 16:37:22 -04:00
committed by Keith Winstein
parent 22375a2d54
commit 1b86532a99
+1 -2
View File
@@ -18,8 +18,7 @@ AS_IF([test x"$PROTOC" = x],
[AC_MSG_ERROR([cannot find protoc, the Protocol Buffers compiler])]) [AC_MSG_ERROR([cannot find protoc, the Protocol Buffers compiler])])
# automake 1.12 seems to require this, but automake 1.11 doesn't recognize it # automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
m4_pattern_allow([AM_PROG_AR]) m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AM_PROG_AR
WARNING_CXXFLAGS="" WARNING_CXXFLAGS=""
PICKY_CXXFLAGS="" PICKY_CXXFLAGS=""