Browse files

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>
  • Loading branch information...
1 parent 22375a2 commit 1b86532a9910fbb70b673e9e733a9afd3bcdeb31 @andersk andersk committed with keithw May 5, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 configure.ac
View
3 configure.ac
@@ -18,8 +18,7 @@ AS_IF([test x"$PROTOC" = x],
[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
-m4_pattern_allow([AM_PROG_AR])
-AM_PROG_AR
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
WARNING_CXXFLAGS=""
PICKY_CXXFLAGS=""

0 comments on commit 1b86532

Please sign in to comment.