diff options
Diffstat (limited to 'config-scripts/cups-opsys.m4')
-rw-r--r-- | config-scripts/cups-opsys.m4 | 63 |
1 files changed, 3 insertions, 60 deletions
diff --git a/config-scripts/cups-opsys.m4 b/config-scripts/cups-opsys.m4 index b2b53126d..c5ce0335c 100644 --- a/config-scripts/cups-opsys.m4 +++ b/config-scripts/cups-opsys.m4 @@ -1,9 +1,9 @@ dnl -dnl "$Id: cups-opsys.m4 4960 2006-01-20 16:41:20Z mike $" +dnl "$Id: cups-opsys.m4 5075 2006-02-05 01:00:29Z mike $" dnl dnl Operating system stuff for the Common UNIX Printing System (CUPS). dnl -dnl Copyright 1997-2005 by Easy Software Products, all rights reserved. +dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the dnl property of Easy Software Products and are protected by Federal @@ -38,63 +38,6 @@ case "$uname" in ;; esac -dnl Determine the correct username and group for this OS... -AC_ARG_WITH(cups-user, [ --with-cups-user set default user for CUPS], - CUPS_USER="$withval", - AC_MSG_CHECKING(for default print user) - if test -f /etc/passwd; then - CUPS_USER="" - for user in lp lpd guest daemon nobody; do - if test "`grep \^${user}: /etc/passwd`" != ""; then - CUPS_USER="$user" - AC_MSG_RESULT($user) - break; - fi - done - - if test x$CUPS_USER = x; then - CUPS_USER="${USER:=nobody}" - AC_MSG_RESULT(not found, using "$CUPS_USER") - fi - else - CUPS_USER="${USER:=nobody}" - AC_MSG_RESULT(no password file, using "$CUPS_USER") - fi) - -AC_ARG_WITH(cups-group, [ --with-cups-group set default group for CUPS], - CUPS_GROUP="$withval", - AC_MSG_CHECKING(for default print group) - if test -f /etc/group; then - if test x$uname = xDarwin; then - GROUP_LIST="lp admin" - else - GROUP_LIST="lpadmin sys system root" - fi - - CUPS_GROUP="" - for group in $GROUP_LIST; do - if test "`grep \^${group}: /etc/group`" != ""; then - CUPS_GROUP="$group" - AC_MSG_RESULT($group) - break; - fi - done - - if test x$CUPS_GROUP = x; then - CUPS_GROUP="${GROUP:=nobody}" - AC_MSG_RESULT(not found, using "$CUPS_GROUP") - fi - else - CUPS_GROUP="${GROUP:=nobody}" - AC_MSG_RESULT(no group file, using "$CUPS_GROUP") - fi) - -AC_SUBST(CUPS_USER) -AC_SUBST(CUPS_GROUP) - -AC_DEFINE_UNQUOTED(CUPS_DEFAULT_USER, "$CUPS_USER") -AC_DEFINE_UNQUOTED(CUPS_DEFAULT_GROUP, "$CUPS_GROUP") - dnl -dnl "$Id: cups-opsys.m4 4960 2006-01-20 16:41:20Z mike $" +dnl "$Id: cups-opsys.m4 5075 2006-02-05 01:00:29Z mike $" dnl |