AC_INIT(xaland.class) PACKAGE=helm_xsltd MAJOR_VERSION=0 MINOR_VERSION=0 MICRO_VERSION=1 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION if test "x$prefix" != xNONE; then RESOLVED_PREFIX=$prefix else RESOLVED_PREFIX=$ac_default_prefix fi if test "x$exec_prefix" != xNONE; then RESOLVED_EXEC_PREFIX=$exec_prefix else RESOLVED_EXEC_PREFIX=$RESOLVED_PREFIX fi BIN_DIR=$RESOLVED_EXEC_PREFIX/bin AC_CHECK_PROG(HAVE_HELM_CONFIG, helm-config, yes, no) if test $HAVE_HELM_CONFIG = no; then AC_MSG_ERROR(Could not fing helm-config) fi HELM_LIB_DIR=`helm-config --lib-dir` if test ! -d $HELM_LIB_DIR; then AC_MSG_ERROR(Could not find HELM lib directory, please check your installation) fi HELM_STYLES_DIR=`helm-config --style-dir` if test ! -d $HELM_STYLES_DIR; then AC_MSG_ERROR(Could not find stylesheet directory, please check your installation) fi AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(BIN_DIR) AC_SUBST(HELM_LIB_DIR) AC_SUBST(HELM_STYLES_DIR) AC_OUTPUT([ Makefile start-xaland helm_xsltd.spec ], chmod +x start-xaland)