summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-04 20:49:02 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-04 20:49:02 +0000
commit446c3513939f6257b2f880154e209861260f4e55 (patch)
tree30f267d5ff4f8a71299624423ff2bb9fb62d26a1 /src
parent735498cb27b7defbdce3ade21378417534395189 (diff)
downloadtor-446c3513939f6257b2f880154e209861260f4e55.tar.gz
tor-446c3513939f6257b2f880154e209861260f4e55.zip
r14702@tombo: nickm | 2007-11-04 15:48:56 -0500
Define SHARE_DATADIR, LOCALSTATEDIR, and BINDIR in Makefile.am as autoconf recommends. Do not move CONFDIR yet, since we seem to support overriding it in a weird way. Resolves bug 542. svn:r12376
Diffstat (limited to 'src')
-rw-r--r--src/or/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/Makefile.am b/src/or/Makefile.am
index 22ceac945d..bcc588f9bb 100644
--- a/src/or/Makefile.am
+++ b/src/or/Makefile.am
@@ -23,6 +23,10 @@ tor_SOURCES = buffers.c circuitbuild.c circuitlist.c \
eventdns.c \
tor_main.c
+AM_CPPFLAGS = -DSHARE_DATADIR="\"$(datadir)\"" \
+ -DLOCALSTATEDIR="\"$(localstatedir)\"" \
+ -DBINDIR="\"$(bindir)\""
+
# -L flags need to go in LDFLAGS. -l flags need to go in LDADD.
# This seems to matter nowhere but on windows, but I assure you that it
# matters a lot there, and is quite hard to debug if you forget to do it.