#!/bin/sh 

echo "*** Autoconf/automake is deprecated for Openwsman"
echo "*** and might not fully work."
echo "*** Use cmake instead !"

UNAME=`uname`

mkdir -p m4

# Ouch, automake require this
cp README.md README

if [ "$UNAME" = "Darwin" ]; then
    LIBTOOLIZE=glibtoolize
else
    LIBTOOLIZE=libtoolize
fi

$LIBTOOLIZE --copy --force --automake
aclocal
autoheader
automake --add-missing --copy --foreign
autoconf

#!/bin/sh

cat <<EOS >&2
*** Autoconf/automake is deprecated for Openwsman and might not fully work.
*** Please use CMake instead!

EOS

if [ "$1" != "--ignore-deprecation-warning" ]; then
  cat <<EOS >&2
*** To ignore this warning and proceed regardless, re-run as follows:
***   $0 --ignore-deprecation-warning
EOS
  exit 1
fi

UNAME=`uname`

mkdir -p m4

# Ouch, automake require this
cp README.md README

if [ "$UNAME" = "Darwin" ]; then
    LIBTOOLIZE=glibtoolize
else
    LIBTOOLIZE=libtoolize
fi

$LIBTOOLIZE --copy --force --automake
aclocal
autoheader
automake --add-missing --copy --foreign
autoconf

Make deprecation of autoconf/automake more visible
Make deprecation of autoconf/automake more visible

Print the error/warning message to standard error and require the user
of the script to pass an additional argument to get past the warning
message, making it clearer that the autotools build system is deprecated
and building with CMake is strongly preferred.

Closes #88.
