AC_INIT(http_getter.pl.in) PACKAGE=helm_http_getter 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 AC_CHECK_PROG(HAVE_HELM_CONFIG, helm-config, yes, no) if test $HAVE_HELM_CONFIG = no; then AC_MSG_ERROR(helm-config not found) fi dnl MISSING CHECKS: dnl perl-libwww-perl, perl-URI, MIME-Base64, perl-HTML-Parser, perl-XML-Parser, more... DEFAULT_HELM_LIB_DIR=`helm-config --lib-dir` AC_MSG_CHECKING("for configuration.pl") if test ! -f $DEFAULT_HELM_LIB_DIR/configuration.pl; then AC_MSG_ERROR(Could not find configuration.pl in $DEFAULT_HELM_LIB_DIR, please check your installation) fi AC_MSG_RESULT(in $DEFAULT_HELM_LIB_DIR) AC_PATH_PROG(PERL_BINARY, perl, no) if test $PERL_BINARY = no ; then AC_MSG_ERROR(Could not find perl) fi AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(RESOLVED_PREFIX) AC_SUBST(RESOLVED_EXEC_PREFIX) AC_SUBST(DEFAULT_HELM_LIB_DIR) AC_SUBST(PERL_BINARY) AC_OUTPUT([ Makefile http_getter.pl helm_http_getter.spec ], chmod +x http_getter.pl)