1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * Note: This is a NetWare specific version of apu.h. It is renamed to
19 * apu.h at the start of a NetWare build.
22 * @brief APR-Utility main file
29 * @defgroup APR_Util APR Utility Functions
35 * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library,
36 * so that all public symbols are exported.
38 * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers,
39 * to provide static linkage when the dynamic library may be unavailable.
41 * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when
42 * including the APR-UTIL public headers, to import and link the symbols from
43 * the dynamic APR-UTIL library and assure appropriate indirection and calling
44 * conventions at compile time.
48 * The public APR-UTIL functions are declared with APU_DECLARE(), so they may
49 * use the most appropriate calling convention. Public APR functions with
50 * variable arguments must use APU_DECLARE_NONSTD().
52 * @fn APU_DECLARE(rettype) apr_func(args);
54 #define APU_DECLARE(type) type
56 * The public APR-UTIL functions using variable arguments are declared with
57 * APU_DECLARE_NONSTD(), as they must use the C language calling convention.
59 * @fn APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
61 #define APU_DECLARE_NONSTD(type) type
63 * The public APR-UTIL variables are declared with APU_DECLARE_DATA.
64 * This assures the appropriate indirection is invoked at compile time.
66 * @fn APU_DECLARE_DATA type apr_variable;
67 * @note APU_DECLARE_DATA extern type apr_variable; syntax is required for
68 * declarations within headers to properly import the variable.
70 #define APU_DECLARE_DATA
73 * Declare a dso module's exported module structure as APU_MODULE_DECLARE_DATA.
75 * Unless APU_MODULE_DECLARE_STATIC is defined at compile time, symbols
76 * declared with APU_MODULE_DECLARE_DATA are always exported.
78 * module APU_MODULE_DECLARE_DATA mod_tag
81 #define APU_MODULE_DECLARE_DATA
84 * we always have SDBM (it's in our codebase)
86 #define APU_HAVE_SDBM 1
87 #define APU_HAVE_GDBM 0
88 #define APU_HAVE_NDBM 0
92 #define APU_HAVE_DB_VERSION 0
96 * we allways enable dynamic driver loads within apr_dbd
98 #define APU_DSO_BUILD 0
101 #define APU_HAVE_PGSQL 0
102 #define APU_HAVE_MYSQL 0
103 #define APU_HAVE_SQLITE3 0
104 #define APU_HAVE_SQLITE2 0
105 #define APU_HAVE_ORACLE 0
106 #define APU_HAVE_FREETDS 0
107 #define APU_HAVE_ODBC 0
110 #define APU_HAVE_APR_ICONV 0
111 #define APU_HAVE_ICONV 1
112 #define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)