2
0

apu-hints.m4 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. dnl -------------------------------------------------------- -*- autoconf -*-
  2. dnl Copyright 2003-2005 The Apache Software Foundation or its licensors, as
  3. dnl applicable.
  4. dnl
  5. dnl Licensed under the Apache License, Version 2.0 (the "License");
  6. dnl you may not use this file except in compliance with the License.
  7. dnl You may obtain a copy of the License at
  8. dnl
  9. dnl http://www.apache.org/licenses/LICENSE-2.0
  10. dnl
  11. dnl Unless required by applicable law or agreed to in writing, software
  12. dnl distributed under the License is distributed on an "AS IS" BASIS,
  13. dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. dnl See the License for the specific language governing permissions and
  15. dnl limitations under the License.
  16. dnl -----------------------------------------------------------------
  17. dnl apu-hints.m4: apr-util's autoconf macros for platform-specific hints
  18. dnl
  19. dnl We preload various configure settings depending
  20. dnl on previously obtained platform knowledge.
  21. dnl We allow all settings to be overridden from
  22. dnl the command-line.
  23. dnl
  24. dnl APU_PRELOAD
  25. dnl
  26. dnl Preload various build parameters based on outside knowledge.
  27. dnl
  28. AC_DEFUN([APU_PRELOAD], [
  29. if test "x$apu_preload_done" != "xyes" ; then
  30. apu_preload_done="yes"
  31. echo "Applying apr-util hints file rules for $host"
  32. case "$host" in
  33. *-dec-osf*)
  34. APR_SETIFNULL(apu_crypt_threadsafe, [1])
  35. ;;
  36. *-hp-hpux11.*)
  37. APR_SETIFNULL(apu_crypt_threadsafe, [1])
  38. ;;
  39. *-ibm-aix4*|*-ibm-aix5.1*)
  40. APR_SETIFNULL(apu_iconv_inbuf_const, [1])
  41. ;;
  42. *-ibm-os390)
  43. APR_SETIFNULL(apu_crypt_threadsafe, [1])
  44. ;;
  45. *-solaris2*)
  46. APR_SETIFNULL(apu_iconv_inbuf_const, [1])
  47. APR_SETIFNULL(apu_crypt_threadsafe, [1])
  48. ;;
  49. *-sco3.2v5*)
  50. APR_SETIFNULL(apu_db_xtra_libs, [-lsocket])
  51. ;;
  52. esac
  53. fi
  54. ])