diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-31 18:04:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-31 18:04:28 +0000 |
commit | f3fa149e507bf5cca1f499d48c780a4853e7b2c5 (patch) | |
tree | fc446fdc671ff5cba0874bb000ab7f2c378a36be /configure.ac | |
parent | dc994999f6702effb64e5bfc3eb727ee0f3723ef (diff) | |
download | gnunet-f3fa149e507bf5cca1f499d48c780a4853e7b2c5.tar.gz gnunet-f3fa149e507bf5cca1f499d48c780a4853e7b2c5.zip |
-allow installation even as non-root non-sudo user to succeed with new nss code
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c75b52f4c..2cc522bf6 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -766,7 +766,7 @@ AC_ARG_WITH(sudo, | |||
766 | ], | 766 | ], |
767 | [AC_MSG_RESULT([no])]) | 767 | [AC_MSG_RESULT([no])]) |
768 | AC_SUBST(SUDO_BINARY) | 768 | AC_SUBST(SUDO_BINARY) |
769 | 769 | AM_CONDITIONAL([HAVE_SUDO], [test "x$SUDO_BINARY" != "x" -o -w /]) | |
770 | 770 | ||
771 | # test for gnunetdns group name | 771 | # test for gnunetdns group name |
772 | GNUNETDNS_GROUP=gnunetdns | 772 | GNUNETDNS_GROUP=gnunetdns |
@@ -1104,6 +1104,11 @@ then | |||
1104 | AC_MSG_NOTICE([NOTICE: Mac OS X framework build enabled.]) | 1104 | AC_MSG_NOTICE([NOTICE: Mac OS X framework build enabled.]) |
1105 | fi | 1105 | fi |
1106 | 1106 | ||
1107 | if test "x$SUDO_BINARY" = "x" -a ! -w / | ||
1108 | then | ||
1109 | AC_MSG_NOTICE([NOTICE: --with-sudo not specified and not running as 'root', will not install GNS NSS library]) | ||
1110 | fi | ||
1111 | |||
1107 | AC_MSG_NOTICE([******************************************** | 1112 | AC_MSG_NOTICE([******************************************** |
1108 | You can compile GNUnet with | 1113 | You can compile GNUnet with |
1109 | make | 1114 | make |