summaryrefslogtreecommitdiffstats
path: root/patches/ltp-full-20090131/ltp-full-20090131-undefined-ar.diff
blob: 11ec3c1ec33bdf4fdf018b8e4b3cf470b937d2c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Robert Schwebel <r.schwebel@pengutronix.de>
Subject: [patch] fix AC_PROG_AR definition

This is usually not defined:

rsc@thebe:ltp-full-20090131$ autoreconf
configure.ac:10: error: possibly undefined macro: AC_PROG_AR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>

---
 configure.ac |    3 +++
 1 file changed, 3 insertions(+)

Index: ltp-full-20090131/configure.ac
===================================================================
--- ltp-full-20090131.orig/configure.ac
+++ ltp-full-20090131/configure.ac
@@ -5,6 +5,9 @@ AC_CONFIG_HEADERS([include/config.h])
 AC_CONFIG_FILES([config.mk m4/Makefile])
 
 AC_CANONICAL_HOST
+
+AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])
+
 AC_PROG_CC
 AC_PROG_AR
 AC_PROG_RANLIB