Permalink
Browse files

Fixed configure script to pick cups group correctly

  • Loading branch information...
1 parent 36d30aa commit 669ede38347d80cd0166b34ab802facdbb992b7b @simoncadman committed Jan 15, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −2 configure
  2. +2 −2 configure.in
View
@@ -1907,10 +1907,10 @@ if test "${cupsgroup}" = ""; then
cupsgroupexists=`grep -w -c cups /etc/group`
if test "${cupsgroupexists}" = "0"; then
+ as_fn_error $? "cannot identify cups group, specify with --cupsgroup=something" "$LINENO" 5
+ else
cupsgroup="cups"
- else
- as_fn_error $? "cannot identify cups group, specify with --cupsgroup=something" "$LINENO" 5
fi
else
cupsgroup="lp"
View
@@ -24,9 +24,9 @@ if test "${cupsgroup}" = ""; then
if test "${lpgroupexists}" = "0"; then
AC_SUBST(cupsgroupexists, [`grep -w -c cups /etc/group`])
if test "${cupsgroupexists}" = "0"; then
- AC_SUBST(cupsgroup, "cups")
- else
AC_MSG_ERROR([cannot identify cups group, specify with --cupsgroup=something])
+ else
+ AC_SUBST(cupsgroup, "cups")
fi
else
AC_SUBST(cupsgroup, "lp")

0 comments on commit 669ede3

Please sign in to comment.