#!/bin/sh # 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 PREFIX="--prefix=/usr/local" OPT_F="--with-freetype \ --with-freetype-includedir=${ROOT}/include/freetype \ --with-freetype-libdir=${ROOT}/lib" OPT_OPT="" OPTION="${OPT} ${OPT_F} ${OPT_OPT}" echo echo Run configure for ${machtype}... echo Running ./configure ${OPTION} echo rm -f config.cache ./configure ${OPTION} #EOF