summaryrefslogtreecommitdiff
path: root/dbd/apr_dbd.c
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2009-03-24 16:30:56 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2009-03-24 16:30:56 +0000
commitba7ff052f4fc2666fc7d8b5f15a8141f7af31beb (patch)
treefa63fc8db36fc884579c345952c8e4210469d200 /dbd/apr_dbd.c
parente2ee95ae85487071e2a4ca05cd73982b30d65a99 (diff)
downloadlibapr-ba7ff052f4fc2666fc7d8b5f15a8141f7af31beb.tar.gz
APR->APU conversion of DSO buildfoo; rename --disable-util-dso to
--disable-modular-dso: * configure.in, Makefile.in: Use APR_DSO_MODULES for set of DSOs to build. * util-misc/apu_dso.c, include/private/apu_internal.h: Use macro APR_HAVE_MODULAR_DSO to determine whether modular DSO build is used. * build/dso.m4 (APR_MODULAR_DSO): Renamed from APU_CHECK_UTIL_DSO. Define APR_HAVE_MODULAR_DSO if modular DSO biuld is used. Add to LIBS not APRUTIL_LIBS. Rename configure flag to --disable-modular-dso to disable modular DSO build. * ldap/*.c, dbm/*.c, dbd/*.c, crypto/*.c: Adjust to use APR_HAVE_MODULAR_DSO. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@757884 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dbd/apr_dbd.c')
-rw-r--r--dbd/apr_dbd.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/dbd/apr_dbd.c b/dbd/apr_dbd.c
index 7dc309926..05ee604f9 100644
--- a/dbd/apr_dbd.c
+++ b/dbd/apr_dbd.c
@@ -63,7 +63,7 @@ APU_DECLARE(apr_status_t) apr_dbd_mutex_unlock() {
}
#endif
-#if !APU_DSO_BUILD
+#if !APR_HAVE_MODULAR_DSO
#define DRIVER_LOAD(name,driver,pool) \
{ \
extern const apr_dbd_driver_t driver; \
@@ -97,7 +97,7 @@ APU_DECLARE(apr_status_t) apr_dbd_init(apr_pool_t *pool)
/* Top level pool scope, need process-scope lifetime */
for (parent = pool; parent; parent = apr_pool_parent_get(pool))
pool = parent;
-#if APU_DSO_BUILD
+#if APR_HAVE_MODULAR_DSO
/* deprecate in 2.0 - permit implicit initialization */
apu_dso_init(pool);
#endif
@@ -109,7 +109,7 @@ APU_DECLARE(apr_status_t) apr_dbd_init(apr_pool_t *pool)
/* This already registers a pool cleanup */
#endif
-#if !APU_DSO_BUILD
+#if !APR_HAVE_MODULAR_DSO
/* Load statically-linked drivers: */
#if APU_HAVE_MYSQL
@@ -136,7 +136,7 @@ APU_DECLARE(apr_status_t) apr_dbd_init(apr_pool_t *pool)
#if APU_HAVE_SOME_OTHER_BACKEND
DRIVER_LOAD("firebird", apr_dbd_other_driver, pool);
#endif
-#endif /* APU_DSO_BUILD */
+#endif /* APR_HAVE_MODULAR_DSO */
apr_pool_cleanup_register(pool, NULL, apr_dbd_term,
apr_pool_cleanup_null);
@@ -147,14 +147,14 @@ APU_DECLARE(apr_status_t) apr_dbd_init(apr_pool_t *pool)
APU_DECLARE(apr_status_t) apr_dbd_get_driver(apr_pool_t *pool, const char *name,
const apr_dbd_driver_t **driver)
{
-#if APU_DSO_BUILD
+#if APR_HAVE_MODULAR_DSO
char modname[32];
char symname[34];
apr_dso_handle_sym_t symbol;
#endif
apr_status_t rv;
-#if APU_DSO_BUILD
+#if APR_HAVE_MODULAR_DSO
rv = apu_dso_mutex_lock();
if (rv) {
return rv;
@@ -162,13 +162,13 @@ APU_DECLARE(apr_status_t) apr_dbd_get_driver(apr_pool_t *pool, const char *name,
#endif
*driver = apr_hash_get(drivers, name, APR_HASH_KEY_STRING);
if (*driver) {
-#if APU_DSO_BUILD
+#if APR_HAVE_MODULAR_DSO
apu_dso_mutex_unlock();
#endif
return APR_SUCCESS;
}
-#if APU_DSO_BUILD
+#if APR_HAVE_MODULAR_DSO
/* The driver DSO must have exactly the same lifetime as the
* drivers hash table; ignore the passed-in pool */
pool = apr_hash_pool_get(drivers);