-MDW_CHECK_MANYLIBS(gethostbyname, resolv nsl,,
- AC_MSG_ERROR([Resolver library not found]))
+dnl --- Set configuration directory ---
+
+AC_ARG_WITH([etcdir],
+[ --with-etcdir=PATH set directory for configuration and key files
+ [default is /etc/become]],
+[etcdir="$withval"], [etcdir="/etc/become"])
+AC_SUBST(etcdir)
+
+AC_ARG_WITH([pidfile],
+[ --with-pidfile=PATH set filename for pidfile
+ [default is ETCDIR/become/pid]],
+[pidfile="$withval"], [pidfile="${etcdir}/become.pid"])
+AC_SUBST(pidfile)
+
+AC_ARG_WITH([htmldir],
+[ --with-htmldir=PATH set directory for HTML documentation
+ [default is PREFIX/html/become]],
+[htmldir="$withval"], [htmldir='${prefix}/html/become'])
+AC_SUBST(htmldir)
+
+AH_TEMPLATE([ETCDIR], [Where Become should look for its configuration.])
+AH_TEMPLATE([file_PID], [Where Become should write its process-id.])
+mdw_DEFINE_PATHS([
+ mdw_DEFINE_PATH([ETCDIR], [$etcdir])
+ mdw_DEFINE_PATH([file_PID], [$pidfile])
+])