mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfsqa: build dbtest on debian platforms
Set up autoconf to find the correct headers and compat libraries for debian squeeze, and massage the includes to ensure the right headers get included. Also fix a compile warning that was emitted now that it is being compiled. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -6,9 +6,13 @@ AC_DEFUN([AC_PACKAGE_WANT_NDBM],
|
||||
])
|
||||
|
||||
AC_DEFUN([AC_PACKAGE_WANT_GDBM],
|
||||
[ AC_CHECK_HEADERS([gdbm/ndbm.h], [ have_db=true ], [ have_db=false ])
|
||||
[ AC_CHECK_HEADERS([gdbm/ndbm.h, gdbm-ndbm.h], [ have_db=true ], [ have_db=false ])
|
||||
libgdbm=""
|
||||
if test $have_db = true -a -f ${libexecdir}${libdirsuffix}/libgdbm_compat.a; then
|
||||
libgdbm="${libexecdir}${libdirsuffix}/libgdbm_compat.a"
|
||||
fi
|
||||
if test $have_db = true -a -f ${libexecdir}${libdirsuffix}/libgdbm.a; then
|
||||
libgdbm="${libexecdir}${libdirsuffix}/libgdbm.a"
|
||||
libgdbm="${libgdbm} ${libexecdir}${libdirsuffix}/libgdbm.a"
|
||||
fi
|
||||
AC_SUBST(libgdbm)
|
||||
AC_SUBST(have_db)
|
||||
|
||||
Reference in New Issue
Block a user