apu.h.in 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* Copyright 2000-2005 The Apache Software Foundation or its licensors, as
  2. * applicable.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  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.
  15. */
  16. /*
  17. * apu.h is generated from apu.h.in by configure -- do not edit apu.h
  18. */
  19. /* @file apu.h
  20. * @brief APR-Utility main file
  21. */
  22. /**
  23. * @defgroup APR_Util APR Utility Functions
  24. * @{
  25. */
  26. #ifndef APU_H
  27. #define APU_H
  28. /**
  29. * APU_DECLARE_EXPORT is defined when building the APR-UTIL dynamic library,
  30. * so that all public symbols are exported.
  31. *
  32. * APU_DECLARE_STATIC is defined when including the APR-UTIL public headers,
  33. * to provide static linkage when the dynamic library may be unavailable.
  34. *
  35. * APU_DECLARE_STATIC and APU_DECLARE_EXPORT are left undefined when
  36. * including the APR-UTIL public headers, to import and link the symbols from
  37. * the dynamic APR-UTIL library and assure appropriate indirection and calling
  38. * conventions at compile time.
  39. */
  40. /**
  41. * The public APR-UTIL functions are declared with APU_DECLARE(), so they may
  42. * use the most appropriate calling convention. Public APR functions with
  43. * variable arguments must use APU_DECLARE_NONSTD().
  44. *
  45. * @deffunc APU_DECLARE(rettype) apr_func(args);
  46. */
  47. #define APU_DECLARE(type) type
  48. /**
  49. * The public APR-UTIL functions using variable arguments are declared with
  50. * APU_DECLARE_NONSTD(), as they must use the C language calling convention.
  51. *
  52. * @deffunc APU_DECLARE_NONSTD(rettype) apr_func(args, ...);
  53. */
  54. #define APU_DECLARE_NONSTD(type) type
  55. /**
  56. * The public APR-UTIL variables are declared with APU_DECLARE_DATA.
  57. * This assures the appropriate indirection is invoked at compile time.
  58. *
  59. * @deffunc APU_DECLARE_DATA type apr_variable;
  60. * @tip APU_DECLARE_DATA extern type apr_variable; syntax is required for
  61. * declarations within headers to properly import the variable.
  62. */
  63. #define APU_DECLARE_DATA
  64. /*
  65. * we always have SDBM (it's in our codebase)
  66. */
  67. #define APU_HAVE_SDBM @apu_have_sdbm@
  68. #define APU_HAVE_GDBM @apu_have_gdbm@
  69. #define APU_HAVE_NDBM @apu_have_ndbm@
  70. #define APU_HAVE_DB @apu_have_db@
  71. #if APU_HAVE_DB
  72. #define APU_HAVE_DB_VERSION @apu_db_version@
  73. #endif /* APU_HAVE_DB */
  74. #define APU_HAVE_PGSQL @apu_have_pgsql@
  75. #define APU_HAVE_MYSQL @apu_have_mysql@
  76. #define APU_HAVE_SQLITE3 @apu_have_sqlite3@
  77. #define APU_HAVE_SQLITE2 @apu_have_sqlite2@
  78. #define APU_HAVE_APR_ICONV @have_apr_iconv@
  79. #define APU_HAVE_ICONV @have_iconv@
  80. #define APR_HAS_XLATE (APU_HAVE_APR_ICONV || APU_HAVE_ICONV)
  81. #endif /* APU_H */
  82. /** @} */