Browse Source

Fix sword library detection on multiarch systems

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Slávek Banko 3 years ago
parent
commit
a9ac95c447
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      sword.m4

+ 2
- 1
sword.m4 View File

@@ -28,7 +28,8 @@ AC_ARG_ENABLE(static-sword,
28 28
 dnl try to find Sword library files
29 29
 AC_MSG_CHECKING([for Sword library files])
30 30
 AC_REQUIRE([AC_FIND_ZLIB])
31
-ac_sword_library_dirs="$ac_sword_dir/lib64 $ac_sword_dir/lib $exec_prefix/lib $prefix/lib64 $prefix/lib /usr/lib /usr/lib64 /usr/lib/sword /usr/local/lib /usr/local/lib/sword /usr/local/sword/lib"
31
+sword_multiarch="`gcc -print-multiarch 2>/dev/null`"
32
+ac_sword_library_dirs="$ac_sword_dir/lib/$sword_multiarch $ac_sword_dir/lib64 $ac_sword_dir/lib $exec_prefix/lib/$sword_multiarch $exec_prefix/lib $prefix/lib/$sword_multiarch $prefix/lib64 $prefix/lib /usr/lib/$sword_multiarch /usr/lib /usr/lib64 /usr/lib/sword /usr/local/lib/$sword_multiarch /usr/local/lib /usr/local/lib/sword /usr/local/sword/lib"
32 33
 
33 34
 if test "x$ac_static_sword" = "xYES"; then
34 35
 	SEARCH_LIBS="libsword.a";

Loading…
Cancel
Save