diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-11-09 17:11:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-11-12 11:18:29 +0000 |
commit | 81a7805906da2b10cd268adbf7b3ebe173cfb4ff (patch) | |
tree | b7e4d8231b0d963ef65ed367bb3a49c8b732e382 /configure.ac | |
parent | 273a60af9aae1a0b87d2ff43bdfb0cd849b29d27 (diff) |
fiddle system-db test to link on RHEL-6
Change-Id: Ic256a10dd45123ae45024f4e77edd3214bc4c931
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index d4ab49ca6ce3..4978c988138c 100644 --- a/configure.ac +++ b/configure.ac @@ -7489,15 +7489,13 @@ if test "$with_system_db" = "yes"; then SYSTEM_DB_CFLAGS="-DSYSTEM_DB_HEADER='<$db_header>'" DB_LIB= - dnl At least on OpenBSD dbver is not appended to the library - if test "$_os" = "OpenBSD"; then - dbver='' - fi - for dash in - ''; do - AC_CHECK_LIB(db$dash$dbver, dbopen, - [ DB_LIB="db$dash$dbver"; DB_CPPLIB="db_cxx$dash$dbver"; break ]) - AC_CHECK_LIB(db$dash$dbver, __db185_open, - [ DB_LIB="db$dash$dbver"; DB_CPPLIB="db_cxx$dash$dbver"; break ]) + dnl At least on OpenBSD and RHEL-6 dbver is not appended to the library + dnl even though the headers are in a versioned dir + for suffix in '' '-$dbver' '$dbver' ''; do + AC_CHECK_LIB(db$suffix, dbopen, + [ DB_LIB="db$suffix"; DB_CPPLIB="db_cxx$suffix"; break ]) + AC_CHECK_LIB(db$suffix, __db185_open, + [ DB_LIB="db$suffix"; DB_CPPLIB="db_cxx$suffix"; break ]) done if test -z "$DB_LIB"; then |