Lines 3574-3648
Link Here
|
3574 |
CFLAGS="$CFLAGS -Wall" |
3574 |
CFLAGS="$CFLAGS -Wall" |
3575 |
fi |
3575 |
fi |
3576 |
|
3576 |
|
3577 |
#---------------------------------------------------------------------- |
3577 |
ENABLE_USER="simscan" |
3578 |
# Check whether --enable-user or --disable-user was given. |
|
|
3579 |
if test "${enable_user+set}" = set; then |
3580 |
enableval="$enable_user" |
3581 |
ENABLE_USER="$enableval" |
3582 |
else |
3583 |
|
3584 |
ENABLE_USER="simscan" |
3585 |
|
3586 |
fi; |
3587 |
|
3588 |
echo "$as_me:$LINENO: checking whether the $ENABLE_USER user exists" >&5 |
3589 |
echo $ECHO_N "checking whether the $ENABLE_USER user exists... $ECHO_C" >&6 |
3590 |
if test "$cross_compiling" = yes; then |
3591 |
echo "$as_me:$LINENO: result: no" >&5 |
3592 |
echo "${ECHO_T}no" >&6 |
3593 |
{ { echo "$as_me:$LINENO: error: could not find the $ENABLE_USER user. Please add the $ENABLE_USER user and try again." >&5 |
3594 |
echo "$as_me: error: could not find the $ENABLE_USER user. Please add the $ENABLE_USER user and try again." >&2;} |
3595 |
{ (exit 1); exit 1; }; } |
3596 |
|
3597 |
else |
3598 |
cat >conftest.$ac_ext <<_ACEOF |
3599 |
#line $LINENO "configure" |
3600 |
/* confdefs.h. */ |
3601 |
_ACEOF |
3602 |
cat confdefs.h >>conftest.$ac_ext |
3603 |
cat >>conftest.$ac_ext <<_ACEOF |
3604 |
/* end confdefs.h. */ |
3605 |
|
3606 |
#include <pwd.h> |
3607 |
|
3608 |
int main() { |
3609 |
struct passwd *pw; |
3610 |
if (( pw=getpwnam("$ENABLE_USER")) != 0 ) return 0; |
3611 |
else return 1; |
3612 |
return -1; |
3613 |
} |
3614 |
|
3615 |
_ACEOF |
3616 |
rm -f conftest$ac_exeext |
3617 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3618 |
(eval $ac_link) 2>&5 |
3619 |
ac_status=$? |
3620 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3621 |
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3622 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3623 |
(eval $ac_try) 2>&5 |
3624 |
ac_status=$? |
3625 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3626 |
(exit $ac_status); }; }; then |
3627 |
echo "$as_me:$LINENO: result: yes" >&5 |
3628 |
echo "${ECHO_T}yes" >&6 |
3629 |
else |
3630 |
echo "$as_me: program exited with status $ac_status" >&5 |
3631 |
echo "$as_me: failed program was:" >&5 |
3632 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3633 |
|
3634 |
( exit $ac_status ) |
3635 |
echo "$as_me:$LINENO: result: no" >&5 |
3636 |
echo "${ECHO_T}no" >&6 |
3637 |
{ { echo "$as_me:$LINENO: error: could not find the $ENABLE_USER user. Please add the $ENABLE_USER user and try again." >&5 |
3638 |
echo "$as_me: error: could not find the $ENABLE_USER user. Please add the $ENABLE_USER user and try again." >&2;} |
3639 |
{ (exit 1); exit 1; }; } |
3640 |
fi |
3641 |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3642 |
fi |
3643 |
|
3644 |
|
3645 |
|
3646 |
|
3578 |
|
3647 |
#---------------------------------------------------------------------- |
3579 |
#---------------------------------------------------------------------- |
3648 |
VIRUSSCANNER=0 |
3580 |
VIRUSSCANNER=0 |