-AC_CHECK_PROG(HAVE_HELM_CONFIG, helm-config, yes, no)
-if test $HAVE_HELM_CONFIG = "no"; then
- AC_MSG_ERROR(Could not find helm-config)
+DEFAULTS=$USE_DEFAULTS
+if test $DEFAULTS = auto; then
+ AC_CHECK_PROG(HAVE_HELM_CONFIG, helm-config, yes, no)
+ if test $HAVE_HELM_CONFIG = yes; then
+ HELM_CONFIGURATION_DIR=`helm-config --etc-dir`
+ else
+ DEFAULTS=no
+ fi
+fi
+
+if test $DEFAULTS = no; then
+ echo
+ echo "\`helm-config' is not installed (or I can't find it in your path)."
+ echo "Please, insert the directory where I can find the configuration"
+ echo "files for HELM (configuration.xml in particular)..."
+ echo
+ echo -n "[[$DEFAULT_HELM_CONFIGURATION_DIR]] ? "
+ read HELM_CONFIGURATION_DIR
+ echo
+ if test "x$HELM_CONFIGURATION_DIR" = "x"; then
+ HELM_CONFIGURATION_DIR=$DEFAULT_HELM_CONFIGURATION_DIR
+ fi
+elif test $DEFAULTS = yes; then
+ HELM_CONFIGURATION_DIR=$DEFAULT_HELM_CONFIGURATION_DIR