+ if test ! -z "$gtk_dir"; then
+ # canonicalize slashes.
+ foo=`echo "${gtk_dir}/bin" | sed 's@//*@/@g'`
+ xml_path="$foo:$xml_path"
+ fi
+
+ if test ! -z "$gnome_dir"; then
+ # canonicalize slashes.
+ foo=`echo "${gnome_dir}/bin" | sed 's@//*@/@g'`
+ xml_path="$foo:$xml_path"
+ fi
+
+ for ac_prog in xml2-config xml-config
+do
+# Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+echo "configure:7662: checking for $ac_word" >&5
+if eval "test \"`echo '$''{'ac_cv_path_xml_config'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ case "$xml_config" in
+ /*)
+ ac_cv_path_xml_config="$xml_config" # Let the user override the test with a path.
+ ;;
+ ?:/*)
+ ac_cv_path_xml_config="$xml_config" # Let the user override the test with a dos path.
+ ;;
+ *)
+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
+ ac_dummy="$xml_path"
+ for ac_dir in $ac_dummy; do
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$ac_word; then
+ ac_cv_path_xml_config="$ac_dir/$ac_word"
+ break
+ fi
+ done
+ IFS="$ac_save_ifs"
+ ;;
+esac
+fi
+xml_config="$ac_cv_path_xml_config"
+if test -n "$xml_config"; then
+ echo "$ac_t""$xml_config" 1>&6
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+test -n "$xml_config" && break
+done
+
+
+ # If we found the xml-config program, run it to get flags.
+ #
+ if test -n "$xml_config" ; then
+ echo $ac_n "checking for XML includes""... $ac_c" 1>&6
+echo "configure:7702: checking for XML includes" >&5
+if eval "test \"`echo '$''{'ac_cv_xml_config_cflags'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_cv_xml_config_cflags=`$xml_config --cflags`
+fi
+
+echo "$ac_t""$ac_cv_xml_config_cflags" 1>&6
+ echo $ac_n "checking for XML libs""... $ac_c" 1>&6
+echo "configure:7711: checking for XML libs" >&5
+if eval "test \"`echo '$''{'ac_cv_xml_config_libs'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_cv_xml_config_libs=`$xml_config --libs`
+fi
+
+echo "$ac_t""$ac_cv_xml_config_libs" 1>&6
+ ac_xml_config_cflags=$ac_cv_xml_config_cflags
+ ac_xml_config_libs=$ac_cv_xml_config_libs
+ fi
+
+ ac_save_xml_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $ac_xml_config_cflags"