findutils-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Findutils-patches] [PATCH 1/8] build: avoid bootstrap error on clean tr


From: Bernhard Voelker
Subject: [Findutils-patches] [PATCH 1/8] build: avoid bootstrap error on clean tree
Date: Mon, 4 Jan 2016 01:28:25 +0100

Avoid the following error when running ./bootstrap on a clean tree:

  autoreconf: running: aclocal -I gl/m4 --force -I gl/m4 -I m4
  configure.ac:129: error: AC_PROG_CC cannot be called after AM_PROG_CC_C_O
  ../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
  ../../lib/autoconf/general.m4:1462: AC_ARG_ENABLE is expanded from...
  configure.ac:129: the top level
  autom4te: /usr/bin/m4 failed with exit status: 1
  aclocal: error: echo failed with exit status: 1
  autoreconf: aclocal failed with exit status: 1
  ./bootstrap: autoreconf failed

* configure.ac (compiler-warnings-are-errors): Remove AC_PROG_CC, as this
has already run before and is not allowed at this point anyway.
---
 configure.ac | 1 -
 1 file changed, 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c5b75d6..add312c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -130,7 +130,6 @@ AC_ARG_ENABLE(compiler-warnings-are-errors,
   AS_HELP_STRING(--enable-compiler-warnings-are-errors,Compiler warnings are 
errors),
   [
     AC_MSG_CHECKING([whether it is safe to use -Werror])
-    AC_PROG_CC
     if test -n "$GCC"; then
       CFLAGS="$CFLAGS -Werror"
       AC_MSG_RESULT([yes])
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]