aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Anders Kaseorg <andersk@mit.edu>2012-05-05 16:37:22 -0400
committerGravatar Keith Winstein <keithw@mit.edu>2012-05-09 14:08:30 -0400
commit1b86532a9910fbb70b673e9e733a9afd3bcdeb31 (patch)
tree1e15e922ac8561ad76aee7ba05c04ac120815927 /configure.ac
parent22375a2d54d0a6e49477b4434ab6c97f554bcbec (diff)
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>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index aed8604..f2670a7 100644
--- a/configure.ac
+++ b/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=""