summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-05-10 15:40:22 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-06-05 20:47:56 +0200
commitaa53268d4693062844412e9061f2892487b087a5 (patch)
treeba5417e3b32c36de3d390c91ccdb985621ef73f4
parent99ea7efe29f8d69ca3c962f48193cf14e1042740 (diff)
downloadkvirc-aa53268d4693062844412e9061f2892487b087a5.tar.gz
kvirc-aa53268d4693062844412e9061f2892487b087a5.zip
Update Automake to properly detect TDE path
Thanks to Slávek Banko for the initial patch! (cherry picked from commit 136d2c861321d51ac3ab1ab82ca602717158c766)
-rw-r--r--acinclude.m411
-rw-r--r--admin/acinclude.m4.in11
-rw-r--r--src/kvirc/kernel/kvi_app_fs.cpp2
-rw-r--r--src/kvirc/kernel/kvi_app_setup.cpp1
-rw-r--r--src/modules/mediaplayer/Makefile.am2
-rw-r--r--src/modules/torrent/Makefile.am2
6 files changed, 20 insertions, 9 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2404c5da..306c0b7f 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -2149,7 +2149,7 @@ AC_DEFUN([AC_SS_FIND_KDE_GENERAL_DIR],
if test -n "$KDEDIR"; then
ss_kde_general_test_dirs="$KDEDIR $ss_kde_general_test_dirs"
fi
- ss_kde_general_test_path_suffix="kde kde3.0 kde3 KDE Kde KDE3 kde3 ."
+ ss_kde_general_test_path_suffix="trinity tde TDE kde kde3.0 kde3 KDE Kde KDE3 kde3 ."
AC_SS_FIND_FILE_PATH_EXT($SS_KDE_GENERAL_FILE_TO_SEARCH,$ss_kde_general_test_dirs,$ss_kde_general_test_path_suffix,SS_KDE_GENERAL_DIR)
@@ -2513,9 +2513,14 @@ AC_DEFUN([AC_SS_FINAL_CONFIG],
SS_INCDIRS="$SS_INCDIRS -I$SS_KDE_INCDIR"
SS_RPATH="$SS_RPATH -rpath $SS_KDE_LIBDIR"
SS_LIBDIRS="$SS_LIBDIRS -L$SS_KDE_LIBDIR"
- SS_LIBLINK="-lkdecore -lkdeui -lkparts $SS_LIBLINK"
+ SS_LIBLINK="-lkdecore -lkdeui -lkparts -lDCOP -lkdefx -lkio $SS_LIBLINK"
AC_DEFINE([COMPILE_KDE_SUPPORT], 1, [define if you want to compile the KDE 3.x support])
+ AC_DEFINE_UNQUOTED([TDE_DIR], "$SS_KDE_GENERAL_DIR", [contain path to TDE if compiled with the TDE support])
+ AC_DEFINE_UNQUOTED([TDE_LIBDIR], "$SS_KDE_LIBDIR", [contain path to TDE libs if compiled with the TDE support])
SS_BUILD_FLAGS="k$SS_BUILD_FLAGS"
+ else
+ AC_DEFINE_UNQUOTED([TDE_DIR], "", [contain path to TDE if compiled with the TDE support])
+ AC_DEFINE_UNQUOTED([TDE_LIBDIR], "", [contain path to TDE libs if compiled with the TDE support])
fi
if test -n "$SS_OTHER_LIBLINK"; then
@@ -2524,7 +2529,7 @@ AC_DEFUN([AC_SS_FINAL_CONFIG],
if test -n "$SS_OTHER_LIBDIRS"; then
SS_LIBDIRS="$SS_LIBDIRS $SS_OTHER_LIBDIRS"
- $SS_OTHER_LIBDIRS=`echo "$SS_OTHER_LIBDIRS" | sed -e s/-L//g`
+ SS_OTHER_LIBDIRS=`echo "$SS_OTHER_LIBDIRS" | sed -e s/-L//g`
SS_RPATH="$SS_RPATH -rpath $SS_OTHER_LIBDIRS"
fi
diff --git a/admin/acinclude.m4.in b/admin/acinclude.m4.in
index 3cb36389..747084c5 100644
--- a/admin/acinclude.m4.in
+++ b/admin/acinclude.m4.in
@@ -2149,7 +2149,7 @@ AC_DEFUN([AC_SS_FIND_KDE_GENERAL_DIR],
if test -n "$KDEDIR"; then
ss_kde_general_test_dirs="$KDEDIR $ss_kde_general_test_dirs"
fi
- ss_kde_general_test_path_suffix="kde kde3.0 kde3 KDE Kde KDE3 kde3 ."
+ ss_kde_general_test_path_suffix="trinity tde TDE kde kde3.0 kde3 KDE Kde KDE3 kde3 ."
AC_SS_FIND_FILE_PATH_EXT($SS_KDE_GENERAL_FILE_TO_SEARCH,$ss_kde_general_test_dirs,$ss_kde_general_test_path_suffix,SS_KDE_GENERAL_DIR)
@@ -2513,9 +2513,14 @@ AC_DEFUN([AC_SS_FINAL_CONFIG],
SS_INCDIRS="$SS_INCDIRS -I$SS_KDE_INCDIR"
SS_RPATH="$SS_RPATH -rpath $SS_KDE_LIBDIR"
SS_LIBDIRS="$SS_LIBDIRS -L$SS_KDE_LIBDIR"
- SS_LIBLINK="-lkdecore -lkdeui -lkparts $SS_LIBLINK"
+ SS_LIBLINK="-lkdecore -lkdeui -lkparts -lDCOP -lkdefx -lkio $SS_LIBLINK"
AC_DEFINE([COMPILE_KDE_SUPPORT], 1, [define if you want to compile the KDE 3.x support])
+ AC_DEFINE_UNQUOTED([TDE_DIR], "$SS_KDE_GENERAL_DIR", [contain path to TDE if compiled with the TDE support])
+ AC_DEFINE_UNQUOTED([TDE_LIBDIR], "$SS_KDE_LIBDIR", [contain path to TDE libs if compiled with the TDE support])
SS_BUILD_FLAGS="k$SS_BUILD_FLAGS"
+ else
+ AC_DEFINE_UNQUOTED([TDE_DIR], "", [contain path to TDE if compiled with the TDE support])
+ AC_DEFINE_UNQUOTED([TDE_LIBDIR], "", [contain path to TDE libs if compiled with the TDE support])
fi
if test -n "$SS_OTHER_LIBLINK"; then
@@ -2524,7 +2529,7 @@ AC_DEFUN([AC_SS_FINAL_CONFIG],
if test -n "$SS_OTHER_LIBDIRS"; then
SS_LIBDIRS="$SS_LIBDIRS $SS_OTHER_LIBDIRS"
- $SS_OTHER_LIBDIRS=`echo "$SS_OTHER_LIBDIRS" | sed -e s/-L//g`
+ SS_OTHER_LIBDIRS=`echo "$SS_OTHER_LIBDIRS" | sed -e s/-L//g`
SS_RPATH="$SS_RPATH -rpath $SS_OTHER_LIBDIRS"
fi
diff --git a/src/kvirc/kernel/kvi_app_fs.cpp b/src/kvirc/kernel/kvi_app_fs.cpp
index ad8ce5ab..42d23706 100644
--- a/src/kvirc/kernel/kvi_app_fs.cpp
+++ b/src/kvirc/kernel/kvi_app_fs.cpp
@@ -55,7 +55,7 @@ void KviApp::getGlobalKvircDirectory(TQString &szData,KvircSubdir dir,const TQSt
// Local hack for Debian
case Modules :
- case Plugins : szData = "/opt/kde3/lib/kvirc/" KVI_VERSION_BRANCH "/modules"; break;
+ case Plugins : szData = TDE_LIBDIR "/kvirc/" KVI_VERSION_BRANCH "/modules"; break;
case EasyPlugins : szData.append("easyplugins"); break;
case ConfigPlugins : KviTQString::appendFormatted(szData,"config%smodules",KVI_PATH_SEPARATOR); break;
diff --git a/src/kvirc/kernel/kvi_app_setup.cpp b/src/kvirc/kernel/kvi_app_setup.cpp
index da40b765..0d4f2a9b 100644
--- a/src/kvirc/kernel/kvi_app_setup.cpp
+++ b/src/kvirc/kernel/kvi_app_setup.cpp
@@ -500,6 +500,7 @@ void KviApp::setupFileAssociations()
#ifndef COMPILE_ON_WINDOWS
const char * usualKvircGlobalPrePath[]=
{
+ TDE_DIR,
"/usr/local", "/opt/kde", "/usr",
"/usr/local/lib", "/opt/kde3", "/usr/lib",
"/usr/local/kde", "/opt", "/usr/etc",
diff --git a/src/modules/mediaplayer/Makefile.am b/src/modules/mediaplayer/Makefile.am
index af5caa60..41e5b850 100644
--- a/src/modules/mediaplayer/Makefile.am
+++ b/src/modules/mediaplayer/Makefile.am
@@ -10,7 +10,7 @@ pluglib_LTLIBRARIES = libkvimediaplayer.la
#%.moc: %.h
# $(SS_QT_MOC) $< -o $@
-libkvimediaplayer_la_LDFLAGS = -avoid-version -module
+libkvimediaplayer_la_LDFLAGS = -avoid-version -module $(SS_LDFLAGS) $(SS_LIBDIRS)
libkvimediaplayer_la_SOURCES = libkvimediaplayer.cpp \
mp_amarokinterface.cpp \
diff --git a/src/modules/torrent/Makefile.am b/src/modules/torrent/Makefile.am
index ab0d80cb..fff58478 100644
--- a/src/modules/torrent/Makefile.am
+++ b/src/modules/torrent/Makefile.am
@@ -10,7 +10,7 @@ pluglib_LTLIBRARIES = libkvitorrent.la
#%.moc: %.h
# $(SS_QT_MOC) $< -o $@
-libkvitorrent_la_LDFLAGS = -avoid-version -module
+libkvitorrent_la_LDFLAGS = -avoid-version -module $(SS_LDFLAGS) $(SS_LIBDIRS)
libkvitorrent_la_SOURCES = libkvitorrent.cpp \
tc_interface.cpp \