],
[AC_MSG_RESULT([no])])
AC_SUBST(SUDO_BINARY)
-
+AM_CONDITIONAL([HAVE_SUDO], [test "x$SUDO_BINARY" != "x" -o -w /])
# test for gnunetdns group name
GNUNETDNS_GROUP=gnunetdns
AC_MSG_NOTICE([NOTICE: Mac OS X framework build enabled.])
fi
+if test "x$SUDO_BINARY" = "x" -a ! -w /
+then
+ AC_MSG_NOTICE([NOTICE: --with-sudo not specified and not running as 'root', will not install GNS NSS library])
+fi
+
AC_MSG_NOTICE([********************************************
You can compile GNUnet with
make
AM_LDFLAGS=-avoid-version -module -export-dynamic
+if HAVE_SUDO
nssdir = /lib/
+else
+nssdir = $(libdir)
+endif
+
LIBTOOL = $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool
if !MINGW
+if HAVE_SUDO
nss_LTLIBRARIES = \
libnss_gns.la \
libnss_gns4.la \
libnss_gns6.la
endif
+endif
sources = util.c util.h query.h query.c
#bin_PROGRAMS = \
# connection_watchdog
-check_PROGRAMS =
-
noinst_PROGRAMS = connection_watchdog
noinst_SCRIPTS = \
test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
$(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
chmod +x test_integration_clique_nat.py
-
+
test_integration_connect_on_restart.py: test_integration_connect_on_restart.py.in Makefile
$(do_subst) < $(srcdir)/test_integration_connect_on_restart.py.in > test_integration_connect_on_restart.py
chmod +x test_integration_connect_on_restart.py