diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-03-10 22:32:34 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-04-01 14:38:11 +0900 |
| commit | b4736bd8c3b46f3cee26d5307c1f02d8c4bf9350 (patch) | |
| tree | c1134107967640743afb7dbd039737a8241f9b0c /admin/acinclude.m4.in | |
| parent | c8a9dd20a52b50f0a6db801db7267f8eb5f65c31 (diff) | |
| download | kvirc-fix/compile-without-tde.tar.gz kvirc-fix/compile-without-tde.zip | |
Fix FTBFS when TDE support is not requestedfix/compile-without-tde
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'admin/acinclude.m4.in')
| -rw-r--r-- | admin/acinclude.m4.in | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/admin/acinclude.m4.in b/admin/acinclude.m4.in index abc25a3..78049d4 100644 --- a/admin/acinclude.m4.in +++ b/admin/acinclude.m4.in @@ -2121,12 +2121,12 @@ AC_DEFUN([AC_SS_FINAL_CONFIG], SS_LIBDIRS="$SS_LIBDIRS -L$SS_KDE_LIBDIR" SS_LIBLINK="-ltdecore -ltdeui -ltdeparts -lDCOP -ltdefx -ltdeio $SS_LIBLINK" AC_DEFINE([COMPILE_TDE_SUPPORT], 1, [define if you want to compile the TDE 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]) + AC_DEFINE_UNQUOTED([BASE_DIR], "$SS_KDE_GENERAL_DIR", [contain path to TDE if compiled with the TDE support]) + AC_DEFINE_UNQUOTED([BASE_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]) + AC_DEFINE_UNQUOTED([BASE_DIR], "${prefix}", [contain path to TDE if compiled with the TDE support]) + AC_DEFINE_UNQUOTED([BASE_LIBDIR], "${prefix}/lib", [contain path to TDE libs if compiled with the TDE support]) fi if test -n "$SS_OTHER_LIBLINK"; then @@ -2180,7 +2180,12 @@ AC_DEFUN([AC_SS_FINAL_CONFIG], fi done - globalkvircdir="\${datadir}/apps/kvirc" + if test "$SS_KDE_REQUESTED" = "yes"; then + globalkvircdir="\${datadir}/apps/kvirc" + else + globalkvircdir="\${datadir}/kvirc" + fi + AC_SUBST(globalkvircdir) configdir="\${globalkvircdir}/config" @@ -2271,7 +2276,11 @@ AC_DEFUN([AC_SS_FINAL_CONFIG], AC_SUBST(xdg_apps) AC_SUBST(mimelnkdir) - localedir="\${datadir}/locale" + if test "$SS_KDE_REQUESTED" = "yes"; then + localedir="\${datadir}/locale" + else + localedir="\${globalkvircdir}/locale" + fi AC_SUBST(localedir) headersdir="\${exec_prefix}/include/kvirc" |
