Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix detect Berkeley DB installed in multiarch location #380

Closed
rdmark opened this issue Aug 19, 2023 · 1 comment
Closed

Fix detect Berkeley DB installed in multiarch location #380

rdmark opened this issue Aug 19, 2023 · 1 comment

Comments

@rdmark
Copy link
Member

rdmark commented Aug 19, 2023

From Debian:

Description: Fix detect Berkeley DB installed in multiarch location.
Author: Helmut Grohne <helmut@subdivi.de>
Forwarded: no
Bug-Debian: https://bugs.debian.org/912091
Last-Update: 2018-12-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/macros/db3-check.m4
+++ b/macros/db3-check.m4
@@ -62,20 +62,13 @@
         ],[
             AC_MSG_RESULT(no)
         ],[
-            bdblibs=`ls $bdblibdir/lib$lib.* 2>/dev/null`
-            for bdblib in $bdblibs ; do
-                echo "Testing for lib file $bdblib" >&AS_MESSAGE_LOG_FD
-                if test -f "$bdblib" ; then
-                    AC_MSG_RESULT([yes (cross-compiling)])
-                    atalk_cv_bdb_version="yes"
-                    atalk_cv_lib_db="-l$lib"
-                    break
-                fi
-            done
-            if test "x$atalk_cv_bdb_version" = "xyes" ; then
-                break
-            fi
-            AC_MSG_RESULT([no (cross-compiling)])
+            AC_CHECK_LIB([$lib],[db_version],[
+                AC_MSG_RESULT([yes (cross-compiling)])
+                atalk_cv_bdb_version=yes
+                atalk_cv_lib_db="-l$lib"
+            ],[
+                AC_MSG_RESULT([no (cross-compiling)])
+            ])
         ])
     done
     LIBS="$savedlibs"
@rdmark
Copy link
Member Author

rdmark commented Aug 23, 2023

Patch merged with #390 and #391

@rdmark rdmark closed this as completed Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant