Index: server/common/oursrc/execsys/Makefile.in
===================================================================
--- server/common/oursrc/execsys/Makefile.in	(revision 35)
+++ server/common/oursrc/execsys/Makefile.in	(revision 36)
@@ -12,9 +12,2 @@
 clean:
 	rm -f staticsys-cat
-
-preauto: clean
-	rm -f configure config.* Makefile
-	rm -rf auto*.cache
-
-ready: preauto
-	autoconf
Index: server/common/oursrc/execsys/mrproper
===================================================================
--- server/common/oursrc/execsys/mrproper	(revision 36)
+++ server/common/oursrc/execsys/mrproper	(revision 36)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+rm -f staticsys-cat
+rm -f configure config.* Makefile
+rm -rf auto*.cache
Index: server/common/oursrc/lockeradm/Makefile.in
===================================================================
--- server/common/oursrc/lockeradm/Makefile.in	(revision 35)
+++ server/common/oursrc/lockeradm/Makefile.in	(revision 36)
@@ -10,9 +10,2 @@
 clean:
 	rm -f signup-scripts-frontend
-
-preauto: clean
-	rm -f configure config.* Makefile admof signup-scripts-backend
-	rm -rf auto*.cache
-
-ready: preauto
-	autoconf
Index: server/common/oursrc/lockeradm/configure.in
===================================================================
--- server/common/oursrc/lockeradm/configure.in	(revision 35)
+++ server/common/oursrc/lockeradm/configure.in	(revision 36)
@@ -5,8 +5,25 @@
 dnl Needed by admof.in
 
-AC_PATH_PROG(fs_path, fs)
+AC_ARG_WITH(fs,
+[  --with-fs[=PATH]          fs is located at PATH],[
+  if test "$withval" != "no" -a "$withval" != "yes"; then
+    fs_path="$withval"
+  fi
+])
 AC_SUBST(fs_path)
-AC_PATH_PROG(pts_path, pts)
+if test "$fs_path" = ""; then
+        AC_ERROR(Cannot find fs)
+fi
+
+AC_ARG_WITH(pts,
+[  --with-pts[=PATH]         pts is located at PATH],[
+  if test "$withval" != "no" -a "$withval" != "yes"; then
+    pts_path="$withval"
+  fi
+])
 AC_SUBST(pts_path)
+if test "$pts_path" = ""; then
+        AC_ERROR(Cannot find pts)
+fi
 
 dnl Needed by signup-scripts-backend.in
@@ -14,23 +31,48 @@
 AC_PATH_PROG(ls_path, ls)
 AC_SUBST(ls_path)
+if test "$ls_path" = ""; then
+	AC_ERROR(Cannot find ls)
+fi
 AC_PATH_PROG(grep_path, grep)
 AC_SUBST(grep_path)
+if test "$grep_path" = ""; then
+	AC_ERROR(Cannot find grep)
+fi
 
 AC_PATH_PROG(sudo_path, sudo)
 AC_SUBST(sudo_path)
+if test "$sudo_path" = ""; then
+	AC_ERROR(Cannot find sudo)
+fi
 AC_PATH_PROG(useradd_path, useradd)
 AC_SUBST(useradd_path)
+if test "$useradd_path" = ""; then
+	AC_ERROR(Cannot find useradd)
+fi
 AC_PATH_PROG(groupadd_path, groupadd)
 AC_SUBST(groupadd_path)
+if test "$groupadd_path" = ""; then
+	AC_ERROR(Cannot find groupadd)
+fi
+
 AC_PATH_PROG(setquota_path, setquota)
 AC_SUBST(setquota_path)
+if test "$setquota_path" = ""; then
+	AC_ERROR(Cannot find setquota)
+fi
 
 AC_PATH_PROG(hesinfo_path, hesinfo)
 AC_SUBST(hesinfo_path)
+if test "$hesinfo_path" = ""; then
+	AC_ERROR(Cannot find hesinfo)
+fi
 
 dnl Needed by modbash.in
 
 AC_PATH_PROG(bash_path, bash)
-AC_SUBST(bash)
+AC_SUBST(bash_path)
+if test "$bash_path" = ""; then
+	AC_ERROR(Cannot find bash)
+fi
 
 AC_OUTPUT(Makefile)
Index: server/common/oursrc/lockeradm/mrproper
===================================================================
--- server/common/oursrc/lockeradm/mrproper	(revision 36)
+++ server/common/oursrc/lockeradm/mrproper	(revision 36)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+rm -f signup-scripts-frontend
+rm -f configure config.* Makefile admof signup-scripts-backend
+rm -rf auto*.cache
Index: server/common/oursrc/sqladm/Makefile.in
===================================================================
--- server/common/oursrc/sqladm/Makefile.in	(revision 35)
+++ server/common/oursrc/sqladm/Makefile.in	(revision 36)
@@ -10,9 +10,2 @@
 clean:
 	rm -f signup-sql
-
-preauto: clean
-	rm -f configure config.* Makefile signup-sql
-	rm -rf auto*.cache
-
-ready: preauto
-	autoconf
Index: server/common/oursrc/sqladm/mrproper
===================================================================
--- server/common/oursrc/sqladm/mrproper	(revision 36)
+++ server/common/oursrc/sqladm/mrproper	(revision 36)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+rm -f signup-sql
+rm -f configure config.* Makefile signup-sql
+rm -rf auto*.cache
Index: server/common/oursrc/tokensys/Makefile.in
===================================================================
--- server/common/oursrc/tokensys/Makefile.in	(revision 35)
+++ server/common/oursrc/tokensys/Makefile.in	(revision 36)
@@ -2,9 +2,2 @@
 CFLAGS = @CFLAGS@
 prefix = @prefix@
-
-preauto: 
-	rm -f configure config.* Makefile renew
-	rm -rf auto*.cache
-
-ready: preauto
-	autoconf
Index: server/common/oursrc/tokensys/configure.in
===================================================================
--- server/common/oursrc/tokensys/configure.in	(revision 35)
+++ server/common/oursrc/tokensys/configure.in	(revision 36)
@@ -1,9 +1,25 @@
 AC_INIT()
 
-AC_PATH_PROG(kinit_path, kinit)
+AC_ARG_WITH(kinit,
+[  --with-kinit[=PATH]       kinit is located at PATH],[
+  if test "$withval" != "no" -a "$withval" != "yes"; then
+    kinit_path="$withval"
+  fi
+])
 AC_SUBST(kinit_path)
+if test "$kinit_path" = ""; then
+        AC_ERROR(Cannot find kinit)
+fi
 
-AC_PATH_PROG(aklog_path, aklog)
+AC_ARG_WITH(aklog,
+[  --with-aklog[=PATH]       aklog is located at PATH],[
+  if test "$withval" != "no" -a "$withval" != "yes"; then
+    aklog_path="$withval"
+  fi
+])
 AC_SUBST(aklog_path)
+if test "$aklog_path" = ""; then
+        AC_ERROR(Cannot find aklog)
+fi
 
 AC_OUTPUT(Makefile)
Index: server/common/oursrc/tokensys/mrproper
===================================================================
--- server/common/oursrc/tokensys/mrproper	(revision 36)
+++ server/common/oursrc/tokensys/mrproper	(revision 36)
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+rm -f configure config.* Makefile renew
+rm -rf auto*.cache
