#!/bin/sh
AC_PATH=/usr/share
[ -x "`which g++`" ] && CXX=g++
[ -x "`which clang++`" ] && CXX=clang++
case $( uname -s ) in
 Darwin)  alias vwlibtool=glibtoolize
	AC_PATH=/opt/local/share;;
 *)	alias vwlibtool=libtoolize;;
esac

vwlibtool -f -c && aclocal -I ./acinclude.d -I $AC_PATH/aclocal && autoheader && touch README && automake -ac -Woverride && autoconf && ./configure "$@" CXX=$CXX

#!/bin/sh
AC_PATH=/usr/share
[ -x "`which g++`" ] && CXX=g++
[ -x "`which clang++`" ] && CXX=clang++
case $( uname -s ) in
 Darwin)  alias vwlibtool=glibtoolize
	 if [ -d /opt/local/share ]; then
     AC_PATH="/opt/local/share"
  else
     AC_PATH="/usr/local/share"
  fi;;
 *)	alias vwlibtool=libtoolize;;
esac

vwlibtool -f -c && aclocal -I ./acinclude.d -I $AC_PATH/aclocal && autoheader && touch README && automake -ac -Woverride && autoconf && ./configure "$@" CXX=$CXX

Fix AC_PATH on mac os x with homebrew by default, homebrew installs into /usr/local, while the autoconfigure script looks in /opt/local for autotools. This commit tests for the existence of an /opt/local directory, then falls back onto /usr/local if none is found.
Fix AC_PATH on mac os x with homebrew
by default, homebrew installs into /usr/local, while the autoconfigure script looks in /opt/local for autotools. This commit tests for the existence of an /opt/local directory, then falls back onto /usr/local if none is found.
