[master] 145824d ditch an ugly workaround for rhel5

Nils Goroll nils.goroll at uplex.de
Mon Aug 22 14:19:08 CEST 2016


commit 145824de4a13837ca99d1367103d79178348f352
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Aug 22 14:12:07 2016 +0200

    ditch an ugly workaround for rhel5
    
    test "x$ac_cv_prog_cc_c99" = "x" breaks autoconf for compilers which do not need
    any extra arguments to support c99.
    
    Partly addresses #2047

diff --git a/configure.ac b/configure.ac
index 2ae3f99..e5c6a40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,22 +25,6 @@ AC_PROG_LIBTOOL
 AC_GNU_SOURCE
 AC_PROG_CC
 AC_PROG_CC_STDC
-if test "x$ac_cv_prog_cc_c99" = "xno" || test "x$ac_cv_prog_cc_c99" = "x"; then
-# We might be on RHEL5 with a git checkout and so broken
-# autoconf. Check if CC is gcc and if it bails when given -std=gnu99.
-# If not, use that.  Yuck.
-  if test "x$ac_cv_c_compiler_gnu" = "xyes"; then
-     CC="$CC -std=gnu99"
-     AC_RUN_IFELSE(
-	[AC_LANG_PROGRAM([],[[
-return 0;
-    ]])],
-    [],
-    [AC_MSG_ERROR([Could not find a C99 compatible compiler])])
-  else
-    AC_MSG_ERROR([Could not find a C99 compatible compiler])
-  fi
-fi
 AC_PROG_CPP
 
 AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])



More information about the varnish-commit mailing list