1 dnl $Id: webmin.m4,v 1.1 2009-10-22 08:36:30 franklahm Exp $
2 dnl Autoconf macro to install webmin + netatalk webmin module
4 AC_DEFUN([NETATALK_WEBMIN],[
6 [ --with-webmin=PATH path where webmin is installed [[$PKGCONFDIR/webmin]]],
7 if test "x$withval" = "xyes"; then
8 webminpath="$PKGCONFDIR"
9 elif test "x$withval" = "xno"; then
16 AC_ARG_WITH(webminuser,
17 [ --with-webminuser=NAME name for the webmin admin user],
18 if test "x$withval" = "xyes"; then
20 elif test "x$withval" = "xno"; then
27 AC_ARG_WITH(webminversion,
28 [ --with-webminversion=VERSION Webmin version to fetch from sf.net [[1.490]]],
29 if test "x$withval" = "xyes"; then
31 elif test "x$withval" = "xno"; then
32 webminversions="1.490"
34 webminversion="$withval"
38 AC_ARG_WITH(webminpass,
39 [ --with-webminpass=PASSWORD password for the webmin admin user],
40 if test "x$withval" = "xyes"; then
42 elif test "x$withval" = "xno"; then
49 AC_ARG_WITH(webminport,
50 [ --with-webminport=PORT TCP port for webmin],
51 if test "x$withval" = "xyes"; then
53 elif test "x$withval" = "xno"; then
60 AC_MSG_CHECKING([if webmin administration shall be installed])
61 if test "x$webminpath" != "x" &&
62 test "x$webminuser" != "x" &&
63 test "x$webminpass" != "x" &&
64 test "x$webminport" != "x" &&
65 test "x$webminversion" != "x"; then
67 AC_MSG_CHECKING([if neccessary Perl module 'Net::SSLeay' is installed])
68 $ac_cv_path_PERL -e 'use Net::SSLeay' >/dev/null 2>/dev/null
69 if test "$?" != "0" ; then
74 AC_MSG_NOTICE([Installing Webmin in "$webminpath/webmin"])
80 AC_SUBST(WEBMIN_PATH, $webminpath)
81 AC_SUBST(WEBMIN_VERSION, $webminversion)
82 AC_SUBST(WEBMIN_USER, $webminuser)
83 AC_SUBST(WEBMIN_PASS, $webminpass)
84 AC_SUBST(WEBMIN_PORT, $webminport)