#!/bin/sh

if test ! -z "$CFLAGS" ; then
  printf '\n'
  printf '================================\n'
  printf 'WARNING:\n'
  printf '\n'
  printf '  Discarding "-Werror" from $CFLAGS\n'
  printf '  while configuring "src/libneon"\n'
  printf '\n'
  printf '================================\n'
  printf '\n'
  if printf '%s' "$CFLAGS" | grep -q -e -Werror ; then
     CFLAGS="$(printf '%s' "$CFLAGS" | sed -e 's/-Werror//g')"
  fi
fi


"$1" --with-ssl=no --with-included-expat --with-expat --disable-shared --enable-static
