diff options
author | Noriko Hosoi <nhosoi@redhat.com> | 2007-03-30 18:20:06 +0000 |
---|---|---|
committer | Noriko Hosoi <nhosoi@redhat.com> | 2007-03-30 18:20:06 +0000 |
commit | 14cda45f55b412592df6cc8b7b3724ee6abdbada (patch) | |
tree | 2b22c0ce208981524f2367e56ac69d8edab1d9ea | |
parent | 42567bd5b53b6b965915339963a3083519c2076d (diff) | |
download | ds-14cda45f55b412592df6cc8b7b3724ee6abdbada.tar.gz ds-14cda45f55b412592df6cc8b7b3724ee6abdbada.tar.xz ds-14cda45f55b412592df6cc8b7b3724ee6abdbada.zip |
Resolves: #233215
Summary: verify-db.pl still assumes the db dir is always in the instance dir (Comment #10)
Description: To set db_bindir, if db.pc exists, check if bindir variable is
defined in the file or not. If it's defined, set it to db_bindir. If not,
set the default path /usr/bin to db_bindir.
-rw-r--r-- | m4/db.m4 | 11 | ||||
-rw-r--r-- | m4/icu.m4 | 2 |
2 files changed, 11 insertions, 2 deletions
@@ -51,7 +51,6 @@ AC_ARG_WITH(db, [ --with-db=PATH Berkeley DB directory], ], AC_MSG_RESULT(no)) dnl default path for the db tools (see [210947] for more details) -db_bindir=/usr/bin dnl - check in system locations if test -z "$db_inc"; then @@ -80,3 +79,13 @@ AC_CHECK_LIB([db-$db_libver], [db_create], [true], [$LIBNSL]) LDFLAGS="$save_ldflags" +# if DB is not found yet, try pkg-config + +# last resort +# Although the other db_* variables are correctly assigned at this point, +# db_bindir needs to be set by pkg-config if possible (e.g., on 64-bit Solaris) +if $PKG_CONFIG --exists db; then + db_bindir=`$PKG_CONFIG --variable=bindir db` +else + db_bindir=/usr/bin +fi @@ -82,7 +82,7 @@ AC_ARG_WITH(icu-bin, [ --with-icu-bin=PATH ICU binary directory], fi ], AC_MSG_RESULT(no)) -# if not found yet, try pkg-config +# if ICU is not found yet, try pkg-config # last resort if test -z "$icu_lib"; then |