X-Git-Url: https://develop.uap-core.de/gitweb/uwplayer.git/blobdiff_plain/1e4681c09375d0a2aece4ebdcd4a3d5badee5fc6..5b86e784ed60d047c8d34dec15b35f62cfb1f8f8:/configure diff --git a/configure b/configure index 0207ee5..274ba9b 100755 --- a/configure +++ b/configure @@ -226,6 +226,34 @@ fi # DEPENDENCIES # +dependency_xft() +{ + printf "checking for xft... " + # dependency xft + while true + do + if [ -z "$PKG_CONFIG" ]; then + break + fi + $PKG_CONFIG xft + if [ $? -ne 0 ] ; then + break + fi + CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xft`" + LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs xft`" + $PKG_CONFIG fontconfig + if [ $? -ne 0 ] ; then + break + fi + CFLAGS="$CFLAGS `$PKG_CONFIG --cflags fontconfig`" + LDFLAGS="$LDFLAGS `$PKG_CONFIG --libs fontconfig`" + echo yes + return 0 + done + + echo no + return 1 +} dependency_motif() { printf "checking for motif... " @@ -329,6 +357,11 @@ if [ $? -ne 0 ]; then DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED motif " ERROR=1 fi +dependency_xft +if [ $? -ne 0 ]; then + DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED xft " + ERROR=1 +fi # Features