1 dnl -------------------------------------------------------- -*- autoconf -*-
2 dnl Copyright 2003-2005 The Apache Software Foundation or its licensors, as
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
9 dnl http://www.apache.org/licenses/LICENSE-2.0
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.
17 dnl -----------------------------------------------------------------
18 dnl apu-hints.m4: apr-util's autoconf macros for platform-specific hints
20 dnl We preload various configure settings depending
21 dnl on previously obtained platform knowledge.
22 dnl We allow all settings to be overridden from
28 dnl Preload various build parameters based on outside knowledge.
30 AC_DEFUN([APU_PRELOAD], [
31 if test "x$apu_preload_done" != "xyes" ; then
32 apu_preload_done="yes"
34 echo "Applying apr-util hints file rules for $host"
38 APR_SETIFNULL(apu_crypt_threadsafe, [1])
41 APR_SETIFNULL(apu_crypt_threadsafe, [1])
43 *-ibm-aix4*|*-ibm-aix5.1*)
44 APR_SETIFNULL(apu_iconv_inbuf_const, [1])
47 APR_SETIFNULL(apu_crypt_threadsafe, [1])
50 APR_SETIFNULL(apu_iconv_inbuf_const, [1])
51 APR_SETIFNULL(apu_crypt_threadsafe, [1])
52 AC_SEARCH_LIBS(fdatasync, [rt posix4])
55 APR_SETIFNULL(apu_db_xtra_libs, [-lsocket])