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 /src | |
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 'src')
-rw-r--r-- | src/gns/nss/Makefile.am | 7 | ||||
-rw-r--r-- | src/integration-tests/Makefile.am | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/gns/nss/Makefile.am b/src/gns/nss/Makefile.am index c5e415dbf..582aa0696 100644 --- a/src/gns/nss/Makefile.am +++ b/src/gns/nss/Makefile.am | |||
@@ -21,15 +21,22 @@ EXTRA_DIST = map-file | |||
21 | 21 | ||
22 | AM_LDFLAGS=-avoid-version -module -export-dynamic | 22 | AM_LDFLAGS=-avoid-version -module -export-dynamic |
23 | 23 | ||
24 | if HAVE_SUDO | ||
24 | nssdir = /lib/ | 25 | nssdir = /lib/ |
26 | else | ||
27 | nssdir = $(libdir) | ||
28 | endif | ||
29 | |||
25 | LIBTOOL = $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool | 30 | LIBTOOL = $(SUDO_BINARY) $(SHELL) $(top_builddir)/libtool |
26 | 31 | ||
27 | if !MINGW | 32 | if !MINGW |
33 | if HAVE_SUDO | ||
28 | nss_LTLIBRARIES = \ | 34 | nss_LTLIBRARIES = \ |
29 | libnss_gns.la \ | 35 | libnss_gns.la \ |
30 | libnss_gns4.la \ | 36 | libnss_gns4.la \ |
31 | libnss_gns6.la | 37 | libnss_gns6.la |
32 | endif | 38 | endif |
39 | endif | ||
33 | 40 | ||
34 | sources = util.c util.h query.h query.c | 41 | sources = util.c util.h query.h query.c |
35 | 42 | ||
diff --git a/src/integration-tests/Makefile.am b/src/integration-tests/Makefile.am index 7c1991b91..f9998642d 100644 --- a/src/integration-tests/Makefile.am +++ b/src/integration-tests/Makefile.am | |||
@@ -12,8 +12,6 @@ endif | |||
12 | #bin_PROGRAMS = \ | 12 | #bin_PROGRAMS = \ |
13 | # connection_watchdog | 13 | # connection_watchdog |
14 | 14 | ||
15 | check_PROGRAMS = | ||
16 | |||
17 | noinst_PROGRAMS = connection_watchdog | 15 | noinst_PROGRAMS = connection_watchdog |
18 | 16 | ||
19 | noinst_SCRIPTS = \ | 17 | noinst_SCRIPTS = \ |
@@ -98,7 +96,7 @@ test_integration_clique.py: test_integration_clique.py.in Makefile | |||
98 | test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile | 96 | test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile |
99 | $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py | 97 | $(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py |
100 | chmod +x test_integration_clique_nat.py | 98 | chmod +x test_integration_clique_nat.py |
101 | 99 | ||
102 | test_integration_connect_on_restart.py: test_integration_connect_on_restart.py.in Makefile | 100 | test_integration_connect_on_restart.py: test_integration_connect_on_restart.py.in Makefile |
103 | $(do_subst) < $(srcdir)/test_integration_connect_on_restart.py.in > test_integration_connect_on_restart.py | 101 | $(do_subst) < $(srcdir)/test_integration_connect_on_restart.py.in > test_integration_connect_on_restart.py |
104 | chmod +x test_integration_connect_on_restart.py | 102 | chmod +x test_integration_connect_on_restart.py |