7 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
9 DEFAULT_HELM_LIB_DIR=/usr/local/lib/helm
10 DEFAULT_HELM_STYLE_DIR=/usr/local/share/helm/style
14 [ --enable-defaults[=ARG] if yes then use defaults (don't ask user) [default=auto]],
15 USE_DEFAULTS=$enableval,
19 if test "x$prefix" != xNONE; then
20 RESOLVED_PREFIX=$prefix
22 RESOLVED_PREFIX=$ac_default_prefix
25 if test "x$exec_prefix" != xNONE; then
26 RESOLVED_EXEC_PREFIX=$exec_prefix
28 RESOLVED_EXEC_PREFIX=$RESOLVED_PREFIX
31 BIN_DIR=$RESOLVED_EXEC_PREFIX/bin
33 if test $USE_DEFAULTS = auto; then
34 AC_CHECK_PROG(HAVE_HELM_CONFIG, helm-config, yes, no)
35 if test $HAVE_HELM_CONFIG = yes; then
36 HELM_LIB_DIR=`helm-config --lib-dir`
37 HELM_STYLE_DIR=`helm-config --style-dir`
43 if test $USE_DEFAULTS = no; then
45 echo "\`helm-config' is not installed (or I can't find it in your path)."
46 echo "Please, insert the lib directory for HELM..."
48 echo -n "[[$DEFAULT_HELM_LIB_DIR]] ? "
50 if test "x$HELM_LIB_DIR" = "x"; then
51 HELM_LIB_DIR=$DEFAULT_HELM_LIB_DIR
54 echo "Please, insert the directory where I can find the stylesheets for HELM..."
56 echo -n "[[$DEFAULT_HELM_STYLE_DIR]] ? "
58 if test "x$HELM_STYLE_DIR" = "x"; then
59 HELM_STYLE_DIR=$DEFAULT_HELM_STYLE_DIR
61 elif test $USE_DEFAULTS = yes; then
62 HELM_LIB_DIR=$DEFAULT_HELM_LIB_DIR
63 HELM_STYLE_DIR=$DEFAULT_HELM_STYLE_DIR
66 AC_MSG_CHECKING(for the $HELM_LIB_DIR)
67 if test -d $HELM_LIB_DIR; then
71 AC_MSG_ERROR(please check your installation)
74 AC_MSG_CHECKING(for $HELM_STYLE_DIR)
75 if test -d $HELM_STYLE_DIR; then
79 AC_MSG_ERROR(please check your installation)
85 AC_SUBST(HELM_LIB_DIR)
86 AC_SUBST(HELM_STYLE_DIR)
92 ], chmod +x start-xaland)