"Fossies" - the Fresh Open Source Software Archive

Member "apr-1.7.0/build/apr_hints.m4" (27 Apr 2017, 15880 Bytes) of package /linux/www/apr-1.7.0.tar.bz2:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "apr_hints.m4": 1.6.5_vs_1.7.0.

    1 dnl -------------------------------------------------------- -*- autoconf -*-
    2 dnl Licensed to the Apache Software Foundation (ASF) under one or more
    3 dnl contributor license agreements.  See the NOTICE file distributed with
    4 dnl this work for additional information regarding copyright ownership.
    5 dnl The ASF licenses this file to You under the Apache License, Version 2.0
    6 dnl (the "License"); you may not use this file except in compliance with
    7 dnl the License.  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 
   17 dnl -----------------------------------------------------------------
   18 dnl apr_hints.m4: APR's autoconf macros for platform-specific hints
   19 dnl
   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
   23 dnl  the command-line.
   24 dnl
   25 dnl  We maintain the "format" that we've used
   26 dnl  under 1.3.x, so we don't exactly follow
   27 dnl  what is "recommended" by autoconf.
   28 
   29 dnl
   30 dnl APR_PRELOAD
   31 dnl
   32 dnl  Preload various ENV/makefile params such as CC, CFLAGS, etc
   33 dnl  based on outside knowledge
   34 dnl
   35 dnl  Generally, we force the setting of CC, and add flags
   36 dnl  to CFLAGS, CPPFLAGS, LIBS and LDFLAGS. 
   37 dnl
   38 AC_DEFUN(APR_PRELOAD, [
   39 if test "x$apr_preload_done" != "xyes" ; then
   40 
   41   apr_preload_done="yes"
   42 
   43   echo "Applying APR hints file rules for $host"
   44 
   45   case "$host" in
   46     *mint)
   47 	APR_ADDTO(CPPFLAGS, [-DMINT -D_GNU_SOURCE])
   48 	;;
   49     *MPE/iX*)
   50 	APR_ADDTO(CPPFLAGS, [-DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE])
   51 	APR_ADDTO(LIBS, [-lsvipc -lcurses])
   52 	APR_ADDTO(LDFLAGS, [-Xlinker \"-WL,cap=ia,ba,ph;nmstack=1024000\"])
   53 	;;
   54     *-apple-aux3*)
   55 	APR_ADDTO(CPPFLAGS, [-DAUX3 -D_POSIX_SOURCE])
   56 	APR_ADDTO(LIBS, [-lposix -lbsd])
   57 	APR_ADDTO(LDFLAGS, [-s])
   58 	APR_SETVAR(SHELL, [/bin/ksh])
   59 	;;
   60     *-ibm-aix*)
   61 	APR_ADDTO(CPPFLAGS, [-U__STR__ -D_THREAD_SAFE])
   62         dnl _USR_IRS gets us the hstrerror() proto in netdb.h
   63         case $host in
   64             *-ibm-aix4.3)
   65 	        APR_ADDTO(CPPFLAGS, [-D_USE_IRS])
   66 	        ;;
   67             *-ibm-aix5*)
   68 	        APR_ADDTO(CPPFLAGS, [-D_USE_IRS])
   69 	        ;;
   70             *-ibm-aix4.3.*)
   71                 APR_ADDTO(CPPFLAGS, [-D_USE_IRS])
   72                 ;;
   73         esac
   74         dnl If using xlc, remember it, and give it the right options.
   75         if $CC 2>&1 | grep 'xlc' > /dev/null; then
   76           APR_SETIFNULL(AIX_XLC, [yes])
   77           APR_ADDTO(CFLAGS, [-qHALT=E])
   78         fi
   79 	APR_SETIFNULL(apr_sysvsem_is_global, [yes])
   80 	APR_SETIFNULL(apr_lock_method, [USE_SYSVSEM_SERIALIZE])
   81         case $host in
   82             *-ibm-aix3* | *-ibm-aix4.1.*)
   83                 ;;
   84             *)
   85                 APR_ADDTO(LDFLAGS, [-Wl,-brtl])
   86                 ;;
   87 	esac
   88         ;;
   89     *-apollo-*)
   90 	APR_ADDTO(CPPFLAGS, [-DAPOLLO])
   91 	;;
   92     *-dg-dgux*)
   93 	APR_ADDTO(CPPFLAGS, [-DDGUX])
   94 	;;
   95     *-os2*)
   96 	APR_SETVAR(SHELL, [sh])
   97 	APR_SETIFNULL(apr_gethostbyname_is_thread_safe, [yes])
   98 	APR_SETIFNULL(apr_gethostbyaddr_is_thread_safe, [yes])
   99 	APR_SETIFNULL(apr_getservbyname_is_thread_safe, [yes])
  100 	;;
  101     *-hi-hiux)
  102 	APR_ADDTO(CPPFLAGS, [-DHIUX])
  103 	;;
  104     *-hp-hpux11.*)
  105 	APR_ADDTO(CPPFLAGS, [-DHPUX11 -D_REENTRANT -D_HPUX_SOURCE])
  106 	;;
  107     *-hp-hpux10.*)
  108  	case $host in
  109  	  *-hp-hpux10.01)
  110 dnl	       # We know this is a problem in 10.01.
  111 dnl	       # Not a problem in 10.20.  Otherwise, who knows?
  112 	       APR_ADDTO(CPPFLAGS, [-DSELECT_NEEDS_CAST])
  113 	       ;;	     
  114  	esac
  115 	APR_ADDTO(CPPFLAGS, [-D_REENTRANT])
  116 	;;
  117     *-hp-hpux*)
  118 	APR_ADDTO(CPPFLAGS, [-DHPUX -D_REENTRANT])
  119 	;;
  120     *-linux*)
  121 	APR_ADDTO(CPPFLAGS, [-DLINUX -D_REENTRANT -D_GNU_SOURCE])
  122 	;;
  123     *-lynx-lynxos)
  124 	APR_ADDTO(CPPFLAGS, [-D__NO_INCLUDE_WARN__ -DLYNXOS])
  125 	APR_ADDTO(LIBS, [-lbsd])
  126 	;;
  127     *486-*-bsdi*)
  128 	APR_ADDTO(CFLAGS, [-m486])
  129 	;;
  130     *-*-bsdi*)
  131         case $host in
  132             *bsdi4.1)
  133                 APR_ADDTO(CFLAGS, [-D_REENTRANT])
  134                 ;;
  135         esac
  136         ;;
  137     *-openbsd*)
  138 	APR_ADDTO(CPPFLAGS, [-D_POSIX_THREADS])
  139         # binding to an ephemeral port fails on OpenBSD so override
  140         # the test for O_NONBLOCK inheritance across accept().
  141         APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])
  142 	;;
  143     *-netbsd*)
  144 	APR_ADDTO(CPPFLAGS, [-DNETBSD])
  145         # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950)
  146         APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])
  147 	;;
  148     *-freebsd*)
  149         APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE])
  150         if test -x /sbin/sysctl; then
  151             os_version=`/sbin/sysctl -n kern.osreldate`
  152         else
  153             os_version=000000
  154         fi
  155         # 502102 is when libc_r switched to libpthread (aka libkse).
  156         if test $os_version -ge "502102"; then
  157           apr_cv_pthreads_cflags="none"
  158           apr_cv_pthreads_lib="-lpthread"
  159         else
  160           APR_ADDTO(CPPFLAGS, [-D_THREAD_SAFE -D_REENTRANT])
  161           APR_SETIFNULL(enable_threads, [no])
  162         fi
  163         # prevent use of KQueue before FreeBSD 4.8
  164         if test $os_version -lt "480000"; then
  165           APR_SETIFNULL(ac_cv_func_kqueue, no)
  166         fi
  167 	;;
  168     *-k*bsd*-gnu)
  169         APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_GNU_SOURCE])
  170         ;;
  171     *-gnu*|*-GNU*)
  172         APR_ADDTO(CPPFLAGS, [-D_REENTRANT -D_GNU_SOURCE -DHURD])
  173         ;;
  174     *-next-nextstep*)
  175 	APR_SETIFNULL(CFLAGS, [-O])
  176 	APR_ADDTO(CPPFLAGS, [-DNEXT])
  177 	;;
  178     *-next-openstep*)
  179 	APR_SETIFNULL(CFLAGS, [-O])
  180 	APR_ADDTO(CPPFLAGS, [-DNEXT])
  181 	;;
  182     *-apple-rhapsody*)
  183 	APR_ADDTO(CPPFLAGS, [-DRHAPSODY])
  184 	;;
  185     *-apple-darwin*)
  186         APR_ADDTO(CPPFLAGS, [-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK])
  187         APR_SETIFNULL(apr_posixsem_is_global, [yes])
  188         case $host in
  189             *-apple-darwin[[1-9]].*)
  190                 # APR's use of kqueue has triggered kernel panics for some
  191                 # 10.5.x (Darwin 9.x) users when running the entire test suite.
  192                 # In 10.4.x, use of kqueue would cause the socket tests to hang.
  193                 # 10.6+ (Darwin 10.x is supposed to fix the KQueue issues
  194                 APR_SETIFNULL(ac_cv_func_kqueue, [no]) 
  195                 APR_SETIFNULL(ac_cv_func_poll, [no]) # See issue 34332
  196             ;;
  197             *-apple-darwin1?.*)
  198                 APR_ADDTO(CPPFLAGS, [-DDARWIN_10])
  199             ;;
  200         esac
  201 	;;
  202     *-dec-osf*)
  203 	APR_ADDTO(CPPFLAGS, [-DOSF1])
  204         # process-shared mutexes don't seem to work in Tru64 5.0
  205         APR_SETIFNULL(apr_cv_process_shared_works, [no])
  206 	;;
  207     *-nto-qnx*)
  208 	;;
  209     *-qnx)
  210 	APR_ADDTO(CPPFLAGS, [-DQNX])
  211 	APR_ADDTO(LIBS, [-N128k -lunix])
  212 	;;
  213     *-qnx32)
  214 	APR_ADDTO(CPPFLAGS, [-DQNX])
  215 	APR_ADDTO(CFLAGS, [-mf -3])
  216 	APR_ADDTO(LIBS, [-N128k -lunix])
  217 	;;
  218     *-isc4*)
  219 	APR_ADDTO(CPPFLAGS, [-posix -DISC])
  220 	APR_ADDTO(LDFLAGS, [-posix])
  221 	APR_ADDTO(LIBS, [-linet])
  222 	;;
  223     *-sco3.2v[[234]]*)
  224 	APR_ADDTO(CPPFLAGS, [-DSCO -D_REENTRANT])
  225 	if test "$GCC" = "no"; then
  226 	    APR_ADDTO(CFLAGS, [-Oacgiltz])
  227 	fi
  228 	APR_ADDTO(LIBS, [-lPW -lmalloc])
  229 	;;
  230     *-sco3.2v5*)
  231 	APR_ADDTO(CPPFLAGS, [-DSCO5 -D_REENTRANT])
  232 	;;
  233     *-sco_sv*|*-SCO_SV*)
  234 	APR_ADDTO(CPPFLAGS, [-DSCO -D_REENTRANT])
  235 	APR_ADDTO(LIBS, [-lPW -lmalloc])
  236 	;;
  237     *-solaris2*)
  238     	PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
  239 	APR_ADDTO(CPPFLAGS, [-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT])
  240         if test $PLATOSVERS -eq 10; then
  241             # pthread_mutex_timedlock is broken on Solaris 10.
  242             # It can block without timeout in case of EDEADLK.
  243             APR_SETIFNULL(ac_cv_func_pthread_mutex_timedlock, [no])
  244         fi
  245         if test $PLATOSVERS -ge 10; then
  246             APR_SETIFNULL(apr_lock_method, [USE_PROC_PTHREAD_SERIALIZE])
  247         else
  248             APR_SETIFNULL(apr_lock_method, [USE_FCNTL_SERIALIZE])
  249         fi
  250         # readdir64_r error handling seems broken on Solaris (at least
  251         # up till 2.8) -- it will return -1 at end-of-directory.
  252         APR_SETIFNULL(ac_cv_func_readdir64_r, [no])
  253 	;;
  254     *-sunos4*)
  255 	APR_ADDTO(CPPFLAGS, [-DSUNOS4])
  256 	;;
  257     *-unixware1)
  258 	APR_ADDTO(CPPFLAGS, [-DUW=100])
  259 	;;
  260     *-unixware2)
  261 	APR_ADDTO(CPPFLAGS, [-DUW=200])
  262 	APR_ADDTO(LIBS, [-lgen])
  263 	;;
  264     *-unixware211)
  265 	APR_ADDTO(CPPFLAGS, [-DUW=211])
  266 	APR_ADDTO(LIBS, [-lgen])
  267 	;;
  268     *-unixware212)
  269 	APR_ADDTO(CPPFLAGS, [-DUW=212])
  270 	APR_ADDTO(LIBS, [-lgen])
  271 	;;
  272     *-unixware7)
  273 	APR_ADDTO(CPPFLAGS, [-DUW=700])
  274 	APR_ADDTO(LIBS, [-lgen])
  275 	;;
  276     maxion-*-sysv4*)
  277 	APR_ADDTO(CPPFLAGS, [-DSVR4])
  278 	APR_ADDTO(LIBS, [-lc -lgen])
  279 	;;
  280     *-*-powermax*)
  281 	APR_ADDTO(CPPFLAGS, [-DSVR4])
  282 	APR_ADDTO(LIBS, [-lgen])
  283 	;;
  284     TPF)
  285        APR_ADDTO(CPPFLAGS, [-DTPF -D_POSIX_SOURCE])
  286        ;;
  287     bs2000*-siemens-sysv*)
  288 	APR_SETIFNULL(CFLAGS, [-O])
  289 	APR_ADDTO(CPPFLAGS, [-DSVR4 -D_XPG_IV -D_KMEMUSER])
  290 	APR_ADDTO(LIBS, [-lsocket])
  291 	APR_SETIFNULL(enable_threads, [no])
  292 	;;
  293     *-siemens-sysv4*)
  294 	APR_ADDTO(CPPFLAGS, [-DSVR4 -D_XPG_IV -DHAS_DLFCN -DUSE_MMAP_FILES -DUSE_SYSVSEM_SERIALIZED_ACCEPT])
  295 	APR_ADDTO(LIBS, [-lc])
  296 	;;
  297     pyramid-pyramid-svr4)
  298 	APR_ADDTO(CPPFLAGS, [-DSVR4 -DNO_LONG_DOUBLE])
  299 	APR_ADDTO(LIBS, [-lc])
  300 	;;
  301     DS/90\ 7000-*-sysv4*)
  302 	APR_ADDTO(CPPFLAGS, [-DUXPDS])
  303 	;;
  304     *-tandem-sysv4*)
  305 	APR_ADDTO(CPPFLAGS, [-DSVR4])
  306 	;;
  307     *-ncr-sysv4)
  308 	APR_ADDTO(CPPFLAGS, [-DSVR4 -DMPRAS])
  309 	APR_ADDTO(LIBS, [-lc -L/usr/ucblib -lucb])
  310 	;;
  311     *-sysv4*)
  312 	APR_ADDTO(CPPFLAGS, [-DSVR4])
  313 	APR_ADDTO(LIBS, [-lc])
  314 	;;
  315     88k-encore-sysv4)
  316 	APR_ADDTO(CPPFLAGS, [-DSVR4 -DENCORE])
  317 	APR_ADDTO(LIBS, [-lPW])
  318 	;;
  319     *-uts*)
  320 	PLATOSVERS=`echo $host | sed 's/^.*,//'`
  321 	case $PLATOSVERS in
  322 	    2*) APR_ADDTO(CPPFLAGS, [-DUTS21])
  323 	        APR_ADDTO(CFLAGS, [-Xa -eft])
  324 	        APR_ADDTO(LIBS, [-lbsd -la])
  325 	        ;;
  326 	    *)  APR_ADDTO(CPPFLAGS, [-DSVR4])
  327 	        APR_ADDTO(CFLAGS, [-Xa])
  328 	        ;;
  329 	esac
  330 	;;
  331     *-ultrix)
  332 	APR_ADDTO(CPPFLAGS, [-DULTRIX])
  333 	APR_SETVAR(SHELL, [/bin/sh5])
  334 	;;
  335     *powerpc-tenon-machten*)
  336 	APR_ADDTO(LDFLAGS, [-Xlstack=0x14000 -Xldelcsect])
  337 	;;
  338     *-machten*)
  339 	APR_ADDTO(LDFLAGS, [-stack 0x14000])
  340 	;;
  341     *convex-v11*)
  342 	APR_ADDTO(CPPFLAGS, [-DCONVEXOS11])
  343 	APR_SETIFNULL(CFLAGS, [-O1])
  344 	APR_ADDTO(CFLAGS, [-ext])
  345 	;;
  346     i860-intel-osf1)
  347 	APR_ADDTO(CPPFLAGS, [-DPARAGON])
  348 	;;
  349     *-sequent-ptx2.*.*)
  350 	APR_ADDTO(CPPFLAGS, [-DSEQUENT=20])
  351 	APR_ADDTO(CFLAGS, [-Wc,-pw])
  352 	APR_ADDTO(LIBS, [-linet -lc -lseq])
  353 	;;
  354     *-sequent-ptx4.0.*)
  355 	APR_ADDTO(CPPFLAGS, [-DSEQUENT=40])
  356 	APR_ADDTO(CFLAGS, [-Wc,-pw])
  357 	APR_ADDTO(LIBS, [-linet -lc])
  358 	;;
  359     *-sequent-ptx4.[[123]].*)
  360 	APR_ADDTO(CPPFLAGS, [-DSEQUENT=41])
  361 	APR_ADDTO(CFLAGS, [-Wc,-pw])
  362 	APR_ADDTO(LIBS, [-lc])
  363 	;;
  364     *-sequent-ptx4.4.*)
  365 	APR_ADDTO(CPPFLAGS, [-DSEQUENT=44])
  366 	APR_ADDTO(CFLAGS, [-Wc,-pw])
  367 	APR_ADDTO(LIBS, [-lc])
  368 	;;
  369     *-sequent-ptx4.5.*)
  370 	APR_ADDTO(CPPFLAGS, [-DSEQUENT=45])
  371 	APR_ADDTO(CFLAGS, [-Wc,-pw])
  372 	APR_ADDTO(LIBS, [-lc])
  373 	;;
  374     *-sequent-ptx5.0.*)
  375 	APR_ADDTO(CPPFLAGS, [-DSEQUENT=50])
  376 	APR_ADDTO(CFLAGS, [-Wc,-pw])
  377 	APR_ADDTO(LIBS, [-lc])
  378 	;;
  379     *NEWS-OS*)
  380 	APR_ADDTO(CPPFLAGS, [-DNEWSOS])
  381 	;;
  382     *-riscix)
  383 	APR_ADDTO(CPPFLAGS, [-DRISCIX])
  384 	APR_SETIFNULL(CFLAGS, [-O])
  385 	;;
  386     *-irix*)
  387 	APR_ADDTO(CPPFLAGS, [-D_POSIX_THREAD_SAFE_FUNCTIONS])
  388 	;;
  389     *beos*)
  390         APR_ADDTO(CPPFLAGS, [-DBEOS])
  391         PLATOSVERS=`uname -r`
  392         APR_SETIFNULL(apr_process_lock_is_global, [yes])
  393         case $PLATOSVERS in
  394             5.0.4)
  395                 APR_ADDTO(LDFLAGS, [-L/boot/beos/system/lib])
  396                 APR_ADDTO(LIBS, [-lbind -lsocket])
  397                 APR_ADDTO(CPPFLAGS,[-DBONE7])
  398                 ;;
  399             5.1)
  400                 APR_ADDTO(LDFLAGS, [-L/boot/beos/system/lib])
  401                 APR_ADDTO(LIBS, [-lbind -lsocket])
  402                 ;;
  403 	esac
  404 	APR_ADDTO(CPPFLAGS, [-DSIGPROCMASK_SETS_THREAD_MASK])
  405         ;;
  406     4850-*.*)
  407 	APR_ADDTO(CPPFLAGS, [-DSVR4 -DMPRAS])
  408 	APR_ADDTO(LIBS, [-lc -L/usr/ucblib -lucb])
  409 	;;
  410     drs6000*)
  411 	APR_ADDTO(CPPFLAGS, [-DSVR4])
  412 	APR_ADDTO(LIBS, [-lc -L/usr/ucblib -lucb])
  413 	;;
  414     m88k-*-CX/SX|CYBER)
  415 	APR_ADDTO(CPPFLAGS, [-D_CX_SX])
  416 	APR_ADDTO(CFLAGS, [-Xa])
  417 	;;
  418     *-tandem-oss)
  419 	APR_ADDTO(CPPFLAGS, [-D_TANDEM_SOURCE -D_XOPEN_SOURCE_EXTENDED=1])
  420 	;;
  421     *-ibm-os390)
  422         APR_SETIFNULL(apr_lock_method, [USE_SYSVSEM_SERIALIZE])
  423         APR_SETIFNULL(apr_sysvsem_is_global, [yes])
  424         APR_SETIFNULL(apr_gethostbyname_is_thread_safe, [yes])
  425         APR_SETIFNULL(apr_gethostbyaddr_is_thread_safe, [yes])
  426         APR_SETIFNULL(apr_getservbyname_is_thread_safe, [yes])
  427         AC_DEFINE(HAVE_ZOS_PTHREADS, 1, [Define for z/OS pthread API nuances])
  428         APR_ADDTO(CPPFLAGS, [-U_NO_PROTO -DSIGPROCMASK_SETS_THREAD_MASK -DTCP_NODELAY=1])
  429         ;;
  430     *-ibm-as400)
  431         APR_SETIFNULL(apr_lock_method, [USE_SYSVSEM_SERIALIZE])
  432         APR_SETIFNULL(apr_process_lock_is_global, [yes])
  433         APR_SETIFNULL(apr_gethostbyname_is_thread_safe, [yes])
  434         APR_SETIFNULL(apr_gethostbyaddr_is_thread_safe, [yes])
  435         APR_SETIFNULL(apr_getservbyname_is_thread_safe, [yes])
  436         ;;
  437     *mingw*)
  438         APR_ADDTO(INTERNAL_CPPFLAGS, -DBINPATH=$apr_builddir/test/.libs)
  439         APR_ADDTO(CPPFLAGS, [-DWIN32 -D__MSVCRT__])
  440         APR_ADDTO(LDFLAGS, [-Wl,--enable-auto-import,--subsystem,console])
  441         APR_SETIFNULL(have_unicode_fs, [1])
  442         APR_SETIFNULL(have_proc_invoked, [1])
  443         APR_SETIFNULL(apr_lock_method, [win32])
  444         APR_SETIFNULL(apr_process_lock_is_global, [yes])
  445         APR_SETIFNULL(apr_cv_use_lfs64, [yes])
  446         APR_SETIFNULL(apr_cv_osuuid, [yes])
  447         APR_SETIFNULL(apr_cv_tcp_nodelay_with_cork, [no])
  448         APR_SETIFNULL(apr_thread_func, [__stdcall])
  449         APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes])
  450         APR_SETIFNULL(ac_cv_tcp_nodelay_inherited, [yes])
  451         APR_SETIFNULL(ac_cv_file__dev_zero, [no])
  452         APR_SETIFNULL(ac_cv_func_setpgrp_void, [no])
  453         APR_SETIFNULL(ac_cv_func_mmap, [yes])
  454         APR_SETIFNULL(ac_cv_define_sockaddr_in6, [yes])
  455         APR_SETIFNULL(ac_cv_working_getaddrinfo, [yes])
  456         APR_SETIFNULL(ac_cv_working_getnameinfo, [yes])
  457         APR_SETIFNULL(ac_cv_func_gai_strerror, [yes])
  458         case $host in
  459             *mingw32*)
  460                 APR_SETIFNULL(apr_has_xthread_files, [1])
  461                 APR_SETIFNULL(apr_has_user, [1])
  462                 APR_SETIFNULL(apr_procattr_user_set_requires_password, [1])
  463                 dnl The real function is TransmitFile(), not sendfile(), but
  464                 dnl this bypasses the Linux/Solaris/AIX/etc. test and enables
  465                 dnl the TransmitFile() implementation.
  466                 APR_SETIFNULL(ac_cv_func_sendfile, [yes])
  467                 ;;
  468             *mingwce)
  469                 APR_SETIFNULL(apr_has_xthread_files, [0])
  470                 APR_SETIFNULL(apr_has_user, [0])
  471                 APR_SETIFNULL(apr_procattr_user_set_requires_password, [0])
  472                 APR_SETIFNULL(ac_cv_func_sendfile, [no])
  473                 ;;
  474         esac
  475         ;;
  476   esac
  477 
  478 fi
  479 ])
  480 
  481 dnl
  482 dnl APR_CC_HINTS
  483 dnl
  484 dnl  Allows us to provide a default choice of compiler which
  485 dnl  the user can override.
  486 AC_DEFUN(APR_CC_HINTS, [
  487 case "$host" in
  488   *-apple-aux3*)
  489       APR_SETIFNULL(CC, [gcc])
  490       ;;
  491   bs2000*-siemens-sysv*)
  492       APR_SETIFNULL(CC, [c89 -XLLML -XLLMK -XL -Kno_integer_overflow])
  493       ;;
  494   *convex-v11*)
  495       APR_SETIFNULL(CC, [cc])
  496       ;;
  497   *-ibm-os390)
  498       APR_SETIFNULL(CC, [cc])
  499       ;;
  500   *-ibm-as400)
  501       APR_SETIFNULL(CC, [icc])
  502       ;;
  503   *-isc4*)
  504       APR_SETIFNULL(CC, [gcc])
  505       ;;
  506   m88k-*-CX/SX|CYBER)
  507       APR_SETIFNULL(CC, [cc])
  508       ;;
  509   *-next-openstep*)
  510       APR_SETIFNULL(CC, [cc])
  511       ;;
  512   *-qnx32)
  513       APR_SETIFNULL(CC, [cc -F])
  514       ;;
  515   *-tandem-oss)
  516       APR_SETIFNULL(CC, [c89])
  517       ;;
  518   TPF)
  519       APR_SETIFNULL(CC, [c89])
  520       ;;
  521 esac
  522 ])