mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
Respect non-standard install paths for web interface files
This commit is contained in:
parent
50dcfb2ba0
commit
b6791332cd
2 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,8 @@
|
|||
AM_CPPFLAGS = -I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ -D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS)
|
||||
AM_CPPFLAGS = \
|
||||
-I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ \
|
||||
-D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS) \
|
||||
-DPACKAGE_DATA_DIR=\""$(datadir)"\"
|
||||
|
||||
AM_CFLAGS = $(LIBCURL_CFLAGS) $(OPENSSL_CFLAGS) $(PTHREAD_CFLAGS)
|
||||
|
||||
noinst_LIBRARIES = libtransmission.a
|
||||
|
|
|
@ -563,7 +563,7 @@ tr_getClutchDir( const tr_session * session UNUSED )
|
|||
/* XDG_DATA_DIRS are the backup directories */
|
||||
s = getenv( "XDG_DATA_DIRS" );
|
||||
if( !s || !*s )
|
||||
s = "/usr/local/share/:/usr/share/";
|
||||
s = PACKAGE_DATA_DIR ":/usr/local/share/:/usr/share/";
|
||||
while( s && *s ) {
|
||||
char * end = strchr( s, ':' );
|
||||
if( end ) {
|
||||
|
|
Loading…
Reference in a new issue