+{ $as_echo "$as_me:$LINENO: checking for URW++ OTF files" >&5
+$as_echo_n "checking for URW++ OTF files... " >&6; }
+
+
+if test "$URWOTF_DIR" = ""; then
+ if test "$FCLIST" != ""; then
+ URWOTF_FILE=`$FCLIST "C059:fontformat=CFF" file | head -n 1`
+ if test "$URWOTF_FILE" != ""; then
+ URWOTF_FILE=`echo $URWOTF_FILE | sed 's/\(:.*\)$//g'`
+ URWOTF_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $URWOTF_FILE`
+ URWOTF_DIR=`$as_dirname -- $URWOTF_FILE ||
+$as_expr X$URWOTF_FILE : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X$URWOTF_FILE : 'X\(//\)[^/]' \| \
+ X$URWOTF_FILE : 'X\(//\)$' \| \
+ X$URWOTF_FILE : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X$URWOTF_FILE |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ fi
+ fi
+fi
+if test "$URWOTF_DIR" != "" ; then
+ for f in C059-BdIta.otf C059-Bold.otf \
+ C059-Italic.otf C059-Roman.otf \
+ NimbusMonoPS-Bold.otf NimbusMonoPS-BoldItalic.otf \
+ NimbusMonoPS-Italic.otf NimbusMonoPS-Regular.otf \
+ NimbusSans-Bold.otf NimbusSans-BoldOblique.otf \
+ NimbusSans-Oblique.otf NimbusSans-Regular.otf; do
+ if test ! -f "$URWOTF_DIR/$f"; then
+ MISSING_URWOTF_FILES="$MISSING_URWOTF_FILES $f"
+ else
+ URWOTF_FILES="$URWOTF_FILES $f"
+ fi
+ done
+fi
+if test "$URWOTF_DIR" = "" -o "$MISSING_URWOTF_FILES" != ""; then
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+
+ eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"URW++ OTF fonts\"`\"
+
+ if test "$URWOTF_DIR" = ""; then
+ if test "$FCLIST" = ""; then
+
+ eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(install the fc-list utility from FontConfig, or use --with-urwotf-dir)'\"`\"
+
+ else
+
+ eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \""(download OTF files from 'http://git.ghostscript.com/?p=urw-core35-fonts.git;a=commit;h=79bcdfb34fbce12b592cce389fa7a19da6b5b018' and put them under '~/.local/share/fonts' etc., or use --with-urwotf-dir)"\"`\"
+
+ fi
+ else
+
+ eval "OPTIONAL"=\"`eval echo \"'$'OPTIONAL\" \"'(these files are missing: $MISSING_URWOTF_FILES)'\"`\"
+
+ fi
+else
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+fi