Skip to content

Commit

Permalink
Move the list of resolvers to $pkgdatadir
Browse files Browse the repository at this point in the history
  • Loading branch information
jedisct1 committed Apr 17, 2014
1 parent 3982369 commit 8e0f619
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,6 @@ AS_IF([test -d /usr/local/lib], [
LDFLAGS="$LDFLAGS -L/usr/local/lib"
])

CPPFLAGS="$CPPFLAGS -DCONFDIR=\\\"$sysconfdir\\\""

dnl Checks for header files.

AC_SYS_LARGEFILE
Expand Down
3 changes: 2 additions & 1 deletion src/proxy/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ AM_CFLAGS = @CWFLAGS@

AM_CPPFLAGS = \
-I../ext \
-I../libevent-modified/include
-I../libevent-modified/include \
-DPKGDATADIR='"${pkgdatadir}"'

dnscrypt_proxy_LDADD = \
../libevent-modified/libevent_extra.la \
Expand Down
2 changes: 1 addition & 1 deletion src/proxy/dnscrypt_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#endif

#ifndef DEFAULT_RESOLVERS_LIST
# define DEFAULT_RESOLVERS_LIST CONFDIR "/dnscrypt-resolvers.csv"
# define DEFAULT_RESOLVERS_LIST PKGDATADIR "/dnscrypt-resolvers.csv"
#endif

#ifndef DEFAULT_RESOLVER_NAME
Expand Down

0 comments on commit 8e0f619

Please sign in to comment.