#!/bin/sh

#
# Typical invocation of configure script
#
# Most of the case, you want to do this when configure VFlib.
#


machtype=`./config.guess`

case ${machtype} in
i386-*-freebsd*)
  ROOT=/usr/local
  ;;
*-*-linux*)
  ROOT=/usr
  OPT="--prefix=/usr"
  ;;
*)
  ROOT=/usr/local
  ;;
esac


OPT_K="--with-kpathsea \
       --with-kpathsea-includedir=${ROOT}/include \
       --with-kpathsea-libdir=${ROOT}/lib"
OPT_F="--with-freetype \
       --with-freetype-includedir=${ROOT}/include/freetype1/freetype \
       --with-freetype-libdir=${ROOT}/lib"
OPT_T="--with-t1lib \
       --with-t1lib-includedir=${ROOT}/include \
       --with-t1lib-libdir=${ROOT}/lib"
OPT_OPT=""

OPTION="${OPT} ${OPT_K} ${OPT_F} ${OPT_T} ${OPT_OPT}"

echo
echo Run configure for ${machtype}...
echo ./configure ${OPTION}
echo

rm -f config.cache 
./configure ${OPTION}


#EOF
