Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Enforce std=gnu89 to fix build with gcc
Baptiste Daroussin committed 12 years ago
commit b4b3e604722962f4467246b1df34eb73e6e974d5
parent e55003a
5 files changed +772 -241
modified autom4te.cache/output.0
@@ -2855,6 +2855,69 @@ fi
AM_BACKSLASH='\'


+
DEPDIR="${am__leading_dot}deps"
+

+
ac_config_commands="$ac_config_commands depfiles"
+

+

+
am_make=${MAKE-make}
+
cat > confinc << 'END'
+
am__doit:
+
	@echo this is the am__doit target
+
.PHONY: am__doit
+
END
+
# If we don't find an include directive, just comment out the code.
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
+
$as_echo_n "checking for style of include used by $am_make... " >&6; }
+
am__include="#"
+
am__quote=
+
_am_result=none
+
# First try GNU make style include.
+
echo "include confinc" > confmf
+
# Ignore all kinds of additional output from 'make'.
+
case `$am_make -s -f confmf 2> /dev/null` in #(
+
*the\ am__doit\ target*)
+
  am__include=include
+
  am__quote=
+
  _am_result=GNU
+
  ;;
+
esac
+
# Now try BSD make style include.
+
if test "$am__include" = "#"; then
+
   echo '.include "confinc"' > confmf
+
   case `$am_make -s -f confmf 2> /dev/null` in #(
+
   *the\ am__doit\ target*)
+
     am__include=.include
+
     am__quote="\""
+
     _am_result=BSD
+
     ;;
+
   esac
+
fi
+

+

+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
+
$as_echo "$_am_result" >&6; }
+
rm -f confinc confmf
+

+
@%:@ Check whether --enable-dependency-tracking was given.
+
if test "${enable_dependency_tracking+set}" = set; then :
+
  enableval=$enable_dependency_tracking; 
+
fi
+

+
if test "x$enable_dependency_tracking" != xno; then
+
  am_depcomp="$ac_aux_dir/depcomp"
+
  AMDEPBACKSLASH='\'
+
  am__nodep='_no'
+
fi
+
 if test "x$enable_dependency_tracking" != xno; then
+
  AMDEP_TRUE=
+
  AMDEP_FALSE='#'
+
else
+
  AMDEP_TRUE='#'
+
  AMDEP_FALSE=
+
fi
+

+

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3702,69 +3765,6 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

-
DEPDIR="${am__leading_dot}deps"
-

-
ac_config_commands="$ac_config_commands depfiles"
-

-

-
am_make=${MAKE-make}
-
cat > confinc << 'END'
-
am__doit:
-
	@echo this is the am__doit target
-
.PHONY: am__doit
-
END
-
# If we don't find an include directive, just comment out the code.
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
-
$as_echo_n "checking for style of include used by $am_make... " >&6; }
-
am__include="#"
-
am__quote=
-
_am_result=none
-
# First try GNU make style include.
-
echo "include confinc" > confmf
-
# Ignore all kinds of additional output from 'make'.
-
case `$am_make -s -f confmf 2> /dev/null` in #(
-
*the\ am__doit\ target*)
-
  am__include=include
-
  am__quote=
-
  _am_result=GNU
-
  ;;
-
esac
-
# Now try BSD make style include.
-
if test "$am__include" = "#"; then
-
   echo '.include "confinc"' > confmf
-
   case `$am_make -s -f confmf 2> /dev/null` in #(
-
   *the\ am__doit\ target*)
-
     am__include=.include
-
     am__quote="\""
-
     _am_result=BSD
-
     ;;
-
   esac
-
fi
-

-

-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
-
$as_echo "$_am_result" >&6; }
-
rm -f confinc confmf
-

-
@%:@ Check whether --enable-dependency-tracking was given.
-
if test "${enable_dependency_tracking+set}" = set; then :
-
  enableval=$enable_dependency_tracking; 
-
fi
-

-
if test "x$enable_dependency_tracking" != xno; then
-
  am_depcomp="$ac_aux_dir/depcomp"
-
  AMDEPBACKSLASH='\'
-
  am__nodep='_no'
-
fi
-
 if test "x$enable_dependency_tracking" != xno; then
-
  AMDEP_TRUE=
-
  AMDEP_FALSE='#'
-
else
-
  AMDEP_TRUE='#'
-
  AMDEP_FALSE=
-
fi
-

-


depcc="$CC"   am_compiler_list=

@@ -3894,6 +3894,183 @@ else
fi


+
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
+
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
+
if ${ac_cv_prog_cc_c99+:} false; then :
+
  $as_echo_n "(cached) " >&6
+
else
+
  ac_cv_prog_cc_c99=no
+
ac_save_CC=$CC
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+
/* end confdefs.h.  */
+
#include <stdarg.h>
+
#include <stdbool.h>
+
#include <stdlib.h>
+
#include <wchar.h>
+
#include <stdio.h>
+

+
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
+
#define debug(...) fprintf (stderr, __VA_ARGS__)
+
#define showlist(...) puts (#__VA_ARGS__)
+
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
+
static void
+
test_varargs_macros (void)
+
{
+
  int x = 1234;
+
  int y = 5678;
+
  debug ("Flag");
+
  debug ("X = %d\n", x);
+
  showlist (The first, second, and third items.);
+
  report (x>y, "x is %d but y is %d", x, y);
+
}
+

+
// Check long long types.
+
#define BIG64 18446744073709551615ull
+
#define BIG32 4294967295ul
+
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
+
#if !BIG_OK
+
  your preprocessor is broken;
+
#endif
+
#if BIG_OK
+
#else
+
  your preprocessor is broken;
+
#endif
+
static long long int bignum = -9223372036854775807LL;
+
static unsigned long long int ubignum = BIG64;
+

+
struct incomplete_array
+
{
+
  int datasize;
+
  double data[];
+
};
+

+
struct named_init {
+
  int number;
+
  const wchar_t *name;
+
  double average;
+
};
+

+
typedef const char *ccp;
+

+
static inline int
+
test_restrict (ccp restrict text)
+
{
+
  // See if C++-style comments work.
+
  // Iterate through items via the restricted pointer.
+
  // Also check for declarations in for loops.
+
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
+
    continue;
+
  return 0;
+
}
+

+
// Check varargs and va_copy.
+
static void
+
test_varargs (const char *format, ...)
+
{
+
  va_list args;
+
  va_start (args, format);
+
  va_list args_copy;
+
  va_copy (args_copy, args);
+

+
  const char *str;
+
  int number;
+
  float fnumber;
+

+
  while (*format)
+
    {
+
      switch (*format++)
+
	{
+
	case 's': // string
+
	  str = va_arg (args_copy, const char *);
+
	  break;
+
	case 'd': // int
+
	  number = va_arg (args_copy, int);
+
	  break;
+
	case 'f': // float
+
	  fnumber = va_arg (args_copy, double);
+
	  break;
+
	default:
+
	  break;
+
	}
+
    }
+
  va_end (args_copy);
+
  va_end (args);
+
}
+

+
int
+
main ()
+
{
+

+
  // Check bool.
+
  _Bool success = false;
+

+
  // Check restrict.
+
  if (test_restrict ("String literal") == 0)
+
    success = true;
+
  char *restrict newvar = "Another string";
+

+
  // Check varargs.
+
  test_varargs ("s, d' f .", "string", 65, 34.234);
+
  test_varargs_macros ();
+

+
  // Check flexible array members.
+
  struct incomplete_array *ia =
+
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
+
  ia->datasize = 10;
+
  for (int i = 0; i < ia->datasize; ++i)
+
    ia->data[i] = i * 1.234;
+

+
  // Check named initializers.
+
  struct named_init ni = {
+
    .number = 34,
+
    .name = L"Test wide string",
+
    .average = 543.34343,
+
  };
+

+
  ni.number = 58;
+

+
  int dynamic_array[ni.number];
+
  dynamic_array[ni.number - 1] = 543;
+

+
  // work around unused variable warnings
+
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
+
	  || dynamic_array[ni.number - 1] != 543);
+

+
  ;
+
  return 0;
+
}
+
_ACEOF
+
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
+
do
+
  CC="$ac_save_CC $ac_arg"
+
  if ac_fn_c_try_compile "$LINENO"; then :
+
  ac_cv_prog_cc_c99=$ac_arg
+
fi
+
rm -f core conftest.err conftest.$ac_objext
+
  test "x$ac_cv_prog_cc_c99" != "xno" && break
+
done
+
rm -f conftest.$ac_ext
+
CC=$ac_save_CC
+

+
fi
+
# AC_CACHE_VAL
+
case "x$ac_cv_prog_cc_c99" in
+
  x)
+
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+
$as_echo "none needed" >&6; } ;;
+
  xno)
+
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+
$as_echo "unsupported" >&6; } ;;
+
  *)
+
    CC="$CC $ac_cv_prog_cc_c99"
+
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
+
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
+
esac
+
if test "x$ac_cv_prog_cc_c99" != xno; then :
+
  
+
fi
+

+

case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
modified autom4te.cache/output.1
@@ -2855,6 +2855,69 @@ fi
AM_BACKSLASH='\'


+
DEPDIR="${am__leading_dot}deps"
+

+
ac_config_commands="$ac_config_commands depfiles"
+

+

+
am_make=${MAKE-make}
+
cat > confinc << 'END'
+
am__doit:
+
	@echo this is the am__doit target
+
.PHONY: am__doit
+
END
+
# If we don't find an include directive, just comment out the code.
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
+
$as_echo_n "checking for style of include used by $am_make... " >&6; }
+
am__include="#"
+
am__quote=
+
_am_result=none
+
# First try GNU make style include.
+
echo "include confinc" > confmf
+
# Ignore all kinds of additional output from 'make'.
+
case `$am_make -s -f confmf 2> /dev/null` in #(
+
*the\ am__doit\ target*)
+
  am__include=include
+
  am__quote=
+
  _am_result=GNU
+
  ;;
+
esac
+
# Now try BSD make style include.
+
if test "$am__include" = "#"; then
+
   echo '.include "confinc"' > confmf
+
   case `$am_make -s -f confmf 2> /dev/null` in #(
+
   *the\ am__doit\ target*)
+
     am__include=.include
+
     am__quote="\""
+
     _am_result=BSD
+
     ;;
+
   esac
+
fi
+

+

+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
+
$as_echo "$_am_result" >&6; }
+
rm -f confinc confmf
+

+
@%:@ Check whether --enable-dependency-tracking was given.
+
if test "${enable_dependency_tracking+set}" = set; then :
+
  enableval=$enable_dependency_tracking; 
+
fi
+

+
if test "x$enable_dependency_tracking" != xno; then
+
  am_depcomp="$ac_aux_dir/depcomp"
+
  AMDEPBACKSLASH='\'
+
  am__nodep='_no'
+
fi
+
 if test "x$enable_dependency_tracking" != xno; then
+
  AMDEP_TRUE=
+
  AMDEP_FALSE='#'
+
else
+
  AMDEP_TRUE='#'
+
  AMDEP_FALSE=
+
fi
+

+

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3702,69 +3765,6 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

-
DEPDIR="${am__leading_dot}deps"
-

-
ac_config_commands="$ac_config_commands depfiles"
-

-

-
am_make=${MAKE-make}
-
cat > confinc << 'END'
-
am__doit:
-
	@echo this is the am__doit target
-
.PHONY: am__doit
-
END
-
# If we don't find an include directive, just comment out the code.
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
-
$as_echo_n "checking for style of include used by $am_make... " >&6; }
-
am__include="#"
-
am__quote=
-
_am_result=none
-
# First try GNU make style include.
-
echo "include confinc" > confmf
-
# Ignore all kinds of additional output from 'make'.
-
case `$am_make -s -f confmf 2> /dev/null` in #(
-
*the\ am__doit\ target*)
-
  am__include=include
-
  am__quote=
-
  _am_result=GNU
-
  ;;
-
esac
-
# Now try BSD make style include.
-
if test "$am__include" = "#"; then
-
   echo '.include "confinc"' > confmf
-
   case `$am_make -s -f confmf 2> /dev/null` in #(
-
   *the\ am__doit\ target*)
-
     am__include=.include
-
     am__quote="\""
-
     _am_result=BSD
-
     ;;
-
   esac
-
fi
-

-

-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
-
$as_echo "$_am_result" >&6; }
-
rm -f confinc confmf
-

-
@%:@ Check whether --enable-dependency-tracking was given.
-
if test "${enable_dependency_tracking+set}" = set; then :
-
  enableval=$enable_dependency_tracking; 
-
fi
-

-
if test "x$enable_dependency_tracking" != xno; then
-
  am_depcomp="$ac_aux_dir/depcomp"
-
  AMDEPBACKSLASH='\'
-
  am__nodep='_no'
-
fi
-
 if test "x$enable_dependency_tracking" != xno; then
-
  AMDEP_TRUE=
-
  AMDEP_FALSE='#'
-
else
-
  AMDEP_TRUE='#'
-
  AMDEP_FALSE=
-
fi
-

-


depcc="$CC"   am_compiler_list=

@@ -3894,6 +3894,183 @@ else
fi


+
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
+
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
+
if ${ac_cv_prog_cc_c99+:} false; then :
+
  $as_echo_n "(cached) " >&6
+
else
+
  ac_cv_prog_cc_c99=no
+
ac_save_CC=$CC
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+
/* end confdefs.h.  */
+
#include <stdarg.h>
+
#include <stdbool.h>
+
#include <stdlib.h>
+
#include <wchar.h>
+
#include <stdio.h>
+

+
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
+
#define debug(...) fprintf (stderr, __VA_ARGS__)
+
#define showlist(...) puts (#__VA_ARGS__)
+
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
+
static void
+
test_varargs_macros (void)
+
{
+
  int x = 1234;
+
  int y = 5678;
+
  debug ("Flag");
+
  debug ("X = %d\n", x);
+
  showlist (The first, second, and third items.);
+
  report (x>y, "x is %d but y is %d", x, y);
+
}
+

+
// Check long long types.
+
#define BIG64 18446744073709551615ull
+
#define BIG32 4294967295ul
+
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
+
#if !BIG_OK
+
  your preprocessor is broken;
+
#endif
+
#if BIG_OK
+
#else
+
  your preprocessor is broken;
+
#endif
+
static long long int bignum = -9223372036854775807LL;
+
static unsigned long long int ubignum = BIG64;
+

+
struct incomplete_array
+
{
+
  int datasize;
+
  double data[];
+
};
+

+
struct named_init {
+
  int number;
+
  const wchar_t *name;
+
  double average;
+
};
+

+
typedef const char *ccp;
+

+
static inline int
+
test_restrict (ccp restrict text)
+
{
+
  // See if C++-style comments work.
+
  // Iterate through items via the restricted pointer.
+
  // Also check for declarations in for loops.
+
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
+
    continue;
+
  return 0;
+
}
+

+
// Check varargs and va_copy.
+
static void
+
test_varargs (const char *format, ...)
+
{
+
  va_list args;
+
  va_start (args, format);
+
  va_list args_copy;
+
  va_copy (args_copy, args);
+

+
  const char *str;
+
  int number;
+
  float fnumber;
+

+
  while (*format)
+
    {
+
      switch (*format++)
+
	{
+
	case 's': // string
+
	  str = va_arg (args_copy, const char *);
+
	  break;
+
	case 'd': // int
+
	  number = va_arg (args_copy, int);
+
	  break;
+
	case 'f': // float
+
	  fnumber = va_arg (args_copy, double);
+
	  break;
+
	default:
+
	  break;
+
	}
+
    }
+
  va_end (args_copy);
+
  va_end (args);
+
}
+

+
int
+
main ()
+
{
+

+
  // Check bool.
+
  _Bool success = false;
+

+
  // Check restrict.
+
  if (test_restrict ("String literal") == 0)
+
    success = true;
+
  char *restrict newvar = "Another string";
+

+
  // Check varargs.
+
  test_varargs ("s, d' f .", "string", 65, 34.234);
+
  test_varargs_macros ();
+

+
  // Check flexible array members.
+
  struct incomplete_array *ia =
+
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
+
  ia->datasize = 10;
+
  for (int i = 0; i < ia->datasize; ++i)
+
    ia->data[i] = i * 1.234;
+

+
  // Check named initializers.
+
  struct named_init ni = {
+
    .number = 34,
+
    .name = L"Test wide string",
+
    .average = 543.34343,
+
  };
+

+
  ni.number = 58;
+

+
  int dynamic_array[ni.number];
+
  dynamic_array[ni.number - 1] = 543;
+

+
  // work around unused variable warnings
+
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
+
	  || dynamic_array[ni.number - 1] != 543);
+

+
  ;
+
  return 0;
+
}
+
_ACEOF
+
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
+
do
+
  CC="$ac_save_CC $ac_arg"
+
  if ac_fn_c_try_compile "$LINENO"; then :
+
  ac_cv_prog_cc_c99=$ac_arg
+
fi
+
rm -f core conftest.err conftest.$ac_objext
+
  test "x$ac_cv_prog_cc_c99" != "xno" && break
+
done
+
rm -f conftest.$ac_ext
+
CC=$ac_save_CC
+

+
fi
+
# AC_CACHE_VAL
+
case "x$ac_cv_prog_cc_c99" in
+
  x)
+
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+
$as_echo "none needed" >&6; } ;;
+
  xno)
+
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+
$as_echo "unsupported" >&6; } ;;
+
  *)
+
    CC="$CC $ac_cv_prog_cc_c99"
+
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
+
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
+
esac
+
if test "x$ac_cv_prog_cc_c99" != xno; then :
+
  
+
fi
+

+

case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
modified autom4te.cache/requests
@@ -56,8 +56,8 @@
                        '_m4_warn' => 1,
                        'AC_LIBTOOL_OBJDIR' => 1,
                        'gl_FUNC_ARGZ' => 1,
-
                        'AM_SANITY_CHECK' => 1,
                        'LTOBSOLETE_VERSION' => 1,
+
                        'AM_SANITY_CHECK' => 1,
                        'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1,
                        'AC_LIBTOOL_PROG_COMPILER_PIC' => 1,
                        'LT_LIB_M' => 1,
@@ -74,17 +74,17 @@
                        '_LT_AC_LANG_F77' => 1,
                        'AC_LIBTOOL_CONFIG' => 1,
                        'AC_CONFIG_MACRO_DIR' => 1,
-
                        'AC_LTDL_DLLIB' => 1,
                        '_AM_SUBST_NOTMAKE' => 1,
+
                        'AC_LTDL_DLLIB' => 1,
                        '_AM_AUTOCONF_VERSION' => 1,
                        'AM_DISABLE_SHARED' => 1,
                        '_LT_PROG_ECHO_BACKSLASH' => 1,
                        '_LTDL_SETUP' => 1,
-
                        'AM_PROG_LIBTOOL' => 1,
                        '_LT_AC_LANG_CXX' => 1,
-
                        'AM_PROG_LD' => 1,
-
                        '_LT_AC_FILE_LTDLL_C' => 1,
+
                        'AM_PROG_LIBTOOL' => 1,
                        'AC_LIB_LTDL' => 1,
+
                        '_LT_AC_FILE_LTDLL_C' => 1,
+
                        'AM_PROG_LD' => 1,
                        'AU_DEFUN' => 1,
                        'AC_PROG_NM' => 1,
                        'AC_LIBTOOL_DLOPEN' => 1,
@@ -109,34 +109,34 @@
                        'AC_LTDL_OBJDIR' => 1,
                        '_LT_PATH_TOOL_PREFIX' => 1,
                        'AC_LIBTOOL_RC' => 1,
-
                        '_LT_AC_PROG_ECHO_BACKSLASH' => 1,
-
                        'AC_DISABLE_FAST_INSTALL' => 1,
                        'AM_SILENT_RULES' => 1,
-
                        'include' => 1,
-
                        '_LT_AC_TRY_DLOPEN_SELF' => 1,
+
                        'AC_DISABLE_FAST_INSTALL' => 1,
+
                        '_LT_AC_PROG_ECHO_BACKSLASH' => 1,
                        '_LT_AC_SYS_LIBPATH_AIX' => 1,
+
                        '_LT_AC_TRY_DLOPEN_SELF' => 1,
+
                        'include' => 1,
                        'LT_AC_PROG_SED' => 1,
                        'AM_ENABLE_SHARED' => 1,
                        'LTDL_INSTALLABLE' => 1,
                        '_LT_AC_LANG_GCJ_CONFIG' => 1,
                        'AC_ENABLE_SHARED' => 1,
-
                        '_LT_REQUIRED_DARWIN_CHECKS' => 1,
-
                        'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1,
                        'AC_ENABLE_STATIC' => 1,
-
                        '_LT_AC_TAGVAR' => 1,
+
                        'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1,
+
                        '_LT_REQUIRED_DARWIN_CHECKS' => 1,
                        'AM_PROG_CC_C_O' => 1,
+
                        '_LT_AC_TAGVAR' => 1,
                        'AC_LIBTOOL_LANG_F77_CONFIG' => 1,
                        'AM_CONDITIONAL' => 1,
                        'LT_LIB_DLLOAD' => 1,
-
                        'LTVERSION_VERSION' => 1,
-
                        '_LT_PROG_CXX' => 1,
-
                        '_LT_PROG_F77' => 1,
                        'LTDL_INIT' => 1,
-
                        'm4_include' => 1,
+
                        '_LT_PROG_F77' => 1,
+
                        '_LT_PROG_CXX' => 1,
+
                        'LTVERSION_VERSION' => 1,
                        'AM_PROG_INSTALL_SH' => 1,
+
                        'm4_include' => 1,
                        'AC_PROG_EGREP' => 1,
-
                        'AC_PATH_MAGIC' => 1,
                        '_AC_AM_CONFIG_HEADER_HOOK' => 1,
+
                        'AC_PATH_MAGIC' => 1,
                        'AC_LTDL_SYSSEARCHPATH' => 1,
                        'AM_MAKE_INCLUDE' => 1,
                        'LT_CMD_MAX_LEN' => 1,
@@ -171,24 +171,24 @@
                        '_AC_PROG_LIBTOOL' => 1,
                        '_AM_IF_OPTION' => 1,
                        'AC_PATH_TOOL_PREFIX' => 1,
-
                        'm4_pattern_allow' => 1,
                        'AC_LIBTOOL_F77' => 1,
+
                        'm4_pattern_allow' => 1,
                        'AM_SET_LEADING_DOT' => 1,
-
                        '_LT_PROG_FC' => 1,
                        'LT_AC_PROG_EGREP' => 1,
+
                        '_LT_PROG_FC' => 1,
                        '_AM_DEPENDENCIES' => 1,
                        'AC_LIBTOOL_LANG_C_CONFIG' => 1,
                        'LTOPTIONS_VERSION' => 1,
                        '_LT_AC_SYS_COMPILER' => 1,
-
                        'AM_PROG_NM' => 1,
                        '_AM_PROG_CC_C_O' => 1,
+
                        'AM_PROG_NM' => 1,
                        'AC_LIBLTDL_CONVENIENCE' => 1,
                        'AC_DEPLIBS_CHECK_METHOD' => 1,
-
                        'AC_LIBLTDL_INSTALLABLE' => 1,
                        'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1,
+
                        'AC_LIBLTDL_INSTALLABLE' => 1,
                        'AC_LTDL_ENABLE_INSTALL' => 1,
-
                        'LT_PROG_GCJ' => 1,
                        'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1,
+
                        'LT_PROG_GCJ' => 1,
                        'AM_INIT_AUTOMAKE' => 1,
                        'AC_DISABLE_STATIC' => 1,
                        'LT_PATH_NM' => 1,
@@ -197,26 +197,26 @@
                        '_LT_AC_LANG_RC_CONFIG' => 1,
                        'LT_PROG_GO' => 1,
                        'LT_SYS_MODULE_PATH' => 1,
-
                        'LT_WITH_LTDL' => 1,
                        'AC_LIBTOOL_POSTDEP_PREDEP' => 1,
+
                        'LT_WITH_LTDL' => 1,
                        'AC_LTDL_SHLIBPATH' => 1,
                        'AM_AUX_DIR_EXPAND' => 1,
-
                        'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1,
                        '_LT_AC_LANG_F77_CONFIG' => 1,
-
                        '_LT_COMPILER_OPTION' => 1,
+
                        'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1,
                        '_AM_SET_OPTIONS' => 1,
-
                        'AM_RUN_LOG' => 1,
+
                        '_LT_COMPILER_OPTION' => 1,
                        '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1,
-
                        'AC_LIBTOOL_PICMODE' => 1,
-
                        'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1,
+
                        'AM_RUN_LOG' => 1,
                        'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1,
-
                        'AC_CHECK_LIBM' => 1,
+
                        'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1,
+
                        'AC_LIBTOOL_PICMODE' => 1,
                        'LT_PATH_LD' => 1,
+
                        'AC_CHECK_LIBM' => 1,
                        'AC_LIBTOOL_SYS_LIB_STRIP' => 1,
                        '_AM_MANGLE_OPTION' => 1,
-
                        'AC_CONFIG_MACRO_DIR_TRACE' => 1,
-
                        'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1,
                        'AC_LTDL_SYMBOL_USCORE' => 1,
+
                        'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1,
+
                        'AC_CONFIG_MACRO_DIR_TRACE' => 1,
                        'AM_SET_DEPDIR' => 1,
                        '_LT_CC_BASENAME' => 1,
                        '_LT_LIBOBJ' => 1
@@ -234,59 +234,59 @@
                        'configure.ac'
                      ],
                      {
-
                        'AM_PROG_F77_C_O' => 1,
                        '_LT_AC_TAGCONFIG' => 1,
-
                        'AC_INIT' => 1,
+
                        'AM_PROG_F77_C_O' => 1,
                        'm4_pattern_forbid' => 1,
-
                        'AC_CANONICAL_TARGET' => 1,
+
                        'AC_INIT' => 1,
                        '_AM_COND_IF' => 1,
-
                        'AC_CONFIG_LIBOBJ_DIR' => 1,
+
                        'AC_CANONICAL_TARGET' => 1,
                        'AC_SUBST' => 1,
+
                        'AC_CONFIG_LIBOBJ_DIR' => 1,
                        'AM_EXTRA_RECURSIVE_TARGETS' => 1,
-
                        'AC_CANONICAL_HOST' => 1,
                        'AC_FC_SRCEXT' => 1,
+
                        'AC_CANONICAL_HOST' => 1,
                        'AC_PROG_LIBTOOL' => 1,
                        'AM_PROG_MKDIR_P' => 1,
                        'AM_INIT_AUTOMAKE' => 1,
-
                        'AC_CONFIG_SUBDIRS' => 1,
                        'AM_PATH_GUILE' => 1,
+
                        'AC_CONFIG_SUBDIRS' => 1,
                        'AM_AUTOMAKE_VERSION' => 1,
                        'LT_CONFIG_LTDL_DIR' => 1,
-
                        'AC_CONFIG_LINKS' => 1,
                        'AC_REQUIRE_AUX_FILE' => 1,
-
                        'LT_SUPPORTED_TAG' => 1,
+
                        'AC_CONFIG_LINKS' => 1,
                        'm4_sinclude' => 1,
+
                        'LT_SUPPORTED_TAG' => 1,
                        'AM_MAINTAINER_MODE' => 1,
                        'AM_NLS' => 1,
                        'AC_FC_PP_DEFINE' => 1,
                        'AM_GNU_GETTEXT_INTL_SUBDIR' => 1,
-
                        '_m4_warn' => 1,
                        'AM_MAKEFILE_INCLUDE' => 1,
+
                        '_m4_warn' => 1,
                        'AM_PROG_CXX_C_O' => 1,
-
                        '_AM_MAKEFILE_INCLUDE' => 1,
                        '_AM_COND_ENDIF' => 1,
+
                        '_AM_MAKEFILE_INCLUDE' => 1,
                        'AM_ENABLE_MULTILIB' => 1,
-
                        'AM_SILENT_RULES' => 1,
                        'AM_PROG_MOC' => 1,
+
                        'AM_SILENT_RULES' => 1,
                        'AC_CONFIG_FILES' => 1,
-
                        'include' => 1,
                        'LT_INIT' => 1,
-
                        'AM_GNU_GETTEXT' => 1,
+
                        'include' => 1,
                        'AM_PROG_AR' => 1,
+
                        'AM_GNU_GETTEXT' => 1,
                        'AC_LIBSOURCE' => 1,
-
                        'AC_CANONICAL_BUILD' => 1,
                        'AM_PROG_FC_C_O' => 1,
+
                        'AC_CANONICAL_BUILD' => 1,
                        'AC_FC_FREEFORM' => 1,
-
                        'AC_FC_PP_SRCEXT' => 1,
                        'AH_OUTPUT' => 1,
-
                        'AC_CONFIG_AUX_DIR' => 1,
+
                        'AC_FC_PP_SRCEXT' => 1,
                        '_AM_SUBST_NOTMAKE' => 1,
-
                        'm4_pattern_allow' => 1,
-
                        'AM_PROG_CC_C_O' => 1,
+
                        'AC_CONFIG_AUX_DIR' => 1,
                        'sinclude' => 1,
-
                        'AM_CONDITIONAL' => 1,
-
                        'AC_CANONICAL_SYSTEM' => 1,
+
                        'AM_PROG_CC_C_O' => 1,
+
                        'm4_pattern_allow' => 1,
                        'AM_XGETTEXT_OPTION' => 1,
+
                        'AC_CANONICAL_SYSTEM' => 1,
+
                        'AM_CONDITIONAL' => 1,
                        'AC_CONFIG_HEADERS' => 1,
                        'AC_DEFINE_TRACE_LITERAL' => 1,
                        'AM_POT_TOOLS' => 1,
modified configure
@@ -2855,6 +2855,69 @@ fi
AM_BACKSLASH='\'


+
DEPDIR="${am__leading_dot}deps"
+

+
ac_config_commands="$ac_config_commands depfiles"
+

+

+
am_make=${MAKE-make}
+
cat > confinc << 'END'
+
am__doit:
+
	@echo this is the am__doit target
+
.PHONY: am__doit
+
END
+
# If we don't find an include directive, just comment out the code.
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
+
$as_echo_n "checking for style of include used by $am_make... " >&6; }
+
am__include="#"
+
am__quote=
+
_am_result=none
+
# First try GNU make style include.
+
echo "include confinc" > confmf
+
# Ignore all kinds of additional output from 'make'.
+
case `$am_make -s -f confmf 2> /dev/null` in #(
+
*the\ am__doit\ target*)
+
  am__include=include
+
  am__quote=
+
  _am_result=GNU
+
  ;;
+
esac
+
# Now try BSD make style include.
+
if test "$am__include" = "#"; then
+
   echo '.include "confinc"' > confmf
+
   case `$am_make -s -f confmf 2> /dev/null` in #(
+
   *the\ am__doit\ target*)
+
     am__include=.include
+
     am__quote="\""
+
     _am_result=BSD
+
     ;;
+
   esac
+
fi
+

+

+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
+
$as_echo "$_am_result" >&6; }
+
rm -f confinc confmf
+

+
# Check whether --enable-dependency-tracking was given.
+
if test "${enable_dependency_tracking+set}" = set; then :
+
  enableval=$enable_dependency_tracking;
+
fi
+

+
if test "x$enable_dependency_tracking" != xno; then
+
  am_depcomp="$ac_aux_dir/depcomp"
+
  AMDEPBACKSLASH='\'
+
  am__nodep='_no'
+
fi
+
 if test "x$enable_dependency_tracking" != xno; then
+
  AMDEP_TRUE=
+
  AMDEP_FALSE='#'
+
else
+
  AMDEP_TRUE='#'
+
  AMDEP_FALSE=
+
fi
+

+

ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3702,69 +3765,6 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

-
DEPDIR="${am__leading_dot}deps"
-

-
ac_config_commands="$ac_config_commands depfiles"
-

-

-
am_make=${MAKE-make}
-
cat > confinc << 'END'
-
am__doit:
-
	@echo this is the am__doit target
-
.PHONY: am__doit
-
END
-
# If we don't find an include directive, just comment out the code.
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
-
$as_echo_n "checking for style of include used by $am_make... " >&6; }
-
am__include="#"
-
am__quote=
-
_am_result=none
-
# First try GNU make style include.
-
echo "include confinc" > confmf
-
# Ignore all kinds of additional output from 'make'.
-
case `$am_make -s -f confmf 2> /dev/null` in #(
-
*the\ am__doit\ target*)
-
  am__include=include
-
  am__quote=
-
  _am_result=GNU
-
  ;;
-
esac
-
# Now try BSD make style include.
-
if test "$am__include" = "#"; then
-
   echo '.include "confinc"' > confmf
-
   case `$am_make -s -f confmf 2> /dev/null` in #(
-
   *the\ am__doit\ target*)
-
     am__include=.include
-
     am__quote="\""
-
     _am_result=BSD
-
     ;;
-
   esac
-
fi
-

-

-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
-
$as_echo "$_am_result" >&6; }
-
rm -f confinc confmf
-

-
# Check whether --enable-dependency-tracking was given.
-
if test "${enable_dependency_tracking+set}" = set; then :
-
  enableval=$enable_dependency_tracking;
-
fi
-

-
if test "x$enable_dependency_tracking" != xno; then
-
  am_depcomp="$ac_aux_dir/depcomp"
-
  AMDEPBACKSLASH='\'
-
  am__nodep='_no'
-
fi
-
 if test "x$enable_dependency_tracking" != xno; then
-
  AMDEP_TRUE=
-
  AMDEP_FALSE='#'
-
else
-
  AMDEP_TRUE='#'
-
  AMDEP_FALSE=
-
fi
-

-


depcc="$CC"   am_compiler_list=

@@ -3894,6 +3894,183 @@ else
fi


+
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
+
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
+
if ${ac_cv_prog_cc_c99+:} false; then :
+
  $as_echo_n "(cached) " >&6
+
else
+
  ac_cv_prog_cc_c99=no
+
ac_save_CC=$CC
+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+
/* end confdefs.h.  */
+
#include <stdarg.h>
+
#include <stdbool.h>
+
#include <stdlib.h>
+
#include <wchar.h>
+
#include <stdio.h>
+

+
// Check varargs macros.  These examples are taken from C99 6.10.3.5.
+
#define debug(...) fprintf (stderr, __VA_ARGS__)
+
#define showlist(...) puts (#__VA_ARGS__)
+
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
+
static void
+
test_varargs_macros (void)
+
{
+
  int x = 1234;
+
  int y = 5678;
+
  debug ("Flag");
+
  debug ("X = %d\n", x);
+
  showlist (The first, second, and third items.);
+
  report (x>y, "x is %d but y is %d", x, y);
+
}
+

+
// Check long long types.
+
#define BIG64 18446744073709551615ull
+
#define BIG32 4294967295ul
+
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
+
#if !BIG_OK
+
  your preprocessor is broken;
+
#endif
+
#if BIG_OK
+
#else
+
  your preprocessor is broken;
+
#endif
+
static long long int bignum = -9223372036854775807LL;
+
static unsigned long long int ubignum = BIG64;
+

+
struct incomplete_array
+
{
+
  int datasize;
+
  double data[];
+
};
+

+
struct named_init {
+
  int number;
+
  const wchar_t *name;
+
  double average;
+
};
+

+
typedef const char *ccp;
+

+
static inline int
+
test_restrict (ccp restrict text)
+
{
+
  // See if C++-style comments work.
+
  // Iterate through items via the restricted pointer.
+
  // Also check for declarations in for loops.
+
  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
+
    continue;
+
  return 0;
+
}
+

+
// Check varargs and va_copy.
+
static void
+
test_varargs (const char *format, ...)
+
{
+
  va_list args;
+
  va_start (args, format);
+
  va_list args_copy;
+
  va_copy (args_copy, args);
+

+
  const char *str;
+
  int number;
+
  float fnumber;
+

+
  while (*format)
+
    {
+
      switch (*format++)
+
	{
+
	case 's': // string
+
	  str = va_arg (args_copy, const char *);
+
	  break;
+
	case 'd': // int
+
	  number = va_arg (args_copy, int);
+
	  break;
+
	case 'f': // float
+
	  fnumber = va_arg (args_copy, double);
+
	  break;
+
	default:
+
	  break;
+
	}
+
    }
+
  va_end (args_copy);
+
  va_end (args);
+
}
+

+
int
+
main ()
+
{
+

+
  // Check bool.
+
  _Bool success = false;
+

+
  // Check restrict.
+
  if (test_restrict ("String literal") == 0)
+
    success = true;
+
  char *restrict newvar = "Another string";
+

+
  // Check varargs.
+
  test_varargs ("s, d' f .", "string", 65, 34.234);
+
  test_varargs_macros ();
+

+
  // Check flexible array members.
+
  struct incomplete_array *ia =
+
    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
+
  ia->datasize = 10;
+
  for (int i = 0; i < ia->datasize; ++i)
+
    ia->data[i] = i * 1.234;
+

+
  // Check named initializers.
+
  struct named_init ni = {
+
    .number = 34,
+
    .name = L"Test wide string",
+
    .average = 543.34343,
+
  };
+

+
  ni.number = 58;
+

+
  int dynamic_array[ni.number];
+
  dynamic_array[ni.number - 1] = 543;
+

+
  // work around unused variable warnings
+
  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
+
	  || dynamic_array[ni.number - 1] != 543);
+

+
  ;
+
  return 0;
+
}
+
_ACEOF
+
for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
+
do
+
  CC="$ac_save_CC $ac_arg"
+
  if ac_fn_c_try_compile "$LINENO"; then :
+
  ac_cv_prog_cc_c99=$ac_arg
+
fi
+
rm -f core conftest.err conftest.$ac_objext
+
  test "x$ac_cv_prog_cc_c99" != "xno" && break
+
done
+
rm -f conftest.$ac_ext
+
CC=$ac_save_CC
+

+
fi
+
# AC_CACHE_VAL
+
case "x$ac_cv_prog_cc_c99" in
+
  x)
+
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+
$as_echo "none needed" >&6; } ;;
+
  xno)
+
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+
$as_echo "unsupported" >&6; } ;;
+
  *)
+
    CC="$CC $ac_cv_prog_cc_c99"
+
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
+
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
+
esac
+
if test "x$ac_cv_prog_cc_c99" != xno; then :
+

+
fi
+

+

case `pwd` in
  *\ * | *\	*)
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
modified configure.ac
@@ -9,7 +9,7 @@ AC_CONFIG_SRCDIR([configure.ac])
AM_INIT_AUTOMAKE([1.11 foreign -Wno-portability no-dist-gzip dist-xz])
AM_SILENT_RULES([yes])

-
AC_PROG_CC()
+
AC_PROG_CC_C99()
LT_INIT()

AC_MSG_CHECKING([for git head])